@farris/x-ui 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- (function(O,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(O=typeof globalThis<"u"?globalThis:O||self,i(O.FarrisX={},O.vue))})(this,function(O,i){"use strict";var q2=Object.defineProperty;var Ul=O=>{throw TypeError(O)};var Z2=(O,i,be)=>i in O?q2(O,i,{enumerable:!0,configurable:!0,writable:!0,value:be}):O[i]=be;var fe=(O,i,be)=>Z2(O,typeof i!="symbol"?i+"":i,be),ai=(O,i,be)=>i.has(O)||Ul("Cannot "+be);var v=(O,i,be)=>(ai(O,i,"read from private field"),be?be.call(O):i.get(O)),ie=(O,i,be)=>i.has(O)?Ul("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(O):i.set(O,be),ee=(O,i,be,at)=>(ai(O,i,"write to private field"),at?at.call(O,be):i.set(O,be),be),q=(O,i,be)=>(ai(O,i,"access private method"),be);var Ru=(O,i,be,at)=>({set _(Nr){ee(O,i,Nr,be)},get _(){return v(O,i,at)}});var Cl,Ft,Sn,_l,El,it,Je,ct,un,dt,Fn,Dn,ft,ke,ht,we,he,ne,$e,et,Re,Se,pt,Fe,mt,gt,tt,nt,bt,Gt,Ue,Tn,G,si,on,Lt,Er,rt,Wl,an,Nn,Sr,qt,Zt,li,Mu,Bu,pe,ci,Tr,Yt,di,Ln;const be={content:{type:Object,required:!0},onOpen:{type:Function,default:void 0}},at=i.defineComponent({name:"AppPreviewMessage",props:be,setup(e){const t=i.ref(!1);function n(){var h;const a=(h=e.content)==null?void 0:h.appConfig;if(!a)return"";const s=a.ws??"",l=a.appPath??"",d=a.appObjectId??"";return`${a.appBuilderUri??"/apps/platform/development-platform/ide/app-builder/index.html"}?path=${l}&boId=${d}&ws=${s}&version=2.0#/home`}function u(){var s,l;const a=(s=e.content)==null?void 0:s.previewConfig;a&&e.onOpen&&e.onOpen({...a,title:a.title??((l=e.content)==null?void 0:l.appName)})}function o(a){const s=a.target;s!=null&&s.closest(".f-chat-app-preview-open-btn")||a.preventDefault()}function r(a){a.stopPropagation();const s=n();s&&window.open(s,"_blank")}return()=>{const a=e.content;if(!a)return null;const{message:s,appName:l,createdDatetime:d}=a;return i.createVNode("div",{class:"f-chat-message-app-preview"},[i.createVNode("div",{class:"f-chat-app-preview-message"},[s]),i.createVNode("div",{class:"f-chat-app-preview-card",onMouseenter:()=>t.value=!0,onMouseleave:()=>t.value=!1,onMousedown:o,onClick:u,role:"button",tabindex:0,onKeydown:f=>f.key==="Enter"&&u()},[i.createVNode("div",{class:"f-chat-app-preview-card-left"},[i.createVNode("span",{class:"f-chat-app-preview-icon"},[i.createVNode("i",{class:"fx-icon fx-icon-bubble_star"},null)])]),i.createVNode("div",{class:"f-chat-app-preview-card-middle"},[i.createVNode("div",{class:"f-chat-app-preview-app-name"},[l]),i.createVNode("div",{class:"f-chat-app-preview-datetime"},[d])]),i.createVNode("div",{class:"f-chat-app-preview-card-right"},[i.createVNode("div",{class:"f-chat-app-preview-action-area"},null),t.value&&i.createVNode("button",{type:"button",class:"f-chat-app-preview-open-btn",onClick:r,title:"在新页签中打开","aria-label":"在新页签中打开"},[i.createVNode("i",{class:"fx-icon fx-icon-folder-open"},null)])])])])}}});at.install=e=>{e.component(at.name,at)};const Nr={content:{type:Object,required:!0},outputMode:{type:String,default:"streaming"},classNames:{type:Object,default:()=>({})},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},header:{type:String,default:"sender"},placement:{type:String,default:"start"},showAvatar:{type:Boolean,default:!0},styles:{type:Object,default:()=>({})},attachments:{type:Array,default:()=>[]},onPreview:{type:Function,default:void 0},onUserAuthConfirm:{type:Function,default:void 0},compositeTailRender:{type:Function,default:void 0},onDynamicComponentsDetected:{type:Function,default:void 0},onShowDynamicComponent:{type:Function,default:void 0},attachmentRowClickOpensPreview:{type:Boolean,default:!0},attachmentShowDownload:{type:Boolean,default:!0},role:{type:String,default:"assistant"}},zu={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},Gl="/api/runtime/attachment";function Xl(){try{const e=zu==null?void 0:zu.VITE_ATTACHMENT_API_BASE;if(typeof e=="string"&&e.trim()!=="")return e.replace(/\/+$/,"")}catch{}return""}function ql(e){var n;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:typeof window<"u"&&((n=window.location)!=null&&n.origin)&&t.startsWith("/")?`${window.location.origin}${t}`:t}function Zl(e){return`${Gl}/${encodeURIComponent(e)}/download`}function ju(e){const t=String(e??"").trim();if(!t)return"";const n=Zl(t),u=Xl();return u?`${u}${n}`:n}function fi(e){const t=e.trim().match(/\/api\/runtime\/attachment\/([^/]+)\/download(?:\?|#|$)/i);if(!(t!=null&&t[1]))return"";try{return decodeURIComponent(t[1]).trim()}catch{return t[1].trim()}}function ln(e){const t=String(e.fileId??"").trim();if(t)return ju(t);const n=String(e.url??"").trim();if(!n)return;const u=fi(n);if(u)return ju(u);if(n.startsWith("http://")||n.startsWith("https://")||n.startsWith("/"))return n}async function Lr(e,t){const n=String(t??"").replace(/[/\\]/g,"_").trim()||"download",u=ql(e);try{const o=await fetch(u,{credentials:"include",mode:"cors"});if(!o.ok)throw new Error(`download_http_${o.status}`);const r=await o.blob(),a=URL.createObjectURL(r),s=document.createElement("a");s.href=a,s.download=n,s.rel="noopener noreferrer",document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(a)}catch{const o=document.createElement("a");o.href=u,o.target="_blank",o.rel="noopener noreferrer",document.body.appendChild(o),o.click(),document.body.removeChild(o)}}function ye(e,t){return t&&(typeof t=="string"?t.split(" ").filter(Boolean).forEach(u=>{e[u]=!0}):Array.isArray(t)?t.forEach(n=>{n&&(e[n]=!0)}):typeof t=="object"&&Object.entries(t).forEach(([n,u])=>{n&&u&&(e[n]=!0)})),e}function Ae(e,t){return t&&(typeof t=="string"?t.split(";").filter(Boolean).forEach(u=>{var r,a;const o=u.split(":");if(o.length>=2&&((r=o[0])!=null&&r.trim())&&((a=o[1])!=null&&a.trim())){const s=o[0].trim(),l=o.slice(1).join(":").trim();e[s]=l}}):typeof t=="object"&&Object.entries(t).forEach(([n,u])=>{n&&u!==void 0&&u!==null&&(e[n]=u)})),e}function Mn(e){return e||null}function hi(e){return e?/\.(jpg|jpeg|png|gif|svg|webp|bmp|ico)$/i.test(e)||e.startsWith("http")||e.startsWith("data:image"):!1}function Ir(e){return e?typeof e!="string"?e:hi(e)?i.h("img",{src:e,alt:"icon",class:"fx-prompt--item-icon-image",onError:t=>{const n=t.target;n.style.display="none",n.parentElement.innerHTML='<i class="fx-icon fx-icon-warning"></i>'}}):e.includes("fx-icon")||e.includes("icon-")?i.h("i",{class:e}):e:null}function pi(e,t,n,u={}){const{charInterval:o=30}=u,r=i.ref({});let a=[],s=new Set;const l=()=>typeof t=="function"?t():t.value,d=()=>typeof n=="function"?n():n.value,f=()=>{a.forEach(p=>clearInterval(p)),a=[]},c=()=>{f(),r.value={},s.clear()},h=()=>{f(),r.value={},s.clear()},m=()=>{const p=e();if(!p||Object.keys(p).length===0){r.value={};return}if(!d()){r.value={...p},s=new Set(Object.keys(p));return}const w=Object.keys(p);w.forEach(g=>{r.value.hasOwnProperty(g)||(r.value[g]="")});const y=w.filter(g=>!s.has(g));if(y.length===0)return;let A=0;const b=()=>{var D;if(A>=y.length)return;const g=y[A],x=p[g];if(!x){s.add(g),A++,b();return}let k=((D=r.value[g])==null?void 0:D.length)||0;const T=setInterval(()=>{k<x.length?(r.value={...r.value,[g]:x.slice(0,k+1)},k++):(clearInterval(T),a=a.filter(F=>F!==T),s.add(g),A++,b())},o);a.push(T)};b()};return i.watch(()=>e(),()=>{l()&&m()},{immediate:!0}),i.watch(n,()=>{h(),l()&&m()}),i.watch(t,p=>{p?m():c()}),i.onMounted(()=>{l()&&m()}),{displayContent:r}}function Or(){const e=i.reactive({}),t=[],n=i.ref(null);let u=null;const o=30,r=p=>{const w=e[p];return!w||w.displayedLength>=w.rawValue.length},a=i.computed(()=>Object.keys(e).length===0?!1:Object.keys(e).every(p=>r(p))),s=()=>{for(const p of t)if(!r(p))return p;return null},l=()=>{if(!n.value&&(n.value=s(),!n.value)){d();return}const p=e[n.value];p&&(p.displayedLength<p.rawValue.length?(p.displayedLength++,p.displayedValue=p.rawValue.slice(0,p.displayedLength),p.isStreaming=!0):(p.isStreaming=!1,p.displayedValue=p.rawValue,n.value=s(),n.value||d()))},d=()=>{u&&(clearInterval(u),u=null)},f=()=>{u||(u=setInterval(l,o))},c=()=>{d(),Object.keys(e).forEach(p=>{delete e[p]}),t.length=0,n.value=null},h=(p,w)=>{if(e[p]){m(p,w);return}t.push(p),e[p]={rawValue:w??"",displayedLength:0,isStreaming:!1,displayedValue:""},u||(!n.value||n.value===p)&&f()},m=(p,w)=>{const y=e[p];if(!y){h(p,w);return}y.rawValue=w??"",!u&&!r(p)&&(!n.value||n.value===p)&&f()};return i.onUnmounted(()=>{d()}),{propertyStates:e,currentProperty:n,get isAnyStreaming(){return Object.values(e).some(p=>p.isStreaming)},isAllDone:a,startStreaming:f,reset:c,registerProperty:h,updatePropertyValue:m}}function Hu(){const e=i.ref(null),t=i.ref(0),n=i.ref(!1);let u=null;const o=()=>{e.value=Date.now(),n.value=!0,u=setInterval(()=>{e.value&&(t.value=Math.floor((Date.now()-e.value)/1e3))},1e3)},r=()=>{u&&(clearInterval(u),u=null),e.value&&(t.value=Math.floor((Date.now()-e.value)/1e3))};return{elapsedSeconds:t,hasEverStarted:n,start:o,stop:r,reset:()=>{r(),e.value=null,t.value=0,n.value=!1}}}function Yl(e,t){const n=i.computed(()=>{var o;return Ae({},(o=e.styles)==null?void 0:o.header)});function u(){return t.slots.header&&i.createVNode("div",{class:`f-chat-bubble-header ${e.placement}`,style:n.value},[t.slots.header()])}return{renderHeader:u}}function Kl(e,t){var r;const n=i.ref(((r=e.content)==null?void 0:r.sender)??"发送人"),u=i.computed(()=>{var a;return Ae({},(a=e.styles)==null?void 0:a.header)});function o(){return i.createVNode("div",{class:`f-chat-bubble-header ${e.placement}`,style:u.value},[n.value])}return{renderHeader:o}}const Ql={file:{type:Object,required:!0},customStyle:{type:Object,default:()=>({})},onPreviewFile:{type:Function,default:void 0},onBatchPreviewFile:{type:Function,default:void 0}},Jl={role:{type:String,default:"assistant"},attachments:{type:Array,default:()=>[]},enableBatchPreview:{type:Boolean,default:!1},enableFixedWidth:{type:Boolean,default:!1},showDownloadButton:{type:Boolean,default:!0},onPreview:{type:Function,default:void 0},onBatchPreview:{type:Function,default:void 0}};function ec(){return{getFileIcon:u=>({pdf:"file-type-pdf",doc:"file-type-doc",docx:"file-type-doc",xls:"file-type-xls",xlsx:"file-type-xls",ppt:"file-type-ppt",pptx:"file-type-ppt",txt:"file-type-txt",zip:"file-type-zip",rar:"file-type-zip",image:"file-type-img",img:"file-type-img",md:"file-type-md",video:"file-type-any",audio:"file-type-any"})[u.toLowerCase()]||"file-type-any",formatFileName:u=>(u==null?void 0:u.replace(/\.[^.]+$/,""))??"",formatFileSize:u=>u<1024?u+" B":u<1048576?(u/1024).toFixed(1)+" KB":(u/1048576).toFixed(1)+" MB"}}const mi=i.defineComponent({name:"FXBubbleAttachment",props:Jl,emits:["preview","batchPreview"],setup(e,t){const n=i.computed(()=>e.attachments??[]),u=i.computed(()=>{var y;return((y=n.value)==null?void 0:y.length)>0}),{formatFileName:o,formatFileSize:r}=ec(),a=i.computed(()=>({"f-chat-bubble-attachment-info":!0,"f-utils-fill":e.enableFixedWidth})),s=i.computed(()=>({"f-chat-bubble-attachment-name":!0,"name-tip":e.enableFixedWidth}));function l(y,A){t.emit("preview",A)}async function d(y,A){y.stopPropagation(),y.preventDefault();const b=ln(A);b&&await Lr(b,A.name)}function f(y){t.emit("batchPreview",n.value)}function c(y){switch(y.toLowerCase()){case"doc":case"docx":return"Word";case"xlsx":case"xls":return"Excel";case"ppt":case"pptx":return"PPT";case"txt":return"txt";case"png":case"jpg":case"jpeg":return"Image";case"pdf":return"PDF";case"md":return"Markdown";default:return""}}function h(y){return y?{pdf:"file-type-pdf",doc:"file-type-doc",docx:"file-type-doc",xls:"file-type-xls",xlsx:"file-type-xls",ppt:"file-type-ppt",pptx:"file-type-ppt",txt:"file-type-txt",md:"file-type-md",jpg:"file-type-img",jpeg:"file-type-img",png:"file-type-img",gif:"file-type-img",webp:"file-type-img",html:"file-type-html"}[y.toLowerCase()]||"file-type-any":""}function m(y){if(!y)return null;const A=c(y.type);return i.createVNode("div",{class:"file-info f-utils-fill"},[i.createVNode("span",{class:"file-name",title:y.name},[y.name]),i.createVNode("div",{class:"file-info-footer"},[i.createVNode("span",{class:`file-icon ${h(y.type)}`},null),A&&i.createVNode(i.Fragment,null,[i.createVNode("span",{class:"file-type"},[c(y.type)])]),y.size&&i.createVNode(i.Fragment,null,[i.createVNode("div",{class:"file-info-divider"},null),i.createTextVNode(" "),i.createVNode("span",{class:"file-size"},[r(y.size)])])])])}function p(y,A){const b=ln(y);return i.createVNode("div",{class:"f-chat-bubble-attachment-item",key:A},[i.createVNode("div",{class:"f-chat-bubble-attachment-main",role:"presentation",onClick:g=>l(g,y)},[i.createVNode("div",{class:a.value},[i.createVNode("span",{class:s.value,title:y.name},[o(y.name)]),y.size?i.createVNode("span",{class:"f-chat-bubble-attachment-size"},[r(y.size)]):null])]),e.showDownloadButton!==!1&&b?i.createVNode("button",{type:"button",class:"f-chat-bubble-attachment-download-btn","aria-label":"下载附件",title:"下载",onClick:g=>d(g,y)},[i.createVNode("i",{class:"fx-icon fx-icon-sidewindow_download","aria-hidden":"true"},null)]):null])}function w(y,A){return i.createVNode("div",{class:"f-chat-bubble-attachment-toast",key:A},[m(y)])}return()=>u.value?i.createVNode("div",{class:{"f-chat-bubble-attachments":!0,"attachments-toast":e.role==="user"}},[n.value.map((y,A)=>e.role==="user"?w(y,A):p(y,A)),e.enableBatchPreview&&i.createVNode("div",{class:"f-chat-bubble-attachment-preview-btn",onClick:f},[i.createVNode("span",{class:"f-chat-bubble-attachment-preview-btn-text"},[i.createTextVNode("查看全部文件")]),i.createVNode("i",{class:"fx-icon fx-icon-sort-asc-sm",style:{transform:"rotate(90deg)"}},null)])]):null}}),tc=i.defineComponent({name:"FXBubbleFileContentFooter",props:Ql,setup(e,t){const n=i.computed(()=>e.file?Array.isArray(e.file)?[...e.file]:[e.file]:[]);return Ae({},e.customStyle),()=>i.createVNode(mi,{attachments:n.value,onPreview:u=>{var o;return(o=e.onPreviewFile)==null?void 0:o.call(e,u)},onBatchPreview:u=>{var o;return(o=e.onBatchPreviewFile)==null?void 0:o.call(e,u)}},null)}}),nc={pageUrl:{type:String,required:!0},customStyle:{type:Object,default:()=>({})},onNavigate:{type:Function,default:void 0}},rc=i.defineComponent({name:"FXBubblePageContentFooter",props:nc,setup(e,t){const n=i.ref(),u=i.computed(()=>{var a,s;const r={width:"100%",height:"100%",border:"none"};return(a=e.customStyle)!=null&&a.width&&(r.width=e.customStyle.width),(s=e.customStyle)!=null&&s.height&&(r.height=`${e.customStyle.height}px`),r}),o=r=>{var a,s;((a=r.data)==null?void 0:a.type)==="navigation"&&((s=r.data)!=null&&s.url)&&e.onNavigate&&e.onNavigate(r.data.url)};return i.onMounted(()=>{window.addEventListener("message",o)}),i.onUnmounted(()=>{window.removeEventListener("message",o)}),()=>i.createVNode("iframe",{ref:n,src:e.pageUrl,style:u.value,scrolling:"auto"},null)}});function gi(){function e(o,r){const{fileContent:a,height:s,width:l}=o;return{file:a,customStyle:{width:l||"100%",height:s||"100%"},onPreviewFile:r==null?void 0:r.onPreviewFile,onBatchPreviewFile:r==null?void 0:r.onBatchPreviewFile}}function t(o,r){const{pageUrl:a,height:s,width:l}=o;return{pageUrl:a,customStyle:{width:l||"100%",height:s||"100%"},onNavigate:r==null?void 0:r.onNavigate}}function n(o,r){const a=e(o,r);return i.h(tc,a)}function u(o,r){const a=t(o,r);return i.h(rc,a)}return{renderFileEmbeddedContent:n,renderPageEmbeddedContent:u}}const uc={title:{type:String,default:""},subtitle:{type:String,default:""},text:{type:String,default:""},textFormat:{type:String,default:"plain"},placement:{type:String,default:"start"},onDynamicComponentsDetected:{type:Function,default:void 0},onShowDynamicComponent:{type:Function,default:void 0}};function oc(e){return e.replace(/```\s*\n+\s*assistant-widget/g,"``` assistant-widget")}const bi=/^```\s*assistant-widget[\s\S]*?```$/,ic=/^```\s*assistant-widget/,ac=/^```\s*([a-zA-Z0-9-]*)$/;function sc(e){const t=e.match(ac);if(!t)return!1;const n=(t[1]??"").toLowerCase();return n===""||"assistant-widget".startsWith(n)}function lc(e){return e?bi.test(e):!1}function cc(e){return e?bi.test(e)||ic.test(e)||sc(e):!1}function dc(e){if(!e)return[];const t=/(```[\s]*assistant-widget[\s\S]*?```)/g,n=[];let u=0,o;for(;(o=t.exec(e))!==null;){if(o.index>u){const r=e.slice(u,o.index),a=/(```[\s]*assistant-widget)/,s=r.match(a);if(s){const l=r.indexOf(s[0]);l>0&&n.push(r.slice(0,l)),n.push(r.slice(l));const d=r.slice(l+s[0].length);d.trim().length>0&&n.push(d)}else n.push(r)}n.push(oc(o[0])),u=o.index+o[0].length}if(u<e.length){const r=e.slice(u),a=/(```[\s]*assistant-widget)/,s=r.match(a);if(s){const l=r.indexOf(s[0]);l>0&&n.push(r.slice(0,l)),n.push(r.slice(l))}else n.push(r)}return n.filter(r=>r.trim().length>0)}function yi(e){const t=e.replace("``` assistant-widget","").replace("```","").trim();try{return JSON.parse(t)}catch(n){return console.error("Failed to parse JSON:",n),null}}function fc(e){var n;const t=yi(e);return((n=t==null?void 0:t.renderer)==null?void 0:n.widgetImplOptions)||{}}const hc=/^```\s*dynamic-component[\s\S]*?```$/,pc=/^```\s*dynamic-component/;function mc(e){return e.replace(/```\s*\n*\s*dynamic-component/g,"``` dynamic-component")}function gc(e){return e?hc.test(e)||pc.test(e):!1}function bc(e){const t=e.replace(/```\s*dynamic-component\s*\n?/,"").replace(/\n?\s*```/,"").trim();if(!t)return null;let n;try{n=JSON.parse(t)}catch{return null}if(!n||typeof n!="object"||Array.isArray(n))return null;const u=n;return typeof u.instanceId!="string"?null:{...u,instanceId:u.instanceId,name:typeof u.name=="string"?u.name:void 0,componentId:typeof u.componentId=="string"?u.componentId:void 0,jsUrl:typeof u.jsUrl=="string"?u.jsUrl:"",url:typeof u.url=="string"?u.url:"",title:typeof u.title=="string"?u.title:"预览",position:u.position==="inline"?"inline":"right",width:typeof u.width=="string"?u.width:void 0,isFullscreen:typeof u.isFullscreen=="boolean"?u.isFullscreen:!1,autoOpen:typeof u.autoOpen=="boolean"?u.autoOpen:!1,fileRe:typeof u.fileRe=="string"?u.fileRe:void 0,target:u.target==="preview"||u.target==="previewExtra"?u.target:void 0}}function yc(e){const t=e.replace(/```\s*dynamic-component\s*\n?/,"").replace(/\n?\s*```/,"").trim();if(!t)return null;const n=t.match(/"position"\s*:\s*"(inline|right)"/);return n?{position:n[1]}:null}function xc(e){if(!e)return[];const t="``` dynamic-component",n="```",u=[];let o=0;for(;o<e.length;){const r=e.indexOf(t,o);if(r===-1){const m=e.slice(o);m&&u.push(m);break}let a=r+t.length;const s=e.lastIndexOf("```",r),l=s>=0&&s<r+3?s:r,d=e.slice(o,l);d&&u.push(d);const f=e.indexOf(n,a);if(f===-1){u.push(e.slice(l));break}const c=f+n.length,h=e.slice(l,c);u.push(mc(h)),o=c}return u.filter(r=>r.length>0)}var Oe=(e=>(e.Text="text",e.FlowUIComplete="flowui-complete",e.AssistantWidgetComplete="assistant-widget-complete",e.AssistantWidgetPending="assistant-widget-pending",e.DynamicComponentComplete="dynamic-component-complete",e.DynamicComponentPending="dynamic-component-pending",e))(Oe||{});function wc(e){var o;if(!e)return[];const t=[],n=new Set,u=dc(e);for(const r of u)if(cc(r))if(lc(r)){const a=yi(r);t.push({type:Oe.AssistantWidgetComplete,raw:r,widgetData:a,widgetUrl:(o=a==null?void 0:a.renderer)==null?void 0:o.url,widgetImplOptions:fc(r)})}else t.push({type:Oe.AssistantWidgetPending,raw:r});else{const a=xc(r);for(const s of a)if(gc(s))if(s.endsWith("```")){const l=bc(s);if(l!=null&&l.instanceId){if(n.has(l.instanceId))continue;n.add(l.instanceId),t.push({type:Oe.DynamicComponentComplete,raw:s,config:l})}}else{const l=yc(s);t.push({type:Oe.DynamicComponentPending,raw:s,position:(l==null?void 0:l.position)??null})}else s.trim()&&t.push({type:Oe.Text,raw:s})}return t}const xi={};function vc(e){let t=xi[e];if(t)return t;t=xi[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);t.push(u)}for(let n=0;n<e.length;n++){const u=e.charCodeAt(n);t[u]="%"+("0"+u.toString(16).toUpperCase()).slice(-2)}return t}function cn(e,t){typeof t!="string"&&(t=cn.defaultChars);const n=vc(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(u){let o="";for(let r=0,a=u.length;r<a;r+=3){const s=parseInt(u.slice(r+1,r+3),16);if(s<128){o+=n[s];continue}if((s&224)===192&&r+3<a){const l=parseInt(u.slice(r+4,r+6),16);if((l&192)===128){const d=s<<6&1984|l&63;d<128?o+="��":o+=String.fromCharCode(d),r+=3;continue}}if((s&240)===224&&r+6<a){const l=parseInt(u.slice(r+4,r+6),16),d=parseInt(u.slice(r+7,r+9),16);if((l&192)===128&&(d&192)===128){const f=s<<12&61440|l<<6&4032|d&63;f<2048||f>=55296&&f<=57343?o+="���":o+=String.fromCharCode(f),r+=6;continue}}if((s&248)===240&&r+9<a){const l=parseInt(u.slice(r+4,r+6),16),d=parseInt(u.slice(r+7,r+9),16),f=parseInt(u.slice(r+10,r+12),16);if((l&192)===128&&(d&192)===128&&(f&192)===128){let c=s<<18&1835008|l<<12&258048|d<<6&4032|f&63;c<65536||c>1114111?o+="����":(c-=65536,o+=String.fromCharCode(55296+(c>>10),56320+(c&1023))),r+=9;continue}}o+="�"}return o})}cn.defaultChars=";/?:@&=+$,#",cn.componentChars="";const wi={};function Ac(e){let t=wi[e];if(t)return t;t=wi[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);/^[0-9a-z]$/i.test(u)?t.push(u):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Bn(e,t,n){typeof t!="string"&&(n=t,t=Bn.defaultChars),typeof n>"u"&&(n=!0);const u=Ac(t);let o="";for(let r=0,a=e.length;r<a;r++){const s=e.charCodeAt(r);if(n&&s===37&&r+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3))){o+=e.slice(r,r+3),r+=2;continue}if(s<128){o+=u[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&r+1<a){const l=e.charCodeAt(r+1);if(l>=56320&&l<=57343){o+=encodeURIComponent(e[r]+e[r+1]),r++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[r])}return o}Bn.defaultChars=";/?:@&=+$,-_.!~*'()#",Bn.componentChars="-_.!~*'()";function $u(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function Pr(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const kc=/^([a-z0-9.+-]+:)/i,Cc=/:[0-9]*$/,_c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Ec=["<",">",'"',"`"," ","\r",`
2
- `," "],Sc=["{","}","|","\\","^","`"].concat(Ec),Fc=["'"].concat(Sc),vi=["%","/","?",";","#"].concat(Fc),Ai=["/","?","#"],Dc=255,ki=/^[+a-z0-9A-Z_-]{0,63}$/,Tc=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ci={javascript:!0,"javascript:":!0},_i={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Uu(e,t){if(e&&e instanceof Pr)return e;const n=new Pr;return n.parse(e,t),n}Pr.prototype.parse=function(e,t){let n,u,o,r=e;if(r=r.trim(),!t&&e.split("#").length===1){const d=_c.exec(r);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}let a=kc.exec(r);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,r=r.substr(a.length)),(t||a||r.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=r.substr(0,2)==="//",o&&!(a&&Ci[a])&&(r=r.substr(2),this.slashes=!0)),!Ci[a]&&(o||a&&!_i[a])){let d=-1;for(let p=0;p<Ai.length;p++)u=r.indexOf(Ai[p]),u!==-1&&(d===-1||u<d)&&(d=u);let f,c;d===-1?c=r.lastIndexOf("@"):c=r.lastIndexOf("@",d),c!==-1&&(f=r.slice(0,c),r=r.slice(c+1),this.auth=f),d=-1;for(let p=0;p<vi.length;p++)u=r.indexOf(vi[p]),u!==-1&&(d===-1||u<d)&&(d=u);d===-1&&(d=r.length),r[d-1]===":"&&d--;const h=r.slice(0,d);r=r.slice(d),this.parseHost(h),this.hostname=this.hostname||"";const m=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!m){const p=this.hostname.split(/\./);for(let w=0,y=p.length;w<y;w++){const A=p[w];if(A&&!A.match(ki)){let b="";for(let g=0,x=A.length;g<x;g++)A.charCodeAt(g)>127?b+="x":b+=A[g];if(!b.match(ki)){const g=p.slice(0,w),x=p.slice(w+1),k=A.match(Tc);k&&(g.push(k[1]),x.unshift(k[2])),x.length&&(r=x.join(".")+r),this.hostname=g.join(".");break}}}}this.hostname.length>Dc&&(this.hostname=""),m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=r.indexOf("#");s!==-1&&(this.hash=r.substr(s),r=r.slice(0,s));const l=r.indexOf("?");return l!==-1&&(this.search=r.substr(l),r=r.slice(0,l)),r&&(this.pathname=r),_i[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Pr.prototype.parseHost=function(e){let t=Cc.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const Nc=Object.freeze(Object.defineProperty({__proto__:null,decode:cn,encode:Bn,format:$u,parse:Uu},Symbol.toStringTag,{value:"Module"})),Ei=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Si=/[\0-\x1F\x7F-\x9F]/,Lc=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Wu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Fi=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Di=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Ic=Object.freeze(Object.defineProperty({__proto__:null,Any:Ei,Cc:Si,Cf:Lc,P:Wu,S:Fi,Z:Di},Symbol.toStringTag,{value:"Module"})),Oc=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Pc=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Gu;const Vc=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Rc=(Gu=String.fromCodePoint)!==null&&Gu!==void 0?Gu:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Mc(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Vc.get(e))!==null&&t!==void 0?t:e}var _e;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(_e||(_e={}));const Bc=32;var Rt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Rt||(Rt={}));function Xu(e){return e>=_e.ZERO&&e<=_e.NINE}function zc(e){return e>=_e.UPPER_A&&e<=_e.UPPER_F||e>=_e.LOWER_A&&e<=_e.LOWER_F}function jc(e){return e>=_e.UPPER_A&&e<=_e.UPPER_Z||e>=_e.LOWER_A&&e<=_e.LOWER_Z||Xu(e)}function Hc(e){return e===_e.EQUALS||jc(e)}var Ee;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Ee||(Ee={}));var Mt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Mt||(Mt={}));class $c{constructor(t,n,u){this.decodeTree=t,this.emitCodePoint=n,this.errors=u,this.state=Ee.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Mt.Strict}startEntity(t){this.decodeMode=t,this.state=Ee.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Ee.EntityStart:return t.charCodeAt(n)===_e.NUM?(this.state=Ee.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Ee.NamedEntity,this.stateNamedEntity(t,n));case Ee.NumericStart:return this.stateNumericStart(t,n);case Ee.NumericDecimal:return this.stateNumericDecimal(t,n);case Ee.NumericHex:return this.stateNumericHex(t,n);case Ee.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Bc)===_e.LOWER_X?(this.state=Ee.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Ee.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,u,o){if(n!==u){const r=u-n;this.result=this.result*Math.pow(o,r)+parseInt(t.substr(n,r),o),this.consumed+=r}}stateNumericHex(t,n){const u=n;for(;n<t.length;){const o=t.charCodeAt(n);if(Xu(o)||zc(o))n+=1;else return this.addToNumericResult(t,u,n,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(t,u,n,16),-1}stateNumericDecimal(t,n){const u=n;for(;n<t.length;){const o=t.charCodeAt(n);if(Xu(o))n+=1;else return this.addToNumericResult(t,u,n,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(t,u,n,10),-1}emitNumericEntity(t,n){var u;if(this.consumed<=n)return(u=this.errors)===null||u===void 0||u.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===_e.SEMI)this.consumed+=1;else if(this.decodeMode===Mt.Strict)return 0;return this.emitCodePoint(Mc(this.result),this.consumed),this.errors&&(t!==_e.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:u}=this;let o=u[this.treeIndex],r=(o&Rt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=Uc(u,o,this.treeIndex+Math.max(1,r),a),this.treeIndex<0)return this.result===0||this.decodeMode===Mt.Attribute&&(r===0||Hc(a))?0:this.emitNotTerminatedNamedEntity();if(o=u[this.treeIndex],r=(o&Rt.VALUE_LENGTH)>>14,r!==0){if(a===_e.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==Mt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:u}=this,o=(u[n]&Rt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,o,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,u){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~Rt.VALUE_LENGTH:o[t+1],u),n===3&&this.emitCodePoint(o[t+2],u),u}end(){var t;switch(this.state){case Ee.NamedEntity:return this.result!==0&&(this.decodeMode!==Mt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ee.NumericDecimal:return this.emitNumericEntity(0,2);case Ee.NumericHex:return this.emitNumericEntity(0,3);case Ee.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ee.EntityStart:return 0}}}function Ti(e){let t="";const n=new $c(e,u=>t+=Rc(u));return function(o,r){let a=0,s=0;for(;(s=o.indexOf("&",s))>=0;){t+=o.slice(a,s),n.startEntity(r);const d=n.write(o,s+1);if(d<0){a=s+n.end();break}a=s+d,s=d===0?a+1:a}const l=t+o.slice(a);return t="",l}}function Uc(e,t,n,u){const o=(t&Rt.BRANCH_LENGTH)>>7,r=t&Rt.JUMP_TABLE;if(o===0)return r!==0&&u===r?n:-1;if(r){const l=u-r;return l<0||l>=o?-1:e[n+l]-1}let a=n,s=a+o-1;for(;a<=s;){const l=a+s>>>1,d=e[l];if(d<u)a=l+1;else if(d>u)s=l-1;else return e[l+o]}return-1}const Wc=Ti(Oc);Ti(Pc);function Ni(e,t=Mt.Legacy){return Wc(e,t)}function Gc(e){return Object.prototype.toString.call(e)}function qu(e){return Gc(e)==="[object String]"}const Xc=Object.prototype.hasOwnProperty;function qc(e,t){return Xc.call(e,t)}function Vr(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(u){e[u]=n[u]})}}),e}function Li(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Zu(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Rr(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const Ii=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Zc=/&([a-z#][a-z0-9]{1,31});/gi,Yc=new RegExp(Ii.source+"|"+Zc.source,"gi"),Kc=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Qc(e,t){if(t.charCodeAt(0)===35&&Kc.test(t)){const u=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Zu(u)?Rr(u):e}const n=Ni(e);return n!==e?n:e}function Jc(e){return e.indexOf("\\")<0?e:e.replace(Ii,"$1")}function dn(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Yc,function(t,n,u){return n||Qc(t,u)})}const e0=/[&<>"]/,t0=/[&<>"]/g,n0={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function r0(e){return n0[e]}function Bt(e){return e0.test(e)?e.replace(t0,r0):e}const u0=/[.?*+^$[\]\\(){}|-]/g;function o0(e){return e.replace(u0,"\\$&")}function ce(e){switch(e){case 9:case 32:return!0}return!1}function zn(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function jn(e){return Wu.test(e)||Fi.test(e)}function Hn(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Mr(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const i0=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Li,assign:Vr,escapeHtml:Bt,escapeRE:o0,fromCodePoint:Rr,has:qc,isMdAsciiPunct:Hn,isPunctChar:jn,isSpace:ce,isString:qu,isValidEntityCode:Zu,isWhiteSpace:zn,lib:{mdurl:Nc,ucmicro:Ic},normalizeReference:Mr,unescapeAll:dn,unescapeMd:Jc},Symbol.toStringTag,{value:"Module"}));function a0(e,t,n){let u,o,r,a;const s=e.posMax,l=e.pos;for(e.pos=t+1,u=1;e.pos<s;){if(r=e.src.charCodeAt(e.pos),r===93&&(u--,u===0)){o=!0;break}if(a=e.pos,e.md.inline.skipToken(e),r===91){if(a===e.pos-1)u++;else if(n)return e.pos=l,-1}}let d=-1;return o&&(d=e.pos),e.pos=l,d}function s0(e,t,n){let u,o=t;const r={ok:!1,pos:0,str:""};if(e.charCodeAt(o)===60){for(o++;o<n;){if(u=e.charCodeAt(o),u===10||u===60)return r;if(u===62)return r.pos=o+1,r.str=dn(e.slice(t+1,o)),r.ok=!0,r;if(u===92&&o+1<n){o+=2;continue}o++}return r}let a=0;for(;o<n&&(u=e.charCodeAt(o),!(u===32||u<32||u===127));){if(u===92&&o+1<n){if(e.charCodeAt(o+1)===32)break;o+=2;continue}if(u===40&&(a++,a>32))return r;if(u===41){if(a===0)break;a--}o++}return t===o||a!==0||(r.str=dn(e.slice(t,o)),r.pos=o,r.ok=!0),r}function l0(e,t,n,u){let o,r=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(u)a.str=u.str,a.marker=u.marker;else{if(r>=n)return a;let s=e.charCodeAt(r);if(s!==34&&s!==39&&s!==40)return a;t++,r++,s===40&&(s=41),a.marker=s}for(;r<n;){if(o=e.charCodeAt(r),o===a.marker)return a.pos=r+1,a.str+=dn(e.slice(t,r)),a.ok=!0,a;if(o===40&&a.marker===41)return a;o===92&&r+1<n&&r++,r++}return a.can_continue=!0,a.str+=dn(e.slice(t,r)),a}const c0=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:s0,parseLinkLabel:a0,parseLinkTitle:l0},Symbol.toStringTag,{value:"Module"})),xt={};xt.code_inline=function(e,t,n,u,o){const r=e[t];return"<code"+o.renderAttrs(r)+">"+Bt(r.content)+"</code>"},xt.code_block=function(e,t,n,u,o){const r=e[t];return"<pre"+o.renderAttrs(r)+"><code>"+Bt(e[t].content)+`</code></pre>
3
- `},xt.fence=function(e,t,n,u,o){const r=e[t],a=r.info?dn(r.info).trim():"";let s="",l="";if(a){const f=a.split(/(\s+)/g);s=f[0],l=f.slice(2).join("")}let d;if(n.highlight?d=n.highlight(r.content,s,l)||Bt(r.content):d=Bt(r.content),d.indexOf("<pre")===0)return d+`
1
+ (function(O,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(O=typeof globalThis<"u"?globalThis:O||self,i(O.FarrisX={},O.vue))})(this,function(O,i){"use strict";var q1=Object.defineProperty;var Wl=O=>{throw TypeError(O)};var Z1=(O,i,be)=>i in O?q1(O,i,{enumerable:!0,configurable:!0,writable:!0,value:be}):O[i]=be;var fe=(O,i,be)=>Z1(O,typeof i!="symbol"?i+"":i,be),ai=(O,i,be)=>i.has(O)||Wl("Cannot "+be);var v=(O,i,be)=>(ai(O,i,"read from private field"),be?be.call(O):i.get(O)),ie=(O,i,be)=>i.has(O)?Wl("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(O):i.set(O,be),ee=(O,i,be,at)=>(ai(O,i,"write to private field"),at?at.call(O,be):i.set(O,be),be),q=(O,i,be)=>(ai(O,i,"access private method"),be);var Ru=(O,i,be,at)=>({set _(Ir){ee(O,i,Ir,be)},get _(){return v(O,i,at)}});var _l,Tt,Sn,El,Sl,it,Je,ct,rn,dt,Dn,Tn,ft,ke,ht,we,he,ne,$e,et,Re,Se,mt,De,pt,gt,tt,nt,bt,Gt,Ue,Fn,G,si,un,It,Sr,rt,Gl,on,Nn,Dr,qt,Zt,li,Mu,Bu,me,ci,Nr,Yt,di,In;const be={content:{type:Object,required:!0},onOpen:{type:Function,default:void 0}},at=i.defineComponent({name:"AppPreviewMessage",props:be,setup(e){const t=i.ref(!1);function n(){var h;const a=(h=e.content)==null?void 0:h.appConfig;if(!a)return"";const s=a.ws??"",l=a.appPath??"",d=a.appObjectId??"";return`${a.appBuilderUri??"/apps/platform/development-platform/ide/app-builder/index.html"}?path=${l}&boId=${d}&ws=${s}&version=2.0#/home`}function u(){var s,l;const a=(s=e.content)==null?void 0:s.previewConfig;a&&e.onOpen&&e.onOpen({...a,title:a.title??((l=e.content)==null?void 0:l.appName)})}function o(a){const s=a.target;s!=null&&s.closest(".f-chat-app-preview-open-btn")||a.preventDefault()}function r(a){a.stopPropagation();const s=n();s&&window.open(s,"_blank")}return()=>{const a=e.content;if(!a)return null;const{message:s,appName:l,createdDatetime:d}=a;return i.createVNode("div",{class:"f-chat-message-app-preview"},[i.createVNode("div",{class:"f-chat-app-preview-message"},[s]),i.createVNode("div",{class:"f-chat-app-preview-card",onMouseenter:()=>t.value=!0,onMouseleave:()=>t.value=!1,onMousedown:o,onClick:u,role:"button",tabindex:0,onKeydown:f=>f.key==="Enter"&&u()},[i.createVNode("div",{class:"f-chat-app-preview-card-left"},[i.createVNode("span",{class:"f-chat-app-preview-icon"},[i.createVNode("i",{class:"fx-icon fx-icon-bubble_star"},null)])]),i.createVNode("div",{class:"f-chat-app-preview-card-middle"},[i.createVNode("div",{class:"f-chat-app-preview-app-name"},[l]),i.createVNode("div",{class:"f-chat-app-preview-datetime"},[d])]),i.createVNode("div",{class:"f-chat-app-preview-card-right"},[i.createVNode("div",{class:"f-chat-app-preview-action-area"},null),t.value&&i.createVNode("button",{type:"button",class:"f-chat-app-preview-open-btn",onClick:r,title:"在新页签中打开","aria-label":"在新页签中打开"},[i.createVNode("i",{class:"fx-icon fx-icon-folder-open"},null)])])])])}}});at.install=e=>{e.component(at.name,at)};const Ir={content:{type:Object,required:!0},outputMode:{type:String,default:"streaming"},classNames:{type:Object,default:()=>({})},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},header:{type:String,default:"sender"},placement:{type:String,default:"start"},showAvatar:{type:Boolean,default:!0},styles:{type:Object,default:()=>({})},attachments:{type:Array,default:()=>[]},onPreview:{type:Function,default:void 0},onUserAuthConfirm:{type:Function,default:void 0},compositeTailRender:{type:Function,default:void 0},onDynamicComponentsDetected:{type:Function,default:void 0},onShowDynamicComponent:{type:Function,default:void 0},attachmentRowClickOpensPreview:{type:Boolean,default:!0},attachmentShowDownload:{type:Boolean,default:!0},role:{type:String,default:"assistant"}},zu={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},Xl="/api/runtime/attachment";function ql(){try{const e=zu==null?void 0:zu.VITE_ATTACHMENT_API_BASE;if(typeof e=="string"&&e.trim()!=="")return e.replace(/\/+$/,"")}catch{}return""}function Zl(e){var n;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:typeof window<"u"&&((n=window.location)!=null&&n.origin)&&t.startsWith("/")?`${window.location.origin}${t}`:t}function Yl(e){return`${Xl}/${encodeURIComponent(e)}/download`}function ju(e){const t=String(e??"").trim();if(!t)return"";const n=Yl(t),u=ql();return u?`${u}${n}`:n}function fi(e){const t=e.trim().match(/\/api\/runtime\/attachment\/([^/]+)\/download(?:\?|#|$)/i);if(!(t!=null&&t[1]))return"";try{return decodeURIComponent(t[1]).trim()}catch{return t[1].trim()}}function sn(e){const t=String(e.fileId??"").trim();if(t)return ju(t);const n=String(e.url??"").trim();if(!n)return;const u=fi(n);if(u)return ju(u);if(n.startsWith("http://")||n.startsWith("https://")||n.startsWith("/"))return n}async function Or(e,t){const n=String(t??"").replace(/[/\\]/g,"_").trim()||"download",u=Zl(e);try{const o=await fetch(u,{credentials:"include",mode:"cors"});if(!o.ok)throw new Error(`download_http_${o.status}`);const r=await o.blob(),a=URL.createObjectURL(r),s=document.createElement("a");s.href=a,s.download=n,s.rel="noopener noreferrer",document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(a)}catch{const o=document.createElement("a");o.href=u,o.target="_blank",o.rel="noopener noreferrer",document.body.appendChild(o),o.click(),document.body.removeChild(o)}}function ye(e,t){return t&&(typeof t=="string"?t.split(" ").filter(Boolean).forEach(u=>{e[u]=!0}):Array.isArray(t)?t.forEach(n=>{n&&(e[n]=!0)}):typeof t=="object"&&Object.entries(t).forEach(([n,u])=>{n&&u&&(e[n]=!0)})),e}function Ae(e,t){return t&&(typeof t=="string"?t.split(";").filter(Boolean).forEach(u=>{var r,a;const o=u.split(":");if(o.length>=2&&((r=o[0])!=null&&r.trim())&&((a=o[1])!=null&&a.trim())){const s=o[0].trim(),l=o.slice(1).join(":").trim();e[s]=l}}):typeof t=="object"&&Object.entries(t).forEach(([n,u])=>{n&&u!==void 0&&u!==null&&(e[n]=u)})),e}function Mn(e){return e||null}function hi(e){return e?/\.(jpg|jpeg|png|gif|svg|webp|bmp|ico)$/i.test(e)||e.startsWith("http")||e.startsWith("data:image"):!1}function Lr(e){return e?typeof e!="string"?e:hi(e)?i.h("img",{src:e,alt:"icon",class:"fx-prompt--item-icon-image",onError:t=>{const n=t.target;n.style.display="none",n.parentElement.innerHTML='<i class="fx-icon fx-icon-warning"></i>'}}):e.includes("fx-icon")||e.includes("icon-")?i.h("i",{class:e}):e:null}function mi(e,t,n,u={}){const{charInterval:o=30}=u,r=i.ref({});let a=[],s=new Set;const l=()=>typeof t=="function"?t():t.value,d=()=>typeof n=="function"?n():n.value,f=()=>{a.forEach(m=>clearInterval(m)),a=[]},c=()=>{f(),r.value={},s.clear()},h=()=>{f(),r.value={},s.clear()},p=()=>{const m=e();if(!m||Object.keys(m).length===0){r.value={};return}if(!d()){r.value={...m},s=new Set(Object.keys(m));return}const w=Object.keys(m);w.forEach(g=>{r.value.hasOwnProperty(g)||(r.value[g]="")});const y=w.filter(g=>!s.has(g));if(y.length===0)return;let A=0;const b=()=>{var T;if(A>=y.length)return;const g=y[A],x=m[g];if(!x){s.add(g),A++,b();return}let k=((T=r.value[g])==null?void 0:T.length)||0;const F=setInterval(()=>{k<x.length?(r.value={...r.value,[g]:x.slice(0,k+1)},k++):(clearInterval(F),a=a.filter(D=>D!==F),s.add(g),A++,b())},o);a.push(F)};b()};return i.watch(()=>e(),()=>{l()&&p()},{immediate:!0}),i.watch(n,()=>{h(),l()&&p()}),i.watch(t,m=>{m?p():c()}),i.onMounted(()=>{l()&&p()}),{displayContent:r}}function Pr(){const e=i.reactive({}),t=[],n=i.ref(null);let u=null;const o=30,r=m=>{const w=e[m];return!w||w.displayedLength>=w.rawValue.length},a=i.computed(()=>Object.keys(e).length===0?!1:Object.keys(e).every(m=>r(m))),s=()=>{for(const m of t)if(!r(m))return m;return null},l=()=>{if(!n.value&&(n.value=s(),!n.value)){d();return}const m=e[n.value];m&&(m.displayedLength<m.rawValue.length?(m.displayedLength++,m.displayedValue=m.rawValue.slice(0,m.displayedLength),m.isStreaming=!0):(m.isStreaming=!1,m.displayedValue=m.rawValue,n.value=s(),n.value||d()))},d=()=>{u&&(clearInterval(u),u=null)},f=()=>{u||(u=setInterval(l,o))},c=()=>{d(),Object.keys(e).forEach(m=>{delete e[m]}),t.length=0,n.value=null},h=(m,w)=>{if(e[m]){p(m,w);return}t.push(m),e[m]={rawValue:w??"",displayedLength:0,isStreaming:!1,displayedValue:""},u||(!n.value||n.value===m)&&f()},p=(m,w)=>{const y=e[m];if(!y){h(m,w);return}y.rawValue=w??"",!u&&!r(m)&&(!n.value||n.value===m)&&f()};return i.onUnmounted(()=>{d()}),{propertyStates:e,currentProperty:n,get isAnyStreaming(){return Object.values(e).some(m=>m.isStreaming)},isAllDone:a,startStreaming:f,reset:c,registerProperty:h,updatePropertyValue:p}}function Hu(){const e=i.ref(null),t=i.ref(0),n=i.ref(!1);let u=null;const o=()=>{e.value=Date.now(),n.value=!0,u=setInterval(()=>{e.value&&(t.value=Math.floor((Date.now()-e.value)/1e3))},1e3)},r=()=>{u&&(clearInterval(u),u=null),e.value&&(t.value=Math.floor((Date.now()-e.value)/1e3))};return{elapsedSeconds:t,hasEverStarted:n,start:o,stop:r,reset:()=>{r(),e.value=null,t.value=0,n.value=!1}}}function Kl(e){return e.scrollWidth>e.clientWidth}function pi(){Kl(this)?this.title=this.textContent??"":this.removeAttribute("title")}function gi(){this.removeAttribute("title")}const bi={mounted(e){e.addEventListener("mouseenter",pi),e.addEventListener("mouseleave",gi)},updated(e){e.removeAttribute("title")},unmounted(e){e.removeEventListener("mouseenter",pi),e.removeEventListener("mouseleave",gi)}};function Ql(e,t){const n=i.computed(()=>{var o;return Ae({},(o=e.styles)==null?void 0:o.header)});function u(){return t.slots.header&&i.createVNode("div",{class:`f-chat-bubble-header ${e.placement}`,style:n.value},[t.slots.header()])}return{renderHeader:u}}function Jl(e,t){var r;const n=i.ref(((r=e.content)==null?void 0:r.sender)??"发送人"),u=i.computed(()=>{var a;return Ae({},(a=e.styles)==null?void 0:a.header)});function o(){return i.createVNode("div",{class:`f-chat-bubble-header ${e.placement}`,style:u.value},[n.value])}return{renderHeader:o}}const ec={file:{type:Object,required:!0},customStyle:{type:Object,default:()=>({})},onPreviewFile:{type:Function,default:void 0},onBatchPreviewFile:{type:Function,default:void 0}},tc={role:{type:String,default:"assistant"},attachments:{type:Array,default:()=>[]},enableBatchPreview:{type:Boolean,default:!1},enableFixedWidth:{type:Boolean,default:!1},showDownloadButton:{type:Boolean,default:!0},onPreview:{type:Function,default:void 0},onBatchPreview:{type:Function,default:void 0}};function nc(){return{getFileIcon:u=>({pdf:"file-type-pdf",doc:"file-type-doc",docx:"file-type-doc",xls:"file-type-xls",xlsx:"file-type-xls",ppt:"file-type-ppt",pptx:"file-type-ppt",txt:"file-type-txt",zip:"file-type-zip",rar:"file-type-zip",image:"file-type-img",img:"file-type-img",md:"file-type-md",video:"file-type-any",audio:"file-type-any"})[u.toLowerCase()]||"file-type-any",formatFileName:u=>(u==null?void 0:u.replace(/\.[^.]+$/,""))??"",formatFileSize:u=>u<1024?u+" B":u<1048576?(u/1024).toFixed(1)+" KB":(u/1048576).toFixed(1)+" MB"}}const yi=i.defineComponent({name:"FXBubbleAttachment",props:tc,emits:["preview","batchPreview"],setup(e,t){const n=i.computed(()=>e.attachments??[]),u=i.computed(()=>{var y;return((y=n.value)==null?void 0:y.length)>0}),{formatFileName:o,formatFileSize:r}=nc(),a=i.computed(()=>({"f-chat-bubble-attachment-info":!0,"f-utils-fill":e.enableFixedWidth})),s=i.computed(()=>({"f-chat-bubble-attachment-name":!0,"name-tip":e.enableFixedWidth}));function l(y,A){t.emit("preview",A)}async function d(y,A){y.stopPropagation(),y.preventDefault();const b=sn(A);b&&await Or(b,A.name)}function f(y){t.emit("batchPreview",n.value)}function c(y){switch(y.toLowerCase()){case"doc":case"docx":return"Word";case"xlsx":case"xls":return"Excel";case"ppt":case"pptx":return"PPT";case"txt":return"txt";case"png":case"jpg":case"jpeg":return"Image";case"pdf":return"PDF";case"md":return"Markdown";default:return""}}function h(y){return y?{pdf:"file-type-pdf",doc:"file-type-doc",docx:"file-type-doc",xls:"file-type-xls",xlsx:"file-type-xls",ppt:"file-type-ppt",pptx:"file-type-ppt",txt:"file-type-txt",md:"file-type-md",jpg:"file-type-img",jpeg:"file-type-img",png:"file-type-img",gif:"file-type-img",webp:"file-type-img",html:"file-type-html"}[y.toLowerCase()]||"file-type-any":""}function p(y){if(!y)return null;const A=c(y.type);return i.createVNode("div",{class:"file-info f-utils-fill"},[i.createVNode("span",{class:"file-name",title:y.name},[y.name]),i.createVNode("div",{class:"file-info-footer"},[i.createVNode("span",{class:`file-icon ${h(y.type)}`},null),A&&i.createVNode(i.Fragment,null,[i.createVNode("span",{class:"file-type"},[c(y.type)])]),y.size&&i.createVNode(i.Fragment,null,[i.createVNode("div",{class:"file-info-divider"},null),i.createTextVNode(" "),i.createVNode("span",{class:"file-size"},[r(y.size)])])])])}function m(y,A){const b=sn(y);return i.createVNode("div",{class:"f-chat-bubble-attachment-item",key:A},[i.createVNode("div",{class:"f-chat-bubble-attachment-main",role:"presentation",onClick:g=>l(g,y)},[i.createVNode("div",{class:a.value},[i.createVNode("span",{class:s.value,title:y.name},[o(y.name)]),y.size?i.createVNode("span",{class:"f-chat-bubble-attachment-size"},[r(y.size)]):null])]),e.showDownloadButton!==!1&&b?i.createVNode("button",{type:"button",class:"f-chat-bubble-attachment-download-btn","aria-label":"下载附件",title:"下载",onClick:g=>d(g,y)},[i.createVNode("i",{class:"fx-icon fx-icon-sidewindow_download","aria-hidden":"true"},null)]):null])}function w(y,A){return i.createVNode("div",{class:"f-chat-bubble-attachment-toast",key:A},[p(y)])}return()=>u.value?i.createVNode("div",{class:{"f-chat-bubble-attachments":!0,"attachments-toast":e.role==="user"}},[n.value.map((y,A)=>e.role==="user"?w(y,A):m(y,A)),e.enableBatchPreview&&i.createVNode("div",{class:"f-chat-bubble-attachment-preview-btn",onClick:f},[i.createVNode("span",{class:"f-chat-bubble-attachment-preview-btn-text"},[i.createTextVNode("查看全部文件")]),i.createVNode("i",{class:"fx-icon fx-icon-sort-asc-sm",style:{transform:"rotate(90deg)"}},null)])]):null}}),rc=i.defineComponent({name:"FXBubbleFileContentFooter",props:ec,setup(e,t){const n=i.computed(()=>e.file?Array.isArray(e.file)?[...e.file]:[e.file]:[]);return Ae({},e.customStyle),()=>i.createVNode(yi,{attachments:n.value,onPreview:u=>{var o;return(o=e.onPreviewFile)==null?void 0:o.call(e,u)},onBatchPreview:u=>{var o;return(o=e.onBatchPreviewFile)==null?void 0:o.call(e,u)}},null)}}),uc={pageUrl:{type:String,required:!0},customStyle:{type:Object,default:()=>({})},onNavigate:{type:Function,default:void 0}},oc=i.defineComponent({name:"FXBubblePageContentFooter",props:uc,setup(e,t){const n=i.ref(),u=i.computed(()=>{var a,s;const r={width:"100%",height:"100%",border:"none"};return(a=e.customStyle)!=null&&a.width&&(r.width=e.customStyle.width),(s=e.customStyle)!=null&&s.height&&(r.height=`${e.customStyle.height}px`),r}),o=r=>{var a,s;((a=r.data)==null?void 0:a.type)==="navigation"&&((s=r.data)!=null&&s.url)&&e.onNavigate&&e.onNavigate(r.data.url)};return i.onMounted(()=>{window.addEventListener("message",o)}),i.onUnmounted(()=>{window.removeEventListener("message",o)}),()=>i.createVNode("iframe",{ref:n,src:e.pageUrl,style:u.value,scrolling:"auto"},null)}});function xi(){function e(o,r){const{fileContent:a,height:s,width:l}=o;return{file:a,customStyle:{width:l||"100%",height:s||"100%"},onPreviewFile:r==null?void 0:r.onPreviewFile,onBatchPreviewFile:r==null?void 0:r.onBatchPreviewFile}}function t(o,r){const{pageUrl:a,height:s,width:l}=o;return{pageUrl:a,customStyle:{width:l||"100%",height:s||"100%"},onNavigate:r==null?void 0:r.onNavigate}}function n(o,r){const a=e(o,r);return i.h(rc,a)}function u(o,r){const a=t(o,r);return i.h(oc,a)}return{renderFileEmbeddedContent:n,renderPageEmbeddedContent:u}}const ic={title:{type:String,default:""},subtitle:{type:String,default:""},text:{type:String,default:""},textFormat:{type:String,default:"plain"},placement:{type:String,default:"start"},onDynamicComponentsDetected:{type:Function,default:void 0},onShowDynamicComponent:{type:Function,default:void 0}};function ac(e){return e.replace(/```\s*\n+\s*assistant-widget/g,"``` assistant-widget")}const wi=/^```\s*assistant-widget[\s\S]*?```$/,sc=/^```\s*assistant-widget/,lc=/^```\s*([a-zA-Z0-9-]*)$/;function cc(e){const t=e.match(lc);if(!t)return!1;const n=(t[1]??"").toLowerCase();return n===""||"assistant-widget".startsWith(n)}function dc(e){return e?wi.test(e):!1}function fc(e){return e?wi.test(e)||sc.test(e)||cc(e):!1}function hc(e){if(!e)return[];const t=/(```[\s]*assistant-widget[\s\S]*?```)/g,n=[];let u=0,o;for(;(o=t.exec(e))!==null;){if(o.index>u){const r=e.slice(u,o.index),a=/(```[\s]*assistant-widget)/,s=r.match(a);if(s){const l=r.indexOf(s[0]);l>0&&n.push(r.slice(0,l)),n.push(r.slice(l));const d=r.slice(l+s[0].length);d.trim().length>0&&n.push(d)}else n.push(r)}n.push(ac(o[0])),u=o.index+o[0].length}if(u<e.length){const r=e.slice(u),a=/(```[\s]*assistant-widget)/,s=r.match(a);if(s){const l=r.indexOf(s[0]);l>0&&n.push(r.slice(0,l)),n.push(r.slice(l))}else n.push(r)}return n.filter(r=>r.trim().length>0)}function vi(e){const t=e.replace("``` assistant-widget","").replace("```","").trim();try{return JSON.parse(t)}catch(n){return console.error("Failed to parse JSON:",n),null}}function mc(e){var n;const t=vi(e);return((n=t==null?void 0:t.renderer)==null?void 0:n.widgetImplOptions)||{}}const pc=/^```\s*dynamic-component[\s\S]*?```$/,gc=/^```\s*dynamic-component/;function bc(e){return e.replace(/```\s*\n*\s*dynamic-component/g,"``` dynamic-component")}function yc(e){return e?pc.test(e)||gc.test(e):!1}function xc(e){const t=e.replace(/```\s*dynamic-component\s*\n?/,"").replace(/\n?\s*```/,"").trim();if(!t)return null;let n;try{n=JSON.parse(t)}catch{return null}if(!n||typeof n!="object"||Array.isArray(n))return null;const u=n;return typeof u.instanceId!="string"?null:{...u,instanceId:u.instanceId,name:typeof u.name=="string"?u.name:void 0,componentId:typeof u.componentId=="string"?u.componentId:void 0,jsUrl:typeof u.jsUrl=="string"?u.jsUrl:"",url:typeof u.url=="string"?u.url:"",title:typeof u.title=="string"?u.title:"预览",position:u.position==="inline"?"inline":"right",width:typeof u.width=="string"?u.width:void 0,isFullscreen:typeof u.isFullscreen=="boolean"?u.isFullscreen:!1,autoOpen:typeof u.autoOpen=="boolean"?u.autoOpen:!1,fileRe:typeof u.fileRe=="string"?u.fileRe:void 0,target:u.target==="preview"||u.target==="previewExtra"?u.target:void 0}}function wc(e){const t=e.replace(/```\s*dynamic-component\s*\n?/,"").replace(/\n?\s*```/,"").trim();if(!t)return null;const n=t.match(/"position"\s*:\s*"(inline|right)"/);return n?{position:n[1]}:null}function vc(e){if(!e)return[];const t="``` dynamic-component",n="```",u=[];let o=0;for(;o<e.length;){const r=e.indexOf(t,o);if(r===-1){const p=e.slice(o);p&&u.push(p);break}let a=r+t.length;const s=e.lastIndexOf("```",r),l=s>=0&&s<r+3?s:r,d=e.slice(o,l);d&&u.push(d);const f=e.indexOf(n,a);if(f===-1){u.push(e.slice(l));break}const c=f+n.length,h=e.slice(l,c);u.push(bc(h)),o=c}return u.filter(r=>r.length>0)}var Le=(e=>(e.Text="text",e.FlowUIComplete="flowui-complete",e.AssistantWidgetComplete="assistant-widget-complete",e.AssistantWidgetPending="assistant-widget-pending",e.DynamicComponentComplete="dynamic-component-complete",e.DynamicComponentPending="dynamic-component-pending",e))(Le||{});function Ac(e){var o;if(!e)return[];const t=[],n=new Set,u=hc(e);for(const r of u)if(fc(r))if(dc(r)){const a=vi(r);t.push({type:Le.AssistantWidgetComplete,raw:r,widgetData:a,widgetUrl:(o=a==null?void 0:a.renderer)==null?void 0:o.url,widgetImplOptions:mc(r)})}else t.push({type:Le.AssistantWidgetPending,raw:r});else{const a=vc(r);for(const s of a)if(yc(s))if(s.endsWith("```")){const l=xc(s);if(l!=null&&l.instanceId){if(n.has(l.instanceId))continue;n.add(l.instanceId),t.push({type:Le.DynamicComponentComplete,raw:s,config:l})}}else{const l=wc(s);t.push({type:Le.DynamicComponentPending,raw:s,position:(l==null?void 0:l.position)??null})}else s.trim()&&t.push({type:Le.Text,raw:s})}return t}const Ai={};function kc(e){let t=Ai[e];if(t)return t;t=Ai[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);t.push(u)}for(let n=0;n<e.length;n++){const u=e.charCodeAt(n);t[u]="%"+("0"+u.toString(16).toUpperCase()).slice(-2)}return t}function ln(e,t){typeof t!="string"&&(t=ln.defaultChars);const n=kc(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(u){let o="";for(let r=0,a=u.length;r<a;r+=3){const s=parseInt(u.slice(r+1,r+3),16);if(s<128){o+=n[s];continue}if((s&224)===192&&r+3<a){const l=parseInt(u.slice(r+4,r+6),16);if((l&192)===128){const d=s<<6&1984|l&63;d<128?o+="��":o+=String.fromCharCode(d),r+=3;continue}}if((s&240)===224&&r+6<a){const l=parseInt(u.slice(r+4,r+6),16),d=parseInt(u.slice(r+7,r+9),16);if((l&192)===128&&(d&192)===128){const f=s<<12&61440|l<<6&4032|d&63;f<2048||f>=55296&&f<=57343?o+="���":o+=String.fromCharCode(f),r+=6;continue}}if((s&248)===240&&r+9<a){const l=parseInt(u.slice(r+4,r+6),16),d=parseInt(u.slice(r+7,r+9),16),f=parseInt(u.slice(r+10,r+12),16);if((l&192)===128&&(d&192)===128&&(f&192)===128){let c=s<<18&1835008|l<<12&258048|d<<6&4032|f&63;c<65536||c>1114111?o+="����":(c-=65536,o+=String.fromCharCode(55296+(c>>10),56320+(c&1023))),r+=9;continue}}o+="�"}return o})}ln.defaultChars=";/?:@&=+$,#",ln.componentChars="";const ki={};function Cc(e){let t=ki[e];if(t)return t;t=ki[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);/^[0-9a-z]$/i.test(u)?t.push(u):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Bn(e,t,n){typeof t!="string"&&(n=t,t=Bn.defaultChars),typeof n>"u"&&(n=!0);const u=Cc(t);let o="";for(let r=0,a=e.length;r<a;r++){const s=e.charCodeAt(r);if(n&&s===37&&r+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3))){o+=e.slice(r,r+3),r+=2;continue}if(s<128){o+=u[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&r+1<a){const l=e.charCodeAt(r+1);if(l>=56320&&l<=57343){o+=encodeURIComponent(e[r]+e[r+1]),r++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[r])}return o}Bn.defaultChars=";/?:@&=+$,-_.!~*'()#",Bn.componentChars="-_.!~*'()";function $u(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function Vr(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const _c=/^([a-z0-9.+-]+:)/i,Ec=/:[0-9]*$/,Sc=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Dc=["<",">",'"',"`"," ","\r",`
2
+ `," "],Tc=["{","}","|","\\","^","`"].concat(Dc),Fc=["'"].concat(Tc),Ci=["%","/","?",";","#"].concat(Fc),_i=["/","?","#"],Nc=255,Ei=/^[+a-z0-9A-Z_-]{0,63}$/,Ic=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Si={javascript:!0,"javascript:":!0},Di={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Uu(e,t){if(e&&e instanceof Vr)return e;const n=new Vr;return n.parse(e,t),n}Vr.prototype.parse=function(e,t){let n,u,o,r=e;if(r=r.trim(),!t&&e.split("#").length===1){const d=Sc.exec(r);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}let a=_c.exec(r);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,r=r.substr(a.length)),(t||a||r.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=r.substr(0,2)==="//",o&&!(a&&Si[a])&&(r=r.substr(2),this.slashes=!0)),!Si[a]&&(o||a&&!Di[a])){let d=-1;for(let m=0;m<_i.length;m++)u=r.indexOf(_i[m]),u!==-1&&(d===-1||u<d)&&(d=u);let f,c;d===-1?c=r.lastIndexOf("@"):c=r.lastIndexOf("@",d),c!==-1&&(f=r.slice(0,c),r=r.slice(c+1),this.auth=f),d=-1;for(let m=0;m<Ci.length;m++)u=r.indexOf(Ci[m]),u!==-1&&(d===-1||u<d)&&(d=u);d===-1&&(d=r.length),r[d-1]===":"&&d--;const h=r.slice(0,d);r=r.slice(d),this.parseHost(h),this.hostname=this.hostname||"";const p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){const m=this.hostname.split(/\./);for(let w=0,y=m.length;w<y;w++){const A=m[w];if(A&&!A.match(Ei)){let b="";for(let g=0,x=A.length;g<x;g++)A.charCodeAt(g)>127?b+="x":b+=A[g];if(!b.match(Ei)){const g=m.slice(0,w),x=m.slice(w+1),k=A.match(Ic);k&&(g.push(k[1]),x.unshift(k[2])),x.length&&(r=x.join(".")+r),this.hostname=g.join(".");break}}}}this.hostname.length>Nc&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=r.indexOf("#");s!==-1&&(this.hash=r.substr(s),r=r.slice(0,s));const l=r.indexOf("?");return l!==-1&&(this.search=r.substr(l),r=r.slice(0,l)),r&&(this.pathname=r),Di[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Vr.prototype.parseHost=function(e){let t=Ec.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const Oc=Object.freeze(Object.defineProperty({__proto__:null,decode:ln,encode:Bn,format:$u,parse:Uu},Symbol.toStringTag,{value:"Module"})),Ti=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Fi=/[\0-\x1F\x7F-\x9F]/,Lc=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Wu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Ni=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Ii=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Pc=Object.freeze(Object.defineProperty({__proto__:null,Any:Ti,Cc:Fi,Cf:Lc,P:Wu,S:Ni,Z:Ii},Symbol.toStringTag,{value:"Module"})),Vc=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Rc=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Gu;const Mc=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Bc=(Gu=String.fromCodePoint)!==null&&Gu!==void 0?Gu:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function zc(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Mc.get(e))!==null&&t!==void 0?t:e}var _e;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(_e||(_e={}));const jc=32;var Rt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Rt||(Rt={}));function Xu(e){return e>=_e.ZERO&&e<=_e.NINE}function Hc(e){return e>=_e.UPPER_A&&e<=_e.UPPER_F||e>=_e.LOWER_A&&e<=_e.LOWER_F}function $c(e){return e>=_e.UPPER_A&&e<=_e.UPPER_Z||e>=_e.LOWER_A&&e<=_e.LOWER_Z||Xu(e)}function Uc(e){return e===_e.EQUALS||$c(e)}var Ee;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Ee||(Ee={}));var Mt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Mt||(Mt={}));class Wc{constructor(t,n,u){this.decodeTree=t,this.emitCodePoint=n,this.errors=u,this.state=Ee.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Mt.Strict}startEntity(t){this.decodeMode=t,this.state=Ee.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Ee.EntityStart:return t.charCodeAt(n)===_e.NUM?(this.state=Ee.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Ee.NamedEntity,this.stateNamedEntity(t,n));case Ee.NumericStart:return this.stateNumericStart(t,n);case Ee.NumericDecimal:return this.stateNumericDecimal(t,n);case Ee.NumericHex:return this.stateNumericHex(t,n);case Ee.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|jc)===_e.LOWER_X?(this.state=Ee.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Ee.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,u,o){if(n!==u){const r=u-n;this.result=this.result*Math.pow(o,r)+parseInt(t.substr(n,r),o),this.consumed+=r}}stateNumericHex(t,n){const u=n;for(;n<t.length;){const o=t.charCodeAt(n);if(Xu(o)||Hc(o))n+=1;else return this.addToNumericResult(t,u,n,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(t,u,n,16),-1}stateNumericDecimal(t,n){const u=n;for(;n<t.length;){const o=t.charCodeAt(n);if(Xu(o))n+=1;else return this.addToNumericResult(t,u,n,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(t,u,n,10),-1}emitNumericEntity(t,n){var u;if(this.consumed<=n)return(u=this.errors)===null||u===void 0||u.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===_e.SEMI)this.consumed+=1;else if(this.decodeMode===Mt.Strict)return 0;return this.emitCodePoint(zc(this.result),this.consumed),this.errors&&(t!==_e.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:u}=this;let o=u[this.treeIndex],r=(o&Rt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=Gc(u,o,this.treeIndex+Math.max(1,r),a),this.treeIndex<0)return this.result===0||this.decodeMode===Mt.Attribute&&(r===0||Uc(a))?0:this.emitNotTerminatedNamedEntity();if(o=u[this.treeIndex],r=(o&Rt.VALUE_LENGTH)>>14,r!==0){if(a===_e.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==Mt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:u}=this,o=(u[n]&Rt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,o,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,u){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~Rt.VALUE_LENGTH:o[t+1],u),n===3&&this.emitCodePoint(o[t+2],u),u}end(){var t;switch(this.state){case Ee.NamedEntity:return this.result!==0&&(this.decodeMode!==Mt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ee.NumericDecimal:return this.emitNumericEntity(0,2);case Ee.NumericHex:return this.emitNumericEntity(0,3);case Ee.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ee.EntityStart:return 0}}}function Oi(e){let t="";const n=new Wc(e,u=>t+=Bc(u));return function(o,r){let a=0,s=0;for(;(s=o.indexOf("&",s))>=0;){t+=o.slice(a,s),n.startEntity(r);const d=n.write(o,s+1);if(d<0){a=s+n.end();break}a=s+d,s=d===0?a+1:a}const l=t+o.slice(a);return t="",l}}function Gc(e,t,n,u){const o=(t&Rt.BRANCH_LENGTH)>>7,r=t&Rt.JUMP_TABLE;if(o===0)return r!==0&&u===r?n:-1;if(r){const l=u-r;return l<0||l>=o?-1:e[n+l]-1}let a=n,s=a+o-1;for(;a<=s;){const l=a+s>>>1,d=e[l];if(d<u)a=l+1;else if(d>u)s=l-1;else return e[l+o]}return-1}const Xc=Oi(Vc);Oi(Rc);function Li(e,t=Mt.Legacy){return Xc(e,t)}function qc(e){return Object.prototype.toString.call(e)}function qu(e){return qc(e)==="[object String]"}const Zc=Object.prototype.hasOwnProperty;function Yc(e,t){return Zc.call(e,t)}function Rr(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(u){e[u]=n[u]})}}),e}function Pi(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Zu(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Mr(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const Vi=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Kc=/&([a-z#][a-z0-9]{1,31});/gi,Qc=new RegExp(Vi.source+"|"+Kc.source,"gi"),Jc=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function ed(e,t){if(t.charCodeAt(0)===35&&Jc.test(t)){const u=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Zu(u)?Mr(u):e}const n=Li(e);return n!==e?n:e}function td(e){return e.indexOf("\\")<0?e:e.replace(Vi,"$1")}function cn(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Qc,function(t,n,u){return n||ed(t,u)})}const nd=/[&<>"]/,rd=/[&<>"]/g,ud={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function od(e){return ud[e]}function Bt(e){return nd.test(e)?e.replace(rd,od):e}const id=/[.?*+^$[\]\\(){}|-]/g;function ad(e){return e.replace(id,"\\$&")}function ce(e){switch(e){case 9:case 32:return!0}return!1}function zn(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function jn(e){return Wu.test(e)||Ni.test(e)}function Hn(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Br(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const sd=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Pi,assign:Rr,escapeHtml:Bt,escapeRE:ad,fromCodePoint:Mr,has:Yc,isMdAsciiPunct:Hn,isPunctChar:jn,isSpace:ce,isString:qu,isValidEntityCode:Zu,isWhiteSpace:zn,lib:{mdurl:Oc,ucmicro:Pc},normalizeReference:Br,unescapeAll:cn,unescapeMd:td},Symbol.toStringTag,{value:"Module"}));function ld(e,t,n){let u,o,r,a;const s=e.posMax,l=e.pos;for(e.pos=t+1,u=1;e.pos<s;){if(r=e.src.charCodeAt(e.pos),r===93&&(u--,u===0)){o=!0;break}if(a=e.pos,e.md.inline.skipToken(e),r===91){if(a===e.pos-1)u++;else if(n)return e.pos=l,-1}}let d=-1;return o&&(d=e.pos),e.pos=l,d}function cd(e,t,n){let u,o=t;const r={ok:!1,pos:0,str:""};if(e.charCodeAt(o)===60){for(o++;o<n;){if(u=e.charCodeAt(o),u===10||u===60)return r;if(u===62)return r.pos=o+1,r.str=cn(e.slice(t+1,o)),r.ok=!0,r;if(u===92&&o+1<n){o+=2;continue}o++}return r}let a=0;for(;o<n&&(u=e.charCodeAt(o),!(u===32||u<32||u===127));){if(u===92&&o+1<n){if(e.charCodeAt(o+1)===32)break;o+=2;continue}if(u===40&&(a++,a>32))return r;if(u===41){if(a===0)break;a--}o++}return t===o||a!==0||(r.str=cn(e.slice(t,o)),r.pos=o,r.ok=!0),r}function dd(e,t,n,u){let o,r=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(u)a.str=u.str,a.marker=u.marker;else{if(r>=n)return a;let s=e.charCodeAt(r);if(s!==34&&s!==39&&s!==40)return a;t++,r++,s===40&&(s=41),a.marker=s}for(;r<n;){if(o=e.charCodeAt(r),o===a.marker)return a.pos=r+1,a.str+=cn(e.slice(t,r)),a.ok=!0,a;if(o===40&&a.marker===41)return a;o===92&&r+1<n&&r++,r++}return a.can_continue=!0,a.str+=cn(e.slice(t,r)),a}const fd=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:cd,parseLinkLabel:ld,parseLinkTitle:dd},Symbol.toStringTag,{value:"Module"})),xt={};xt.code_inline=function(e,t,n,u,o){const r=e[t];return"<code"+o.renderAttrs(r)+">"+Bt(r.content)+"</code>"},xt.code_block=function(e,t,n,u,o){const r=e[t];return"<pre"+o.renderAttrs(r)+"><code>"+Bt(e[t].content)+`</code></pre>
3
+ `},xt.fence=function(e,t,n,u,o){const r=e[t],a=r.info?cn(r.info).trim():"";let s="",l="";if(a){const f=a.split(/(\s+)/g);s=f[0],l=f.slice(2).join("")}let d;if(n.highlight?d=n.highlight(r.content,s,l)||Bt(r.content):d=Bt(r.content),d.indexOf("<pre")===0)return d+`
4
4
  `;if(a){const f=r.attrIndex("class"),c=r.attrs?r.attrs.slice():[];f<0?c.push(["class",n.langPrefix+s]):(c[f]=c[f].slice(),c[f][1]+=" "+n.langPrefix+s);const h={attrs:c};return`<pre><code${o.renderAttrs(h)}>${d}</code></pre>
5
5
  `}return`<pre><code${o.renderAttrs(r)}>${d}</code></pre>
6
6
  `},xt.image=function(e,t,n,u,o){const r=e[t];return r.attrs[r.attrIndex("alt")][1]=o.renderInlineAsText(r.children,n,u),o.renderToken(e,t,n)},xt.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
@@ -8,32 +8,32 @@
8
8
  `},xt.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
9
9
  `:`<br>
10
10
  `:`
11
- `},xt.text=function(e,t){return Bt(e[t].content)},xt.html_block=function(e,t){return e[t].content},xt.html_inline=function(e,t){return e[t].content};function fn(){this.rules=Vr({},xt)}fn.prototype.renderAttrs=function(t){let n,u,o;if(!t.attrs)return"";for(o="",n=0,u=t.attrs.length;n<u;n++)o+=" "+Bt(t.attrs[n][0])+'="'+Bt(t.attrs[n][1])+'"';return o},fn.prototype.renderToken=function(t,n,u){const o=t[n];let r="";if(o.hidden)return"";o.block&&o.nesting!==-1&&n&&t[n-1].hidden&&(r+=`
11
+ `},xt.text=function(e,t){return Bt(e[t].content)},xt.html_block=function(e,t){return e[t].content},xt.html_inline=function(e,t){return e[t].content};function dn(){this.rules=Rr({},xt)}dn.prototype.renderAttrs=function(t){let n,u,o;if(!t.attrs)return"";for(o="",n=0,u=t.attrs.length;n<u;n++)o+=" "+Bt(t.attrs[n][0])+'="'+Bt(t.attrs[n][1])+'"';return o},dn.prototype.renderToken=function(t,n,u){const o=t[n];let r="";if(o.hidden)return"";o.block&&o.nesting!==-1&&n&&t[n-1].hidden&&(r+=`
12
12
  `),r+=(o.nesting===-1?"</":"<")+o.tag,r+=this.renderAttrs(o),o.nesting===0&&u.xhtmlOut&&(r+=" /");let a=!1;if(o.block&&(a=!0,o.nesting===1&&n+1<t.length)){const s=t[n+1];(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===o.tag)&&(a=!1)}return r+=a?`>
13
- `:">",r},fn.prototype.renderInline=function(e,t,n){let u="";const o=this.rules;for(let r=0,a=e.length;r<a;r++){const s=e[r].type;typeof o[s]<"u"?u+=o[s](e,r,t,n,this):u+=this.renderToken(e,r,t)}return u},fn.prototype.renderInlineAsText=function(e,t,n){let u="";for(let o=0,r=e.length;o<r;o++)switch(e[o].type){case"text":u+=e[o].content;break;case"image":u+=this.renderInlineAsText(e[o].children,t,n);break;case"html_inline":case"html_block":u+=e[o].content;break;case"softbreak":case"hardbreak":u+=`
14
- `;break}return u},fn.prototype.render=function(e,t,n){let u="";const o=this.rules;for(let r=0,a=e.length;r<a;r++){const s=e[r].type;s==="inline"?u+=this.renderInline(e[r].children,t,n):typeof o[s]<"u"?u+=o[s](e,r,t,n,this):u+=this.renderToken(e,r,t,n)}return u};function We(){this.__rules__=[],this.__cache__=null}We.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},We.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(u){t.indexOf(u)<0&&t.push(u)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(u){u.enabled&&(n&&u.alt.indexOf(n)<0||e.__cache__[n].push(u.fn))})})},We.prototype.at=function(e,t,n){const u=this.__find__(e),o=n||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__[u].fn=t,this.__rules__[u].alt=o.alt||[],this.__cache__=null},We.prototype.before=function(e,t,n,u){const o=this.__find__(e),r=u||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null},We.prototype.after=function(e,t,n,u){const o=this.__find__(e),r=u||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null},We.prototype.push=function(e,t,n){const u=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:u.alt||[]}),this.__cache__=null},We.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const o=this.__find__(u);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[o].enabled=!0,n.push(u)},this),this.__cache__=null,n},We.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)},We.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const o=this.__find__(u);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[o].enabled=!1,n.push(u)},this),this.__cache__=null,n},We.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function st(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}st.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let u=0,o=n.length;u<o;u++)if(n[u][0]===t)return u;return-1},st.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},st.prototype.attrSet=function(t,n){const u=this.attrIndex(t),o=[t,n];u<0?this.attrPush(o):this.attrs[u]=o},st.prototype.attrGet=function(t){const n=this.attrIndex(t);let u=null;return n>=0&&(u=this.attrs[n][1]),u},st.prototype.attrJoin=function(t,n){const u=this.attrIndex(t);u<0?this.attrPush([t,n]):this.attrs[u][1]=this.attrs[u][1]+" "+n};function Oi(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Oi.prototype.Token=st;const d0=/\r\n?|\n/g,f0=/\0/g;function h0(e){let t;t=e.src.replace(d0,`
15
- `),t=t.replace(f0,"�"),e.src=t}function p0(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function m0(e){const t=e.tokens;for(let n=0,u=t.length;n<u;n++){const o=t[n];o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)}}function g0(e){return/^<a[>\s]/i.test(e)}function b0(e){return/^<\/a\s*>/i.test(e)}function y0(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,u=t.length;n<u;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let o=t[n].children,r=0;for(let a=o.length-1;a>=0;a--){const s=o[a];if(s.type==="link_close"){for(a--;o[a].level!==s.level&&o[a].type!=="link_open";)a--;continue}if(s.type==="html_inline"&&(g0(s.content)&&r>0&&r--,b0(s.content)&&r++),!(r>0)&&s.type==="text"&&e.md.linkify.test(s.content)){const l=s.content;let d=e.md.linkify.match(l);const f=[];let c=s.level,h=0;d.length>0&&d[0].index===0&&a>0&&o[a-1].type==="text_special"&&(d=d.slice(1));for(let m=0;m<d.length;m++){const p=d[m].url,w=e.md.normalizeLink(p);if(!e.md.validateLink(w))continue;let y=d[m].text;d[m].schema?d[m].schema==="mailto:"&&!/^mailto:/i.test(y)?y=e.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):y=e.md.normalizeLinkText(y):y=e.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,"");const A=d[m].index;if(A>h){const k=new e.Token("text","",0);k.content=l.slice(h,A),k.level=c,f.push(k)}const b=new e.Token("link_open","a",1);b.attrs=[["href",w]],b.level=c++,b.markup="linkify",b.info="auto",f.push(b);const g=new e.Token("text","",0);g.content=y,g.level=c,f.push(g);const x=new e.Token("link_close","a",-1);x.level=--c,x.markup="linkify",x.info="auto",f.push(x),h=d[m].lastIndex}if(h<l.length){const m=new e.Token("text","",0);m.content=l.slice(h),m.level=c,f.push(m)}t[n].children=o=Li(o,a,f)}}}}const Pi=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,x0=/\((c|tm|r)\)/i,w0=/\((c|tm|r)\)/ig,v0={c:"©",r:"®",tm:"™"};function A0(e,t){return v0[t.toLowerCase()]}function k0(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&(u.content=u.content.replace(w0,A0)),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function C0(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&Pi.test(u.content)&&(u.content=u.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function _0(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(x0.test(e.tokens[t].content)&&k0(e.tokens[t].children),Pi.test(e.tokens[t].content)&&C0(e.tokens[t].children))}const E0=/['"]/,Vi=/['"]/g,Ri="’";function Br(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function S0(e,t){let n;const u=[];for(let o=0;o<e.length;o++){const r=e[o],a=e[o].level;for(n=u.length-1;n>=0&&!(u[n].level<=a);n--);if(u.length=n+1,r.type!=="text")continue;let s=r.content,l=0,d=s.length;e:for(;l<d;){Vi.lastIndex=l;const f=Vi.exec(s);if(!f)break;let c=!0,h=!0;l=f.index+1;const m=f[0]==="'";let p=32;if(f.index-1>=0)p=s.charCodeAt(f.index-1);else for(n=o-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){p=e[n].content.charCodeAt(e[n].content.length-1);break}let w=32;if(l<d)w=s.charCodeAt(l);else for(n=o+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){w=e[n].content.charCodeAt(0);break}const y=Hn(p)||jn(String.fromCharCode(p)),A=Hn(w)||jn(String.fromCharCode(w)),b=zn(p),g=zn(w);if(g?c=!1:A&&(b||y||(c=!1)),b?h=!1:y&&(g||A||(h=!1)),w===34&&f[0]==='"'&&p>=48&&p<=57&&(h=c=!1),c&&h&&(c=y,h=A),!c&&!h){m&&(r.content=Br(r.content,f.index,Ri));continue}if(h)for(n=u.length-1;n>=0;n--){let x=u[n];if(u[n].level<a)break;if(x.single===m&&u[n].level===a){x=u[n];let k,T;m?(k=t.md.options.quotes[2],T=t.md.options.quotes[3]):(k=t.md.options.quotes[0],T=t.md.options.quotes[1]),r.content=Br(r.content,f.index,T),e[x.token].content=Br(e[x.token].content,x.pos,k),l+=T.length-1,x.token===o&&(l+=k.length-1),s=r.content,d=s.length,u.length=n;continue e}}c?u.push({token:o,pos:f.index,single:m,level:a}):h&&m&&(r.content=Br(r.content,f.index,Ri))}}}function F0(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!E0.test(e.tokens[t].content)||S0(e.tokens[t].children,e)}function D0(e){let t,n;const u=e.tokens,o=u.length;for(let r=0;r<o;r++){if(u[r].type!=="inline")continue;const a=u[r].children,s=a.length;for(t=0;t<s;t++)a[t].type==="text_special"&&(a[t].type="text");for(t=n=0;t<s;t++)a[t].type==="text"&&t+1<s&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==n&&(a[n]=a[t]),n++);t!==n&&(a.length=n)}}const Yu=[["normalize",h0],["block",p0],["inline",m0],["linkify",y0],["replacements",_0],["smartquotes",F0],["text_join",D0]];function Ku(){this.ruler=new We;for(let e=0;e<Yu.length;e++)this.ruler.push(Yu[e][0],Yu[e][1])}Ku.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,u=t.length;n<u;n++)t[n](e)},Ku.prototype.State=Oi;function wt(e,t,n,u){this.src=e,this.md=t,this.env=n,this.tokens=u,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const o=this.src;for(let r=0,a=0,s=0,l=0,d=o.length,f=!1;a<d;a++){const c=o.charCodeAt(a);if(!f)if(ce(c)){s++,c===9?l+=4-l%4:l++;continue}else f=!0;(c===10||a===d-1)&&(c!==10&&a++,this.bMarks.push(r),this.eMarks.push(a),this.tShift.push(s),this.sCount.push(l),this.bsCount.push(0),f=!1,s=0,l=0,r=a+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}wt.prototype.push=function(e,t,n){const u=new st(e,t,n);return u.block=!0,n<0&&this.level--,u.level=this.level,n>0&&this.level++,this.tokens.push(u),u},wt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},wt.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},wt.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const u=this.src.charCodeAt(t);if(!ce(u))break}return t},wt.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!ce(this.src.charCodeAt(--t)))return t+1;return t},wt.prototype.skipChars=function(t,n){for(let u=this.src.length;t<u&&this.src.charCodeAt(t)===n;t++);return t},wt.prototype.skipCharsBack=function(t,n,u){if(t<=u)return t;for(;t>u;)if(n!==this.src.charCodeAt(--t))return t+1;return t},wt.prototype.getLines=function(t,n,u,o){if(t>=n)return"";const r=new Array(n-t);for(let a=0,s=t;s<n;s++,a++){let l=0;const d=this.bMarks[s];let f=d,c;for(s+1<n||o?c=this.eMarks[s]+1:c=this.eMarks[s];f<c&&l<u;){const h=this.src.charCodeAt(f);if(ce(h))h===9?l+=4-(l+this.bsCount[s])%4:l++;else if(f-d<this.tShift[s])l++;else break;f++}l>u?r[a]=new Array(l-u+1).join(" ")+this.src.slice(f,c):r[a]=this.src.slice(f,c)}return r.join("")},wt.prototype.Token=st;const T0=65536;function Qu(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];return e.src.slice(n,u)}function Mi(e){const t=[],n=e.length;let u=0,o=e.charCodeAt(u),r=!1,a=0,s="";for(;u<n;)o===124&&(r?(s+=e.substring(a,u-1),a=u):(t.push(s+e.substring(a,u)),s="",a=u+1)),r=o===92,u++,o=e.charCodeAt(u);return t.push(s+e.substring(a)),t}function N0(e,t,n,u){if(t+2>n)return!1;let o=t+1;if(e.sCount[o]<e.blkIndent||e.sCount[o]-e.blkIndent>=4)return!1;let r=e.bMarks[o]+e.tShift[o];if(r>=e.eMarks[o])return!1;const a=e.src.charCodeAt(r++);if(a!==124&&a!==45&&a!==58||r>=e.eMarks[o])return!1;const s=e.src.charCodeAt(r++);if(s!==124&&s!==45&&s!==58&&!ce(s)||a===45&&ce(s))return!1;for(;r<e.eMarks[o];){const x=e.src.charCodeAt(r);if(x!==124&&x!==45&&x!==58&&!ce(x))return!1;r++}let l=Qu(e,t+1),d=l.split("|");const f=[];for(let x=0;x<d.length;x++){const k=d[x].trim();if(!k){if(x===0||x===d.length-1)continue;return!1}if(!/^:?-+:?$/.test(k))return!1;k.charCodeAt(k.length-1)===58?f.push(k.charCodeAt(0)===58?"center":"right"):k.charCodeAt(0)===58?f.push("left"):f.push("")}if(l=Qu(e,t).trim(),l.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;d=Mi(l),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop();const c=d.length;if(c===0||c!==f.length)return!1;if(u)return!0;const h=e.parentType;e.parentType="table";const m=e.md.block.ruler.getRules("blockquote"),p=e.push("table_open","table",1),w=[t,0];p.map=w;const y=e.push("thead_open","thead",1);y.map=[t,t+1];const A=e.push("tr_open","tr",1);A.map=[t,t+1];for(let x=0;x<d.length;x++){const k=e.push("th_open","th",1);f[x]&&(k.attrs=[["style","text-align:"+f[x]]]);const T=e.push("inline","",0);T.content=d[x].trim(),T.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let b,g=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let x=!1;for(let T=0,D=m.length;T<D;T++)if(m[T](e,o,n,!0)){x=!0;break}if(x||(l=Qu(e,o).trim(),!l)||e.sCount[o]-e.blkIndent>=4||(d=Mi(l),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),g+=c-d.length,g>T0))break;if(o===t+2){const T=e.push("tbody_open","tbody",1);T.map=b=[t+2,0]}const k=e.push("tr_open","tr",1);k.map=[o,o+1];for(let T=0;T<c;T++){const D=e.push("td_open","td",1);f[T]&&(D.attrs=[["style","text-align:"+f[T]]]);const F=e.push("inline","",0);F.content=d[T]?d[T].trim():"",F.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return b&&(e.push("tbody_close","tbody",-1),b[1]=o),e.push("table_close","table",-1),w[1]=o,e.parentType=h,e.line=o,!0}function L0(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let u=t+1,o=u;for(;u<n;){if(e.isEmpty(u)){u++;continue}if(e.sCount[u]-e.blkIndent>=4){u++,o=u;continue}break}e.line=o;const r=e.push("code_block","code",0);return r.content=e.getLines(t,o,4+e.blkIndent,!1)+`
16
- `,r.map=[t,e.line],!0}function I0(e,t,n,u){let o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||o+3>r)return!1;const a=e.src.charCodeAt(o);if(a!==126&&a!==96)return!1;let s=o;o=e.skipChars(o,a);let l=o-s;if(l<3)return!1;const d=e.src.slice(s,o),f=e.src.slice(o,r);if(a===96&&f.indexOf(String.fromCharCode(a))>=0)return!1;if(u)return!0;let c=t,h=!1;for(;c++,!(c>=n||(o=s=e.bMarks[c]+e.tShift[c],r=e.eMarks[c],o<r&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(o)===a&&!(e.sCount[c]-e.blkIndent>=4)&&(o=e.skipChars(o,a),!(o-s<l)&&(o=e.skipSpaces(o),!(o<r)))){h=!0;break}l=e.sCount[t],e.line=c+(h?1:0);const m=e.push("fence","code",0);return m.info=f,m.content=e.getLines(t+1,c,l,!0),m.markup=d,m.map=[t,e.line],!0}function O0(e,t,n,u){let o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];const a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==62)return!1;if(u)return!0;const s=[],l=[],d=[],f=[],c=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let m=!1,p;for(p=t;p<n;p++){const g=e.sCount[p]<e.blkIndent;if(o=e.bMarks[p]+e.tShift[p],r=e.eMarks[p],o>=r)break;if(e.src.charCodeAt(o++)===62&&!g){let k=e.sCount[p]+1,T,D;e.src.charCodeAt(o)===32?(o++,k++,D=!1,T=!0):e.src.charCodeAt(o)===9?(T=!0,(e.bsCount[p]+k)%4===3?(o++,k++,D=!1):D=!0):T=!1;let F=k;for(s.push(e.bMarks[p]),e.bMarks[p]=o;o<r;){const U=e.src.charCodeAt(o);if(ce(U))U===9?F+=4-(F+e.bsCount[p]+(D?1:0))%4:F++;else break;o++}m=o>=r,l.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(T?1:0),d.push(e.sCount[p]),e.sCount[p]=F-k,f.push(e.tShift[p]),e.tShift[p]=o-e.bMarks[p];continue}if(m)break;let x=!1;for(let k=0,T=c.length;k<T;k++)if(c[k](e,p,n,!0)){x=!0;break}if(x){e.lineMax=p,e.blkIndent!==0&&(s.push(e.bMarks[p]),l.push(e.bsCount[p]),f.push(e.tShift[p]),d.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}s.push(e.bMarks[p]),l.push(e.bsCount[p]),f.push(e.tShift[p]),d.push(e.sCount[p]),e.sCount[p]=-1}const w=e.blkIndent;e.blkIndent=0;const y=e.push("blockquote_open","blockquote",1);y.markup=">";const A=[t,0];y.map=A,e.md.block.tokenize(e,t,p);const b=e.push("blockquote_close","blockquote",-1);b.markup=">",e.lineMax=a,e.parentType=h,A[1]=e.line;for(let g=0;g<f.length;g++)e.bMarks[g+t]=s[g],e.tShift[g+t]=f[g],e.sCount[g+t]=d[g],e.bsCount[g+t]=l[g];return e.blkIndent=w,!0}function P0(e,t,n,u){const o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let r=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(r++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;r<o;){const d=e.src.charCodeAt(r++);if(d!==a&&!ce(d))return!1;d===a&&s++}if(s<3)return!1;if(u)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(a)),!0}function Bi(e,t){const n=e.eMarks[t];let u=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(u++);if(o!==42&&o!==45&&o!==43)return-1;if(u<n){const r=e.src.charCodeAt(u);if(!ce(r))return-1}return u}function zi(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];let o=n;if(o+1>=u)return-1;let r=e.src.charCodeAt(o++);if(r<48||r>57)return-1;for(;;){if(o>=u)return-1;if(r=e.src.charCodeAt(o++),r>=48&&r<=57){if(o-n>=10)return-1;continue}if(r===41||r===46)break;return-1}return o<u&&(r=e.src.charCodeAt(o),!ce(r))?-1:o}function V0(e,t){const n=e.level+2;for(let u=t+2,o=e.tokens.length-2;u<o;u++)e.tokens[u].level===n&&e.tokens[u].type==="paragraph_open"&&(e.tokens[u+2].hidden=!0,e.tokens[u].hidden=!0,u+=2)}function R0(e,t,n,u){let o,r,a,s,l=t,d=!0;if(e.sCount[l]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let f=!1;u&&e.parentType==="paragraph"&&e.sCount[l]>=e.blkIndent&&(f=!0);let c,h,m;if((m=zi(e,l))>=0){if(c=!0,a=e.bMarks[l]+e.tShift[l],h=Number(e.src.slice(a,m-1)),f&&h!==1)return!1}else if((m=Bi(e,l))>=0)c=!1;else return!1;if(f&&e.skipSpaces(m)>=e.eMarks[l])return!1;if(u)return!0;const p=e.src.charCodeAt(m-1),w=e.tokens.length;c?(s=e.push("ordered_list_open","ol",1),h!==1&&(s.attrs=[["start",h]])):s=e.push("bullet_list_open","ul",1);const y=[l,0];s.map=y,s.markup=String.fromCharCode(p);let A=!1;const b=e.md.block.ruler.getRules("list"),g=e.parentType;for(e.parentType="list";l<n;){r=m,o=e.eMarks[l];const x=e.sCount[l]+m-(e.bMarks[l]+e.tShift[l]);let k=x;for(;r<o;){const V=e.src.charCodeAt(r);if(V===9)k+=4-(k+e.bsCount[l])%4;else if(V===32)k++;else break;r++}const T=r;let D;T>=o?D=1:D=k-x,D>4&&(D=1);const F=x+D;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(p);const U=[l,0];s.map=U,c&&(s.info=e.src.slice(a,m-1));const _=e.tight,N=e.tShift[l],L=e.sCount[l],C=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=F,e.tight=!0,e.tShift[l]=T-e.bMarks[l],e.sCount[l]=k,T>=o&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||A)&&(d=!1),A=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=C,e.tShift[l]=N,e.sCount[l]=L,e.tight=_,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(p),l=e.line,U[1]=l,l>=n||e.sCount[l]<e.blkIndent||e.sCount[l]-e.blkIndent>=4)break;let P=!1;for(let V=0,E=b.length;V<E;V++)if(b[V](e,l,n,!0)){P=!0;break}if(P)break;if(c){if(m=zi(e,l),m<0)break;a=e.bMarks[l]+e.tShift[l]}else if(m=Bi(e,l),m<0)break;if(p!==e.src.charCodeAt(m-1))break}return c?s=e.push("ordered_list_close","ol",-1):s=e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(p),y[1]=l,e.line=l,e.parentType=g,d&&V0(e,w),!0}function M0(e,t,n,u){let o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==91)return!1;function s(b){const g=e.lineMax;if(b>=g||e.isEmpty(b))return null;let x=!1;if(e.sCount[b]-e.blkIndent>3&&(x=!0),e.sCount[b]<0&&(x=!0),!x){const D=e.md.block.ruler.getRules("reference"),F=e.parentType;e.parentType="reference";let U=!1;for(let _=0,N=D.length;_<N;_++)if(D[_](e,b,g,!0)){U=!0;break}if(e.parentType=F,U)return null}const k=e.bMarks[b]+e.tShift[b],T=e.eMarks[b];return e.src.slice(k,T+1)}let l=e.src.slice(o,r+1);r=l.length;let d=-1;for(o=1;o<r;o++){const b=l.charCodeAt(o);if(b===91)return!1;if(b===93){d=o;break}else if(b===10){const g=s(a);g!==null&&(l+=g,r=l.length,a++)}else if(b===92&&(o++,o<r&&l.charCodeAt(o)===10)){const g=s(a);g!==null&&(l+=g,r=l.length,a++)}}if(d<0||l.charCodeAt(d+1)!==58)return!1;for(o=d+2;o<r;o++){const b=l.charCodeAt(o);if(b===10){const g=s(a);g!==null&&(l+=g,r=l.length,a++)}else if(!ce(b))break}const f=e.md.helpers.parseLinkDestination(l,o,r);if(!f.ok)return!1;const c=e.md.normalizeLink(f.str);if(!e.md.validateLink(c))return!1;o=f.pos;const h=o,m=a,p=o;for(;o<r;o++){const b=l.charCodeAt(o);if(b===10){const g=s(a);g!==null&&(l+=g,r=l.length,a++)}else if(!ce(b))break}let w=e.md.helpers.parseLinkTitle(l,o,r);for(;w.can_continue;){const b=s(a);if(b===null)break;l+=b,o=r,r=l.length,a++,w=e.md.helpers.parseLinkTitle(l,o,r,w)}let y;for(o<r&&p!==o&&w.ok?(y=w.str,o=w.pos):(y="",o=h,a=m);o<r;){const b=l.charCodeAt(o);if(!ce(b))break;o++}if(o<r&&l.charCodeAt(o)!==10&&y)for(y="",o=h,a=m;o<r;){const b=l.charCodeAt(o);if(!ce(b))break;o++}if(o<r&&l.charCodeAt(o)!==10)return!1;const A=Mr(l.slice(1,d));return A?(u||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[A]>"u"&&(e.env.references[A]={title:y,href:c}),e.line=a),!0):!1}const B0=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],z0="[a-zA-Z_:][a-zA-Z0-9:._-]*",j0="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",ji="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+z0+"(?:\\s*=\\s*"+j0+")?)")+"*\\s*\\/?>",Hi="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",H0="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",$0="<[?][\\s\\S]*?[?]>",U0="<![A-Za-z][^>]*>",W0="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",G0=new RegExp("^(?:"+ji+"|"+Hi+"|"+H0+"|"+$0+"|"+U0+"|"+W0+")"),X0=new RegExp("^(?:"+ji+"|"+Hi+")"),hn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+B0.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(X0.source+"\\s*$"),/^$/,!1]];function q0(e,t,n,u){let o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(o)!==60)return!1;let a=e.src.slice(o,r),s=0;for(;s<hn.length&&!hn[s][0].test(a);s++);if(s===hn.length)return!1;if(u)return hn[s][2];let l=t+1;if(!hn[s][1].test(a)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(o=e.bMarks[l]+e.tShift[l],r=e.eMarks[l],a=e.src.slice(o,r),hn[s][1].test(a)){a.length!==0&&l++;break}}e.line=l;const d=e.push("html_block","",0);return d.map=[t,l],d.content=e.getLines(t,l,e.blkIndent,!0),!0}function Z0(e,t,n,u){let o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(o);if(a!==35||o>=r)return!1;let s=1;for(a=e.src.charCodeAt(++o);a===35&&o<r&&s<=6;)s++,a=e.src.charCodeAt(++o);if(s>6||o<r&&!ce(a))return!1;if(u)return!0;r=e.skipSpacesBack(r,o);const l=e.skipCharsBack(r,35,o);l>o&&ce(e.src.charCodeAt(l-1))&&(r=l),e.line=t+1;const d=e.push("heading_open","h"+String(s),1);d.markup="########".slice(0,s),d.map=[t,e.line];const f=e.push("inline","",0);f.content=e.src.slice(o,r).trim(),f.map=[t,e.line],f.children=[];const c=e.push("heading_close","h"+String(s),-1);return c.markup="########".slice(0,s),!0}function Y0(e,t,n){const u=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let r=0,a,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let m=e.bMarks[s]+e.tShift[s];const p=e.eMarks[s];if(m<p&&(a=e.src.charCodeAt(m),(a===45||a===61)&&(m=e.skipChars(m,a),m=e.skipSpaces(m),m>=p))){r=a===61?1:2;break}}if(e.sCount[s]<0)continue;let h=!1;for(let m=0,p=u.length;m<p;m++)if(u[m](e,s,n,!0)){h=!0;break}if(h)break}if(!r)return!1;const l=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const d=e.push("heading_open","h"+String(r),1);d.markup=String.fromCharCode(a),d.map=[t,e.line];const f=e.push("inline","",0);f.content=l,f.map=[t,e.line-1],f.children=[];const c=e.push("heading_close","h"+String(r),-1);return c.markup=String.fromCharCode(a),e.parentType=o,!0}function K0(e,t,n){const u=e.md.block.ruler.getRules("paragraph"),o=e.parentType;let r=t+1;for(e.parentType="paragraph";r<n&&!e.isEmpty(r);r++){if(e.sCount[r]-e.blkIndent>3||e.sCount[r]<0)continue;let d=!1;for(let f=0,c=u.length;f<c;f++)if(u[f](e,r,n,!0)){d=!0;break}if(d)break}const a=e.getLines(t,r,e.blkIndent,!1).trim();e.line=r;const s=e.push("paragraph_open","p",1);s.map=[t,e.line];const l=e.push("inline","",0);return l.content=a,l.map=[t,e.line],l.children=[],e.push("paragraph_close","p",-1),e.parentType=o,!0}const zr=[["table",N0,["paragraph","reference"]],["code",L0],["fence",I0,["paragraph","reference","blockquote","list"]],["blockquote",O0,["paragraph","reference","blockquote","list"]],["hr",P0,["paragraph","reference","blockquote","list"]],["list",R0,["paragraph","reference","blockquote"]],["reference",M0],["html_block",q0,["paragraph","reference","blockquote"]],["heading",Z0,["paragraph","reference","blockquote"]],["lheading",Y0],["paragraph",K0]];function jr(){this.ruler=new We;for(let e=0;e<zr.length;e++)this.ruler.push(zr[e][0],zr[e][1],{alt:(zr[e][2]||[]).slice()})}jr.prototype.tokenize=function(e,t,n){const u=this.ruler.getRules(""),o=u.length,r=e.md.options.maxNesting;let a=t,s=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n||e.sCount[a]<e.blkIndent));){if(e.level>=r){e.line=n;break}const l=e.line;let d=!1;for(let f=0;f<o;f++)if(d=u[f](e,a,n,!1),d){if(l>=e.line)throw new Error("block rule didn't increment state.line");break}if(!d)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),a=e.line,a<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},jr.prototype.parse=function(e,t,n,u){if(!e)return;const o=new this.State(e,t,n,u);this.tokenize(o,o.line,o.lineMax)},jr.prototype.State=wt;function $n(e,t,n,u){this.src=e,this.env=n,this.md=t,this.tokens=u,this.tokens_meta=Array(u.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}$n.prototype.pushPending=function(){const e=new st("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},$n.prototype.push=function(e,t,n){this.pending&&this.pushPending();const u=new st(e,t,n);let o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),u.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(u),this.tokens_meta.push(o),u},$n.prototype.scanDelims=function(e,t){const n=this.posMax,u=this.src.charCodeAt(e),o=e>0?this.src.charCodeAt(e-1):32;let r=e;for(;r<n&&this.src.charCodeAt(r)===u;)r++;const a=r-e,s=r<n?this.src.charCodeAt(r):32,l=Hn(o)||jn(String.fromCharCode(o)),d=Hn(s)||jn(String.fromCharCode(s)),f=zn(o),c=zn(s),h=!c&&(!d||f||l),m=!f&&(!l||c||d);return{can_open:h&&(t||!m||l),can_close:m&&(t||!h||d),length:a}},$n.prototype.Token=st;function Q0(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function J0(e,t){let n=e.pos;for(;n<e.posMax&&!Q0(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const ed=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function td(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,u=e.posMax;if(n+3>u||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const o=e.pending.match(ed);if(!o)return!1;const r=o[1],a=e.md.linkify.matchAtStart(e.src.slice(n-r.length));if(!a)return!1;let s=a.url;if(s.length<=r.length)return!1;let l=s.length;for(;l>0&&s.charCodeAt(l-1)===42;)l--;l!==s.length&&(s=s.slice(0,l));const d=e.md.normalizeLink(s);if(!e.md.validateLink(d))return!1;if(!t){e.pending=e.pending.slice(0,-r.length);const f=e.push("link_open","a",1);f.attrs=[["href",d]],f.markup="linkify",f.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(s);const h=e.push("link_close","a",-1);h.markup="linkify",h.info="auto"}return e.pos+=s.length-r.length,!0}function nd(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const u=e.pending.length-1,o=e.posMax;if(!t)if(u>=0&&e.pending.charCodeAt(u)===32)if(u>=1&&e.pending.charCodeAt(u-1)===32){let r=u-1;for(;r>=1&&e.pending.charCodeAt(r-1)===32;)r--;e.pending=e.pending.slice(0,r),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<o&&ce(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const Ju=[];for(let e=0;e<256;e++)Ju.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Ju[e.charCodeAt(0)]=1});function rd(e,t){let n=e.pos;const u=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=u))return!1;let o=e.src.charCodeAt(n);if(o===10){for(t||e.push("hardbreak","br",0),n++;n<u&&(o=e.src.charCodeAt(n),!!ce(o));)n++;return e.pos=n,!0}let r=e.src[n];if(o>=55296&&o<=56319&&n+1<u){const s=e.src.charCodeAt(n+1);s>=56320&&s<=57343&&(r+=e.src[n+1],n++)}const a="\\"+r;if(!t){const s=e.push("text_special","",0);o<256&&Ju[o]!==0?s.content=r:s.content=a,s.markup=a,s.info="escape"}return e.pos=n+1,!0}function ud(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const o=n;n++;const r=e.posMax;for(;n<r&&e.src.charCodeAt(n)===96;)n++;const a=e.src.slice(o,n),s=a.length;if(e.backticksScanned&&(e.backticks[s]||0)<=o)return t||(e.pending+=a),e.pos+=s,!0;let l=n,d;for(;(d=e.src.indexOf("`",l))!==-1;){for(l=d+1;l<r&&e.src.charCodeAt(l)===96;)l++;const f=l-d;if(f===s){if(!t){const c=e.push("code_inline","code",0);c.markup=a,c.content=e.src.slice(n,d).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[f]=d}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=s,!0}function od(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==126)return!1;const o=e.scanDelims(e.pos,!0);let r=o.length;const a=String.fromCharCode(u);if(r<2)return!1;let s;r%2&&(s=e.push("text","",0),s.content=a,r--);for(let l=0;l<r;l+=2)s=e.push("text","",0),s.content=a+a,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0}function $i(e,t){let n;const u=[],o=t.length;for(let r=0;r<o;r++){const a=t[r];if(a.marker!==126||a.end===-1)continue;const s=t[a.end];n=e.tokens[a.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[s.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[s.token-1].type==="text"&&e.tokens[s.token-1].content==="~"&&u.push(s.token-1)}for(;u.length;){const r=u.pop();let a=r+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,r!==a&&(n=e.tokens[a],e.tokens[a]=e.tokens[r],e.tokens[r]=n)}}function id(e){const t=e.tokens_meta,n=e.tokens_meta.length;$i(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&$i(e,t[u].delimiters)}const Ui={tokenize:od,postProcess:id};function ad(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==95&&u!==42)return!1;const o=e.scanDelims(e.pos,u===42);for(let r=0;r<o.length;r++){const a=e.push("text","",0);a.content=String.fromCharCode(u),e.delimiters.push({marker:u,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return e.pos+=o.length,!0}function Wi(e,t){const n=t.length;for(let u=n-1;u>=0;u--){const o=t[u];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;const r=t[o.end],a=u>0&&t[u-1].end===o.end+1&&t[u-1].marker===o.marker&&t[u-1].token===o.token-1&&t[o.end+1].token===r.token+1,s=String.fromCharCode(o.marker),l=e.tokens[o.token];l.type=a?"strong_open":"em_open",l.tag=a?"strong":"em",l.nesting=1,l.markup=a?s+s:s,l.content="";const d=e.tokens[r.token];d.type=a?"strong_close":"em_close",d.tag=a?"strong":"em",d.nesting=-1,d.markup=a?s+s:s,d.content="",a&&(e.tokens[t[u-1].token].content="",e.tokens[t[o.end+1].token].content="",u--)}}function sd(e){const t=e.tokens_meta,n=e.tokens_meta.length;Wi(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Wi(e,t[u].delimiters)}const Gi={tokenize:ad,postProcess:sd};function ld(e,t){let n,u,o,r,a="",s="",l=e.pos,d=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const f=e.pos,c=e.posMax,h=e.pos+1,m=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(m<0)return!1;let p=m+1;if(p<c&&e.src.charCodeAt(p)===40){for(d=!1,p++;p<c&&(n=e.src.charCodeAt(p),!(!ce(n)&&n!==10));p++);if(p>=c)return!1;if(l=p,o=e.md.helpers.parseLinkDestination(e.src,p,e.posMax),o.ok){for(a=e.md.normalizeLink(o.str),e.md.validateLink(a)?p=o.pos:a="",l=p;p<c&&(n=e.src.charCodeAt(p),!(!ce(n)&&n!==10));p++);if(o=e.md.helpers.parseLinkTitle(e.src,p,e.posMax),p<c&&l!==p&&o.ok)for(s=o.str,p=o.pos;p<c&&(n=e.src.charCodeAt(p),!(!ce(n)&&n!==10));p++);}(p>=c||e.src.charCodeAt(p)!==41)&&(d=!0),p++}if(d){if(typeof e.env.references>"u")return!1;if(p<c&&e.src.charCodeAt(p)===91?(l=p+1,p=e.md.helpers.parseLinkLabel(e,p),p>=0?u=e.src.slice(l,p++):p=m+1):p=m+1,u||(u=e.src.slice(h,m)),r=e.env.references[Mr(u)],!r)return e.pos=f,!1;a=r.href,s=r.title}if(!t){e.pos=h,e.posMax=m;const w=e.push("link_open","a",1),y=[["href",a]];w.attrs=y,s&&y.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=p,e.posMax=c,!0}function cd(e,t){let n,u,o,r,a,s,l,d,f="";const c=e.pos,h=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const m=e.pos+2,p=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(p<0)return!1;if(r=p+1,r<h&&e.src.charCodeAt(r)===40){for(r++;r<h&&(n=e.src.charCodeAt(r),!(!ce(n)&&n!==10));r++);if(r>=h)return!1;for(d=r,s=e.md.helpers.parseLinkDestination(e.src,r,e.posMax),s.ok&&(f=e.md.normalizeLink(s.str),e.md.validateLink(f)?r=s.pos:f=""),d=r;r<h&&(n=e.src.charCodeAt(r),!(!ce(n)&&n!==10));r++);if(s=e.md.helpers.parseLinkTitle(e.src,r,e.posMax),r<h&&d!==r&&s.ok)for(l=s.str,r=s.pos;r<h&&(n=e.src.charCodeAt(r),!(!ce(n)&&n!==10));r++);else l="";if(r>=h||e.src.charCodeAt(r)!==41)return e.pos=c,!1;r++}else{if(typeof e.env.references>"u")return!1;if(r<h&&e.src.charCodeAt(r)===91?(d=r+1,r=e.md.helpers.parseLinkLabel(e,r),r>=0?o=e.src.slice(d,r++):r=p+1):r=p+1,o||(o=e.src.slice(m,p)),a=e.env.references[Mr(o)],!a)return e.pos=c,!1;f=a.href,l=a.title}if(!t){u=e.src.slice(m,p);const w=[];e.md.inline.parse(u,e.md,e.env,w);const y=e.push("image","img",0),A=[["src",f],["alt",""]];y.attrs=A,y.children=w,y.content=u,l&&A.push(["title",l])}return e.pos=r,e.posMax=h,!0}const dd=/^([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])?)*)$/,fd=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function hd(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const u=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const r=e.src.slice(u+1,n);if(fd.test(r)){const a=e.md.normalizeLink(r);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(r);const d=e.push("link_close","a",-1);d.markup="autolink",d.info="auto"}return e.pos+=r.length+2,!0}if(dd.test(r)){const a=e.md.normalizeLink("mailto:"+r);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(r);const d=e.push("link_close","a",-1);d.markup="autolink",d.info="auto"}return e.pos+=r.length+2,!0}return!1}function pd(e){return/^<a[>\s]/i.test(e)}function md(e){return/^<\/a\s*>/i.test(e)}function gd(e){const t=e|32;return t>=97&&t<=122}function bd(e,t){if(!e.md.options.html)return!1;const n=e.posMax,u=e.pos;if(e.src.charCodeAt(u)!==60||u+2>=n)return!1;const o=e.src.charCodeAt(u+1);if(o!==33&&o!==63&&o!==47&&!gd(o))return!1;const r=e.src.slice(u).match(G0);if(!r)return!1;if(!t){const a=e.push("html_inline","",0);a.content=r[0],pd(a.content)&&e.linkLevel++,md(a.content)&&e.linkLevel--}return e.pos+=r[0].length,!0}const yd=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,xd=/^&([a-z][a-z0-9]{1,31});/i;function wd(e,t){const n=e.pos,u=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=u)return!1;if(e.src.charCodeAt(n+1)===35){const r=e.src.slice(n).match(yd);if(r){if(!t){const a=r[1][0].toLowerCase()==="x"?parseInt(r[1].slice(1),16):parseInt(r[1],10),s=e.push("text_special","",0);s.content=Zu(a)?Rr(a):Rr(65533),s.markup=r[0],s.info="entity"}return e.pos+=r[0].length,!0}}else{const r=e.src.slice(n).match(xd);if(r){const a=Ni(r[0]);if(a!==r[0]){if(!t){const s=e.push("text_special","",0);s.content=a,s.markup=r[0],s.info="entity"}return e.pos+=r[0].length,!0}}}return!1}function Xi(e){const t={},n=e.length;if(!n)return;let u=0,o=-2;const r=[];for(let a=0;a<n;a++){const s=e[a];if(r.push(0),(e[u].marker!==s.marker||o!==s.token-1)&&(u=a),o=s.token,s.length=s.length||0,!s.close)continue;t.hasOwnProperty(s.marker)||(t[s.marker]=[-1,-1,-1,-1,-1,-1]);const l=t[s.marker][(s.open?3:0)+s.length%3];let d=u-r[u]-1,f=d;for(;d>l;d-=r[d]+1){const c=e[d];if(c.marker===s.marker&&c.open&&c.end<0){let h=!1;if((c.close||s.open)&&(c.length+s.length)%3===0&&(c.length%3!==0||s.length%3!==0)&&(h=!0),!h){const m=d>0&&!e[d-1].open?r[d-1]+1:0;r[a]=a-d+m,r[d]=m,s.open=!1,c.end=a,c.close=!1,f=-1,o=-2;break}}}f!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=f)}}function vd(e){const t=e.tokens_meta,n=e.tokens_meta.length;Xi(e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Xi(t[u].delimiters)}function Ad(e){let t,n,u=0;const o=e.tokens,r=e.tokens.length;for(t=n=0;t<r;t++)o[t].nesting<0&&u--,o[t].level=u,o[t].nesting>0&&u++,o[t].type==="text"&&t+1<r&&o[t+1].type==="text"?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}const eo=[["text",J0],["linkify",td],["newline",nd],["escape",rd],["backticks",ud],["strikethrough",Ui.tokenize],["emphasis",Gi.tokenize],["link",ld],["image",cd],["autolink",hd],["html_inline",bd],["entity",wd]],to=[["balance_pairs",vd],["strikethrough",Ui.postProcess],["emphasis",Gi.postProcess],["fragments_join",Ad]];function Un(){this.ruler=new We;for(let e=0;e<eo.length;e++)this.ruler.push(eo[e][0],eo[e][1]);this.ruler2=new We;for(let e=0;e<to.length;e++)this.ruler2.push(to[e][0],to[e][1])}Un.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),u=n.length,o=e.md.options.maxNesting,r=e.cache;if(typeof r[t]<"u"){e.pos=r[t];return}let a=!1;if(e.level<o){for(let s=0;s<u;s++)if(e.level++,a=n[s](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,r[t]=e.pos},Un.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,u=e.posMax,o=e.md.options.maxNesting;for(;e.pos<u;){const r=e.pos;let a=!1;if(e.level<o){for(let s=0;s<n;s++)if(a=t[s](e,!1),a){if(r>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=u)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Un.prototype.parse=function(e,t,n,u){const o=new this.State(e,t,n,u);this.tokenize(o);const r=this.ruler2.getRules(""),a=r.length;for(let s=0;s<a;s++)r[s](o)},Un.prototype.State=$n;function kd(e){const t={};e=e||{},t.src_Any=Ei.source,t.src_Cc=Si.source,t.src_Z=Di.source,t.src_P=Wu.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function no(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(u){e[u]=n[u]})}),e}function Hr(e){return Object.prototype.toString.call(e)}function Cd(e){return Hr(e)==="[object String]"}function _d(e){return Hr(e)==="[object Object]"}function Ed(e){return Hr(e)==="[object RegExp]"}function qi(e){return Hr(e)==="[object Function]"}function Sd(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Zi={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Fd(e){return Object.keys(e||{}).reduce(function(t,n){return t||Zi.hasOwnProperty(n)},!1)}const Dd={"http:":{validate:function(e,t,n){const u=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(u)?u.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const u=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(u)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:u.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const u=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(u)?u.match(n.re.mailto)[0].length:0}}},Td="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Nd="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Ld(e){e.__index__=-1,e.__text_cache__=""}function Id(e){return function(t,n){const u=t.slice(n);return e.test(u)?u.match(e)[0].length:0}}function Yi(){return function(e,t){t.normalize(e)}}function $r(e){const t=e.re=kd(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Td),n.push(t.src_xn),t.src_tlds=n.join("|");function u(s){return s.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(u(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(u(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(u(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(u(t.tpl_host_fuzzy_test),"i");const o=[];e.__compiled__={};function r(s,l){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+l)}Object.keys(e.__schemas__).forEach(function(s){const l=e.__schemas__[s];if(l===null)return;const d={validate:null,link:null};if(e.__compiled__[s]=d,_d(l)){Ed(l.validate)?d.validate=Id(l.validate):qi(l.validate)?d.validate=l.validate:r(s,l),qi(l.normalize)?d.normalize=l.normalize:l.normalize?r(s,l):d.normalize=Yi();return}if(Cd(l)){o.push(s);return}r(s,l)}),o.forEach(function(s){e.__compiled__[e.__schemas__[s]]&&(e.__compiled__[s].validate=e.__compiled__[e.__schemas__[s]].validate,e.__compiled__[s].normalize=e.__compiled__[e.__schemas__[s]].normalize)}),e.__compiled__[""]={validate:null,normalize:Yi()};const a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(Sd).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),Ld(e)}function Od(e,t){const n=e.__index__,u=e.__last_index__,o=e.__text_cache__.slice(n,u);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=u+t,this.raw=o,this.text=o,this.url=o}function ro(e,t){const n=new Od(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function qe(e,t){if(!(this instanceof qe))return new qe(e,t);t||Fd(e)&&(t=e,e={}),this.__opts__=no({},Zi,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=no({},Dd,e),this.__compiled__={},this.__tlds__=Nd,this.__tlds_replaced__=!1,this.re={},$r(this)}qe.prototype.add=function(t,n){return this.__schemas__[t]=n,$r(this),this},qe.prototype.set=function(t){return this.__opts__=no(this.__opts__,t),this},qe.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,u,o,r,a,s,l,d,f;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(r=this.testSchemaAt(t,n[2],l.lastIndex),r){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(d=t.search(this.re.host_fuzzy_test),d>=0&&(this.__index__<0||d<this.__index__)&&(u=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=u.index+u[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=u.index+u[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=t.indexOf("@"),f>=0&&(o=t.match(this.re.email_fuzzy))!==null&&(a=o.index+o[1].length,s=o.index+o[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s))),this.__index__>=0},qe.prototype.pretest=function(t){return this.re.pretest.test(t)},qe.prototype.testSchemaAt=function(t,n,u){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,u,this):0},qe.prototype.match=function(t){const n=[];let u=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(ro(this,u)),u=this.__last_index__);let o=u?t.slice(u):t;for(;this.test(o);)n.push(ro(this,u)),o=o.slice(this.__last_index__),u+=this.__last_index__;return n.length?n:null},qe.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const u=this.testSchemaAt(t,n[2],n[0].length);return u?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+u,ro(this,0)):null},qe.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(u,o,r){return u!==r[o-1]}).reverse(),$r(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,$r(this),this)},qe.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)},qe.prototype.onCompile=function(){};const pn=2147483647,vt=36,uo=1,Wn=26,Pd=38,Vd=700,Ki=72,Qi=128,Ji="-",Rd=/^xn--/,Md=/[^\0-\x7F]/,Bd=/[\x2E\u3002\uFF0E\uFF61]/g,zd={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},oo=vt-uo,At=Math.floor,io=String.fromCharCode;function zt(e){throw new RangeError(zd[e])}function jd(e,t){const n=[];let u=e.length;for(;u--;)n[u]=t(e[u]);return n}function ea(e,t){const n=e.split("@");let u="";n.length>1&&(u=n[0]+"@",e=n[1]),e=e.replace(Bd,".");const o=e.split("."),r=jd(o,t).join(".");return u+r}function ta(e){const t=[];let n=0;const u=e.length;for(;n<u;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<u){const r=e.charCodeAt(n++);(r&64512)==56320?t.push(((o&1023)<<10)+(r&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}const Hd=e=>String.fromCodePoint(...e),$d=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:vt},na=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},ra=function(e,t,n){let u=0;for(e=n?At(e/Vd):e>>1,e+=At(e/t);e>oo*Wn>>1;u+=vt)e=At(e/oo);return At(u+(oo+1)*e/(e+Pd))},ua=function(e){const t=[],n=e.length;let u=0,o=Qi,r=Ki,a=e.lastIndexOf(Ji);a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&zt("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s<n;){const l=u;for(let f=1,c=vt;;c+=vt){s>=n&&zt("invalid-input");const h=$d(e.charCodeAt(s++));h>=vt&&zt("invalid-input"),h>At((pn-u)/f)&&zt("overflow"),u+=h*f;const m=c<=r?uo:c>=r+Wn?Wn:c-r;if(h<m)break;const p=vt-m;f>At(pn/p)&&zt("overflow"),f*=p}const d=t.length+1;r=ra(u-l,d,l==0),At(u/d)>pn-o&&zt("overflow"),o+=At(u/d),u%=d,t.splice(u++,0,o)}return String.fromCodePoint(...t)},oa=function(e){const t=[];e=ta(e);const n=e.length;let u=Qi,o=0,r=Ki;for(const l of e)l<128&&t.push(io(l));const a=t.length;let s=a;for(a&&t.push(Ji);s<n;){let l=pn;for(const f of e)f>=u&&f<l&&(l=f);const d=s+1;l-u>At((pn-o)/d)&&zt("overflow"),o+=(l-u)*d,u=l;for(const f of e)if(f<u&&++o>pn&&zt("overflow"),f===u){let c=o;for(let h=vt;;h+=vt){const m=h<=r?uo:h>=r+Wn?Wn:h-r;if(c<m)break;const p=c-m,w=vt-m;t.push(io(na(m+p%w,0))),c=At(p/w)}t.push(io(na(c,0))),r=ra(o,d,s===a),o=0,++s}++o,++u}return t.join("")},ia={version:"2.3.1",ucs2:{decode:ta,encode:Hd},decode:ua,encode:oa,toASCII:function(e){return ea(e,function(t){return Md.test(t)?"xn--"+oa(t):t})},toUnicode:function(e){return ea(e,function(t){return Rd.test(t)?ua(t.slice(4).toLowerCase()):t})}},Ud={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},Wd=/^(vbscript|javascript|file|data):/,Gd=/^data:image\/(gif|png|jpeg|webp);/;function Xd(e){const t=e.trim().toLowerCase();return Wd.test(t)?Gd.test(t):!0}const aa=["http:","https:","mailto:"];function qd(e){const t=Uu(e,!0);if(t.hostname&&(!t.protocol||aa.indexOf(t.protocol)>=0))try{t.hostname=ia.toASCII(t.hostname)}catch{}return Bn($u(t))}function Zd(e){const t=Uu(e,!0);if(t.hostname&&(!t.protocol||aa.indexOf(t.protocol)>=0))try{t.hostname=ia.toUnicode(t.hostname)}catch{}return cn($u(t),cn.defaultChars+"%")}function Ze(e,t){if(!(this instanceof Ze))return new Ze(e,t);t||qu(e)||(t=e||{},e="default"),this.inline=new Un,this.block=new jr,this.core=new Ku,this.renderer=new fn,this.linkify=new qe,this.validateLink=Xd,this.normalizeLink=qd,this.normalizeLinkText=Zd,this.utils=i0,this.helpers=Vr({},c0),this.options={},this.configure(e),t&&this.set(t)}Ze.prototype.set=function(e){return Vr(this.options,e),this},Ze.prototype.configure=function(e){const t=this;if(qu(e)){const n=e;if(e=Ud[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},Ze.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const u=e.filter(function(o){return n.indexOf(o)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+u);return this},Ze.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const u=e.filter(function(o){return n.indexOf(o)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+u);return this},Ze.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Ze.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Ze.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Ze.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Ze.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:sa,setPrototypeOf:la,isFrozen:Yd,getPrototypeOf:Kd,getOwnPropertyDescriptor:Qd}=Object;let{freeze:ze,seal:ut,create:Ur}=Object,{apply:ao,construct:so}=typeof Reflect<"u"&&Reflect;ze||(ze=function(t){return t}),ut||(ut=function(t){return t}),ao||(ao=function(t,n){for(var u=arguments.length,o=new Array(u>2?u-2:0),r=2;r<u;r++)o[r-2]=arguments[r];return t.apply(n,o)}),so||(so=function(t){for(var n=arguments.length,u=new Array(n>1?n-1:0),o=1;o<n;o++)u[o-1]=arguments[o];return new t(...u)});const Wr=He(Array.prototype.forEach),Jd=He(Array.prototype.lastIndexOf),ca=He(Array.prototype.pop),Gn=He(Array.prototype.push),ef=He(Array.prototype.splice),Gr=He(String.prototype.toLowerCase),lo=He(String.prototype.toString),co=He(String.prototype.match),Xn=He(String.prototype.replace),tf=He(String.prototype.indexOf),nf=He(String.prototype.trim),Ye=He(Object.prototype.hasOwnProperty),je=He(RegExp.prototype.test),qn=rf(TypeError);function He(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,u=new Array(n>1?n-1:0),o=1;o<n;o++)u[o-1]=arguments[o];return ao(e,t,u)}}function rf(e){return function(){for(var t=arguments.length,n=new Array(t),u=0;u<t;u++)n[u]=arguments[u];return so(e,n)}}function oe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Gr;la&&la(e,null);let u=t.length;for(;u--;){let o=t[u];if(typeof o=="string"){const r=n(o);r!==o&&(Yd(t)||(t[u]=r),o=r)}e[o]=!0}return e}function uf(e){for(let t=0;t<e.length;t++)Ye(e,t)||(e[t]=null);return e}function kt(e){const t=Ur(null);for(const[n,u]of sa(e))Ye(e,n)&&(Array.isArray(u)?t[n]=uf(u):u&&typeof u=="object"&&u.constructor===Object?t[n]=kt(u):t[n]=u);return t}function Zn(e,t){for(;e!==null;){const u=Qd(e,t);if(u){if(u.get)return He(u.get);if(typeof u.value=="function")return He(u.value)}e=Kd(e)}function n(){return null}return n}const da=ze(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),fo=ze(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ho=ze(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),of=ze(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),po=ze(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),af=ze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),fa=ze(["#text"]),ha=ze(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),mo=ze(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),pa=ze(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Xr=ze(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),sf=ut(/\{\{[\w\W]*|[\w\W]*\}\}/gm),lf=ut(/<%[\w\W]*|[\w\W]*%>/gm),cf=ut(/\$\{[\w\W]*/gm),df=ut(/^data-[\-\w.\u00B7-\uFFFF]+$/),ff=ut(/^aria-[\-\w]+$/),ma=ut(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hf=ut(/^(?:\w+script|data):/i),pf=ut(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ga=ut(/^html$/i),mf=ut(/^[a-z][.\w]*(-[.\w]+)+$/i);var ba=Object.freeze({__proto__:null,ARIA_ATTR:ff,ATTR_WHITESPACE:pf,CUSTOM_ELEMENT:mf,DATA_ATTR:df,DOCTYPE_NAME:ga,ERB_EXPR:lf,IS_ALLOWED_URI:ma,IS_SCRIPT_OR_DATA:hf,MUSTACHE_EXPR:sf,TMPLIT_EXPR:cf});const Yn={element:1,text:3,progressingInstruction:7,comment:8,document:9},gf=function(){return typeof window>"u"?null:window},bf=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let u=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(u=n.getAttribute(o));const r="dompurify"+(u?"#"+u:"");try{return t.createPolicy(r,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},ya=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function xa(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gf();const t=J=>xa(J);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==Yn.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const u=n,o=u.currentScript,{DocumentFragment:r,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:d,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:c,DOMParser:h,trustedTypes:m}=e,p=l.prototype,w=Zn(p,"cloneNode"),y=Zn(p,"remove"),A=Zn(p,"nextSibling"),b=Zn(p,"childNodes"),g=Zn(p,"parentNode");if(typeof a=="function"){const J=n.createElement("template");J.content&&J.content.ownerDocument&&(n=J.content.ownerDocument)}let x,k="";const{implementation:T,createNodeIterator:D,createDocumentFragment:F,getElementsByTagName:U}=n,{importNode:_}=u;let N=ya();t.isSupported=typeof sa=="function"&&typeof g=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:C,TMPLIT_EXPR:P,DATA_ATTR:V,ARIA_ATTR:E,IS_SCRIPT_OR_DATA:M,ATTR_WHITESPACE:R,CUSTOM_ELEMENT:$}=ba;let{IS_ALLOWED_URI:re}=ba,te=null;const z=oe({},[...da,...fo,...ho,...po,...fa]);let j=null;const I=oe({},[...ha,...mo,...pa,...Xr]);let B=Object.seal(Ur(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),W=null,K=null;const Z=Object.seal(Ur(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Y=!0,ue=!0,le=!1,De=!0,Te=!1,yt=!0,Me=!1,In=!1,Xt=!1,It=!1,Nu=!1,Lu=!1,Sl=!0,Fl=!1;const z2="user-content-";let Jo=!0,Fr=!1,On={},Dt=null;const ei=oe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Dl=null;const Tl=oe({},["audio","video","img","source","image","track"]);let ti=null;const Nl=oe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Iu="http://www.w3.org/1998/Math/MathML",Ou="http://www.w3.org/2000/svg",Ot="http://www.w3.org/1999/xhtml";let Pn=Ot,ni=!1,ri=null;const j2=oe({},[Iu,Ou,Ot],lo);let Pu=oe({},["mi","mo","mn","ms","mtext"]),Vu=oe({},["annotation-xml"]);const H2=oe({},["title","style","font","a","script"]);let Dr=null;const $2=["application/xhtml+xml","text/html"],U2="text/html";let Ce=null,Vn=null;const W2=n.createElement("form"),Ll=function(S){return S instanceof RegExp||S instanceof Function},ui=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Vn&&Vn===S)){if((!S||typeof S!="object")&&(S={}),S=kt(S),Dr=$2.indexOf(S.PARSER_MEDIA_TYPE)===-1?U2:S.PARSER_MEDIA_TYPE,Ce=Dr==="application/xhtml+xml"?lo:Gr,te=Ye(S,"ALLOWED_TAGS")?oe({},S.ALLOWED_TAGS,Ce):z,j=Ye(S,"ALLOWED_ATTR")?oe({},S.ALLOWED_ATTR,Ce):I,ri=Ye(S,"ALLOWED_NAMESPACES")?oe({},S.ALLOWED_NAMESPACES,lo):j2,ti=Ye(S,"ADD_URI_SAFE_ATTR")?oe(kt(Nl),S.ADD_URI_SAFE_ATTR,Ce):Nl,Dl=Ye(S,"ADD_DATA_URI_TAGS")?oe(kt(Tl),S.ADD_DATA_URI_TAGS,Ce):Tl,Dt=Ye(S,"FORBID_CONTENTS")?oe({},S.FORBID_CONTENTS,Ce):ei,W=Ye(S,"FORBID_TAGS")?oe({},S.FORBID_TAGS,Ce):kt({}),K=Ye(S,"FORBID_ATTR")?oe({},S.FORBID_ATTR,Ce):kt({}),On=Ye(S,"USE_PROFILES")?S.USE_PROFILES:!1,Y=S.ALLOW_ARIA_ATTR!==!1,ue=S.ALLOW_DATA_ATTR!==!1,le=S.ALLOW_UNKNOWN_PROTOCOLS||!1,De=S.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Te=S.SAFE_FOR_TEMPLATES||!1,yt=S.SAFE_FOR_XML!==!1,Me=S.WHOLE_DOCUMENT||!1,It=S.RETURN_DOM||!1,Nu=S.RETURN_DOM_FRAGMENT||!1,Lu=S.RETURN_TRUSTED_TYPE||!1,Xt=S.FORCE_BODY||!1,Sl=S.SANITIZE_DOM!==!1,Fl=S.SANITIZE_NAMED_PROPS||!1,Jo=S.KEEP_CONTENT!==!1,Fr=S.IN_PLACE||!1,re=S.ALLOWED_URI_REGEXP||ma,Pn=S.NAMESPACE||Ot,Pu=S.MATHML_TEXT_INTEGRATION_POINTS||Pu,Vu=S.HTML_INTEGRATION_POINTS||Vu,B=S.CUSTOM_ELEMENT_HANDLING||{},S.CUSTOM_ELEMENT_HANDLING&&Ll(S.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(B.tagNameCheck=S.CUSTOM_ELEMENT_HANDLING.tagNameCheck),S.CUSTOM_ELEMENT_HANDLING&&Ll(S.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(B.attributeNameCheck=S.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),S.CUSTOM_ELEMENT_HANDLING&&typeof S.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(B.allowCustomizedBuiltInElements=S.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Te&&(ue=!1),Nu&&(It=!0),On&&(te=oe({},fa),j=Ur(null),On.html===!0&&(oe(te,da),oe(j,ha)),On.svg===!0&&(oe(te,fo),oe(j,mo),oe(j,Xr)),On.svgFilters===!0&&(oe(te,ho),oe(j,mo),oe(j,Xr)),On.mathMl===!0&&(oe(te,po),oe(j,pa),oe(j,Xr))),Ye(S,"ADD_TAGS")||(Z.tagCheck=null),Ye(S,"ADD_ATTR")||(Z.attributeCheck=null),S.ADD_TAGS&&(typeof S.ADD_TAGS=="function"?Z.tagCheck=S.ADD_TAGS:(te===z&&(te=kt(te)),oe(te,S.ADD_TAGS,Ce))),S.ADD_ATTR&&(typeof S.ADD_ATTR=="function"?Z.attributeCheck=S.ADD_ATTR:(j===I&&(j=kt(j)),oe(j,S.ADD_ATTR,Ce))),S.ADD_URI_SAFE_ATTR&&oe(ti,S.ADD_URI_SAFE_ATTR,Ce),S.FORBID_CONTENTS&&(Dt===ei&&(Dt=kt(Dt)),oe(Dt,S.FORBID_CONTENTS,Ce)),S.ADD_FORBID_CONTENTS&&(Dt===ei&&(Dt=kt(Dt)),oe(Dt,S.ADD_FORBID_CONTENTS,Ce)),Jo&&(te["#text"]=!0),Me&&oe(te,["html","head","body"]),te.table&&(oe(te,["tbody"]),delete W.tbody),S.TRUSTED_TYPES_POLICY){if(typeof S.TRUSTED_TYPES_POLICY.createHTML!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof S.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=S.TRUSTED_TYPES_POLICY,k=x.createHTML("")}else x===void 0&&(x=bf(m,o)),x!==null&&typeof k=="string"&&(k=x.createHTML(""));ze&&ze(S),Vn=S}},Il=oe({},[...fo,...ho,...of]),Ol=oe({},[...po,...af]),G2=function(S){let H=g(S);(!H||!H.tagName)&&(H={namespaceURI:Pn,tagName:"template"});const Q=Gr(S.tagName),ge=Gr(H.tagName);return ri[S.namespaceURI]?S.namespaceURI===Ou?H.namespaceURI===Ot?Q==="svg":H.namespaceURI===Iu?Q==="svg"&&(ge==="annotation-xml"||Pu[ge]):!!Il[Q]:S.namespaceURI===Iu?H.namespaceURI===Ot?Q==="math":H.namespaceURI===Ou?Q==="math"&&Vu[ge]:!!Ol[Q]:S.namespaceURI===Ot?H.namespaceURI===Ou&&!Vu[ge]||H.namespaceURI===Iu&&!Pu[ge]?!1:!Ol[Q]&&(H2[Q]||!Il[Q]):!!(Dr==="application/xhtml+xml"&&ri[S.namespaceURI]):!1},Tt=function(S){Gn(t.removed,{element:S});try{g(S).removeChild(S)}catch{y(S)}},sn=function(S,H){try{Gn(t.removed,{attribute:H.getAttributeNode(S),from:H})}catch{Gn(t.removed,{attribute:null,from:H})}if(H.removeAttribute(S),S==="is")if(It||Nu)try{Tt(H)}catch{}else try{H.setAttribute(S,"")}catch{}},Pl=function(S){let H=null,Q=null;if(Xt)S="<remove></remove>"+S;else{const ve=co(S,/^[\r\n\t ]+/);Q=ve&&ve[0]}Dr==="application/xhtml+xml"&&Pn===Ot&&(S='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+S+"</body></html>");const ge=x?x.createHTML(S):S;if(Pn===Ot)try{H=new h().parseFromString(ge,Dr)}catch{}if(!H||!H.documentElement){H=T.createDocument(Pn,"template",null);try{H.documentElement.innerHTML=ni?k:ge}catch{}}const Be=H.body||H.documentElement;return S&&Q&&Be.insertBefore(n.createTextNode(Q),Be.childNodes[0]||null),Pn===Ot?U.call(H,Me?"html":"body")[0]:Me?H.documentElement:Be},Vl=function(S){return D.call(S.ownerDocument||S,S,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},oi=function(S){return S instanceof c&&(typeof S.nodeName!="string"||typeof S.textContent!="string"||typeof S.removeChild!="function"||!(S.attributes instanceof f)||typeof S.removeAttribute!="function"||typeof S.setAttribute!="function"||typeof S.namespaceURI!="string"||typeof S.insertBefore!="function"||typeof S.hasChildNodes!="function")},Rl=function(S){return typeof s=="function"&&S instanceof s};function Pt(J,S,H){Wr(J,Q=>{Q.call(t,S,H,Vn)})}const Ml=function(S){let H=null;if(Pt(N.beforeSanitizeElements,S,null),oi(S))return Tt(S),!0;const Q=Ce(S.nodeName);if(Pt(N.uponSanitizeElement,S,{tagName:Q,allowedTags:te}),yt&&S.hasChildNodes()&&!Rl(S.firstElementChild)&&je(/<[/\w!]/g,S.innerHTML)&&je(/<[/\w!]/g,S.textContent)||S.nodeType===Yn.progressingInstruction||yt&&S.nodeType===Yn.comment&&je(/<[/\w]/g,S.data))return Tt(S),!0;if(!(Z.tagCheck instanceof Function&&Z.tagCheck(Q))&&(!te[Q]||W[Q])){if(!W[Q]&&zl(Q)&&(B.tagNameCheck instanceof RegExp&&je(B.tagNameCheck,Q)||B.tagNameCheck instanceof Function&&B.tagNameCheck(Q)))return!1;if(Jo&&!Dt[Q]){const ge=g(S)||S.parentNode,Be=b(S)||S.childNodes;if(Be&&ge){const ve=Be.length;for(let Xe=ve-1;Xe>=0;--Xe){const Vt=w(Be[Xe],!0);Vt.__removalCount=(S.__removalCount||0)+1,ge.insertBefore(Vt,A(S))}}}return Tt(S),!0}return S instanceof l&&!G2(S)||(Q==="noscript"||Q==="noembed"||Q==="noframes")&&je(/<\/no(script|embed|frames)/i,S.innerHTML)?(Tt(S),!0):(Te&&S.nodeType===Yn.text&&(H=S.textContent,Wr([L,C,P],ge=>{H=Xn(H,ge," ")}),S.textContent!==H&&(Gn(t.removed,{element:S.cloneNode()}),S.textContent=H)),Pt(N.afterSanitizeElements,S,null),!1)},Bl=function(S,H,Q){if(K[H]||Sl&&(H==="id"||H==="name")&&(Q in n||Q in W2))return!1;if(!(ue&&!K[H]&&je(V,H))){if(!(Y&&je(E,H))){if(!(Z.attributeCheck instanceof Function&&Z.attributeCheck(H,S))){if(!j[H]||K[H]){if(!(zl(S)&&(B.tagNameCheck instanceof RegExp&&je(B.tagNameCheck,S)||B.tagNameCheck instanceof Function&&B.tagNameCheck(S))&&(B.attributeNameCheck instanceof RegExp&&je(B.attributeNameCheck,H)||B.attributeNameCheck instanceof Function&&B.attributeNameCheck(H,S))||H==="is"&&B.allowCustomizedBuiltInElements&&(B.tagNameCheck instanceof RegExp&&je(B.tagNameCheck,Q)||B.tagNameCheck instanceof Function&&B.tagNameCheck(Q))))return!1}else if(!ti[H]){if(!je(re,Xn(Q,R,""))){if(!((H==="src"||H==="xlink:href"||H==="href")&&S!=="script"&&tf(Q,"data:")===0&&Dl[S])){if(!(le&&!je(M,Xn(Q,R,"")))){if(Q)return!1}}}}}}}return!0},zl=function(S){return S!=="annotation-xml"&&co(S,$)},jl=function(S){Pt(N.beforeSanitizeAttributes,S,null);const{attributes:H}=S;if(!H||oi(S))return;const Q={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0};let ge=H.length;for(;ge--;){const Be=H[ge],{name:ve,namespaceURI:Xe,value:Vt}=Be,Rn=Ce(ve),ii=Vt;let Ie=ve==="value"?ii:nf(ii);if(Q.attrName=Rn,Q.attrValue=Ie,Q.keepAttr=!0,Q.forceKeepAttr=void 0,Pt(N.uponSanitizeAttribute,S,Q),Ie=Q.attrValue,Fl&&(Rn==="id"||Rn==="name")&&(sn(ve,S),Ie=z2+Ie),yt&&je(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ie)){sn(ve,S);continue}if(Rn==="attributename"&&co(Ie,"href")){sn(ve,S);continue}if(Q.forceKeepAttr)continue;if(!Q.keepAttr){sn(ve,S);continue}if(!De&&je(/\/>/i,Ie)){sn(ve,S);continue}Te&&Wr([L,C,P],$l=>{Ie=Xn(Ie,$l," ")});const Hl=Ce(S.nodeName);if(!Bl(Hl,Rn,Ie)){sn(ve,S);continue}if(x&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!Xe)switch(m.getAttributeType(Hl,Rn)){case"TrustedHTML":{Ie=x.createHTML(Ie);break}case"TrustedScriptURL":{Ie=x.createScriptURL(Ie);break}}if(Ie!==ii)try{Xe?S.setAttributeNS(Xe,ve,Ie):S.setAttribute(ve,Ie),oi(S)?Tt(S):ca(t.removed)}catch{sn(ve,S)}}Pt(N.afterSanitizeAttributes,S,null)},X2=function J(S){let H=null;const Q=Vl(S);for(Pt(N.beforeSanitizeShadowDOM,S,null);H=Q.nextNode();)Pt(N.uponSanitizeShadowNode,H,null),Ml(H),jl(H),H.content instanceof r&&J(H.content);Pt(N.afterSanitizeShadowDOM,S,null)};return t.sanitize=function(J){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},H=null,Q=null,ge=null,Be=null;if(ni=!J,ni&&(J="<!-->"),typeof J!="string"&&!Rl(J))if(typeof J.toString=="function"){if(J=J.toString(),typeof J!="string")throw qn("dirty is not a string, aborting")}else throw qn("toString is not a function");if(!t.isSupported)return J;if(In||ui(S),t.removed=[],typeof J=="string"&&(Fr=!1),Fr){if(J.nodeName){const Vt=Ce(J.nodeName);if(!te[Vt]||W[Vt])throw qn("root node is forbidden and cannot be sanitized in-place")}}else if(J instanceof s)H=Pl("<!---->"),Q=H.ownerDocument.importNode(J,!0),Q.nodeType===Yn.element&&Q.nodeName==="BODY"||Q.nodeName==="HTML"?H=Q:H.appendChild(Q);else{if(!It&&!Te&&!Me&&J.indexOf("<")===-1)return x&&Lu?x.createHTML(J):J;if(H=Pl(J),!H)return It?null:Lu?k:""}H&&Xt&&Tt(H.firstChild);const ve=Vl(Fr?J:H);for(;ge=ve.nextNode();)Ml(ge),jl(ge),ge.content instanceof r&&X2(ge.content);if(Fr)return J;if(It){if(Nu)for(Be=F.call(H.ownerDocument);H.firstChild;)Be.appendChild(H.firstChild);else Be=H;return(j.shadowroot||j.shadowrootmode)&&(Be=_.call(u,Be,!0)),Be}let Xe=Me?H.outerHTML:H.innerHTML;return Me&&te["!doctype"]&&H.ownerDocument&&H.ownerDocument.doctype&&H.ownerDocument.doctype.name&&je(ga,H.ownerDocument.doctype.name)&&(Xe="<!DOCTYPE "+H.ownerDocument.doctype.name+`>
17
- `+Xe),Te&&Wr([L,C,P],Vt=>{Xe=Xn(Xe,Vt," ")}),x&&Lu?x.createHTML(Xe):Xe},t.setConfig=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ui(J),In=!0},t.clearConfig=function(){Vn=null,In=!1},t.isValidAttribute=function(J,S,H){Vn||ui({});const Q=Ce(J),ge=Ce(S);return Bl(Q,ge,H)},t.addHook=function(J,S){typeof S=="function"&&Gn(N[J],S)},t.removeHook=function(J,S){if(S!==void 0){const H=Jd(N[J],S);return H===-1?void 0:ef(N[J],H,1)[0]}return ca(N[J])},t.removeHooks=function(J){N[J]=[]},t.removeAllHooks=function(){N=ya()},t}var yf=xa();const wa={content:{type:Object,required:!0}},xf=new Ze({html:!0,linkify:!0});function wf(e){let t=e;return t=t.replace(/([\u2026\u3001\u3002\uff0c\uff1a\uff1b\uff1f\uff01)】」』]|[;:,.!?(\[\]])[\t ]*(#{2,6}\s+)/g,`$1
13
+ `:">",r},dn.prototype.renderInline=function(e,t,n){let u="";const o=this.rules;for(let r=0,a=e.length;r<a;r++){const s=e[r].type;typeof o[s]<"u"?u+=o[s](e,r,t,n,this):u+=this.renderToken(e,r,t)}return u},dn.prototype.renderInlineAsText=function(e,t,n){let u="";for(let o=0,r=e.length;o<r;o++)switch(e[o].type){case"text":u+=e[o].content;break;case"image":u+=this.renderInlineAsText(e[o].children,t,n);break;case"html_inline":case"html_block":u+=e[o].content;break;case"softbreak":case"hardbreak":u+=`
14
+ `;break}return u},dn.prototype.render=function(e,t,n){let u="";const o=this.rules;for(let r=0,a=e.length;r<a;r++){const s=e[r].type;s==="inline"?u+=this.renderInline(e[r].children,t,n):typeof o[s]<"u"?u+=o[s](e,r,t,n,this):u+=this.renderToken(e,r,t,n)}return u};function We(){this.__rules__=[],this.__cache__=null}We.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},We.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(u){t.indexOf(u)<0&&t.push(u)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(u){u.enabled&&(n&&u.alt.indexOf(n)<0||e.__cache__[n].push(u.fn))})})},We.prototype.at=function(e,t,n){const u=this.__find__(e),o=n||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__[u].fn=t,this.__rules__[u].alt=o.alt||[],this.__cache__=null},We.prototype.before=function(e,t,n,u){const o=this.__find__(e),r=u||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null},We.prototype.after=function(e,t,n,u){const o=this.__find__(e),r=u||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null},We.prototype.push=function(e,t,n){const u=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:u.alt||[]}),this.__cache__=null},We.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const o=this.__find__(u);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[o].enabled=!0,n.push(u)},this),this.__cache__=null,n},We.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)},We.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const o=this.__find__(u);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[o].enabled=!1,n.push(u)},this),this.__cache__=null,n},We.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function st(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}st.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let u=0,o=n.length;u<o;u++)if(n[u][0]===t)return u;return-1},st.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},st.prototype.attrSet=function(t,n){const u=this.attrIndex(t),o=[t,n];u<0?this.attrPush(o):this.attrs[u]=o},st.prototype.attrGet=function(t){const n=this.attrIndex(t);let u=null;return n>=0&&(u=this.attrs[n][1]),u},st.prototype.attrJoin=function(t,n){const u=this.attrIndex(t);u<0?this.attrPush([t,n]):this.attrs[u][1]=this.attrs[u][1]+" "+n};function Ri(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Ri.prototype.Token=st;const hd=/\r\n?|\n/g,md=/\0/g;function pd(e){let t;t=e.src.replace(hd,`
15
+ `),t=t.replace(md,"�"),e.src=t}function gd(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function bd(e){const t=e.tokens;for(let n=0,u=t.length;n<u;n++){const o=t[n];o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)}}function yd(e){return/^<a[>\s]/i.test(e)}function xd(e){return/^<\/a\s*>/i.test(e)}function wd(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,u=t.length;n<u;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let o=t[n].children,r=0;for(let a=o.length-1;a>=0;a--){const s=o[a];if(s.type==="link_close"){for(a--;o[a].level!==s.level&&o[a].type!=="link_open";)a--;continue}if(s.type==="html_inline"&&(yd(s.content)&&r>0&&r--,xd(s.content)&&r++),!(r>0)&&s.type==="text"&&e.md.linkify.test(s.content)){const l=s.content;let d=e.md.linkify.match(l);const f=[];let c=s.level,h=0;d.length>0&&d[0].index===0&&a>0&&o[a-1].type==="text_special"&&(d=d.slice(1));for(let p=0;p<d.length;p++){const m=d[p].url,w=e.md.normalizeLink(m);if(!e.md.validateLink(w))continue;let y=d[p].text;d[p].schema?d[p].schema==="mailto:"&&!/^mailto:/i.test(y)?y=e.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):y=e.md.normalizeLinkText(y):y=e.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,"");const A=d[p].index;if(A>h){const k=new e.Token("text","",0);k.content=l.slice(h,A),k.level=c,f.push(k)}const b=new e.Token("link_open","a",1);b.attrs=[["href",w]],b.level=c++,b.markup="linkify",b.info="auto",f.push(b);const g=new e.Token("text","",0);g.content=y,g.level=c,f.push(g);const x=new e.Token("link_close","a",-1);x.level=--c,x.markup="linkify",x.info="auto",f.push(x),h=d[p].lastIndex}if(h<l.length){const p=new e.Token("text","",0);p.content=l.slice(h),p.level=c,f.push(p)}t[n].children=o=Pi(o,a,f)}}}}const Mi=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,vd=/\((c|tm|r)\)/i,Ad=/\((c|tm|r)\)/ig,kd={c:"©",r:"®",tm:"™"};function Cd(e,t){return kd[t.toLowerCase()]}function _d(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&(u.content=u.content.replace(Ad,Cd)),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function Ed(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&Mi.test(u.content)&&(u.content=u.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function Sd(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(vd.test(e.tokens[t].content)&&_d(e.tokens[t].children),Mi.test(e.tokens[t].content)&&Ed(e.tokens[t].children))}const Dd=/['"]/,Bi=/['"]/g,zi="’";function zr(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function Td(e,t){let n;const u=[];for(let o=0;o<e.length;o++){const r=e[o],a=e[o].level;for(n=u.length-1;n>=0&&!(u[n].level<=a);n--);if(u.length=n+1,r.type!=="text")continue;let s=r.content,l=0,d=s.length;e:for(;l<d;){Bi.lastIndex=l;const f=Bi.exec(s);if(!f)break;let c=!0,h=!0;l=f.index+1;const p=f[0]==="'";let m=32;if(f.index-1>=0)m=s.charCodeAt(f.index-1);else for(n=o-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let w=32;if(l<d)w=s.charCodeAt(l);else for(n=o+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){w=e[n].content.charCodeAt(0);break}const y=Hn(m)||jn(String.fromCharCode(m)),A=Hn(w)||jn(String.fromCharCode(w)),b=zn(m),g=zn(w);if(g?c=!1:A&&(b||y||(c=!1)),b?h=!1:y&&(g||A||(h=!1)),w===34&&f[0]==='"'&&m>=48&&m<=57&&(h=c=!1),c&&h&&(c=y,h=A),!c&&!h){p&&(r.content=zr(r.content,f.index,zi));continue}if(h)for(n=u.length-1;n>=0;n--){let x=u[n];if(u[n].level<a)break;if(x.single===p&&u[n].level===a){x=u[n];let k,F;p?(k=t.md.options.quotes[2],F=t.md.options.quotes[3]):(k=t.md.options.quotes[0],F=t.md.options.quotes[1]),r.content=zr(r.content,f.index,F),e[x.token].content=zr(e[x.token].content,x.pos,k),l+=F.length-1,x.token===o&&(l+=k.length-1),s=r.content,d=s.length,u.length=n;continue e}}c?u.push({token:o,pos:f.index,single:p,level:a}):h&&p&&(r.content=zr(r.content,f.index,zi))}}}function Fd(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!Dd.test(e.tokens[t].content)||Td(e.tokens[t].children,e)}function Nd(e){let t,n;const u=e.tokens,o=u.length;for(let r=0;r<o;r++){if(u[r].type!=="inline")continue;const a=u[r].children,s=a.length;for(t=0;t<s;t++)a[t].type==="text_special"&&(a[t].type="text");for(t=n=0;t<s;t++)a[t].type==="text"&&t+1<s&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==n&&(a[n]=a[t]),n++);t!==n&&(a.length=n)}}const Yu=[["normalize",pd],["block",gd],["inline",bd],["linkify",wd],["replacements",Sd],["smartquotes",Fd],["text_join",Nd]];function Ku(){this.ruler=new We;for(let e=0;e<Yu.length;e++)this.ruler.push(Yu[e][0],Yu[e][1])}Ku.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,u=t.length;n<u;n++)t[n](e)},Ku.prototype.State=Ri;function wt(e,t,n,u){this.src=e,this.md=t,this.env=n,this.tokens=u,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const o=this.src;for(let r=0,a=0,s=0,l=0,d=o.length,f=!1;a<d;a++){const c=o.charCodeAt(a);if(!f)if(ce(c)){s++,c===9?l+=4-l%4:l++;continue}else f=!0;(c===10||a===d-1)&&(c!==10&&a++,this.bMarks.push(r),this.eMarks.push(a),this.tShift.push(s),this.sCount.push(l),this.bsCount.push(0),f=!1,s=0,l=0,r=a+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}wt.prototype.push=function(e,t,n){const u=new st(e,t,n);return u.block=!0,n<0&&this.level--,u.level=this.level,n>0&&this.level++,this.tokens.push(u),u},wt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},wt.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},wt.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const u=this.src.charCodeAt(t);if(!ce(u))break}return t},wt.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!ce(this.src.charCodeAt(--t)))return t+1;return t},wt.prototype.skipChars=function(t,n){for(let u=this.src.length;t<u&&this.src.charCodeAt(t)===n;t++);return t},wt.prototype.skipCharsBack=function(t,n,u){if(t<=u)return t;for(;t>u;)if(n!==this.src.charCodeAt(--t))return t+1;return t},wt.prototype.getLines=function(t,n,u,o){if(t>=n)return"";const r=new Array(n-t);for(let a=0,s=t;s<n;s++,a++){let l=0;const d=this.bMarks[s];let f=d,c;for(s+1<n||o?c=this.eMarks[s]+1:c=this.eMarks[s];f<c&&l<u;){const h=this.src.charCodeAt(f);if(ce(h))h===9?l+=4-(l+this.bsCount[s])%4:l++;else if(f-d<this.tShift[s])l++;else break;f++}l>u?r[a]=new Array(l-u+1).join(" ")+this.src.slice(f,c):r[a]=this.src.slice(f,c)}return r.join("")},wt.prototype.Token=st;const Id=65536;function Qu(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];return e.src.slice(n,u)}function ji(e){const t=[],n=e.length;let u=0,o=e.charCodeAt(u),r=!1,a=0,s="";for(;u<n;)o===124&&(r?(s+=e.substring(a,u-1),a=u):(t.push(s+e.substring(a,u)),s="",a=u+1)),r=o===92,u++,o=e.charCodeAt(u);return t.push(s+e.substring(a)),t}function Od(e,t,n,u){if(t+2>n)return!1;let o=t+1;if(e.sCount[o]<e.blkIndent||e.sCount[o]-e.blkIndent>=4)return!1;let r=e.bMarks[o]+e.tShift[o];if(r>=e.eMarks[o])return!1;const a=e.src.charCodeAt(r++);if(a!==124&&a!==45&&a!==58||r>=e.eMarks[o])return!1;const s=e.src.charCodeAt(r++);if(s!==124&&s!==45&&s!==58&&!ce(s)||a===45&&ce(s))return!1;for(;r<e.eMarks[o];){const x=e.src.charCodeAt(r);if(x!==124&&x!==45&&x!==58&&!ce(x))return!1;r++}let l=Qu(e,t+1),d=l.split("|");const f=[];for(let x=0;x<d.length;x++){const k=d[x].trim();if(!k){if(x===0||x===d.length-1)continue;return!1}if(!/^:?-+:?$/.test(k))return!1;k.charCodeAt(k.length-1)===58?f.push(k.charCodeAt(0)===58?"center":"right"):k.charCodeAt(0)===58?f.push("left"):f.push("")}if(l=Qu(e,t).trim(),l.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;d=ji(l),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop();const c=d.length;if(c===0||c!==f.length)return!1;if(u)return!0;const h=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),w=[t,0];m.map=w;const y=e.push("thead_open","thead",1);y.map=[t,t+1];const A=e.push("tr_open","tr",1);A.map=[t,t+1];for(let x=0;x<d.length;x++){const k=e.push("th_open","th",1);f[x]&&(k.attrs=[["style","text-align:"+f[x]]]);const F=e.push("inline","",0);F.content=d[x].trim(),F.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let b,g=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let x=!1;for(let F=0,T=p.length;F<T;F++)if(p[F](e,o,n,!0)){x=!0;break}if(x||(l=Qu(e,o).trim(),!l)||e.sCount[o]-e.blkIndent>=4||(d=ji(l),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),g+=c-d.length,g>Id))break;if(o===t+2){const F=e.push("tbody_open","tbody",1);F.map=b=[t+2,0]}const k=e.push("tr_open","tr",1);k.map=[o,o+1];for(let F=0;F<c;F++){const T=e.push("td_open","td",1);f[F]&&(T.attrs=[["style","text-align:"+f[F]]]);const D=e.push("inline","",0);D.content=d[F]?d[F].trim():"",D.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return b&&(e.push("tbody_close","tbody",-1),b[1]=o),e.push("table_close","table",-1),w[1]=o,e.parentType=h,e.line=o,!0}function Ld(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let u=t+1,o=u;for(;u<n;){if(e.isEmpty(u)){u++;continue}if(e.sCount[u]-e.blkIndent>=4){u++,o=u;continue}break}e.line=o;const r=e.push("code_block","code",0);return r.content=e.getLines(t,o,4+e.blkIndent,!1)+`
16
+ `,r.map=[t,e.line],!0}function Pd(e,t,n,u){let o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||o+3>r)return!1;const a=e.src.charCodeAt(o);if(a!==126&&a!==96)return!1;let s=o;o=e.skipChars(o,a);let l=o-s;if(l<3)return!1;const d=e.src.slice(s,o),f=e.src.slice(o,r);if(a===96&&f.indexOf(String.fromCharCode(a))>=0)return!1;if(u)return!0;let c=t,h=!1;for(;c++,!(c>=n||(o=s=e.bMarks[c]+e.tShift[c],r=e.eMarks[c],o<r&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(o)===a&&!(e.sCount[c]-e.blkIndent>=4)&&(o=e.skipChars(o,a),!(o-s<l)&&(o=e.skipSpaces(o),!(o<r)))){h=!0;break}l=e.sCount[t],e.line=c+(h?1:0);const p=e.push("fence","code",0);return p.info=f,p.content=e.getLines(t+1,c,l,!0),p.markup=d,p.map=[t,e.line],!0}function Vd(e,t,n,u){let o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];const a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==62)return!1;if(u)return!0;const s=[],l=[],d=[],f=[],c=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let p=!1,m;for(m=t;m<n;m++){const g=e.sCount[m]<e.blkIndent;if(o=e.bMarks[m]+e.tShift[m],r=e.eMarks[m],o>=r)break;if(e.src.charCodeAt(o++)===62&&!g){let k=e.sCount[m]+1,F,T;e.src.charCodeAt(o)===32?(o++,k++,T=!1,F=!0):e.src.charCodeAt(o)===9?(F=!0,(e.bsCount[m]+k)%4===3?(o++,k++,T=!1):T=!0):F=!1;let D=k;for(s.push(e.bMarks[m]),e.bMarks[m]=o;o<r;){const U=e.src.charCodeAt(o);if(ce(U))U===9?D+=4-(D+e.bsCount[m]+(T?1:0))%4:D++;else break;o++}p=o>=r,l.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(F?1:0),d.push(e.sCount[m]),e.sCount[m]=D-k,f.push(e.tShift[m]),e.tShift[m]=o-e.bMarks[m];continue}if(p)break;let x=!1;for(let k=0,F=c.length;k<F;k++)if(c[k](e,m,n,!0)){x=!0;break}if(x){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),l.push(e.bsCount[m]),f.push(e.tShift[m]),d.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),l.push(e.bsCount[m]),f.push(e.tShift[m]),d.push(e.sCount[m]),e.sCount[m]=-1}const w=e.blkIndent;e.blkIndent=0;const y=e.push("blockquote_open","blockquote",1);y.markup=">";const A=[t,0];y.map=A,e.md.block.tokenize(e,t,m);const b=e.push("blockquote_close","blockquote",-1);b.markup=">",e.lineMax=a,e.parentType=h,A[1]=e.line;for(let g=0;g<f.length;g++)e.bMarks[g+t]=s[g],e.tShift[g+t]=f[g],e.sCount[g+t]=d[g],e.bsCount[g+t]=l[g];return e.blkIndent=w,!0}function Rd(e,t,n,u){const o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let r=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(r++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;r<o;){const d=e.src.charCodeAt(r++);if(d!==a&&!ce(d))return!1;d===a&&s++}if(s<3)return!1;if(u)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(a)),!0}function Hi(e,t){const n=e.eMarks[t];let u=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(u++);if(o!==42&&o!==45&&o!==43)return-1;if(u<n){const r=e.src.charCodeAt(u);if(!ce(r))return-1}return u}function $i(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];let o=n;if(o+1>=u)return-1;let r=e.src.charCodeAt(o++);if(r<48||r>57)return-1;for(;;){if(o>=u)return-1;if(r=e.src.charCodeAt(o++),r>=48&&r<=57){if(o-n>=10)return-1;continue}if(r===41||r===46)break;return-1}return o<u&&(r=e.src.charCodeAt(o),!ce(r))?-1:o}function Md(e,t){const n=e.level+2;for(let u=t+2,o=e.tokens.length-2;u<o;u++)e.tokens[u].level===n&&e.tokens[u].type==="paragraph_open"&&(e.tokens[u+2].hidden=!0,e.tokens[u].hidden=!0,u+=2)}function Bd(e,t,n,u){let o,r,a,s,l=t,d=!0;if(e.sCount[l]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let f=!1;u&&e.parentType==="paragraph"&&e.sCount[l]>=e.blkIndent&&(f=!0);let c,h,p;if((p=$i(e,l))>=0){if(c=!0,a=e.bMarks[l]+e.tShift[l],h=Number(e.src.slice(a,p-1)),f&&h!==1)return!1}else if((p=Hi(e,l))>=0)c=!1;else return!1;if(f&&e.skipSpaces(p)>=e.eMarks[l])return!1;if(u)return!0;const m=e.src.charCodeAt(p-1),w=e.tokens.length;c?(s=e.push("ordered_list_open","ol",1),h!==1&&(s.attrs=[["start",h]])):s=e.push("bullet_list_open","ul",1);const y=[l,0];s.map=y,s.markup=String.fromCharCode(m);let A=!1;const b=e.md.block.ruler.getRules("list"),g=e.parentType;for(e.parentType="list";l<n;){r=p,o=e.eMarks[l];const x=e.sCount[l]+p-(e.bMarks[l]+e.tShift[l]);let k=x;for(;r<o;){const V=e.src.charCodeAt(r);if(V===9)k+=4-(k+e.bsCount[l])%4;else if(V===32)k++;else break;r++}const F=r;let T;F>=o?T=1:T=k-x,T>4&&(T=1);const D=x+T;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(m);const U=[l,0];s.map=U,c&&(s.info=e.src.slice(a,p-1));const _=e.tight,N=e.tShift[l],I=e.sCount[l],C=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=D,e.tight=!0,e.tShift[l]=F-e.bMarks[l],e.sCount[l]=k,F>=o&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||A)&&(d=!1),A=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=C,e.tShift[l]=N,e.sCount[l]=I,e.tight=_,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(m),l=e.line,U[1]=l,l>=n||e.sCount[l]<e.blkIndent||e.sCount[l]-e.blkIndent>=4)break;let P=!1;for(let V=0,E=b.length;V<E;V++)if(b[V](e,l,n,!0)){P=!0;break}if(P)break;if(c){if(p=$i(e,l),p<0)break;a=e.bMarks[l]+e.tShift[l]}else if(p=Hi(e,l),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return c?s=e.push("ordered_list_close","ol",-1):s=e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(m),y[1]=l,e.line=l,e.parentType=g,d&&Md(e,w),!0}function zd(e,t,n,u){let o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==91)return!1;function s(b){const g=e.lineMax;if(b>=g||e.isEmpty(b))return null;let x=!1;if(e.sCount[b]-e.blkIndent>3&&(x=!0),e.sCount[b]<0&&(x=!0),!x){const T=e.md.block.ruler.getRules("reference"),D=e.parentType;e.parentType="reference";let U=!1;for(let _=0,N=T.length;_<N;_++)if(T[_](e,b,g,!0)){U=!0;break}if(e.parentType=D,U)return null}const k=e.bMarks[b]+e.tShift[b],F=e.eMarks[b];return e.src.slice(k,F+1)}let l=e.src.slice(o,r+1);r=l.length;let d=-1;for(o=1;o<r;o++){const b=l.charCodeAt(o);if(b===91)return!1;if(b===93){d=o;break}else if(b===10){const g=s(a);g!==null&&(l+=g,r=l.length,a++)}else if(b===92&&(o++,o<r&&l.charCodeAt(o)===10)){const g=s(a);g!==null&&(l+=g,r=l.length,a++)}}if(d<0||l.charCodeAt(d+1)!==58)return!1;for(o=d+2;o<r;o++){const b=l.charCodeAt(o);if(b===10){const g=s(a);g!==null&&(l+=g,r=l.length,a++)}else if(!ce(b))break}const f=e.md.helpers.parseLinkDestination(l,o,r);if(!f.ok)return!1;const c=e.md.normalizeLink(f.str);if(!e.md.validateLink(c))return!1;o=f.pos;const h=o,p=a,m=o;for(;o<r;o++){const b=l.charCodeAt(o);if(b===10){const g=s(a);g!==null&&(l+=g,r=l.length,a++)}else if(!ce(b))break}let w=e.md.helpers.parseLinkTitle(l,o,r);for(;w.can_continue;){const b=s(a);if(b===null)break;l+=b,o=r,r=l.length,a++,w=e.md.helpers.parseLinkTitle(l,o,r,w)}let y;for(o<r&&m!==o&&w.ok?(y=w.str,o=w.pos):(y="",o=h,a=p);o<r;){const b=l.charCodeAt(o);if(!ce(b))break;o++}if(o<r&&l.charCodeAt(o)!==10&&y)for(y="",o=h,a=p;o<r;){const b=l.charCodeAt(o);if(!ce(b))break;o++}if(o<r&&l.charCodeAt(o)!==10)return!1;const A=Br(l.slice(1,d));return A?(u||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[A]>"u"&&(e.env.references[A]={title:y,href:c}),e.line=a),!0):!1}const jd=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Hd="[a-zA-Z_:][a-zA-Z0-9:._-]*",$d="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",Ui="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+Hd+"(?:\\s*=\\s*"+$d+")?)")+"*\\s*\\/?>",Wi="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Ud="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",Wd="<[?][\\s\\S]*?[?]>",Gd="<![A-Za-z][^>]*>",Xd="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",qd=new RegExp("^(?:"+Ui+"|"+Wi+"|"+Ud+"|"+Wd+"|"+Gd+"|"+Xd+")"),Zd=new RegExp("^(?:"+Ui+"|"+Wi+")"),fn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+jd.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Zd.source+"\\s*$"),/^$/,!1]];function Yd(e,t,n,u){let o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(o)!==60)return!1;let a=e.src.slice(o,r),s=0;for(;s<fn.length&&!fn[s][0].test(a);s++);if(s===fn.length)return!1;if(u)return fn[s][2];let l=t+1;if(!fn[s][1].test(a)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(o=e.bMarks[l]+e.tShift[l],r=e.eMarks[l],a=e.src.slice(o,r),fn[s][1].test(a)){a.length!==0&&l++;break}}e.line=l;const d=e.push("html_block","",0);return d.map=[t,l],d.content=e.getLines(t,l,e.blkIndent,!0),!0}function Kd(e,t,n,u){let o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(o);if(a!==35||o>=r)return!1;let s=1;for(a=e.src.charCodeAt(++o);a===35&&o<r&&s<=6;)s++,a=e.src.charCodeAt(++o);if(s>6||o<r&&!ce(a))return!1;if(u)return!0;r=e.skipSpacesBack(r,o);const l=e.skipCharsBack(r,35,o);l>o&&ce(e.src.charCodeAt(l-1))&&(r=l),e.line=t+1;const d=e.push("heading_open","h"+String(s),1);d.markup="########".slice(0,s),d.map=[t,e.line];const f=e.push("inline","",0);f.content=e.src.slice(o,r).trim(),f.map=[t,e.line],f.children=[];const c=e.push("heading_close","h"+String(s),-1);return c.markup="########".slice(0,s),!0}function Qd(e,t,n){const u=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let r=0,a,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let p=e.bMarks[s]+e.tShift[s];const m=e.eMarks[s];if(p<m&&(a=e.src.charCodeAt(p),(a===45||a===61)&&(p=e.skipChars(p,a),p=e.skipSpaces(p),p>=m))){r=a===61?1:2;break}}if(e.sCount[s]<0)continue;let h=!1;for(let p=0,m=u.length;p<m;p++)if(u[p](e,s,n,!0)){h=!0;break}if(h)break}if(!r)return!1;const l=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const d=e.push("heading_open","h"+String(r),1);d.markup=String.fromCharCode(a),d.map=[t,e.line];const f=e.push("inline","",0);f.content=l,f.map=[t,e.line-1],f.children=[];const c=e.push("heading_close","h"+String(r),-1);return c.markup=String.fromCharCode(a),e.parentType=o,!0}function Jd(e,t,n){const u=e.md.block.ruler.getRules("paragraph"),o=e.parentType;let r=t+1;for(e.parentType="paragraph";r<n&&!e.isEmpty(r);r++){if(e.sCount[r]-e.blkIndent>3||e.sCount[r]<0)continue;let d=!1;for(let f=0,c=u.length;f<c;f++)if(u[f](e,r,n,!0)){d=!0;break}if(d)break}const a=e.getLines(t,r,e.blkIndent,!1).trim();e.line=r;const s=e.push("paragraph_open","p",1);s.map=[t,e.line];const l=e.push("inline","",0);return l.content=a,l.map=[t,e.line],l.children=[],e.push("paragraph_close","p",-1),e.parentType=o,!0}const jr=[["table",Od,["paragraph","reference"]],["code",Ld],["fence",Pd,["paragraph","reference","blockquote","list"]],["blockquote",Vd,["paragraph","reference","blockquote","list"]],["hr",Rd,["paragraph","reference","blockquote","list"]],["list",Bd,["paragraph","reference","blockquote"]],["reference",zd],["html_block",Yd,["paragraph","reference","blockquote"]],["heading",Kd,["paragraph","reference","blockquote"]],["lheading",Qd],["paragraph",Jd]];function Hr(){this.ruler=new We;for(let e=0;e<jr.length;e++)this.ruler.push(jr[e][0],jr[e][1],{alt:(jr[e][2]||[]).slice()})}Hr.prototype.tokenize=function(e,t,n){const u=this.ruler.getRules(""),o=u.length,r=e.md.options.maxNesting;let a=t,s=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n||e.sCount[a]<e.blkIndent));){if(e.level>=r){e.line=n;break}const l=e.line;let d=!1;for(let f=0;f<o;f++)if(d=u[f](e,a,n,!1),d){if(l>=e.line)throw new Error("block rule didn't increment state.line");break}if(!d)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),a=e.line,a<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},Hr.prototype.parse=function(e,t,n,u){if(!e)return;const o=new this.State(e,t,n,u);this.tokenize(o,o.line,o.lineMax)},Hr.prototype.State=wt;function $n(e,t,n,u){this.src=e,this.env=n,this.md=t,this.tokens=u,this.tokens_meta=Array(u.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}$n.prototype.pushPending=function(){const e=new st("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},$n.prototype.push=function(e,t,n){this.pending&&this.pushPending();const u=new st(e,t,n);let o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),u.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(u),this.tokens_meta.push(o),u},$n.prototype.scanDelims=function(e,t){const n=this.posMax,u=this.src.charCodeAt(e),o=e>0?this.src.charCodeAt(e-1):32;let r=e;for(;r<n&&this.src.charCodeAt(r)===u;)r++;const a=r-e,s=r<n?this.src.charCodeAt(r):32,l=Hn(o)||jn(String.fromCharCode(o)),d=Hn(s)||jn(String.fromCharCode(s)),f=zn(o),c=zn(s),h=!c&&(!d||f||l),p=!f&&(!l||c||d);return{can_open:h&&(t||!p||l),can_close:p&&(t||!h||d),length:a}},$n.prototype.Token=st;function e0(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function t0(e,t){let n=e.pos;for(;n<e.posMax&&!e0(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const n0=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function r0(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,u=e.posMax;if(n+3>u||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const o=e.pending.match(n0);if(!o)return!1;const r=o[1],a=e.md.linkify.matchAtStart(e.src.slice(n-r.length));if(!a)return!1;let s=a.url;if(s.length<=r.length)return!1;let l=s.length;for(;l>0&&s.charCodeAt(l-1)===42;)l--;l!==s.length&&(s=s.slice(0,l));const d=e.md.normalizeLink(s);if(!e.md.validateLink(d))return!1;if(!t){e.pending=e.pending.slice(0,-r.length);const f=e.push("link_open","a",1);f.attrs=[["href",d]],f.markup="linkify",f.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(s);const h=e.push("link_close","a",-1);h.markup="linkify",h.info="auto"}return e.pos+=s.length-r.length,!0}function u0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const u=e.pending.length-1,o=e.posMax;if(!t)if(u>=0&&e.pending.charCodeAt(u)===32)if(u>=1&&e.pending.charCodeAt(u-1)===32){let r=u-1;for(;r>=1&&e.pending.charCodeAt(r-1)===32;)r--;e.pending=e.pending.slice(0,r),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<o&&ce(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const Ju=[];for(let e=0;e<256;e++)Ju.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Ju[e.charCodeAt(0)]=1});function o0(e,t){let n=e.pos;const u=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=u))return!1;let o=e.src.charCodeAt(n);if(o===10){for(t||e.push("hardbreak","br",0),n++;n<u&&(o=e.src.charCodeAt(n),!!ce(o));)n++;return e.pos=n,!0}let r=e.src[n];if(o>=55296&&o<=56319&&n+1<u){const s=e.src.charCodeAt(n+1);s>=56320&&s<=57343&&(r+=e.src[n+1],n++)}const a="\\"+r;if(!t){const s=e.push("text_special","",0);o<256&&Ju[o]!==0?s.content=r:s.content=a,s.markup=a,s.info="escape"}return e.pos=n+1,!0}function i0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const o=n;n++;const r=e.posMax;for(;n<r&&e.src.charCodeAt(n)===96;)n++;const a=e.src.slice(o,n),s=a.length;if(e.backticksScanned&&(e.backticks[s]||0)<=o)return t||(e.pending+=a),e.pos+=s,!0;let l=n,d;for(;(d=e.src.indexOf("`",l))!==-1;){for(l=d+1;l<r&&e.src.charCodeAt(l)===96;)l++;const f=l-d;if(f===s){if(!t){const c=e.push("code_inline","code",0);c.markup=a,c.content=e.src.slice(n,d).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[f]=d}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=s,!0}function a0(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==126)return!1;const o=e.scanDelims(e.pos,!0);let r=o.length;const a=String.fromCharCode(u);if(r<2)return!1;let s;r%2&&(s=e.push("text","",0),s.content=a,r--);for(let l=0;l<r;l+=2)s=e.push("text","",0),s.content=a+a,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0}function Gi(e,t){let n;const u=[],o=t.length;for(let r=0;r<o;r++){const a=t[r];if(a.marker!==126||a.end===-1)continue;const s=t[a.end];n=e.tokens[a.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[s.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[s.token-1].type==="text"&&e.tokens[s.token-1].content==="~"&&u.push(s.token-1)}for(;u.length;){const r=u.pop();let a=r+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,r!==a&&(n=e.tokens[a],e.tokens[a]=e.tokens[r],e.tokens[r]=n)}}function s0(e){const t=e.tokens_meta,n=e.tokens_meta.length;Gi(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Gi(e,t[u].delimiters)}const Xi={tokenize:a0,postProcess:s0};function l0(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==95&&u!==42)return!1;const o=e.scanDelims(e.pos,u===42);for(let r=0;r<o.length;r++){const a=e.push("text","",0);a.content=String.fromCharCode(u),e.delimiters.push({marker:u,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return e.pos+=o.length,!0}function qi(e,t){const n=t.length;for(let u=n-1;u>=0;u--){const o=t[u];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;const r=t[o.end],a=u>0&&t[u-1].end===o.end+1&&t[u-1].marker===o.marker&&t[u-1].token===o.token-1&&t[o.end+1].token===r.token+1,s=String.fromCharCode(o.marker),l=e.tokens[o.token];l.type=a?"strong_open":"em_open",l.tag=a?"strong":"em",l.nesting=1,l.markup=a?s+s:s,l.content="";const d=e.tokens[r.token];d.type=a?"strong_close":"em_close",d.tag=a?"strong":"em",d.nesting=-1,d.markup=a?s+s:s,d.content="",a&&(e.tokens[t[u-1].token].content="",e.tokens[t[o.end+1].token].content="",u--)}}function c0(e){const t=e.tokens_meta,n=e.tokens_meta.length;qi(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&qi(e,t[u].delimiters)}const Zi={tokenize:l0,postProcess:c0};function d0(e,t){let n,u,o,r,a="",s="",l=e.pos,d=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const f=e.pos,c=e.posMax,h=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<c&&e.src.charCodeAt(m)===40){for(d=!1,m++;m<c&&(n=e.src.charCodeAt(m),!(!ce(n)&&n!==10));m++);if(m>=c)return!1;if(l=m,o=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),o.ok){for(a=e.md.normalizeLink(o.str),e.md.validateLink(a)?m=o.pos:a="",l=m;m<c&&(n=e.src.charCodeAt(m),!(!ce(n)&&n!==10));m++);if(o=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<c&&l!==m&&o.ok)for(s=o.str,m=o.pos;m<c&&(n=e.src.charCodeAt(m),!(!ce(n)&&n!==10));m++);}(m>=c||e.src.charCodeAt(m)!==41)&&(d=!0),m++}if(d){if(typeof e.env.references>"u")return!1;if(m<c&&e.src.charCodeAt(m)===91?(l=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?u=e.src.slice(l,m++):m=p+1):m=p+1,u||(u=e.src.slice(h,p)),r=e.env.references[Br(u)],!r)return e.pos=f,!1;a=r.href,s=r.title}if(!t){e.pos=h,e.posMax=p;const w=e.push("link_open","a",1),y=[["href",a]];w.attrs=y,s&&y.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=c,!0}function f0(e,t){let n,u,o,r,a,s,l,d,f="";const c=e.pos,h=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(r=m+1,r<h&&e.src.charCodeAt(r)===40){for(r++;r<h&&(n=e.src.charCodeAt(r),!(!ce(n)&&n!==10));r++);if(r>=h)return!1;for(d=r,s=e.md.helpers.parseLinkDestination(e.src,r,e.posMax),s.ok&&(f=e.md.normalizeLink(s.str),e.md.validateLink(f)?r=s.pos:f=""),d=r;r<h&&(n=e.src.charCodeAt(r),!(!ce(n)&&n!==10));r++);if(s=e.md.helpers.parseLinkTitle(e.src,r,e.posMax),r<h&&d!==r&&s.ok)for(l=s.str,r=s.pos;r<h&&(n=e.src.charCodeAt(r),!(!ce(n)&&n!==10));r++);else l="";if(r>=h||e.src.charCodeAt(r)!==41)return e.pos=c,!1;r++}else{if(typeof e.env.references>"u")return!1;if(r<h&&e.src.charCodeAt(r)===91?(d=r+1,r=e.md.helpers.parseLinkLabel(e,r),r>=0?o=e.src.slice(d,r++):r=m+1):r=m+1,o||(o=e.src.slice(p,m)),a=e.env.references[Br(o)],!a)return e.pos=c,!1;f=a.href,l=a.title}if(!t){u=e.src.slice(p,m);const w=[];e.md.inline.parse(u,e.md,e.env,w);const y=e.push("image","img",0),A=[["src",f],["alt",""]];y.attrs=A,y.children=w,y.content=u,l&&A.push(["title",l])}return e.pos=r,e.posMax=h,!0}const h0=/^([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])?)*)$/,m0=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function p0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const u=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const r=e.src.slice(u+1,n);if(m0.test(r)){const a=e.md.normalizeLink(r);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(r);const d=e.push("link_close","a",-1);d.markup="autolink",d.info="auto"}return e.pos+=r.length+2,!0}if(h0.test(r)){const a=e.md.normalizeLink("mailto:"+r);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(r);const d=e.push("link_close","a",-1);d.markup="autolink",d.info="auto"}return e.pos+=r.length+2,!0}return!1}function g0(e){return/^<a[>\s]/i.test(e)}function b0(e){return/^<\/a\s*>/i.test(e)}function y0(e){const t=e|32;return t>=97&&t<=122}function x0(e,t){if(!e.md.options.html)return!1;const n=e.posMax,u=e.pos;if(e.src.charCodeAt(u)!==60||u+2>=n)return!1;const o=e.src.charCodeAt(u+1);if(o!==33&&o!==63&&o!==47&&!y0(o))return!1;const r=e.src.slice(u).match(qd);if(!r)return!1;if(!t){const a=e.push("html_inline","",0);a.content=r[0],g0(a.content)&&e.linkLevel++,b0(a.content)&&e.linkLevel--}return e.pos+=r[0].length,!0}const w0=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,v0=/^&([a-z][a-z0-9]{1,31});/i;function A0(e,t){const n=e.pos,u=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=u)return!1;if(e.src.charCodeAt(n+1)===35){const r=e.src.slice(n).match(w0);if(r){if(!t){const a=r[1][0].toLowerCase()==="x"?parseInt(r[1].slice(1),16):parseInt(r[1],10),s=e.push("text_special","",0);s.content=Zu(a)?Mr(a):Mr(65533),s.markup=r[0],s.info="entity"}return e.pos+=r[0].length,!0}}else{const r=e.src.slice(n).match(v0);if(r){const a=Li(r[0]);if(a!==r[0]){if(!t){const s=e.push("text_special","",0);s.content=a,s.markup=r[0],s.info="entity"}return e.pos+=r[0].length,!0}}}return!1}function Yi(e){const t={},n=e.length;if(!n)return;let u=0,o=-2;const r=[];for(let a=0;a<n;a++){const s=e[a];if(r.push(0),(e[u].marker!==s.marker||o!==s.token-1)&&(u=a),o=s.token,s.length=s.length||0,!s.close)continue;t.hasOwnProperty(s.marker)||(t[s.marker]=[-1,-1,-1,-1,-1,-1]);const l=t[s.marker][(s.open?3:0)+s.length%3];let d=u-r[u]-1,f=d;for(;d>l;d-=r[d]+1){const c=e[d];if(c.marker===s.marker&&c.open&&c.end<0){let h=!1;if((c.close||s.open)&&(c.length+s.length)%3===0&&(c.length%3!==0||s.length%3!==0)&&(h=!0),!h){const p=d>0&&!e[d-1].open?r[d-1]+1:0;r[a]=a-d+p,r[d]=p,s.open=!1,c.end=a,c.close=!1,f=-1,o=-2;break}}}f!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=f)}}function k0(e){const t=e.tokens_meta,n=e.tokens_meta.length;Yi(e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Yi(t[u].delimiters)}function C0(e){let t,n,u=0;const o=e.tokens,r=e.tokens.length;for(t=n=0;t<r;t++)o[t].nesting<0&&u--,o[t].level=u,o[t].nesting>0&&u++,o[t].type==="text"&&t+1<r&&o[t+1].type==="text"?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}const eo=[["text",t0],["linkify",r0],["newline",u0],["escape",o0],["backticks",i0],["strikethrough",Xi.tokenize],["emphasis",Zi.tokenize],["link",d0],["image",f0],["autolink",p0],["html_inline",x0],["entity",A0]],to=[["balance_pairs",k0],["strikethrough",Xi.postProcess],["emphasis",Zi.postProcess],["fragments_join",C0]];function Un(){this.ruler=new We;for(let e=0;e<eo.length;e++)this.ruler.push(eo[e][0],eo[e][1]);this.ruler2=new We;for(let e=0;e<to.length;e++)this.ruler2.push(to[e][0],to[e][1])}Un.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),u=n.length,o=e.md.options.maxNesting,r=e.cache;if(typeof r[t]<"u"){e.pos=r[t];return}let a=!1;if(e.level<o){for(let s=0;s<u;s++)if(e.level++,a=n[s](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,r[t]=e.pos},Un.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,u=e.posMax,o=e.md.options.maxNesting;for(;e.pos<u;){const r=e.pos;let a=!1;if(e.level<o){for(let s=0;s<n;s++)if(a=t[s](e,!1),a){if(r>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=u)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Un.prototype.parse=function(e,t,n,u){const o=new this.State(e,t,n,u);this.tokenize(o);const r=this.ruler2.getRules(""),a=r.length;for(let s=0;s<a;s++)r[s](o)},Un.prototype.State=$n;function _0(e){const t={};e=e||{},t.src_Any=Ti.source,t.src_Cc=Fi.source,t.src_Z=Ii.source,t.src_P=Wu.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function no(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(u){e[u]=n[u]})}),e}function $r(e){return Object.prototype.toString.call(e)}function E0(e){return $r(e)==="[object String]"}function S0(e){return $r(e)==="[object Object]"}function D0(e){return $r(e)==="[object RegExp]"}function Ki(e){return $r(e)==="[object Function]"}function T0(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Qi={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function F0(e){return Object.keys(e||{}).reduce(function(t,n){return t||Qi.hasOwnProperty(n)},!1)}const N0={"http:":{validate:function(e,t,n){const u=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(u)?u.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const u=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(u)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:u.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const u=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(u)?u.match(n.re.mailto)[0].length:0}}},I0="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",O0="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function L0(e){e.__index__=-1,e.__text_cache__=""}function P0(e){return function(t,n){const u=t.slice(n);return e.test(u)?u.match(e)[0].length:0}}function Ji(){return function(e,t){t.normalize(e)}}function Ur(e){const t=e.re=_0(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(I0),n.push(t.src_xn),t.src_tlds=n.join("|");function u(s){return s.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(u(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(u(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(u(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(u(t.tpl_host_fuzzy_test),"i");const o=[];e.__compiled__={};function r(s,l){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+l)}Object.keys(e.__schemas__).forEach(function(s){const l=e.__schemas__[s];if(l===null)return;const d={validate:null,link:null};if(e.__compiled__[s]=d,S0(l)){D0(l.validate)?d.validate=P0(l.validate):Ki(l.validate)?d.validate=l.validate:r(s,l),Ki(l.normalize)?d.normalize=l.normalize:l.normalize?r(s,l):d.normalize=Ji();return}if(E0(l)){o.push(s);return}r(s,l)}),o.forEach(function(s){e.__compiled__[e.__schemas__[s]]&&(e.__compiled__[s].validate=e.__compiled__[e.__schemas__[s]].validate,e.__compiled__[s].normalize=e.__compiled__[e.__schemas__[s]].normalize)}),e.__compiled__[""]={validate:null,normalize:Ji()};const a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(T0).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),L0(e)}function V0(e,t){const n=e.__index__,u=e.__last_index__,o=e.__text_cache__.slice(n,u);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=u+t,this.raw=o,this.text=o,this.url=o}function ro(e,t){const n=new V0(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function qe(e,t){if(!(this instanceof qe))return new qe(e,t);t||F0(e)&&(t=e,e={}),this.__opts__=no({},Qi,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=no({},N0,e),this.__compiled__={},this.__tlds__=O0,this.__tlds_replaced__=!1,this.re={},Ur(this)}qe.prototype.add=function(t,n){return this.__schemas__[t]=n,Ur(this),this},qe.prototype.set=function(t){return this.__opts__=no(this.__opts__,t),this},qe.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,u,o,r,a,s,l,d,f;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(r=this.testSchemaAt(t,n[2],l.lastIndex),r){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(d=t.search(this.re.host_fuzzy_test),d>=0&&(this.__index__<0||d<this.__index__)&&(u=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=u.index+u[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=u.index+u[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=t.indexOf("@"),f>=0&&(o=t.match(this.re.email_fuzzy))!==null&&(a=o.index+o[1].length,s=o.index+o[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s))),this.__index__>=0},qe.prototype.pretest=function(t){return this.re.pretest.test(t)},qe.prototype.testSchemaAt=function(t,n,u){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,u,this):0},qe.prototype.match=function(t){const n=[];let u=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(ro(this,u)),u=this.__last_index__);let o=u?t.slice(u):t;for(;this.test(o);)n.push(ro(this,u)),o=o.slice(this.__last_index__),u+=this.__last_index__;return n.length?n:null},qe.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const u=this.testSchemaAt(t,n[2],n[0].length);return u?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+u,ro(this,0)):null},qe.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(u,o,r){return u!==r[o-1]}).reverse(),Ur(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Ur(this),this)},qe.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)},qe.prototype.onCompile=function(){};const hn=2147483647,vt=36,uo=1,Wn=26,R0=38,M0=700,ea=72,ta=128,na="-",B0=/^xn--/,z0=/[^\0-\x7F]/,j0=/[\x2E\u3002\uFF0E\uFF61]/g,H0={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},oo=vt-uo,At=Math.floor,io=String.fromCharCode;function zt(e){throw new RangeError(H0[e])}function $0(e,t){const n=[];let u=e.length;for(;u--;)n[u]=t(e[u]);return n}function ra(e,t){const n=e.split("@");let u="";n.length>1&&(u=n[0]+"@",e=n[1]),e=e.replace(j0,".");const o=e.split("."),r=$0(o,t).join(".");return u+r}function ua(e){const t=[];let n=0;const u=e.length;for(;n<u;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<u){const r=e.charCodeAt(n++);(r&64512)==56320?t.push(((o&1023)<<10)+(r&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}const U0=e=>String.fromCodePoint(...e),W0=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:vt},oa=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},ia=function(e,t,n){let u=0;for(e=n?At(e/M0):e>>1,e+=At(e/t);e>oo*Wn>>1;u+=vt)e=At(e/oo);return At(u+(oo+1)*e/(e+R0))},aa=function(e){const t=[],n=e.length;let u=0,o=ta,r=ea,a=e.lastIndexOf(na);a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&zt("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s<n;){const l=u;for(let f=1,c=vt;;c+=vt){s>=n&&zt("invalid-input");const h=W0(e.charCodeAt(s++));h>=vt&&zt("invalid-input"),h>At((hn-u)/f)&&zt("overflow"),u+=h*f;const p=c<=r?uo:c>=r+Wn?Wn:c-r;if(h<p)break;const m=vt-p;f>At(hn/m)&&zt("overflow"),f*=m}const d=t.length+1;r=ia(u-l,d,l==0),At(u/d)>hn-o&&zt("overflow"),o+=At(u/d),u%=d,t.splice(u++,0,o)}return String.fromCodePoint(...t)},sa=function(e){const t=[];e=ua(e);const n=e.length;let u=ta,o=0,r=ea;for(const l of e)l<128&&t.push(io(l));const a=t.length;let s=a;for(a&&t.push(na);s<n;){let l=hn;for(const f of e)f>=u&&f<l&&(l=f);const d=s+1;l-u>At((hn-o)/d)&&zt("overflow"),o+=(l-u)*d,u=l;for(const f of e)if(f<u&&++o>hn&&zt("overflow"),f===u){let c=o;for(let h=vt;;h+=vt){const p=h<=r?uo:h>=r+Wn?Wn:h-r;if(c<p)break;const m=c-p,w=vt-p;t.push(io(oa(p+m%w,0))),c=At(m/w)}t.push(io(oa(c,0))),r=ia(o,d,s===a),o=0,++s}++o,++u}return t.join("")},la={version:"2.3.1",ucs2:{decode:ua,encode:U0},decode:aa,encode:sa,toASCII:function(e){return ra(e,function(t){return z0.test(t)?"xn--"+sa(t):t})},toUnicode:function(e){return ra(e,function(t){return B0.test(t)?aa(t.slice(4).toLowerCase()):t})}},G0={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},X0=/^(vbscript|javascript|file|data):/,q0=/^data:image\/(gif|png|jpeg|webp);/;function Z0(e){const t=e.trim().toLowerCase();return X0.test(t)?q0.test(t):!0}const ca=["http:","https:","mailto:"];function Y0(e){const t=Uu(e,!0);if(t.hostname&&(!t.protocol||ca.indexOf(t.protocol)>=0))try{t.hostname=la.toASCII(t.hostname)}catch{}return Bn($u(t))}function K0(e){const t=Uu(e,!0);if(t.hostname&&(!t.protocol||ca.indexOf(t.protocol)>=0))try{t.hostname=la.toUnicode(t.hostname)}catch{}return ln($u(t),ln.defaultChars+"%")}function Ze(e,t){if(!(this instanceof Ze))return new Ze(e,t);t||qu(e)||(t=e||{},e="default"),this.inline=new Un,this.block=new Hr,this.core=new Ku,this.renderer=new dn,this.linkify=new qe,this.validateLink=Z0,this.normalizeLink=Y0,this.normalizeLinkText=K0,this.utils=sd,this.helpers=Rr({},fd),this.options={},this.configure(e),t&&this.set(t)}Ze.prototype.set=function(e){return Rr(this.options,e),this},Ze.prototype.configure=function(e){const t=this;if(qu(e)){const n=e;if(e=G0[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},Ze.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const u=e.filter(function(o){return n.indexOf(o)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+u);return this},Ze.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const u=e.filter(function(o){return n.indexOf(o)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+u);return this},Ze.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Ze.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Ze.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Ze.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Ze.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:da,setPrototypeOf:fa,isFrozen:Q0,getPrototypeOf:J0,getOwnPropertyDescriptor:ef}=Object;let{freeze:ze,seal:ut,create:Wr}=Object,{apply:ao,construct:so}=typeof Reflect<"u"&&Reflect;ze||(ze=function(t){return t}),ut||(ut=function(t){return t}),ao||(ao=function(t,n){for(var u=arguments.length,o=new Array(u>2?u-2:0),r=2;r<u;r++)o[r-2]=arguments[r];return t.apply(n,o)}),so||(so=function(t){for(var n=arguments.length,u=new Array(n>1?n-1:0),o=1;o<n;o++)u[o-1]=arguments[o];return new t(...u)});const Gr=He(Array.prototype.forEach),tf=He(Array.prototype.lastIndexOf),ha=He(Array.prototype.pop),Gn=He(Array.prototype.push),nf=He(Array.prototype.splice),Xr=He(String.prototype.toLowerCase),lo=He(String.prototype.toString),co=He(String.prototype.match),Xn=He(String.prototype.replace),rf=He(String.prototype.indexOf),uf=He(String.prototype.trim),Ye=He(Object.prototype.hasOwnProperty),je=He(RegExp.prototype.test),qn=of(TypeError);function He(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,u=new Array(n>1?n-1:0),o=1;o<n;o++)u[o-1]=arguments[o];return ao(e,t,u)}}function of(e){return function(){for(var t=arguments.length,n=new Array(t),u=0;u<t;u++)n[u]=arguments[u];return so(e,n)}}function oe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Xr;fa&&fa(e,null);let u=t.length;for(;u--;){let o=t[u];if(typeof o=="string"){const r=n(o);r!==o&&(Q0(t)||(t[u]=r),o=r)}e[o]=!0}return e}function af(e){for(let t=0;t<e.length;t++)Ye(e,t)||(e[t]=null);return e}function kt(e){const t=Wr(null);for(const[n,u]of da(e))Ye(e,n)&&(Array.isArray(u)?t[n]=af(u):u&&typeof u=="object"&&u.constructor===Object?t[n]=kt(u):t[n]=u);return t}function Zn(e,t){for(;e!==null;){const u=ef(e,t);if(u){if(u.get)return He(u.get);if(typeof u.value=="function")return He(u.value)}e=J0(e)}function n(){return null}return n}const ma=ze(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),fo=ze(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ho=ze(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),sf=ze(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),mo=ze(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),lf=ze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),pa=ze(["#text"]),ga=ze(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),po=ze(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ba=ze(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),qr=ze(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),cf=ut(/\{\{[\w\W]*|[\w\W]*\}\}/gm),df=ut(/<%[\w\W]*|[\w\W]*%>/gm),ff=ut(/\$\{[\w\W]*/gm),hf=ut(/^data-[\-\w.\u00B7-\uFFFF]+$/),mf=ut(/^aria-[\-\w]+$/),ya=ut(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),pf=ut(/^(?:\w+script|data):/i),gf=ut(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),xa=ut(/^html$/i),bf=ut(/^[a-z][.\w]*(-[.\w]+)+$/i);var wa=Object.freeze({__proto__:null,ARIA_ATTR:mf,ATTR_WHITESPACE:gf,CUSTOM_ELEMENT:bf,DATA_ATTR:hf,DOCTYPE_NAME:xa,ERB_EXPR:df,IS_ALLOWED_URI:ya,IS_SCRIPT_OR_DATA:pf,MUSTACHE_EXPR:cf,TMPLIT_EXPR:ff});const Yn={element:1,text:3,progressingInstruction:7,comment:8,document:9},yf=function(){return typeof window>"u"?null:window},xf=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let u=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(u=n.getAttribute(o));const r="dompurify"+(u?"#"+u:"");try{return t.createPolicy(r,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},va=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Aa(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yf();const t=J=>Aa(J);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==Yn.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const u=n,o=u.currentScript,{DocumentFragment:r,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:d,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:c,DOMParser:h,trustedTypes:p}=e,m=l.prototype,w=Zn(m,"cloneNode"),y=Zn(m,"remove"),A=Zn(m,"nextSibling"),b=Zn(m,"childNodes"),g=Zn(m,"parentNode");if(typeof a=="function"){const J=n.createElement("template");J.content&&J.content.ownerDocument&&(n=J.content.ownerDocument)}let x,k="";const{implementation:F,createNodeIterator:T,createDocumentFragment:D,getElementsByTagName:U}=n,{importNode:_}=u;let N=va();t.isSupported=typeof da=="function"&&typeof g=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:I,ERB_EXPR:C,TMPLIT_EXPR:P,DATA_ATTR:V,ARIA_ATTR:E,IS_SCRIPT_OR_DATA:R,ATTR_WHITESPACE:M,CUSTOM_ELEMENT:$}=wa;let{IS_ALLOWED_URI:re}=wa,te=null;const z=oe({},[...ma,...fo,...ho,...mo,...pa]);let j=null;const L=oe({},[...ga,...po,...ba,...qr]);let B=Object.seal(Wr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),W=null,K=null;const Z=Object.seal(Wr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Y=!0,ue=!0,le=!1,Te=!0,Fe=!1,yt=!0,Me=!1,On=!1,Xt=!1,Ot=!1,Nu=!1,Iu=!1,Dl=!0,Tl=!1;const z1="user-content-";let Jo=!0,Tr=!1,Ln={},Ft=null;const ei=oe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Fl=null;const Nl=oe({},["audio","video","img","source","image","track"]);let ti=null;const Il=oe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ou="http://www.w3.org/1998/Math/MathML",Lu="http://www.w3.org/2000/svg",Lt="http://www.w3.org/1999/xhtml";let Pn=Lt,ni=!1,ri=null;const j1=oe({},[Ou,Lu,Lt],lo);let Pu=oe({},["mi","mo","mn","ms","mtext"]),Vu=oe({},["annotation-xml"]);const H1=oe({},["title","style","font","a","script"]);let Fr=null;const $1=["application/xhtml+xml","text/html"],U1="text/html";let Ce=null,Vn=null;const W1=n.createElement("form"),Ol=function(S){return S instanceof RegExp||S instanceof Function},ui=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Vn&&Vn===S)){if((!S||typeof S!="object")&&(S={}),S=kt(S),Fr=$1.indexOf(S.PARSER_MEDIA_TYPE)===-1?U1:S.PARSER_MEDIA_TYPE,Ce=Fr==="application/xhtml+xml"?lo:Xr,te=Ye(S,"ALLOWED_TAGS")?oe({},S.ALLOWED_TAGS,Ce):z,j=Ye(S,"ALLOWED_ATTR")?oe({},S.ALLOWED_ATTR,Ce):L,ri=Ye(S,"ALLOWED_NAMESPACES")?oe({},S.ALLOWED_NAMESPACES,lo):j1,ti=Ye(S,"ADD_URI_SAFE_ATTR")?oe(kt(Il),S.ADD_URI_SAFE_ATTR,Ce):Il,Fl=Ye(S,"ADD_DATA_URI_TAGS")?oe(kt(Nl),S.ADD_DATA_URI_TAGS,Ce):Nl,Ft=Ye(S,"FORBID_CONTENTS")?oe({},S.FORBID_CONTENTS,Ce):ei,W=Ye(S,"FORBID_TAGS")?oe({},S.FORBID_TAGS,Ce):kt({}),K=Ye(S,"FORBID_ATTR")?oe({},S.FORBID_ATTR,Ce):kt({}),Ln=Ye(S,"USE_PROFILES")?S.USE_PROFILES:!1,Y=S.ALLOW_ARIA_ATTR!==!1,ue=S.ALLOW_DATA_ATTR!==!1,le=S.ALLOW_UNKNOWN_PROTOCOLS||!1,Te=S.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Fe=S.SAFE_FOR_TEMPLATES||!1,yt=S.SAFE_FOR_XML!==!1,Me=S.WHOLE_DOCUMENT||!1,Ot=S.RETURN_DOM||!1,Nu=S.RETURN_DOM_FRAGMENT||!1,Iu=S.RETURN_TRUSTED_TYPE||!1,Xt=S.FORCE_BODY||!1,Dl=S.SANITIZE_DOM!==!1,Tl=S.SANITIZE_NAMED_PROPS||!1,Jo=S.KEEP_CONTENT!==!1,Tr=S.IN_PLACE||!1,re=S.ALLOWED_URI_REGEXP||ya,Pn=S.NAMESPACE||Lt,Pu=S.MATHML_TEXT_INTEGRATION_POINTS||Pu,Vu=S.HTML_INTEGRATION_POINTS||Vu,B=S.CUSTOM_ELEMENT_HANDLING||{},S.CUSTOM_ELEMENT_HANDLING&&Ol(S.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(B.tagNameCheck=S.CUSTOM_ELEMENT_HANDLING.tagNameCheck),S.CUSTOM_ELEMENT_HANDLING&&Ol(S.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(B.attributeNameCheck=S.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),S.CUSTOM_ELEMENT_HANDLING&&typeof S.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(B.allowCustomizedBuiltInElements=S.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Fe&&(ue=!1),Nu&&(Ot=!0),Ln&&(te=oe({},pa),j=Wr(null),Ln.html===!0&&(oe(te,ma),oe(j,ga)),Ln.svg===!0&&(oe(te,fo),oe(j,po),oe(j,qr)),Ln.svgFilters===!0&&(oe(te,ho),oe(j,po),oe(j,qr)),Ln.mathMl===!0&&(oe(te,mo),oe(j,ba),oe(j,qr))),Ye(S,"ADD_TAGS")||(Z.tagCheck=null),Ye(S,"ADD_ATTR")||(Z.attributeCheck=null),S.ADD_TAGS&&(typeof S.ADD_TAGS=="function"?Z.tagCheck=S.ADD_TAGS:(te===z&&(te=kt(te)),oe(te,S.ADD_TAGS,Ce))),S.ADD_ATTR&&(typeof S.ADD_ATTR=="function"?Z.attributeCheck=S.ADD_ATTR:(j===L&&(j=kt(j)),oe(j,S.ADD_ATTR,Ce))),S.ADD_URI_SAFE_ATTR&&oe(ti,S.ADD_URI_SAFE_ATTR,Ce),S.FORBID_CONTENTS&&(Ft===ei&&(Ft=kt(Ft)),oe(Ft,S.FORBID_CONTENTS,Ce)),S.ADD_FORBID_CONTENTS&&(Ft===ei&&(Ft=kt(Ft)),oe(Ft,S.ADD_FORBID_CONTENTS,Ce)),Jo&&(te["#text"]=!0),Me&&oe(te,["html","head","body"]),te.table&&(oe(te,["tbody"]),delete W.tbody),S.TRUSTED_TYPES_POLICY){if(typeof S.TRUSTED_TYPES_POLICY.createHTML!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof S.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=S.TRUSTED_TYPES_POLICY,k=x.createHTML("")}else x===void 0&&(x=xf(p,o)),x!==null&&typeof k=="string"&&(k=x.createHTML(""));ze&&ze(S),Vn=S}},Ll=oe({},[...fo,...ho,...sf]),Pl=oe({},[...mo,...lf]),G1=function(S){let H=g(S);(!H||!H.tagName)&&(H={namespaceURI:Pn,tagName:"template"});const Q=Xr(S.tagName),ge=Xr(H.tagName);return ri[S.namespaceURI]?S.namespaceURI===Lu?H.namespaceURI===Lt?Q==="svg":H.namespaceURI===Ou?Q==="svg"&&(ge==="annotation-xml"||Pu[ge]):!!Ll[Q]:S.namespaceURI===Ou?H.namespaceURI===Lt?Q==="math":H.namespaceURI===Lu?Q==="math"&&Vu[ge]:!!Pl[Q]:S.namespaceURI===Lt?H.namespaceURI===Lu&&!Vu[ge]||H.namespaceURI===Ou&&!Pu[ge]?!1:!Pl[Q]&&(H1[Q]||!Ll[Q]):!!(Fr==="application/xhtml+xml"&&ri[S.namespaceURI]):!1},Nt=function(S){Gn(t.removed,{element:S});try{g(S).removeChild(S)}catch{y(S)}},an=function(S,H){try{Gn(t.removed,{attribute:H.getAttributeNode(S),from:H})}catch{Gn(t.removed,{attribute:null,from:H})}if(H.removeAttribute(S),S==="is")if(Ot||Nu)try{Nt(H)}catch{}else try{H.setAttribute(S,"")}catch{}},Vl=function(S){let H=null,Q=null;if(Xt)S="<remove></remove>"+S;else{const ve=co(S,/^[\r\n\t ]+/);Q=ve&&ve[0]}Fr==="application/xhtml+xml"&&Pn===Lt&&(S='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+S+"</body></html>");const ge=x?x.createHTML(S):S;if(Pn===Lt)try{H=new h().parseFromString(ge,Fr)}catch{}if(!H||!H.documentElement){H=F.createDocument(Pn,"template",null);try{H.documentElement.innerHTML=ni?k:ge}catch{}}const Be=H.body||H.documentElement;return S&&Q&&Be.insertBefore(n.createTextNode(Q),Be.childNodes[0]||null),Pn===Lt?U.call(H,Me?"html":"body")[0]:Me?H.documentElement:Be},Rl=function(S){return T.call(S.ownerDocument||S,S,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},oi=function(S){return S instanceof c&&(typeof S.nodeName!="string"||typeof S.textContent!="string"||typeof S.removeChild!="function"||!(S.attributes instanceof f)||typeof S.removeAttribute!="function"||typeof S.setAttribute!="function"||typeof S.namespaceURI!="string"||typeof S.insertBefore!="function"||typeof S.hasChildNodes!="function")},Ml=function(S){return typeof s=="function"&&S instanceof s};function Pt(J,S,H){Gr(J,Q=>{Q.call(t,S,H,Vn)})}const Bl=function(S){let H=null;if(Pt(N.beforeSanitizeElements,S,null),oi(S))return Nt(S),!0;const Q=Ce(S.nodeName);if(Pt(N.uponSanitizeElement,S,{tagName:Q,allowedTags:te}),yt&&S.hasChildNodes()&&!Ml(S.firstElementChild)&&je(/<[/\w!]/g,S.innerHTML)&&je(/<[/\w!]/g,S.textContent)||S.nodeType===Yn.progressingInstruction||yt&&S.nodeType===Yn.comment&&je(/<[/\w]/g,S.data))return Nt(S),!0;if(!(Z.tagCheck instanceof Function&&Z.tagCheck(Q))&&(!te[Q]||W[Q])){if(!W[Q]&&jl(Q)&&(B.tagNameCheck instanceof RegExp&&je(B.tagNameCheck,Q)||B.tagNameCheck instanceof Function&&B.tagNameCheck(Q)))return!1;if(Jo&&!Ft[Q]){const ge=g(S)||S.parentNode,Be=b(S)||S.childNodes;if(Be&&ge){const ve=Be.length;for(let Xe=ve-1;Xe>=0;--Xe){const Vt=w(Be[Xe],!0);Vt.__removalCount=(S.__removalCount||0)+1,ge.insertBefore(Vt,A(S))}}}return Nt(S),!0}return S instanceof l&&!G1(S)||(Q==="noscript"||Q==="noembed"||Q==="noframes")&&je(/<\/no(script|embed|frames)/i,S.innerHTML)?(Nt(S),!0):(Fe&&S.nodeType===Yn.text&&(H=S.textContent,Gr([I,C,P],ge=>{H=Xn(H,ge," ")}),S.textContent!==H&&(Gn(t.removed,{element:S.cloneNode()}),S.textContent=H)),Pt(N.afterSanitizeElements,S,null),!1)},zl=function(S,H,Q){if(K[H]||Dl&&(H==="id"||H==="name")&&(Q in n||Q in W1))return!1;if(!(ue&&!K[H]&&je(V,H))){if(!(Y&&je(E,H))){if(!(Z.attributeCheck instanceof Function&&Z.attributeCheck(H,S))){if(!j[H]||K[H]){if(!(jl(S)&&(B.tagNameCheck instanceof RegExp&&je(B.tagNameCheck,S)||B.tagNameCheck instanceof Function&&B.tagNameCheck(S))&&(B.attributeNameCheck instanceof RegExp&&je(B.attributeNameCheck,H)||B.attributeNameCheck instanceof Function&&B.attributeNameCheck(H,S))||H==="is"&&B.allowCustomizedBuiltInElements&&(B.tagNameCheck instanceof RegExp&&je(B.tagNameCheck,Q)||B.tagNameCheck instanceof Function&&B.tagNameCheck(Q))))return!1}else if(!ti[H]){if(!je(re,Xn(Q,M,""))){if(!((H==="src"||H==="xlink:href"||H==="href")&&S!=="script"&&rf(Q,"data:")===0&&Fl[S])){if(!(le&&!je(R,Xn(Q,M,"")))){if(Q)return!1}}}}}}}return!0},jl=function(S){return S!=="annotation-xml"&&co(S,$)},Hl=function(S){Pt(N.beforeSanitizeAttributes,S,null);const{attributes:H}=S;if(!H||oi(S))return;const Q={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0};let ge=H.length;for(;ge--;){const Be=H[ge],{name:ve,namespaceURI:Xe,value:Vt}=Be,Rn=Ce(ve),ii=Vt;let Oe=ve==="value"?ii:uf(ii);if(Q.attrName=Rn,Q.attrValue=Oe,Q.keepAttr=!0,Q.forceKeepAttr=void 0,Pt(N.uponSanitizeAttribute,S,Q),Oe=Q.attrValue,Tl&&(Rn==="id"||Rn==="name")&&(an(ve,S),Oe=z1+Oe),yt&&je(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Oe)){an(ve,S);continue}if(Rn==="attributename"&&co(Oe,"href")){an(ve,S);continue}if(Q.forceKeepAttr)continue;if(!Q.keepAttr){an(ve,S);continue}if(!Te&&je(/\/>/i,Oe)){an(ve,S);continue}Fe&&Gr([I,C,P],Ul=>{Oe=Xn(Oe,Ul," ")});const $l=Ce(S.nodeName);if(!zl($l,Rn,Oe)){an(ve,S);continue}if(x&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Xe)switch(p.getAttributeType($l,Rn)){case"TrustedHTML":{Oe=x.createHTML(Oe);break}case"TrustedScriptURL":{Oe=x.createScriptURL(Oe);break}}if(Oe!==ii)try{Xe?S.setAttributeNS(Xe,ve,Oe):S.setAttribute(ve,Oe),oi(S)?Nt(S):ha(t.removed)}catch{an(ve,S)}}Pt(N.afterSanitizeAttributes,S,null)},X1=function J(S){let H=null;const Q=Rl(S);for(Pt(N.beforeSanitizeShadowDOM,S,null);H=Q.nextNode();)Pt(N.uponSanitizeShadowNode,H,null),Bl(H),Hl(H),H.content instanceof r&&J(H.content);Pt(N.afterSanitizeShadowDOM,S,null)};return t.sanitize=function(J){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},H=null,Q=null,ge=null,Be=null;if(ni=!J,ni&&(J="<!-->"),typeof J!="string"&&!Ml(J))if(typeof J.toString=="function"){if(J=J.toString(),typeof J!="string")throw qn("dirty is not a string, aborting")}else throw qn("toString is not a function");if(!t.isSupported)return J;if(On||ui(S),t.removed=[],typeof J=="string"&&(Tr=!1),Tr){if(J.nodeName){const Vt=Ce(J.nodeName);if(!te[Vt]||W[Vt])throw qn("root node is forbidden and cannot be sanitized in-place")}}else if(J instanceof s)H=Vl("<!---->"),Q=H.ownerDocument.importNode(J,!0),Q.nodeType===Yn.element&&Q.nodeName==="BODY"||Q.nodeName==="HTML"?H=Q:H.appendChild(Q);else{if(!Ot&&!Fe&&!Me&&J.indexOf("<")===-1)return x&&Iu?x.createHTML(J):J;if(H=Vl(J),!H)return Ot?null:Iu?k:""}H&&Xt&&Nt(H.firstChild);const ve=Rl(Tr?J:H);for(;ge=ve.nextNode();)Bl(ge),Hl(ge),ge.content instanceof r&&X1(ge.content);if(Tr)return J;if(Ot){if(Nu)for(Be=D.call(H.ownerDocument);H.firstChild;)Be.appendChild(H.firstChild);else Be=H;return(j.shadowroot||j.shadowrootmode)&&(Be=_.call(u,Be,!0)),Be}let Xe=Me?H.outerHTML:H.innerHTML;return Me&&te["!doctype"]&&H.ownerDocument&&H.ownerDocument.doctype&&H.ownerDocument.doctype.name&&je(xa,H.ownerDocument.doctype.name)&&(Xe="<!DOCTYPE "+H.ownerDocument.doctype.name+`>
17
+ `+Xe),Fe&&Gr([I,C,P],Vt=>{Xe=Xn(Xe,Vt," ")}),x&&Iu?x.createHTML(Xe):Xe},t.setConfig=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ui(J),On=!0},t.clearConfig=function(){Vn=null,On=!1},t.isValidAttribute=function(J,S,H){Vn||ui({});const Q=Ce(J),ge=Ce(S);return zl(Q,ge,H)},t.addHook=function(J,S){typeof S=="function"&&Gn(N[J],S)},t.removeHook=function(J,S){if(S!==void 0){const H=tf(N[J],S);return H===-1?void 0:nf(N[J],H,1)[0]}return ha(N[J])},t.removeHooks=function(J){N[J]=[]},t.removeAllHooks=function(){N=va()},t}var wf=Aa();const ka={content:{type:Object,required:!0}},vf=new Ze({html:!0,linkify:!0});function Af(e){let t=e;return t=t.replace(/([\u2026\u3001\u3002\uff0c\uff1a\uff1b\uff1f\uff01)】」』]|[;:,.!?(\[\]])[\t ]*(#{2,6}\s+)/g,`$1
18
18
 
19
19
  $2`),t=t.replace(/(\*\*)(\s*)(#{2,6}\s+)/g,`$1
20
20
 
21
- $3`),t}function vf(e){const t=e.split(`
21
+ $3`),t}function kf(e){const t=e.split(`
22
22
  `),n=t.filter(o=>o.trim().length>0);if(n.length===0)return e.trim();const u=Math.min(...n.map(o=>{var r;return(((r=o.match(/^\s*/))==null?void 0:r[0])??"").length}));return t.map(o=>o.slice(u)).join(`
23
- `).trim()}const mn=i.defineComponent({name:"FXMarkdownMessage",props:wa,setup(e){const t=i.computed(()=>{var a;const n=(((a=e.content)==null?void 0:a.content)??"").replace(/\\n/g,`
24
- `),u=wf(n),o=vf(u);if(!o)return"";const r=xf.render(o);return yf.sanitize(r,{ADD_TAGS:["style"],ADD_ATTR:["style","align","valign","colspan","rowspan","scope","title"]})});return()=>{var u;const n=(u=e.content)==null?void 0:u.message;return i.createVNode("div",{class:"f-chat-message-markdown"},[n&&i.createVNode("div",{class:"f-chat-markdown-message"},[n]),i.createVNode("div",{class:"f-chat-markdown-content",innerHTML:t.value},null)])}}});mn.install=e=>{e.component(mn.name,mn)};const Af=(e,t,n)=>{if(e.type!==Oe.Text)return null;const o=e.raw;return o?typeof o!="string"?o:o.trim()?n.shouldShowMarkdown.value?i.createVNode(mn,{style:{border:"0px none rgb(51, 51, 51)",borderRadius:0,boxShadow:"none",padding:0},content:{type:"markdown",message:"",content:o}},null):i.createVNode("div",{class:"f-chat-bubble-content-text",key:`bubble-text-${t}`},[o]):null:null};function kf(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Cf(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var _f=function(){function e(n){var u=this;this._insertTag=function(o){var r;u.tags.length===0?u.insertionPoint?r=u.insertionPoint.nextSibling:u.prepend?r=u.container.firstChild:r=u.before:r=u.tags[u.tags.length-1].nextSibling,u.container.insertBefore(o,r),u.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(u){u.forEach(this._insertTag)},t.insert=function(u){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Cf(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var r=kf(o);try{r.insertRule(u,r.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(u));this.ctr++},t.flush=function(){this.tags.forEach(function(u){var o;return(o=u.parentNode)==null?void 0:o.removeChild(u)}),this.tags=[],this.ctr=0},e}(),Pe="-ms-",qr="-moz-",ae="-webkit-",va="comm",go="rule",bo="decl",Ef="@import",Aa="@keyframes",Sf="@layer",Ff=Math.abs,Zr=String.fromCharCode,Df=Object.assign;function Tf(e,t){return Ne(e,0)^45?(((t<<2^Ne(e,0))<<2^Ne(e,1))<<2^Ne(e,2))<<2^Ne(e,3):0}function ka(e){return e.trim()}function Nf(e,t){return(e=t.exec(e))?e[0]:e}function se(e,t,n){return e.replace(t,n)}function yo(e,t){return e.indexOf(t)}function Ne(e,t){return e.charCodeAt(t)|0}function Kn(e,t,n){return e.slice(t,n)}function Ct(e){return e.length}function xo(e){return e.length}function Yr(e,t){return t.push(e),e}function Lf(e,t){return e.map(t).join("")}var Kr=1,gn=1,Ca=0,Ge=0,xe=0,bn="";function Qr(e,t,n,u,o,r,a){return{value:e,root:t,parent:n,type:u,props:o,children:r,line:Kr,column:gn,length:a,return:""}}function Qn(e,t){return Df(Qr("",null,null,"",null,null,0),e,{length:-e.length},t)}function If(){return xe}function Of(){return xe=Ge>0?Ne(bn,--Ge):0,gn--,xe===10&&(gn=1,Kr--),xe}function Ke(){return xe=Ge<Ca?Ne(bn,Ge++):0,gn++,xe===10&&(gn=1,Kr++),xe}function _t(){return Ne(bn,Ge)}function Jr(){return Ge}function Jn(e,t){return Kn(bn,e,t)}function er(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _a(e){return Kr=gn=1,Ca=Ct(bn=e),Ge=0,[]}function Ea(e){return bn="",e}function eu(e){return ka(Jn(Ge-1,wo(e===91?e+2:e===40?e+1:e)))}function Pf(e){for(;(xe=_t())&&xe<33;)Ke();return er(e)>2||er(xe)>3?"":" "}function Vf(e,t){for(;--t&&Ke()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return Jn(e,Jr()+(t<6&&_t()==32&&Ke()==32))}function wo(e){for(;Ke();)switch(xe){case e:return Ge;case 34:case 39:e!==34&&e!==39&&wo(xe);break;case 40:e===41&&wo(e);break;case 92:Ke();break}return Ge}function Rf(e,t){for(;Ke()&&e+xe!==57;)if(e+xe===84&&_t()===47)break;return"/*"+Jn(t,Ge-1)+"*"+Zr(e===47?e:Ke())}function Mf(e){for(;!er(_t());)Ke();return Jn(e,Ge)}function Bf(e){return Ea(tu("",null,null,null,[""],e=_a(e),0,[0],e))}function tu(e,t,n,u,o,r,a,s,l){for(var d=0,f=0,c=a,h=0,m=0,p=0,w=1,y=1,A=1,b=0,g="",x=o,k=r,T=u,D=g;y;)switch(p=b,b=Ke()){case 40:if(p!=108&&Ne(D,c-1)==58){yo(D+=se(eu(b),"&","&\f"),"&\f")!=-1&&(A=-1);break}case 34:case 39:case 91:D+=eu(b);break;case 9:case 10:case 13:case 32:D+=Pf(p);break;case 92:D+=Vf(Jr()-1,7);continue;case 47:switch(_t()){case 42:case 47:Yr(zf(Rf(Ke(),Jr()),t,n),l);break;default:D+="/"}break;case 123*w:s[d++]=Ct(D)*A;case 125*w:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+f:A==-1&&(D=se(D,/\f/g,"")),m>0&&Ct(D)-c&&Yr(m>32?Fa(D+";",u,n,c-1):Fa(se(D," ","")+";",u,n,c-2),l);break;case 59:D+=";";default:if(Yr(T=Sa(D,t,n,d,f,o,s,g,x=[],k=[],c),r),b===123)if(f===0)tu(D,t,T,T,x,r,c,s,k);else switch(h===99&&Ne(D,3)===110?100:h){case 100:case 108:case 109:case 115:tu(e,T,T,u&&Yr(Sa(e,T,T,0,0,o,s,g,o,x=[],c),k),o,k,c,s,u?x:k);break;default:tu(D,T,T,T,[""],k,0,s,k)}}d=f=m=0,w=A=1,g=D="",c=a;break;case 58:c=1+Ct(D),m=p;default:if(w<1){if(b==123)--w;else if(b==125&&w++==0&&Of()==125)continue}switch(D+=Zr(b),b*w){case 38:A=f>0?1:(D+="\f",-1);break;case 44:s[d++]=(Ct(D)-1)*A,A=1;break;case 64:_t()===45&&(D+=eu(Ke())),h=_t(),f=c=Ct(g=D+=Mf(Jr())),b++;break;case 45:p===45&&Ct(D)==2&&(w=0)}}return r}function Sa(e,t,n,u,o,r,a,s,l,d,f){for(var c=o-1,h=o===0?r:[""],m=xo(h),p=0,w=0,y=0;p<u;++p)for(var A=0,b=Kn(e,c+1,c=Ff(w=a[p])),g=e;A<m;++A)(g=ka(w>0?h[A]+" "+b:se(b,/&\f/g,h[A])))&&(l[y++]=g);return Qr(e,t,n,o===0?go:s,l,d,f)}function zf(e,t,n){return Qr(e,t,n,va,Zr(If()),Kn(e,2,-2),0)}function Fa(e,t,n,u){return Qr(e,t,n,bo,Kn(e,0,u),Kn(e,u+1,-1),u)}function yn(e,t){for(var n="",u=xo(e),o=0;o<u;o++)n+=t(e[o],o,e,t)||"";return n}function jf(e,t,n,u){switch(e.type){case Sf:if(e.children.length)break;case Ef:case bo:return e.return=e.return||e.value;case va:return"";case Aa:return e.return=e.value+"{"+yn(e.children,u)+"}";case go:e.value=e.props.join(",")}return Ct(n=yn(e.children,u))?e.return=e.value+"{"+n+"}":""}function Hf(e){var t=xo(e);return function(n,u,o,r){for(var a="",s=0;s<t;s++)a+=e[s](n,u,o,r)||"";return a}}function $f(e){return function(t){t.root||(t=t.return)&&e(t)}}function Uf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Wf=function(t,n,u){for(var o=0,r=0;o=r,r=_t(),o===38&&r===12&&(n[u]=1),!er(r);)Ke();return Jn(t,Ge)},Gf=function(t,n){var u=-1,o=44;do switch(er(o)){case 0:o===38&&_t()===12&&(n[u]=1),t[u]+=Wf(Ge-1,n,u);break;case 2:t[u]+=eu(o);break;case 4:if(o===44){t[++u]=_t()===58?"&\f":"",n[u]=t[u].length;break}default:t[u]+=Zr(o)}while(o=Ke());return t},Xf=function(t,n){return Ea(Gf(_a(t),n))},Da=new WeakMap,qf=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,u=t.parent,o=t.column===u.column&&t.line===u.line;u.type!=="rule";)if(u=u.parent,!u)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Da.get(u))&&!o){Da.set(t,!0);for(var r=[],a=Xf(n,r),s=u.props,l=0,d=0;l<a.length;l++)for(var f=0;f<s.length;f++,d++)t.props[d]=r[l]?a[l].replace(/&\f/g,s[f]):s[f]+" "+a[l]}}},Zf=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Ta(e,t){switch(Tf(e,t)){case 5103:return ae+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ae+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ae+e+qr+e+Pe+e+e;case 6828:case 4268:return ae+e+Pe+e+e;case 6165:return ae+e+Pe+"flex-"+e+e;case 5187:return ae+e+se(e,/(\w+).+(:[^]+)/,ae+"box-$1$2"+Pe+"flex-$1$2")+e;case 5443:return ae+e+Pe+"flex-item-"+se(e,/flex-|-self/,"")+e;case 4675:return ae+e+Pe+"flex-line-pack"+se(e,/align-content|flex-|-self/,"")+e;case 5548:return ae+e+Pe+se(e,"shrink","negative")+e;case 5292:return ae+e+Pe+se(e,"basis","preferred-size")+e;case 6060:return ae+"box-"+se(e,"-grow","")+ae+e+Pe+se(e,"grow","positive")+e;case 4554:return ae+se(e,/([^-])(transform)/g,"$1"+ae+"$2")+e;case 6187:return se(se(se(e,/(zoom-|grab)/,ae+"$1"),/(image-set)/,ae+"$1"),e,"")+e;case 5495:case 3959:return se(e,/(image-set\([^]*)/,ae+"$1$`$1");case 4968:return se(se(e,/(.+:)(flex-)?(.*)/,ae+"box-pack:$3"+Pe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ae+e+e;case 4095:case 3583:case 4068:case 2532:return se(e,/(.+)-inline(.+)/,ae+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ct(e)-1-t>6)switch(Ne(e,t+1)){case 109:if(Ne(e,t+4)!==45)break;case 102:return se(e,/(.+:)(.+)-([^]+)/,"$1"+ae+"$2-$3$1"+qr+(Ne(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~yo(e,"stretch")?Ta(se(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ne(e,t+1)!==115)break;case 6444:switch(Ne(e,Ct(e)-3-(~yo(e,"!important")&&10))){case 107:return se(e,":",":"+ae)+e;case 101:return se(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ae+(Ne(e,14)===45?"inline-":"")+"box$3$1"+ae+"$2$3$1"+Pe+"$2box$3")+e}break;case 5936:switch(Ne(e,t+11)){case 114:return ae+e+Pe+se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ae+e+Pe+se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ae+e+Pe+se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ae+e+Pe+e+e}return e}var Yf=function(t,n,u,o){if(t.length>-1&&!t.return)switch(t.type){case bo:t.return=Ta(t.value,t.length);break;case Aa:return yn([Qn(t,{value:se(t.value,"@","@"+ae)})],o);case go:if(t.length)return Lf(t.props,function(r){switch(Nf(r,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yn([Qn(t,{props:[se(r,/:(read-\w+)/,":"+qr+"$1")]})],o);case"::placeholder":return yn([Qn(t,{props:[se(r,/:(plac\w+)/,":"+ae+"input-$1")]}),Qn(t,{props:[se(r,/:(plac\w+)/,":"+qr+"$1")]}),Qn(t,{props:[se(r,/:(plac\w+)/,Pe+"input-$1")]})],o)}return""})}},Kf=[Yf],Qf=function(t){var n=t.key;if(n==="css"){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(w){var y=w.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=t.stylisPlugins||Kf,r={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(w){for(var y=w.getAttribute("data-emotion").split(" "),A=1;A<y.length;A++)r[y[A]]=!0;s.push(w)});var l,d=[qf,Zf];{var f,c=[jf,$f(function(w){f.insert(w)})],h=Hf(d.concat(o,c)),m=function(y){return yn(Bf(y),h)};l=function(y,A,b,g){f=b,m(y?y+"{"+A.styles+"}":A.styles),g&&(p.inserted[A.name]=!0)}}var p={key:n,sheet:new _f({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:r,registered:{},insert:l};return p.sheet.hydrate(s),p};function Jf(e){for(var t=0,n,u=0,o=e.length;o>=4;++u,o-=4)n=e.charCodeAt(u)&255|(e.charCodeAt(++u)&255)<<8|(e.charCodeAt(++u)&255)<<16|(e.charCodeAt(++u)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(u+2)&255)<<16;case 2:t^=(e.charCodeAt(u+1)&255)<<8;case 1:t^=e.charCodeAt(u)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var eh={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},th=/[A-Z]|^ms/g,nh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Na=function(t){return t.charCodeAt(1)===45},La=function(t){return t!=null&&typeof t!="boolean"},vo=Uf(function(e){return Na(e)?e:e.replace(th,"-$&").toLowerCase()}),Ia=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(nh,function(u,o,r){return jt={name:o,styles:r,next:jt},o})}return eh[t]!==1&&!Na(t)&&typeof n=="number"&&n!==0?n+"px":n};function nu(e,t,n){if(n==null)return"";var u=n;if(u.__emotion_styles!==void 0)return u;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return jt={name:o.name,styles:o.styles,next:jt},o.name;var r=n;if(r.styles!==void 0){var a=r.next;if(a!==void 0)for(;a!==void 0;)jt={name:a.name,styles:a.styles,next:jt},a=a.next;var s=r.styles+";";return s}return rh(e,t,n)}}var l=n;if(t==null)return l;var d=t[l];return d!==void 0?d:l}function rh(e,t,n){var u="";if(Array.isArray(n))for(var o=0;o<n.length;o++)u+=nu(e,t,n[o])+";";else for(var r in n){var a=n[r];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?u+=r+"{"+t[s]+"}":La(s)&&(u+=vo(r)+":"+Ia(r,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)La(a[l])&&(u+=vo(r)+":"+Ia(r,a[l])+";");else{var d=nu(e,t,a);switch(r){case"animation":case"animationName":{u+=vo(r)+":"+d+";";break}default:u+=r+"{"+d+"}"}}}return u}var Oa=/label:\s*([^\s;{]+)\s*(;|$)/g,jt;function Ao(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var u=!0,o="";jt=void 0;var r=e[0];if(r==null||r.raw===void 0)u=!1,o+=nu(n,t,r);else{var a=r;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=nu(n,t,e[s]),u){var l=r;o+=l[s]}Oa.lastIndex=0;for(var d="",f;(f=Oa.exec(o))!==null;)d+="-"+f[1];var c=Jf(o)+d;return{name:c,styles:o,next:jt}}function Pa(e,t,n){var u="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(u+=o+" ")}),u}var uh=function(t,n,u){var o=t.key+"-"+n.name;t.registered[o]===void 0&&(t.registered[o]=n.styles)},oh=function(t,n,u){uh(t,n);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var r=n;do t.insert(n===r?"."+o:"",r,t.sheet,!0),r=r.next;while(r!==void 0)}};function Va(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Ra(e,t,n){var u=[],o=Pa(e,u,n);return u.length<2?n:o+t(u)}var ih=function(t){var n=Qf(t);n.sheet.speedy=function(s){this.isSpeedy=s},n.compat=!0;var u=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];var c=Ao(d,n.registered,void 0);return oh(n,c),n.key+"-"+c.name},o=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];var c=Ao(d,n.registered),h="animation-"+c.name;return Va(n,{name:c.name,styles:"@keyframes "+h+"{"+c.styles+"}"}),h},r=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];var c=Ao(d,n.registered);Va(n,c)},a=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];return Ra(n.registered,u,ah(d))};return{css:u,cx:a,injectGlobal:r,keyframes:o,hydrate:function(l){l.forEach(function(d){n.inserted[d]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:Pa.bind(null,n.registered),merge:Ra.bind(null,n.registered,u)}},ah=function e(t){for(var n="",u=0;u<t.length;u++){var o=t[u];if(o!=null){var r=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))r=e(o);else{r="";for(var a in o)o[a]&&a&&(r&&(r+=" "),r+=a)}break}default:r=o}r&&(n&&(n+=" "),n+=r)}}return n},sh=ih({key:"css"}),ko=sh.css,lh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ch(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ma={exports:{}};/*!
23
+ `).trim()}const mn=i.defineComponent({name:"FXMarkdownMessage",props:ka,setup(e){const t=i.computed(()=>{var a;const n=(((a=e.content)==null?void 0:a.content)??"").replace(/\\n/g,`
24
+ `),u=Af(n),o=kf(u);if(!o)return"";const r=vf.render(o);return wf.sanitize(r,{ADD_TAGS:["style"],ADD_ATTR:["style","align","valign","colspan","rowspan","scope","title"]})});return()=>{var u;const n=(u=e.content)==null?void 0:u.message;return i.createVNode("div",{class:"f-chat-message-markdown"},[n&&i.createVNode("div",{class:"f-chat-markdown-message"},[n]),i.createVNode("div",{class:"f-chat-markdown-content",innerHTML:t.value},null)])}}});mn.install=e=>{e.component(mn.name,mn)};const Cf=(e,t,n)=>{if(e.type!==Le.Text)return null;const o=e.raw;return o?typeof o!="string"?o:o.trim()?n.shouldShowMarkdown.value?i.createVNode(mn,{style:{border:"0px none rgb(51, 51, 51)",borderRadius:0,boxShadow:"none",padding:0},content:{type:"markdown",message:"",content:o}},null):i.createVNode("div",{class:"f-chat-bubble-content-text",key:`bubble-text-${t}`},[o]):null:null};function _f(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Ef(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Sf=function(){function e(n){var u=this;this._insertTag=function(o){var r;u.tags.length===0?u.insertionPoint?r=u.insertionPoint.nextSibling:u.prepend?r=u.container.firstChild:r=u.before:r=u.tags[u.tags.length-1].nextSibling,u.container.insertBefore(o,r),u.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(u){u.forEach(this._insertTag)},t.insert=function(u){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ef(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var r=_f(o);try{r.insertRule(u,r.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(u));this.ctr++},t.flush=function(){this.tags.forEach(function(u){var o;return(o=u.parentNode)==null?void 0:o.removeChild(u)}),this.tags=[],this.ctr=0},e}(),Pe="-ms-",Zr="-moz-",ae="-webkit-",Ca="comm",go="rule",bo="decl",Df="@import",_a="@keyframes",Tf="@layer",Ff=Math.abs,Yr=String.fromCharCode,Nf=Object.assign;function If(e,t){return Ne(e,0)^45?(((t<<2^Ne(e,0))<<2^Ne(e,1))<<2^Ne(e,2))<<2^Ne(e,3):0}function Ea(e){return e.trim()}function Of(e,t){return(e=t.exec(e))?e[0]:e}function se(e,t,n){return e.replace(t,n)}function yo(e,t){return e.indexOf(t)}function Ne(e,t){return e.charCodeAt(t)|0}function Kn(e,t,n){return e.slice(t,n)}function Ct(e){return e.length}function xo(e){return e.length}function Kr(e,t){return t.push(e),e}function Lf(e,t){return e.map(t).join("")}var Qr=1,pn=1,Sa=0,Ge=0,xe=0,gn="";function Jr(e,t,n,u,o,r,a){return{value:e,root:t,parent:n,type:u,props:o,children:r,line:Qr,column:pn,length:a,return:""}}function Qn(e,t){return Nf(Jr("",null,null,"",null,null,0),e,{length:-e.length},t)}function Pf(){return xe}function Vf(){return xe=Ge>0?Ne(gn,--Ge):0,pn--,xe===10&&(pn=1,Qr--),xe}function Ke(){return xe=Ge<Sa?Ne(gn,Ge++):0,pn++,xe===10&&(pn=1,Qr++),xe}function _t(){return Ne(gn,Ge)}function eu(){return Ge}function Jn(e,t){return Kn(gn,e,t)}function er(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Da(e){return Qr=pn=1,Sa=Ct(gn=e),Ge=0,[]}function Ta(e){return gn="",e}function tu(e){return Ea(Jn(Ge-1,wo(e===91?e+2:e===40?e+1:e)))}function Rf(e){for(;(xe=_t())&&xe<33;)Ke();return er(e)>2||er(xe)>3?"":" "}function Mf(e,t){for(;--t&&Ke()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return Jn(e,eu()+(t<6&&_t()==32&&Ke()==32))}function wo(e){for(;Ke();)switch(xe){case e:return Ge;case 34:case 39:e!==34&&e!==39&&wo(xe);break;case 40:e===41&&wo(e);break;case 92:Ke();break}return Ge}function Bf(e,t){for(;Ke()&&e+xe!==57;)if(e+xe===84&&_t()===47)break;return"/*"+Jn(t,Ge-1)+"*"+Yr(e===47?e:Ke())}function zf(e){for(;!er(_t());)Ke();return Jn(e,Ge)}function jf(e){return Ta(nu("",null,null,null,[""],e=Da(e),0,[0],e))}function nu(e,t,n,u,o,r,a,s,l){for(var d=0,f=0,c=a,h=0,p=0,m=0,w=1,y=1,A=1,b=0,g="",x=o,k=r,F=u,T=g;y;)switch(m=b,b=Ke()){case 40:if(m!=108&&Ne(T,c-1)==58){yo(T+=se(tu(b),"&","&\f"),"&\f")!=-1&&(A=-1);break}case 34:case 39:case 91:T+=tu(b);break;case 9:case 10:case 13:case 32:T+=Rf(m);break;case 92:T+=Mf(eu()-1,7);continue;case 47:switch(_t()){case 42:case 47:Kr(Hf(Bf(Ke(),eu()),t,n),l);break;default:T+="/"}break;case 123*w:s[d++]=Ct(T)*A;case 125*w:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+f:A==-1&&(T=se(T,/\f/g,"")),p>0&&Ct(T)-c&&Kr(p>32?Na(T+";",u,n,c-1):Na(se(T," ","")+";",u,n,c-2),l);break;case 59:T+=";";default:if(Kr(F=Fa(T,t,n,d,f,o,s,g,x=[],k=[],c),r),b===123)if(f===0)nu(T,t,F,F,x,r,c,s,k);else switch(h===99&&Ne(T,3)===110?100:h){case 100:case 108:case 109:case 115:nu(e,F,F,u&&Kr(Fa(e,F,F,0,0,o,s,g,o,x=[],c),k),o,k,c,s,u?x:k);break;default:nu(T,F,F,F,[""],k,0,s,k)}}d=f=p=0,w=A=1,g=T="",c=a;break;case 58:c=1+Ct(T),p=m;default:if(w<1){if(b==123)--w;else if(b==125&&w++==0&&Vf()==125)continue}switch(T+=Yr(b),b*w){case 38:A=f>0?1:(T+="\f",-1);break;case 44:s[d++]=(Ct(T)-1)*A,A=1;break;case 64:_t()===45&&(T+=tu(Ke())),h=_t(),f=c=Ct(g=T+=zf(eu())),b++;break;case 45:m===45&&Ct(T)==2&&(w=0)}}return r}function Fa(e,t,n,u,o,r,a,s,l,d,f){for(var c=o-1,h=o===0?r:[""],p=xo(h),m=0,w=0,y=0;m<u;++m)for(var A=0,b=Kn(e,c+1,c=Ff(w=a[m])),g=e;A<p;++A)(g=Ea(w>0?h[A]+" "+b:se(b,/&\f/g,h[A])))&&(l[y++]=g);return Jr(e,t,n,o===0?go:s,l,d,f)}function Hf(e,t,n){return Jr(e,t,n,Ca,Yr(Pf()),Kn(e,2,-2),0)}function Na(e,t,n,u){return Jr(e,t,n,bo,Kn(e,0,u),Kn(e,u+1,-1),u)}function bn(e,t){for(var n="",u=xo(e),o=0;o<u;o++)n+=t(e[o],o,e,t)||"";return n}function $f(e,t,n,u){switch(e.type){case Tf:if(e.children.length)break;case Df:case bo:return e.return=e.return||e.value;case Ca:return"";case _a:return e.return=e.value+"{"+bn(e.children,u)+"}";case go:e.value=e.props.join(",")}return Ct(n=bn(e.children,u))?e.return=e.value+"{"+n+"}":""}function Uf(e){var t=xo(e);return function(n,u,o,r){for(var a="",s=0;s<t;s++)a+=e[s](n,u,o,r)||"";return a}}function Wf(e){return function(t){t.root||(t=t.return)&&e(t)}}function Gf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Xf=function(t,n,u){for(var o=0,r=0;o=r,r=_t(),o===38&&r===12&&(n[u]=1),!er(r);)Ke();return Jn(t,Ge)},qf=function(t,n){var u=-1,o=44;do switch(er(o)){case 0:o===38&&_t()===12&&(n[u]=1),t[u]+=Xf(Ge-1,n,u);break;case 2:t[u]+=tu(o);break;case 4:if(o===44){t[++u]=_t()===58?"&\f":"",n[u]=t[u].length;break}default:t[u]+=Yr(o)}while(o=Ke());return t},Zf=function(t,n){return Ta(qf(Da(t),n))},Ia=new WeakMap,Yf=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,u=t.parent,o=t.column===u.column&&t.line===u.line;u.type!=="rule";)if(u=u.parent,!u)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Ia.get(u))&&!o){Ia.set(t,!0);for(var r=[],a=Zf(n,r),s=u.props,l=0,d=0;l<a.length;l++)for(var f=0;f<s.length;f++,d++)t.props[d]=r[l]?a[l].replace(/&\f/g,s[f]):s[f]+" "+a[l]}}},Kf=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Oa(e,t){switch(If(e,t)){case 5103:return ae+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ae+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ae+e+Zr+e+Pe+e+e;case 6828:case 4268:return ae+e+Pe+e+e;case 6165:return ae+e+Pe+"flex-"+e+e;case 5187:return ae+e+se(e,/(\w+).+(:[^]+)/,ae+"box-$1$2"+Pe+"flex-$1$2")+e;case 5443:return ae+e+Pe+"flex-item-"+se(e,/flex-|-self/,"")+e;case 4675:return ae+e+Pe+"flex-line-pack"+se(e,/align-content|flex-|-self/,"")+e;case 5548:return ae+e+Pe+se(e,"shrink","negative")+e;case 5292:return ae+e+Pe+se(e,"basis","preferred-size")+e;case 6060:return ae+"box-"+se(e,"-grow","")+ae+e+Pe+se(e,"grow","positive")+e;case 4554:return ae+se(e,/([^-])(transform)/g,"$1"+ae+"$2")+e;case 6187:return se(se(se(e,/(zoom-|grab)/,ae+"$1"),/(image-set)/,ae+"$1"),e,"")+e;case 5495:case 3959:return se(e,/(image-set\([^]*)/,ae+"$1$`$1");case 4968:return se(se(e,/(.+:)(flex-)?(.*)/,ae+"box-pack:$3"+Pe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ae+e+e;case 4095:case 3583:case 4068:case 2532:return se(e,/(.+)-inline(.+)/,ae+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ct(e)-1-t>6)switch(Ne(e,t+1)){case 109:if(Ne(e,t+4)!==45)break;case 102:return se(e,/(.+:)(.+)-([^]+)/,"$1"+ae+"$2-$3$1"+Zr+(Ne(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~yo(e,"stretch")?Oa(se(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ne(e,t+1)!==115)break;case 6444:switch(Ne(e,Ct(e)-3-(~yo(e,"!important")&&10))){case 107:return se(e,":",":"+ae)+e;case 101:return se(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ae+(Ne(e,14)===45?"inline-":"")+"box$3$1"+ae+"$2$3$1"+Pe+"$2box$3")+e}break;case 5936:switch(Ne(e,t+11)){case 114:return ae+e+Pe+se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ae+e+Pe+se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ae+e+Pe+se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ae+e+Pe+e+e}return e}var Qf=function(t,n,u,o){if(t.length>-1&&!t.return)switch(t.type){case bo:t.return=Oa(t.value,t.length);break;case _a:return bn([Qn(t,{value:se(t.value,"@","@"+ae)})],o);case go:if(t.length)return Lf(t.props,function(r){switch(Of(r,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bn([Qn(t,{props:[se(r,/:(read-\w+)/,":"+Zr+"$1")]})],o);case"::placeholder":return bn([Qn(t,{props:[se(r,/:(plac\w+)/,":"+ae+"input-$1")]}),Qn(t,{props:[se(r,/:(plac\w+)/,":"+Zr+"$1")]}),Qn(t,{props:[se(r,/:(plac\w+)/,Pe+"input-$1")]})],o)}return""})}},Jf=[Qf],eh=function(t){var n=t.key;if(n==="css"){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(w){var y=w.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=t.stylisPlugins||Jf,r={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(w){for(var y=w.getAttribute("data-emotion").split(" "),A=1;A<y.length;A++)r[y[A]]=!0;s.push(w)});var l,d=[Yf,Kf];{var f,c=[$f,Wf(function(w){f.insert(w)})],h=Uf(d.concat(o,c)),p=function(y){return bn(jf(y),h)};l=function(y,A,b,g){f=b,p(y?y+"{"+A.styles+"}":A.styles),g&&(m.inserted[A.name]=!0)}}var m={key:n,sheet:new Sf({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:r,registered:{},insert:l};return m.sheet.hydrate(s),m};function th(e){for(var t=0,n,u=0,o=e.length;o>=4;++u,o-=4)n=e.charCodeAt(u)&255|(e.charCodeAt(++u)&255)<<8|(e.charCodeAt(++u)&255)<<16|(e.charCodeAt(++u)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(u+2)&255)<<16;case 2:t^=(e.charCodeAt(u+1)&255)<<8;case 1:t^=e.charCodeAt(u)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var nh={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},rh=/[A-Z]|^ms/g,uh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,La=function(t){return t.charCodeAt(1)===45},Pa=function(t){return t!=null&&typeof t!="boolean"},vo=Gf(function(e){return La(e)?e:e.replace(rh,"-$&").toLowerCase()}),Va=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(uh,function(u,o,r){return jt={name:o,styles:r,next:jt},o})}return nh[t]!==1&&!La(t)&&typeof n=="number"&&n!==0?n+"px":n};function ru(e,t,n){if(n==null)return"";var u=n;if(u.__emotion_styles!==void 0)return u;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return jt={name:o.name,styles:o.styles,next:jt},o.name;var r=n;if(r.styles!==void 0){var a=r.next;if(a!==void 0)for(;a!==void 0;)jt={name:a.name,styles:a.styles,next:jt},a=a.next;var s=r.styles+";";return s}return oh(e,t,n)}}var l=n;if(t==null)return l;var d=t[l];return d!==void 0?d:l}function oh(e,t,n){var u="";if(Array.isArray(n))for(var o=0;o<n.length;o++)u+=ru(e,t,n[o])+";";else for(var r in n){var a=n[r];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?u+=r+"{"+t[s]+"}":Pa(s)&&(u+=vo(r)+":"+Va(r,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)Pa(a[l])&&(u+=vo(r)+":"+Va(r,a[l])+";");else{var d=ru(e,t,a);switch(r){case"animation":case"animationName":{u+=vo(r)+":"+d+";";break}default:u+=r+"{"+d+"}"}}}return u}var Ra=/label:\s*([^\s;{]+)\s*(;|$)/g,jt;function Ao(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var u=!0,o="";jt=void 0;var r=e[0];if(r==null||r.raw===void 0)u=!1,o+=ru(n,t,r);else{var a=r;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=ru(n,t,e[s]),u){var l=r;o+=l[s]}Ra.lastIndex=0;for(var d="",f;(f=Ra.exec(o))!==null;)d+="-"+f[1];var c=th(o)+d;return{name:c,styles:o,next:jt}}function Ma(e,t,n){var u="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(u+=o+" ")}),u}var ih=function(t,n,u){var o=t.key+"-"+n.name;t.registered[o]===void 0&&(t.registered[o]=n.styles)},ah=function(t,n,u){ih(t,n);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var r=n;do t.insert(n===r?"."+o:"",r,t.sheet,!0),r=r.next;while(r!==void 0)}};function Ba(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function za(e,t,n){var u=[],o=Ma(e,u,n);return u.length<2?n:o+t(u)}var sh=function(t){var n=eh(t);n.sheet.speedy=function(s){this.isSpeedy=s},n.compat=!0;var u=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];var c=Ao(d,n.registered,void 0);return ah(n,c),n.key+"-"+c.name},o=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];var c=Ao(d,n.registered),h="animation-"+c.name;return Ba(n,{name:c.name,styles:"@keyframes "+h+"{"+c.styles+"}"}),h},r=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];var c=Ao(d,n.registered);Ba(n,c)},a=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];return za(n.registered,u,lh(d))};return{css:u,cx:a,injectGlobal:r,keyframes:o,hydrate:function(l){l.forEach(function(d){n.inserted[d]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:Ma.bind(null,n.registered),merge:za.bind(null,n.registered,u)}},lh=function e(t){for(var n="",u=0;u<t.length;u++){var o=t[u];if(o!=null){var r=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))r=e(o);else{r="";for(var a in o)o[a]&&a&&(r&&(r+=" "),r+=a)}break}default:r=o}r&&(n&&(n+=" "),n+=r)}}return n},ch=sh({key:"css"}),ko=ch.css,dh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ja={exports:{}};/*!
25
25
  Copyright (c) 2018 Jed Watson.
26
26
  Licensed under the MIT License (MIT), see
27
27
  http://jedwatson.github.io/classnames
28
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(r=o(r,u(s)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var a="";for(var s in r)t.call(r,s)&&r[s]&&(a=o(a,s));return a}function o(r,a){return a?r?r+" "+a:r+a:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ma);var dh=Ma.exports;const Co=ch(dh),Ba={className:{type:String,default:""},viewStatus:{type:String,default:"full"},widgetAPIURL:{type:String,default:""},widgetOptions:{type:Object,default:()=>({mode:"embedded",implOptions:{}})},widgetData:{type:Object,default:()=>({})}};class fh{constructor(t){fe(this,"root");if(!t)throw new Error("parentElement is required");this.root=document.createElement("div"),this.root.className="fx-card-container-stage__root",t.appendChild(this.root)}dispose(){this.root.remove()}getElement(){return this.root}}function hh(){function e(t,n){if(t===n)return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null||Array.isArray(t)!==Array.isArray(n))return!1;const u=Object.keys(t),o=Object.keys(n);if(u.length!==o.length)return!1;for(const r of u)if(!o.includes(r)||!e(t[r],n[r]))return!1;return!0}return{deepEqual:e}}var _o={exports:{}};(function(e,t){(function(n,u){u(t)})(lh,function(n){var u=Object.defineProperty,o=Object.defineProperties,r=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,d=(z,j,I)=>j in z?u(z,j,{enumerable:!0,configurable:!0,writable:!0,value:I}):z[j]=I,f=(z,j)=>{for(var I in j||(j={}))s.call(j,I)&&d(z,I,j[I]);if(a)for(var I of a(j))l.call(j,I)&&d(z,I,j[I]);return z},c=(z,j)=>o(z,r(j)),h=(z,j,I)=>new Promise((B,W)=>{var K=ue=>{try{Y(I.next(ue))}catch(le){W(le)}},Z=ue=>{try{Y(I.throw(ue))}catch(le){W(le)}},Y=ue=>ue.done?B(ue.value):Promise.resolve(ue.value).then(K,Z);Y((I=I.apply(z,j)).next())}),m=(z=>(z[z.NONE=0]="NONE",z[z.LOADING=1]="LOADING",z[z.LOADED=2]="LOADED",z[z.ERROR=3]="ERROR",z))(m||{});class p{constructor(j){this.items={},this.factory=j}getOrCreateItemByURL(j){let I=this.items[j];return I||(I=this.items[j]=this.factory(j)),I}tryGetItemByURL(j){var I;return(I=this.items[j])!=null?I:null}removeItemByURL(j){const I=this.items[j];return I&&(this.items[j]=null,I)}}const w="__RUNTIME_IMPORT__";function y(z,j){var I,B;const W=globalThis,K=(I=W[w])!=null?I:W[w]={};return(B=K[z])!=null?B:K[z]=j()}const A=y("cssCache",()=>new p(z=>({url:z,status:m.NONE,el:null,error:null,reject:null})));function b(z,j,I){const B={handleLoad(){z.removeEventListener("load",B.handleLoad),z.removeEventListener("error",B.handleError),j()},handleError(W){z.removeEventListener("load",B.handleLoad),z.removeEventListener("error",B.handleError),I(W)}};z.addEventListener("load",B.handleLoad),z.addEventListener("error",B.handleError)}function g(z){const j=A.getOrCreateItemByURL(z),{status:I,error:B}=j;return I===m.LOADED?Promise.resolve():I===m.ERROR?Promise.reject(B):I===m.LOADING?new Promise((W,K)=>{const{el:Z}=j;b(Z,()=>W(),Y=>K(Y.error))}):(j.status=m.LOADING,new Promise((W,K)=>{const Z=document.createElement("link");Z.rel="stylesheet",Z.href=z,b(Z,()=>{j.status=m.LOADED,W()},Y=>{const ue=Y.error||new Error(`Load css failed. href=${z}`);j.status=m.ERROR,j.error=ue,K(ue)}),j.el=Z,Z.setAttribute("data-runtime-import-type","css"),document.head.appendChild(Z)}))}function x(z){return Promise.all(z.map(j=>g(j))).then(()=>Promise.resolve()).catch(j=>Promise.reject(j))}const k=y("jsCache",()=>new p(z=>({url:z,status:m.NONE,el:null,error:null,reject:null,exportThing:void 0}))),T=globalThis,{define:D}=T,{keys:F}=Object;let U=!1;typeof D<"u"&&!D.runtime_import&&(console.warn("runtime-import should NOT coexist with requiesjs or seajs or any other AMD/CMD loader."),U=!0);const _=y("pendingItemMap",()=>({})),N=function(...z){const j=z.pop(),{currentScript:I}=document;if(!I)throw new Error("currentScript is null.");const{src:B}=I,W=_[B];if(!W)throw new Error(`Can NOT find item, src=${B}`);_[B]=null;try{let K=z[0]||[],Z=null;typeof K=="string"&&(Z=K,K=z[1]||[]);const Y=W.exportThing=(()=>{let ue=!1;const le={};let De=j(...K.map(Te=>Te==="exports"?(ue=!0,le):T[Te]));return!De&&ue&&(De=le),De})();Z&&(T[Z]=Y),Y&&F(Y).length===1&&Y.default&&(W.exportThing=Y.default,W.exportThing.default=Y.default)}catch(K){W.status=m.ERROR,K instanceof Error&&(W.error=K),W.reject(K)}},L=()=>{const{currentScript:z}=document;if(z){const{src:j}=z;if(_[j])return!0}return!1};["amd","cmd"].forEach(z=>{Object.defineProperty(N,z,{get:L})}),N.runtime_import=!0;function C(z,j){if(U)throw new Error("runtime-import UMD mode uses window.define, you should NOT have your own window.define.");T.define||(T.define=N),_[z]=j}function P(z){const j=/legao-comp\/(.*)\/[\d.]+\/web.js$/.exec(z),I=window;if(j&&j.length>0){const B=j[1];I.g_config=I.g_config||{},I.g_config.appKey=B}}function V(z,j,I){z.status=m.LOADING,P(j);const{umd:B,crossOrigin:W}=I;return new Promise((K,Z)=>{const Y=document.createElement("script");if(Y.src=j,Y.async=!1,Y.crossOrigin=W,B){Y.setAttribute("data-runtime-import-type","javascript-umd"),z.reject=Z;const ue=Y.src;C(ue,z)}else Y.setAttribute("data-runtime-import-type","javascript");b(Y,()=>{z.status=m.LOADED,z.el=null,K(z.exportThing)},ue=>{const le=ue.error||new Error(`Load javascript failed. src=${j}`);z.status=m.ERROR,z.error=le,z.el=null,Z(le)}),z.el=Y,document.body.appendChild(Y)})}function E(z,j){const I=k.getOrCreateItemByURL(z),{status:B,exportThing:W,error:K}=I;if(B===m.LOADED)return Promise.resolve(W);if(B===m.ERROR)return Promise.reject(K);if(B===m.LOADING){const{el:Z}=I;return new Promise((Y,ue)=>{b(Z,()=>Y(I.exportThing),le=>ue(le.error))})}return V(I,z,j)}function M(z,j){let I=Promise.resolve();const B=z.length-1,{umd:W}=j;return z.forEach((K,Z)=>{const Y=W&&Z===B;I=I.then(()=>E(K,c(f({},j),{umd:Y})))}),I}function R(z){return h(this,null,function*(){const{scripts:j,styles:I}=z;if(I){const{urls:Y}=I;yield x(Y)}const{dependencies:B=[],entry:W,umd:K=!0,crossOrigin:Z="anonymous"}=j;if((W?B.concat([W]):B).length)return yield M(B.concat([W]),{umd:K,crossOrigin:Z})})}function $(z,j){return h(this,null,function*(){const I=j??{};return yield R({scripts:{dependencies:[],entry:z,umd:I.umd,crossOrigin:I.crossOrigin}})})}function re(z){return h(this,null,function*(){return yield R({scripts:{dependencies:[],entry:""},styles:{urls:[z]}})})}const te=R;n.importComponent=R,n.importModule=te,n.importScript=$,n.importStyle=re,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(_o,_o.exports);var ph=_o.exports;function mh(){async function e(t){return await ph.importScript(t)}return{loadWidgetAPI:e}}const xn=i.defineComponent({name:"FXWidgetContainer",props:Ba,setup(e,t){const{loadWidgetAPI:n}=mh(),{deepEqual:u}=hh(),o=i.ref(null),r=i.ref(null),a=i.ref(null),s=i.ref(null),l=i.ref(null),d=i.computed(()=>{const b=ko`width:100%!important`;return Co("caf-assistant-widget-container__root",b,e.className)}),f=ko`
28
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(r=o(r,u(s)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var a="";for(var s in r)t.call(r,s)&&r[s]&&(a=o(a,s));return a}function o(r,a){return a?r?r+" "+a:r+a:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(ja);var hh=ja.exports;const Co=fh(hh),Ha={className:{type:String,default:""},viewStatus:{type:String,default:"full"},widgetAPIURL:{type:String,default:""},widgetOptions:{type:Object,default:()=>({mode:"embedded",implOptions:{}})},widgetData:{type:Object,default:()=>({})}};class mh{constructor(t){fe(this,"root");if(!t)throw new Error("parentElement is required");this.root=document.createElement("div"),this.root.className="fx-card-container-stage__root",t.appendChild(this.root)}dispose(){this.root.remove()}getElement(){return this.root}}function ph(){function e(t,n){if(t===n)return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null||Array.isArray(t)!==Array.isArray(n))return!1;const u=Object.keys(t),o=Object.keys(n);if(u.length!==o.length)return!1;for(const r of u)if(!o.includes(r)||!e(t[r],n[r]))return!1;return!0}return{deepEqual:e}}var _o={exports:{}};(function(e,t){(function(n,u){u(t)})(dh,function(n){var u=Object.defineProperty,o=Object.defineProperties,r=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,d=(z,j,L)=>j in z?u(z,j,{enumerable:!0,configurable:!0,writable:!0,value:L}):z[j]=L,f=(z,j)=>{for(var L in j||(j={}))s.call(j,L)&&d(z,L,j[L]);if(a)for(var L of a(j))l.call(j,L)&&d(z,L,j[L]);return z},c=(z,j)=>o(z,r(j)),h=(z,j,L)=>new Promise((B,W)=>{var K=ue=>{try{Y(L.next(ue))}catch(le){W(le)}},Z=ue=>{try{Y(L.throw(ue))}catch(le){W(le)}},Y=ue=>ue.done?B(ue.value):Promise.resolve(ue.value).then(K,Z);Y((L=L.apply(z,j)).next())}),p=(z=>(z[z.NONE=0]="NONE",z[z.LOADING=1]="LOADING",z[z.LOADED=2]="LOADED",z[z.ERROR=3]="ERROR",z))(p||{});class m{constructor(j){this.items={},this.factory=j}getOrCreateItemByURL(j){let L=this.items[j];return L||(L=this.items[j]=this.factory(j)),L}tryGetItemByURL(j){var L;return(L=this.items[j])!=null?L:null}removeItemByURL(j){const L=this.items[j];return L&&(this.items[j]=null,L)}}const w="__RUNTIME_IMPORT__";function y(z,j){var L,B;const W=globalThis,K=(L=W[w])!=null?L:W[w]={};return(B=K[z])!=null?B:K[z]=j()}const A=y("cssCache",()=>new m(z=>({url:z,status:p.NONE,el:null,error:null,reject:null})));function b(z,j,L){const B={handleLoad(){z.removeEventListener("load",B.handleLoad),z.removeEventListener("error",B.handleError),j()},handleError(W){z.removeEventListener("load",B.handleLoad),z.removeEventListener("error",B.handleError),L(W)}};z.addEventListener("load",B.handleLoad),z.addEventListener("error",B.handleError)}function g(z){const j=A.getOrCreateItemByURL(z),{status:L,error:B}=j;return L===p.LOADED?Promise.resolve():L===p.ERROR?Promise.reject(B):L===p.LOADING?new Promise((W,K)=>{const{el:Z}=j;b(Z,()=>W(),Y=>K(Y.error))}):(j.status=p.LOADING,new Promise((W,K)=>{const Z=document.createElement("link");Z.rel="stylesheet",Z.href=z,b(Z,()=>{j.status=p.LOADED,W()},Y=>{const ue=Y.error||new Error(`Load css failed. href=${z}`);j.status=p.ERROR,j.error=ue,K(ue)}),j.el=Z,Z.setAttribute("data-runtime-import-type","css"),document.head.appendChild(Z)}))}function x(z){return Promise.all(z.map(j=>g(j))).then(()=>Promise.resolve()).catch(j=>Promise.reject(j))}const k=y("jsCache",()=>new m(z=>({url:z,status:p.NONE,el:null,error:null,reject:null,exportThing:void 0}))),F=globalThis,{define:T}=F,{keys:D}=Object;let U=!1;typeof T<"u"&&!T.runtime_import&&(console.warn("runtime-import should NOT coexist with requiesjs or seajs or any other AMD/CMD loader."),U=!0);const _=y("pendingItemMap",()=>({})),N=function(...z){const j=z.pop(),{currentScript:L}=document;if(!L)throw new Error("currentScript is null.");const{src:B}=L,W=_[B];if(!W)throw new Error(`Can NOT find item, src=${B}`);_[B]=null;try{let K=z[0]||[],Z=null;typeof K=="string"&&(Z=K,K=z[1]||[]);const Y=W.exportThing=(()=>{let ue=!1;const le={};let Te=j(...K.map(Fe=>Fe==="exports"?(ue=!0,le):F[Fe]));return!Te&&ue&&(Te=le),Te})();Z&&(F[Z]=Y),Y&&D(Y).length===1&&Y.default&&(W.exportThing=Y.default,W.exportThing.default=Y.default)}catch(K){W.status=p.ERROR,K instanceof Error&&(W.error=K),W.reject(K)}},I=()=>{const{currentScript:z}=document;if(z){const{src:j}=z;if(_[j])return!0}return!1};["amd","cmd"].forEach(z=>{Object.defineProperty(N,z,{get:I})}),N.runtime_import=!0;function C(z,j){if(U)throw new Error("runtime-import UMD mode uses window.define, you should NOT have your own window.define.");F.define||(F.define=N),_[z]=j}function P(z){const j=/legao-comp\/(.*)\/[\d.]+\/web.js$/.exec(z),L=window;if(j&&j.length>0){const B=j[1];L.g_config=L.g_config||{},L.g_config.appKey=B}}function V(z,j,L){z.status=p.LOADING,P(j);const{umd:B,crossOrigin:W}=L;return new Promise((K,Z)=>{const Y=document.createElement("script");if(Y.src=j,Y.async=!1,Y.crossOrigin=W,B){Y.setAttribute("data-runtime-import-type","javascript-umd"),z.reject=Z;const ue=Y.src;C(ue,z)}else Y.setAttribute("data-runtime-import-type","javascript");b(Y,()=>{z.status=p.LOADED,z.el=null,K(z.exportThing)},ue=>{const le=ue.error||new Error(`Load javascript failed. src=${j}`);z.status=p.ERROR,z.error=le,z.el=null,Z(le)}),z.el=Y,document.body.appendChild(Y)})}function E(z,j){const L=k.getOrCreateItemByURL(z),{status:B,exportThing:W,error:K}=L;if(B===p.LOADED)return Promise.resolve(W);if(B===p.ERROR)return Promise.reject(K);if(B===p.LOADING){const{el:Z}=L;return new Promise((Y,ue)=>{b(Z,()=>Y(L.exportThing),le=>ue(le.error))})}return V(L,z,j)}function R(z,j){let L=Promise.resolve();const B=z.length-1,{umd:W}=j;return z.forEach((K,Z)=>{const Y=W&&Z===B;L=L.then(()=>E(K,c(f({},j),{umd:Y})))}),L}function M(z){return h(this,null,function*(){const{scripts:j,styles:L}=z;if(L){const{urls:Y}=L;yield x(Y)}const{dependencies:B=[],entry:W,umd:K=!0,crossOrigin:Z="anonymous"}=j;if((W?B.concat([W]):B).length)return yield R(B.concat([W]),{umd:K,crossOrigin:Z})})}function $(z,j){return h(this,null,function*(){const L=j??{};return yield M({scripts:{dependencies:[],entry:z,umd:L.umd,crossOrigin:L.crossOrigin}})})}function re(z){return h(this,null,function*(){return yield M({scripts:{dependencies:[],entry:""},styles:{urls:[z]}})})}const te=M;n.importComponent=M,n.importModule=te,n.importScript=$,n.importStyle=re,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(_o,_o.exports);var gh=_o.exports;function bh(){async function e(t){return await gh.importScript(t)}return{loadWidgetAPI:e}}const yn=i.defineComponent({name:"FXWidgetContainer",props:Ha,setup(e,t){const{loadWidgetAPI:n}=bh(),{deepEqual:u}=ph(),o=i.ref(null),r=i.ref(null),a=i.ref(null),s=i.ref(null),l=i.ref(null),d=i.computed(()=>{const b=ko`width:100%!important`;return Co("caf-assistant-widget-container__root",b,e.className)}),f=ko`
29
29
  overflow: hidden;
30
30
  `,c=Co("caf-assistant-widget-container__inner",f),h=i.computed(()=>{const b=ko`
31
31
  display: ${l.value?"block":"none"};
32
- `;return Co("caf-assistant-widget-container__error",b)}),m=()=>{const b=a.value;b&&(s.value=new fh(b))},p=()=>{const b=s.value;b&&(b.dispose(),s.value=null)},w=()=>{const b=r.value,g=o.value;b&&(b.unmount(),b.dispose()),g&&g.cleanup(),r.value=null,o.value=null},y=async()=>{const b=await n(e.widgetAPIURL);if(!b)throw new Error("Failed to load widget API");await b.initialize();const g=b.createWidget();o.value=b,r.value=g},A=b=>{console.error(b),l.value=b};return i.watch(()=>e.widgetAPIURL,async()=>{if(a.value)try{w(),await y();const b=a.value,g=r.value;g==null||g.updateOptions(e.widgetOptions),g==null||g.updateData(e.widgetData),b&&g&&await g.mount(b)}catch(b){A(b)}}),i.watch(()=>e.widgetOptions,(b,g)=>{try{const x=r.value;x&&(!g||!u(g,b))&&x.updateOptions(b)}catch(x){A(x)}}),i.watch(()=>e.widgetData,(b,g)=>{try{const x=r.value;x&&(!g||!u(g,b))&&x.updateData(b)}catch(x){A(x)}}),i.onMounted(async()=>{try{const b=a.value;if(b){m();const g=s.value;if(g){await y();const x=r.value;x&&(x.updateOptions(e.widgetOptions),x.updateData(e.widgetData),x.mount(g.getElement()),i.nextTick(()=>{b.parentElement&&(b.style.width="100%")}))}}}catch(b){A(b)}}),i.onBeforeUnmount(async()=>{try{w(),p()}catch(b){console.error(b)}}),()=>i.createVNode("div",{class:d.value},[i.createVNode("div",{ref:a,class:c},null),i.createVNode("div",{class:h.value},null)])}}),za=(e,t)=>{var n;if(e.type===Oe.AssistantWidgetComplete){const u=e;return u.widgetUrl?i.createVNode(xn,{key:`widget-${t}`,widgetAPIURL:u.widgetUrl,widgetOptions:{mode:"embedded",implOptions:u.widgetImplOptions},widgetData:((n=u.widgetData)==null?void 0:n.data)||{}},null):null}return e.type===Oe.AssistantWidgetPending?i.createVNode("div",{class:"f-chat-bubble-widget-pending",key:`widget-loading-${t}`},[i.createVNode("span",{class:"f-chat-todo-status-icon f-chat-todo-status-working"},null),i.createVNode("span",{class:"f-chat-bubble-widget-pending-text"},[i.createTextVNode("数据生成中......")])]):null},gh=3e4,ja=8e3,Le=new Map,Qe=new Map,tr=new Map,Et=[];function Ve(e){return String(e??"").replace(/^\ufeff/,"").replace(/[\u200b\u200c\u200d]/g,"").replace(/\u00a0/g," ").trim()}function ru(e){const t=Ve(e);if(t)for(let n=Et.length-1;n>=0;n--)Et[n]===t&&Et.splice(n,1)}function bh(e){typeof window>"u"||(window.__fluens_dynamic_component_bootstrap_instance_id=e)}function uu(e){if(typeof window>"u")return;const t=window;t.__fluens_dynamic_component_bootstrap_instance_id===e&&delete t.__fluens_dynamic_component_bootstrap_instance_id}function yh(){return Et[Et.length-1]||void 0}function ou(e,t){const n=Ve(t);return n?Ve(e.instanceId)===n||e.componentId!=null&&Ve(String(e.componentId))===n||e.name!=null&&Ve(String(e.name))===n:!1}function Eo(e){const t=Ve(e);if(!t)return null;const n=Le.get(t);if(n)return{canonicalKey:t,entry:n};for(const[o,r]of Le.entries())if(Ve(o)===t)return{canonicalKey:o,entry:r};const u=[];for(const[o,r]of Le.entries())ou(r.config,t)&&u.push({key:o,entry:r});if(u.length===1){const{key:o,entry:r}=u[0];return o!==t&&console.warn(`[DynamicComponent] register id "${t}" resolved to pending instanceId "${o}" (alias match)`),{canonicalKey:o,entry:r}}if(u.length>1)return console.warn(`[DynamicComponent] register id "${t}" is ambiguous (${u.length} pending matches); refusing`),null;if(Le.size===1){const[o,r]=[...Le.entries()][0];return console.warn(`[DynamicComponent] register id "${t}" unmatched; using sole pending instance "${o}"`),{canonicalKey:o,entry:r}}return null}function Ha(e,t){for(const[n,u]of Qe){const o=Ve(n),r=e!==""&&o===e,a=String(t??"").trim(),s=e&&ou(u.config,e)||a&&ou(u.config,a);if(r||s)return console.warn(`[DynamicComponent] register skipped: id "${e||a}" already active (canonical "${n}"); unload first — second register yields "no pending", not duplicate mount`),!0}return!1}function So(){return{pendingKeys:[...Le.keys()],bootstrapQueue:[...Et],activeKeys:[...Qe.keys()],...typeof window<"u"?{windowBootstrapPeek:window.__fluens_dynamic_component_bootstrap_instance_id}:{}}}function xh(e){console.warn("[DynamicComponent] register diagnostics",{claimedNormalized:e,...So()})}function wh(e){const t=Ve(e);if(t){if(Ha(t,e))return{ok:!1,reason:"already_active_duplicate"};const u=Eo(t);if(u)return{ok:!0,...u}}else if(Ha("",e))return{ok:!1,reason:"already_active_duplicate"};for(let n=0;n<Et.length;n++){const u=Et[n],o=Eo(u);if(o)return Et.splice(n,1),t&&Ve(u)!==t&&console.warn(`[DynamicComponent] register id "${t}" did not match pending; using bootstrap instanceId "${u}" (sync bundle entry or use window.__fluens_dynamic_component_bootstrap_instance_id)`),{ok:!0,...o}}return{ok:!1,reason:"no_pending"}}function $a(e){const t=Ve(e);if(!t)return null;const n=Qe.get(t);if(n)return n;for(const[r,a]of Qe.entries())if(Ve(r)===t)return a;const u=[];for(const r of Qe.values())ou(r.config,t)&&u.push(r);const o=[...new Map(u.map(r=>[r.config.instanceId,r])).values()];if(o.length===1)return o[0].config.instanceId!==t&&console.warn(`[DynamicComponent] assistant post id "${t}" resolved to instanceId "${o[0].config.instanceId}" (alias match)`),o[0];if(o.length>1)return console.warn(`[DynamicComponent] assistant post id "${t}" is ambiguous (${o.length} active matches)`),null;if(Qe.size===1){const r=[...Qe.values()][0];return console.warn(`[DynamicComponent] assistant post id "${t}" unmatched; delivering to sole active instance "${r.config.instanceId}"`),r}return null}function vh(e){const t=Ve(e);if(!t)return t;const n=$a(t);if(n)return n.config.instanceId;const u=Eo(t);return u?u.canonicalKey:Le.size===1?[...Le.keys()][0]:Qe.size===1?[...Qe.values()][0].config.instanceId:t}function Fo(e){try{return JSON.parse(JSON.stringify(e))}catch{return{...e}}}function Ua(e,t){if(typeof e.onAssistantMessage!="function")return!0;try{return e.onAssistantMessage(Fo(t)),!0}catch(n){return console.warn("[DynamicComponent] onAssistantMessage failed",n),!1}}function Ah(e){const t=`fluens-dynamic-component-${e.instanceId}`;let n=document.getElementById(t);return n||(n=document.createElement("div"),n.id=t,n.style.width="100%",n.style.height="100%"),n}function Wa(e){const t=Qe.get(e.instanceId);if(t)return Promise.resolve(t.api);const n=Le.get(e.instanceId);if(n)return new Promise((o,r)=>{const a=n.resolve,s=n.reject;n.resolve=l=>{a(l),o(l)},n.reject=l=>{s(l),r(l)}});if((e.name||e.componentId)&&!e.jsUrl)return Promise.reject(new Error(`Dynamic component resource is empty: ${e.name||e.componentId}`));const u=Ah(e);return new Promise((o,r)=>{const a={config:e,container:u,resolve:o,reject:r,timeoutId:0},s=setTimeout(()=>{a.postLoadRegisterCheckTimerId!=null&&(clearTimeout(a.postLoadRegisterCheckTimerId),a.postLoadRegisterCheckTimerId=void 0),Le.delete(e.instanceId),ru(e.instanceId),uu(e.instanceId),r(new Error(`Dynamic component script load timeout: ${e.name||e.componentId}`))},gh);a.timeoutId=s,Le.set(e.instanceId,a),Et.push(e.instanceId),bh(e.instanceId);const l=document.createElement("script");l.src=(e==null?void 0:e.jsUrl)??"",l.dataset.dynamicComponentId=e.instanceId,l.async=!1,l.onload=()=>{a.postLoadRegisterCheckTimerId=window.setTimeout(()=>{a.postLoadRegisterCheckTimerId=void 0,Le.has(e.instanceId)&&(clearTimeout(s),Le.delete(e.instanceId),ru(e.instanceId),uu(e.instanceId),r(new Error(`Dynamic component did not call __fluens_dynamic_component_register within ${ja}ms after load: ${e.name||e.componentId}`)))},ja)},l.onerror=()=>{clearTimeout(s),a.postLoadRegisterCheckTimerId!=null&&(clearTimeout(a.postLoadRegisterCheckTimerId),a.postLoadRegisterCheckTimerId=void 0),Le.delete(e.instanceId),ru(e.instanceId),uu(e.instanceId),r(new Error(`Failed to load dynamic component: ${e.name||e.componentId}`))},document.head.appendChild(l)})}function Ga(e){var o;const t=Qe.get(e);if(t){try{t.api.unmount()}catch{}(o=t.scriptElement)==null||o.remove(),Qe.delete(e)}const n=Le.get(e);n&&(n.postLoadRegisterCheckTimerId!=null&&(clearTimeout(n.postLoadRegisterCheckTimerId),n.postLoadRegisterCheckTimerId=void 0),clearTimeout(n.timeoutId),Le.delete(e)),tr.delete(e);const u=document.getElementById(`fluens-dynamic-component-${e}`);u&&u.remove()}function kh(e,t){const n=Ve(e);if(!n)return!1;const u=$a(n);if(u)return Ua(u.api,t);const o=vh(n),r=tr.get(o)??[],a=r.findIndex(s=>s.messageId===t.messageId);return a>=0?r[a]=Fo(t):r.push(Fo(t)),tr.set(o,r),!1}typeof window<"u"&&(window.__fluens_get_dynamic_component_registry_debug_snapshot=So,window.__fluens_dynamic_component_register=function(e,t){const n=Ve(e),u=wh(e);if(!u.ok){if(u.reason==="already_active_duplicate")return;xh(n),console.warn(`[DynamicComponent] no pending for register id "${n}" (raw ${JSON.stringify(e)}); see diagnostics above. Try: unload tab / avoid double register / ensure FXDynamicComponent loaded this jsUrl first / empty id if sole pending`);return}const{canonicalKey:o,entry:r}=u;ru(o),uu(o),r.postLoadRegisterCheckTimerId!=null&&(clearTimeout(r.postLoadRegisterCheckTimerId),r.postLoadRegisterCheckTimerId=void 0),clearTimeout(r.timeoutId),Le.delete(o);const a={config:r.config,container:r.container,api:t,scriptElement:document.currentScript};Qe.set(o,a),a.container.parentElement;try{t.mount(r.container,r.config)}catch(l){console.error(`Failed to mount dynamic component: ${o}`,l)}const s=[o];n&&n!==o&&s.push(n);for(const l of s){const d=tr.get(l);d&&d.length>0&&(tr.delete(l),d.forEach(f=>Ua(t,f)))}r.resolve(t)});const wn=i.defineComponent({name:"FXDynamicComponent",props:{config:{type:Object,required:!0}},setup(e){const t=i.ref("loading"),n=i.ref(""),u=i.computed(()=>`fluens-dynamic-component-${e.config.instanceId}`),o=i.computed(()=>e.config.position==="inline"),r=i.computed(()=>!e.config.jsUrl&&!!e.config.url),a=i.computed(()=>({...o.value?{width:"fit-content",maxWidth:"100%"}:{width:"100%"},height:"auto",...t.value==="ready"&&o.value?{padding:"16px 0"}:{},...t.value==="ready"&&!o.value?{height:"100%",overflow:"hidden"}:{}}));return i.onMounted(()=>{r.value||(t.value="loading",n.value="",Wa(e.config).then(()=>{t.value="ready"}).catch(s=>{t.value="error",n.value=s.message||"Unknown error"}))}),i.onUnmounted(()=>{r.value||Ga(e.config.instanceId)}),()=>r.value?null:i.createVNode("div",{class:"f-chat-dynamic-component-body",style:a.value},[i.createVNode("div",{id:u.value,style:{width:"100%",height:"100%",display:t.value==="ready"?"":"none"}},null),t.value==="loading"&&i.createVNode("div",{class:"f-chat-dynamic-component-loading"},[i.createVNode("span",{class:"f-chat-dynamic-component-loading-spinner"},null),i.createVNode("span",null,[i.createTextVNode("加载中......")])]),t.value==="error"&&i.createVNode("div",{class:"f-chat-dynamic-component-error"},[i.createVNode("span",{class:"f-chat-dynamic-component-error-icon"},[i.createTextVNode("!")]),i.createVNode("span",null,[n.value])])])}}),Xa=(e,t,n)=>{if(e.type===Oe.DynamicComponentComplete){const u=e;if(!u.config)return null;if(u.config.position==="inline")return i.createVNode(wn,{key:`dc-${t}`,config:u.config},null);const o={type:"file",fileContent:{type:"md",name:u.config.title}},r={onPreviewFile:a=>{n.emit("showDynamicComponent",u.config)}};return i.nextTick(()=>n.emit("dynamicComponentsDetected",[u.config])),i.createVNode("div",{style:{padding:"16px 0"}},[n.renderFileEmbeddedContent(o,r)])}return e.type===Oe.DynamicComponentPending?i.createVNode("div",{class:"f-chat-bubble-widget-pending",key:`dc-loading-${t}`},[i.createVNode("span",{class:"f-chat-todo-status-icon f-chat-todo-status-working"},null),i.createVNode("span",{class:"f-chat-bubble-widget-pending-text"},[i.createTextVNode("组件加载中......")])]):null};function Ch(){return{[Oe.Text]:Af,[Oe.AssistantWidgetComplete]:za,[Oe.AssistantWidgetPending]:za,[Oe.DynamicComponentComplete]:Xa,[Oe.DynamicComponentPending]:Xa}}const _h=i.defineComponent({name:"FXBubbleTextContent",props:uc,emits:["dynamicComponentsDetected","showDynamicComponent"],setup(e,t){const{renderFileEmbeddedContent:n}=gi(),{propertyStates:u,registerProperty:o,updatePropertyValue:r,startStreaming:a}=Or();o("title",e.title??""),o("subtitle",e.subtitle??""),o("text",e.text??""),i.watch([()=>e.title,()=>e.subtitle,()=>e.text],([p,w,y])=>{r("title",p??""),r("subtitle",w??""),r("text",y??"")});const s=i.computed(()=>e.textFormat==="markdown"),l=i.ref(!1),d=i.computed(()=>{var p,w,y;return l.value?{title:((p=u.title)==null?void 0:p.displayedValue)??"",subtitle:((w=u.subtitle)==null?void 0:w.displayedValue)??"",text:((y=u.text)==null?void 0:y.displayedValue)??""}:{title:e.title,subtitle:e.subtitle,text:e.text}}),f=i.computed(()=>wc(d.value.text)),c={shouldShowMarkdown:s,emit:t.emit,renderFileEmbeddedContent:n},h=Ch(),m=()=>f.value.length===0?null:i.createVNode("div",{class:"f-chat-bubble-text-collection"},[f.value.map((p,w)=>{var y;return(y=h[p.type])==null?void 0:y.call(h,p,w,c)})]);return i.onMounted(()=>{l.value&&a()}),()=>i.createVNode(i.Fragment,null,[d.value.title&&i.createVNode("div",{class:"f-chat-bubble-content-title"},[d.value.title]),d.value.subtitle&&i.createVNode("div",{class:"f-chat-bubble-content-subtitle"},[d.value.subtitle]),m()])}}),Eh={content:{type:Object},outputMode:{type:String,default:"full"}};function Kt({status:e}){const t=`f-chat-todo-status-icon f-chat-todo-status-${e.toLowerCase()}`;return i.createVNode("span",{class:t,"aria-hidden":!0},null)}const qa=100,Sh=i.defineComponent({name:"FXBubbleThink",props:Eh,setup(e,t){var U;const{propertyStates:n,registerProperty:u,updatePropertyValue:o,isAllDone:r}=Or(),{elapsedSeconds:a,hasEverStarted:s,start:l,stop:d,reset:f}=Hu(),c=i.ref(((U=e.content)==null?void 0:U.completed)!==!0),h=i.ref(null),m=i.ref(null),p=i.ref(!1),w=i.ref(!1),y=i.computed(()=>e.outputMode==="streaming"),A=i.computed(()=>{var _;return(_=e.content)==null?void 0:_.completed}),b=i.computed(()=>{var V,E,M;const _=(V=g.value)==null?void 0:V.trim(),N=_?_.slice(0,8):"",L=_&&_.length>8?"…":"",C=N?`<span class="f-chat-bubble-thinking-preview">${N}${L}</span>`:"";if(A.value){const R=s.value?`(用时${a.value}秒)`:"";return(((E=e.content)==null?void 0:E.title)??"思考完成"+R)+C}return(((M=e.content)==null?void 0:M.title)??"正在思考......")+C}),g=i.computed(()=>{var _,N;return y.value?((_=n.content)==null?void 0:_.displayedValue)??"":((N=e.content)==null?void 0:N.content)??""}),x=i.computed(()=>({"f-chat-bubble-thinking":!0,"is-pending":!A.value,"is-completed":A.value})),k=()=>{const _=h.value;if(!_||!p.value){w.value=!1;return}w.value=_.scrollTop>0};i.watch(()=>A.value,_=>{_?d():l()},{immediate:!0}),i.watch(()=>A.value,_=>{_&&(c.value=!1)}),i.watch(()=>e.content,_=>{_&&(n.content?o("content",_.content??""):u("content",_.content??""))},{immediate:!0}),i.watch(g,async()=>{if(c.value){await i.nextTick();const _=m.value;if(!_)return;await i.nextTick(),p.value=_.scrollHeight>qa;const N=h.value;N&&p.value&&(N.scrollTop=N.scrollHeight,w.value=!0)}},{immediate:!0}),i.watch(c,async _=>{if(_){await i.nextTick();const N=m.value;if(!N)return;await i.nextTick(),p.value=N.scrollHeight>qa;const L=h.value;L&&p.value&&(L.scrollTop=L.scrollHeight,w.value=!0)}}),i.onUnmounted(()=>{f()}),t.expose({instance:{get loadDone(){return e.content?(y.value?r.value:!0)&&A.value:!0}}});const T=()=>{c.value=!c.value},D=()=>A.value?null:i.createVNode(Kt,{status:"Working"},null),F=()=>!g.value||!c.value?null:i.createVNode("div",{class:"f-chat-bubble-thinking-content"},[i.createVNode("div",{class:"f-chat-bubble-thinking-scroll-container",ref:h,onScroll:k},[p.value&&w.value&&i.createVNode("div",{class:"f-chat-bubble-thinking-fade-mask"},null),i.createVNode("div",{class:"f-chat-bubble-thinking-text-wrapper"},[i.createVNode("div",{ref:m,class:"f-chat-bubble-thinking-content-text",innerHTML:g.value},null)])])]);return()=>i.createVNode("div",{class:x.value},[i.createVNode("div",{class:"f-chat-bubble-thinking-header",onClick:T},[D(),i.createVNode("span",{class:"f-chat-bubble-thinking-title",innerHTML:b.value},null),g.value&&i.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:c.value?"rotate(90deg)":"rotate(0deg)",transition:"all 0.3s ease-in-out"}},null)]),F()])}}),Fh={content:{type:Object}},Za={id:{type:String},arrowOffsetX:{type:Number,default:0},class:{type:String,default:""},customStyles:{type:Object,default:null},isSimpleTips:{type:Boolean,default:!1},fitContent:{type:Boolean,default:!1},host:{type:Object},leftBoundary:{type:Object},keepWidthWithReference:{type:Boolean,default:!1},minWidth:{type:Number,default:-1},offsetX:{type:Object,default:i.ref(0)},offsetY:{type:Object,default:i.ref(0)},placement:{type:String,default:"bottom"},reference:{type:Object},rightBoundary:{type:Object},showArrow:{type:Boolean,default:!1},title:{type:String},visible:{type:Boolean,default:!1},zIndex:{type:Number,default:-1},limitContentBySpace:{type:Boolean,default:!1},beforeClose:{type:Function}};function Dh(e){const t=e.host?e.host:"body",n=i.computed(()=>t==="body"?0:t?t.getBoundingClientRect().top:0),u=i.computed(()=>t==="body"?window.innerHeight:t?t.getBoundingClientRect().bottom:window.innerHeight),o=i.computed(()=>t==="body"?0:t?t.getBoundingClientRect().left:0),r=i.computed(()=>t==="body"?document.body.getBoundingClientRect().width:t?t.getBoundingClientRect().width-(e.rightBoundary?e.rightBoundary.getBoundingClientRect().width:0):document.body.getBoundingClientRect().width),a=i.computed(()=>t==="body"?window.innerHeight:t?t.getBoundingClientRect().height:window.innerHeight);return{host:t,hostLeft:o,hostTop:n,hostWidth:r,hostHeight:a,hostBottom:u}}function Th(e,t,n,u){const o=i.ref(e.offsetX||0),r=i.ref(e.offsetY||0),a=i.ref(-1),s=i.ref(-1),l=i.ref(-1),d=i.ref(-1),f=i.ref(e.placement),c=i.ref(0),h=i.ref(0),m=i.ref(0),p=i.computed(()=>document.documentElement.scrollLeft),w=i.computed(()=>document.documentElement.scrollTop),{hostLeft:y,hostTop:A,hostWidth:b,hostHeight:g,hostBottom:x}=u;i.watch(()=>e.offsetX,I=>{o.value=I});const k=i.computed(()=>{const I={left:`${h.value}px`,top:`${m.value}px`,transform:`translate(${o.value}px, ${r.value}px)`};return e.zIndex!==-1&&(I["z-index"]=e.zIndex),e.fitContent?e.keepWidthWithReference&&n.value&&a.value>=n.value.getBoundingClientRect().width&&(I.width=`${a.value}px`):a.value!==-1&&(I.width=`${a.value}px`),e.minWidth!==-1&&(I.minWidth=`${e.minWidth}px`),e.customStyles&&Object.assign(I,e.customStyles),s.value>0&&(I.maxHeight=s.value+"px"),I}),T=i.computed(()=>({left:`${c.value}px`,transform:`translateX(${e.arrowOffsetX}px)`}));function D(I){if(I&&e.keepWidthWithReference){const B=I.getBoundingClientRect();a.value=Math.max(e.minWidth,B.width)}}function F(I,B){const W=b.value-I.width-4;return W>0?W:B}function U(I,B){const W=g.value-I.height-12;return W>0?W:B}function _(I,B,W){const K=c.value,Z=B.left-y.value+B.width/2+p.value,Y=B.top-A.value-(I.height+W.height)+w.value;return{popoverLeft:Z,popoverTop:Y,arrowLeft:K}}function N(I,B,W){const K=B.top-A.value+(B.height+W.height)+w.value,Z=U(I,K);return Math.min(K,Z)}function L(I,B){const W=F(B,I),K=I<=W?c.value:I-W;return{popoverLeft:Math.min(I,W),arrowLeft:K,maxHeight:0}}function C(I,B){const W=F(B,I),K=I<=W?c.value:I-W;return{popoverLeft:I,arrowLeft:K,maxHeight:0}}function P(I,B,W){const K=B.left-y.value+p.value,{arrowLeft:Z,popoverLeft:Y}=C(K,I),{popoverTop:ue}=_(I,B,W);return{popoverLeft:Y,popoverTop:ue,arrowLeft:Z,maxHeight:0}}function V(I,B,W){const K=B.left-y.value+B.width/2-(W.width/2-(I.left-y.value))+p.value,{arrowLeft:Z,popoverLeft:Y}=L(K,I),ue=N(I,B,W);return{popoverLeft:Y,popoverTop:ue,arrowLeft:Z,maxHeight:0}}function E(I,B,W){const K=B.left-y.value+p.value,{arrowLeft:Z,popoverLeft:Y}=L(K,I),ue=N(I,B,W);return{popoverLeft:Y,popoverTop:ue,arrowLeft:Z,maxHeight:0}}function M(I,B,W){const K=B.left-y.value;let Z=0,Y=0,ue=0,le=0,De="bottom-left";window.innerWidth-K>I.width?Z=K+p.value:(Z=B.right-I.width+p.value,ue=I.width-W.width-20);let Te=0;if(e.limitContentBySpace){const Xt={topHeight:B.top-A.value-W.height-8,bottomHeight:x.value-B.bottom-W.height-8};Te=Math.max(Xt.topHeight,Xt.bottomHeight),I.height>Te&&(le=Te,n.value.classList.add("popover-limitmax"))}const yt=le?Math.floor(le):I.height,Me=B.top-A.value+(B.height+W.height);return x.value-Me>yt?Y=Me+w.value:(Y=B.top-yt-W.height+w.value,x.value-Me>B.top?(Y=Me+w.value,yt>B.top&&(Y=x.value-yt)):(Y=Y<0?0:Y,De="top")),n.value.classList.add("popover-"+De,"bs-popover-"+De),{popoverLeft:Z<0?5:Z,popoverTop:Y,arrowLeft:ue,maxHeight:le}}function R(I,B,W){const K=B.left+B.width,Z=Math.max(B.top-(I.height/2-B.height/2),A.value);let Y=A.value+g.value-I.height;Y<0&&(Y=Z);const ue=Math.min(Z,Y);return{popoverLeft:K,popoverTop:ue,arrowLeft:0,maxHeight:0}}function $(I,B,W){const K=B.left+B.width,Z=Math.max(B.top-B.height,A.value);let Y=A.value+g.value-I.height;Y<0&&(Y=Z);const ue=Math.min(Z,Y);return{popoverLeft:K,popoverTop:ue,arrowLeft:0,maxHeight:0}}const re=new Map([["top",_],["top-left",P],["bottom",V],["bottom-left",E],["right",R],["right-top",$],["auto",M]]);function te(I){var Y;e.keepWidthWithReference&&D(I);const B=I.getBoundingClientRect();l.value=B.top,d.value=B.left;const W=t.value?t.value.getBoundingClientRect():{height:4,width:4},K=(Y=n.value)==null?void 0:Y.getBoundingClientRect();a.value=K.width;const Z=re.get(f.value);if(Z){const{arrowLeft:ue,popoverLeft:le,popoverTop:De,maxHeight:Te}=Z(K,B,W);c.value=ue,h.value=le,m.value=De,s.value=Te||-1}}function z(I){if(I){const B=I.getBoundingClientRect();(B.left!==d.value||B.top!==l.value)&&te(I)}}function j(){f.value=e.placement,c.value=0,h.value=0,m.value=0,a.value=-1}return{arrowStyle:T,popoverStyle:k,position:f,popoverWidth:a,fitToReference:D,followToReferencePosition:z,locateToReference:te,resetPosition:j}}function Nh(e,t,n,u,o,r,a){const s=i.ref(e.visible),l=i.computed(()=>s.value),{fitToReference:d,locateToReference:f,resetPosition:c}=a;let h;async function m(){s.value&&(e.beforeClose&&typeof e.beforeClose=="function"&&!await e.beforeClose()||(s.value=!1,document.body.removeEventListener("click",h),document.body.removeEventListener("mousedown",h),document.body.removeEventListener("wheel",h,!0),document.removeEventListener("scroll",h),c(),t.emit("hidden")))}h=w=>{var b;if(!o.value)return;const y=o.value.contains(w.target);if(w.type==="scroll"||w.type==="wheel"&&y){m();return}if(w.target.closest(".time-picker-panel"))return;const A=(b=w.target)==null?void 0:b.closest(".popover");if(A&&u.value&&A===u.value){w.type!=="scroll"&&w.type!=="wheel"&&w.stopPropagation();return}if(!y&&s.value){const g=o.value.closest(".popover");g&&g.removeEventListener("click",h),m()}};async function p(w){if(u.value&&(e.showArrow===!1||e.showArrow&&n.value)&&w){c(),s.value=!0,o.value=w,r.value&&d(w),await i.nextTick(),f(w),document.body.addEventListener("click",h),document.body.addEventListener("mousedown",h),document.body.addEventListener("wheel",h,!0),document.addEventListener("scroll",h),(top==null?void 0:top.document)!==document&&(top==null||top.document.addEventListener("mousedown",h));const y=w.closest(".popover");y&&y.addEventListener("click",h),t.emit("shown")}}return t.expose({hide:m,popoverRef:u,show:p,shown:l,isShow:s}),{showPopover:s,hidePopverOnClickBodyHandler:h}}function Lh(e,t,n,u,o,r){const{popoverWidth:a,fitToReference:s,followToReferencePosition:l}=o;function d(){var f;if(r.value&&((f=r.value.style)==null?void 0:f.display)!=="none"&&n.value){l(n.value);const c=n.value.getBoundingClientRect();u.value&&c.width!==a.value&&s(n.value)}}return{onResize:d}}function Ih(e,t=500){const n=i.ref(e.value);let u;const o=i.watch(e,a=>{clearTimeout(u),u=setTimeout(()=>{n.value=a},t)}),r=()=>{clearTimeout(u),o()};return i.onUnmounted(r),{delayedValue:n,cleanup:r}}const Qt=i.defineComponent({name:"FXPopover",props:Za,emits:["shown","hidden"],setup(e,t){const n=i.ref(),u=i.ref(),o=i.ref(e.reference),r=i.ref(e.keepWidthWithReference),a=i.computed(()=>!!e.title),s=Dh(e),{host:l}=s,d=Th(e,n,u,s),{position:f,arrowStyle:c,popoverStyle:h,fitToReference:m,locateToReference:p}=d,{showPopover:w,hidePopverOnClickBodyHandler:y}=Nh(e,t,n,u,o,r,d),{onResize:A}=Lh(e,t,o,r,d,u),b=i.computed(()=>{let D=f.value;D==="top-left"&&(D="top");const F=`popover in popover-${D}`,U=`bs-popover-${D}`,_={"popover-fitcontent":e.fitContent,fade:!0};_[F]=!0,_[U]=!0;const N=(e.class||"").split(" ");return e.isSimpleTips&&N.unshift("popover-tips"),N.reduce((L,C)=>(L[C]=!0,L),_),_}),g=i.computed(()=>({"popover-content":!0,"popover-body":!0})),x=i.computed(()=>{const D={};return D.opacity=w.value?1:0,D.visibility=w.value?"visible":"hidden",D.zIndex=1060,D}),k=i.computed(()=>e.isSimpleTips?!0:e.showArrow),{delayedValue:T}=Ih(x,50);return i.onMounted(()=>{var D;r.value&&m(o.value),e.reference&&p(o.value),window.addEventListener("resize",A),(D=u.value)==null||D.focus()}),i.onUnmounted(()=>{document.body.removeEventListener("click",y),window.removeEventListener("resize",A),w.value=!1}),()=>i.createVNode(i.Teleport,{to:l},{default:()=>{var D;return[i.withDirectives(i.createVNode("div",{tabindex:"-1",ref:u,class:b.value,style:{...h.value,...T.value},onMousedown:F=>{F.stopPropagation()},onClick:F=>{F.stopPropagation()}},[k.value&&i.createVNode("div",{ref:n,class:"popover-arrow arrow",style:c.value},null),a.value&&i.createVNode("h3",{class:"popover-title popover-header"},[e.title]),i.createVNode("div",{class:g.value},[t.slots.default&&((D=t.slots)==null?void 0:D.default())])]),[[i.vShow,w.value]])]}})}}),iu="FarrisX_PopoverInstancesKey";window[iu]=window[iu]||new WeakMap;function Do(e,t,n){e.stopPropagation();const u=t.value;u&&u.value&&!u.value.isShow&&(u.value.show(n),window[iu].set(n,u.value))}function Ya(e,t,n){e.stopPropagation(),t.value.value.hide(),window[iu].delete(n)}function Oh(e,t,n){e.stopPropagation();const u=t.value;u&&u.value&&(u.value.isShow?Ya(e,t,n):Do(e,t,n))}function Ka(e,t,n){t.arg&&t.arg==="toggle"?Oh(e,t,n):Do(e,t,n)}const Qa={mounted:(e,t,n)=>{t.modifiers.hover?(e.addEventListener("mouseenter",u=>Do(u,t,e)),e.addEventListener("mouseleave",u=>Ya(u,t,e))):t.modifiers.click?e.addEventListener("click",u=>Ka(u,t,e)):e.addEventListener("click",u=>Ka(u,t,e)),e.classList.add("v-popover")},unMounted:(e,t,n)=>{}};Qt.install=e=>{e.component(Qt.name,Qt),e.directive("fxpopover",Qa)};const Ja={type:{type:String,default:"StartedToDo"},status:{type:String,default:"NotStart"},message:{type:String,default:""},taskDetail:{type:String,default:""},todoList:{type:Array,default:[]},detailViewMode:{type:String,default:"hover"},initExpanded:{type:Boolean,default:!1},showLoading:{type:Boolean,default:!0},showLabel:{type:Boolean,default:!0},loading:Object,shimmer:{type:Boolean,default:!0},outputMode:{type:String,default:"streaming"},listStatus:{type:String,default:void 0},completedCount:{type:Number,default:void 0},totalCount:{type:Number,default:void 0}},es={items:{type:Array,default:()=>[]}},ts={id:{type:Number||String,default:0},status:{type:String},task:{type:String,default:""},todoList:{type:Array,default:[]},detailViewMode:{type:String,default:"expand"},initExpanded:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},showLabel:{type:Boolean,default:!1},shimmer:{type:Boolean,default:!0},title:{type:String,default:""},message:{type:String,default:""},outputMode:{type:String,default:"full"}},ns=20;function Ph(e,t=ns){const n=e.trim();return!n||n.length<=t?n:`${n.slice(0,t)}···`}const au=i.defineComponent({name:"FXTodoListItemView",props:ts,emits:["click"],setup(e,{emit:t}){const{propertyStates:n,registerProperty:u,updatePropertyValue:o,startStreaming:r}=Or();u("title",e.title??""),u("task",e.task??""),u("detail",e.message??""),i.watch([()=>e.title,()=>e.task,()=>e.message],([w,y,A])=>{o("title",w??""),o("task",y??""),o("detail",A??"")});const a=i.computed(()=>["f-chat-todo-item",{"is-done":e.status==="Done","is-working":e.status==="Working","is-not-start":e.status==="NotStart","no-shimmer":!e.shimmer}]),s=i.computed(()=>["f-chat-todo-task",{"is-done":e.status==="Done"}]);function l(){t("click",e,e.id)}const d=i.computed(()=>e.outputMode==="streaming"),f=i.computed(()=>{var w;return d.value?((w=n.title)==null?void 0:w.displayedValue)??"":e.title??""}),c=i.computed(()=>{var w;return d.value?((w=n.task)==null?void 0:w.displayedValue)??"":e.task??""}),h=i.computed(()=>{var y;const w=d.value?((y=n.detail)==null?void 0:y.displayedValue)??"":e.message??"";return Ph(w)}),m=i.computed(()=>{var y;return(d.value?((y=n.detail)==null?void 0:y.displayedValue)??"":e.message??"").trim()}),p=i.computed(()=>m.value.length>ns&&h.value.endsWith("···"));return i.onMounted(()=>{d.value&&r()}),()=>i.createVNode("li",{key:e.id,class:a.value,onClick:l},[e.todoList&&e.todoList.length>0&&i.createVNode(Jt,{todoList:e.todoList,status:e.status,message:e.task,taskDetail:e.message,detailViewMode:e.detailViewMode,initExpanded:e.initExpanded,showLoading:e.showLoading,showLabel:e.showLabel,outputMode:e.outputMode},null),!e.todoList||e.todoList.length===0&&i.createVNode(i.Fragment,null,[e.showLoading&&i.createVNode(Kt,{status:e.status??"Done"},null),f.value?i.createVNode("div",{class:"f-chat-todo-task-wrapper"},[i.createVNode("span",{class:s.value},[f.value]),i.createVNode("div",{class:"f-chat-todo-task-description"},[c.value]),h.value?i.createVNode("div",{class:"f-chat-todo-task-description",title:p.value?m.value:void 0},[h.value]):null]):i.createVNode("div",{class:"f-chat-todo-task-wrapper"},[i.createVNode("span",{class:s.value},[c.value]),h.value?i.createVNode("div",{class:"f-chat-todo-task-description",title:p.value?m.value:void 0},[h.value]):null])])])}}),nr=i.defineComponent({name:"FXTodoListView",props:es,setup(e){return()=>{var t;return(t=e.items)!=null&&t.length?i.createVNode("ul",{class:"f-chat-todo-items"},[e.items.map((n,u)=>i.createVNode(au,i.mergeProps({key:u},n),null))]):null}}}),Vh="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e编组%207%3c/title%3e%3cdefs%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-1'%3e%3cstop%20stop-color='%230D7FE6'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%231EBBC6'%20offset='58.0673923%25'%3e%3c/stop%3e%3cstop%20stop-color='%232AE7AF'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cpath%20d='M7.55915932,0%20L13.7556941,3.41136535%20L13.7556941,11.284674%20L13.3483936,11.690778%20L7.386,8.406%20L7.38699821,14.9818613%20L6.43606745,14.9818613%20L0.817648054,11.8789694%20L0,10.332184%20L0,3.84230019%20L1.11160458,3.1505903%20L6.167,6.164%20L6.16702601,0.0484363034%20L7.55915932,0%20Z%20M6.22734637,8.44496623%20L1.7439756,11.0288454%20L6.22734637,13.5008368%20L6.22734637,8.44496623%20Z%20M12.540835,4.77769015%20L8.0314841,7.40118228%20L12.540835,9.89639007%20L12.540835,4.77769015%20Z%20M1.21847977,4.6422718%20L1.21847977,9.89639007%20L5.74466316,7.33704011%20L1.21847977,4.6422718%20Z%20M7.38699821,1.29872452%20L7.38699821,6.38587585%20L11.9618229,3.74647178%20L7.38699821,1.29872452%20Z'%20id='path-2'%3e%3c/path%3e%3clinearGradient%20x1='81.0966666%25'%20y1='38.5584607%25'%20x2='28.8545509%25'%20y2='61.9626707%25'%20id='linearGradient-4'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-5'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='44.8152906%25'%20y1='77.6521765%25'%20x2='44.8152906%25'%20y2='3.26462903%25'%20id='linearGradient-6'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-7'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='3.93796935%25'%20y1='32.607826%25'%20x2='78.9687461%25'%20y2='60.0462823%25'%20id='linearGradient-8'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-9'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='56.0769337%25'%20y1='45.0797149%25'%20x2='24.9463054%25'%20y2='71.1433818%25'%20id='linearGradient-10'%3e%3cstop%20stop-color='%23159BD7'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='10.434388%25'%20y1='68.063656%25'%20x2='86.6988821%25'%20y2='30.8651063%25'%20id='linearGradient-11'%3e%3cstop%20stop-color='%2321C6C1'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-12'%3e%3cstop%20stop-color='%230D7FE6'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%232AE7AF'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20id='页面-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='输入框'%20transform='translate(-383,%20-2915)'%3e%3cg%20id='编组-3'%20transform='translate(353,%202900)'%3e%3cg%20id='编组-12'%20transform='translate(16,%200)'%3e%3cg%20id='编组-7'%20transform='translate(14,%2015)'%3e%3crect%20id='矩形'%20x='0'%20y='0'%20width='18'%20height='18'%3e%3c/rect%3e%3cg%20id='编组-35'%20transform='translate(0.2571,%200.2571)'%3e%3crect%20id='矩形'%20x='0'%20y='0'%20width='17.4857143'%20height='17.4857143'%3e%3c/rect%3e%3cg%20id='编组-19备份-17'%20transform='translate(1.0286,%200.5143)'%3e%3cpath%20d='M8.37444647,0.834547606%20L14.5709813,4.24591296%20L14.5709813,12.1192216%20L14.1636807,12.5253256%20L8.20128715,9.24054761%20L8.20228536,15.8164089%20L7.25135461,15.8164089%20L1.63293521,12.713517%20L0.815287151,11.1667316%20L0.815287151,4.67684779%20L1.92689173,3.98513791%20L6.98228715,6.99854761%20L6.98231316,0.882983909%20L8.37444647,0.834547606%20Z%20M7.04263352,9.27951383%20L2.55926275,11.8633931%20L7.04263352,14.3353844%20L7.04263352,9.27951383%20Z%20M13.3561221,5.61223775%20L8.84677126,8.23572989%20L13.3561221,10.7309377%20L13.3561221,5.61223775%20Z%20M2.03376692,5.47681941%20L2.03376692,10.7309377%20L6.55995031,8.17158771%20L2.03376692,5.47681941%20Z%20M8.20228536,2.13327213%20L8.20228536,7.22042346%20L12.77711,4.58101939%20L8.20228536,2.13327213%20Z'%20id='形状结合'%20fill='url(%23linearGradient-1)'%3e%3c/path%3e%3cg%20id='路径-2-+-路径-3-+-路径-4蒙版'%20transform='translate(0.8153,%200.8345)'%3e%3cmask%20id='mask-3'%20fill='white'%3e%3cuse%20xlink:href='%23path-2'%3e%3c/use%3e%3c/mask%3e%3cuse%20id='蒙版'%20fill='url(%23linearGradient-1)'%20xlink:href='%23path-2'%3e%3c/use%3e%3cpolygon%20id='路径-2'%20fill='url(%23linearGradient-4)'%20filter='url(%23filter-5)'%20mask='url(%23mask-3)'%20points='4.25315881%206.97898081%206.77390576%206.97898081%207.02656062%208.27871177%202.85827337%2011.0934106%201.11764364%208.72438079'%3e%3c/polygon%3e%3cpolygon%20id='路径-3'%20fill='url(%23linearGradient-6)'%20filter='url(%23filter-7)'%20mask='url(%23mask-3)'%20points='7.02656062%206.72375166%208.13485635%204.53274022%208.34127598%201.90699543%205.4451985%201.76583085%205.65253089%205.06118714%206.77390576%206.72375166'%3e%3c/polygon%3e%3cpolygon%20id='路径-4'%20fill='url(%23linearGradient-8)'%20filter='url(%23filter-9)'%20mask='url(%23mask-3)'%20points='10.0650382%207.40118228%207.32091739%207.49951705%207.32091739%208.25868082%208.54200343%2010.0061721%2010.9306691%2010.9000701%2012.5091187%208.51626021'%3e%3c/polygon%3e%3c/g%3e%3cpath%20d='M8.37444647,0.834547606%20L14.5709813,4.24591296%20L14.5709813,12.1192216%20L14.1636807,12.5253256%20L6.98231316,8.56885311%20L6.98231316,0.882983909%20L8.37444647,0.834547606%20Z%20M8.20228536,2.13327213%20L8.20228536,7.22042346%20L8.49131316,7.05254761%20L8.49185956,7.71336245%20L9.03131316,8.12754761%20L8.84677126,8.23572989%20L13.3561221,10.7309377%20L13.3553132,5.61654761%20L13.6305018,5.15381301%20L12.77711,4.58101939%20L8.20228536,2.13327213%20Z'%20id='形状结合'%20fill='url(%23linearGradient-10)'%20fill-rule='nonzero'%3e%3c/path%3e%3cpolygon%20id='路径'%20fill='url(%23linearGradient-11)'%20fill-rule='nonzero'%20points='6.7778308%208.05322127%207.08945008%209.24101764%202.55926275%2011.8633931%202.19155022%2010.6380421'%3e%3c/polygon%3e%3cg%20id='编组-21'%20fill='url(%23linearGradient-12)'%3e%3cpath%20d='M7.62936495,9.94195975%20C8.65711289,9.94195975%209.49026721,9.10880543%209.49026721,8.08105749%20C9.49026721,7.05330955%208.65711289,6.22015523%207.62936495,6.22015523%20C6.60161701,6.22015523%205.7684627,7.05330955%205.7684627,8.08105749%20C5.7684627,9.10880543%206.60161701,9.94195975%207.62936495,9.94195975%20Z%20M13.9785177,6.03107309%20C14.7793603,6.03107309%2015.4285714,5.38186193%2015.4285714,4.58101939%20C15.4285714,3.78017684%2014.7793603,3.13096568%2013.9785177,3.13096568%20C13.1776752,3.13096568%2012.528464,3.78017684%2012.528464,4.58101939%20C12.528464,5.38186193%2013.1776752,6.03107309%2013.9785177,6.03107309%20Z%20M7.62936495,16.4714598%20C8.4302075,16.4714598%209.07941866,15.8222486%209.07941866,15.0214061%20C9.07941866,14.2205635%208.4302075,13.5713524%207.62936495,13.5713524%20C6.8285224,13.5713524%206.17931125,14.2205635%206.17931125,15.0214061%20C6.17931125,15.8222486%206.8285224,16.4714598%207.62936495,16.4714598%20Z%20M1.45005371,13.0387617%20C2.25089625,13.0387617%202.90010741,12.3895505%202.90010741,11.588708%20C2.90010741,10.7878654%202.25089625,10.1386543%201.45005371,10.1386543%20C0.649211158,10.1386543%200,10.7878654%200,11.588708%20C0,12.3895505%200.649211158,13.0387617%201.45005371,13.0387617%20Z%20M7.62936495,2.51342642%20C8.32342849,2.51342642%208.88607816,1.95077675%208.88607816,1.25671321%20C8.88607816,0.56264967%208.32342849,0%207.62936495,0%20C6.93530141,0%206.37265174,0.56264967%206.37265174,1.25671321%20C6.37265174,1.95077675%206.93530141,2.51342642%207.62936495,2.51342642%20Z%20M13.9785177,12.9913309%20C14.6725813,12.9913309%2015.2352309,12.4286812%2015.2352309,11.7346177%20C15.2352309,11.0405541%2014.6725813,10.4779045%2013.9785177,10.4779045%20C13.2844542,10.4779045%2012.7218045,11.0405541%2012.7218045,11.7346177%20C12.7218045,12.4286812%2013.2844542,12.9913309%2013.9785177,12.9913309%20Z%20M1.45005371,5.50262617%20C2.14411725,5.50262617%202.70676692,4.9399765%202.70676692,4.24591296%20C2.70676692,3.55184942%202.14411725,2.98919975%201.45005371,2.98919975%20C0.755990164,2.98919975%200.193340494,3.55184942%200.193340494,4.24591296%20C0.193340494,4.9399765%200.755990164,5.50262617%201.45005371,5.50262617%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Rh=300,Mh={Working:"正在执行任务",Done:"已完成任务",NotStart:"待执行任务"},Jt=i.defineComponent({name:"FXStartedTodo",props:Ja,setup(e){const t=i.ref(null),n=i.ref(null),u=i.ref(null),o=i.ref(null),r=i.computed(()=>e.outputMode==="streaming"),{displayContent:a}=pi(()=>({detail:e.taskDetail??""}),()=>!0,r,{charInterval:30}),s=i.ref(e.initExpanded),l=i.computed(()=>({"f-chat-message-started-todo--content":!0,"d-none":!s.value}));function d(){e.detailViewMode!=="expand"&&(o.value!=null&&(window.clearTimeout(o.value),o.value=null),u.value=window.setTimeout(()=>{t.value&&n.value&&n.value.show(t.value),u.value=null},Rh))}function f(){e.detailViewMode!=="expand"&&(u.value!=null&&(window.clearTimeout(u.value),u.value=null),o.value=window.setTimeout(()=>{var g,x;(x=(g=n.value)==null?void 0:g.hide)==null||x.call(g),o.value=null},150))}function c(){if(e.detailViewMode==="none")return null;const g=a.value.detail??"";return i.createVNode(i.Fragment,null,[g?i.createVNode("div",{class:"f-chat-started-todo-task-detail"},[g]):null,i.createVNode(nr,{items:e.todoList},null)])}function h(){e.detailViewMode==="expand"&&(s.value=!s.value)}function m(){return e.detailViewMode==="expand"?i.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:s.value?"rotate(90deg)":"rotate(0deg)",transition:"all 0.3s ease-in-out"}},null):null}function p(){return e.detailViewMode==="hover"&&i.createVNode(Qt,{ref:n,class:"f-chat-started-todo-popover"},{default:()=>[i.createVNode("div",{class:"f-chat-started-todo-popover-content",onMouseenter:()=>{o.value!=null&&(window.clearTimeout(o.value),o.value=null)},onMouseleave:f},[c()])]})}const w=i.computed(()=>e.listStatus==="completed"),y=i.computed(()=>{const g=e.todoList??[],x=e.totalCount??g.length;return{done:e.completedCount??g.filter(T=>(T==null?void 0:T.status)==="Done").length,total:x}});function A(){return e.showLoading?e.loading?e.loading:w.value?i.createVNode(Kt,{status:"Done"},null):e.status==="Done"?i.createVNode("img",{src:Vh},null):i.createVNode(Kt,{status:e.status},null):null}function b(){if(!w.value)return null;const{done:g,total:x}=y.value,k=x>0?`已完成 (${g}/${x})`:"已完成";return i.createVNode("span",{class:"f-chat-started-todo-completed-chip","aria-label":k},[k])}return()=>i.createVNode("div",{ref:t,class:["f-chat-message-started-todo",{"is-working":e.status==="Working","is-completed":w.value}],onMouseenter:d,onMouseleave:f},[i.createVNode("div",{class:"f-chat-message-started-todo--header",onClick:h},[e.showLabel&&i.createVNode("span",{class:"f-chat-started-todo-label"},[Mh[e.status]]),A(),i.createVNode("span",{class:"f-chat-started-todo-message",innerHTML:e.message},null),b(),m()]),e.detailViewMode==="expand"&&i.createVNode("div",{class:l.value},[c()]),p()])}});Jt.install=e=>{e.component(Jt.name,Jt)};const Bh=i.defineComponent({name:"FXBubbleThoughtChain",props:Fh,setup(e,t){const{elapsedSeconds:n,hasEverStarted:u,start:o,stop:r,reset:a}=Hu(),s=i.computed(()=>{var c;return((c=e.content)==null?void 0:c.status)==="Done"}),l=i.computed(()=>{var c;return((c=e.content)==null?void 0:c.message)??"正在思考......"}),d=i.computed(()=>{var m,p;const c=((m=e.content)==null?void 0:m.doneMessage)??((p=e.content)==null?void 0:p.message)??"思考完成",h=u.value?`(用时${n.value}秒)`:"";return""+c+h}),f=i.computed(()=>s.value?d.value:l.value);return i.watch(()=>{var c;return(c=e.content)==null?void 0:c.status},c=>{c==="Working"?o():c==="Done"?r():a()},{immediate:!0}),i.onUnmounted(()=>{a()}),t.expose({instance:{get loadDone(){return e.content?s.value:!0}}}),()=>{var c,h,m,p,w,y;return e.content?i.createVNode(Jt,{status:((c=e.content)==null?void 0:c.status)??"Working",message:f.value,todoList:(h=e.content)==null?void 0:h.todoList,detailViewMode:((m=e.content)==null?void 0:m.detailViewMode)??"expand",showLabel:!1,showLoading:!0,initExpanded:!0,listStatus:(p=e.content)==null?void 0:p.listStatus,completedCount:(w=e.content)==null?void 0:w.completedCount,totalCount:(y=e.content)==null?void 0:y.totalCount},null):null}}}),rr=i.defineComponent({name:"UserAuthMessage",props:{content:{type:Object,required:!0},onConfirm:{type:Function,default:void 0}},setup(e){return()=>i.createVNode("div",{class:"f-ec-auth"},[i.createVNode("div",{class:"f-ec-auth-desc"},[e.content.description]),i.createVNode("div",{class:"f-ec-auth-actions"},[e.content.options.map(t=>i.createVNode("button",{key:t.optionId,type:"button",class:"f-ec-auth-btn",onClick:()=>{var n;(n=e.onConfirm)==null||n.call(e,t.optionId,t.name,t.message??t.name),console.info("[UserAuth]",t.optionId,t.name)}},[t.name]))])])}}),zh=300,jh={read_file:"tool_file",write_file:"tool_file",edit_file:"tool_file",glob:"tool_file",grep:"tool_file",bash:"tool_command",web_fetch:"tool_internet",web_search:"tool_internet",todo_create:"tool_task",todo_list:"tool_task",todo_get:"tool_task",todo_update:"tool_task",ask_user:"tool_interaction",core_memory:"tool_memory",add_daily_note:"tool_memory",lint_json:"dateselect",lint_markdown:"dateselect",output_validation:"dateselect",load_skill_through_path:"tool_mcp"};function Hh(e){return e?e.startsWith("mcp:")?"tool_mcp":jh[e]??"thinking_tool":"thinking_tool"}const vn=i.defineComponent({name:"FXToolUseMessage",props:{content:{type:Object,required:!0}},setup(e){const t=i.computed(()=>e.content.toolResultApplied===!0||String(e.content.result??"").trim().length>0),n=i.computed(()=>e.content.success===!1),u=i.ref(!1);let o=setTimeout(()=>{u.value=!0},zh);i.onBeforeUnmount(()=>{o&&clearTimeout(o)});const r=i.computed(()=>t.value),a=i.computed(()=>u.value&&!t.value),s=i.computed(()=>n.value?"执行失败":r.value?"执行完成":"调用中"),l=i.ref(!1),d=i.computed(()=>({"f-chat-tool-use":!0,"is-done":r.value,"is-error":n.value})),f=i.computed(()=>({"f-chat-tool-use-status":!0,"is-done":r.value&&!n.value,"is-run":a.value&&!n.value,"is-error":n.value}));i.watch(()=>[e.content.result,e.content.toolResultApplied,e.content.success],()=>{t.value&&(l.value=!1)},{flush:"post"});const c=()=>t.value?i.createVNode("div",{class:"f-chat-tool-use-result"},[e.content.result??""]):null;return()=>i.createVNode("div",{class:d.value},[i.createVNode("div",{class:"f-chat-tool-use-header",onClick:()=>{l.value=!l.value}},[i.createVNode("i",{class:"fx-icon fx-icon-"+Hh(e.content.toolName)+" tool-icon"},null),i.createVNode("span",{class:"f-chat-tool-use-name"},[e.content.toolDescription??"tool"]),i.createVNode("div",{class:f.value},[n.value?i.createVNode("i",{class:"fx-icon fx-icon-fail_line f-chat-tool-use-status-icon","aria-hidden":"true"},null):i.createVNode(Kt,{status:r.value?"Done":a.value?"Working":"NotStart"},null),i.createVNode("span",{class:"f-chat-tool-use-status-text"},[s.value])]),i.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:l.value?"rotate(90deg)":"rotate(0deg)",transition:"transform 0.2s ease"}},null)]),l.value&&i.createVNode("div",{class:"f-chat-tool-use-content"},[c()])])}});vn.install=e=>{e.component(vn.name,vn)};const ur=i.defineComponent({name:"FXBubble",components:{"fx-user-auth-inline":rr,"fx-app-preview-inline":at,FXToolUse:vn},props:Nr,setup(e,t){const n=i.shallowRef(),u=i.ref(),o=i.ref(),r=i.computed(()=>!!e.showAvatar),a=i.computed(()=>r.value===!0||e.header==="ContentHeader"),s=i.computed(()=>t.slots.leftFooter||t.slots.rightFooter),l=i.computed(()=>{var C;return Ae({},(C=e.styles)==null?void 0:C.footer)}),d=C=>{if(e.attachmentRowClickOpensPreview!==!1&&e.onPreview){if(C.type==="md"&&C.content){e.onPreview({content:C.content,contentType:"markdown"});return}if(C!=null&&C.url){const P=C!=null&&C.fullScreenPreview?"fullScreen":"splitScreen";e.onPreview({url:C.url,previewMode:P,title:C.name})}}},f=C=>{if(e.attachmentRowClickOpensPreview===!1||!e.onPreview)return;const P=C==null?void 0:C.filter(E=>E.type==="md"&&E.content);if(P.length===0)return;const V=Object.fromEntries(P.map(E=>[E.name,E.content??""]));e.onPreview({contentMap:V,contentType:"markdown"})},{renderFileEmbeddedContent:c,renderPageEmbeddedContent:h}=gi(),m=i.ref(""),p=i.computed(()=>{var P,V;if((P=e.content)!=null&&P.footerContent)return e.content.footerContent;const C=(V=e.content)==null?void 0:V.structuredContent;return C&&(C.footerTemplate||C.footerUrl||C.footerFile)?{type:C.footerUrl?"page":C.footerFile?"file":"template",pageUrl:C.footerUrl,fileContent:C.footerFile,template:C.footerTemplate,width:C.footerWidth,height:C.footerHeight}:null});i.watch(()=>{var C;return(C=p.value)==null?void 0:C.width},C=>{if(!C){m.value="";return}if(C.endsWith("%")){const P=parseFloat(C);isNaN(P)||i.nextTick(()=>{var E,M;const V=(M=(E=n.value)==null?void 0:E.parentElement)==null?void 0:M.clientWidth;V&&(m.value=`${V*P/100}px`)})}else m.value=C},{immediate:!0});const w=C=>{if(!C||C.length===0)return"我";const P=C.charAt(0);return/[\u4e00-\u9fa5]/.test(P)?P:P.toUpperCase()};function y(){return e.header==="ContentHeader"?Yl:Kl}const A=y(),{renderHeader:b}=A(e,t),g=()=>{var V,E,M;const C=((V=e.content)==null?void 0:V.sender)??"发送人",P=w(((E=e.content)==null?void 0:E.sender)??"");return i.createVNode("div",{class:"f-chat-bubble-avatar"},[(M=e.content)!=null&&M.avatar?i.createVNode("img",{src:e.content.avatar,alt:C},null):i.createVNode("div",{class:"f-chat-bubble-avatar-initial"},[P])])},x=()=>{var P;const C=(P=e.content)==null?void 0:P.toolUseAboveText;return C!=null&&C.length?i.createVNode("div",{class:"f-chat-bubble-tool-use-group"},[C.map((V,E)=>i.createVNode(vn,{key:V.toolUseId??`tu-${E}`,content:V},null))]):null},k=()=>{var C;return(C=e.content)!=null&&C.thinkingContent?i.createVNode(Sh,{ref:u,content:e.content.thinkingContent,outputMode:e.outputMode},null):null},T=()=>{var C;return(C=e.content)!=null&&C.startedTodo?i.createVNode(Bh,{ref:o,content:e.content.startedTodo},null):null},D=C=>{if(!(C!=null&&C.type))return null;const{type:P}=C;return P==="page"&&C.pageUrl?h(C,{onNavigate:V=>{var E;(E=e.onPreview)==null||E.call(e,{url:V})}}):P==="file"&&C.fileContent?c(C,{onPreviewFile:d,onBatchPreviewFile:f}):P==="template"&&C.template?C.template():null},F=()=>{var E,M,R;if(!((R=(M=(E=e.content)==null?void 0:E.structuredContent)==null?void 0:M.sections)!=null&&R.length))return null;const{sections:C,showDivider:P}=e.content.structuredContent,V=$=>{const{content:re,label:te}=$;return te||re&&typeof re=="string"?i.createVNode(i.Fragment,null,[i.createVNode("span",{class:"f-chat-bubble-structured-section-item-dot"},null),$.label&&i.createVNode("span",{class:"f-chat-bubble-structured-section-item-label"},[$.label]),i.createVNode("span",{class:"f-chat-bubble-structured-section-item-content"},[$.content])]):D($.content)};return i.createVNode("div",{class:["f-chat-bubble-structured",{"structure-content-divider":P}]},[C.map(($,re)=>i.createVNode("div",{key:re,class:["f-chat-bubble-structured-section",{"section-divider":$.showDivider}]},[i.createVNode("div",{class:"f-chat-bubble-structured-section-header"},[$.icon&&($.icon.startsWith("http")||$.icon.startsWith("//")||$.icon.startsWith("../")||/\.(png|jpg|jpeg|gif|svg|webp|bmp)$/i.test($.icon)?i.createVNode("img",{alt:$.title,src:$.icon,class:"f-chat-bubble-structured-section-icon"},null):i.createVNode("i",{class:`fx-icon ${$.icon}`,style:$.iconStyle},null)),i.createVNode("span",{class:"f-chat-bubble-structured-section-title"},[$.title])]),$.items&&$.items.length>0&&i.createVNode("div",{class:"f-chat-bubble-structured-section-items"},[$.items.map((te,z)=>i.createVNode("div",{key:z,class:"f-chat-bubble-structured-section-item"},[V(te)]))])]))])},U=()=>{const C=p.value;if(!C)return null;const P={};return m.value&&(P.width=m.value),C.height&&(P.height=`${C.height}px`),i.createVNode("div",{class:"f-chat-bubble-content-footer",style:P},[D(C)])},_=()=>{const C=e.attachmentRowClickOpensPreview!==!1?d:void 0;return i.createVNode(mi,{attachments:e.attachments??[],enableFixedWidth:e.placement==="end",showDownloadButton:e.attachmentShowDownload!==!1,onPreview:C,onBatchPreview:e.attachmentRowClickOpensPreview!==!1?f:void 0,role:e.role},null)},N=()=>{var P;const C=(P=e.content)==null?void 0:P.compositeInlineBlocks;return C!=null&&C.length?C.map((V,E)=>V.kind==="userAuth"?i.createVNode(i.resolveComponent("fx-user-auth-inline"),{key:`inline-auth-${E}`,content:V.content,onConfirm:e.onUserAuthConfirm},null):i.createVNode(i.resolveComponent("fx-app-preview-inline"),{key:`inline-preview-${E}`,content:V.content,onOpen:e.onPreview},null)):null},L=()=>{var C,P,V,E,M,R;return i.createVNode("div",{class:`f-chat-bubble-content ${e.placement}`},[a.value&&b(),_(),i.createVNode("div",{class:`f-chat-bubble-content-text-wrapper ${e.placement}`},[(C=e.content)!=null&&C.compositeOrderedBeforeMarkdownRender?e.content.compositeOrderedBeforeMarkdownRender():i.createVNode(i.Fragment,null,[k(),x()]),T(),F(),i.createVNode(_h,{title:((P=e.content)==null?void 0:P.title)??"",subtitle:((V=e.content)==null?void 0:V.subtitle)??"",text:typeof((E=e.content)==null?void 0:E.text)=="string"?e.content.text:"",textFormat:((M=e.content)==null?void 0:M.textFormat)??"plain",placement:e.placement,onDynamicComponentsDetected:e==null?void 0:e.onDynamicComponentsDetected,onShowDynamicComponent:e==null?void 0:e.onShowDynamicComponent},null),U(),(R=e.compositeTailRender)==null?void 0:R.call(e),N()]),s.value&&i.createVNode("div",{class:"f-chat-bubble-footer",style:l.value},[t.slots.leftFooter&&i.createVNode("div",{class:"f-chat-bubble-footer-left"},[t.slots.leftFooter()]),t.slots.rightFooter&&i.createVNode("div",{class:"f-chat-bubble-footer-right"},[t.slots.rightFooter()])])])};return()=>i.createVNode("div",{class:"f-chat-bubble-container",ref:n},[i.createVNode("div",{class:`f-chat-bubble-wrapper ${e.placement}`},[e.placement==="start"?i.createVNode(i.Fragment,null,[r.value&&g(),L()]):i.createVNode(i.Fragment,null,[L(),r.value&&g()])])])}}),rs={customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""}},To=i.defineComponent({name:"FXBubbleAction",props:rs,setup(e,t){const n=i.computed(()=>Ae({},e.customStyle));return()=>t.slots.default&&i.createVNode("span",{class:"f-chat-bubble-footer-action",style:n.value},[t.slots.default()])}});ur.install=e=>{e.component(ur.name,ur),e.component(To.name,To)};const us={items:{type:Array,default:()=>[]},modelValue:{type:Number,default:0},direction:{type:String,default:"horizontal"},autoplay:{type:Boolean,default:!1},interval:{type:Number,default:3e3},loop:{type:Boolean,default:!0},trigger:{type:String,default:"click"},indicatorPosition:{type:String,default:"inside"},arrowVisibility:{type:String,default:"hover"},showIndicator:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showInfo:{type:Boolean,default:!0},height:{type:[String,Number],default:"400px"},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})},customClass:{type:[String,Array,Object],default:""},customStyle:{type:[Object,String],default:""},buttonPosition:{type:String,default:"inner"}},os={item:{type:Object,default:()=>({})},index:{type:Number,default:0},active:{type:Boolean,default:!1},showInfo:{type:Boolean,default:!0},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},su=i.defineComponent({name:"FXCarouselItem",props:os,emits:["click"],setup(e,{slots:t,emit:n}){const u=i.computed(()=>{var c;const f={"fx-carousel--item":!0,"fx-carousel--item-active":e.active};return ye(f,(c=e.classNames)==null?void 0:c.item)}),o=i.computed(()=>{var c,h;const f=Ae({},(c=e.styles)==null?void 0:c.item);return Ae(f,(h=e.styles)==null?void 0:h.item)}),r=()=>{var f,c,h;return e.item.image?i.createVNode("img",{class:["fx-carousel--item-image",(f=e.classNames)==null?void 0:f.image],style:(c=e.styles)==null?void 0:c.image,src:e.item.image,alt:(h=e.item.title)==null?void 0:h.toString()},null):null},a=()=>{var f,c,h,m;return e.item.content?i.createVNode("div",{class:["fx-carousel--item-content",(f=e.classNames)==null?void 0:f.content],style:(c=e.styles)==null?void 0:c.content},[e.item.content]):t.default?i.createVNode("div",{class:["fx-carousel--item-content",(h=e.classNames)==null?void 0:h.content],style:(m=e.styles)==null?void 0:m.content},[t.default()]):null},s=()=>{var f,c;return e.item.title?i.createVNode("h3",{class:["fx-carousel--item-title",(f=e.classNames)==null?void 0:f.title],style:(c=e.styles)==null?void 0:c.title},[e.item.title]):null},l=()=>{var f,c;return e.item.description?i.createVNode("p",{class:["fx-carousel--item-description",(f=e.classNames)==null?void 0:f.description],style:(c=e.styles)==null?void 0:c.description},[e.item.description]):null},d=f=>{e.item.disabled||n("click",f,e.item,e.index)};return()=>i.createVNode("div",{class:u.value,style:o.value,onClick:d},[r(),a(),e.showInfo&&i.createVNode("div",{class:"fx-carousel--item-info"},[s(),l()])])}});function $h(e){const{items:t,autoplay:n=!1,interval:u=3e3,loop:o=!0,direction:r="horizontal"}=e,a=i.ref(0),s=i.ref(!1),l=i.ref(null),d=i.computed(()=>t.length),f=i.computed(()=>d.value<=1);i.computed(()=>a.value===0?o?d.value-1:0:a.value-1),i.computed(()=>a.value===d.value-1?o?0:a.value:a.value+1);const c=i.computed(()=>{const g=-a.value*100;return{transform:r==="horizontal"?`translateX(${g}%)`:`translateY(${g}%)`,transition:"transform 0.5s ease"}}),h=g=>{g<0||g>=d.value||(a.value,a.value=g)},m=()=>{f.value||(a.value===d.value-1?h(o?0:a.value):h(a.value+1))},p=()=>{f.value||(a.value===0?h(o?d.value-1:0):h(a.value-1))},w=()=>{!n||f.value||(y(),l.value=window.setInterval(()=>{s.value||m()},u))},y=()=>{l.value&&(clearInterval(l.value),l.value=null)},A=()=>{s.value=!0,n&&y()},b=()=>{s.value=!1,n&&w()};return i.onMounted(()=>{w()}),i.onUnmounted(()=>{y()}),{currentIndex:a,totalItems:d,isSingleItem:f,trackStyle:c,goTo:h,next:m,prev:p,handleMouseEnter:A,handleMouseLeave:b}}const or=i.defineComponent({name:"FXCarousel",props:us,emits:["update:modelValue","change","item-click"],setup(e,{slots:t,emit:n}){const{currentIndex:u,isSingleItem:o,trackStyle:r,goTo:a,next:s,prev:l,handleMouseEnter:d,handleMouseLeave:f}=$h({items:e.items,autoplay:e.autoplay,interval:e.interval,loop:e.loop,direction:e.direction}),c=k=>{n("update:modelValue",k),n("change",k,u.value)},h=i.computed(()=>{var T;const k={"fx-carousel":!0,"fx-carousel--vertical":e.direction==="vertical","fx-carousel--single":o.value,"fx-carousel--button-outer":e.buttonPosition==="outer","fx-carousel--button-inner":e.buttonPosition==="inner"};return ye(k,(T=e.classNames)==null?void 0:T.root)}),m=i.computed(()=>{var D;const k={height:typeof e.height=="number"?`${e.height}px`:e.height},T=Ae(k,e.customStyle);return Ae(T,(D=e.styles)==null?void 0:D.root)}),p=i.computed(()=>{var T;const k={"fx-carousel--container":!0,"fx-carousel--container-hover":e.arrowVisibility==="hover"};return ye(k,(T=e.classNames)==null?void 0:T.container)}),w=i.computed(()=>{var T;return ye({"fx-carousel--track":!0},(T=e.classNames)==null?void 0:T.track)}),y=i.computed(()=>{var T;const k={"fx-carousel--indicator":!0,"fx-carousel--indicator-outside":e.indicatorPosition==="outside","fx-carousel--indicator-none":e.indicatorPosition==="none"||!e.showIndicator};return ye(k,(T=e.classNames)==null?void 0:T.indicator)}),A=k=>{var D,F;const T={"fx-carousel--arrow":!0,"fx-carousel--arrow-left":k==="left","fx-carousel--arrow-right":k==="right","fx-carousel--arrow-never":e.arrowVisibility==="never"||!e.showArrow};return T[`fx-carousel--arrow-${e.buttonPosition}`]=!0,ye(T,k==="left"?(D=e.classNames)==null?void 0:D.arrowLeft:(F=e.classNames)==null?void 0:F.arrowRight)},b=k=>{var F,U;if(o.value)return null;const T=k==="left"?l:s,D=t[k==="left"?"prevArrow":"nextArrow"];return i.createVNode("button",{class:A(k),style:k==="left"?(F=e.styles)==null?void 0:F.arrowLeft:(U=e.styles)==null?void 0:U.arrowRight,onClick:T,"aria-label":`${k} arrow`},[D?D():i.createVNode("i",{style:"font-size: 60px;",class:`fx-icon fx-icon-arrow-${k==="left"?"left":"right"}`},null)])},g=()=>{var k;return o.value||!e.showIndicator?null:i.createVNode("div",{class:y.value,style:(k=e.styles)==null?void 0:k.indicator},[e.items.map((T,D)=>{var F,U;return i.createVNode("button",{"aria-label":`indicator ${D}`,key:D,class:["fx-carousel--indicator-item",{"fx-carousel--indicator-item-active":D===u.value}],style:D===u.value?(F=e.styles)==null?void 0:F.indicatorItemActive:(U=e.styles)==null?void 0:U.indicatorItem,onClick:()=>{a(D),c(D)}},null)})])},x=()=>i.createVNode("div",{class:w.value,style:r.value},[e.items.map((k,T)=>i.createVNode(su,{key:k.id||`item_${T}`,item:k,showInfo:e.showInfo,index:T,active:T===u.value,styles:e.styles,classNames:e.classNames,onClick:(D,F,U)=>{n("item-click",D,F,U)}},{default:()=>{var D,F;return[(D=t.item)==null?void 0:D.call(t,{item:k,index:T,active:T===u.value}),(F=t[`item${T}`])==null?void 0:F.call(t,{item:k,index:T,active:T===u.value})]}}))]);return()=>{var k;return i.createVNode("div",{class:h.value,style:m.value,onMouseenter:d,onMouseleave:f},[e.buttonPosition==="outer"&&b("left"),i.createVNode("div",{class:p.value,style:(k=e.styles)==null?void 0:k.container},[e.buttonPosition==="inner"&&b("left"),x(),e.buttonPosition==="inner"&&b("right")]),e.buttonPosition==="outer"&&b("right"),g()])}}});or.install=e=>{e.component(or.name,or),e.component(su.name,su)};const is={customStyle:{type:String,default:""},customClass:{type:String,default:""},direction:{Type:String,default:"row"}};function Uh(e){const t=i.ref(-1),n=i.ref(-1),u=i.ref(0),o=i.ref(0),r=i.ref(!1),a=i.ref(!1),s=i.computed(()=>({display:r.value?"block":"none",left:`${u.value}px`,cursor:"e-resize"})),l=i.computed(()=>({display:a.value?"block":"none",top:`${o.value}px`,cursor:"n-resize"})),d=i.computed(()=>{const y={display:a.value||r.value?"block":"none"};return o.value>0&&(y.cursor="n-resize"),y});function f(y,A,b,g){const x=e.value;if(x){const{left:k,right:T,width:D}=x.getBoundingClientRect();let F=y.clientX-k;g==="right"&&(F=T-y.clientX),F>A&&(F=A),F<b&&(F=b),g==="right"&&(F=D-F),u.value=F}}function c(y,A,b,g){const x=e.value;if(x){const{top:k,bottom:T,height:D}=x.getBoundingClientRect();let F=y.clientY-k;g==="bottom"&&(F=T-y.clientY),F>A&&(F=A),F<b&&(F=b),g==="bottom"&&(F=D-F),o.value=F}}function h(){const y=e.value;if(y){const{width:A,height:b}=y.getBoundingClientRect();return{width:A,height:b}}return null}function m(){const y=e.value;return y?Array.from(y.querySelectorAll("[data-position]")).reduce((A,b)=>{const g=b.getAttribute("data-position");return A=Object.assign(A,{[g]:b}),A},{}):null}function p(y,A){const b=h(),g=m();if(b&&g){const x=g==null?void 0:g.right,k=g==null?void 0:g.left;if(y==="left"&&k)return x?b.width-x.clientWidth-A:b.width-A;if(y==="right"&&x)return k?b.width-k.clientWidth-A:b.width-A}}function w(y,A){const b=h(),g=m();if(b&&g){const x=g==null?void 0:g.bottom,k=g==null?void 0:g.top;if(y==="top"&&k)return x?b.height-x.clientHeight-A:b.height-A;if(y==="bottom"&&x)return k?b.height-k.clientHeight-A:b.height-A}}return{horizontalResizeHandleStyle:s,verticalResizeHandleStyle:l,resizeOverlayStyle:d,showHorizontalResizeHandle:r,showVerticalResizeHandle:a,horizontalResizeBarPosition:t,verticalResizeBarPosition:n,verticalResizeHandleOffset:o,horizontalResizeHandleOffset:u,draggingHorizontalResizeHandle:f,draggingVerticalResizeHandle:c,getPanelMaxWidth:p,getPanelMaxHeight:w}}const An=i.defineComponent({name:"FXSplitter",props:is,emits:[],setup(e,t){const n=i.ref(),u=Uh(n),{horizontalResizeHandleStyle:o,verticalResizeHandleStyle:r,resizeOverlayStyle:a}=u;i.provide("splitter",{useResizeHandleComposition:u});const s=i.computed(()=>ye({"f-splitter":!0},e==null?void 0:e.customClass)),l=i.computed(()=>{const d={"flex-direction":e.direction==="row"?"row":"column"};return Ae(d,e==null?void 0:e.customStyle)});return()=>i.createVNode("div",{class:s.value,ref:n,style:l.value},[t.slots.default&&t.slots.default(),i.createVNode("div",{class:"f-splitter-resize-overlay",style:a.value},null),i.createVNode("div",{class:"f-splitter-horizontal-resize-proxy",style:o.value},null),i.createVNode("div",{class:"f-splitter-vertical-resize-proxy",style:r.value},null)])}}),Wh={customClass:{type:String,defaut:""},customStyle:{type:String,default:""},width:{type:Number},height:{type:Number},position:{type:String,default:"left"},visible:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},resizeHandle:{type:String,default:""},collapsable:{type:Boolean,default:!1},minWidth:{type:Number,default:100},minHeight:{type:Number,default:100},maxWidth:{type:Number,default:0},maxHeight:{type:Number,default:0}};function Gh(e,t){const n=i.ref(e.width),u=i.ref(e.height),{horizontalResizeBarPosition:o,horizontalResizeHandleOffset:r,showHorizontalResizeHandle:a,showVerticalResizeHandle:s,verticalResizeBarPosition:l,verticalResizeHandleOffset:d,draggingHorizontalResizeHandle:f,draggingVerticalResizeHandle:c,getPanelMaxWidth:h,getPanelMaxHeight:m}=t;let p="",w,y,A;const b=()=>e.maxWidth?e.maxWidth:h(p,e.minWidth)||0,g=()=>e.maxHeight?e.maxHeight:m(p,e.minHeight)||0;function x(D){if((p==="left"||p==="right")&&y){const{left:F}=y.getBoundingClientRect(),{width:U}=w.getBoundingClientRect(),_=D.clientX-F;let N=p==="left"?(U||0)+(_-o.value):(U||0)-(_-o.value);N=e.minWidth>0?Math.max(e.minWidth,N):N;const L=b();L!=null&&L>0&&(N=L>N?N:L),n.value=N}if((p==="top"||p==="bottom")&&y){const{top:F}=y.getBoundingClientRect(),{height:U}=w.getBoundingClientRect(),_=D.clientY-F;let N=p==="top"?(U||0)+(_-l.value):(U||0)-(_-l.value);N=e.minHeight>0?Math.max(e.minHeight,N):N;const L=g();L!=null&&L>0&&(N=L>N?N:L),u.value=N}r.value=0,d.value=0,o.value=-1,l.value=-1,a.value=!1,s.value=!1,document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",x),document.body.style.userSelect="",p="",w=null,y=null}function k(D,F,U){if(p=F,w=U,a.value=!0,y=D.composedPath().find(N=>N.className.split(" ")[0]==="f-splitter"),y){const{left:N}=y.getBoundingClientRect();r.value=D.clientX-N,o.value=D.clientX-N;const L=b();A=C=>f(C,L,e.minWidth,p),document.addEventListener("mousemove",A),document.addEventListener("mouseup",x),document.body.style.userSelect="none"}}function T(D,F,U){if(p=F,w=U,s.value=!0,y=D.composedPath().find(N=>N.className.split(" ")[0]==="f-splitter"),y){const{top:N}=y.getBoundingClientRect();d.value=D.clientY-N,l.value=D.clientY-N;const L=g();A=C=>c(C,L,e.minHeight,p),document.addEventListener("mousemove",A),document.addEventListener("mouseup",x),document.body.style.userSelect="none"}}return{actualWidth:n,actualHeight:u,onClickSplitterHorizontalResizeBar:k,onClickSplitterVerticalResizeBar:T}}const ir=i.defineComponent({name:"FSplitterPane",props:Wh,emits:[],setup(e,t){const n=i.ref(),u=i.inject("splitter"),{useResizeHandleComposition:o}=u,r=Gh(e,o),{actualHeight:a,actualWidth:s,onClickSplitterHorizontalResizeBar:l,onClickSplitterVerticalResizeBar:d}=r,f=i.ref(e.position),c=i.computed(()=>{const g={"f-splitter-pane":!0,"f-splitter-pane-main":f.value==="center","has-resize-bar":e.resizable};return g["f-splitter-pane-"+f.value]=!0,ye(g,e==null?void 0:e.customClass)}),h=i.computed(()=>e.resizeHandle?e.resizeHandle.split(",").filter(g=>["e","n","s","w"].find(x=>x===g)):[]),m=i.computed(()=>{const g={};return(s.value||s.value===0)&&(f.value==="left"||f.value==="right"||h.value.find(x=>x==="e")||h.value.find(x=>x==="w"))&&(g.width=`${s.value}px`),(a.value||a.value===0)&&(f.value==="bottom"||f.value==="top"||h.value.find(x=>x==="s")||h.value.find(x=>x==="n"))&&(g.height=`${a.value}px`),e.visible||(g.display="none"),Ae(g,e==null?void 0:e.customStyle)}),p=i.computed(()=>({"f-splitter-resize-bar":!0,"f-splitter-resize-bar-e":f.value==="left","f-splitter-resize-bar-n":f.value==="bottom","f-splitter-resize-bar-s":f.value==="top","f-splitter-resize-bar-w":f.value==="right"}));function w(g){return{e:"left",w:"right",s:"top",n:"bottom"}[g]||g}function y(g,x){x=w(x),["left","right"].find(k=>k===x)&&l(g,x,n.value),["top","bottom"].find(k=>k===x)&&d(g,x,n.value)}function A(){return h.value.length>0?h.value.map(g=>i.createVNode("span",{class:"f-splitter-resize-bar f-splitter-resize-bar-"+g,onMousedown:x=>y(x,g)},null)):i.createVNode("span",{class:p.value,onMousedown:g=>y(g,f.value)},null)}function b(){s.value=e.width,a.value=e.height,m.value}return t.expose({reset:b}),()=>i.createVNode("div",{ref:n,class:c.value,style:m.value,"data-position":f.value},[t.slots.default&&t.slots.default(),e.resizable&&A()])}});An.install=e=>{e.component(An.name,An),e.component(ir.name,ir)};const as={previewConfig:{type:Object,default:()=>({})},onClose:{type:Function,default:()=>{}},onIframeLoad:{type:Function,default:()=>{}}},ss={content:{type:String,default:null}},Xh=e=>{const t=typeof e;return t!=="function"&&t!=="object"||e===null},qh=e=>{const t=e.flags===""?void 0:e.flags;return new RegExp(e.source,t)},ar=(e,t=new WeakMap)=>{if(e===null||Xh(e))return e;if(t.has(e))return t.get(e);if(e instanceof RegExp)return qh(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof Function)return e;if(e instanceof Map){const u=new Map;return t.set(e,u),e.forEach((o,r)=>{u.set(r,ar(o,t))}),u}if(e instanceof Set){const u=new Set;t.set(e,u);for(const o of e)u.add(ar(o,t));return u}if(Array.isArray(e)){const u=[];return t.set(e,u),e.forEach(o=>{u.push(ar(o,t))}),u}const n={};t.set(e,n);for(const u in e)Object.prototype.hasOwnProperty.call(e,u)&&(n[u]=ar(e[u],t));return n},Zh=(e,t=200)=>{let n=0;return(...u)=>new Promise(o=>{n&&(clearTimeout(n),o("cancel")),n=window.setTimeout(()=>{e.apply(void 0,u),n=0,o("done")},t)})},No=()=>`${Date.now().toString(36)}${Math.random().toString(36).substring(2)}`,lu=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Yh=new Set(["__proto__","constructor","prototype"]),Kh=e=>!Yh.has(e),Lo=(e,t,n={})=>{if(Array.isArray(e)&&Array.isArray(t))return Io(e,t,n);const{excludeKeys:u}=n,o=e,r=t;for(const a of Object.keys(r)){if(!Kh(a))continue;const s=r[a],l=o[a];u&&u(a)?o[a]=s:Array.isArray(s)&&Array.isArray(l)?o[a]=Io(l,s,n):lu(s)&&lu(l)?o[a]=Lo(l,s,n):o[a]=s}return e},Io=(e,t,n)=>{const u=e.slice();return t.forEach((o,r)=>{const a=u[r];Array.isArray(o)&&Array.isArray(a)?u[r]=Io(a,o,n):lu(o)&&lu(a)?u[r]=Lo(a,o,n):u[r]=o}),u},X="md-editor",de="https://unpkg.com",Qh=`${de}/@highlightjs/cdn-assets@11.11.1/highlight.min.js`,ls={main:`${de}/prettier@3.8.1/standalone.js`,markdown:`${de}/prettier@3.8.1/plugins/markdown.js`},Jh={css:`${de}/cropperjs@1.6.2/dist/cropper.min.css`,js:`${de}/cropperjs@1.6.2/dist/cropper.min.js`},e1=`${de}/screenfull@5.2.0/dist/screenfull.js`,t1=`${de}/mermaid@11.12.3/dist/mermaid.min.js`,n1={js:`${de}/katex@0.16.33/dist/katex.min.js`,css:`${de}/katex@0.16.33/dist/katex.min.css`},Oo={a11y:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/a11y-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/a11y-dark.min.css`},atom:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-dark.min.css`},github:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/github.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/github-dark.min.css`},gradient:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/gradient-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/gradient-dark.min.css`},kimbie:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-dark.min.css`},paraiso:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-dark.min.css`},qtcreator:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-dark.min.css`}},r1=`${de}/echarts@6.0.0/dist/echarts.min.js`,cs={"zh-CN":{toolbarTips:{bold:"加粗",underline:"下划线",italic:"斜体",strikeThrough:"删除线",title:"标题",sub:"下标",sup:"上标",quote:"引用",unorderedList:"无序列表",orderedList:"有序列表",task:"任务列表",codeRow:"行内代码",code:"块级代码",link:"链接",image:"图片",table:"表格",mermaid:"mermaid图",katex:"katex公式",revoke:"后退",next:"前进",save:"保存",prettier:"美化",pageFullscreen:"浏览器全屏",fullscreen:"屏幕全屏",preview:"预览",previewOnly:"仅预览",htmlPreview:"html代码预览",catalog:"目录",github:"源码地址"},titleItem:{h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",h6:"六级标题"},imgTitleItem:{link:"添加链接",upload:"上传图片",clip2upload:"裁剪上传"},linkModalTips:{linkTitle:"添加链接",imageTitle:"添加图片",descLabel:"链接描述:",descLabelPlaceHolder:"请输入描述...",urlLabel:"链接地址:",urlLabelPlaceHolder:"请输入链接...",buttonOK:"确定"},clipModalTips:{title:"裁剪图片上传",buttonUpload:"上传"},copyCode:{text:"复制代码",successTips:"已复制!",failTips:"复制失败!"},mermaid:{flow:"流程图",sequence:"时序图",gantt:"甘特图",class:"类图",state:"状态图",pie:"饼图",relationship:"关系图",journey:"旅程图"},katex:{inline:"行内公式",block:"块级公式"},footer:{markdownTotal:"字数",scrollAuto:"同步滚动"}},"en-US":{toolbarTips:{bold:"bold",underline:"underline",italic:"italic",strikeThrough:"strikeThrough",title:"title",sub:"subscript",sup:"superscript",quote:"quote",unorderedList:"unordered list",orderedList:"ordered list",task:"task list",codeRow:"inline code",code:"block-level code",link:"link",image:"image",table:"table",mermaid:"mermaid",katex:"formula",revoke:"revoke",next:"undo revoke",save:"save",prettier:"prettier",pageFullscreen:"fullscreen in page",fullscreen:"fullscreen",preview:"preview",previewOnly:"preview only",htmlPreview:"html preview",catalog:"catalog",github:"source code"},titleItem:{h1:"Lv1 Heading",h2:"Lv2 Heading",h3:"Lv3 Heading",h4:"Lv4 Heading",h5:"Lv5 Heading",h6:"Lv6 Heading"},imgTitleItem:{link:"Add Image Link",upload:"Upload Images",clip2upload:"Crop And Upload"},linkModalTips:{linkTitle:"Add Link",imageTitle:"Add Image",descLabel:"Desc:",descLabelPlaceHolder:"Enter a description...",urlLabel:"Link:",urlLabelPlaceHolder:"Enter a link...",buttonOK:"OK"},clipModalTips:{title:"Crop Image",buttonUpload:"Upload"},copyCode:{text:"Copy",successTips:"Copied!",failTips:"Copy failed!"},mermaid:{flow:"flow",sequence:"sequence",gantt:"gantt",class:"class",state:"state",pie:"pie",relationship:"relationship",journey:"journey"},katex:{inline:"inline",block:"block"},footer:{markdownTotal:"Character Count",scrollAuto:"Scroll Auto"}}},lt={editorExtensions:{highlight:{js:Qh,css:Oo},prettier:{standaloneJs:ls.main,parserMarkdownJs:ls.markdown},cropper:{...Jh},screenfull:{js:e1},mermaid:{js:t1,enableZoom:!0},katex:{...n1},echarts:{js:r1}},editorExtensionsAttrs:{},editorConfig:{languageUserDefined:{},mermaidTemplate:{},renderDelay:500,zIndex:2e4},codeMirrorExtensions:e=>e,markdownItConfig:()=>{},markdownItPlugins:e=>e,mermaidConfig:e=>e,katexConfig:e=>e,echartsConfig:e=>e},u1=({instance:e,ctx:t,props:n={}},u="default")=>{const o=(e==null?void 0:e.$slots[u])||(t==null?void 0:t.slots[u]);return(o?o(e):"")||n[u]},o1="buildFinished",Po="errorCatcher",Vo="catalogChanged",i1="pushCatalog",ds="rerender",a1="taskStateChanged";class s1{constructor(){fe(this,"pools",{})}remove(t,n,u){const o=this.pools[t]&&this.pools[t][n];o&&(this.pools[t][n]=o.filter(r=>r!==u))}clear(t){this.pools[t]={}}on(t,n){return this.pools[t]||(this.pools[t]={}),this.pools[t][n.name]||(this.pools[t][n.name]=[]),this.pools[t][n.name].push(n.callback),this.pools[t][n.name].includes(n.callback)}emit(t,n,...u){this.pools[t]||(this.pools[t]={});const o=this.pools[t][n];o&&o.forEach(r=>{try{r(...u)}catch(a){console.error(`${n} monitor event exception!`,a)}})}}const ot=new s1,l1=(e,t)=>{if(!e)return e;const n=t.split(`
33
- `),u=['<span rn-wrapper aria-hidden="true">'];return n.forEach(()=>{u.push("<span></span>")}),u.push("</span>"),`<span class="${X}-code-block">${e}</span>${u.join("")}`};async function fs(e){if(typeof e=="string"){if(window.isSecureContext&&navigator.clipboard)return await navigator.clipboard.writeText(e);{const t=document.createElement("textarea");let n=!1;if(t.value=e,t.style.position="fixed",t.style.opacity=0,t.style.zIndex="-10000",t.style.top="-10000",document.body.appendChild(t),t.select(),n=document.execCommand("copy"),document.body.removeChild(t),n)return;throw new Error('Failed to copy content via "execCommand"!')}}}const c1={copy:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-copy ${X}-icon"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>`,"collapse-tips":`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-chevron-left ${X}-icon"><circle cx="12" cy="12" r="10"/><path d="m14 16-4-4 4-4"/></svg>`,pin:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-pin ${X}-icon"><path d="M12 17v5"/><path d="M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"/></svg>`,"pin-off":`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-pin-off ${X}-icon"><path d="M12 17v5"/><path d="M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89"/><path d="m2 2 20 20"/><path d="M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11"/></svg>`,check:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check ${X}-icon"><path d="M20 6 9 17l-5-5"/></svg>`},St=(e,t)=>typeof t[e]=="string"?t[e]:c1[e],Ht=(e,t,n="")=>{var o;const u=document.getElementById(t.id);if(u)n!==""&&(Reflect.get(window,n)?(o=t.onload)==null||o.call(u,new Event("load")):t.onload&&u.addEventListener("load",t.onload));else{const r={...t};r.onload=null;const a=f1(e,r);t.onload&&a.addEventListener("load",t.onload),document.head.appendChild(a)}},d1=(e,t)=>{var n;(n=document.getElementById(t.id))==null||n.remove(),Ht(e,t)},f1=(e,t)=>{const n=document.createElement(e);return Object.keys(t).forEach(u=>{t[u]!==void 0&&(n[u]=t[u])}),n},h1=(e,t)=>{const n=new Map;return e==null||e.forEach(u=>{let o=u.querySelector(`.${X}-mermaid-action`);o?o.querySelector(`.${X}-mermaid-copy`)||o.insertAdjacentHTML("beforeend",`<span class="${X}-mermaid-copy">${St("copy",t.customIcon)}</span>`):(u.insertAdjacentHTML("beforeend",`<div class="${X}-mermaid-action"><span class="${X}-mermaid-copy">${St("copy",t.customIcon)}</span></div>`),o=u.querySelector(`.${X}-mermaid-action`));const r=o.querySelector(`.${X}-mermaid-copy`);let a=-1;const s=()=>{clearTimeout(a),fs(u.dataset.content||"").then(()=>{r.innerHTML=St("check",t.customIcon)}).catch(()=>{r.innerHTML=St("copy",t.customIcon)}).finally(()=>{a=window.setTimeout(()=>{r.innerHTML=St("copy",t.customIcon)},1500)})};r.addEventListener("click",s),n.set(u,{removeClick:()=>{r.removeEventListener("click",s)}})}),()=>{n.forEach(({removeClick:u})=>{u==null||u()}),n.clear()}},p1=(()=>{const e=t=>{if(!t)return()=>{};const n=t.firstChild;let u=1,o=0,r=0,a=!1,s,l,d,f=1;const c=()=>{n.style.transform=`translate(${o}px, ${r}px) scale(${u})`},h=x=>{x.touches.length===1?(a=!0,s=x.touches[0].clientX-o,l=x.touches[0].clientY-r):x.touches.length===2&&(d=Math.hypot(x.touches[0].clientX-x.touches[1].clientX,x.touches[0].clientY-x.touches[1].clientY),f=u)},m=x=>{if(x.preventDefault(),a&&x.touches.length===1)o=x.touches[0].clientX-s,r=x.touches[0].clientY-l,c();else if(x.touches.length===2){const k=Math.hypot(x.touches[0].clientX-x.touches[1].clientX,x.touches[0].clientY-x.touches[1].clientY)/d,T=u;u=f*(1+(k-1));const D=(x.touches[0].clientX+x.touches[1].clientX)/2,F=(x.touches[0].clientY+x.touches[1].clientY)/2,U=n.getBoundingClientRect(),_=(D-U.left)/T,N=(F-U.top)/T;o-=_*(u-T),r-=N*(u-T),c()}},p=()=>{a=!1},w=x=>{x.preventDefault();const k=.02,T=u;x.deltaY<0?u+=k:u=Math.max(.1,u-k);const D=n.getBoundingClientRect(),F=x.clientX-D.left,U=x.clientY-D.top;o-=F/T*(u-T),r-=U/T*(u-T),c()},y=x=>{a=!0,s=x.clientX-o,l=x.clientY-r},A=x=>{a&&(o=x.clientX-s,r=x.clientY-l,c())},b=()=>{a=!1},g=()=>{a=!1};return t.addEventListener("touchstart",h,{passive:!1}),t.addEventListener("touchmove",m,{passive:!1}),t.addEventListener("touchend",p),t.addEventListener("wheel",w,{passive:!1}),t.addEventListener("mousedown",y),t.addEventListener("mousemove",A),t.addEventListener("mouseup",b),t.addEventListener("mouseleave",g),()=>{t.removeEventListener("touchstart",h),t.removeEventListener("touchmove",m),t.removeEventListener("touchend",p),t.removeEventListener("wheel",w),t.removeEventListener("mousedown",y),t.removeEventListener("mousemove",A),t.removeEventListener("mouseup",b),t.removeEventListener("mouseleave",g)}};return(t,n)=>{const u=new Map;return t==null||t.forEach(o=>{let r=o.querySelector(`.${X}-mermaid-action`);r?r.querySelector(`.${X}-mermaid-zoom`)||r.insertAdjacentHTML("beforeend",`<span class="${X}-mermaid-zoom">${St("pin-off",n.customIcon)}</span>`):(o.insertAdjacentHTML("beforeend",`<div class="${X}-mermaid-action"><span class="${X}-mermaid-zoom">${St("pin-off",n.customIcon)}</span></div>`),r=o.querySelector(`.${X}-mermaid-action`));const a=r.querySelector(`.${X}-mermaid-zoom`),s=()=>{const l=u.get(o);if(l!=null&&l.removeEvent)l.removeEvent(),o.removeAttribute("data-grab"),u.set(o,{removeClick:l.removeClick}),a.innerHTML=St("pin-off",n.customIcon);else{const d=e(o);o.setAttribute("data-grab",""),u.set(o,{removeEvent:d,removeClick:l==null?void 0:l.removeClick}),a.innerHTML=St("pin",n.customIcon)}};a.addEventListener("click",s),u.set(o,{removeClick:()=>a.removeEventListener("click",s)})}),()=>{u.forEach(({removeEvent:o,removeClick:r})=>{o==null||o(),r==null||r()}),u.clear()}}})(),hs=new Set([!0,!1,"alt","title"]);function ps(e,t){return(Array.isArray(e)?e:[]).filter(([n])=>n!==t)}function ms(e,t){e&&e.attrs&&(e.attrs=ps(e.attrs,t))}function m1(e,t){if(!hs.has(e))throw new TypeError(`figcaption must be one of: ${[...hs]}.`);if(e==="alt")return t.content;const n=t.attrs.find(([u])=>u==="title");return Array.isArray(n)&&n[1]?(ms(t,"title"),n[1]):void 0}function g1(e,t){t=t||{},e.core.ruler.before("linkify","image_figures",function(n){let u=1;for(let o=1,r=n.tokens.length;o<r-1;++o){const a=n.tokens[o];if(a.type!=="inline"||!a.children||a.children.length!==1&&a.children.length!==3||a.children.length===1&&a.children[0].type!=="image")continue;if(a.children.length===3){const[d,f,c]=a.children;if(d.type!=="link_open"||f.type!=="image"||c.type!=="link_close")continue}if(o!==0&&n.tokens[o-1].type!=="paragraph_open"||o!==r-1&&n.tokens[o+1].type!=="paragraph_close")continue;const s=n.tokens[o-1];let l;if(s.type="figure_open",s.tag="figure",n.tokens[o+1].type="figure_close",n.tokens[o+1].tag="figure",t.dataType&&n.tokens[o-1].attrPush(["data-type","image"]),t.link&&a.children.length===1){[l]=a.children;const d=new n.Token("link_open","a",1);d.attrPush(["href",l.attrGet("src")]),a.children.unshift(d),a.children.push(new n.Token("link_close","a",-1))}if(l=a.children.length===1?a.children[0]:a.children[1],t.figcaption){const d=m1(t.figcaption,l);if(d){const[f]=e.parseInline(d,n.env);a.children.push(new n.Token("figcaption_open","figcaption",1)),a.children.push(...f.children),a.children.push(new n.Token("figcaption_close","figcaption",-1)),l.attrs&&(l.attrs=ps(l.attrs,"title"))}}if(t.copyAttrs&&l.attrs){const d=t.copyAttrs===!0?"":t.copyAttrs;s.attrs=l.attrs.filter(([f])=>f.match(d)).map(f=>Array.from(f))}if(t.tabindex&&(n.tokens[o-1].attrPush(["tabindex",u]),u++),t.lazy&&(l.attrs.some(([d])=>d==="loading")||l.attrs.push(["loading","lazy"])),t.async&&(l.attrs.some(([d])=>d==="decoding")||l.attrs.push(["decoding","async"])),t.classes&&typeof t.classes=="string"){let d=!1;for(let f=0,c=l.attrs.length;f<c&&!d;f++){const h=l.attrs[f];h[0]==="class"&&(h[1]=`${h[1]} ${t.classes}`,d=!0)}d||l.attrs.push(["class",t.classes])}if(t.removeSrc){const d=l.attrs.find(([f])=>f==="src");l.attrs.push(["data-src",d[1]]),ms(l,"src")}}})}const b1=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function y1(e,t){const n=e.posMax,u=e.pos;if(e.src.charCodeAt(u)!==126||t||u+2>=n)return!1;e.pos=u+1;let o=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===126){o=!0;break}e.md.inline.skipToken(e)}if(!o||u+1===e.pos)return e.pos=u,!1;const r=e.src.slice(u+1,e.pos);if(r.match(/(^|[^\\])(\\\\)*\s/))return e.pos=u,!1;e.posMax=e.pos,e.pos=u+1;const a=e.push("sub_open","sub",1);a.markup="~";const s=e.push("text","",0);s.content=r.replace(b1,"$1");const l=e.push("sub_close","sub",-1);return l.markup="~",e.pos=e.posMax+1,e.posMax=n,!0}function x1(e){e.inline.ruler.after("emphasis","sub",y1)}const w1=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function v1(e,t){const n=e.posMax,u=e.pos;if(e.src.charCodeAt(u)!==94||t||u+2>=n)return!1;e.pos=u+1;let o=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===94){o=!0;break}e.md.inline.skipToken(e)}if(!o||u+1===e.pos)return e.pos=u,!1;const r=e.src.slice(u+1,e.pos);if(r.match(/(^|[^\\])(\\\\)*\s/))return e.pos=u,!1;e.posMax=e.pos,e.pos=u+1;const a=e.push("sup_open","sup",1);a.markup="^";const s=e.push("text","",0);s.content=r.replace(w1,"$1");const l=e.push("sup_close","sup",-1);return l.markup="^",e.pos=e.posMax+1,e.posMax=n,!0}function A1(e){e.inline.ruler.after("emphasis","sup",v1)}var k1=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,gs=new Set,Ro=typeof process=="object"&&process?process:{},bs=(e,t,n,u)=>{typeof Ro.emitWarning=="function"?Ro.emitWarning(e,t,n,u):console.error(`[${n}] ${t}: ${e}`)},cu=globalThis.AbortController,ys=globalThis.AbortSignal;if(typeof cu>"u"){ys=class{constructor(){fe(this,"onabort");fe(this,"_onabort",[]);fe(this,"reason");fe(this,"aborted",!1)}addEventListener(n,u){this._onabort.push(u)}},cu=class{constructor(){fe(this,"signal",new ys);t()}abort(n){var u,o;if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let r of this.signal._onabort)r(n);(o=(u=this.signal).onabort)==null||o.call(u,n)}}};let e=((Cl=Ro.env)==null?void 0:Cl.LRU_CACHE_IGNORE_AC_WARNING)!=="1",t=()=>{e&&(e=!1,bs("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var C1=e=>!gs.has(e),$t=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),xs=e=>$t(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?du:null:null,du=class extends Array{constructor(t){super(t),this.fill(0)}},_1=(Ft=class{constructor(t,n){fe(this,"heap");fe(this,"length");if(!v(Ft,Sn))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0}static create(t){let n=xs(t);if(!n)return[];ee(Ft,Sn,!0);let u=new Ft(t,n);return ee(Ft,Sn,!1),u}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},Sn=new WeakMap,ie(Ft,Sn,!1),Ft),E1=(Ln=class{constructor(t){ie(this,G);ie(this,it);ie(this,Je);ie(this,ct);ie(this,un);ie(this,dt);ie(this,Fn);ie(this,Dn);ie(this,ft);fe(this,"ttl");fe(this,"ttlResolution");fe(this,"ttlAutopurge");fe(this,"updateAgeOnGet");fe(this,"updateAgeOnHas");fe(this,"allowStale");fe(this,"noDisposeOnSet");fe(this,"noUpdateTTL");fe(this,"maxEntrySize");fe(this,"sizeCalculation");fe(this,"noDeleteOnFetchRejection");fe(this,"noDeleteOnStaleGet");fe(this,"allowStaleOnFetchAbort");fe(this,"allowStaleOnFetchRejection");fe(this,"ignoreFetchAbort");ie(this,ke);ie(this,ht);ie(this,we);ie(this,he);ie(this,ne);ie(this,$e);ie(this,et);ie(this,Re);ie(this,Se);ie(this,pt);ie(this,Fe);ie(this,mt);ie(this,gt);ie(this,tt);ie(this,nt);ie(this,bt);ie(this,Gt);ie(this,Ue);ie(this,Tn);ie(this,on,()=>{});ie(this,Lt,()=>{});ie(this,Er,()=>{});ie(this,rt,()=>!1);ie(this,an,t=>{});ie(this,Nn,(t,n,u)=>{});ie(this,Sr,(t,n,u,o)=>{if(u||o)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});fe(this,_l,"LRUCache");let{max:n=0,ttl:u,ttlResolution:o=1,ttlAutopurge:r,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:l,dispose:d,onInsert:f,disposeAfter:c,noDisposeOnSet:h,noUpdateTTL:m,maxSize:p=0,maxEntrySize:w=0,sizeCalculation:y,fetchMethod:A,memoMethod:b,noDeleteOnFetchRejection:g,noDeleteOnStaleGet:x,allowStaleOnFetchRejection:k,allowStaleOnFetchAbort:T,ignoreFetchAbort:D,perf:F}=t;if(F!==void 0&&typeof(F==null?void 0:F.now)!="function")throw new TypeError("perf option must have a now() method if specified");if(ee(this,ft,F??k1),n!==0&&!$t(n))throw new TypeError("max option must be a nonnegative integer");let U=n?xs(n):Array;if(!U)throw new Error("invalid max value: "+n);if(ee(this,it,n),ee(this,Je,p),this.maxEntrySize=w||v(this,Je),this.sizeCalculation=y,this.sizeCalculation){if(!v(this,Je)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(b!==void 0&&typeof b!="function")throw new TypeError("memoMethod must be a function if defined");if(ee(this,Dn,b),A!==void 0&&typeof A!="function")throw new TypeError("fetchMethod must be a function if specified");if(ee(this,Fn,A),ee(this,Gt,!!A),ee(this,we,new Map),ee(this,he,new Array(n).fill(void 0)),ee(this,ne,new Array(n).fill(void 0)),ee(this,$e,new U(n)),ee(this,et,new U(n)),ee(this,Re,0),ee(this,Se,0),ee(this,pt,_1.create(n)),ee(this,ke,0),ee(this,ht,0),typeof d=="function"&&ee(this,ct,d),typeof f=="function"&&ee(this,un,f),typeof c=="function"?(ee(this,dt,c),ee(this,Fe,[])):(ee(this,dt,void 0),ee(this,Fe,void 0)),ee(this,bt,!!v(this,ct)),ee(this,Tn,!!v(this,un)),ee(this,Ue,!!v(this,dt)),this.noDisposeOnSet=!!h,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!g,this.allowStaleOnFetchRejection=!!k,this.allowStaleOnFetchAbort=!!T,this.ignoreFetchAbort=!!D,this.maxEntrySize!==0){if(v(this,Je)!==0&&!$t(v(this,Je)))throw new TypeError("maxSize must be a positive integer if specified");if(!$t(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");q(this,G,Wl).call(this)}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!x,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=$t(o)||o===0?o:1,this.ttlAutopurge=!!r,this.ttl=u||0,this.ttl){if(!$t(this.ttl))throw new TypeError("ttl must be a positive integer if specified");q(this,G,si).call(this)}if(v(this,it)===0&&this.ttl===0&&v(this,Je)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!v(this,it)&&!v(this,Je)){let _="LRU_CACHE_UNBOUNDED";C1(_)&&(gs.add(_),bs("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",_,Ln))}}get perf(){return v(this,ft)}static unsafeExposeInternals(t){return{starts:v(t,gt),ttls:v(t,tt),autopurgeTimers:v(t,nt),sizes:v(t,mt),keyMap:v(t,we),keyList:v(t,he),valList:v(t,ne),next:v(t,$e),prev:v(t,et),get head(){return v(t,Re)},get tail(){return v(t,Se)},free:v(t,pt),isBackgroundFetch:n=>{var u;return q(u=t,G,pe).call(u,n)},backgroundFetch:(n,u,o,r)=>{var a;return q(a=t,G,Bu).call(a,n,u,o,r)},moveToTail:n=>{var u;return q(u=t,G,Tr).call(u,n)},indexes:n=>{var u;return q(u=t,G,qt).call(u,n)},rindexes:n=>{var u;return q(u=t,G,Zt).call(u,n)},isStale:n=>{var u;return v(u=t,rt).call(u,n)}}}get max(){return v(this,it)}get maxSize(){return v(this,Je)}get calculatedSize(){return v(this,ht)}get size(){return v(this,ke)}get fetchMethod(){return v(this,Fn)}get memoMethod(){return v(this,Dn)}get dispose(){return v(this,ct)}get onInsert(){return v(this,un)}get disposeAfter(){return v(this,dt)}getRemainingTTL(t){return v(this,we).has(t)?1/0:0}*entries(){for(let t of q(this,G,qt).call(this))v(this,ne)[t]!==void 0&&v(this,he)[t]!==void 0&&!q(this,G,pe).call(this,v(this,ne)[t])&&(yield[v(this,he)[t],v(this,ne)[t]])}*rentries(){for(let t of q(this,G,Zt).call(this))v(this,ne)[t]!==void 0&&v(this,he)[t]!==void 0&&!q(this,G,pe).call(this,v(this,ne)[t])&&(yield[v(this,he)[t],v(this,ne)[t]])}*keys(){for(let t of q(this,G,qt).call(this)){let n=v(this,he)[t];n!==void 0&&!q(this,G,pe).call(this,v(this,ne)[t])&&(yield n)}}*rkeys(){for(let t of q(this,G,Zt).call(this)){let n=v(this,he)[t];n!==void 0&&!q(this,G,pe).call(this,v(this,ne)[t])&&(yield n)}}*values(){for(let t of q(this,G,qt).call(this))v(this,ne)[t]!==void 0&&!q(this,G,pe).call(this,v(this,ne)[t])&&(yield v(this,ne)[t])}*rvalues(){for(let t of q(this,G,Zt).call(this))v(this,ne)[t]!==void 0&&!q(this,G,pe).call(this,v(this,ne)[t])&&(yield v(this,ne)[t])}[(El=Symbol.iterator,_l=Symbol.toStringTag,El)](){return this.entries()}find(t,n={}){for(let u of q(this,G,qt).call(this)){let o=v(this,ne)[u],r=q(this,G,pe).call(this,o)?o.__staleWhileFetching:o;if(r!==void 0&&t(r,v(this,he)[u],this))return this.get(v(this,he)[u],n)}}forEach(t,n=this){for(let u of q(this,G,qt).call(this)){let o=v(this,ne)[u],r=q(this,G,pe).call(this,o)?o.__staleWhileFetching:o;r!==void 0&&t.call(n,r,v(this,he)[u],this)}}rforEach(t,n=this){for(let u of q(this,G,Zt).call(this)){let o=v(this,ne)[u],r=q(this,G,pe).call(this,o)?o.__staleWhileFetching:o;r!==void 0&&t.call(n,r,v(this,he)[u],this)}}purgeStale(){let t=!1;for(let n of q(this,G,Zt).call(this,{allowStale:!0}))v(this,rt).call(this,n)&&(q(this,G,Yt).call(this,v(this,he)[n],"expire"),t=!0);return t}info(t){let n=v(this,we).get(t);if(n===void 0)return;let u=v(this,ne)[n],o=q(this,G,pe).call(this,u)?u.__staleWhileFetching:u;if(o===void 0)return;let r={value:o};if(v(this,tt)&&v(this,gt)){let a=v(this,tt)[n],s=v(this,gt)[n];if(a&&s){let l=a-(v(this,ft).now()-s);r.ttl=l,r.start=Date.now()}}return v(this,mt)&&(r.size=v(this,mt)[n]),r}dump(){let t=[];for(let n of q(this,G,qt).call(this,{allowStale:!0})){let u=v(this,he)[n],o=v(this,ne)[n],r=q(this,G,pe).call(this,o)?o.__staleWhileFetching:o;if(r===void 0||u===void 0)continue;let a={value:r};if(v(this,tt)&&v(this,gt)){a.ttl=v(this,tt)[n];let s=v(this,ft).now()-v(this,gt)[n];a.start=Math.floor(Date.now()-s)}v(this,mt)&&(a.size=v(this,mt)[n]),t.unshift([u,a])}return t}load(t){this.clear();for(let[n,u]of t){if(u.start){let o=Date.now()-u.start;u.start=v(this,ft).now()-o}this.set(n,u.value,u)}}set(t,n,u={}){var h,m,p,w,y,A,b;if(n===void 0)return this.delete(t),this;let{ttl:o=this.ttl,start:r,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:l}=u,{noUpdateTTL:d=this.noUpdateTTL}=u,f=v(this,Sr).call(this,t,n,u.size||0,s);if(this.maxEntrySize&&f>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),q(this,G,Yt).call(this,t,"set"),this;let c=v(this,ke)===0?void 0:v(this,we).get(t);if(c===void 0)c=v(this,ke)===0?v(this,Se):v(this,pt).length!==0?v(this,pt).pop():v(this,ke)===v(this,it)?q(this,G,Mu).call(this,!1):v(this,ke),v(this,he)[c]=t,v(this,ne)[c]=n,v(this,we).set(t,c),v(this,$e)[v(this,Se)]=c,v(this,et)[c]=v(this,Se),ee(this,Se,c),Ru(this,ke)._++,v(this,Nn).call(this,c,f,l),l&&(l.set="add"),d=!1,v(this,Tn)&&((h=v(this,un))==null||h.call(this,n,t,"add"));else{q(this,G,Tr).call(this,c);let g=v(this,ne)[c];if(n!==g){if(v(this,Gt)&&q(this,G,pe).call(this,g)){g.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:x}=g;x!==void 0&&!a&&(v(this,bt)&&((m=v(this,ct))==null||m.call(this,x,t,"set")),v(this,Ue)&&((p=v(this,Fe))==null||p.push([x,t,"set"])))}else a||(v(this,bt)&&((w=v(this,ct))==null||w.call(this,g,t,"set")),v(this,Ue)&&((y=v(this,Fe))==null||y.push([g,t,"set"])));if(v(this,an).call(this,c),v(this,Nn).call(this,c,f,l),v(this,ne)[c]=n,l){l.set="replace";let x=g&&q(this,G,pe).call(this,g)?g.__staleWhileFetching:g;x!==void 0&&(l.oldValue=x)}}else l&&(l.set="update");v(this,Tn)&&((A=this.onInsert)==null||A.call(this,n,t,n===g?"update":"replace"))}if(o!==0&&!v(this,tt)&&q(this,G,si).call(this),v(this,tt)&&(d||v(this,Er).call(this,c,o,r),l&&v(this,Lt).call(this,l,c)),!a&&v(this,Ue)&&v(this,Fe)){let g=v(this,Fe),x;for(;x=g==null?void 0:g.shift();)(b=v(this,dt))==null||b.call(this,...x)}return this}pop(){var t;try{for(;v(this,ke);){let n=v(this,ne)[v(this,Re)];if(q(this,G,Mu).call(this,!0),q(this,G,pe).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(v(this,Ue)&&v(this,Fe)){let n=v(this,Fe),u;for(;u=n==null?void 0:n.shift();)(t=v(this,dt))==null||t.call(this,...u)}}}has(t,n={}){let{updateAgeOnHas:u=this.updateAgeOnHas,status:o}=n,r=v(this,we).get(t);if(r!==void 0){let a=v(this,ne)[r];if(q(this,G,pe).call(this,a)&&a.__staleWhileFetching===void 0)return!1;if(v(this,rt).call(this,r))o&&(o.has="stale",v(this,Lt).call(this,o,r));else return u&&v(this,on).call(this,r),o&&(o.has="hit",v(this,Lt).call(this,o,r)),!0}else o&&(o.has="miss");return!1}peek(t,n={}){let{allowStale:u=this.allowStale}=n,o=v(this,we).get(t);if(o===void 0||!u&&v(this,rt).call(this,o))return;let r=v(this,ne)[o];return q(this,G,pe).call(this,r)?r.__staleWhileFetching:r}async fetch(t,n={}){let{allowStale:u=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:l=0,sizeCalculation:d=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:m=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:w,forceRefresh:y=!1,status:A,signal:b}=n;if(!v(this,Gt))return A&&(A.fetch="get"),this.get(t,{allowStale:u,updateAgeOnGet:o,noDeleteOnStaleGet:r,status:A});let g={allowStale:u,updateAgeOnGet:o,noDeleteOnStaleGet:r,ttl:a,noDisposeOnSet:s,size:l,sizeCalculation:d,noUpdateTTL:f,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:p,ignoreFetchAbort:m,status:A,signal:b},x=v(this,we).get(t);if(x===void 0){A&&(A.fetch="miss");let k=q(this,G,Bu).call(this,t,x,g,w);return k.__returned=k}else{let k=v(this,ne)[x];if(q(this,G,pe).call(this,k)){let U=u&&k.__staleWhileFetching!==void 0;return A&&(A.fetch="inflight",U&&(A.returnedStale=!0)),U?k.__staleWhileFetching:k.__returned=k}let T=v(this,rt).call(this,x);if(!y&&!T)return A&&(A.fetch="hit"),q(this,G,Tr).call(this,x),o&&v(this,on).call(this,x),A&&v(this,Lt).call(this,A,x),k;let D=q(this,G,Bu).call(this,t,x,g,w),F=D.__staleWhileFetching!==void 0&&u;return A&&(A.fetch=T?"stale":"refresh",F&&T&&(A.returnedStale=!0)),F?D.__staleWhileFetching:D.__returned=D}}async forceFetch(t,n={}){let u=await this.fetch(t,n);if(u===void 0)throw new Error("fetch() returned undefined");return u}memo(t,n={}){let u=v(this,Dn);if(!u)throw new Error("no memoMethod provided to constructor");let{context:o,forceRefresh:r,...a}=n,s=this.get(t,a);if(!r&&s!==void 0)return s;let l=u(t,s,{options:a,context:o});return this.set(t,l,a),l}get(t,n={}){let{allowStale:u=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:a}=n,s=v(this,we).get(t);if(s!==void 0){let l=v(this,ne)[s],d=q(this,G,pe).call(this,l);return a&&v(this,Lt).call(this,a,s),v(this,rt).call(this,s)?(a&&(a.get="stale"),d?(a&&u&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),u?l.__staleWhileFetching:void 0):(r||q(this,G,Yt).call(this,t,"expire"),a&&u&&(a.returnedStale=!0),u?l:void 0)):(a&&(a.get="hit"),d?l.__staleWhileFetching:(q(this,G,Tr).call(this,s),o&&v(this,on).call(this,s),l))}else a&&(a.get="miss")}delete(t){return q(this,G,Yt).call(this,t,"delete")}clear(){return q(this,G,di).call(this,"delete")}},it=new WeakMap,Je=new WeakMap,ct=new WeakMap,un=new WeakMap,dt=new WeakMap,Fn=new WeakMap,Dn=new WeakMap,ft=new WeakMap,ke=new WeakMap,ht=new WeakMap,we=new WeakMap,he=new WeakMap,ne=new WeakMap,$e=new WeakMap,et=new WeakMap,Re=new WeakMap,Se=new WeakMap,pt=new WeakMap,Fe=new WeakMap,mt=new WeakMap,gt=new WeakMap,tt=new WeakMap,nt=new WeakMap,bt=new WeakMap,Gt=new WeakMap,Ue=new WeakMap,Tn=new WeakMap,G=new WeakSet,si=function(){let t=new du(v(this,it)),n=new du(v(this,it));ee(this,tt,t),ee(this,gt,n);let u=this.ttlAutopurge?new Array(v(this,it)):void 0;ee(this,nt,u),ee(this,Er,(s,l,d=v(this,ft).now())=>{n[s]=l!==0?d:0,t[s]=l,o(s,l)}),ee(this,on,s=>{n[s]=t[s]!==0?v(this,ft).now():0,o(s,t[s])});let o=this.ttlAutopurge?(s,l)=>{if(u!=null&&u[s]&&(clearTimeout(u[s]),u[s]=void 0),l&&l!==0&&u){let d=setTimeout(()=>{v(this,rt).call(this,s)&&q(this,G,Yt).call(this,v(this,he)[s],"expire")},l+1);d.unref&&d.unref(),u[s]=d}}:()=>{};ee(this,Lt,(s,l)=>{if(t[l]){let d=t[l],f=n[l];if(!d||!f)return;s.ttl=d,s.start=f,s.now=r||a();let c=s.now-f;s.remainingTTL=d-c}});let r=0,a=()=>{let s=v(this,ft).now();if(this.ttlResolution>0){r=s;let l=setTimeout(()=>r=0,this.ttlResolution);l.unref&&l.unref()}return s};this.getRemainingTTL=s=>{let l=v(this,we).get(s);if(l===void 0)return 0;let d=t[l],f=n[l];if(!d||!f)return 1/0;let c=(r||a())-f;return d-c},ee(this,rt,s=>{let l=n[s],d=t[s];return!!d&&!!l&&(r||a())-l>d})},on=new WeakMap,Lt=new WeakMap,Er=new WeakMap,rt=new WeakMap,Wl=function(){let t=new du(v(this,it));ee(this,ht,0),ee(this,mt,t),ee(this,an,n=>{ee(this,ht,v(this,ht)-t[n]),t[n]=0}),ee(this,Sr,(n,u,o,r)=>{if(q(this,G,pe).call(this,u))return 0;if(!$t(o))if(r){if(typeof r!="function")throw new TypeError("sizeCalculation must be a function");if(o=r(u,n),!$t(o))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return o}),ee(this,Nn,(n,u,o)=>{if(t[n]=u,v(this,Je)){let r=v(this,Je)-t[n];for(;v(this,ht)>r;)q(this,G,Mu).call(this,!0)}ee(this,ht,v(this,ht)+t[n]),o&&(o.entrySize=u,o.totalCalculatedSize=v(this,ht))})},an=new WeakMap,Nn=new WeakMap,Sr=new WeakMap,qt=function*({allowStale:t=this.allowStale}={}){if(v(this,ke))for(let n=v(this,Se);!(!q(this,G,li).call(this,n)||((t||!v(this,rt).call(this,n))&&(yield n),n===v(this,Re)));)n=v(this,et)[n]},Zt=function*({allowStale:t=this.allowStale}={}){if(v(this,ke))for(let n=v(this,Re);!(!q(this,G,li).call(this,n)||((t||!v(this,rt).call(this,n))&&(yield n),n===v(this,Se)));)n=v(this,$e)[n]},li=function(t){return t!==void 0&&v(this,we).get(v(this,he)[t])===t},Mu=function(t){var r,a,s;let n=v(this,Re),u=v(this,he)[n],o=v(this,ne)[n];return v(this,Gt)&&q(this,G,pe).call(this,o)?o.__abortController.abort(new Error("evicted")):(v(this,bt)||v(this,Ue))&&(v(this,bt)&&((r=v(this,ct))==null||r.call(this,o,u,"evict")),v(this,Ue)&&((a=v(this,Fe))==null||a.push([o,u,"evict"]))),v(this,an).call(this,n),(s=v(this,nt))!=null&&s[n]&&(clearTimeout(v(this,nt)[n]),v(this,nt)[n]=void 0),t&&(v(this,he)[n]=void 0,v(this,ne)[n]=void 0,v(this,pt).push(n)),v(this,ke)===1?(ee(this,Re,ee(this,Se,0)),v(this,pt).length=0):ee(this,Re,v(this,$e)[n]),v(this,we).delete(u),Ru(this,ke)._--,n},Bu=function(t,n,u,o){let r=n===void 0?void 0:v(this,ne)[n];if(q(this,G,pe).call(this,r))return r;let a=new cu,{signal:s}=u;s==null||s.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});let l={signal:a.signal,options:u,context:o},d=(w,y=!1)=>{let{aborted:A}=a.signal,b=u.ignoreFetchAbort&&w!==void 0,g=u.ignoreFetchAbort||!!(u.allowStaleOnFetchAbort&&w!==void 0);if(u.status&&(A&&!y?(u.status.fetchAborted=!0,u.status.fetchError=a.signal.reason,b&&(u.status.fetchAbortIgnored=!0)):u.status.fetchResolved=!0),A&&!b&&!y)return c(a.signal.reason,g);let x=m,k=v(this,ne)[n];return(k===m||b&&y&&k===void 0)&&(w===void 0?x.__staleWhileFetching!==void 0?v(this,ne)[n]=x.__staleWhileFetching:q(this,G,Yt).call(this,t,"fetch"):(u.status&&(u.status.fetchUpdated=!0),this.set(t,w,l.options))),w},f=w=>(u.status&&(u.status.fetchRejected=!0,u.status.fetchError=w),c(w,!1)),c=(w,y)=>{let{aborted:A}=a.signal,b=A&&u.allowStaleOnFetchAbort,g=b||u.allowStaleOnFetchRejection,x=g||u.noDeleteOnFetchRejection,k=m;if(v(this,ne)[n]===m&&(!x||!y&&k.__staleWhileFetching===void 0?q(this,G,Yt).call(this,t,"fetch"):b||(v(this,ne)[n]=k.__staleWhileFetching)),g)return u.status&&k.__staleWhileFetching!==void 0&&(u.status.returnedStale=!0),k.__staleWhileFetching;if(k.__returned===k)throw w},h=(w,y)=>{var b;let A=(b=v(this,Fn))==null?void 0:b.call(this,t,r,l);A&&A instanceof Promise&&A.then(g=>w(g===void 0?void 0:g),y),a.signal.addEventListener("abort",()=>{(!u.ignoreFetchAbort||u.allowStaleOnFetchAbort)&&(w(void 0),u.allowStaleOnFetchAbort&&(w=g=>d(g,!0)))})};u.status&&(u.status.fetchDispatched=!0);let m=new Promise(h).then(d,f),p=Object.assign(m,{__abortController:a,__staleWhileFetching:r,__returned:void 0});return n===void 0?(this.set(t,p,{...l.options,status:void 0}),n=v(this,we).get(t)):v(this,ne)[n]=p,p},pe=function(t){if(!v(this,Gt))return!1;let n=t;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof cu},ci=function(t,n){v(this,et)[n]=t,v(this,$e)[t]=n},Tr=function(t){t!==v(this,Se)&&(t===v(this,Re)?ee(this,Re,v(this,$e)[t]):q(this,G,ci).call(this,v(this,et)[t],v(this,$e)[t]),q(this,G,ci).call(this,v(this,Se),t),ee(this,Se,t))},Yt=function(t,n){var o,r,a,s,l,d;let u=!1;if(v(this,ke)!==0){let f=v(this,we).get(t);if(f!==void 0)if((o=v(this,nt))!=null&&o[f]&&(clearTimeout((r=v(this,nt))==null?void 0:r[f]),v(this,nt)[f]=void 0),u=!0,v(this,ke)===1)q(this,G,di).call(this,n);else{v(this,an).call(this,f);let c=v(this,ne)[f];if(q(this,G,pe).call(this,c)?c.__abortController.abort(new Error("deleted")):(v(this,bt)||v(this,Ue))&&(v(this,bt)&&((a=v(this,ct))==null||a.call(this,c,t,n)),v(this,Ue)&&((s=v(this,Fe))==null||s.push([c,t,n]))),v(this,we).delete(t),v(this,he)[f]=void 0,v(this,ne)[f]=void 0,f===v(this,Se))ee(this,Se,v(this,et)[f]);else if(f===v(this,Re))ee(this,Re,v(this,$e)[f]);else{let h=v(this,et)[f];v(this,$e)[h]=v(this,$e)[f];let m=v(this,$e)[f];v(this,et)[m]=v(this,et)[f]}Ru(this,ke)._--,v(this,pt).push(f)}}if(v(this,Ue)&&((l=v(this,Fe))!=null&&l.length)){let f=v(this,Fe),c;for(;c=f==null?void 0:f.shift();)(d=v(this,dt))==null||d.call(this,...c)}return u},di=function(t){var n,u,o,r;for(let a of q(this,G,Zt).call(this,{allowStale:!0})){let s=v(this,ne)[a];if(q(this,G,pe).call(this,s))s.__abortController.abort(new Error("deleted"));else{let l=v(this,he)[a];v(this,bt)&&((n=v(this,ct))==null||n.call(this,s,l,t)),v(this,Ue)&&((u=v(this,Fe))==null||u.push([s,l,t]))}}if(v(this,we).clear(),v(this,ne).fill(void 0),v(this,he).fill(void 0),v(this,tt)&&v(this,gt)){v(this,tt).fill(0),v(this,gt).fill(0);for(let a of v(this,nt)??[])a!==void 0&&clearTimeout(a);(o=v(this,nt))==null||o.fill(void 0)}if(v(this,mt)&&v(this,mt).fill(0),ee(this,Re,0),ee(this,Se,0),v(this,pt).length=0,ee(this,ht,0),ee(this,ke,0),v(this,Ue)&&v(this,Fe)){let a=v(this,Fe),s;for(;s=a==null?void 0:a.shift();)(r=v(this,dt))==null||r.call(this,...s)}},Ln);/*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */var en=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(e[u]=n[u])}return e},fu=function(t){return t.tagName==="IMG"},S1=function(t){return NodeList.prototype.isPrototypeOf(t)},hu=function(t){return t&&t.nodeType===1},ws=function(t){var n=t.currentSrc||t.src;return n.substr(-4).toLowerCase()===".svg"},vs=function(t){try{return Array.isArray(t)?t.filter(fu):S1(t)?[].slice.call(t).filter(fu):hu(t)?[t].filter(fu):typeof t=="string"?[].slice.call(document.querySelectorAll(t)).filter(fu):[]}catch{throw new TypeError(`The provided selector is invalid.
32
+ `;return Co("caf-assistant-widget-container__error",b)}),p=()=>{const b=a.value;b&&(s.value=new mh(b))},m=()=>{const b=s.value;b&&(b.dispose(),s.value=null)},w=()=>{const b=r.value,g=o.value;b&&(b.unmount(),b.dispose()),g&&g.cleanup(),r.value=null,o.value=null},y=async()=>{const b=await n(e.widgetAPIURL);if(!b)throw new Error("Failed to load widget API");await b.initialize();const g=b.createWidget();o.value=b,r.value=g},A=b=>{console.error(b),l.value=b};return i.watch(()=>e.widgetAPIURL,async()=>{if(a.value)try{w(),await y();const b=a.value,g=r.value;g==null||g.updateOptions(e.widgetOptions),g==null||g.updateData(e.widgetData),b&&g&&await g.mount(b)}catch(b){A(b)}}),i.watch(()=>e.widgetOptions,(b,g)=>{try{const x=r.value;x&&(!g||!u(g,b))&&x.updateOptions(b)}catch(x){A(x)}}),i.watch(()=>e.widgetData,(b,g)=>{try{const x=r.value;x&&(!g||!u(g,b))&&x.updateData(b)}catch(x){A(x)}}),i.onMounted(async()=>{try{const b=a.value;if(b){p();const g=s.value;if(g){await y();const x=r.value;x&&(x.updateOptions(e.widgetOptions),x.updateData(e.widgetData),x.mount(g.getElement()),i.nextTick(()=>{b.parentElement&&(b.style.width="100%")}))}}}catch(b){A(b)}}),i.onBeforeUnmount(async()=>{try{w(),m()}catch(b){console.error(b)}}),()=>i.createVNode("div",{class:d.value},[i.createVNode("div",{ref:a,class:c},null),i.createVNode("div",{class:h.value},null)])}}),$a=(e,t)=>{var n;if(e.type===Le.AssistantWidgetComplete){const u=e;return u.widgetUrl?i.createVNode(yn,{key:`widget-${t}`,widgetAPIURL:u.widgetUrl,widgetOptions:{mode:"embedded",implOptions:u.widgetImplOptions},widgetData:((n=u.widgetData)==null?void 0:n.data)||{}},null):null}return e.type===Le.AssistantWidgetPending?i.createVNode("div",{class:"f-chat-bubble-widget-pending",key:`widget-loading-${t}`},[i.createVNode("span",{class:"f-chat-todo-status-icon f-chat-todo-status-working"},null),i.createVNode("span",{class:"f-chat-bubble-widget-pending-text"},[i.createTextVNode("数据生成中......")])]):null},yh=3e4,Ua=8e3,Ie=new Map,Qe=new Map,tr=new Map,Et=[];function Ve(e){return String(e??"").replace(/^\ufeff/,"").replace(/[\u200b\u200c\u200d]/g,"").replace(/\u00a0/g," ").trim()}function uu(e){const t=Ve(e);if(t)for(let n=Et.length-1;n>=0;n--)Et[n]===t&&Et.splice(n,1)}function xh(e){typeof window>"u"||(window.__fluens_dynamic_component_bootstrap_instance_id=e)}function ou(e){if(typeof window>"u")return;const t=window;t.__fluens_dynamic_component_bootstrap_instance_id===e&&delete t.__fluens_dynamic_component_bootstrap_instance_id}function wh(){return Et[Et.length-1]||void 0}function iu(e,t){const n=Ve(t);return n?Ve(e.instanceId)===n||e.componentId!=null&&Ve(String(e.componentId))===n||e.name!=null&&Ve(String(e.name))===n:!1}function Eo(e){const t=Ve(e);if(!t)return null;const n=Ie.get(t);if(n)return{canonicalKey:t,entry:n};for(const[o,r]of Ie.entries())if(Ve(o)===t)return{canonicalKey:o,entry:r};const u=[];for(const[o,r]of Ie.entries())iu(r.config,t)&&u.push({key:o,entry:r});if(u.length===1){const{key:o,entry:r}=u[0];return o!==t&&console.warn(`[DynamicComponent] register id "${t}" resolved to pending instanceId "${o}" (alias match)`),{canonicalKey:o,entry:r}}if(u.length>1)return console.warn(`[DynamicComponent] register id "${t}" is ambiguous (${u.length} pending matches); refusing`),null;if(Ie.size===1){const[o,r]=[...Ie.entries()][0];return console.warn(`[DynamicComponent] register id "${t}" unmatched; using sole pending instance "${o}"`),{canonicalKey:o,entry:r}}return null}function Wa(e,t){for(const[n,u]of Qe){const o=Ve(n),r=e!==""&&o===e,a=String(t??"").trim(),s=e&&iu(u.config,e)||a&&iu(u.config,a);if(r||s)return console.warn(`[DynamicComponent] register skipped: id "${e||a}" already active (canonical "${n}"); unload first — second register yields "no pending", not duplicate mount`),!0}return!1}function So(){return{pendingKeys:[...Ie.keys()],bootstrapQueue:[...Et],activeKeys:[...Qe.keys()],...typeof window<"u"?{windowBootstrapPeek:window.__fluens_dynamic_component_bootstrap_instance_id}:{}}}function vh(e){console.warn("[DynamicComponent] register diagnostics",{claimedNormalized:e,...So()})}function Ah(e){const t=Ve(e);if(t){if(Wa(t,e))return{ok:!1,reason:"already_active_duplicate"};const u=Eo(t);if(u)return{ok:!0,...u}}else if(Wa("",e))return{ok:!1,reason:"already_active_duplicate"};for(let n=0;n<Et.length;n++){const u=Et[n],o=Eo(u);if(o)return Et.splice(n,1),t&&Ve(u)!==t&&console.warn(`[DynamicComponent] register id "${t}" did not match pending; using bootstrap instanceId "${u}" (sync bundle entry or use window.__fluens_dynamic_component_bootstrap_instance_id)`),{ok:!0,...o}}return{ok:!1,reason:"no_pending"}}function Ga(e){const t=Ve(e);if(!t)return null;const n=Qe.get(t);if(n)return n;for(const[r,a]of Qe.entries())if(Ve(r)===t)return a;const u=[];for(const r of Qe.values())iu(r.config,t)&&u.push(r);const o=[...new Map(u.map(r=>[r.config.instanceId,r])).values()];if(o.length===1)return o[0].config.instanceId!==t&&console.warn(`[DynamicComponent] assistant post id "${t}" resolved to instanceId "${o[0].config.instanceId}" (alias match)`),o[0];if(o.length>1)return console.warn(`[DynamicComponent] assistant post id "${t}" is ambiguous (${o.length} active matches)`),null;if(Qe.size===1){const r=[...Qe.values()][0];return console.warn(`[DynamicComponent] assistant post id "${t}" unmatched; delivering to sole active instance "${r.config.instanceId}"`),r}return null}function kh(e){const t=Ve(e);if(!t)return t;const n=Ga(t);if(n)return n.config.instanceId;const u=Eo(t);return u?u.canonicalKey:Ie.size===1?[...Ie.keys()][0]:Qe.size===1?[...Qe.values()][0].config.instanceId:t}function Do(e){try{return JSON.parse(JSON.stringify(e))}catch{return{...e}}}function Xa(e,t){if(typeof e.onAssistantMessage!="function")return!0;try{return e.onAssistantMessage(Do(t)),!0}catch(n){return console.warn("[DynamicComponent] onAssistantMessage failed",n),!1}}function Ch(e){const t=`fluens-dynamic-component-${e.instanceId}`;let n=document.getElementById(t);return n||(n=document.createElement("div"),n.id=t,n.style.width="100%",n.style.height="100%"),n}function qa(e){const t=Qe.get(e.instanceId);if(t)return Promise.resolve(t.api);const n=Ie.get(e.instanceId);if(n)return new Promise((o,r)=>{const a=n.resolve,s=n.reject;n.resolve=l=>{a(l),o(l)},n.reject=l=>{s(l),r(l)}});if((e.name||e.componentId)&&!e.jsUrl)return Promise.reject(new Error(`Dynamic component resource is empty: ${e.name||e.componentId}`));const u=Ch(e);return new Promise((o,r)=>{const a={config:e,container:u,resolve:o,reject:r,timeoutId:0},s=setTimeout(()=>{a.postLoadRegisterCheckTimerId!=null&&(clearTimeout(a.postLoadRegisterCheckTimerId),a.postLoadRegisterCheckTimerId=void 0),Ie.delete(e.instanceId),uu(e.instanceId),ou(e.instanceId),r(new Error(`Dynamic component script load timeout: ${e.name||e.componentId}`))},yh);a.timeoutId=s,Ie.set(e.instanceId,a),Et.push(e.instanceId),xh(e.instanceId);const l=document.createElement("script");l.src=(e==null?void 0:e.jsUrl)??"",l.dataset.dynamicComponentId=e.instanceId,l.async=!1,l.onload=()=>{a.postLoadRegisterCheckTimerId=window.setTimeout(()=>{a.postLoadRegisterCheckTimerId=void 0,Ie.has(e.instanceId)&&(clearTimeout(s),Ie.delete(e.instanceId),uu(e.instanceId),ou(e.instanceId),r(new Error(`Dynamic component did not call __fluens_dynamic_component_register within ${Ua}ms after load: ${e.name||e.componentId}`)))},Ua)},l.onerror=()=>{clearTimeout(s),a.postLoadRegisterCheckTimerId!=null&&(clearTimeout(a.postLoadRegisterCheckTimerId),a.postLoadRegisterCheckTimerId=void 0),Ie.delete(e.instanceId),uu(e.instanceId),ou(e.instanceId),r(new Error(`Failed to load dynamic component: ${e.name||e.componentId}`))},document.head.appendChild(l)})}function Za(e){var o;const t=Qe.get(e);if(t){try{t.api.unmount()}catch{}(o=t.scriptElement)==null||o.remove(),Qe.delete(e)}const n=Ie.get(e);n&&(n.postLoadRegisterCheckTimerId!=null&&(clearTimeout(n.postLoadRegisterCheckTimerId),n.postLoadRegisterCheckTimerId=void 0),clearTimeout(n.timeoutId),Ie.delete(e)),tr.delete(e);const u=document.getElementById(`fluens-dynamic-component-${e}`);u&&u.remove()}function _h(e,t){const n=Ve(e);if(!n)return!1;const u=Ga(n);if(u)return Xa(u.api,t);const o=kh(n),r=tr.get(o)??[],a=r.findIndex(s=>s.messageId===t.messageId);return a>=0?r[a]=Do(t):r.push(Do(t)),tr.set(o,r),!1}typeof window<"u"&&(window.__fluens_get_dynamic_component_registry_debug_snapshot=So,window.__fluens_dynamic_component_register=function(e,t){const n=Ve(e),u=Ah(e);if(!u.ok){if(u.reason==="already_active_duplicate")return;vh(n),console.warn(`[DynamicComponent] no pending for register id "${n}" (raw ${JSON.stringify(e)}); see diagnostics above. Try: unload tab / avoid double register / ensure FXDynamicComponent loaded this jsUrl first / empty id if sole pending`);return}const{canonicalKey:o,entry:r}=u;uu(o),ou(o),r.postLoadRegisterCheckTimerId!=null&&(clearTimeout(r.postLoadRegisterCheckTimerId),r.postLoadRegisterCheckTimerId=void 0),clearTimeout(r.timeoutId),Ie.delete(o);const a={config:r.config,container:r.container,api:t,scriptElement:document.currentScript};Qe.set(o,a),a.container.parentElement;try{t.mount(r.container,r.config)}catch(l){console.error(`Failed to mount dynamic component: ${o}`,l)}const s=[o];n&&n!==o&&s.push(n);for(const l of s){const d=tr.get(l);d&&d.length>0&&(tr.delete(l),d.forEach(f=>Xa(t,f)))}r.resolve(t)});const xn=i.defineComponent({name:"FXDynamicComponent",props:{config:{type:Object,required:!0}},setup(e){const t=i.ref("loading"),n=i.ref(""),u=i.computed(()=>`fluens-dynamic-component-${e.config.instanceId}`),o=i.computed(()=>e.config.position==="inline"),r=i.computed(()=>!e.config.jsUrl&&!!e.config.url),a=i.computed(()=>({...o.value?{width:"fit-content",maxWidth:"100%"}:{width:"100%"},height:"auto",...t.value==="ready"&&o.value?{padding:"16px 0"}:{},...t.value==="ready"&&!o.value?{height:"100%",overflow:"hidden"}:{}}));return i.onMounted(()=>{r.value||(t.value="loading",n.value="",qa(e.config).then(()=>{t.value="ready"}).catch(s=>{t.value="error",n.value=s.message||"Unknown error"}))}),i.onUnmounted(()=>{r.value||Za(e.config.instanceId)}),()=>r.value?null:i.createVNode("div",{class:"f-chat-dynamic-component-body",style:a.value},[i.createVNode("div",{id:u.value,style:{width:"100%",height:"100%",display:t.value==="ready"?"":"none"}},null),t.value==="loading"&&i.createVNode("div",{class:"f-chat-dynamic-component-loading"},[i.createVNode("span",{class:"f-chat-dynamic-component-loading-spinner"},null),i.createVNode("span",null,[i.createTextVNode("加载中......")])]),t.value==="error"&&i.createVNode("div",{class:"f-chat-dynamic-component-error"},[i.createVNode("span",{class:"f-chat-dynamic-component-error-icon"},[i.createTextVNode("!")]),i.createVNode("span",null,[n.value])])])}}),Ya=(e,t,n)=>{if(e.type===Le.DynamicComponentComplete){const u=e;if(!u.config)return null;if(u.config.position==="inline")return i.createVNode(xn,{key:`dc-${t}`,config:u.config},null);const o={type:"file",fileContent:{type:"md",name:u.config.title}},r={onPreviewFile:a=>{n.emit("showDynamicComponent",u.config)}};return i.nextTick(()=>n.emit("dynamicComponentsDetected",[u.config])),i.createVNode("div",{style:{padding:"16px 0"}},[n.renderFileEmbeddedContent(o,r)])}return e.type===Le.DynamicComponentPending?i.createVNode("div",{class:"f-chat-bubble-widget-pending",key:`dc-loading-${t}`},[i.createVNode("span",{class:"f-chat-todo-status-icon f-chat-todo-status-working"},null),i.createVNode("span",{class:"f-chat-bubble-widget-pending-text"},[i.createTextVNode("组件加载中......")])]):null};function Eh(){return{[Le.Text]:Cf,[Le.AssistantWidgetComplete]:$a,[Le.AssistantWidgetPending]:$a,[Le.DynamicComponentComplete]:Ya,[Le.DynamicComponentPending]:Ya}}const Sh=i.defineComponent({name:"FXBubbleTextContent",props:ic,emits:["dynamicComponentsDetected","showDynamicComponent"],setup(e,t){const{renderFileEmbeddedContent:n}=xi(),{propertyStates:u,registerProperty:o,updatePropertyValue:r,startStreaming:a}=Pr();o("title",e.title??""),o("subtitle",e.subtitle??""),o("text",e.text??""),i.watch([()=>e.title,()=>e.subtitle,()=>e.text],([m,w,y])=>{r("title",m??""),r("subtitle",w??""),r("text",y??"")});const s=i.computed(()=>e.textFormat==="markdown"),l=i.ref(!1),d=i.computed(()=>{var m,w,y;return l.value?{title:((m=u.title)==null?void 0:m.displayedValue)??"",subtitle:((w=u.subtitle)==null?void 0:w.displayedValue)??"",text:((y=u.text)==null?void 0:y.displayedValue)??""}:{title:e.title,subtitle:e.subtitle,text:e.text}}),f=i.computed(()=>Ac(d.value.text)),c={shouldShowMarkdown:s,emit:t.emit,renderFileEmbeddedContent:n},h=Eh(),p=()=>f.value.length===0?null:i.createVNode("div",{class:"f-chat-bubble-text-collection"},[f.value.map((m,w)=>{var y;return(y=h[m.type])==null?void 0:y.call(h,m,w,c)})]);return i.onMounted(()=>{l.value&&a()}),()=>i.createVNode(i.Fragment,null,[d.value.title&&i.createVNode("div",{class:"f-chat-bubble-content-title"},[d.value.title]),d.value.subtitle&&i.createVNode("div",{class:"f-chat-bubble-content-subtitle"},[d.value.subtitle]),p()])}}),Dh={content:{type:Object},outputMode:{type:String,default:"full"}};function wn({status:e,variant:t=""}){let n="";return t?n=`f-chat-todo-status-icon f-chat-todo-status-${e.toLowerCase()} variant--${t.toLowerCase()} `:n=`f-chat-todo-status-icon f-chat-todo-status-${e.toLowerCase()}`,i.createVNode("span",{class:n,"aria-hidden":!0},null)}const Th=i.defineComponent({name:"FXBubbleThink",props:Dh,setup(e,t){var U;const{propertyStates:n,registerProperty:u,updatePropertyValue:o,isAllDone:r}=Pr(),{elapsedSeconds:a,hasEverStarted:s,start:l,stop:d,reset:f}=Hu(),c=i.ref(((U=e.content)==null?void 0:U.completed)!==!0),h=i.ref(null),p=i.ref(null),m=i.ref(!1),w=i.ref(!1),y=i.computed(()=>e.outputMode==="streaming"),A=i.computed(()=>{var _;return(_=e.content)==null?void 0:_.completed}),b=i.computed(()=>{var V,E,R;const _=(V=g.value)==null?void 0:V.trim(),N=_?_.slice(0,8):"",I=_&&_.length>8?"…":"",C=N?`<span class="f-chat-bubble-thinking-preview">${N}${I}</span>`:"";if(A.value){const M=s.value?`(用时${a.value}秒)`:"";return(((E=e.content)==null?void 0:E.title)??"思考完成"+M)+C}return(((R=e.content)==null?void 0:R.title)??"正在思考......")+C}),g=i.computed(()=>{var _,N;return y.value?((_=n.content)==null?void 0:_.displayedValue)??"":((N=e.content)==null?void 0:N.content)??""}),x=i.computed(()=>({"f-chat-bubble-thinking":!0,"is-pending":!A.value,"is-completed":A.value})),k=()=>{const _=h.value;if(!_||!m.value){w.value=!1;return}w.value=_.scrollTop>0};i.watch(()=>A.value,_=>{_?d():l()},{immediate:!0}),i.watch(()=>A.value,_=>{_&&(c.value=!1)}),i.watch(()=>e.content,_=>{_&&(n.content?o("content",_.content??""):u("content",_.content??""))},{immediate:!0}),i.watch(g,async()=>{if(c.value){await i.nextTick();const _=h.value;if(!_)return;await i.nextTick(),m.value=_.scrollHeight>_.clientHeight,m.value?(_.scrollTop=_.scrollHeight,w.value=!0):w.value=!1}},{immediate:!0}),i.watch(c,async _=>{if(_){await i.nextTick();const N=h.value;if(!N)return;await i.nextTick(),m.value=N.scrollHeight>N.clientHeight,m.value?(N.scrollTop=N.scrollHeight,w.value=!0):w.value=!1}}),i.onUnmounted(()=>{f()}),t.expose({instance:{get loadDone(){return e.content?(y.value?r.value:!0)&&A.value:!0}}});const F=()=>{c.value=!c.value},T=()=>A.value?null:i.createVNode(wn,{status:"Working",variant:"thinking"},null),D=()=>!g.value||!c.value?null:i.createVNode("div",{class:"f-chat-bubble-thinking-content"},[i.createVNode("div",{class:"f-chat-bubble-thinking-scroll-container",ref:h,onScroll:k},[m.value&&w.value&&i.createVNode("div",{class:"f-chat-bubble-thinking-fade-mask"},null),i.createVNode("div",{class:"f-chat-bubble-thinking-text-wrapper"},[i.createVNode("div",{ref:p,class:"f-chat-bubble-thinking-content-text",innerHTML:g.value},null)])])]);return()=>i.createVNode("div",{class:x.value},[i.createVNode("div",{class:"f-chat-bubble-thinking-header",onClick:F},[T(),i.createVNode("span",{class:"f-chat-bubble-thinking-title",innerHTML:b.value},null),g.value&&i.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:c.value?"rotate(0deg)":"rotate(180deg)",transition:"all 0.3s ease-in-out"}},null)]),D()])}}),Fh={content:{type:Object}},Ka={id:{type:String},arrowOffsetX:{type:Number,default:0},class:{type:String,default:""},customStyles:{type:Object,default:null},isSimpleTips:{type:Boolean,default:!1},fitContent:{type:Boolean,default:!1},host:{type:Object},leftBoundary:{type:Object},keepWidthWithReference:{type:Boolean,default:!1},minWidth:{type:Number,default:-1},offsetX:{type:Object,default:i.ref(0)},offsetY:{type:Object,default:i.ref(0)},placement:{type:String,default:"bottom"},reference:{type:Object},rightBoundary:{type:Object},showArrow:{type:Boolean,default:!1},title:{type:String},visible:{type:Boolean,default:!1},zIndex:{type:Number,default:-1},limitContentBySpace:{type:Boolean,default:!1},beforeClose:{type:Function}};function Nh(e){const t=e.host?e.host:"body",n=i.computed(()=>t==="body"?0:t?t.getBoundingClientRect().top:0),u=i.computed(()=>t==="body"?window.innerHeight:t?t.getBoundingClientRect().bottom:window.innerHeight),o=i.computed(()=>t==="body"?0:t?t.getBoundingClientRect().left:0),r=i.computed(()=>t==="body"?document.body.getBoundingClientRect().width:t?t.getBoundingClientRect().width-(e.rightBoundary?e.rightBoundary.getBoundingClientRect().width:0):document.body.getBoundingClientRect().width),a=i.computed(()=>t==="body"?window.innerHeight:t?t.getBoundingClientRect().height:window.innerHeight);return{host:t,hostLeft:o,hostTop:n,hostWidth:r,hostHeight:a,hostBottom:u}}function Ih(e,t,n,u){const o=i.ref(e.offsetX||0),r=i.ref(e.offsetY||0),a=i.ref(-1),s=i.ref(-1),l=i.ref(-1),d=i.ref(-1),f=i.ref(e.placement),c=i.ref(0),h=i.ref(0),p=i.ref(0),m=i.computed(()=>document.documentElement.scrollLeft),w=i.computed(()=>document.documentElement.scrollTop),{hostLeft:y,hostTop:A,hostWidth:b,hostHeight:g,hostBottom:x}=u;i.watch(()=>e.offsetX,L=>{o.value=L});const k=i.computed(()=>{const L={left:`${h.value}px`,top:`${p.value}px`,transform:`translate(${o.value}px, ${r.value}px)`};return e.zIndex!==-1&&(L["z-index"]=e.zIndex),e.fitContent?e.keepWidthWithReference&&n.value&&a.value>=n.value.getBoundingClientRect().width&&(L.width=`${a.value}px`):a.value!==-1&&(L.width=`${a.value}px`),e.minWidth!==-1&&(L.minWidth=`${e.minWidth}px`),e.customStyles&&Object.assign(L,e.customStyles),s.value>0&&(L.maxHeight=s.value+"px"),L}),F=i.computed(()=>({left:`${c.value}px`,transform:`translateX(${e.arrowOffsetX}px)`}));function T(L){if(L&&e.keepWidthWithReference){const B=L.getBoundingClientRect();a.value=Math.max(e.minWidth,B.width)}}function D(L,B){const W=b.value-L.width-4;return W>0?W:B}function U(L,B){const W=g.value-L.height-12;return W>0?W:B}function _(L,B,W){const K=c.value,Z=B.left-y.value+B.width/2+m.value,Y=B.top-A.value-(L.height+W.height)+w.value;return{popoverLeft:Z,popoverTop:Y,arrowLeft:K}}function N(L,B,W){const K=B.top-A.value+(B.height+W.height)+w.value,Z=U(L,K);return Math.min(K,Z)}function I(L,B){const W=D(B,L),K=L<=W?c.value:L-W;return{popoverLeft:Math.min(L,W),arrowLeft:K,maxHeight:0}}function C(L,B){const W=D(B,L),K=L<=W?c.value:L-W;return{popoverLeft:L,arrowLeft:K,maxHeight:0}}function P(L,B,W){const K=B.left-y.value+m.value,{arrowLeft:Z,popoverLeft:Y}=C(K,L),{popoverTop:ue}=_(L,B,W);return{popoverLeft:Y,popoverTop:ue,arrowLeft:Z,maxHeight:0}}function V(L,B,W){const K=B.left-y.value+B.width/2-(W.width/2-(L.left-y.value))+m.value,{arrowLeft:Z,popoverLeft:Y}=I(K,L),ue=N(L,B,W);return{popoverLeft:Y,popoverTop:ue,arrowLeft:Z,maxHeight:0}}function E(L,B,W){const K=B.left-y.value+m.value,{arrowLeft:Z,popoverLeft:Y}=I(K,L),ue=N(L,B,W);return{popoverLeft:Y,popoverTop:ue,arrowLeft:Z,maxHeight:0}}function R(L,B,W){const K=B.left-y.value;let Z=0,Y=0,ue=0,le=0,Te="bottom-left";window.innerWidth-K>L.width?Z=K+m.value:(Z=B.right-L.width+m.value,ue=L.width-W.width-20);let Fe=0;if(e.limitContentBySpace){const Xt={topHeight:B.top-A.value-W.height-8,bottomHeight:x.value-B.bottom-W.height-8};Fe=Math.max(Xt.topHeight,Xt.bottomHeight),L.height>Fe&&(le=Fe,n.value.classList.add("popover-limitmax"))}const yt=le?Math.floor(le):L.height,Me=B.top-A.value+(B.height+W.height);return x.value-Me>yt?Y=Me+w.value:(Y=B.top-yt-W.height+w.value,x.value-Me>B.top?(Y=Me+w.value,yt>B.top&&(Y=x.value-yt)):(Y=Y<0?0:Y,Te="top")),n.value.classList.add("popover-"+Te,"bs-popover-"+Te),{popoverLeft:Z<0?5:Z,popoverTop:Y,arrowLeft:ue,maxHeight:le}}function M(L,B,W){const K=B.left+B.width,Z=Math.max(B.top-(L.height/2-B.height/2),A.value);let Y=A.value+g.value-L.height;Y<0&&(Y=Z);const ue=Math.min(Z,Y);return{popoverLeft:K,popoverTop:ue,arrowLeft:0,maxHeight:0}}function $(L,B,W){const K=B.left+B.width,Z=Math.max(B.top-B.height,A.value);let Y=A.value+g.value-L.height;Y<0&&(Y=Z);const ue=Math.min(Z,Y);return{popoverLeft:K,popoverTop:ue,arrowLeft:0,maxHeight:0}}const re=new Map([["top",_],["top-left",P],["bottom",V],["bottom-left",E],["right",M],["right-top",$],["auto",R]]);function te(L){var Y;e.keepWidthWithReference&&T(L);const B=L.getBoundingClientRect();l.value=B.top,d.value=B.left;const W=t.value?t.value.getBoundingClientRect():{height:4,width:4},K=(Y=n.value)==null?void 0:Y.getBoundingClientRect();a.value=K.width;const Z=re.get(f.value);if(Z){const{arrowLeft:ue,popoverLeft:le,popoverTop:Te,maxHeight:Fe}=Z(K,B,W);c.value=ue,h.value=le,p.value=Te,s.value=Fe||-1}}function z(L){if(L){const B=L.getBoundingClientRect();(B.left!==d.value||B.top!==l.value)&&te(L)}}function j(){f.value=e.placement,c.value=0,h.value=0,p.value=0,a.value=-1}return{arrowStyle:F,popoverStyle:k,position:f,popoverWidth:a,fitToReference:T,followToReferencePosition:z,locateToReference:te,resetPosition:j}}function Oh(e,t,n,u,o,r,a){const s=i.ref(e.visible),l=i.computed(()=>s.value),{fitToReference:d,locateToReference:f,resetPosition:c}=a;let h;async function p(){s.value&&(e.beforeClose&&typeof e.beforeClose=="function"&&!await e.beforeClose()||(s.value=!1,document.body.removeEventListener("click",h),document.body.removeEventListener("mousedown",h),document.body.removeEventListener("wheel",h,!0),document.removeEventListener("scroll",h),c(),t.emit("hidden")))}h=w=>{var b;if(!o.value)return;const y=o.value.contains(w.target);if(w.type==="scroll"||w.type==="wheel"&&y){p();return}if(w.target.closest(".time-picker-panel"))return;const A=(b=w.target)==null?void 0:b.closest(".popover");if(A&&u.value&&A===u.value){w.type!=="scroll"&&w.type!=="wheel"&&w.stopPropagation();return}if(!y&&s.value){const g=o.value.closest(".popover");g&&g.removeEventListener("click",h),p()}};async function m(w){if(u.value&&(e.showArrow===!1||e.showArrow&&n.value)&&w){c(),s.value=!0,o.value=w,r.value&&d(w),await i.nextTick(),f(w),document.body.addEventListener("click",h),document.body.addEventListener("mousedown",h),document.body.addEventListener("wheel",h,!0),document.addEventListener("scroll",h),(top==null?void 0:top.document)!==document&&(top==null||top.document.addEventListener("mousedown",h));const y=w.closest(".popover");y&&y.addEventListener("click",h),t.emit("shown")}}return t.expose({hide:p,popoverRef:u,show:m,shown:l,isShow:s}),{showPopover:s,hidePopverOnClickBodyHandler:h}}function Lh(e,t,n,u,o,r){const{popoverWidth:a,fitToReference:s,followToReferencePosition:l}=o;function d(){var f;if(r.value&&((f=r.value.style)==null?void 0:f.display)!=="none"&&n.value){l(n.value);const c=n.value.getBoundingClientRect();u.value&&c.width!==a.value&&s(n.value)}}return{onResize:d}}function Ph(e,t=500){const n=i.ref(e.value);let u;const o=i.watch(e,a=>{clearTimeout(u),u=setTimeout(()=>{n.value=a},t)}),r=()=>{clearTimeout(u),o()};return i.onUnmounted(r),{delayedValue:n,cleanup:r}}const Kt=i.defineComponent({name:"FXPopover",props:Ka,emits:["shown","hidden"],setup(e,t){const n=i.ref(),u=i.ref(),o=i.ref(e.reference),r=i.ref(e.keepWidthWithReference),a=i.computed(()=>!!e.title),s=Nh(e),{host:l}=s,d=Ih(e,n,u,s),{position:f,arrowStyle:c,popoverStyle:h,fitToReference:p,locateToReference:m}=d,{showPopover:w,hidePopverOnClickBodyHandler:y}=Oh(e,t,n,u,o,r,d),{onResize:A}=Lh(e,t,o,r,d,u),b=i.computed(()=>{let T=f.value;T==="top-left"&&(T="top");const D=`popover in popover-${T}`,U=`bs-popover-${T}`,_={"popover-fitcontent":e.fitContent,fade:!0};_[D]=!0,_[U]=!0;const N=(e.class||"").split(" ");return e.isSimpleTips&&N.unshift("popover-tips"),N.reduce((I,C)=>(I[C]=!0,I),_),_}),g=i.computed(()=>({"popover-content":!0,"popover-body":!0})),x=i.computed(()=>{const T={};return T.opacity=w.value?1:0,T.visibility=w.value?"visible":"hidden",T.zIndex=1060,T}),k=i.computed(()=>e.isSimpleTips?!0:e.showArrow),{delayedValue:F}=Ph(x,50);return i.onMounted(()=>{var T;r.value&&p(o.value),e.reference&&m(o.value),window.addEventListener("resize",A),(T=u.value)==null||T.focus()}),i.onUnmounted(()=>{document.body.removeEventListener("click",y),window.removeEventListener("resize",A),w.value=!1}),()=>i.createVNode(i.Teleport,{to:l},{default:()=>{var T;return[i.withDirectives(i.createVNode("div",{tabindex:"-1",ref:u,class:b.value,style:{...h.value,...F.value},onMousedown:D=>{D.stopPropagation()},onClick:D=>{D.stopPropagation()}},[k.value&&i.createVNode("div",{ref:n,class:"popover-arrow arrow",style:c.value},null),a.value&&i.createVNode("h3",{class:"popover-title popover-header"},[e.title]),i.createVNode("div",{class:g.value},[t.slots.default&&((T=t.slots)==null?void 0:T.default())])]),[[i.vShow,w.value]])]}})}}),au="FarrisX_PopoverInstancesKey";window[au]=window[au]||new WeakMap;function To(e,t,n){e.stopPropagation();const u=t.value;u&&u.value&&!u.value.isShow&&(u.value.show(n),window[au].set(n,u.value))}function Qa(e,t,n){e.stopPropagation(),t.value.value.hide(),window[au].delete(n)}function Vh(e,t,n){e.stopPropagation();const u=t.value;u&&u.value&&(u.value.isShow?Qa(e,t,n):To(e,t,n))}function Ja(e,t,n){t.arg&&t.arg==="toggle"?Vh(e,t,n):To(e,t,n)}const es={mounted:(e,t,n)=>{t.modifiers.hover?(e.addEventListener("mouseenter",u=>To(u,t,e)),e.addEventListener("mouseleave",u=>Qa(u,t,e))):t.modifiers.click?e.addEventListener("click",u=>Ja(u,t,e)):e.addEventListener("click",u=>Ja(u,t,e)),e.classList.add("v-popover")},unMounted:(e,t,n)=>{}};Kt.install=e=>{e.component(Kt.name,Kt),e.directive("fxpopover",es)};const ts={type:{type:String,default:"StartedToDo"},status:{type:String,default:"NotStart"},message:{type:String,default:""},taskDetail:{type:String,default:""},todoList:{type:Array,default:[]},detailViewMode:{type:String,default:"hover"},initExpanded:{type:Boolean,default:!1},showLoading:{type:Boolean,default:!0},showLabel:{type:Boolean,default:!0},loading:Object,shimmer:{type:Boolean,default:!0},outputMode:{type:String,default:"streaming"},listStatus:{type:String,default:void 0},completedCount:{type:Number,default:void 0},totalCount:{type:Number,default:void 0}},ns={items:{type:Array,default:()=>[]}},rs={id:{type:Number||String,default:0},status:{type:String},task:{type:String,default:""},todoList:{type:Array,default:[]},detailViewMode:{type:String,default:"expand"},initExpanded:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},showLabel:{type:Boolean,default:!1},shimmer:{type:Boolean,default:!0},title:{type:String,default:""},message:{type:String,default:""},outputMode:{type:String,default:"full"}},su=i.defineComponent({name:"FXTodoListItemView",props:rs,emits:["click"],setup(e,{emit:t}){const{propertyStates:n,registerProperty:u,updatePropertyValue:o,startStreaming:r}=Pr();u("title",e.title??""),u("task",e.task??""),u("detail",e.message??""),i.watch([()=>e.title,()=>e.task,()=>e.message],([p,m,w])=>{o("title",p??""),o("task",m??""),o("detail",w??"")});const a=i.computed(()=>["f-chat-todo-item",{"is-done":e.status==="Done","is-working":e.status==="Working","is-not-start":e.status==="NotStart","no-shimmer":!e.shimmer}]),s=i.computed(()=>["f-chat-todo-task",{"is-done":e.status==="Done"}]);function l(){t("click",e,e.id)}const d=i.computed(()=>e.outputMode==="streaming"),f=i.computed(()=>{var p;return d.value?((p=n.title)==null?void 0:p.displayedValue)??"":e.title??""}),c=i.computed(()=>{var p;return d.value?((p=n.task)==null?void 0:p.displayedValue)??"":e.task??""}),h=i.computed(()=>{var p;return d.value?((p=n.detail)==null?void 0:p.displayedValue)??"":e.message??""});return i.onMounted(()=>{d.value&&r()}),()=>i.createVNode("li",{key:e.id,class:a.value,onClick:l},[e.todoList&&e.todoList.length>0&&i.createVNode(Qt,{todoList:e.todoList,status:e.status,message:e.task,taskDetail:e.message,detailViewMode:e.detailViewMode,initExpanded:e.initExpanded,showLoading:e.showLoading,showLabel:e.showLabel,outputMode:e.outputMode},null),!e.todoList||e.todoList.length===0&&i.createVNode(i.Fragment,null,[e.showLoading&&i.createVNode(wn,{status:e.status??"Done",variant:"todo"},null),f.value?i.createVNode("div",{class:"f-chat-todo-task-wrapper"},[i.createVNode("span",{class:s.value},[f.value]),i.createVNode("div",{class:"f-chat-todo-task-description"},[c.value]),h.value?i.withDirectives(i.createVNode("div",{class:"f-chat-todo-task-description"},[h.value]),[[i.resolveDirective("overflow-tooltip")]]):null]):i.createVNode("div",{class:"f-chat-todo-task-wrapper"},[i.createVNode("span",{class:s.value},[c.value]),h.value?i.withDirectives(i.createVNode("div",{class:"f-chat-todo-task-description"},[h.value]),[[i.resolveDirective("overflow-tooltip")]]):null])])])}}),nr=i.defineComponent({name:"FXTodoListView",props:ns,setup(e){return()=>{var t;return(t=e.items)!=null&&t.length?i.createVNode("ul",{class:"f-chat-todo-items"},[e.items.map((n,u)=>i.createVNode(su,i.mergeProps({key:u},n),null))]):null}}}),Rh=300,Mh={Working:"正在执行任务",Done:"已完成任务",NotStart:"待执行任务"},Qt=i.defineComponent({name:"FXStartedTodo",props:ts,setup(e){const t=i.ref(null),n=i.ref(null),u=i.ref(null),o=i.ref(null),r=i.computed(()=>e.outputMode==="streaming"),{displayContent:a}=mi(()=>({detail:e.taskDetail??""}),()=>!0,r,{charInterval:30}),s=i.ref(e.initExpanded),l=i.computed(()=>({"f-chat-message-started-todo--content":!0,"d-none":!s.value}));function d(){e.detailViewMode!=="expand"&&(o.value!=null&&(window.clearTimeout(o.value),o.value=null),u.value=window.setTimeout(()=>{t.value&&n.value&&n.value.show(t.value),u.value=null},Rh))}function f(){e.detailViewMode!=="expand"&&(u.value!=null&&(window.clearTimeout(u.value),u.value=null),o.value=window.setTimeout(()=>{var b,g;(g=(b=n.value)==null?void 0:b.hide)==null||g.call(b),o.value=null},150))}function c(){if(e.detailViewMode==="none")return null;const b=a.value.detail??"";return i.createVNode(i.Fragment,null,[b?i.createVNode("div",{class:"f-chat-started-todo-task-detail"},[b]):null,i.createVNode(nr,{items:e.todoList},null)])}function h(){e.detailViewMode==="expand"&&(s.value=!s.value)}function p(){return e.detailViewMode==="expand"?i.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:s.value?"rotate(0deg)":"rotate(180deg)",transition:"all 0.3s ease-in-out"}},null):null}function m(){return e.detailViewMode==="hover"&&i.createVNode(Kt,{ref:n,class:"f-chat-started-todo-popover"},{default:()=>[i.createVNode("div",{class:"f-chat-started-todo-popover-content",onMouseenter:()=>{o.value!=null&&(window.clearTimeout(o.value),o.value=null)},onMouseleave:f},[c()])]})}const w=i.computed(()=>e.listStatus==="completed"),y=i.computed(()=>{const b=e.todoList??[],g=e.totalCount??b.length;return{done:e.completedCount??b.filter(k=>(k==null?void 0:k.status)==="Done").length,total:g}});function A(){if(!w.value)return null;const{done:b,total:g}=y.value,x=g>0?`已完成 (${b}/${g})`:"已完成";return i.createVNode("span",{class:"f-chat-started-todo-completed-chip","aria-label":x},[x])}return()=>i.createVNode("div",{ref:t,class:["f-chat-message-started-todo",{"is-working":e.status==="Working","is-completed":w.value}],onMouseenter:d,onMouseleave:f},[i.createVNode("div",{class:"f-chat-message-started-todo--header",onClick:h},[e.showLabel&&i.createVNode("span",{class:"f-chat-started-todo-label"},[Mh[e.status]]),i.createVNode("span",{class:"f-chat-started-todo-message",innerHTML:e.message},null),A(),p()]),e.detailViewMode==="expand"&&i.createVNode("div",{class:l.value},[c()]),m()])}});Qt.install=e=>{e.component(Qt.name,Qt)};const Bh=i.defineComponent({name:"FXBubbleThoughtChain",props:Fh,setup(e,t){const{elapsedSeconds:n,hasEverStarted:u,start:o,stop:r,reset:a}=Hu(),s=i.computed(()=>{var c;return((c=e.content)==null?void 0:c.status)==="Done"}),l=i.computed(()=>{var c;return((c=e.content)==null?void 0:c.message)??"正在思考......"}),d=i.computed(()=>{var p,m;const c=((p=e.content)==null?void 0:p.doneMessage)??((m=e.content)==null?void 0:m.message)??"思考完成",h=u.value?`(用时${n.value}秒)`:"";return""+c+h}),f=i.computed(()=>s.value?d.value:l.value);return i.watch(()=>{var c;return(c=e.content)==null?void 0:c.status},c=>{c==="Working"?o():c==="Done"?r():a()},{immediate:!0}),i.onUnmounted(()=>{a()}),t.expose({instance:{get loadDone(){return e.content?s.value:!0}}}),()=>{var c,h,p,m,w,y;return e.content?i.createVNode(Qt,{status:((c=e.content)==null?void 0:c.status)??"Working",message:f.value,todoList:(h=e.content)==null?void 0:h.todoList,detailViewMode:((p=e.content)==null?void 0:p.detailViewMode)??"expand",showLabel:!1,showLoading:!0,initExpanded:!0,listStatus:(m=e.content)==null?void 0:m.listStatus,completedCount:(w=e.content)==null?void 0:w.completedCount,totalCount:(y=e.content)==null?void 0:y.totalCount},null):null}}}),rr=i.defineComponent({name:"UserAuthMessage",props:{content:{type:Object,required:!0},onConfirm:{type:Function,default:void 0}},setup(e){return()=>i.createVNode("div",{class:"f-ec-auth"},[i.createVNode("div",{class:"f-ec-auth-desc"},[e.content.description]),i.createVNode("div",{class:"f-ec-auth-actions"},[e.content.options.map(t=>i.createVNode("button",{key:t.optionId,type:"button",class:"f-ec-auth-btn",onClick:()=>{var n;(n=e.onConfirm)==null||n.call(e,t.optionId,t.name,t.message??t.name),console.info("[UserAuth]",t.optionId,t.name)}},[t.name]))])])}}),zh=300,jh={read_file:"tool_file",write_file:"tool_file",edit_file:"tool_file",glob:"tool_file",grep:"tool_file",bash:"tool_command",web_fetch:"tool_internet",web_search:"tool_internet",todo_create:"tool_task",todo_list:"tool_task",todo_get:"tool_task",todo_update:"tool_task",ask_user:"tool_interaction",core_memory:"tool_memory",add_daily_note:"tool_memory",lint_json:"dateselect",lint_markdown:"dateselect",output_validation:"dateselect",load_skill_through_path:"tool_mcp"};function Hh(e){return e?e.startsWith("mcp:")?"tool_mcp":jh[e]??"thinking_tool":"thinking_tool"}const vn=i.defineComponent({name:"FXToolUseMessage",props:{content:{type:Object,required:!0}},setup(e){const t=i.computed(()=>e.content.toolResultApplied===!0||String(e.content.result??"").trim().length>0),n=i.computed(()=>e.content.success===!1),u=i.ref(!1);let o=setTimeout(()=>{u.value=!0},zh);i.onBeforeUnmount(()=>{o&&clearTimeout(o)});const r=i.computed(()=>t.value),a=i.computed(()=>u.value&&!t.value),s=i.computed(()=>n.value?"执行失败":r.value?"执行完成":"调用中"),l=i.ref(!1),d=i.computed(()=>({"f-chat-tool-use":!0,"is-done":r.value,"is-error":n.value})),f=i.computed(()=>({"f-chat-tool-use-status":!0,"is-done":r.value&&!n.value,"is-run":a.value&&!n.value,"is-error":n.value}));i.watch(()=>[e.content.result,e.content.toolResultApplied,e.content.success],()=>{t.value&&(l.value=!1)},{flush:"post"});const c=()=>t.value?i.createVNode("div",{class:"f-chat-tool-use-result"},[e.content.result??""]):null;return()=>i.createVNode("div",{class:d.value},[i.createVNode("div",{class:"f-chat-tool-use-header",onClick:()=>{l.value=!l.value}},[i.createVNode("i",{class:"fx-icon fx-icon-"+Hh(e.content.toolName)+" tool-icon"},null),i.createVNode("span",{class:"f-chat-tool-use-name"},[e.content.toolDescription??"tool"]),i.createVNode("div",{class:f.value},[n.value?i.createVNode(wn,{status:"Error"},null):i.createVNode(wn,{status:r.value?"Done":a.value?"Working":"NotStart"},null),i.createVNode("span",{class:"f-chat-tool-use-status-text"},[s.value])]),i.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:l.value?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease"}},null)]),l.value&&i.createVNode("div",{class:"f-chat-tool-use-content"},[c()])])}});vn.install=e=>{e.component(vn.name,vn)};const ur=i.defineComponent({name:"FXBubble",components:{"fx-user-auth-inline":rr,"fx-app-preview-inline":at,FXToolUse:vn},props:Ir,setup(e,t){const n=i.shallowRef(),u=i.ref(),o=i.ref(),r=i.computed(()=>!!e.showAvatar),a=i.computed(()=>r.value===!0||e.header==="ContentHeader"),s=i.computed(()=>t.slots.leftFooter||t.slots.rightFooter),l=i.computed(()=>{var C;return Ae({},(C=e.styles)==null?void 0:C.footer)}),d=C=>{if(e.attachmentRowClickOpensPreview!==!1&&e.onPreview){if(C.type==="md"&&C.content){e.onPreview({content:C.content,contentType:"markdown"});return}if(C!=null&&C.url){const P=C!=null&&C.fullScreenPreview?"fullScreen":"splitScreen";e.onPreview({url:C.url,previewMode:P,title:C.name})}}},f=C=>{if(e.attachmentRowClickOpensPreview===!1||!e.onPreview)return;const P=C==null?void 0:C.filter(E=>E.type==="md"&&E.content);if(P.length===0)return;const V=Object.fromEntries(P.map(E=>[E.name,E.content??""]));e.onPreview({contentMap:V,contentType:"markdown"})},{renderFileEmbeddedContent:c,renderPageEmbeddedContent:h}=xi(),p=i.ref(""),m=i.computed(()=>{var P,V;if((P=e.content)!=null&&P.footerContent)return e.content.footerContent;const C=(V=e.content)==null?void 0:V.structuredContent;return C&&(C.footerTemplate||C.footerUrl||C.footerFile)?{type:C.footerUrl?"page":C.footerFile?"file":"template",pageUrl:C.footerUrl,fileContent:C.footerFile,template:C.footerTemplate,width:C.footerWidth,height:C.footerHeight}:null});i.watch(()=>{var C;return(C=m.value)==null?void 0:C.width},C=>{if(!C){p.value="";return}if(C.endsWith("%")){const P=parseFloat(C);isNaN(P)||i.nextTick(()=>{var E,R;const V=(R=(E=n.value)==null?void 0:E.parentElement)==null?void 0:R.clientWidth;V&&(p.value=`${V*P/100}px`)})}else p.value=C},{immediate:!0});const w=C=>{if(!C||C.length===0)return"我";const P=C.charAt(0);return/[\u4e00-\u9fa5]/.test(P)?P:P.toUpperCase()};function y(){return e.header==="ContentHeader"?Ql:Jl}const A=y(),{renderHeader:b}=A(e,t),g=()=>{var V,E,R;const C=((V=e.content)==null?void 0:V.sender)??"发送人",P=w(((E=e.content)==null?void 0:E.sender)??"");return i.createVNode("div",{class:"f-chat-bubble-avatar"},[(R=e.content)!=null&&R.avatar?i.createVNode("img",{src:e.content.avatar,alt:C},null):i.createVNode("div",{class:"f-chat-bubble-avatar-initial"},[P])])},x=()=>{var P;const C=(P=e.content)==null?void 0:P.toolUseAboveText;return C!=null&&C.length?i.createVNode("div",{class:"f-chat-bubble-tool-use-group"},[C.map((V,E)=>i.createVNode(vn,{key:V.toolUseId??`tu-${E}`,content:V},null))]):null},k=()=>{var C;return(C=e.content)!=null&&C.thinkingContent?i.createVNode(Th,{ref:u,content:e.content.thinkingContent,outputMode:e.outputMode},null):null},F=()=>{var C;return(C=e.content)!=null&&C.startedTodo?i.createVNode(Bh,{ref:o,content:e.content.startedTodo},null):null},T=C=>{if(!(C!=null&&C.type))return null;const{type:P}=C;return P==="page"&&C.pageUrl?h(C,{onNavigate:V=>{var E;(E=e.onPreview)==null||E.call(e,{url:V})}}):P==="file"&&C.fileContent?c(C,{onPreviewFile:d,onBatchPreviewFile:f}):P==="template"&&C.template?C.template():null},D=()=>{var E,R,M;if(!((M=(R=(E=e.content)==null?void 0:E.structuredContent)==null?void 0:R.sections)!=null&&M.length))return null;const{sections:C,showDivider:P}=e.content.structuredContent,V=$=>{const{content:re,label:te}=$;return te||re&&typeof re=="string"?i.createVNode(i.Fragment,null,[i.createVNode("span",{class:"f-chat-bubble-structured-section-item-dot"},null),$.label&&i.createVNode("span",{class:"f-chat-bubble-structured-section-item-label"},[$.label]),i.createVNode("span",{class:"f-chat-bubble-structured-section-item-content"},[$.content])]):T($.content)};return i.createVNode("div",{class:["f-chat-bubble-structured",{"structure-content-divider":P}]},[C.map(($,re)=>i.createVNode("div",{key:re,class:["f-chat-bubble-structured-section",{"section-divider":$.showDivider}]},[i.createVNode("div",{class:"f-chat-bubble-structured-section-header"},[$.icon&&($.icon.startsWith("http")||$.icon.startsWith("//")||$.icon.startsWith("../")||/\.(png|jpg|jpeg|gif|svg|webp|bmp)$/i.test($.icon)?i.createVNode("img",{alt:$.title,src:$.icon,class:"f-chat-bubble-structured-section-icon"},null):i.createVNode("i",{class:`fx-icon ${$.icon}`,style:$.iconStyle},null)),i.createVNode("span",{class:"f-chat-bubble-structured-section-title"},[$.title])]),$.items&&$.items.length>0&&i.createVNode("div",{class:"f-chat-bubble-structured-section-items"},[$.items.map((te,z)=>i.createVNode("div",{key:z,class:"f-chat-bubble-structured-section-item"},[V(te)]))])]))])},U=()=>{const C=m.value;if(!C)return null;const P={};return p.value&&(P.width=p.value),C.height&&(P.height=`${C.height}px`),i.createVNode("div",{class:"f-chat-bubble-content-footer",style:P},[T(C)])},_=()=>{const C=e.attachmentRowClickOpensPreview!==!1?d:void 0;return i.createVNode(yi,{attachments:e.attachments??[],enableFixedWidth:e.placement==="end",showDownloadButton:e.attachmentShowDownload!==!1,onPreview:C,onBatchPreview:e.attachmentRowClickOpensPreview!==!1?f:void 0,role:e.role},null)},N=()=>{var P;const C=(P=e.content)==null?void 0:P.compositeInlineBlocks;return C!=null&&C.length?C.map((V,E)=>V.kind==="userAuth"?i.createVNode(i.resolveComponent("fx-user-auth-inline"),{key:`inline-auth-${E}`,content:V.content,onConfirm:e.onUserAuthConfirm},null):i.createVNode(i.resolveComponent("fx-app-preview-inline"),{key:`inline-preview-${E}`,content:V.content,onOpen:e.onPreview},null)):null},I=()=>{var C,P,V,E,R,M;return i.createVNode("div",{class:`f-chat-bubble-content ${e.placement}`},[a.value&&b(),_(),i.createVNode("div",{class:`f-chat-bubble-content-text-wrapper ${e.placement}`},[(C=e.content)!=null&&C.compositeOrderedBeforeMarkdownRender?e.content.compositeOrderedBeforeMarkdownRender():i.createVNode(i.Fragment,null,[k(),x()]),F(),D(),i.createVNode(Sh,{title:((P=e.content)==null?void 0:P.title)??"",subtitle:((V=e.content)==null?void 0:V.subtitle)??"",text:typeof((E=e.content)==null?void 0:E.text)=="string"?e.content.text:"",textFormat:((R=e.content)==null?void 0:R.textFormat)??"plain",placement:e.placement,onDynamicComponentsDetected:e==null?void 0:e.onDynamicComponentsDetected,onShowDynamicComponent:e==null?void 0:e.onShowDynamicComponent},null),U(),(M=e.compositeTailRender)==null?void 0:M.call(e),N()]),s.value&&i.createVNode("div",{class:"f-chat-bubble-footer",style:l.value},[t.slots.leftFooter&&i.createVNode("div",{class:"f-chat-bubble-footer-left"},[t.slots.leftFooter()]),t.slots.rightFooter&&i.createVNode("div",{class:"f-chat-bubble-footer-right"},[t.slots.rightFooter()])])])};return()=>i.createVNode("div",{class:"f-chat-bubble-container",ref:n},[i.createVNode("div",{class:`f-chat-bubble-wrapper ${e.placement}`},[e.placement==="start"?i.createVNode(i.Fragment,null,[r.value&&g(),I()]):i.createVNode(i.Fragment,null,[I(),r.value&&g()])])])}}),us={customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""}},Fo=i.defineComponent({name:"FXBubbleAction",props:us,setup(e,t){const n=i.computed(()=>Ae({},e.customStyle));return()=>t.slots.default&&i.createVNode("span",{class:"f-chat-bubble-footer-action",style:n.value},[t.slots.default()])}});ur.install=e=>{e.component(ur.name,ur),e.component(Fo.name,Fo)};const os={items:{type:Array,default:()=>[]},modelValue:{type:Number,default:0},direction:{type:String,default:"horizontal"},autoplay:{type:Boolean,default:!1},interval:{type:Number,default:3e3},loop:{type:Boolean,default:!0},trigger:{type:String,default:"click"},indicatorPosition:{type:String,default:"inside"},arrowVisibility:{type:String,default:"hover"},showIndicator:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showInfo:{type:Boolean,default:!0},height:{type:[String,Number],default:"400px"},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})},customClass:{type:[String,Array,Object],default:""},customStyle:{type:[Object,String],default:""},buttonPosition:{type:String,default:"inner"}},is={item:{type:Object,default:()=>({})},index:{type:Number,default:0},active:{type:Boolean,default:!1},showInfo:{type:Boolean,default:!0},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},lu=i.defineComponent({name:"FXCarouselItem",props:is,emits:["click"],setup(e,{slots:t,emit:n}){const u=i.computed(()=>{var c;const f={"fx-carousel--item":!0,"fx-carousel--item-active":e.active};return ye(f,(c=e.classNames)==null?void 0:c.item)}),o=i.computed(()=>{var c,h;const f=Ae({},(c=e.styles)==null?void 0:c.item);return Ae(f,(h=e.styles)==null?void 0:h.item)}),r=()=>{var f,c,h;return e.item.image?i.createVNode("img",{class:["fx-carousel--item-image",(f=e.classNames)==null?void 0:f.image],style:(c=e.styles)==null?void 0:c.image,src:e.item.image,alt:(h=e.item.title)==null?void 0:h.toString()},null):null},a=()=>{var f,c,h,p;return e.item.content?i.createVNode("div",{class:["fx-carousel--item-content",(f=e.classNames)==null?void 0:f.content],style:(c=e.styles)==null?void 0:c.content},[e.item.content]):t.default?i.createVNode("div",{class:["fx-carousel--item-content",(h=e.classNames)==null?void 0:h.content],style:(p=e.styles)==null?void 0:p.content},[t.default()]):null},s=()=>{var f,c;return e.item.title?i.createVNode("h3",{class:["fx-carousel--item-title",(f=e.classNames)==null?void 0:f.title],style:(c=e.styles)==null?void 0:c.title},[e.item.title]):null},l=()=>{var f,c;return e.item.description?i.createVNode("p",{class:["fx-carousel--item-description",(f=e.classNames)==null?void 0:f.description],style:(c=e.styles)==null?void 0:c.description},[e.item.description]):null},d=f=>{e.item.disabled||n("click",f,e.item,e.index)};return()=>i.createVNode("div",{class:u.value,style:o.value,onClick:d},[r(),a(),e.showInfo&&i.createVNode("div",{class:"fx-carousel--item-info"},[s(),l()])])}});function $h(e){const{items:t,autoplay:n=!1,interval:u=3e3,loop:o=!0,direction:r="horizontal"}=e,a=i.ref(0),s=i.ref(!1),l=i.ref(null),d=i.computed(()=>t.length),f=i.computed(()=>d.value<=1);i.computed(()=>a.value===0?o?d.value-1:0:a.value-1),i.computed(()=>a.value===d.value-1?o?0:a.value:a.value+1);const c=i.computed(()=>{const g=-a.value*100;return{transform:r==="horizontal"?`translateX(${g}%)`:`translateY(${g}%)`,transition:"transform 0.5s ease"}}),h=g=>{g<0||g>=d.value||(a.value,a.value=g)},p=()=>{f.value||(a.value===d.value-1?h(o?0:a.value):h(a.value+1))},m=()=>{f.value||(a.value===0?h(o?d.value-1:0):h(a.value-1))},w=()=>{!n||f.value||(y(),l.value=window.setInterval(()=>{s.value||p()},u))},y=()=>{l.value&&(clearInterval(l.value),l.value=null)},A=()=>{s.value=!0,n&&y()},b=()=>{s.value=!1,n&&w()};return i.onMounted(()=>{w()}),i.onUnmounted(()=>{y()}),{currentIndex:a,totalItems:d,isSingleItem:f,trackStyle:c,goTo:h,next:p,prev:m,handleMouseEnter:A,handleMouseLeave:b}}const or=i.defineComponent({name:"FXCarousel",props:os,emits:["update:modelValue","change","item-click"],setup(e,{slots:t,emit:n}){const{currentIndex:u,isSingleItem:o,trackStyle:r,goTo:a,next:s,prev:l,handleMouseEnter:d,handleMouseLeave:f}=$h({items:e.items,autoplay:e.autoplay,interval:e.interval,loop:e.loop,direction:e.direction}),c=k=>{n("update:modelValue",k),n("change",k,u.value)},h=i.computed(()=>{var F;const k={"fx-carousel":!0,"fx-carousel--vertical":e.direction==="vertical","fx-carousel--single":o.value,"fx-carousel--button-outer":e.buttonPosition==="outer","fx-carousel--button-inner":e.buttonPosition==="inner"};return ye(k,(F=e.classNames)==null?void 0:F.root)}),p=i.computed(()=>{var T;const k={height:typeof e.height=="number"?`${e.height}px`:e.height},F=Ae(k,e.customStyle);return Ae(F,(T=e.styles)==null?void 0:T.root)}),m=i.computed(()=>{var F;const k={"fx-carousel--container":!0,"fx-carousel--container-hover":e.arrowVisibility==="hover"};return ye(k,(F=e.classNames)==null?void 0:F.container)}),w=i.computed(()=>{var F;return ye({"fx-carousel--track":!0},(F=e.classNames)==null?void 0:F.track)}),y=i.computed(()=>{var F;const k={"fx-carousel--indicator":!0,"fx-carousel--indicator-outside":e.indicatorPosition==="outside","fx-carousel--indicator-none":e.indicatorPosition==="none"||!e.showIndicator};return ye(k,(F=e.classNames)==null?void 0:F.indicator)}),A=k=>{var T,D;const F={"fx-carousel--arrow":!0,"fx-carousel--arrow-left":k==="left","fx-carousel--arrow-right":k==="right","fx-carousel--arrow-never":e.arrowVisibility==="never"||!e.showArrow};return F[`fx-carousel--arrow-${e.buttonPosition}`]=!0,ye(F,k==="left"?(T=e.classNames)==null?void 0:T.arrowLeft:(D=e.classNames)==null?void 0:D.arrowRight)},b=k=>{var D,U;if(o.value)return null;const F=k==="left"?l:s,T=t[k==="left"?"prevArrow":"nextArrow"];return i.createVNode("button",{class:A(k),style:k==="left"?(D=e.styles)==null?void 0:D.arrowLeft:(U=e.styles)==null?void 0:U.arrowRight,onClick:F,"aria-label":`${k} arrow`},[T?T():i.createVNode("i",{style:"font-size: 60px;",class:`fx-icon fx-icon-arrow-${k==="left"?"left":"right"}`},null)])},g=()=>{var k;return o.value||!e.showIndicator?null:i.createVNode("div",{class:y.value,style:(k=e.styles)==null?void 0:k.indicator},[e.items.map((F,T)=>{var D,U;return i.createVNode("button",{"aria-label":`indicator ${T}`,key:T,class:["fx-carousel--indicator-item",{"fx-carousel--indicator-item-active":T===u.value}],style:T===u.value?(D=e.styles)==null?void 0:D.indicatorItemActive:(U=e.styles)==null?void 0:U.indicatorItem,onClick:()=>{a(T),c(T)}},null)})])},x=()=>i.createVNode("div",{class:w.value,style:r.value},[e.items.map((k,F)=>i.createVNode(lu,{key:k.id||`item_${F}`,item:k,showInfo:e.showInfo,index:F,active:F===u.value,styles:e.styles,classNames:e.classNames,onClick:(T,D,U)=>{n("item-click",T,D,U)}},{default:()=>{var T,D;return[(T=t.item)==null?void 0:T.call(t,{item:k,index:F,active:F===u.value}),(D=t[`item${F}`])==null?void 0:D.call(t,{item:k,index:F,active:F===u.value})]}}))]);return()=>{var k;return i.createVNode("div",{class:h.value,style:p.value,onMouseenter:d,onMouseleave:f},[e.buttonPosition==="outer"&&b("left"),i.createVNode("div",{class:m.value,style:(k=e.styles)==null?void 0:k.container},[e.buttonPosition==="inner"&&b("left"),x(),e.buttonPosition==="inner"&&b("right")]),e.buttonPosition==="outer"&&b("right"),g()])}}});or.install=e=>{e.component(or.name,or),e.component(lu.name,lu)};const as={customStyle:{type:String,default:""},customClass:{type:String,default:""},direction:{Type:String,default:"row"}};function Uh(e){const t=i.ref(-1),n=i.ref(-1),u=i.ref(0),o=i.ref(0),r=i.ref(!1),a=i.ref(!1),s=i.computed(()=>({display:r.value?"block":"none",left:`${u.value}px`,cursor:"e-resize"})),l=i.computed(()=>({display:a.value?"block":"none",top:`${o.value}px`,cursor:"n-resize"})),d=i.computed(()=>{const y={display:a.value||r.value?"block":"none"};return o.value>0&&(y.cursor="n-resize"),y});function f(y,A,b,g){const x=e.value;if(x){const{left:k,right:F,width:T}=x.getBoundingClientRect();let D=y.clientX-k;g==="right"&&(D=F-y.clientX),D>A&&(D=A),D<b&&(D=b),g==="right"&&(D=T-D),u.value=D}}function c(y,A,b,g){const x=e.value;if(x){const{top:k,bottom:F,height:T}=x.getBoundingClientRect();let D=y.clientY-k;g==="bottom"&&(D=F-y.clientY),D>A&&(D=A),D<b&&(D=b),g==="bottom"&&(D=T-D),o.value=D}}function h(){const y=e.value;if(y){const{width:A,height:b}=y.getBoundingClientRect();return{width:A,height:b}}return null}function p(){const y=e.value;return y?Array.from(y.querySelectorAll("[data-position]")).reduce((A,b)=>{const g=b.getAttribute("data-position");return A=Object.assign(A,{[g]:b}),A},{}):null}function m(y,A){const b=h(),g=p();if(b&&g){const x=g==null?void 0:g.right,k=g==null?void 0:g.left;if(y==="left"&&k)return x?b.width-x.clientWidth-A:b.width-A;if(y==="right"&&x)return k?b.width-k.clientWidth-A:b.width-A}}function w(y,A){const b=h(),g=p();if(b&&g){const x=g==null?void 0:g.bottom,k=g==null?void 0:g.top;if(y==="top"&&k)return x?b.height-x.clientHeight-A:b.height-A;if(y==="bottom"&&x)return k?b.height-k.clientHeight-A:b.height-A}}return{horizontalResizeHandleStyle:s,verticalResizeHandleStyle:l,resizeOverlayStyle:d,showHorizontalResizeHandle:r,showVerticalResizeHandle:a,horizontalResizeBarPosition:t,verticalResizeBarPosition:n,verticalResizeHandleOffset:o,horizontalResizeHandleOffset:u,draggingHorizontalResizeHandle:f,draggingVerticalResizeHandle:c,getPanelMaxWidth:m,getPanelMaxHeight:w}}const An=i.defineComponent({name:"FXSplitter",props:as,emits:[],setup(e,t){const n=i.ref(),u=Uh(n),{horizontalResizeHandleStyle:o,verticalResizeHandleStyle:r,resizeOverlayStyle:a}=u;i.provide("splitter",{useResizeHandleComposition:u});const s=i.computed(()=>ye({"f-splitter":!0},e==null?void 0:e.customClass)),l=i.computed(()=>{const d={"flex-direction":e.direction==="row"?"row":"column"};return Ae(d,e==null?void 0:e.customStyle)});return()=>i.createVNode("div",{class:s.value,ref:n,style:l.value},[t.slots.default&&t.slots.default(),i.createVNode("div",{class:"f-splitter-resize-overlay",style:a.value},null),i.createVNode("div",{class:"f-splitter-horizontal-resize-proxy",style:o.value},null),i.createVNode("div",{class:"f-splitter-vertical-resize-proxy",style:r.value},null)])}}),Wh={customClass:{type:String,defaut:""},customStyle:{type:String,default:""},width:{type:Number},height:{type:Number},position:{type:String,default:"left"},visible:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},resizeHandle:{type:String,default:""},collapsable:{type:Boolean,default:!1},minWidth:{type:Number,default:100},minHeight:{type:Number,default:100},maxWidth:{type:Number,default:0},maxHeight:{type:Number,default:0}};function Gh(e,t){const n=i.ref(e.width),u=i.ref(e.height),{horizontalResizeBarPosition:o,horizontalResizeHandleOffset:r,showHorizontalResizeHandle:a,showVerticalResizeHandle:s,verticalResizeBarPosition:l,verticalResizeHandleOffset:d,draggingHorizontalResizeHandle:f,draggingVerticalResizeHandle:c,getPanelMaxWidth:h,getPanelMaxHeight:p}=t;let m="",w,y,A;const b=()=>e.maxWidth?e.maxWidth:h(m,e.minWidth)||0,g=()=>e.maxHeight?e.maxHeight:p(m,e.minHeight)||0;function x(T){if((m==="left"||m==="right")&&y){const{left:D}=y.getBoundingClientRect(),{width:U}=w.getBoundingClientRect(),_=T.clientX-D;let N=m==="left"?(U||0)+(_-o.value):(U||0)-(_-o.value);N=e.minWidth>0?Math.max(e.minWidth,N):N;const I=b();I!=null&&I>0&&(N=I>N?N:I),n.value=N}if((m==="top"||m==="bottom")&&y){const{top:D}=y.getBoundingClientRect(),{height:U}=w.getBoundingClientRect(),_=T.clientY-D;let N=m==="top"?(U||0)+(_-l.value):(U||0)-(_-l.value);N=e.minHeight>0?Math.max(e.minHeight,N):N;const I=g();I!=null&&I>0&&(N=I>N?N:I),u.value=N}r.value=0,d.value=0,o.value=-1,l.value=-1,a.value=!1,s.value=!1,document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",x),document.body.style.userSelect="",m="",w=null,y=null}function k(T,D,U){if(m=D,w=U,a.value=!0,y=T.composedPath().find(N=>N.className.split(" ")[0]==="f-splitter"),y){const{left:N}=y.getBoundingClientRect();r.value=T.clientX-N,o.value=T.clientX-N;const I=b();A=C=>f(C,I,e.minWidth,m),document.addEventListener("mousemove",A),document.addEventListener("mouseup",x),document.body.style.userSelect="none"}}function F(T,D,U){if(m=D,w=U,s.value=!0,y=T.composedPath().find(N=>N.className.split(" ")[0]==="f-splitter"),y){const{top:N}=y.getBoundingClientRect();d.value=T.clientY-N,l.value=T.clientY-N;const I=g();A=C=>c(C,I,e.minHeight,m),document.addEventListener("mousemove",A),document.addEventListener("mouseup",x),document.body.style.userSelect="none"}}return{actualWidth:n,actualHeight:u,onClickSplitterHorizontalResizeBar:k,onClickSplitterVerticalResizeBar:F}}const ir=i.defineComponent({name:"FSplitterPane",props:Wh,emits:[],setup(e,t){const n=i.ref(),u=i.inject("splitter"),{useResizeHandleComposition:o}=u,r=Gh(e,o),{actualHeight:a,actualWidth:s,onClickSplitterHorizontalResizeBar:l,onClickSplitterVerticalResizeBar:d}=r,f=i.ref(e.position),c=i.computed(()=>{const g={"f-splitter-pane":!0,"f-splitter-pane-main":f.value==="center","has-resize-bar":e.resizable};return g["f-splitter-pane-"+f.value]=!0,ye(g,e==null?void 0:e.customClass)}),h=i.computed(()=>e.resizeHandle?e.resizeHandle.split(",").filter(g=>["e","n","s","w"].find(x=>x===g)):[]),p=i.computed(()=>{const g={};return(s.value||s.value===0)&&(f.value==="left"||f.value==="right"||h.value.find(x=>x==="e")||h.value.find(x=>x==="w"))&&(g.width=`${s.value}px`),(a.value||a.value===0)&&(f.value==="bottom"||f.value==="top"||h.value.find(x=>x==="s")||h.value.find(x=>x==="n"))&&(g.height=`${a.value}px`),e.visible||(g.display="none"),Ae(g,e==null?void 0:e.customStyle)}),m=i.computed(()=>({"f-splitter-resize-bar":!0,"f-splitter-resize-bar-e":f.value==="left","f-splitter-resize-bar-n":f.value==="bottom","f-splitter-resize-bar-s":f.value==="top","f-splitter-resize-bar-w":f.value==="right"}));function w(g){return{e:"left",w:"right",s:"top",n:"bottom"}[g]||g}function y(g,x){x=w(x),["left","right"].find(k=>k===x)&&l(g,x,n.value),["top","bottom"].find(k=>k===x)&&d(g,x,n.value)}function A(){return h.value.length>0?h.value.map(g=>i.createVNode("span",{class:"f-splitter-resize-bar f-splitter-resize-bar-"+g,onMousedown:x=>y(x,g)},null)):i.createVNode("span",{class:m.value,onMousedown:g=>y(g,f.value)},null)}function b(){s.value=e.width,a.value=e.height,p.value}return t.expose({reset:b}),()=>i.createVNode("div",{ref:n,class:c.value,style:p.value,"data-position":f.value},[t.slots.default&&t.slots.default(),e.resizable&&A()])}});An.install=e=>{e.component(An.name,An),e.component(ir.name,ir)};const ss={previewConfig:{type:Object,default:()=>({})},onClose:{type:Function,default:()=>{}},onIframeLoad:{type:Function,default:()=>{}}},ls={content:{type:String,default:null}},Xh=e=>{const t=typeof e;return t!=="function"&&t!=="object"||e===null},qh=e=>{const t=e.flags===""?void 0:e.flags;return new RegExp(e.source,t)},ar=(e,t=new WeakMap)=>{if(e===null||Xh(e))return e;if(t.has(e))return t.get(e);if(e instanceof RegExp)return qh(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof Function)return e;if(e instanceof Map){const u=new Map;return t.set(e,u),e.forEach((o,r)=>{u.set(r,ar(o,t))}),u}if(e instanceof Set){const u=new Set;t.set(e,u);for(const o of e)u.add(ar(o,t));return u}if(Array.isArray(e)){const u=[];return t.set(e,u),e.forEach(o=>{u.push(ar(o,t))}),u}const n={};t.set(e,n);for(const u in e)Object.prototype.hasOwnProperty.call(e,u)&&(n[u]=ar(e[u],t));return n},Zh=(e,t=200)=>{let n=0;return(...u)=>new Promise(o=>{n&&(clearTimeout(n),o("cancel")),n=window.setTimeout(()=>{e.apply(void 0,u),n=0,o("done")},t)})},No=()=>`${Date.now().toString(36)}${Math.random().toString(36).substring(2)}`,cu=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Yh=new Set(["__proto__","constructor","prototype"]),Kh=e=>!Yh.has(e),Io=(e,t,n={})=>{if(Array.isArray(e)&&Array.isArray(t))return Oo(e,t,n);const{excludeKeys:u}=n,o=e,r=t;for(const a of Object.keys(r)){if(!Kh(a))continue;const s=r[a],l=o[a];u&&u(a)?o[a]=s:Array.isArray(s)&&Array.isArray(l)?o[a]=Oo(l,s,n):cu(s)&&cu(l)?o[a]=Io(l,s,n):o[a]=s}return e},Oo=(e,t,n)=>{const u=e.slice();return t.forEach((o,r)=>{const a=u[r];Array.isArray(o)&&Array.isArray(a)?u[r]=Oo(a,o,n):cu(o)&&cu(a)?u[r]=Io(a,o,n):u[r]=o}),u},X="md-editor",de="https://unpkg.com",Qh=`${de}/@highlightjs/cdn-assets@11.11.1/highlight.min.js`,cs={main:`${de}/prettier@3.8.1/standalone.js`,markdown:`${de}/prettier@3.8.1/plugins/markdown.js`},Jh={css:`${de}/cropperjs@1.6.2/dist/cropper.min.css`,js:`${de}/cropperjs@1.6.2/dist/cropper.min.js`},em=`${de}/screenfull@5.2.0/dist/screenfull.js`,tm=`${de}/mermaid@11.12.3/dist/mermaid.min.js`,nm={js:`${de}/katex@0.16.33/dist/katex.min.js`,css:`${de}/katex@0.16.33/dist/katex.min.css`},Lo={a11y:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/a11y-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/a11y-dark.min.css`},atom:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-dark.min.css`},github:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/github.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/github-dark.min.css`},gradient:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/gradient-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/gradient-dark.min.css`},kimbie:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-dark.min.css`},paraiso:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-dark.min.css`},qtcreator:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-dark.min.css`}},rm=`${de}/echarts@6.0.0/dist/echarts.min.js`,ds={"zh-CN":{toolbarTips:{bold:"加粗",underline:"下划线",italic:"斜体",strikeThrough:"删除线",title:"标题",sub:"下标",sup:"上标",quote:"引用",unorderedList:"无序列表",orderedList:"有序列表",task:"任务列表",codeRow:"行内代码",code:"块级代码",link:"链接",image:"图片",table:"表格",mermaid:"mermaid图",katex:"katex公式",revoke:"后退",next:"前进",save:"保存",prettier:"美化",pageFullscreen:"浏览器全屏",fullscreen:"屏幕全屏",preview:"预览",previewOnly:"仅预览",htmlPreview:"html代码预览",catalog:"目录",github:"源码地址"},titleItem:{h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",h6:"六级标题"},imgTitleItem:{link:"添加链接",upload:"上传图片",clip2upload:"裁剪上传"},linkModalTips:{linkTitle:"添加链接",imageTitle:"添加图片",descLabel:"链接描述:",descLabelPlaceHolder:"请输入描述...",urlLabel:"链接地址:",urlLabelPlaceHolder:"请输入链接...",buttonOK:"确定"},clipModalTips:{title:"裁剪图片上传",buttonUpload:"上传"},copyCode:{text:"复制代码",successTips:"已复制!",failTips:"复制失败!"},mermaid:{flow:"流程图",sequence:"时序图",gantt:"甘特图",class:"类图",state:"状态图",pie:"饼图",relationship:"关系图",journey:"旅程图"},katex:{inline:"行内公式",block:"块级公式"},footer:{markdownTotal:"字数",scrollAuto:"同步滚动"}},"en-US":{toolbarTips:{bold:"bold",underline:"underline",italic:"italic",strikeThrough:"strikeThrough",title:"title",sub:"subscript",sup:"superscript",quote:"quote",unorderedList:"unordered list",orderedList:"ordered list",task:"task list",codeRow:"inline code",code:"block-level code",link:"link",image:"image",table:"table",mermaid:"mermaid",katex:"formula",revoke:"revoke",next:"undo revoke",save:"save",prettier:"prettier",pageFullscreen:"fullscreen in page",fullscreen:"fullscreen",preview:"preview",previewOnly:"preview only",htmlPreview:"html preview",catalog:"catalog",github:"source code"},titleItem:{h1:"Lv1 Heading",h2:"Lv2 Heading",h3:"Lv3 Heading",h4:"Lv4 Heading",h5:"Lv5 Heading",h6:"Lv6 Heading"},imgTitleItem:{link:"Add Image Link",upload:"Upload Images",clip2upload:"Crop And Upload"},linkModalTips:{linkTitle:"Add Link",imageTitle:"Add Image",descLabel:"Desc:",descLabelPlaceHolder:"Enter a description...",urlLabel:"Link:",urlLabelPlaceHolder:"Enter a link...",buttonOK:"OK"},clipModalTips:{title:"Crop Image",buttonUpload:"Upload"},copyCode:{text:"Copy",successTips:"Copied!",failTips:"Copy failed!"},mermaid:{flow:"flow",sequence:"sequence",gantt:"gantt",class:"class",state:"state",pie:"pie",relationship:"relationship",journey:"journey"},katex:{inline:"inline",block:"block"},footer:{markdownTotal:"Character Count",scrollAuto:"Scroll Auto"}}},lt={editorExtensions:{highlight:{js:Qh,css:Lo},prettier:{standaloneJs:cs.main,parserMarkdownJs:cs.markdown},cropper:{...Jh},screenfull:{js:em},mermaid:{js:tm,enableZoom:!0},katex:{...nm},echarts:{js:rm}},editorExtensionsAttrs:{},editorConfig:{languageUserDefined:{},mermaidTemplate:{},renderDelay:500,zIndex:2e4},codeMirrorExtensions:e=>e,markdownItConfig:()=>{},markdownItPlugins:e=>e,mermaidConfig:e=>e,katexConfig:e=>e,echartsConfig:e=>e},um=({instance:e,ctx:t,props:n={}},u="default")=>{const o=(e==null?void 0:e.$slots[u])||(t==null?void 0:t.slots[u]);return(o?o(e):"")||n[u]},om="buildFinished",Po="errorCatcher",Vo="catalogChanged",im="pushCatalog",fs="rerender",am="taskStateChanged";class sm{constructor(){fe(this,"pools",{})}remove(t,n,u){const o=this.pools[t]&&this.pools[t][n];o&&(this.pools[t][n]=o.filter(r=>r!==u))}clear(t){this.pools[t]={}}on(t,n){return this.pools[t]||(this.pools[t]={}),this.pools[t][n.name]||(this.pools[t][n.name]=[]),this.pools[t][n.name].push(n.callback),this.pools[t][n.name].includes(n.callback)}emit(t,n,...u){this.pools[t]||(this.pools[t]={});const o=this.pools[t][n];o&&o.forEach(r=>{try{r(...u)}catch(a){console.error(`${n} monitor event exception!`,a)}})}}const ot=new sm,lm=(e,t)=>{if(!e)return e;const n=t.split(`
33
+ `),u=['<span rn-wrapper aria-hidden="true">'];return n.forEach(()=>{u.push("<span></span>")}),u.push("</span>"),`<span class="${X}-code-block">${e}</span>${u.join("")}`};async function hs(e){if(typeof e=="string"){if(window.isSecureContext&&navigator.clipboard)return await navigator.clipboard.writeText(e);{const t=document.createElement("textarea");let n=!1;if(t.value=e,t.style.position="fixed",t.style.opacity=0,t.style.zIndex="-10000",t.style.top="-10000",document.body.appendChild(t),t.select(),n=document.execCommand("copy"),document.body.removeChild(t),n)return;throw new Error('Failed to copy content via "execCommand"!')}}}const cm={copy:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-copy ${X}-icon"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>`,"collapse-tips":`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-chevron-left ${X}-icon"><circle cx="12" cy="12" r="10"/><path d="m14 16-4-4 4-4"/></svg>`,pin:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-pin ${X}-icon"><path d="M12 17v5"/><path d="M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"/></svg>`,"pin-off":`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-pin-off ${X}-icon"><path d="M12 17v5"/><path d="M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89"/><path d="m2 2 20 20"/><path d="M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11"/></svg>`,check:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check ${X}-icon"><path d="M20 6 9 17l-5-5"/></svg>`},St=(e,t)=>typeof t[e]=="string"?t[e]:cm[e],Ht=(e,t,n="")=>{var o;const u=document.getElementById(t.id);if(u)n!==""&&(Reflect.get(window,n)?(o=t.onload)==null||o.call(u,new Event("load")):t.onload&&u.addEventListener("load",t.onload));else{const r={...t};r.onload=null;const a=fm(e,r);t.onload&&a.addEventListener("load",t.onload),document.head.appendChild(a)}},dm=(e,t)=>{var n;(n=document.getElementById(t.id))==null||n.remove(),Ht(e,t)},fm=(e,t)=>{const n=document.createElement(e);return Object.keys(t).forEach(u=>{t[u]!==void 0&&(n[u]=t[u])}),n},hm=(e,t)=>{const n=new Map;return e==null||e.forEach(u=>{let o=u.querySelector(`.${X}-mermaid-action`);o?o.querySelector(`.${X}-mermaid-copy`)||o.insertAdjacentHTML("beforeend",`<span class="${X}-mermaid-copy">${St("copy",t.customIcon)}</span>`):(u.insertAdjacentHTML("beforeend",`<div class="${X}-mermaid-action"><span class="${X}-mermaid-copy">${St("copy",t.customIcon)}</span></div>`),o=u.querySelector(`.${X}-mermaid-action`));const r=o.querySelector(`.${X}-mermaid-copy`);let a=-1;const s=()=>{clearTimeout(a),hs(u.dataset.content||"").then(()=>{r.innerHTML=St("check",t.customIcon)}).catch(()=>{r.innerHTML=St("copy",t.customIcon)}).finally(()=>{a=window.setTimeout(()=>{r.innerHTML=St("copy",t.customIcon)},1500)})};r.addEventListener("click",s),n.set(u,{removeClick:()=>{r.removeEventListener("click",s)}})}),()=>{n.forEach(({removeClick:u})=>{u==null||u()}),n.clear()}},mm=(()=>{const e=t=>{if(!t)return()=>{};const n=t.firstChild;let u=1,o=0,r=0,a=!1,s,l,d,f=1;const c=()=>{n.style.transform=`translate(${o}px, ${r}px) scale(${u})`},h=x=>{x.touches.length===1?(a=!0,s=x.touches[0].clientX-o,l=x.touches[0].clientY-r):x.touches.length===2&&(d=Math.hypot(x.touches[0].clientX-x.touches[1].clientX,x.touches[0].clientY-x.touches[1].clientY),f=u)},p=x=>{if(x.preventDefault(),a&&x.touches.length===1)o=x.touches[0].clientX-s,r=x.touches[0].clientY-l,c();else if(x.touches.length===2){const k=Math.hypot(x.touches[0].clientX-x.touches[1].clientX,x.touches[0].clientY-x.touches[1].clientY)/d,F=u;u=f*(1+(k-1));const T=(x.touches[0].clientX+x.touches[1].clientX)/2,D=(x.touches[0].clientY+x.touches[1].clientY)/2,U=n.getBoundingClientRect(),_=(T-U.left)/F,N=(D-U.top)/F;o-=_*(u-F),r-=N*(u-F),c()}},m=()=>{a=!1},w=x=>{x.preventDefault();const k=.02,F=u;x.deltaY<0?u+=k:u=Math.max(.1,u-k);const T=n.getBoundingClientRect(),D=x.clientX-T.left,U=x.clientY-T.top;o-=D/F*(u-F),r-=U/F*(u-F),c()},y=x=>{a=!0,s=x.clientX-o,l=x.clientY-r},A=x=>{a&&(o=x.clientX-s,r=x.clientY-l,c())},b=()=>{a=!1},g=()=>{a=!1};return t.addEventListener("touchstart",h,{passive:!1}),t.addEventListener("touchmove",p,{passive:!1}),t.addEventListener("touchend",m),t.addEventListener("wheel",w,{passive:!1}),t.addEventListener("mousedown",y),t.addEventListener("mousemove",A),t.addEventListener("mouseup",b),t.addEventListener("mouseleave",g),()=>{t.removeEventListener("touchstart",h),t.removeEventListener("touchmove",p),t.removeEventListener("touchend",m),t.removeEventListener("wheel",w),t.removeEventListener("mousedown",y),t.removeEventListener("mousemove",A),t.removeEventListener("mouseup",b),t.removeEventListener("mouseleave",g)}};return(t,n)=>{const u=new Map;return t==null||t.forEach(o=>{let r=o.querySelector(`.${X}-mermaid-action`);r?r.querySelector(`.${X}-mermaid-zoom`)||r.insertAdjacentHTML("beforeend",`<span class="${X}-mermaid-zoom">${St("pin-off",n.customIcon)}</span>`):(o.insertAdjacentHTML("beforeend",`<div class="${X}-mermaid-action"><span class="${X}-mermaid-zoom">${St("pin-off",n.customIcon)}</span></div>`),r=o.querySelector(`.${X}-mermaid-action`));const a=r.querySelector(`.${X}-mermaid-zoom`),s=()=>{const l=u.get(o);if(l!=null&&l.removeEvent)l.removeEvent(),o.removeAttribute("data-grab"),u.set(o,{removeClick:l.removeClick}),a.innerHTML=St("pin-off",n.customIcon);else{const d=e(o);o.setAttribute("data-grab",""),u.set(o,{removeEvent:d,removeClick:l==null?void 0:l.removeClick}),a.innerHTML=St("pin",n.customIcon)}};a.addEventListener("click",s),u.set(o,{removeClick:()=>a.removeEventListener("click",s)})}),()=>{u.forEach(({removeEvent:o,removeClick:r})=>{o==null||o(),r==null||r()}),u.clear()}}})(),ms=new Set([!0,!1,"alt","title"]);function ps(e,t){return(Array.isArray(e)?e:[]).filter(([n])=>n!==t)}function gs(e,t){e&&e.attrs&&(e.attrs=ps(e.attrs,t))}function pm(e,t){if(!ms.has(e))throw new TypeError(`figcaption must be one of: ${[...ms]}.`);if(e==="alt")return t.content;const n=t.attrs.find(([u])=>u==="title");return Array.isArray(n)&&n[1]?(gs(t,"title"),n[1]):void 0}function gm(e,t){t=t||{},e.core.ruler.before("linkify","image_figures",function(n){let u=1;for(let o=1,r=n.tokens.length;o<r-1;++o){const a=n.tokens[o];if(a.type!=="inline"||!a.children||a.children.length!==1&&a.children.length!==3||a.children.length===1&&a.children[0].type!=="image")continue;if(a.children.length===3){const[d,f,c]=a.children;if(d.type!=="link_open"||f.type!=="image"||c.type!=="link_close")continue}if(o!==0&&n.tokens[o-1].type!=="paragraph_open"||o!==r-1&&n.tokens[o+1].type!=="paragraph_close")continue;const s=n.tokens[o-1];let l;if(s.type="figure_open",s.tag="figure",n.tokens[o+1].type="figure_close",n.tokens[o+1].tag="figure",t.dataType&&n.tokens[o-1].attrPush(["data-type","image"]),t.link&&a.children.length===1){[l]=a.children;const d=new n.Token("link_open","a",1);d.attrPush(["href",l.attrGet("src")]),a.children.unshift(d),a.children.push(new n.Token("link_close","a",-1))}if(l=a.children.length===1?a.children[0]:a.children[1],t.figcaption){const d=pm(t.figcaption,l);if(d){const[f]=e.parseInline(d,n.env);a.children.push(new n.Token("figcaption_open","figcaption",1)),a.children.push(...f.children),a.children.push(new n.Token("figcaption_close","figcaption",-1)),l.attrs&&(l.attrs=ps(l.attrs,"title"))}}if(t.copyAttrs&&l.attrs){const d=t.copyAttrs===!0?"":t.copyAttrs;s.attrs=l.attrs.filter(([f])=>f.match(d)).map(f=>Array.from(f))}if(t.tabindex&&(n.tokens[o-1].attrPush(["tabindex",u]),u++),t.lazy&&(l.attrs.some(([d])=>d==="loading")||l.attrs.push(["loading","lazy"])),t.async&&(l.attrs.some(([d])=>d==="decoding")||l.attrs.push(["decoding","async"])),t.classes&&typeof t.classes=="string"){let d=!1;for(let f=0,c=l.attrs.length;f<c&&!d;f++){const h=l.attrs[f];h[0]==="class"&&(h[1]=`${h[1]} ${t.classes}`,d=!0)}d||l.attrs.push(["class",t.classes])}if(t.removeSrc){const d=l.attrs.find(([f])=>f==="src");l.attrs.push(["data-src",d[1]]),gs(l,"src")}}})}const bm=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function ym(e,t){const n=e.posMax,u=e.pos;if(e.src.charCodeAt(u)!==126||t||u+2>=n)return!1;e.pos=u+1;let o=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===126){o=!0;break}e.md.inline.skipToken(e)}if(!o||u+1===e.pos)return e.pos=u,!1;const r=e.src.slice(u+1,e.pos);if(r.match(/(^|[^\\])(\\\\)*\s/))return e.pos=u,!1;e.posMax=e.pos,e.pos=u+1;const a=e.push("sub_open","sub",1);a.markup="~";const s=e.push("text","",0);s.content=r.replace(bm,"$1");const l=e.push("sub_close","sub",-1);return l.markup="~",e.pos=e.posMax+1,e.posMax=n,!0}function xm(e){e.inline.ruler.after("emphasis","sub",ym)}const wm=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function vm(e,t){const n=e.posMax,u=e.pos;if(e.src.charCodeAt(u)!==94||t||u+2>=n)return!1;e.pos=u+1;let o=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===94){o=!0;break}e.md.inline.skipToken(e)}if(!o||u+1===e.pos)return e.pos=u,!1;const r=e.src.slice(u+1,e.pos);if(r.match(/(^|[^\\])(\\\\)*\s/))return e.pos=u,!1;e.posMax=e.pos,e.pos=u+1;const a=e.push("sup_open","sup",1);a.markup="^";const s=e.push("text","",0);s.content=r.replace(wm,"$1");const l=e.push("sup_close","sup",-1);return l.markup="^",e.pos=e.posMax+1,e.posMax=n,!0}function Am(e){e.inline.ruler.after("emphasis","sup",vm)}var km=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,bs=new Set,Ro=typeof process=="object"&&process?process:{},ys=(e,t,n,u)=>{typeof Ro.emitWarning=="function"?Ro.emitWarning(e,t,n,u):console.error(`[${n}] ${t}: ${e}`)},du=globalThis.AbortController,xs=globalThis.AbortSignal;if(typeof du>"u"){xs=class{constructor(){fe(this,"onabort");fe(this,"_onabort",[]);fe(this,"reason");fe(this,"aborted",!1)}addEventListener(n,u){this._onabort.push(u)}},du=class{constructor(){fe(this,"signal",new xs);t()}abort(n){var u,o;if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let r of this.signal._onabort)r(n);(o=(u=this.signal).onabort)==null||o.call(u,n)}}};let e=((_l=Ro.env)==null?void 0:_l.LRU_CACHE_IGNORE_AC_WARNING)!=="1",t=()=>{e&&(e=!1,ys("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var Cm=e=>!bs.has(e),$t=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),ws=e=>$t(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?fu:null:null,fu=class extends Array{constructor(t){super(t),this.fill(0)}},_m=(Tt=class{constructor(t,n){fe(this,"heap");fe(this,"length");if(!v(Tt,Sn))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0}static create(t){let n=ws(t);if(!n)return[];ee(Tt,Sn,!0);let u=new Tt(t,n);return ee(Tt,Sn,!1),u}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},Sn=new WeakMap,ie(Tt,Sn,!1),Tt),Em=(In=class{constructor(t){ie(this,G);ie(this,it);ie(this,Je);ie(this,ct);ie(this,rn);ie(this,dt);ie(this,Dn);ie(this,Tn);ie(this,ft);fe(this,"ttl");fe(this,"ttlResolution");fe(this,"ttlAutopurge");fe(this,"updateAgeOnGet");fe(this,"updateAgeOnHas");fe(this,"allowStale");fe(this,"noDisposeOnSet");fe(this,"noUpdateTTL");fe(this,"maxEntrySize");fe(this,"sizeCalculation");fe(this,"noDeleteOnFetchRejection");fe(this,"noDeleteOnStaleGet");fe(this,"allowStaleOnFetchAbort");fe(this,"allowStaleOnFetchRejection");fe(this,"ignoreFetchAbort");ie(this,ke);ie(this,ht);ie(this,we);ie(this,he);ie(this,ne);ie(this,$e);ie(this,et);ie(this,Re);ie(this,Se);ie(this,mt);ie(this,De);ie(this,pt);ie(this,gt);ie(this,tt);ie(this,nt);ie(this,bt);ie(this,Gt);ie(this,Ue);ie(this,Fn);ie(this,un,()=>{});ie(this,It,()=>{});ie(this,Sr,()=>{});ie(this,rt,()=>!1);ie(this,on,t=>{});ie(this,Nn,(t,n,u)=>{});ie(this,Dr,(t,n,u,o)=>{if(u||o)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});fe(this,El,"LRUCache");let{max:n=0,ttl:u,ttlResolution:o=1,ttlAutopurge:r,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:l,dispose:d,onInsert:f,disposeAfter:c,noDisposeOnSet:h,noUpdateTTL:p,maxSize:m=0,maxEntrySize:w=0,sizeCalculation:y,fetchMethod:A,memoMethod:b,noDeleteOnFetchRejection:g,noDeleteOnStaleGet:x,allowStaleOnFetchRejection:k,allowStaleOnFetchAbort:F,ignoreFetchAbort:T,perf:D}=t;if(D!==void 0&&typeof(D==null?void 0:D.now)!="function")throw new TypeError("perf option must have a now() method if specified");if(ee(this,ft,D??km),n!==0&&!$t(n))throw new TypeError("max option must be a nonnegative integer");let U=n?ws(n):Array;if(!U)throw new Error("invalid max value: "+n);if(ee(this,it,n),ee(this,Je,m),this.maxEntrySize=w||v(this,Je),this.sizeCalculation=y,this.sizeCalculation){if(!v(this,Je)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(b!==void 0&&typeof b!="function")throw new TypeError("memoMethod must be a function if defined");if(ee(this,Tn,b),A!==void 0&&typeof A!="function")throw new TypeError("fetchMethod must be a function if specified");if(ee(this,Dn,A),ee(this,Gt,!!A),ee(this,we,new Map),ee(this,he,new Array(n).fill(void 0)),ee(this,ne,new Array(n).fill(void 0)),ee(this,$e,new U(n)),ee(this,et,new U(n)),ee(this,Re,0),ee(this,Se,0),ee(this,mt,_m.create(n)),ee(this,ke,0),ee(this,ht,0),typeof d=="function"&&ee(this,ct,d),typeof f=="function"&&ee(this,rn,f),typeof c=="function"?(ee(this,dt,c),ee(this,De,[])):(ee(this,dt,void 0),ee(this,De,void 0)),ee(this,bt,!!v(this,ct)),ee(this,Fn,!!v(this,rn)),ee(this,Ue,!!v(this,dt)),this.noDisposeOnSet=!!h,this.noUpdateTTL=!!p,this.noDeleteOnFetchRejection=!!g,this.allowStaleOnFetchRejection=!!k,this.allowStaleOnFetchAbort=!!F,this.ignoreFetchAbort=!!T,this.maxEntrySize!==0){if(v(this,Je)!==0&&!$t(v(this,Je)))throw new TypeError("maxSize must be a positive integer if specified");if(!$t(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");q(this,G,Gl).call(this)}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!x,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=$t(o)||o===0?o:1,this.ttlAutopurge=!!r,this.ttl=u||0,this.ttl){if(!$t(this.ttl))throw new TypeError("ttl must be a positive integer if specified");q(this,G,si).call(this)}if(v(this,it)===0&&this.ttl===0&&v(this,Je)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!v(this,it)&&!v(this,Je)){let _="LRU_CACHE_UNBOUNDED";Cm(_)&&(bs.add(_),ys("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",_,In))}}get perf(){return v(this,ft)}static unsafeExposeInternals(t){return{starts:v(t,gt),ttls:v(t,tt),autopurgeTimers:v(t,nt),sizes:v(t,pt),keyMap:v(t,we),keyList:v(t,he),valList:v(t,ne),next:v(t,$e),prev:v(t,et),get head(){return v(t,Re)},get tail(){return v(t,Se)},free:v(t,mt),isBackgroundFetch:n=>{var u;return q(u=t,G,me).call(u,n)},backgroundFetch:(n,u,o,r)=>{var a;return q(a=t,G,Bu).call(a,n,u,o,r)},moveToTail:n=>{var u;return q(u=t,G,Nr).call(u,n)},indexes:n=>{var u;return q(u=t,G,qt).call(u,n)},rindexes:n=>{var u;return q(u=t,G,Zt).call(u,n)},isStale:n=>{var u;return v(u=t,rt).call(u,n)}}}get max(){return v(this,it)}get maxSize(){return v(this,Je)}get calculatedSize(){return v(this,ht)}get size(){return v(this,ke)}get fetchMethod(){return v(this,Dn)}get memoMethod(){return v(this,Tn)}get dispose(){return v(this,ct)}get onInsert(){return v(this,rn)}get disposeAfter(){return v(this,dt)}getRemainingTTL(t){return v(this,we).has(t)?1/0:0}*entries(){for(let t of q(this,G,qt).call(this))v(this,ne)[t]!==void 0&&v(this,he)[t]!==void 0&&!q(this,G,me).call(this,v(this,ne)[t])&&(yield[v(this,he)[t],v(this,ne)[t]])}*rentries(){for(let t of q(this,G,Zt).call(this))v(this,ne)[t]!==void 0&&v(this,he)[t]!==void 0&&!q(this,G,me).call(this,v(this,ne)[t])&&(yield[v(this,he)[t],v(this,ne)[t]])}*keys(){for(let t of q(this,G,qt).call(this)){let n=v(this,he)[t];n!==void 0&&!q(this,G,me).call(this,v(this,ne)[t])&&(yield n)}}*rkeys(){for(let t of q(this,G,Zt).call(this)){let n=v(this,he)[t];n!==void 0&&!q(this,G,me).call(this,v(this,ne)[t])&&(yield n)}}*values(){for(let t of q(this,G,qt).call(this))v(this,ne)[t]!==void 0&&!q(this,G,me).call(this,v(this,ne)[t])&&(yield v(this,ne)[t])}*rvalues(){for(let t of q(this,G,Zt).call(this))v(this,ne)[t]!==void 0&&!q(this,G,me).call(this,v(this,ne)[t])&&(yield v(this,ne)[t])}[(Sl=Symbol.iterator,El=Symbol.toStringTag,Sl)](){return this.entries()}find(t,n={}){for(let u of q(this,G,qt).call(this)){let o=v(this,ne)[u],r=q(this,G,me).call(this,o)?o.__staleWhileFetching:o;if(r!==void 0&&t(r,v(this,he)[u],this))return this.get(v(this,he)[u],n)}}forEach(t,n=this){for(let u of q(this,G,qt).call(this)){let o=v(this,ne)[u],r=q(this,G,me).call(this,o)?o.__staleWhileFetching:o;r!==void 0&&t.call(n,r,v(this,he)[u],this)}}rforEach(t,n=this){for(let u of q(this,G,Zt).call(this)){let o=v(this,ne)[u],r=q(this,G,me).call(this,o)?o.__staleWhileFetching:o;r!==void 0&&t.call(n,r,v(this,he)[u],this)}}purgeStale(){let t=!1;for(let n of q(this,G,Zt).call(this,{allowStale:!0}))v(this,rt).call(this,n)&&(q(this,G,Yt).call(this,v(this,he)[n],"expire"),t=!0);return t}info(t){let n=v(this,we).get(t);if(n===void 0)return;let u=v(this,ne)[n],o=q(this,G,me).call(this,u)?u.__staleWhileFetching:u;if(o===void 0)return;let r={value:o};if(v(this,tt)&&v(this,gt)){let a=v(this,tt)[n],s=v(this,gt)[n];if(a&&s){let l=a-(v(this,ft).now()-s);r.ttl=l,r.start=Date.now()}}return v(this,pt)&&(r.size=v(this,pt)[n]),r}dump(){let t=[];for(let n of q(this,G,qt).call(this,{allowStale:!0})){let u=v(this,he)[n],o=v(this,ne)[n],r=q(this,G,me).call(this,o)?o.__staleWhileFetching:o;if(r===void 0||u===void 0)continue;let a={value:r};if(v(this,tt)&&v(this,gt)){a.ttl=v(this,tt)[n];let s=v(this,ft).now()-v(this,gt)[n];a.start=Math.floor(Date.now()-s)}v(this,pt)&&(a.size=v(this,pt)[n]),t.unshift([u,a])}return t}load(t){this.clear();for(let[n,u]of t){if(u.start){let o=Date.now()-u.start;u.start=v(this,ft).now()-o}this.set(n,u.value,u)}}set(t,n,u={}){var h,p,m,w,y,A,b;if(n===void 0)return this.delete(t),this;let{ttl:o=this.ttl,start:r,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:l}=u,{noUpdateTTL:d=this.noUpdateTTL}=u,f=v(this,Dr).call(this,t,n,u.size||0,s);if(this.maxEntrySize&&f>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),q(this,G,Yt).call(this,t,"set"),this;let c=v(this,ke)===0?void 0:v(this,we).get(t);if(c===void 0)c=v(this,ke)===0?v(this,Se):v(this,mt).length!==0?v(this,mt).pop():v(this,ke)===v(this,it)?q(this,G,Mu).call(this,!1):v(this,ke),v(this,he)[c]=t,v(this,ne)[c]=n,v(this,we).set(t,c),v(this,$e)[v(this,Se)]=c,v(this,et)[c]=v(this,Se),ee(this,Se,c),Ru(this,ke)._++,v(this,Nn).call(this,c,f,l),l&&(l.set="add"),d=!1,v(this,Fn)&&((h=v(this,rn))==null||h.call(this,n,t,"add"));else{q(this,G,Nr).call(this,c);let g=v(this,ne)[c];if(n!==g){if(v(this,Gt)&&q(this,G,me).call(this,g)){g.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:x}=g;x!==void 0&&!a&&(v(this,bt)&&((p=v(this,ct))==null||p.call(this,x,t,"set")),v(this,Ue)&&((m=v(this,De))==null||m.push([x,t,"set"])))}else a||(v(this,bt)&&((w=v(this,ct))==null||w.call(this,g,t,"set")),v(this,Ue)&&((y=v(this,De))==null||y.push([g,t,"set"])));if(v(this,on).call(this,c),v(this,Nn).call(this,c,f,l),v(this,ne)[c]=n,l){l.set="replace";let x=g&&q(this,G,me).call(this,g)?g.__staleWhileFetching:g;x!==void 0&&(l.oldValue=x)}}else l&&(l.set="update");v(this,Fn)&&((A=this.onInsert)==null||A.call(this,n,t,n===g?"update":"replace"))}if(o!==0&&!v(this,tt)&&q(this,G,si).call(this),v(this,tt)&&(d||v(this,Sr).call(this,c,o,r),l&&v(this,It).call(this,l,c)),!a&&v(this,Ue)&&v(this,De)){let g=v(this,De),x;for(;x=g==null?void 0:g.shift();)(b=v(this,dt))==null||b.call(this,...x)}return this}pop(){var t;try{for(;v(this,ke);){let n=v(this,ne)[v(this,Re)];if(q(this,G,Mu).call(this,!0),q(this,G,me).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(v(this,Ue)&&v(this,De)){let n=v(this,De),u;for(;u=n==null?void 0:n.shift();)(t=v(this,dt))==null||t.call(this,...u)}}}has(t,n={}){let{updateAgeOnHas:u=this.updateAgeOnHas,status:o}=n,r=v(this,we).get(t);if(r!==void 0){let a=v(this,ne)[r];if(q(this,G,me).call(this,a)&&a.__staleWhileFetching===void 0)return!1;if(v(this,rt).call(this,r))o&&(o.has="stale",v(this,It).call(this,o,r));else return u&&v(this,un).call(this,r),o&&(o.has="hit",v(this,It).call(this,o,r)),!0}else o&&(o.has="miss");return!1}peek(t,n={}){let{allowStale:u=this.allowStale}=n,o=v(this,we).get(t);if(o===void 0||!u&&v(this,rt).call(this,o))return;let r=v(this,ne)[o];return q(this,G,me).call(this,r)?r.__staleWhileFetching:r}async fetch(t,n={}){let{allowStale:u=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:l=0,sizeCalculation:d=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:m=this.allowStaleOnFetchAbort,context:w,forceRefresh:y=!1,status:A,signal:b}=n;if(!v(this,Gt))return A&&(A.fetch="get"),this.get(t,{allowStale:u,updateAgeOnGet:o,noDeleteOnStaleGet:r,status:A});let g={allowStale:u,updateAgeOnGet:o,noDeleteOnStaleGet:r,ttl:a,noDisposeOnSet:s,size:l,sizeCalculation:d,noUpdateTTL:f,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:m,ignoreFetchAbort:p,status:A,signal:b},x=v(this,we).get(t);if(x===void 0){A&&(A.fetch="miss");let k=q(this,G,Bu).call(this,t,x,g,w);return k.__returned=k}else{let k=v(this,ne)[x];if(q(this,G,me).call(this,k)){let U=u&&k.__staleWhileFetching!==void 0;return A&&(A.fetch="inflight",U&&(A.returnedStale=!0)),U?k.__staleWhileFetching:k.__returned=k}let F=v(this,rt).call(this,x);if(!y&&!F)return A&&(A.fetch="hit"),q(this,G,Nr).call(this,x),o&&v(this,un).call(this,x),A&&v(this,It).call(this,A,x),k;let T=q(this,G,Bu).call(this,t,x,g,w),D=T.__staleWhileFetching!==void 0&&u;return A&&(A.fetch=F?"stale":"refresh",D&&F&&(A.returnedStale=!0)),D?T.__staleWhileFetching:T.__returned=T}}async forceFetch(t,n={}){let u=await this.fetch(t,n);if(u===void 0)throw new Error("fetch() returned undefined");return u}memo(t,n={}){let u=v(this,Tn);if(!u)throw new Error("no memoMethod provided to constructor");let{context:o,forceRefresh:r,...a}=n,s=this.get(t,a);if(!r&&s!==void 0)return s;let l=u(t,s,{options:a,context:o});return this.set(t,l,a),l}get(t,n={}){let{allowStale:u=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:a}=n,s=v(this,we).get(t);if(s!==void 0){let l=v(this,ne)[s],d=q(this,G,me).call(this,l);return a&&v(this,It).call(this,a,s),v(this,rt).call(this,s)?(a&&(a.get="stale"),d?(a&&u&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),u?l.__staleWhileFetching:void 0):(r||q(this,G,Yt).call(this,t,"expire"),a&&u&&(a.returnedStale=!0),u?l:void 0)):(a&&(a.get="hit"),d?l.__staleWhileFetching:(q(this,G,Nr).call(this,s),o&&v(this,un).call(this,s),l))}else a&&(a.get="miss")}delete(t){return q(this,G,Yt).call(this,t,"delete")}clear(){return q(this,G,di).call(this,"delete")}},it=new WeakMap,Je=new WeakMap,ct=new WeakMap,rn=new WeakMap,dt=new WeakMap,Dn=new WeakMap,Tn=new WeakMap,ft=new WeakMap,ke=new WeakMap,ht=new WeakMap,we=new WeakMap,he=new WeakMap,ne=new WeakMap,$e=new WeakMap,et=new WeakMap,Re=new WeakMap,Se=new WeakMap,mt=new WeakMap,De=new WeakMap,pt=new WeakMap,gt=new WeakMap,tt=new WeakMap,nt=new WeakMap,bt=new WeakMap,Gt=new WeakMap,Ue=new WeakMap,Fn=new WeakMap,G=new WeakSet,si=function(){let t=new fu(v(this,it)),n=new fu(v(this,it));ee(this,tt,t),ee(this,gt,n);let u=this.ttlAutopurge?new Array(v(this,it)):void 0;ee(this,nt,u),ee(this,Sr,(s,l,d=v(this,ft).now())=>{n[s]=l!==0?d:0,t[s]=l,o(s,l)}),ee(this,un,s=>{n[s]=t[s]!==0?v(this,ft).now():0,o(s,t[s])});let o=this.ttlAutopurge?(s,l)=>{if(u!=null&&u[s]&&(clearTimeout(u[s]),u[s]=void 0),l&&l!==0&&u){let d=setTimeout(()=>{v(this,rt).call(this,s)&&q(this,G,Yt).call(this,v(this,he)[s],"expire")},l+1);d.unref&&d.unref(),u[s]=d}}:()=>{};ee(this,It,(s,l)=>{if(t[l]){let d=t[l],f=n[l];if(!d||!f)return;s.ttl=d,s.start=f,s.now=r||a();let c=s.now-f;s.remainingTTL=d-c}});let r=0,a=()=>{let s=v(this,ft).now();if(this.ttlResolution>0){r=s;let l=setTimeout(()=>r=0,this.ttlResolution);l.unref&&l.unref()}return s};this.getRemainingTTL=s=>{let l=v(this,we).get(s);if(l===void 0)return 0;let d=t[l],f=n[l];if(!d||!f)return 1/0;let c=(r||a())-f;return d-c},ee(this,rt,s=>{let l=n[s],d=t[s];return!!d&&!!l&&(r||a())-l>d})},un=new WeakMap,It=new WeakMap,Sr=new WeakMap,rt=new WeakMap,Gl=function(){let t=new fu(v(this,it));ee(this,ht,0),ee(this,pt,t),ee(this,on,n=>{ee(this,ht,v(this,ht)-t[n]),t[n]=0}),ee(this,Dr,(n,u,o,r)=>{if(q(this,G,me).call(this,u))return 0;if(!$t(o))if(r){if(typeof r!="function")throw new TypeError("sizeCalculation must be a function");if(o=r(u,n),!$t(o))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return o}),ee(this,Nn,(n,u,o)=>{if(t[n]=u,v(this,Je)){let r=v(this,Je)-t[n];for(;v(this,ht)>r;)q(this,G,Mu).call(this,!0)}ee(this,ht,v(this,ht)+t[n]),o&&(o.entrySize=u,o.totalCalculatedSize=v(this,ht))})},on=new WeakMap,Nn=new WeakMap,Dr=new WeakMap,qt=function*({allowStale:t=this.allowStale}={}){if(v(this,ke))for(let n=v(this,Se);!(!q(this,G,li).call(this,n)||((t||!v(this,rt).call(this,n))&&(yield n),n===v(this,Re)));)n=v(this,et)[n]},Zt=function*({allowStale:t=this.allowStale}={}){if(v(this,ke))for(let n=v(this,Re);!(!q(this,G,li).call(this,n)||((t||!v(this,rt).call(this,n))&&(yield n),n===v(this,Se)));)n=v(this,$e)[n]},li=function(t){return t!==void 0&&v(this,we).get(v(this,he)[t])===t},Mu=function(t){var r,a,s;let n=v(this,Re),u=v(this,he)[n],o=v(this,ne)[n];return v(this,Gt)&&q(this,G,me).call(this,o)?o.__abortController.abort(new Error("evicted")):(v(this,bt)||v(this,Ue))&&(v(this,bt)&&((r=v(this,ct))==null||r.call(this,o,u,"evict")),v(this,Ue)&&((a=v(this,De))==null||a.push([o,u,"evict"]))),v(this,on).call(this,n),(s=v(this,nt))!=null&&s[n]&&(clearTimeout(v(this,nt)[n]),v(this,nt)[n]=void 0),t&&(v(this,he)[n]=void 0,v(this,ne)[n]=void 0,v(this,mt).push(n)),v(this,ke)===1?(ee(this,Re,ee(this,Se,0)),v(this,mt).length=0):ee(this,Re,v(this,$e)[n]),v(this,we).delete(u),Ru(this,ke)._--,n},Bu=function(t,n,u,o){let r=n===void 0?void 0:v(this,ne)[n];if(q(this,G,me).call(this,r))return r;let a=new du,{signal:s}=u;s==null||s.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});let l={signal:a.signal,options:u,context:o},d=(w,y=!1)=>{let{aborted:A}=a.signal,b=u.ignoreFetchAbort&&w!==void 0,g=u.ignoreFetchAbort||!!(u.allowStaleOnFetchAbort&&w!==void 0);if(u.status&&(A&&!y?(u.status.fetchAborted=!0,u.status.fetchError=a.signal.reason,b&&(u.status.fetchAbortIgnored=!0)):u.status.fetchResolved=!0),A&&!b&&!y)return c(a.signal.reason,g);let x=p,k=v(this,ne)[n];return(k===p||b&&y&&k===void 0)&&(w===void 0?x.__staleWhileFetching!==void 0?v(this,ne)[n]=x.__staleWhileFetching:q(this,G,Yt).call(this,t,"fetch"):(u.status&&(u.status.fetchUpdated=!0),this.set(t,w,l.options))),w},f=w=>(u.status&&(u.status.fetchRejected=!0,u.status.fetchError=w),c(w,!1)),c=(w,y)=>{let{aborted:A}=a.signal,b=A&&u.allowStaleOnFetchAbort,g=b||u.allowStaleOnFetchRejection,x=g||u.noDeleteOnFetchRejection,k=p;if(v(this,ne)[n]===p&&(!x||!y&&k.__staleWhileFetching===void 0?q(this,G,Yt).call(this,t,"fetch"):b||(v(this,ne)[n]=k.__staleWhileFetching)),g)return u.status&&k.__staleWhileFetching!==void 0&&(u.status.returnedStale=!0),k.__staleWhileFetching;if(k.__returned===k)throw w},h=(w,y)=>{var b;let A=(b=v(this,Dn))==null?void 0:b.call(this,t,r,l);A&&A instanceof Promise&&A.then(g=>w(g===void 0?void 0:g),y),a.signal.addEventListener("abort",()=>{(!u.ignoreFetchAbort||u.allowStaleOnFetchAbort)&&(w(void 0),u.allowStaleOnFetchAbort&&(w=g=>d(g,!0)))})};u.status&&(u.status.fetchDispatched=!0);let p=new Promise(h).then(d,f),m=Object.assign(p,{__abortController:a,__staleWhileFetching:r,__returned:void 0});return n===void 0?(this.set(t,m,{...l.options,status:void 0}),n=v(this,we).get(t)):v(this,ne)[n]=m,m},me=function(t){if(!v(this,Gt))return!1;let n=t;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof du},ci=function(t,n){v(this,et)[n]=t,v(this,$e)[t]=n},Nr=function(t){t!==v(this,Se)&&(t===v(this,Re)?ee(this,Re,v(this,$e)[t]):q(this,G,ci).call(this,v(this,et)[t],v(this,$e)[t]),q(this,G,ci).call(this,v(this,Se),t),ee(this,Se,t))},Yt=function(t,n){var o,r,a,s,l,d;let u=!1;if(v(this,ke)!==0){let f=v(this,we).get(t);if(f!==void 0)if((o=v(this,nt))!=null&&o[f]&&(clearTimeout((r=v(this,nt))==null?void 0:r[f]),v(this,nt)[f]=void 0),u=!0,v(this,ke)===1)q(this,G,di).call(this,n);else{v(this,on).call(this,f);let c=v(this,ne)[f];if(q(this,G,me).call(this,c)?c.__abortController.abort(new Error("deleted")):(v(this,bt)||v(this,Ue))&&(v(this,bt)&&((a=v(this,ct))==null||a.call(this,c,t,n)),v(this,Ue)&&((s=v(this,De))==null||s.push([c,t,n]))),v(this,we).delete(t),v(this,he)[f]=void 0,v(this,ne)[f]=void 0,f===v(this,Se))ee(this,Se,v(this,et)[f]);else if(f===v(this,Re))ee(this,Re,v(this,$e)[f]);else{let h=v(this,et)[f];v(this,$e)[h]=v(this,$e)[f];let p=v(this,$e)[f];v(this,et)[p]=v(this,et)[f]}Ru(this,ke)._--,v(this,mt).push(f)}}if(v(this,Ue)&&((l=v(this,De))!=null&&l.length)){let f=v(this,De),c;for(;c=f==null?void 0:f.shift();)(d=v(this,dt))==null||d.call(this,...c)}return u},di=function(t){var n,u,o,r;for(let a of q(this,G,Zt).call(this,{allowStale:!0})){let s=v(this,ne)[a];if(q(this,G,me).call(this,s))s.__abortController.abort(new Error("deleted"));else{let l=v(this,he)[a];v(this,bt)&&((n=v(this,ct))==null||n.call(this,s,l,t)),v(this,Ue)&&((u=v(this,De))==null||u.push([s,l,t]))}}if(v(this,we).clear(),v(this,ne).fill(void 0),v(this,he).fill(void 0),v(this,tt)&&v(this,gt)){v(this,tt).fill(0),v(this,gt).fill(0);for(let a of v(this,nt)??[])a!==void 0&&clearTimeout(a);(o=v(this,nt))==null||o.fill(void 0)}if(v(this,pt)&&v(this,pt).fill(0),ee(this,Re,0),ee(this,Se,0),v(this,mt).length=0,ee(this,ht,0),ee(this,ke,0),v(this,Ue)&&v(this,De)){let a=v(this,De),s;for(;s=a==null?void 0:a.shift();)(r=v(this,dt))==null||r.call(this,...s)}},In);/*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */var Jt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(e[u]=n[u])}return e},hu=function(t){return t.tagName==="IMG"},Sm=function(t){return NodeList.prototype.isPrototypeOf(t)},mu=function(t){return t&&t.nodeType===1},vs=function(t){var n=t.currentSrc||t.src;return n.substr(-4).toLowerCase()===".svg"},As=function(t){try{return Array.isArray(t)?t.filter(hu):Sm(t)?[].slice.call(t).filter(hu):mu(t)?[t].filter(hu):typeof t=="string"?[].slice.call(document.querySelectorAll(t)).filter(hu):[]}catch{throw new TypeError(`The provided selector is invalid.
34
34
  Expects a CSS selector, a Node element, a NodeList or an array.
35
- See: https://github.com/francoischalifour/medium-zoom`)}},F1=function(t){var n=document.createElement("div");return n.classList.add("medium-zoom-overlay"),n.style.background=t,n},D1=function(t){var n=t.getBoundingClientRect(),u=n.top,o=n.left,r=n.width,a=n.height,s=t.cloneNode(),l=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,d=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return s.removeAttribute("id"),s.style.position="absolute",s.style.top=u+l+"px",s.style.left=o+d+"px",s.style.width=r+"px",s.style.height=a+"px",s.style.transform="",s},kn=function(t,n){var u=en({bubbles:!1,cancelable:!1,detail:void 0},n);if(typeof window.CustomEvent=="function")return new CustomEvent(t,u);var o=document.createEvent("CustomEvent");return o.initCustomEvent(t,u.bubbles,u.cancelable,u.detail),o},T1=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=window.Promise||function(L){function C(){}L(C,C)},o=function(L){var C=L.target;if(C===U){p();return}g.indexOf(C)!==-1&&w({target:C})},r=function(){if(!(k||!F.original)){var L=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(T-L)>D.scrollOffset&&setTimeout(p,150)}},a=function(L){var C=L.key||L.keyCode;(C==="Escape"||C==="Esc"||C===27)&&p()},s=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=L;if(L.background&&(U.style.background=L.background),L.container&&L.container instanceof Object&&(C.container=en({},D.container,L.container)),L.template){var P=hu(L.template)?L.template:document.querySelector(L.template);C.template=P}return D=en({},D,C),g.forEach(function(V){V.dispatchEvent(kn("medium-zoom:update",{detail:{zoom:_}}))}),_},l=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e(en({},D,L))},d=function(){for(var L=arguments.length,C=Array(L),P=0;P<L;P++)C[P]=arguments[P];var V=C.reduce(function(E,M){return[].concat(E,vs(M))},[]);return V.filter(function(E){return g.indexOf(E)===-1}).forEach(function(E){g.push(E),E.classList.add("medium-zoom-image")}),x.forEach(function(E){var M=E.type,R=E.listener,$=E.options;V.forEach(function(re){re.addEventListener(M,R,$)})}),_},f=function(){for(var L=arguments.length,C=Array(L),P=0;P<L;P++)C[P]=arguments[P];F.zoomed&&p();var V=C.length>0?C.reduce(function(E,M){return[].concat(E,vs(M))},[]):g;return V.forEach(function(E){E.classList.remove("medium-zoom-image"),E.dispatchEvent(kn("medium-zoom:detach",{detail:{zoom:_}}))}),g=g.filter(function(E){return V.indexOf(E)===-1}),_},c=function(L,C){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return g.forEach(function(V){V.addEventListener("medium-zoom:"+L,C,P)}),x.push({type:"medium-zoom:"+L,listener:C,options:P}),_},h=function(L,C){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return g.forEach(function(V){V.removeEventListener("medium-zoom:"+L,C,P)}),x=x.filter(function(V){return!(V.type==="medium-zoom:"+L&&V.listener.toString()===C.toString())}),_},m=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=L.target,P=function(){var E={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},M=void 0,R=void 0;if(D.container)if(D.container instanceof Object)E=en({},E,D.container),M=E.width-E.left-E.right-D.margin*2,R=E.height-E.top-E.bottom-D.margin*2;else{var $=hu(D.container)?D.container:document.querySelector(D.container),re=$.getBoundingClientRect(),te=re.width,z=re.height,j=re.left,I=re.top;E=en({},E,{width:te,height:z,left:j,top:I})}M=M||E.width-D.margin*2,R=R||E.height-D.margin*2;var B=F.zoomedHd||F.original,W=ws(B)?M:B.naturalWidth||M,K=ws(B)?R:B.naturalHeight||R,Z=B.getBoundingClientRect(),Y=Z.top,ue=Z.left,le=Z.width,De=Z.height,Te=Math.min(Math.max(le,W),M)/le,yt=Math.min(Math.max(De,K),R)/De,Me=Math.min(Te,yt),In=(-ue+(M-le)/2+D.margin+E.left)/Me,Xt=(-Y+(R-De)/2+D.margin+E.top)/Me,It="scale("+Me+") translate3d("+In+"px, "+Xt+"px, 0)";F.zoomed.style.transform=It,F.zoomedHd&&(F.zoomedHd.style.transform=It)};return new u(function(V){if(C&&g.indexOf(C)===-1){V(_);return}var E=function te(){k=!1,F.zoomed.removeEventListener("transitionend",te),F.original.dispatchEvent(kn("medium-zoom:opened",{detail:{zoom:_}})),V(_)};if(F.zoomed){V(_);return}if(C)F.original=C;else if(g.length>0){var M=g;F.original=M[0]}else{V(_);return}if(F.original.dispatchEvent(kn("medium-zoom:open",{detail:{zoom:_}})),T=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,k=!0,F.zoomed=D1(F.original),document.body.appendChild(U),D.template){var R=hu(D.template)?D.template:document.querySelector(D.template);F.template=document.createElement("div"),F.template.appendChild(R.content.cloneNode(!0)),document.body.appendChild(F.template)}if(F.original.parentElement&&F.original.parentElement.tagName==="PICTURE"&&F.original.currentSrc&&(F.zoomed.src=F.original.currentSrc),document.body.appendChild(F.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),F.original.classList.add("medium-zoom-image--hidden"),F.zoomed.classList.add("medium-zoom-image--opened"),F.zoomed.addEventListener("click",p),F.zoomed.addEventListener("transitionend",E),F.original.getAttribute("data-zoom-src")){F.zoomedHd=F.zoomed.cloneNode(),F.zoomedHd.removeAttribute("srcset"),F.zoomedHd.removeAttribute("sizes"),F.zoomedHd.removeAttribute("loading"),F.zoomedHd.src=F.zoomed.getAttribute("data-zoom-src"),F.zoomedHd.onerror=function(){clearInterval($),console.warn("Unable to reach the zoom image target "+F.zoomedHd.src),F.zoomedHd=null,P()};var $=setInterval(function(){F.zoomedHd.complete&&(clearInterval($),F.zoomedHd.classList.add("medium-zoom-image--opened"),F.zoomedHd.addEventListener("click",p),document.body.appendChild(F.zoomedHd),P())},10)}else if(F.original.hasAttribute("srcset")){F.zoomedHd=F.zoomed.cloneNode(),F.zoomedHd.removeAttribute("sizes"),F.zoomedHd.removeAttribute("loading");var re=F.zoomedHd.addEventListener("load",function(){F.zoomedHd.removeEventListener("load",re),F.zoomedHd.classList.add("medium-zoom-image--opened"),F.zoomedHd.addEventListener("click",p),document.body.appendChild(F.zoomedHd),P()})}else P()})},p=function(){return new u(function(L){if(k||!F.original){L(_);return}var C=function P(){F.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(F.zoomed),F.zoomedHd&&document.body.removeChild(F.zoomedHd),document.body.removeChild(U),F.zoomed.classList.remove("medium-zoom-image--opened"),F.template&&document.body.removeChild(F.template),k=!1,F.zoomed.removeEventListener("transitionend",P),F.original.dispatchEvent(kn("medium-zoom:closed",{detail:{zoom:_}})),F.original=null,F.zoomed=null,F.zoomedHd=null,F.template=null,L(_)};k=!0,document.body.classList.remove("medium-zoom--opened"),F.zoomed.style.transform="",F.zoomedHd&&(F.zoomedHd.style.transform=""),F.template&&(F.template.style.transition="opacity 150ms",F.template.style.opacity=0),F.original.dispatchEvent(kn("medium-zoom:close",{detail:{zoom:_}})),F.zoomed.addEventListener("transitionend",C)})},w=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=L.target;return F.original?p():m({target:C})},y=function(){return D},A=function(){return g},b=function(){return F.original},g=[],x=[],k=!1,T=0,D=n,F={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(t)==="[object Object]"?D=t:(t||typeof t=="string")&&d(t),D=en({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},D);var U=F1(D.background);document.addEventListener("click",o),document.addEventListener("keyup",a),document.addEventListener("scroll",r),window.addEventListener("resize",p);var _={open:m,close:p,toggle:w,update:s,clone:l,attach:d,detach:f,on:c,off:h,getOptions:y,getImages:A,getZoomedImage:b};return _};function N1(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(typeof document>"u")){var u=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&u.firstChild?u.insertBefore(o,u.firstChild):u.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var L1=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";N1(L1);const Ut={hljs:`${X}-hljs`,hlcss:`${X}-hlCss`,mermaidM:`${X}-mermaid-m`,mermaid:`${X}-mermaid`,katexjs:`${X}-katex`,katexcss:`${X}-katexCss`,echarts:`${X}-echarts`},I1=(e,{editorId:t,rootRef:n,setting:u})=>{const o=lt.editorExtensions.highlight,r=lt.editorExtensionsAttrs.highlight;i.provide("editorId",t),i.provide("rootRef",n),i.provide("theme",i.computed(()=>e.theme)),i.provide("language",i.computed(()=>e.language)),i.provide("highlight",i.computed(()=>{const{js:s}=o,l={...Oo,...o.css},{js:d,css:f={}}=r||{},c=e.codeStyleReverse&&e.codeStyleReverseList.includes(e.previewTheme)?"dark":e.theme,h=l[e.codeTheme]?l[e.codeTheme][c]:Oo.atom[c],m=l[e.codeTheme]&&f[e.codeTheme]?f[e.codeTheme][c]:f.atom?f.atom[c]:{};return{js:{src:s,...d},css:{href:h,...m}}})),i.provide("showCodeRowNumber",e.showCodeRowNumber);const a=i.computed(()=>{const s={...cs,...lt.editorConfig.languageUserDefined};return Lo(ar(cs["en-US"]),s[e.language]||{})});return i.provide("usedLanguageText",a),i.provide("previewTheme",i.computed(()=>e.previewTheme)),i.provide("customIcon",i.computed(()=>e.customIcon)),i.provide("setting",i.computed(()=>u?{...u}:{preview:!0,htmlPreview:!1,previewOnly:!1,pageFullscreen:!1,fullscreen:!1})),{editorId:t}},O1=e=>{const t=i.useId();return e.id||e.editorId||`${X}-${t}`},P1=(e,t,n)=>{const u=i.inject("editorId"),o=i.inject("rootRef"),r=i.inject("usedLanguageText"),a=i.inject("setting"),s=()=>{o.value.querySelectorAll(`#${u} .${X}-preview .${X}-code`).forEach(f=>{let c=-1;const h=f.querySelector(`.${X}-copy-button:not([data-processed])`);h&&(h.onclick=m=>{m.preventDefault(),clearTimeout(c);const p=(f.querySelector("input:checked + pre code")||f.querySelector("pre code")).textContent,{text:w,successTips:y,failTips:A}=r.value.copyCode;let b=y;fs(e.formatCopiedText(p||"")).catch(()=>{b=A}).finally(()=>{h.dataset.isIcon?h.dataset.tips=b:h.innerHTML=b,c=window.setTimeout(()=>{h.dataset.isIcon?h.dataset.tips=w:h.innerHTML=w},1500)})},h.setAttribute("data-processed","true"))})},l=()=>{i.nextTick(s)},d=f=>{f&&i.nextTick(s)};i.watch([t,n],l),i.watch(()=>a.value.preview,d),i.watch(()=>a.value.htmlPreview,d),i.onMounted(s)},V1=e=>{const t=i.inject("editorId"),n=i.inject("theme"),u=i.inject("rootRef"),{editorExtensions:o,editorExtensionsAttrs:r}=lt;let a=o.echarts.instance;const s=i.shallowRef(-1),l=()=>{!e.noEcharts&&a&&(s.value=s.value+1)};i.watch(()=>n.value,()=>{l()}),i.onMounted(()=>{var w;if(e.noEcharts||a)return;const p=o.echarts.js;Ht("script",{...(w=r.echarts)==null?void 0:w.js,src:p,id:Ut.echarts,onload(){a=window.echarts,l()}},"echarts")});let d=[],f=[],c=[];const h=(p=!1)=>{if(!d.length){p&&(f.forEach(b=>{var g;(g=b.dispose)==null||g.call(b)}),c.forEach(b=>{var g;(g=b.disconnect)==null||g.call(b)}),f=[],c=[]);return}const w=[],y=[],A=[];d.forEach((b,g)=>{var T,D;const x=f[g],k=c[g];if(p||!b||!b.isConnected||u!=null&&u.value&&!u.value.contains(b)){(T=x==null?void 0:x.dispose)==null||T.call(x),(D=k==null?void 0:k.disconnect)==null||D.call(k);return}w.push(b),x&&y.push(x),k&&A.push(k)}),d=w,f=y,c=A},m=()=>{h(),!e.noEcharts&&a&&Array.from(u.value.querySelectorAll(`#${t} div.${X}-echarts:not([data-processed])`)).forEach(p=>{if(p.dataset.closed==="false")return!1;try{const w=new Function(`return ${p.innerText}`)(),y=a.init(p,n.value);y.setOption(w),p.setAttribute("data-processed",""),d.push(p),f.push(y);const A=new ResizeObserver(()=>{y.resize()});A.observe(p),c.push(A)}catch(w){ot.emit(t,Po,{name:"echarts",message:w==null?void 0:w.message,error:w})}})};return i.onBeforeUnmount(()=>{h(!0)}),{reRenderEcharts:s,replaceEcharts:m}},R1=e=>{const t=i.inject("highlight"),n=i.shallowRef(lt.editorExtensions.highlight.instance);return i.onMounted(()=>{e.noHighlight||n.value||(Ht("link",{...t.value.css,rel:"stylesheet",id:Ut.hlcss}),Ht("script",{...t.value.js,id:Ut.hljs,onload(){n.value=window.hljs}},"hljs"))}),i.watch(()=>t.value.css,()=>{e.noHighlight||lt.editorExtensions.highlight.instance||d1("link",{...t.value.css,rel:"stylesheet",id:Ut.hlcss})}),n},M1=e=>{const t=i.shallowRef(lt.editorExtensions.katex.instance);return i.onMounted(()=>{var o,r;if(e.noKatex||t.value)return;const{editorExtensions:n,editorExtensionsAttrs:u}=lt;Ht("script",{...(o=u.katex)==null?void 0:o.js,src:n.katex.js,id:Ut.katexjs,onload(){t.value=window.katex}},"katex"),Ht("link",{...(r=u.katex)==null?void 0:r.css,rel:"stylesheet",href:n.katex.css,id:Ut.katexcss})}),t},pu=new E1({max:1e3,ttl:6e5}),B1=e=>{const t=i.inject("editorId"),n=i.inject("theme"),u=i.inject("rootRef"),{editorExtensions:o,editorExtensionsAttrs:r,mermaidConfig:a}=lt;let s=o.mermaid.instance;const l=i.shallowRef(-1),d=()=>{if(!e.noMermaid&&s){const f=n.value==="dark"?{startOnLoad:!1,theme:"dark"}:{startOnLoad:!1,theme:"base",themeVariables:{background:"#ffffff",primaryColor:"#ffffff",primaryTextColor:"#1f2329",primaryBorderColor:"#b7c0cc",secondaryColor:"#f7f8fa",tertiaryColor:"#f7f8fa",lineColor:"#596273",edgeLabelBackground:"#ffffff",clusterBkg:"#ffffff",clusterBorder:"#b7c0cc"}};s.initialize(a(f)),l.value=l.value+1}};return i.watch(()=>n.value,()=>{pu.clear(),d()}),i.onMounted(()=>{var c,h;if(e.noMermaid||s)return;const f=o.mermaid.js;/\.mjs/.test(f)?(Ht("link",{...(c=r.mermaid)==null?void 0:c.js,rel:"modulepreload",href:f,id:Ut.mermaidM}),import(f).then(m=>{s=m.default,d()}).catch(m=>{ot.emit(t,Po,{name:"mermaid",message:`Failed to load mermaid module: ${m.message}`,error:m})})):Ht("script",{...(h=r.mermaid)==null?void 0:h.js,src:f,id:Ut.mermaid,onload(){s=window.mermaid,d()}},"mermaid")}),{reRenderRef:l,replaceMermaid:async()=>{if(!e.noMermaid&&s){const f=u.value.querySelectorAll(`div.${X}-mermaid`),c=document.createElement("div"),h=document.body.offsetWidth>1366?document.body.offsetWidth:1366,m=document.body.offsetHeight>768?document.body.offsetHeight:768;c.style.width=h+"px",c.style.height=m+"px",c.style.position="fixed",c.style.zIndex="-10000",c.style.top="-10000";let p=f.length;p>0&&document.body.appendChild(c),await Promise.allSettled(Array.from(f).map(w=>(async y=>{var g;if(y.dataset.closed==="false")return!1;const A=y.innerText;let b=pu.get(A);if(!b){const x=No();let k={svg:""};try{k=await s.render(x,A,c),b=await e.sanitizeMermaid(k.svg);const T=document.createElement("p");T.className=`${X}-mermaid`,T.setAttribute("data-processed",""),T.setAttribute("data-content",A),T.innerHTML=b,(g=T.children[0])==null||g.removeAttribute("height"),pu.set(A,T.innerHTML),y.dataset.line!==void 0&&(T.dataset.line=y.dataset.line),y.replaceWith(T)}catch(T){ot.emit(t,Po,{name:"mermaid",message:T.message,error:T})}--p===0&&c.remove()}})(w)))}}}},z1=(e,t)=>{t=t||{};const n=3,u=t.marker||"!",o=u.charCodeAt(0),r=u.length;let a="",s="";const l=(f,c,h,m,p)=>{const w=f[c];return w.type==="admonition_open"?f[c].attrPush(["class",`${X}-admonition ${X}-admonition-${w.info}`]):w.type==="admonition_title_open"&&f[c].attrPush(["class",`${X}-admonition-title`]),p.renderToken(f,c,h)},d=f=>{const c=f.trim().split(" ",2);s="",a=c[0],c.length>1&&(s=f.substring(a.length+2))};e.block.ruler.before("code","admonition",(f,c,h,m)=>{let p,w,y,A=!1,b=f.bMarks[c]+f.tShift[c],g=f.eMarks[c];if(o!==f.src.charCodeAt(b))return!1;for(p=b+1;p<=g&&u[(p-b)%r]===f.src[p];p++);const x=Math.floor((p-b)/r);if(x!==n)return!1;p-=(p-b)%r;const k=f.src.slice(b,p),T=f.src.slice(p,g);if(d(T),m)return!0;for(w=c;w++,!(w>=h||(b=f.bMarks[w]+f.tShift[w],g=f.eMarks[w],b<g&&f.sCount[w]<f.blkIndent));)if(o===f.src.charCodeAt(b)&&!(f.sCount[w]-f.blkIndent>=4)){for(p=b+1;p<=g&&u[(p-b)%r]===f.src[p];p++);if(!(Math.floor((p-b)/r)<x)&&(p-=(p-b)%r,p=f.skipSpaces(p),!(p<g))){A=!0;break}}const D=f.parentType,F=f.lineMax;return f.parentType="root",f.lineMax=w,y=f.push("admonition_open","div",1),y.markup=k,y.block=!0,y.info=a,y.map=[c,w],s&&(y=f.push("admonition_title_open","p",1),y.markup=k+" "+a,y.map=[c,w],y=f.push("inline","",0),y.content=s,y.map=[c,f.line-1],y.children=[],y=f.push("admonition_title_close","p",-1),y.markup=k+" "+a),f.md.block.tokenize(f,c+1,w),y=f.push("admonition_close","div",-1),y.markup=f.src.slice(b,p),y.block=!0,f.parentType=D,f.lineMax=F,f.line=w+(A?1:0),!0},{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.admonition_open=l,e.renderer.rules.admonition_title_open=l,e.renderer.rules.admonition_title_close=l,e.renderer.rules.admonition_close=l},Mo=(e,t)=>{const n=e.attrs?e.attrs.slice():[];return t.forEach(u=>{const o=e.attrIndex(u[0]);o<0?n.push(u):(n[o]=n[o].slice(),n[o][1]+=` ${u[1]}`)}),n},j1=(e,t)=>{const n=e.renderer.rules.fence,u=e.utils.unescapeAll,o=/\[(\w*)(?::([\w ]*))?\]/,r=/::(open|close)/,a=c=>c.info?u(c.info).trim():"",s=c=>{const h=a(c),[m=null,p=""]=(o.exec(h)||[]).slice(1);return[m,p]},l=c=>{const h=a(c);return h?h.split(/(\s+)/g)[0]:""},d=c=>{const h=c.info.match(r)||[],m=h[1]==="open"||h[1]!=="close"&&t.codeFoldable&&c.content.trim().split(`
36
- `).length<t.autoFoldThreshold,p=h[1]||t.codeFoldable?"details":"div",w=h[1]||t.codeFoldable?"summary":"div";return{open:m,tagContainer:p,tagHeader:w}},f=(c,h,m,p,w)=>{var M;if(c[h].hidden)return"";const y=(M=t.usedLanguageTextRef.value)==null?void 0:M.copyCode.text,A=t.customIconRef.value.copy||y,b=!!t.customIconRef.value.copy,g=`<span class="${X}-collapse-tips">${St("collapse-tips",t.customIconRef.value)}</span>`,[x]=s(c[h]);if(x===null){const{open:R,tagContainer:$,tagHeader:re}=d(c[h]),te=[["class",`${X}-code`]];R&&te.push(["open",""]);const z={attrs:Mo(c[h],te)};c[h].info=c[h].info.replace(r,"");const j=n(c,h,m,p,w);return`
35
+ See: https://github.com/francoischalifour/medium-zoom`)}},Dm=function(t){var n=document.createElement("div");return n.classList.add("medium-zoom-overlay"),n.style.background=t,n},Tm=function(t){var n=t.getBoundingClientRect(),u=n.top,o=n.left,r=n.width,a=n.height,s=t.cloneNode(),l=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,d=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return s.removeAttribute("id"),s.style.position="absolute",s.style.top=u+l+"px",s.style.left=o+d+"px",s.style.width=r+"px",s.style.height=a+"px",s.style.transform="",s},kn=function(t,n){var u=Jt({bubbles:!1,cancelable:!1,detail:void 0},n);if(typeof window.CustomEvent=="function")return new CustomEvent(t,u);var o=document.createEvent("CustomEvent");return o.initCustomEvent(t,u.bubbles,u.cancelable,u.detail),o},Fm=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=window.Promise||function(I){function C(){}I(C,C)},o=function(I){var C=I.target;if(C===U){m();return}g.indexOf(C)!==-1&&w({target:C})},r=function(){if(!(k||!D.original)){var I=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(F-I)>T.scrollOffset&&setTimeout(m,150)}},a=function(I){var C=I.key||I.keyCode;(C==="Escape"||C==="Esc"||C===27)&&m()},s=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=I;if(I.background&&(U.style.background=I.background),I.container&&I.container instanceof Object&&(C.container=Jt({},T.container,I.container)),I.template){var P=mu(I.template)?I.template:document.querySelector(I.template);C.template=P}return T=Jt({},T,C),g.forEach(function(V){V.dispatchEvent(kn("medium-zoom:update",{detail:{zoom:_}}))}),_},l=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e(Jt({},T,I))},d=function(){for(var I=arguments.length,C=Array(I),P=0;P<I;P++)C[P]=arguments[P];var V=C.reduce(function(E,R){return[].concat(E,As(R))},[]);return V.filter(function(E){return g.indexOf(E)===-1}).forEach(function(E){g.push(E),E.classList.add("medium-zoom-image")}),x.forEach(function(E){var R=E.type,M=E.listener,$=E.options;V.forEach(function(re){re.addEventListener(R,M,$)})}),_},f=function(){for(var I=arguments.length,C=Array(I),P=0;P<I;P++)C[P]=arguments[P];D.zoomed&&m();var V=C.length>0?C.reduce(function(E,R){return[].concat(E,As(R))},[]):g;return V.forEach(function(E){E.classList.remove("medium-zoom-image"),E.dispatchEvent(kn("medium-zoom:detach",{detail:{zoom:_}}))}),g=g.filter(function(E){return V.indexOf(E)===-1}),_},c=function(I,C){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return g.forEach(function(V){V.addEventListener("medium-zoom:"+I,C,P)}),x.push({type:"medium-zoom:"+I,listener:C,options:P}),_},h=function(I,C){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return g.forEach(function(V){V.removeEventListener("medium-zoom:"+I,C,P)}),x=x.filter(function(V){return!(V.type==="medium-zoom:"+I&&V.listener.toString()===C.toString())}),_},p=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=I.target,P=function(){var E={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},R=void 0,M=void 0;if(T.container)if(T.container instanceof Object)E=Jt({},E,T.container),R=E.width-E.left-E.right-T.margin*2,M=E.height-E.top-E.bottom-T.margin*2;else{var $=mu(T.container)?T.container:document.querySelector(T.container),re=$.getBoundingClientRect(),te=re.width,z=re.height,j=re.left,L=re.top;E=Jt({},E,{width:te,height:z,left:j,top:L})}R=R||E.width-T.margin*2,M=M||E.height-T.margin*2;var B=D.zoomedHd||D.original,W=vs(B)?R:B.naturalWidth||R,K=vs(B)?M:B.naturalHeight||M,Z=B.getBoundingClientRect(),Y=Z.top,ue=Z.left,le=Z.width,Te=Z.height,Fe=Math.min(Math.max(le,W),R)/le,yt=Math.min(Math.max(Te,K),M)/Te,Me=Math.min(Fe,yt),On=(-ue+(R-le)/2+T.margin+E.left)/Me,Xt=(-Y+(M-Te)/2+T.margin+E.top)/Me,Ot="scale("+Me+") translate3d("+On+"px, "+Xt+"px, 0)";D.zoomed.style.transform=Ot,D.zoomedHd&&(D.zoomedHd.style.transform=Ot)};return new u(function(V){if(C&&g.indexOf(C)===-1){V(_);return}var E=function te(){k=!1,D.zoomed.removeEventListener("transitionend",te),D.original.dispatchEvent(kn("medium-zoom:opened",{detail:{zoom:_}})),V(_)};if(D.zoomed){V(_);return}if(C)D.original=C;else if(g.length>0){var R=g;D.original=R[0]}else{V(_);return}if(D.original.dispatchEvent(kn("medium-zoom:open",{detail:{zoom:_}})),F=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,k=!0,D.zoomed=Tm(D.original),document.body.appendChild(U),T.template){var M=mu(T.template)?T.template:document.querySelector(T.template);D.template=document.createElement("div"),D.template.appendChild(M.content.cloneNode(!0)),document.body.appendChild(D.template)}if(D.original.parentElement&&D.original.parentElement.tagName==="PICTURE"&&D.original.currentSrc&&(D.zoomed.src=D.original.currentSrc),document.body.appendChild(D.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),D.original.classList.add("medium-zoom-image--hidden"),D.zoomed.classList.add("medium-zoom-image--opened"),D.zoomed.addEventListener("click",m),D.zoomed.addEventListener("transitionend",E),D.original.getAttribute("data-zoom-src")){D.zoomedHd=D.zoomed.cloneNode(),D.zoomedHd.removeAttribute("srcset"),D.zoomedHd.removeAttribute("sizes"),D.zoomedHd.removeAttribute("loading"),D.zoomedHd.src=D.zoomed.getAttribute("data-zoom-src"),D.zoomedHd.onerror=function(){clearInterval($),console.warn("Unable to reach the zoom image target "+D.zoomedHd.src),D.zoomedHd=null,P()};var $=setInterval(function(){D.zoomedHd.complete&&(clearInterval($),D.zoomedHd.classList.add("medium-zoom-image--opened"),D.zoomedHd.addEventListener("click",m),document.body.appendChild(D.zoomedHd),P())},10)}else if(D.original.hasAttribute("srcset")){D.zoomedHd=D.zoomed.cloneNode(),D.zoomedHd.removeAttribute("sizes"),D.zoomedHd.removeAttribute("loading");var re=D.zoomedHd.addEventListener("load",function(){D.zoomedHd.removeEventListener("load",re),D.zoomedHd.classList.add("medium-zoom-image--opened"),D.zoomedHd.addEventListener("click",m),document.body.appendChild(D.zoomedHd),P()})}else P()})},m=function(){return new u(function(I){if(k||!D.original){I(_);return}var C=function P(){D.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(D.zoomed),D.zoomedHd&&document.body.removeChild(D.zoomedHd),document.body.removeChild(U),D.zoomed.classList.remove("medium-zoom-image--opened"),D.template&&document.body.removeChild(D.template),k=!1,D.zoomed.removeEventListener("transitionend",P),D.original.dispatchEvent(kn("medium-zoom:closed",{detail:{zoom:_}})),D.original=null,D.zoomed=null,D.zoomedHd=null,D.template=null,I(_)};k=!0,document.body.classList.remove("medium-zoom--opened"),D.zoomed.style.transform="",D.zoomedHd&&(D.zoomedHd.style.transform=""),D.template&&(D.template.style.transition="opacity 150ms",D.template.style.opacity=0),D.original.dispatchEvent(kn("medium-zoom:close",{detail:{zoom:_}})),D.zoomed.addEventListener("transitionend",C)})},w=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=I.target;return D.original?m():p({target:C})},y=function(){return T},A=function(){return g},b=function(){return D.original},g=[],x=[],k=!1,F=0,T=n,D={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(t)==="[object Object]"?T=t:(t||typeof t=="string")&&d(t),T=Jt({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},T);var U=Dm(T.background);document.addEventListener("click",o),document.addEventListener("keyup",a),document.addEventListener("scroll",r),window.addEventListener("resize",m);var _={open:p,close:m,toggle:w,update:s,clone:l,attach:d,detach:f,on:c,off:h,getOptions:y,getImages:A,getZoomedImage:b};return _};function Nm(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(typeof document>"u")){var u=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&u.firstChild?u.insertBefore(o,u.firstChild):u.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var Im=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";Nm(Im);const Ut={hljs:`${X}-hljs`,hlcss:`${X}-hlCss`,mermaidM:`${X}-mermaid-m`,mermaid:`${X}-mermaid`,katexjs:`${X}-katex`,katexcss:`${X}-katexCss`,echarts:`${X}-echarts`},Om=(e,{editorId:t,rootRef:n,setting:u})=>{const o=lt.editorExtensions.highlight,r=lt.editorExtensionsAttrs.highlight;i.provide("editorId",t),i.provide("rootRef",n),i.provide("theme",i.computed(()=>e.theme)),i.provide("language",i.computed(()=>e.language)),i.provide("highlight",i.computed(()=>{const{js:s}=o,l={...Lo,...o.css},{js:d,css:f={}}=r||{},c=e.codeStyleReverse&&e.codeStyleReverseList.includes(e.previewTheme)?"dark":e.theme,h=l[e.codeTheme]?l[e.codeTheme][c]:Lo.atom[c],p=l[e.codeTheme]&&f[e.codeTheme]?f[e.codeTheme][c]:f.atom?f.atom[c]:{};return{js:{src:s,...d},css:{href:h,...p}}})),i.provide("showCodeRowNumber",e.showCodeRowNumber);const a=i.computed(()=>{const s={...ds,...lt.editorConfig.languageUserDefined};return Io(ar(ds["en-US"]),s[e.language]||{})});return i.provide("usedLanguageText",a),i.provide("previewTheme",i.computed(()=>e.previewTheme)),i.provide("customIcon",i.computed(()=>e.customIcon)),i.provide("setting",i.computed(()=>u?{...u}:{preview:!0,htmlPreview:!1,previewOnly:!1,pageFullscreen:!1,fullscreen:!1})),{editorId:t}},Lm=e=>{const t=i.useId();return e.id||e.editorId||`${X}-${t}`},Pm=(e,t,n)=>{const u=i.inject("editorId"),o=i.inject("rootRef"),r=i.inject("usedLanguageText"),a=i.inject("setting"),s=()=>{o.value.querySelectorAll(`#${u} .${X}-preview .${X}-code`).forEach(f=>{let c=-1;const h=f.querySelector(`.${X}-copy-button:not([data-processed])`);h&&(h.onclick=p=>{p.preventDefault(),clearTimeout(c);const m=(f.querySelector("input:checked + pre code")||f.querySelector("pre code")).textContent,{text:w,successTips:y,failTips:A}=r.value.copyCode;let b=y;hs(e.formatCopiedText(m||"")).catch(()=>{b=A}).finally(()=>{h.dataset.isIcon?h.dataset.tips=b:h.innerHTML=b,c=window.setTimeout(()=>{h.dataset.isIcon?h.dataset.tips=w:h.innerHTML=w},1500)})},h.setAttribute("data-processed","true"))})},l=()=>{i.nextTick(s)},d=f=>{f&&i.nextTick(s)};i.watch([t,n],l),i.watch(()=>a.value.preview,d),i.watch(()=>a.value.htmlPreview,d),i.onMounted(s)},Vm=e=>{const t=i.inject("editorId"),n=i.inject("theme"),u=i.inject("rootRef"),{editorExtensions:o,editorExtensionsAttrs:r}=lt;let a=o.echarts.instance;const s=i.shallowRef(-1),l=()=>{!e.noEcharts&&a&&(s.value=s.value+1)};i.watch(()=>n.value,()=>{l()}),i.onMounted(()=>{var w;if(e.noEcharts||a)return;const m=o.echarts.js;Ht("script",{...(w=r.echarts)==null?void 0:w.js,src:m,id:Ut.echarts,onload(){a=window.echarts,l()}},"echarts")});let d=[],f=[],c=[];const h=(m=!1)=>{if(!d.length){m&&(f.forEach(b=>{var g;(g=b.dispose)==null||g.call(b)}),c.forEach(b=>{var g;(g=b.disconnect)==null||g.call(b)}),f=[],c=[]);return}const w=[],y=[],A=[];d.forEach((b,g)=>{var F,T;const x=f[g],k=c[g];if(m||!b||!b.isConnected||u!=null&&u.value&&!u.value.contains(b)){(F=x==null?void 0:x.dispose)==null||F.call(x),(T=k==null?void 0:k.disconnect)==null||T.call(k);return}w.push(b),x&&y.push(x),k&&A.push(k)}),d=w,f=y,c=A},p=()=>{h(),!e.noEcharts&&a&&Array.from(u.value.querySelectorAll(`#${t} div.${X}-echarts:not([data-processed])`)).forEach(m=>{if(m.dataset.closed==="false")return!1;try{const w=new Function(`return ${m.innerText}`)(),y=a.init(m,n.value);y.setOption(w),m.setAttribute("data-processed",""),d.push(m),f.push(y);const A=new ResizeObserver(()=>{y.resize()});A.observe(m),c.push(A)}catch(w){ot.emit(t,Po,{name:"echarts",message:w==null?void 0:w.message,error:w})}})};return i.onBeforeUnmount(()=>{h(!0)}),{reRenderEcharts:s,replaceEcharts:p}},Rm=e=>{const t=i.inject("highlight"),n=i.shallowRef(lt.editorExtensions.highlight.instance);return i.onMounted(()=>{e.noHighlight||n.value||(Ht("link",{...t.value.css,rel:"stylesheet",id:Ut.hlcss}),Ht("script",{...t.value.js,id:Ut.hljs,onload(){n.value=window.hljs}},"hljs"))}),i.watch(()=>t.value.css,()=>{e.noHighlight||lt.editorExtensions.highlight.instance||dm("link",{...t.value.css,rel:"stylesheet",id:Ut.hlcss})}),n},Mm=e=>{const t=i.shallowRef(lt.editorExtensions.katex.instance);return i.onMounted(()=>{var o,r;if(e.noKatex||t.value)return;const{editorExtensions:n,editorExtensionsAttrs:u}=lt;Ht("script",{...(o=u.katex)==null?void 0:o.js,src:n.katex.js,id:Ut.katexjs,onload(){t.value=window.katex}},"katex"),Ht("link",{...(r=u.katex)==null?void 0:r.css,rel:"stylesheet",href:n.katex.css,id:Ut.katexcss})}),t},pu=new Em({max:1e3,ttl:6e5}),Bm=e=>{const t=i.inject("editorId"),n=i.inject("theme"),u=i.inject("rootRef"),{editorExtensions:o,editorExtensionsAttrs:r,mermaidConfig:a}=lt;let s=o.mermaid.instance;const l=i.shallowRef(-1),d=()=>{if(!e.noMermaid&&s){const f=n.value==="dark"?{startOnLoad:!1,theme:"dark"}:{startOnLoad:!1,theme:"base",themeVariables:{background:"#ffffff",primaryColor:"#ffffff",primaryTextColor:"#1f2329",primaryBorderColor:"#b7c0cc",secondaryColor:"#f7f8fa",tertiaryColor:"#f7f8fa",lineColor:"#596273",edgeLabelBackground:"#ffffff",clusterBkg:"#ffffff",clusterBorder:"#b7c0cc"}};s.initialize(a(f)),l.value=l.value+1}};return i.watch(()=>n.value,()=>{pu.clear(),d()}),i.onMounted(()=>{var c,h;if(e.noMermaid||s)return;const f=o.mermaid.js;/\.mjs/.test(f)?(Ht("link",{...(c=r.mermaid)==null?void 0:c.js,rel:"modulepreload",href:f,id:Ut.mermaidM}),import(f).then(p=>{s=p.default,d()}).catch(p=>{ot.emit(t,Po,{name:"mermaid",message:`Failed to load mermaid module: ${p.message}`,error:p})})):Ht("script",{...(h=r.mermaid)==null?void 0:h.js,src:f,id:Ut.mermaid,onload(){s=window.mermaid,d()}},"mermaid")}),{reRenderRef:l,replaceMermaid:async()=>{if(!e.noMermaid&&s){const f=u.value.querySelectorAll(`div.${X}-mermaid`),c=document.createElement("div"),h=document.body.offsetWidth>1366?document.body.offsetWidth:1366,p=document.body.offsetHeight>768?document.body.offsetHeight:768;c.style.width=h+"px",c.style.height=p+"px",c.style.position="fixed",c.style.zIndex="-10000",c.style.top="-10000";let m=f.length;m>0&&document.body.appendChild(c),await Promise.allSettled(Array.from(f).map(w=>(async y=>{var g;if(y.dataset.closed==="false")return!1;const A=y.innerText;let b=pu.get(A);if(!b){const x=No();let k={svg:""};try{k=await s.render(x,A,c),b=await e.sanitizeMermaid(k.svg);const F=document.createElement("p");F.className=`${X}-mermaid`,F.setAttribute("data-processed",""),F.setAttribute("data-content",A),F.innerHTML=b,(g=F.children[0])==null||g.removeAttribute("height"),pu.set(A,F.innerHTML),y.dataset.line!==void 0&&(F.dataset.line=y.dataset.line),y.replaceWith(F)}catch(F){ot.emit(t,Po,{name:"mermaid",message:F.message,error:F})}--m===0&&c.remove()}})(w)))}}}},zm=(e,t)=>{t=t||{};const n=3,u=t.marker||"!",o=u.charCodeAt(0),r=u.length;let a="",s="";const l=(f,c,h,p,m)=>{const w=f[c];return w.type==="admonition_open"?f[c].attrPush(["class",`${X}-admonition ${X}-admonition-${w.info}`]):w.type==="admonition_title_open"&&f[c].attrPush(["class",`${X}-admonition-title`]),m.renderToken(f,c,h)},d=f=>{const c=f.trim().split(" ",2);s="",a=c[0],c.length>1&&(s=f.substring(a.length+2))};e.block.ruler.before("code","admonition",(f,c,h,p)=>{let m,w,y,A=!1,b=f.bMarks[c]+f.tShift[c],g=f.eMarks[c];if(o!==f.src.charCodeAt(b))return!1;for(m=b+1;m<=g&&u[(m-b)%r]===f.src[m];m++);const x=Math.floor((m-b)/r);if(x!==n)return!1;m-=(m-b)%r;const k=f.src.slice(b,m),F=f.src.slice(m,g);if(d(F),p)return!0;for(w=c;w++,!(w>=h||(b=f.bMarks[w]+f.tShift[w],g=f.eMarks[w],b<g&&f.sCount[w]<f.blkIndent));)if(o===f.src.charCodeAt(b)&&!(f.sCount[w]-f.blkIndent>=4)){for(m=b+1;m<=g&&u[(m-b)%r]===f.src[m];m++);if(!(Math.floor((m-b)/r)<x)&&(m-=(m-b)%r,m=f.skipSpaces(m),!(m<g))){A=!0;break}}const T=f.parentType,D=f.lineMax;return f.parentType="root",f.lineMax=w,y=f.push("admonition_open","div",1),y.markup=k,y.block=!0,y.info=a,y.map=[c,w],s&&(y=f.push("admonition_title_open","p",1),y.markup=k+" "+a,y.map=[c,w],y=f.push("inline","",0),y.content=s,y.map=[c,f.line-1],y.children=[],y=f.push("admonition_title_close","p",-1),y.markup=k+" "+a),f.md.block.tokenize(f,c+1,w),y=f.push("admonition_close","div",-1),y.markup=f.src.slice(b,m),y.block=!0,f.parentType=T,f.lineMax=D,f.line=w+(A?1:0),!0},{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.admonition_open=l,e.renderer.rules.admonition_title_open=l,e.renderer.rules.admonition_title_close=l,e.renderer.rules.admonition_close=l},Mo=(e,t)=>{const n=e.attrs?e.attrs.slice():[];return t.forEach(u=>{const o=e.attrIndex(u[0]);o<0?n.push(u):(n[o]=n[o].slice(),n[o][1]+=` ${u[1]}`)}),n},jm=(e,t)=>{const n=e.renderer.rules.fence,u=e.utils.unescapeAll,o=/\[(\w*)(?::([\w ]*))?\]/,r=/::(open|close)/,a=c=>c.info?u(c.info).trim():"",s=c=>{const h=a(c),[p=null,m=""]=(o.exec(h)||[]).slice(1);return[p,m]},l=c=>{const h=a(c);return h?h.split(/(\s+)/g)[0]:""},d=c=>{const h=c.info.match(r)||[],p=h[1]==="open"||h[1]!=="close"&&t.codeFoldable&&c.content.trim().split(`
36
+ `).length<t.autoFoldThreshold,m=h[1]||t.codeFoldable?"details":"div",w=h[1]||t.codeFoldable?"summary":"div";return{open:p,tagContainer:m,tagHeader:w}},f=(c,h,p,m,w)=>{var R;if(c[h].hidden)return"";const y=(R=t.usedLanguageTextRef.value)==null?void 0:R.copyCode.text,A=t.customIconRef.value.copy||y,b=!!t.customIconRef.value.copy,g=`<span class="${X}-collapse-tips">${St("collapse-tips",t.customIconRef.value)}</span>`,[x]=s(c[h]);if(x===null){const{open:M,tagContainer:$,tagHeader:re}=d(c[h]),te=[["class",`${X}-code`]];M&&te.push(["open",""]);const z={attrs:Mo(c[h],te)};c[h].info=c[h].info.replace(r,"");const j=n(c,h,p,m,w);return`
37
37
  <${$} ${w.renderAttrs(z)}>
38
38
  <${re} class="${X}-code-head">
39
39
  <div class="${X}-code-flag"><span></span><span></span><span></span></div>
@@ -46,20 +46,20 @@ See: https://github.com/francoischalifour/medium-zoom`)}},F1=function(t){var n=d
46
46
  </${re}>
47
47
  ${j}
48
48
  </${$}>
49
- `}let k,T,D,F,U="",_="",N="";const{open:L,tagContainer:C,tagHeader:P}=d(c[h]),V=[["class",`${X}-code`]];L&&V.push(["open",""]);const E={attrs:Mo(c[h],V)};for(let R=h;R<c.length&&(k=c[R],[T,D]=s(k),T===x);R++){k.info=k.info.replace(o,"").replace(r,""),k.hidden=!0;const $=`${X}-codetab-${t.editorId}-${h}-${R-h}`;F=R-h>0?"":"checked",U+=`
49
+ `}let k,F,T,D,U="",_="",N="";const{open:I,tagContainer:C,tagHeader:P}=d(c[h]),V=[["class",`${X}-code`]];I&&V.push(["open",""]);const E={attrs:Mo(c[h],V)};for(let M=h;M<c.length&&(k=c[M],[F,T]=s(k),F===x);M++){k.info=k.info.replace(o,"").replace(r,""),k.hidden=!0;const $=`${X}-codetab-${t.editorId}-${h}-${M-h}`;D=M-h>0?"":"checked",U+=`
50
50
  <li>
51
51
  <input
52
52
  type="radio"
53
- id="label-${X}-codetab-label-1-${t.editorId}-${h}-${R-h}"
53
+ id="label-${X}-codetab-label-1-${t.editorId}-${h}-${M-h}"
54
54
  name="${X}-codetab-label-${t.editorId}-${h}"
55
55
  class="${$}"
56
- ${F}
56
+ ${D}
57
57
  >
58
58
  <label
59
- for="label-${X}-codetab-label-1-${t.editorId}-${h}-${R-h}"
59
+ for="label-${X}-codetab-label-1-${t.editorId}-${h}-${M-h}"
60
60
  onclick="this.getRootNode().querySelectorAll('.${$}').forEach(e => e.click())"
61
61
  >
62
- ${e.utils.escapeHtml(D||l(k))}
62
+ ${e.utils.escapeHtml(T||l(k))}
63
63
  </label>
64
64
  </li>`,_+=`
65
65
  <div role="tabpanel">
@@ -67,15 +67,15 @@ See: https://github.com/francoischalifour/medium-zoom`)}},F1=function(t){var n=d
67
67
  type="radio"
68
68
  name="${X}-codetab-pre-${t.editorId}-${h}"
69
69
  class="${$}"
70
- ${F}
70
+ ${D}
71
71
  role="presentation">
72
- ${n(c,R,m,p,w)}
72
+ ${n(c,M,p,m,w)}
73
73
  </div>`,N+=`
74
74
  <input
75
75
  type="radio"
76
76
  name="${X}-codetab-lang-${t.editorId}-${h}"
77
77
  class="${$}"
78
- ${F}
78
+ ${D}
79
79
  role="presentation">
80
80
  <span class=${X}-code-lang role="note">${e.utils.escapeHtml(l(k))}</span>`}return`
81
81
  <${C} ${w.renderAttrs(E)}>
@@ -92,12 +92,12 @@ See: https://github.com/francoischalifour/medium-zoom`)}},F1=function(t){var n=d
92
92
  </${P}>
93
93
  ${_}
94
94
  </${C}>
95
- `};e.renderer.rules.fence=f,e.renderer.rules.code_block=f},H1=(e,t)=>{const n=e.renderer.rules.fence.bind(e.renderer.rules);e.renderer.rules.fence=(u,o,r,a,s)=>{var f,c;const l=u[o],d=l.content.trim();if(l.info==="echarts"){if(l.attrSet("class",`${X}-echarts`),l.attrSet("data-echarts-theme",t.themeRef.value),l.map&&l.level===0){const h=l.map[1]-1,m=!!((c=(f=a.srcLines[h])==null?void 0:f.trim())!=null&&c.startsWith("```"));l.attrSet("data-closed",`${m}`),l.attrSet("data-line",String(l.map[0]))}return`<div ${s.renderAttrs(l)} style="width: 100%; aspect-ratio: 4 / 3;">${e.utils.escapeHtml(d)}</div>`}return n(u,o,r,a,s)}},$1=(e,t)=>{e.renderer.rules.heading_open=(n,u)=>{var s;const o=n[u],r=((s=n[u+1].children)==null?void 0:s.reduce((l,d)=>l+(["text","code_inline","math_inline"].includes(d.type)&&d.content||""),""))||"",a=o.markup.length;return t.headsRef.value.push({text:r,level:a,line:o.map[0],currentToken:o,nextToken:n[u+1]}),o.map&&o.level===0&&o.attrSet("id",t.mdHeadingId({text:r,level:a,index:t.headsRef.value.length,currentToken:o,nextToken:n[u+1]})),e.renderer.renderToken(n,u,t)},e.renderer.rules.heading_close=(n,u,o,r,a)=>a.renderToken(n,u,o)},As={block:[{open:"$$",close:"$$"},{open:"\\[",close:"\\]"}],inline:[{open:"$$",close:"$$"},{open:"$",close:"$"},{open:"\\[",close:"\\]"},{open:"\\(",close:"\\)"}]},U1=e=>(t,n)=>{const u=e.delimiters;for(const o of u){if(!t.src.startsWith(o.open,t.pos))continue;const r=t.pos+o.open.length;let a=r;for(;(a=t.src.indexOf(o.close,a))!==-1;){let s=0,l=a-1;for(;l>=0&&t.src[l]==="\\";)s++,l--;if(s%2===0)break;a+=o.close.length}if(a!==-1){if(a-r===0)return n||(t.pending+=o.open+o.close),t.pos=a+o.close.length,!0;if(!n){const s=t.push("math_inline","math",0);s.markup=o.open,s.content=t.src.slice(r,a)}return t.pos=a+o.close.length,!0}}return!1},W1=e=>(t,n,u,o)=>{const r=e.delimiters,a=t.bMarks[n]+t.tShift[n],s=t.eMarks[n],l=(d,f,c)=>{t.line=f;const h=t.push("math_block","math",0);return h.block=!0,h.content=d,h.map=[n,t.line],h.markup=c,!0};for(const d of r){const f=a;if(t.src.slice(f,f+d.open.length)!==d.open)continue;const c=f+d.open.length,h=t.src.slice(c,s).trim(),m=h==="",p=h===d.close,w=h.endsWith(d.close);if(!m&&!p&&!w)continue;if(o)return!0;if(p)return l("",n+1,d.open);if(!m&&w){const x=h.slice(0,-d.close.length);return l(x,n+1,d.open)}let y=n+1,A=!1,b="";for(;y<u;y++){const x=t.bMarks[y]+t.tShift[y],k=t.eMarks[y];if(x<k&&t.tShift[y]<t.blkIndent)break;if(t.src.slice(x,k).trim().endsWith(d.close)){const T=t.src.slice(0,k).lastIndexOf(d.close);b=t.src.slice(x,T),A=!0;break}}if(!A)continue;const g=t.getLines(n+1,y,t.tShift[n],!0)+(b.trim()?b:"");return l(g,y+1,d.open)}return!1},G1=(e,{katexRef:t,inlineDelimiters:n,blockDelimiters:u})=>{const o=(s,l,d,f,c=!1)=>{const h={attrs:Mo(s,[["class",l]])},m=f.renderAttrs(h);if(!t.value)return`<${d} ${m}>${s.content}</${d}>`;const p=t.value.renderToString(s.content,lt.katexConfig({throwOnError:!1,displayMode:c}));return`<${d} ${m} data-processed>${p}</${d}>`},r=(s,l,d,f,c)=>o(s[l],`${X}-katex-inline`,"span",c),a=(s,l,d,f,c)=>o(s[l],`${X}-katex-block`,"p",c,!0);e.inline.ruler.before("escape","math_inline",U1({delimiters:n||As.inline})),e.block.ruler.after("blockquote","math_block",W1({delimiters:u||As.block}),{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=r,e.renderer.rules.math_block=a},X1=(e,t)=>{const n=e.renderer.rules.fence.bind(e.renderer.rules);e.renderer.rules.fence=(u,o,r,a,s)=>{var f,c;const l=u[o],d=l.content.trim();if(l.info==="mermaid"){if(l.attrSet("class",`${X}-mermaid`),l.attrSet("data-mermaid-theme",t.themeRef.value),l.map&&l.level===0){const m=l.map[1]-1,p=!!((c=(f=a.srcLines[m])==null?void 0:f.trim())!=null&&c.startsWith("```"));l.attrSet("data-closed",`${p}`),l.attrSet("data-line",String(l.map[0]))}const h=pu.get(d);return h?(l.attrSet("data-processed",""),l.attrSet("data-content",d),`<p ${s.renderAttrs(l)}>${h}</p>`):`<div ${s.renderAttrs(l)}>${e.utils.escapeHtml(d)}</div>`}return n(u,o,r,a,s)}},ks=(e,t,n)=>{const u=e.attrIndex(t),o=[t,n];u<0?e.attrPush(o):(e.attrs=e.attrs||[],e.attrs[u]=o)},q1=e=>e.type==="inline",Z1=e=>e.type==="paragraph_open",Y1=e=>e.type==="list_item_open",K1=e=>e.content.indexOf("[ ] ")===0||e.content.indexOf("[x] ")===0||e.content.indexOf("[X] ")===0,Q1=(e,t)=>q1(e[t])&&Z1(e[t-1])&&Y1(e[t-2])&&K1(e[t]),J1=(e,t)=>{const n=e[t].level-1;for(let u=t-1;u>=0;u--)if(e[u].level===n)return u;return-1},ep=e=>{const t=new e("html_inline","",0);return t.content="<label>",t},tp=e=>{const t=new e("html_inline","",0);return t.content="</label>",t},np=(e,t,n)=>{const u=new n("html_inline","",0);return u.content='<label class="task-list-item-label" for="'+t+'">'+e+"</label>",u.attrs=[["for",t]],u},rp=(e,t,n)=>{const u=new t("html_inline","",0),o=n.enabled?" ":' disabled="" ';return e.content.indexOf("[ ] ")===0?u.content='<input class="task-list-item-checkbox"'+o+'type="checkbox">':(e.content.indexOf("[x] ")===0||e.content.indexOf("[X] ")===0)&&(u.content='<input class="task-list-item-checkbox" checked=""'+o+'type="checkbox">'),u},up=(e,t,n)=>{if(e.children=e.children||[],e.children.unshift(rp(e,t,n)),e.children[1].content=e.children[1].content.slice(3),e.content=e.content.slice(3),n.label)if(n.labelAfter){e.children.pop();const u="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);e.children[0].content=e.children[0].content.slice(0,-1)+' id="'+u+'">',e.children.push(np(e.content,u,t))}else e.children.unshift(ep(t)),e.children.push(tp(t))},op=(e,t={})=>{e.core.ruler.after("inline","github-task-lists",n=>{const u=n.tokens;for(let o=2;o<u.length;o++)Q1(u,o)&&(up(u[o],n.Token,t),ks(u[o-2],"class","task-list-item"+(t.enabled?" enabled":" ")),ks(u[J1(u,o-2)],"class","contains-task-list"))})},ip=e=>{e.core.ruler.push("init-line-number",t=>(t.tokens.forEach(n=>{n.map&&(n.attrs||(n.attrs=[]),n.attrs.push(["data-line",n.map[0].toString()]))}),!0))},ap=(e,t)=>{const{editorConfig:n,markdownItPlugins:u}=lt,o=i.inject("editorId"),r=i.inject("language"),a=i.inject("usedLanguageText"),s=i.inject("showCodeRowNumber"),l=i.inject("theme"),d=i.inject("customIcon"),f=i.inject("rootRef"),c=i.inject("setting"),h=i.ref([]),m=R1(e),p=M1(e),{reRenderRef:w,replaceMermaid:y}=B1(e),{reRenderEcharts:A,replaceEcharts:b}=V1(e),g=Ze({html:!0,breaks:!0,linkify:!0}),x=[{type:"image",plugin:g1,options:{figcaption:!0,classes:"md-zoom"}},{type:"admonition",plugin:z1,options:{}},{type:"taskList",plugin:op,options:{}},{type:"heading",plugin:$1,options:{mdHeadingId:e.mdHeadingId,headsRef:h}},{type:"code",plugin:j1,options:{editorId:o,usedLanguageTextRef:a,codeFoldable:e.codeFoldable,autoFoldThreshold:e.autoFoldThreshold,customIconRef:d}},{type:"sub",plugin:x1,options:{}},{type:"sup",plugin:A1,options:{}}];e.noKatex||x.push({type:"katex",plugin:G1,options:{katexRef:p}}),e.noMermaid||x.push({type:"mermaid",plugin:X1,options:{themeRef:l}}),e.noEcharts||x.push({type:"echarts",plugin:H1,options:{themeRef:l}}),u(x,{editorId:o}).forEach(V=>{g.use(V.plugin,V.options)});const k=g.options.highlight;g.set({highlight:(V,E,M)=>{if(k){const re=k(V,E,M);if(re)return re}let R;!e.noHighlight&&m.value?m.value.getLanguage(E)?R=m.value.highlight(V,{language:E,ignoreIllegals:!0}).value:R=m.value.highlightAuto(V).value:R=g.utils.escapeHtml(V);const $=s?l1(R.replace(/^\n+|\n+$/g,""),V.replace(/^\n+|\n+$/g,"")):`<span class="${X}-code-block">${R.replace(/^\n+|\n+$/g,"")}</span>`;return`<pre><code class="language-${E}" language=${E}>${$}</code></pre>`}}),ip(g);const T=i.ref(`_article-key_${No()}`),D=i.ref(e.sanitize(g.render(e.modelValue,{srcLines:e.modelValue.split(`
96
- `)})));let F=()=>{},U=()=>{};const _=()=>{var E;const V=(E=f.value)==null?void 0:E.querySelectorAll(`#${o} p.${X}-mermaid:not([data-closed=false])`);U(),U=h1(V,{customIcon:d.value}),F(),F=p1(V,{customIcon:d.value})},N=()=>{ot.emit(o,o1,D.value),e.onHtmlChanged(D.value),e.onGetCatalog(h.value),ot.emit(o,Vo,h.value),i.nextTick(()=>{y().then(_),b()})},L=()=>{h.value=[],D.value=e.sanitize(g.render(e.modelValue,{srcLines:e.modelValue.split(`
97
- `)}))},C=i.computed(()=>(e.noKatex||!!p.value)&&(e.noHighlight||!!m.value));let P=-1;return i.watch([i.toRef(e,"modelValue"),C,w,r],()=>{P=window.setTimeout(()=>{L()},t?0:n.renderDelay)}),i.watch(()=>c.value.preview,()=>{c.value.preview&&i.nextTick(()=>{y().then(_),b(),ot.emit(o,Vo,h.value)})}),i.watch([D,A],()=>{N()}),i.onMounted(N),i.onMounted(()=>{ot.on(o,{name:i1,callback(){ot.emit(o,Vo,h.value)}}),ot.on(o,{name:ds,callback:()=>{T.value=`_article-key_${No()}`,L()}})}),i.onBeforeUnmount(()=>{F(),U(),clearTimeout(P)}),{html:D,key:T}},sp=(e,t)=>{const n=i.inject("editorId"),u=i.inject("setting"),{noImgZoomIn:o}=e,r=Zh(()=>{const a=document.querySelectorAll(`#${n}-preview img:not(.not-zoom):not(.medium-zoom-image)`);a.length!==0&&T1(a,{background:"#00000073"})});i.onMounted(async()=>{!o&&u.value.preview&&await r()}),i.watch([t,()=>u.value.preview],async()=>{!o&&u.value.preview&&await r()})},Cs={checked:{regexp:/- \[x\]/,value:"- [ ]"},unChecked:{regexp:/- \[\s\]/,value:"- [x]"}},lp=(e,t)=>{const n=i.inject("editorId"),u=i.inject("rootRef");let o=()=>{};const r=()=>{if(!u.value)return!1;const a=u.value.querySelectorAll(".task-list-item.enabled"),s=l=>{var p;l.preventDefault();const d=l.target.checked?"unChecked":"checked",f=(p=l.target.parentElement)==null?void 0:p.dataset.line;if(!f)return;const c=Number(f),h=e.modelValue.split(`
98
- `),m=h[Number(c)].replace(Cs[d].regexp,Cs[d].value);e.previewOnly?(h[Number(c)]=m,e.onChange(h.join(`
99
- `))):ot.emit(n,a1,c+1,m)};a.forEach(l=>{l.addEventListener("click",s)}),o=()=>{a.forEach(l=>{l.removeEventListener("click",s)})}};i.onBeforeUnmount(()=>{o()}),i.watch([t],()=>{o(),i.nextTick(r)},{immediate:!0})},cp=(e,t,n)=>{const u=i.inject("setting"),o=()=>{i.nextTick(()=>{var a;(a=e.onRemount)==null||a.call(e)})},r=a=>{a&&o()};i.watch([t,n],o),i.watch(()=>u.value.preview,r),i.watch(()=>u.value.htmlPreview,r),i.onMounted(o)},_s={modelValue:{type:String,default:""},onChange:{type:Function,default:()=>{}},onHtmlChanged:{type:Function,default:()=>{}},onGetCatalog:{type:Function,default:()=>{}},mdHeadingId:{type:Function,default:()=>""},noMermaid:{type:Boolean,default:!1},sanitize:{type:Function,default:e=>e},noKatex:{type:Boolean,default:!1},formatCopiedText:{type:Function,default:e=>e},noHighlight:{type:Boolean,default:!1},previewOnly:{type:Boolean,default:!1},noImgZoomIn:{type:Boolean},sanitizeMermaid:{type:Function},codeFoldable:{type:Boolean},autoFoldThreshold:{type:Number},onRemount:{type:Function},noEcharts:{type:Boolean},previewComponent:{type:[Object,Function],default:void 0}};({..._s});const Es=e=>{const t=new DOMParser().parseFromString(e,"text/html");return Array.from(t.body.childNodes)},dp=(e,t)=>e.nodeType!==t.nodeType?!1:e.nodeType===Node.TEXT_NODE||e.nodeType===Node.COMMENT_NODE?e.textContent===t.textContent:e.nodeType===Node.ELEMENT_NODE?e.outerHTML===t.outerHTML:e.isEqualNode?e.isEqualNode(t):!1,fp=i.defineComponent({name:"UpdateOnDemand",props:{id:{type:String,required:!0},class:{type:[String,Array,Object],required:!0},html:{type:String,required:!0}},setup(e){const t=i.ref(),n=e.html,u=(o,r)=>{if(!t.value)return;const a=t.value,s=Array.from(a.childNodes),l=Math.min(o.length,r.length);let d=-1;for(let c=0;c<l;c++)if(!dp(o[c],r[c])){d=c;break}if(d===-1)if(r.length>o.length)d=o.length;else if(o.length>r.length)d=r.length;else return;const f=Math.min(d,s.length);for(let c=s.length-1;c>=f;c--)s[c].remove();for(let c=d;c<o.length;c++)a.appendChild(o[c].cloneNode(!0))};return i.watch(()=>e.html,(o,r)=>{const a=Es(o),s=Es(r||"");u(a,s)}),()=>i.createVNode("div",{id:e.id,class:e.class,innerHTML:n,ref:t},null)}}),hp=i.defineComponent({name:"ContentPreview",props:_s,setup(e){const t=i.inject("editorId"),n=i.inject("setting"),u=i.inject("previewTheme"),o=i.inject("showCodeRowNumber"),{html:r,key:a}=ap(e,e.previewOnly);P1(e,r,a),sp(e,r),lp(e,r),cp(e,r,a);const s=i.computed(()=>[`${X}-preview`,`${u==null?void 0:u.value}-theme`,o&&`${X}-scrn`].filter(Boolean)),l=()=>{const d=`${t}-preview`;return e.previewComponent?i.h(e.previewComponent,{key:a.value,html:r.value,id:d,class:s.value}):i.createVNode(fp,{key:a.value,html:r.value,id:d,class:s.value},null)};return()=>i.createVNode(i.Fragment,null,[n.value.preview&&(e.previewOnly?l():i.createVNode("div",{id:`${t}-preview-wrapper`,class:`${X}-preview-wrapper`,key:"content-preview-wrapper"},[l()])),n.value.htmlPreview&&i.createVNode("div",{id:`${t}-html-wrapper`,class:`${X}-preview-wrapper`,key:"html-preview-wrapper"},[i.createVNode("div",{class:`${X}-html`},[r.value])])])}}),pp=({text:e})=>e,Ss={modelValue:{type:String,default:""},onChange:{type:Function,default:void 0},theme:{type:String,default:"light"},class:{type:String,default:""},language:{type:String,default:"zh-CN"},onHtmlChanged:{type:Function,default:void 0},onGetCatalog:{type:Function,default:void 0},editorId:{type:String,default:void 0},id:{type:String,default:void 0},showCodeRowNumber:{type:Boolean,default:!0},previewTheme:{type:String,default:"default"},style:{type:Object,default:()=>({})},mdHeadingId:{type:Function,default:pp},sanitize:{type:Function,default:e=>e},noMermaid:{type:Boolean,default:!1},noKatex:{type:Boolean,default:!1},codeTheme:{type:String,default:"atom"},formatCopiedText:{type:Function,default:e=>e},codeStyleReverse:{type:Boolean,default:!0},codeStyleReverseList:{type:Array,default:["default","mk-cute"]},noHighlight:{type:Boolean,default:!1},noImgZoomIn:{type:Boolean,default:!1},customIcon:{type:Object,default:{}},sanitizeMermaid:{type:Function,default:e=>Promise.resolve(e)},codeFoldable:{type:Boolean,default:!0},autoFoldThreshold:{type:Number,default:30},onRemount:{type:Function,default:void 0},noEcharts:{type:Boolean,default:!1},previewComponent:{type:[Object,Function],default:void 0}};({...Ss});const Fs=["onHtmlChanged","onGetCatalog","onChange","onRemount","update:modelValue"];[...Fs];const mp=(e,t,n)=>{const{editorId:u}=n,o={rerender(){ot.emit(u,ds)}};t.expose(o)},mu=i.defineComponent({name:"MdPreview",props:Ss,emits:Fs,setup(e,t){const{noKatex:n,noMermaid:u,noHighlight:o}=e,r=i.ref(),a=O1(e);I1(e,{rootRef:r,editorId:a}),mp(e,t,{editorId:a}),i.onBeforeUnmount(()=>{ot.clear(a)});const s=c=>{var h;(h=e.onChange)==null||h.call(e,c),t.emit("onChange",c),t.emit("update:modelValue",c)},l=c=>{var h;(h=e.onHtmlChanged)==null||h.call(e,c),t.emit("onHtmlChanged",c)},d=c=>{var h;(h=e.onGetCatalog)==null||h.call(e,c),t.emit("onGetCatalog",c)},f=()=>{var c;(c=e.onRemount)==null||c.call(e),t.emit("onRemount")};return()=>i.createVNode("div",{id:a,class:[X,e.class,e.theme==="dark"&&`${X}-dark`,`${X}-previewOnly`],style:e.style,ref:r},[i.createVNode(hp,{modelValue:e.modelValue,onChange:s,onHtmlChanged:l,onGetCatalog:d,mdHeadingId:e.mdHeadingId,noMermaid:u,sanitize:e.sanitize,noKatex:n,formatCopiedText:e.formatCopiedText,noHighlight:o,noImgZoomIn:e.noImgZoomIn,previewOnly:!0,sanitizeMermaid:e.sanitizeMermaid,codeFoldable:e.codeFoldable,autoFoldThreshold:e.autoFoldThreshold,onRemount:f,noEcharts:e.noEcharts,previewComponent:e.previewComponent},null)])}});mu.install=e=>(e.component(mu.name,mu),e);const gp={onClick:{type:Function,default:void 0},language:{type:String,default:void 0},theme:{type:String,default:void 0},disabled:{type:Boolean,default:void 0}},Bo=i.defineComponent({name:"NormalFooterToolbar",props:gp,emits:["onClick"],setup(e,t){return()=>{const n=u1({props:e,ctx:t});return i.createVNode("div",{class:[`${X}-footer-item`,e.disabled&&`${X}-disabled`],onClick:u=>{var o;e.disabled||((o=e.onClick)==null||o.call(e,u),t.emit("onClick",u))}},[n])}}});Bo.install=e=>(e.component(Bo.name,Bo),e);var zo={exports:{}},me={},jo={exports:{}},tn={},Ds;function Ts(){if(Ds)return tn;Ds=1;function e(){var r={};return r["align-content"]=!1,r["align-items"]=!1,r["align-self"]=!1,r["alignment-adjust"]=!1,r["alignment-baseline"]=!1,r.all=!1,r["anchor-point"]=!1,r.animation=!1,r["animation-delay"]=!1,r["animation-direction"]=!1,r["animation-duration"]=!1,r["animation-fill-mode"]=!1,r["animation-iteration-count"]=!1,r["animation-name"]=!1,r["animation-play-state"]=!1,r["animation-timing-function"]=!1,r.azimuth=!1,r["backface-visibility"]=!1,r.background=!0,r["background-attachment"]=!0,r["background-clip"]=!0,r["background-color"]=!0,r["background-image"]=!0,r["background-origin"]=!0,r["background-position"]=!0,r["background-repeat"]=!0,r["background-size"]=!0,r["baseline-shift"]=!1,r.binding=!1,r.bleed=!1,r["bookmark-label"]=!1,r["bookmark-level"]=!1,r["bookmark-state"]=!1,r.border=!0,r["border-bottom"]=!0,r["border-bottom-color"]=!0,r["border-bottom-left-radius"]=!0,r["border-bottom-right-radius"]=!0,r["border-bottom-style"]=!0,r["border-bottom-width"]=!0,r["border-collapse"]=!0,r["border-color"]=!0,r["border-image"]=!0,r["border-image-outset"]=!0,r["border-image-repeat"]=!0,r["border-image-slice"]=!0,r["border-image-source"]=!0,r["border-image-width"]=!0,r["border-left"]=!0,r["border-left-color"]=!0,r["border-left-style"]=!0,r["border-left-width"]=!0,r["border-radius"]=!0,r["border-right"]=!0,r["border-right-color"]=!0,r["border-right-style"]=!0,r["border-right-width"]=!0,r["border-spacing"]=!0,r["border-style"]=!0,r["border-top"]=!0,r["border-top-color"]=!0,r["border-top-left-radius"]=!0,r["border-top-right-radius"]=!0,r["border-top-style"]=!0,r["border-top-width"]=!0,r["border-width"]=!0,r.bottom=!1,r["box-decoration-break"]=!0,r["box-shadow"]=!0,r["box-sizing"]=!0,r["box-snap"]=!0,r["box-suppress"]=!0,r["break-after"]=!0,r["break-before"]=!0,r["break-inside"]=!0,r["caption-side"]=!1,r.chains=!1,r.clear=!0,r.clip=!1,r["clip-path"]=!1,r["clip-rule"]=!1,r.color=!0,r["color-interpolation-filters"]=!0,r["column-count"]=!1,r["column-fill"]=!1,r["column-gap"]=!1,r["column-rule"]=!1,r["column-rule-color"]=!1,r["column-rule-style"]=!1,r["column-rule-width"]=!1,r["column-span"]=!1,r["column-width"]=!1,r.columns=!1,r.contain=!1,r.content=!1,r["counter-increment"]=!1,r["counter-reset"]=!1,r["counter-set"]=!1,r.crop=!1,r.cue=!1,r["cue-after"]=!1,r["cue-before"]=!1,r.cursor=!1,r.direction=!1,r.display=!0,r["display-inside"]=!0,r["display-list"]=!0,r["display-outside"]=!0,r["dominant-baseline"]=!1,r.elevation=!1,r["empty-cells"]=!1,r.filter=!1,r.flex=!1,r["flex-basis"]=!1,r["flex-direction"]=!1,r["flex-flow"]=!1,r["flex-grow"]=!1,r["flex-shrink"]=!1,r["flex-wrap"]=!1,r.float=!1,r["float-offset"]=!1,r["flood-color"]=!1,r["flood-opacity"]=!1,r["flow-from"]=!1,r["flow-into"]=!1,r.font=!0,r["font-family"]=!0,r["font-feature-settings"]=!0,r["font-kerning"]=!0,r["font-language-override"]=!0,r["font-size"]=!0,r["font-size-adjust"]=!0,r["font-stretch"]=!0,r["font-style"]=!0,r["font-synthesis"]=!0,r["font-variant"]=!0,r["font-variant-alternates"]=!0,r["font-variant-caps"]=!0,r["font-variant-east-asian"]=!0,r["font-variant-ligatures"]=!0,r["font-variant-numeric"]=!0,r["font-variant-position"]=!0,r["font-weight"]=!0,r.grid=!1,r["grid-area"]=!1,r["grid-auto-columns"]=!1,r["grid-auto-flow"]=!1,r["grid-auto-rows"]=!1,r["grid-column"]=!1,r["grid-column-end"]=!1,r["grid-column-start"]=!1,r["grid-row"]=!1,r["grid-row-end"]=!1,r["grid-row-start"]=!1,r["grid-template"]=!1,r["grid-template-areas"]=!1,r["grid-template-columns"]=!1,r["grid-template-rows"]=!1,r["hanging-punctuation"]=!1,r.height=!0,r.hyphens=!1,r.icon=!1,r["image-orientation"]=!1,r["image-resolution"]=!1,r["ime-mode"]=!1,r["initial-letters"]=!1,r["inline-box-align"]=!1,r["justify-content"]=!1,r["justify-items"]=!1,r["justify-self"]=!1,r.left=!1,r["letter-spacing"]=!0,r["lighting-color"]=!0,r["line-box-contain"]=!1,r["line-break"]=!1,r["line-grid"]=!1,r["line-height"]=!1,r["line-snap"]=!1,r["line-stacking"]=!1,r["line-stacking-ruby"]=!1,r["line-stacking-shift"]=!1,r["line-stacking-strategy"]=!1,r["list-style"]=!0,r["list-style-image"]=!0,r["list-style-position"]=!0,r["list-style-type"]=!0,r.margin=!0,r["margin-bottom"]=!0,r["margin-left"]=!0,r["margin-right"]=!0,r["margin-top"]=!0,r["marker-offset"]=!1,r["marker-side"]=!1,r.marks=!1,r.mask=!1,r["mask-box"]=!1,r["mask-box-outset"]=!1,r["mask-box-repeat"]=!1,r["mask-box-slice"]=!1,r["mask-box-source"]=!1,r["mask-box-width"]=!1,r["mask-clip"]=!1,r["mask-image"]=!1,r["mask-origin"]=!1,r["mask-position"]=!1,r["mask-repeat"]=!1,r["mask-size"]=!1,r["mask-source-type"]=!1,r["mask-type"]=!1,r["max-height"]=!0,r["max-lines"]=!1,r["max-width"]=!0,r["min-height"]=!0,r["min-width"]=!0,r["move-to"]=!1,r["nav-down"]=!1,r["nav-index"]=!1,r["nav-left"]=!1,r["nav-right"]=!1,r["nav-up"]=!1,r["object-fit"]=!1,r["object-position"]=!1,r.opacity=!1,r.order=!1,r.orphans=!1,r.outline=!1,r["outline-color"]=!1,r["outline-offset"]=!1,r["outline-style"]=!1,r["outline-width"]=!1,r.overflow=!1,r["overflow-wrap"]=!1,r["overflow-x"]=!1,r["overflow-y"]=!1,r.padding=!0,r["padding-bottom"]=!0,r["padding-left"]=!0,r["padding-right"]=!0,r["padding-top"]=!0,r.page=!1,r["page-break-after"]=!1,r["page-break-before"]=!1,r["page-break-inside"]=!1,r["page-policy"]=!1,r.pause=!1,r["pause-after"]=!1,r["pause-before"]=!1,r.perspective=!1,r["perspective-origin"]=!1,r.pitch=!1,r["pitch-range"]=!1,r["play-during"]=!1,r.position=!1,r["presentation-level"]=!1,r.quotes=!1,r["region-fragment"]=!1,r.resize=!1,r.rest=!1,r["rest-after"]=!1,r["rest-before"]=!1,r.richness=!1,r.right=!1,r.rotation=!1,r["rotation-point"]=!1,r["ruby-align"]=!1,r["ruby-merge"]=!1,r["ruby-position"]=!1,r["shape-image-threshold"]=!1,r["shape-outside"]=!1,r["shape-margin"]=!1,r.size=!1,r.speak=!1,r["speak-as"]=!1,r["speak-header"]=!1,r["speak-numeral"]=!1,r["speak-punctuation"]=!1,r["speech-rate"]=!1,r.stress=!1,r["string-set"]=!1,r["tab-size"]=!1,r["table-layout"]=!1,r["text-align"]=!0,r["text-align-last"]=!0,r["text-combine-upright"]=!0,r["text-decoration"]=!0,r["text-decoration-color"]=!0,r["text-decoration-line"]=!0,r["text-decoration-skip"]=!0,r["text-decoration-style"]=!0,r["text-emphasis"]=!0,r["text-emphasis-color"]=!0,r["text-emphasis-position"]=!0,r["text-emphasis-style"]=!0,r["text-height"]=!0,r["text-indent"]=!0,r["text-justify"]=!0,r["text-orientation"]=!0,r["text-overflow"]=!0,r["text-shadow"]=!0,r["text-space-collapse"]=!0,r["text-transform"]=!0,r["text-underline-position"]=!0,r["text-wrap"]=!0,r.top=!1,r.transform=!1,r["transform-origin"]=!1,r["transform-style"]=!1,r.transition=!1,r["transition-delay"]=!1,r["transition-duration"]=!1,r["transition-property"]=!1,r["transition-timing-function"]=!1,r["unicode-bidi"]=!1,r["vertical-align"]=!1,r.visibility=!1,r["voice-balance"]=!1,r["voice-duration"]=!1,r["voice-family"]=!1,r["voice-pitch"]=!1,r["voice-range"]=!1,r["voice-rate"]=!1,r["voice-stress"]=!1,r["voice-volume"]=!1,r.volume=!1,r["white-space"]=!1,r.widows=!1,r.width=!0,r["will-change"]=!1,r["word-break"]=!0,r["word-spacing"]=!0,r["word-wrap"]=!0,r["wrap-flow"]=!1,r["wrap-through"]=!1,r["writing-mode"]=!1,r["z-index"]=!1,r}function t(r,a,s){}function n(r,a,s){}var u=/javascript\s*\:/img;function o(r,a){return u.test(a)?"":a}return tn.whiteList=e(),tn.getDefaultWhiteList=e,tn.onAttr=t,tn.onIgnoreAttr=n,tn.safeAttrValue=o,tn}var Ns,Ls;function Is(){return Ls||(Ls=1,Ns={indexOf:function(e,t){var n,u;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,u=e.length;n<u;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var u,o;if(Array.prototype.forEach)return e.forEach(t,n);for(u=0,o=e.length;u<o;u++)t.call(n,e[u],u,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}}),Ns}var Ho,Os;function bp(){if(Os)return Ho;Os=1;var e=Is();function t(n,u){n=e.trimRight(n),n[n.length-1]!==";"&&(n+=";");var o=n.length,r=!1,a=0,s=0,l="";function d(){if(!r){var h=e.trim(n.slice(a,s)),m=h.indexOf(":");if(m!==-1){var p=e.trim(h.slice(0,m)),w=e.trim(h.slice(m+1));if(p){var y=u(a,l.length,p,w,h);y&&(l+=y+"; ")}}}a=s+1}for(;s<o;s++){var f=n[s];if(f==="/"&&n[s+1]==="*"){var c=n.indexOf("*/",s+2);if(c===-1)break;s=c+1,a=s+1,r=!1}else f==="("?r=!0:f===")"?r=!1:f===";"?r||d():f===`
100
- `&&d()}return e.trim(l)}return Ho=t,Ho}var $o,Ps;function yp(){if(Ps)return $o;Ps=1;var e=Ts(),t=bp();Is();function n(r){return r==null}function u(r){var a={};for(var s in r)a[s]=r[s];return a}function o(r){r=u(r||{}),r.whiteList=r.whiteList||e.whiteList,r.onAttr=r.onAttr||e.onAttr,r.onIgnoreAttr=r.onIgnoreAttr||e.onIgnoreAttr,r.safeAttrValue=r.safeAttrValue||e.safeAttrValue,this.options=r}return o.prototype.process=function(r){if(r=r||"",r=r.toString(),!r)return"";var a=this,s=a.options,l=s.whiteList,d=s.onAttr,f=s.onIgnoreAttr,c=s.safeAttrValue,h=t(r,function(m,p,w,y,A){var b=l[w],g=!1;if(b===!0?g=b:typeof b=="function"?g=b(y):b instanceof RegExp&&(g=b.test(y)),g!==!0&&(g=!1),y=c(w,y),!!y){var x={position:p,sourcePosition:m,source:A,isWhite:g};if(g){var k=d(w,y,x);return n(k)?w+":"+y:k}else{var k=f(w,y,x);if(!n(k))return k}}});return h},$o=o,$o}var Vs;function Uo(){return Vs||(Vs=1,function(e,t){var n=Ts(),u=yp();function o(a,s){var l=new u(s);return l.process(a)}t=e.exports=o,t.FilterCSS=u;for(var r in n)t[r]=n[r];typeof window<"u"&&(window.filterCSS=e.exports)}(jo,jo.exports)),jo.exports}var Rs,Ms;function Wo(){return Ms||(Ms=1,Rs={indexOf:function(e,t){var n,u;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,u=e.length;n<u;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var u,o;if(Array.prototype.forEach)return e.forEach(t,n);for(u=0,o=e.length;u<o;u++)t.call(n,e[u],u,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,n=t.exec(e);return n?n.index:-1}}),Rs}var Bs;function zs(){if(Bs)return me;Bs=1;var e=Uo().FilterCSS,t=Uo().getDefaultWhiteList,n=Wo();function u(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var o=new e;function r(E,M,R){}function a(E,M,R){}function s(E,M,R){}function l(E,M,R){}function d(E){return E.replace(c,"&lt;").replace(h,"&gt;")}function f(E,M,R,$){if(R=_(R),M==="href"||M==="src"){if(R=n.trim(R),R==="#")return"#";if(!(R.substr(0,7)==="http://"||R.substr(0,8)==="https://"||R.substr(0,7)==="mailto:"||R.substr(0,4)==="tel:"||R.substr(0,11)==="data:image/"||R.substr(0,6)==="ftp://"||R.substr(0,2)==="./"||R.substr(0,3)==="../"||R[0]==="#"||R[0]==="/"))return""}else if(M==="background"){if(b.lastIndex=0,b.test(R))return""}else if(M==="style"){if(g.lastIndex=0,g.test(R)||(x.lastIndex=0,x.test(R)&&(b.lastIndex=0,b.test(R))))return"";$!==!1&&($=$||o,R=$.process(R))}return R=N(R),R}var c=/</g,h=/>/g,m=/"/g,p=/&quot;/g,w=/&#([a-zA-Z0-9]*);?/gim,y=/&colon;?/gim,A=/&newline;?/gim,b=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,g=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,x=/u\s*r\s*l\s*\(.*/gi;function k(E){return E.replace(m,"&quot;")}function T(E){return E.replace(p,'"')}function D(E){return E.replace(w,function(M,R){return R[0]==="x"||R[0]==="X"?String.fromCharCode(parseInt(R.substr(1),16)):String.fromCharCode(parseInt(R,10))})}function F(E){return E.replace(y,":").replace(A," ")}function U(E){for(var M="",R=0,$=E.length;R<$;R++)M+=E.charCodeAt(R)<32?" ":E.charAt(R);return n.trim(M)}function _(E){return E=T(E),E=D(E),E=F(E),E=U(E),E}function N(E){return E=k(E),E=d(E),E}function L(){return""}function C(E,M){typeof M!="function"&&(M=function(){});var R=!Array.isArray(E);function $(z){return R?!0:n.indexOf(E,z)!==-1}var re=[],te=!1;return{onIgnoreTag:function(z,j,I){if($(z))if(I.isClosing){var B="[/removed]",W=I.position+B.length;return re.push([te!==!1?te:I.position,W]),te=!1,B}else return te||(te=I.position),"[removed]";else return M(z,j,I)},remove:function(z){var j="",I=0;return n.forEach(re,function(B){j+=z.slice(I,B[0]),I=B[1]}),j+=z.slice(I),j}}}function P(E){for(var M="",R=0;R<E.length;){var $=E.indexOf("<!--",R);if($===-1){M+=E.slice(R);break}M+=E.slice(R,$);var re=E.indexOf("-->",$);if(re===-1)break;R=re+3}return M}function V(E){var M=E.split("");return M=M.filter(function(R){var $=R.charCodeAt(0);return $===127?!1:$<=31?$===10||$===13:!0}),M.join("")}return me.whiteList=u(),me.getDefaultWhiteList=u,me.onTag=r,me.onIgnoreTag=a,me.onTagAttr=s,me.onIgnoreTagAttr=l,me.safeAttrValue=f,me.escapeHtml=d,me.escapeQuote=k,me.unescapeQuote=T,me.escapeHtmlEntities=D,me.escapeDangerHtml5Entities=F,me.clearNonPrintableCharacter=U,me.friendlyAttrValue=_,me.escapeAttrValue=N,me.onIgnoreTagStripAll=L,me.StripTagBody=C,me.stripCommentTag=P,me.stripBlankChar=V,me.attributeWrapSign='"',me.cssFilter=o,me.getDefaultCSSWhiteList=t,me}var gu={},js;function Hs(){if(js)return gu;js=1;var e=Wo();function t(c){var h=e.spaceIndex(c),m;return h===-1?m=c.slice(1,-1):m=c.slice(1,h+1),m=e.trim(m).toLowerCase(),m.slice(0,1)==="/"&&(m=m.slice(1)),m.slice(-1)==="/"&&(m=m.slice(0,-1)),m}function n(c){return c.slice(0,2)==="</"}function u(c,h,m){var p="",w=0,y=!1,A=!1,b=0,g=c.length,x="",k="";e:for(b=0;b<g;b++){var T=c.charAt(b);if(y===!1){if(T==="<"){y=b;continue}}else if(A===!1){if(T==="<"){p+=m(c.slice(w,b)),y=b,w=b;continue}if(T===">"||b===g-1){p+=m(c.slice(w,y)),k=c.slice(y,b+1),x=t(k),p+=h(y,p.length,x,k,n(k)),w=b+1,y=!1;continue}if(T==='"'||T==="'")for(var D=1,F=c.charAt(b-D);F.trim()===""||F==="=";){if(F==="="){A=T;continue e}F=c.charAt(b-++D)}}else if(T===A){A=!1;continue}}return w<g&&(p+=m(c.substr(w))),p}var o=/[^a-zA-Z0-9\\_:.-]/gim;function r(c,h){var m=0,p=0,w=[],y=!1,A=c.length;function b(D,F){if(D=e.trim(D),D=D.replace(o,"").toLowerCase(),!(D.length<1)){var U=h(D,F||"");U&&w.push(U)}}for(var g=0;g<A;g++){var x=c.charAt(g),k,T;if(y===!1&&x==="="){y=c.slice(m,g),m=g+1,p=c.charAt(m)==='"'||c.charAt(m)==="'"?m:s(c,g+1);continue}if(y!==!1&&g===p){if(T=c.indexOf(x,g+1),T===-1)break;k=e.trim(c.slice(p+1,T)),b(y,k),y=!1,g=T,m=g+1;continue}if(/\s|\n|\t/.test(x))if(c=c.replace(/\s|\n|\t/g," "),y===!1)if(T=a(c,g),T===-1){k=e.trim(c.slice(m,g)),b(k),y=!1,m=g+1;continue}else{g=T-1;continue}else if(T=l(c,g-1),T===-1){k=e.trim(c.slice(m,g)),k=f(k),b(y,k),y=!1,m=g+1;continue}else continue}return m<c.length&&(y===!1?b(c.slice(m)):b(y,f(e.trim(c.slice(m))))),e.trim(w.join(" "))}function a(c,h){for(;h<c.length;h++){var m=c[h];if(m!==" ")return m==="="?h:-1}}function s(c,h){for(;h<c.length;h++){var m=c[h];if(m!==" ")return m==="'"||m==='"'?h:-1}}function l(c,h){for(;h>0;h--){var m=c[h];if(m!==" ")return m==="="?h:-1}}function d(c){return c[0]==='"'&&c[c.length-1]==='"'||c[0]==="'"&&c[c.length-1]==="'"}function f(c){return d(c)?c.substr(1,c.length-2):c}return gu.parseTag=u,gu.parseAttr=r,gu}var Go,$s;function xp(){if($s)return Go;$s=1;var e=Uo().FilterCSS,t=zs(),n=Hs(),u=n.parseTag,o=n.parseAttr,r=Wo();function a(c){return c==null}function s(c){var h=r.spaceIndex(c);if(h===-1)return{html:"",closing:c[c.length-2]==="/"};c=r.trim(c.slice(h+1,-1));var m=c[c.length-1]==="/";return m&&(c=r.trim(c.slice(0,-1))),{html:c,closing:m}}function l(c){var h={};for(var m in c)h[m]=c[m];return h}function d(c){var h={};for(var m in c)Array.isArray(c[m])?h[m.toLowerCase()]=c[m].map(function(p){return p.toLowerCase()}):h[m.toLowerCase()]=c[m];return h}function f(c){c=l(c||{}),c.stripIgnoreTag&&(c.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),c.onIgnoreTag=t.onIgnoreTagStripAll),c.whiteList||c.allowList?c.whiteList=d(c.whiteList||c.allowList):c.whiteList=t.whiteList,this.attributeWrapSign=c.singleQuotedAttributeValue===!0?"'":t.attributeWrapSign,c.onTag=c.onTag||t.onTag,c.onTagAttr=c.onTagAttr||t.onTagAttr,c.onIgnoreTag=c.onIgnoreTag||t.onIgnoreTag,c.onIgnoreTagAttr=c.onIgnoreTagAttr||t.onIgnoreTagAttr,c.safeAttrValue=c.safeAttrValue||t.safeAttrValue,c.escapeHtml=c.escapeHtml||t.escapeHtml,this.options=c,c.css===!1?this.cssFilter=!1:(c.css=c.css||{},this.cssFilter=new e(c.css))}return f.prototype.process=function(c){if(c=c||"",c=c.toString(),!c)return"";var h=this,m=h.options,p=m.whiteList,w=m.onTag,y=m.onIgnoreTag,A=m.onTagAttr,b=m.onIgnoreTagAttr,g=m.safeAttrValue,x=m.escapeHtml,k=h.attributeWrapSign,T=h.cssFilter;m.stripBlankChar&&(c=t.stripBlankChar(c)),m.allowCommentTag||(c=t.stripCommentTag(c));var D=!1;m.stripIgnoreTagBody&&(D=t.StripTagBody(m.stripIgnoreTagBody,y),y=D.onIgnoreTag);var F=u(c,function(U,_,N,L,C){var P={sourcePosition:U,position:_,isClosing:C,isWhite:Object.prototype.hasOwnProperty.call(p,N)},V=w(N,L,P);if(!a(V))return V;if(P.isWhite){if(P.isClosing)return"</"+N+">";var E=s(L),M=p[N],R=o(E.html,function($,re){var te=r.indexOf(M,$)!==-1,z=A(N,$,re,te);return a(z)?te?(re=g(N,$,re,T),re?$+"="+k+re+k:$):(z=b(N,$,re,te),a(z)?void 0:z):z});return L="<"+N,R&&(L+=" "+R),E.closing&&(L+=" /"),L+=">",L}else return V=y(N,L,P),a(V)?x(L):V},x);return D&&(F=D.remove(F)),F},Go=f,Go}var Us;function wp(){return Us||(Us=1,function(e,t){var n=zs(),u=Hs(),o=xp();function r(s,l){var d=new o(l);return d.process(s)}t=e.exports=r,t.filterXSS=r,t.FilterXSS=o,function(){for(var s in n)t[s]=n[s];for(var l in u)t[l]=u[l]}(),typeof window<"u"&&(window.filterXSS=e.exports);function a(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}a()&&(self.filterXSS=e.exports)}(zo,zo.exports)),zo.exports}wp();const nn=i.defineComponent({name:"FMarkdownPreview",props:ss,setup(e){return()=>i.createVNode("div",{class:"f-markdown-preview-container"},[i.createVNode(mu,{modelValue:e.content},null)])}});nn.install=e=>{e.component(nn.name,nn)};const Xo="farris-x-preview-bridge",qo=1,Zo="assistant.message";function Ws(e){try{return JSON.parse(JSON.stringify(e))}catch{return{...e,content:e.content}}}function Gs(e){return e!==null&&typeof e=="object"}function Xs(e){if(!Gs(e)||e.source!==Xo||e.v!==qo||e.type!==Zo)return!1;const t=e.payload;return!(!Gs(t)||typeof t.messageId!="string"||t.messageId.length===0||t.role!=="user"&&t.role!=="assistant")}function vp(e,t){return!!(e.source===window.parent||t&&e.source===window.top||e.source===window)}function qs(e,t,n){const u=Ws(n);try{return e.postMessage({source:Xo,v:qo,type:Zo,payload:u},t),!0}catch{return!1}}function Zs(e){const t=e.allowTopAsSource!==!1,n=u=>{var o;vp(u,t)&&(e.allowedParentOrigins&&e.allowedParentOrigins.length>0&&!e.allowedParentOrigins.includes(u.origin)||Xs(u.data)&&((o=e.onAssistantMessage)==null||o.call(e,u.data.payload)))};return window.addEventListener("message",n),()=>window.removeEventListener("message",n)}const Ap="/platform/common/web/renderer/index.html#/preview",kp="Cases/ApplicationTemplates/Contacts/bo-contacts-front/metadata/components/Contacts.frm",Cp="Cases/ApplicationTemplates/Contacts/bo-contacts-front/metadata/components",_p="67441dbb-0219-46f2-b247-51555c317995";function Ys(e){if(e.url)return e.url;const t=e.baseUri??Ap,n=e.metadataPath??kp,u=e.projectPath??Cp,o=e.baseMetadataId??_p;return`${t}?metadataPath=${encodeURIComponent(n)}&projectPath=${encodeURIComponent(u)}&baseMetadataId=${encodeURIComponent(o)}`}function Ep(e){if(typeof window>"u")return null;if(e.postMessageTargetOrigin)return e.postMessageTargetOrigin;try{const t=Ys(e),n=new URL(t,window.location.href).origin;return n==="null"||n===""?window.location.origin:n}catch{return null}}const sr=i.defineComponent({name:"ChatPreview",props:as,setup(e,{expose:t}){const n=i.ref(null),u=i.ref(null),o=i.ref(!1),r=i.ref(!1),a=i.computed(()=>Ys(e.previewConfig??{})),s=i.computed(()=>{var E;return((E=e.previewConfig)==null?void 0:E.contentType)==="markdown"}),l=i.computed(()=>{var E;return Object.keys(((E=e.previewConfig)==null?void 0:E.contentMap)??{})}),d=i.computed(()=>l.value.filter(E=>E).length>0),f=i.ref(),c=i.ref(),h=i.ref(!1);let m=null;i.onBeforeUnmount(()=>{m==null||m(),m=null,L()}),i.watch(()=>[a.value,n.value,s.value],()=>{if(m==null||m(),m=null,s.value)return;const E=n.value;if(!E)return;h.value=!1,o.value=!1,r.value=!1;const M=Date.now(),R=200,$=300,re=1e4;let te=!1,z=null,j=null;j=window.setTimeout(()=>{j=null,te||(r.value=!0)},R);const I=()=>{if(te)return;if(te=!0,z&&(window.clearTimeout(z),z=null),j&&(window.clearTimeout(j),j=null),h.value=!0,C(E),r.value){const K=Date.now()-M,Z=Math.max(0,$-K);setTimeout(()=>{o.value=!0},Z)}else o.value=!0;const W=()=>{var K;return(K=e.onIframeLoad)==null?void 0:K.call(e)};W(),window.setTimeout(W,0),window.setTimeout(W,120)},B=()=>{var W;te||(te=!0,j&&(window.clearTimeout(j),j=null),console.warn("ChatPreview: iframe load timeout"),h.value=!0,o.value=!0,(W=e.onIframeLoad)==null||W.call(e))};E.addEventListener("load",I,{once:!0}),z=window.setTimeout(B,re),m=()=>{E.removeEventListener("load",I),z&&(window.clearTimeout(z),z=null),j&&(window.clearTimeout(j),j=null)}},{flush:"post"}),i.watch([s,()=>{var E;return(E=e.previewConfig)==null?void 0:E.contentMap}],()=>{L(),s.value&&i.nextTick(()=>N())},{flush:"post"}),i.watch(()=>{var E;return(E=e.previewConfig)==null?void 0:E.contentMap},E=>{if(E){const M=Object.keys(E);f.value=M[0]??""}else f.value="";p()},{immediate:!0});function p(E){var M,R;E&&(f.value=E),d.value&&f.value?c.value=((R=(M=e.previewConfig)==null?void 0:M.contentMap)==null?void 0:R[f.value])||"":c.value=""}function w(E){var $;if(s.value||!h.value)return!1;const M=($=n.value)==null?void 0:$.contentWindow;if(!M)return!1;const R=Ep(e.previewConfig??{});return R?qs(M,R,E):!1}t({postAssistantPayload:w});const y=i.ref(!1);let A=null;const b=800;function g(){y.value=!0,_(!0),A!=null&&(window.clearTimeout(A),A=null)}function x(){A!=null&&window.clearTimeout(A),A=window.setTimeout(()=>{y.value=!1,_(!1),A=null},b)}function k(){g(),x()}function T(){g()}function D(){x()}let F=[];function U(){const E=u.value;if(!E)return[];const M=[],R=E.querySelectorAll(".f-markdown-preview-container");return R.length>0&&R.forEach($=>M.push($)),M.length===0&&E.scrollHeight>E.clientHeight&&M.push(E),M}function _(E){const M=u.value;M&&M.querySelectorAll(".f-markdown-preview-container").forEach(R=>{R.classList.toggle("f-chat-preview-scrollbar-visible",E)})}function N(){const E=U();F=E,E.forEach(M=>{M.addEventListener("scroll",k,{passive:!0}),M.addEventListener("mouseenter",T),M.addEventListener("mouseleave",D)})}function L(){F.forEach(E=>{E.removeEventListener("scroll",k),E.removeEventListener("mouseenter",T),E.removeEventListener("mouseleave",D)}),F=[]}function C(E){try{const M=E.contentDocument;if(!M)return;const R="f-chat-preview-injected-scrollbar-style";if(M.getElementById(R))return;const $=M.createElement("style");$.id=R,$.textContent=`
95
+ `};e.renderer.rules.fence=f,e.renderer.rules.code_block=f},Hm=(e,t)=>{const n=e.renderer.rules.fence.bind(e.renderer.rules);e.renderer.rules.fence=(u,o,r,a,s)=>{var f,c;const l=u[o],d=l.content.trim();if(l.info==="echarts"){if(l.attrSet("class",`${X}-echarts`),l.attrSet("data-echarts-theme",t.themeRef.value),l.map&&l.level===0){const h=l.map[1]-1,p=!!((c=(f=a.srcLines[h])==null?void 0:f.trim())!=null&&c.startsWith("```"));l.attrSet("data-closed",`${p}`),l.attrSet("data-line",String(l.map[0]))}return`<div ${s.renderAttrs(l)} style="width: 100%; aspect-ratio: 4 / 3;">${e.utils.escapeHtml(d)}</div>`}return n(u,o,r,a,s)}},$m=(e,t)=>{e.renderer.rules.heading_open=(n,u)=>{var s;const o=n[u],r=((s=n[u+1].children)==null?void 0:s.reduce((l,d)=>l+(["text","code_inline","math_inline"].includes(d.type)&&d.content||""),""))||"",a=o.markup.length;return t.headsRef.value.push({text:r,level:a,line:o.map[0],currentToken:o,nextToken:n[u+1]}),o.map&&o.level===0&&o.attrSet("id",t.mdHeadingId({text:r,level:a,index:t.headsRef.value.length,currentToken:o,nextToken:n[u+1]})),e.renderer.renderToken(n,u,t)},e.renderer.rules.heading_close=(n,u,o,r,a)=>a.renderToken(n,u,o)},ks={block:[{open:"$$",close:"$$"},{open:"\\[",close:"\\]"}],inline:[{open:"$$",close:"$$"},{open:"$",close:"$"},{open:"\\[",close:"\\]"},{open:"\\(",close:"\\)"}]},Um=e=>(t,n)=>{const u=e.delimiters;for(const o of u){if(!t.src.startsWith(o.open,t.pos))continue;const r=t.pos+o.open.length;let a=r;for(;(a=t.src.indexOf(o.close,a))!==-1;){let s=0,l=a-1;for(;l>=0&&t.src[l]==="\\";)s++,l--;if(s%2===0)break;a+=o.close.length}if(a!==-1){if(a-r===0)return n||(t.pending+=o.open+o.close),t.pos=a+o.close.length,!0;if(!n){const s=t.push("math_inline","math",0);s.markup=o.open,s.content=t.src.slice(r,a)}return t.pos=a+o.close.length,!0}}return!1},Wm=e=>(t,n,u,o)=>{const r=e.delimiters,a=t.bMarks[n]+t.tShift[n],s=t.eMarks[n],l=(d,f,c)=>{t.line=f;const h=t.push("math_block","math",0);return h.block=!0,h.content=d,h.map=[n,t.line],h.markup=c,!0};for(const d of r){const f=a;if(t.src.slice(f,f+d.open.length)!==d.open)continue;const c=f+d.open.length,h=t.src.slice(c,s).trim(),p=h==="",m=h===d.close,w=h.endsWith(d.close);if(!p&&!m&&!w)continue;if(o)return!0;if(m)return l("",n+1,d.open);if(!p&&w){const x=h.slice(0,-d.close.length);return l(x,n+1,d.open)}let y=n+1,A=!1,b="";for(;y<u;y++){const x=t.bMarks[y]+t.tShift[y],k=t.eMarks[y];if(x<k&&t.tShift[y]<t.blkIndent)break;if(t.src.slice(x,k).trim().endsWith(d.close)){const F=t.src.slice(0,k).lastIndexOf(d.close);b=t.src.slice(x,F),A=!0;break}}if(!A)continue;const g=t.getLines(n+1,y,t.tShift[n],!0)+(b.trim()?b:"");return l(g,y+1,d.open)}return!1},Gm=(e,{katexRef:t,inlineDelimiters:n,blockDelimiters:u})=>{const o=(s,l,d,f,c=!1)=>{const h={attrs:Mo(s,[["class",l]])},p=f.renderAttrs(h);if(!t.value)return`<${d} ${p}>${s.content}</${d}>`;const m=t.value.renderToString(s.content,lt.katexConfig({throwOnError:!1,displayMode:c}));return`<${d} ${p} data-processed>${m}</${d}>`},r=(s,l,d,f,c)=>o(s[l],`${X}-katex-inline`,"span",c),a=(s,l,d,f,c)=>o(s[l],`${X}-katex-block`,"p",c,!0);e.inline.ruler.before("escape","math_inline",Um({delimiters:n||ks.inline})),e.block.ruler.after("blockquote","math_block",Wm({delimiters:u||ks.block}),{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=r,e.renderer.rules.math_block=a},Xm=(e,t)=>{const n=e.renderer.rules.fence.bind(e.renderer.rules);e.renderer.rules.fence=(u,o,r,a,s)=>{var f,c;const l=u[o],d=l.content.trim();if(l.info==="mermaid"){if(l.attrSet("class",`${X}-mermaid`),l.attrSet("data-mermaid-theme",t.themeRef.value),l.map&&l.level===0){const p=l.map[1]-1,m=!!((c=(f=a.srcLines[p])==null?void 0:f.trim())!=null&&c.startsWith("```"));l.attrSet("data-closed",`${m}`),l.attrSet("data-line",String(l.map[0]))}const h=pu.get(d);return h?(l.attrSet("data-processed",""),l.attrSet("data-content",d),`<p ${s.renderAttrs(l)}>${h}</p>`):`<div ${s.renderAttrs(l)}>${e.utils.escapeHtml(d)}</div>`}return n(u,o,r,a,s)}},Cs=(e,t,n)=>{const u=e.attrIndex(t),o=[t,n];u<0?e.attrPush(o):(e.attrs=e.attrs||[],e.attrs[u]=o)},qm=e=>e.type==="inline",Zm=e=>e.type==="paragraph_open",Ym=e=>e.type==="list_item_open",Km=e=>e.content.indexOf("[ ] ")===0||e.content.indexOf("[x] ")===0||e.content.indexOf("[X] ")===0,Qm=(e,t)=>qm(e[t])&&Zm(e[t-1])&&Ym(e[t-2])&&Km(e[t]),Jm=(e,t)=>{const n=e[t].level-1;for(let u=t-1;u>=0;u--)if(e[u].level===n)return u;return-1},ep=e=>{const t=new e("html_inline","",0);return t.content="<label>",t},tp=e=>{const t=new e("html_inline","",0);return t.content="</label>",t},np=(e,t,n)=>{const u=new n("html_inline","",0);return u.content='<label class="task-list-item-label" for="'+t+'">'+e+"</label>",u.attrs=[["for",t]],u},rp=(e,t,n)=>{const u=new t("html_inline","",0),o=n.enabled?" ":' disabled="" ';return e.content.indexOf("[ ] ")===0?u.content='<input class="task-list-item-checkbox"'+o+'type="checkbox">':(e.content.indexOf("[x] ")===0||e.content.indexOf("[X] ")===0)&&(u.content='<input class="task-list-item-checkbox" checked=""'+o+'type="checkbox">'),u},up=(e,t,n)=>{if(e.children=e.children||[],e.children.unshift(rp(e,t,n)),e.children[1].content=e.children[1].content.slice(3),e.content=e.content.slice(3),n.label)if(n.labelAfter){e.children.pop();const u="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);e.children[0].content=e.children[0].content.slice(0,-1)+' id="'+u+'">',e.children.push(np(e.content,u,t))}else e.children.unshift(ep(t)),e.children.push(tp(t))},op=(e,t={})=>{e.core.ruler.after("inline","github-task-lists",n=>{const u=n.tokens;for(let o=2;o<u.length;o++)Qm(u,o)&&(up(u[o],n.Token,t),Cs(u[o-2],"class","task-list-item"+(t.enabled?" enabled":" ")),Cs(u[Jm(u,o-2)],"class","contains-task-list"))})},ip=e=>{e.core.ruler.push("init-line-number",t=>(t.tokens.forEach(n=>{n.map&&(n.attrs||(n.attrs=[]),n.attrs.push(["data-line",n.map[0].toString()]))}),!0))},ap=(e,t)=>{const{editorConfig:n,markdownItPlugins:u}=lt,o=i.inject("editorId"),r=i.inject("language"),a=i.inject("usedLanguageText"),s=i.inject("showCodeRowNumber"),l=i.inject("theme"),d=i.inject("customIcon"),f=i.inject("rootRef"),c=i.inject("setting"),h=i.ref([]),p=Rm(e),m=Mm(e),{reRenderRef:w,replaceMermaid:y}=Bm(e),{reRenderEcharts:A,replaceEcharts:b}=Vm(e),g=Ze({html:!0,breaks:!0,linkify:!0}),x=[{type:"image",plugin:gm,options:{figcaption:!0,classes:"md-zoom"}},{type:"admonition",plugin:zm,options:{}},{type:"taskList",plugin:op,options:{}},{type:"heading",plugin:$m,options:{mdHeadingId:e.mdHeadingId,headsRef:h}},{type:"code",plugin:jm,options:{editorId:o,usedLanguageTextRef:a,codeFoldable:e.codeFoldable,autoFoldThreshold:e.autoFoldThreshold,customIconRef:d}},{type:"sub",plugin:xm,options:{}},{type:"sup",plugin:Am,options:{}}];e.noKatex||x.push({type:"katex",plugin:Gm,options:{katexRef:m}}),e.noMermaid||x.push({type:"mermaid",plugin:Xm,options:{themeRef:l}}),e.noEcharts||x.push({type:"echarts",plugin:Hm,options:{themeRef:l}}),u(x,{editorId:o}).forEach(V=>{g.use(V.plugin,V.options)});const k=g.options.highlight;g.set({highlight:(V,E,R)=>{if(k){const re=k(V,E,R);if(re)return re}let M;!e.noHighlight&&p.value?p.value.getLanguage(E)?M=p.value.highlight(V,{language:E,ignoreIllegals:!0}).value:M=p.value.highlightAuto(V).value:M=g.utils.escapeHtml(V);const $=s?lm(M.replace(/^\n+|\n+$/g,""),V.replace(/^\n+|\n+$/g,"")):`<span class="${X}-code-block">${M.replace(/^\n+|\n+$/g,"")}</span>`;return`<pre><code class="language-${E}" language=${E}>${$}</code></pre>`}}),ip(g);const F=i.ref(`_article-key_${No()}`),T=i.ref(e.sanitize(g.render(e.modelValue,{srcLines:e.modelValue.split(`
96
+ `)})));let D=()=>{},U=()=>{};const _=()=>{var E;const V=(E=f.value)==null?void 0:E.querySelectorAll(`#${o} p.${X}-mermaid:not([data-closed=false])`);U(),U=hm(V,{customIcon:d.value}),D(),D=mm(V,{customIcon:d.value})},N=()=>{ot.emit(o,om,T.value),e.onHtmlChanged(T.value),e.onGetCatalog(h.value),ot.emit(o,Vo,h.value),i.nextTick(()=>{y().then(_),b()})},I=()=>{h.value=[],T.value=e.sanitize(g.render(e.modelValue,{srcLines:e.modelValue.split(`
97
+ `)}))},C=i.computed(()=>(e.noKatex||!!m.value)&&(e.noHighlight||!!p.value));let P=-1;return i.watch([i.toRef(e,"modelValue"),C,w,r],()=>{P=window.setTimeout(()=>{I()},t?0:n.renderDelay)}),i.watch(()=>c.value.preview,()=>{c.value.preview&&i.nextTick(()=>{y().then(_),b(),ot.emit(o,Vo,h.value)})}),i.watch([T,A],()=>{N()}),i.onMounted(N),i.onMounted(()=>{ot.on(o,{name:im,callback(){ot.emit(o,Vo,h.value)}}),ot.on(o,{name:fs,callback:()=>{F.value=`_article-key_${No()}`,I()}})}),i.onBeforeUnmount(()=>{D(),U(),clearTimeout(P)}),{html:T,key:F}},sp=(e,t)=>{const n=i.inject("editorId"),u=i.inject("setting"),{noImgZoomIn:o}=e,r=Zh(()=>{const a=document.querySelectorAll(`#${n}-preview img:not(.not-zoom):not(.medium-zoom-image)`);a.length!==0&&Fm(a,{background:"#00000073"})});i.onMounted(async()=>{!o&&u.value.preview&&await r()}),i.watch([t,()=>u.value.preview],async()=>{!o&&u.value.preview&&await r()})},_s={checked:{regexp:/- \[x\]/,value:"- [ ]"},unChecked:{regexp:/- \[\s\]/,value:"- [x]"}},lp=(e,t)=>{const n=i.inject("editorId"),u=i.inject("rootRef");let o=()=>{};const r=()=>{if(!u.value)return!1;const a=u.value.querySelectorAll(".task-list-item.enabled"),s=l=>{var m;l.preventDefault();const d=l.target.checked?"unChecked":"checked",f=(m=l.target.parentElement)==null?void 0:m.dataset.line;if(!f)return;const c=Number(f),h=e.modelValue.split(`
98
+ `),p=h[Number(c)].replace(_s[d].regexp,_s[d].value);e.previewOnly?(h[Number(c)]=p,e.onChange(h.join(`
99
+ `))):ot.emit(n,am,c+1,p)};a.forEach(l=>{l.addEventListener("click",s)}),o=()=>{a.forEach(l=>{l.removeEventListener("click",s)})}};i.onBeforeUnmount(()=>{o()}),i.watch([t],()=>{o(),i.nextTick(r)},{immediate:!0})},cp=(e,t,n)=>{const u=i.inject("setting"),o=()=>{i.nextTick(()=>{var a;(a=e.onRemount)==null||a.call(e)})},r=a=>{a&&o()};i.watch([t,n],o),i.watch(()=>u.value.preview,r),i.watch(()=>u.value.htmlPreview,r),i.onMounted(o)},Es={modelValue:{type:String,default:""},onChange:{type:Function,default:()=>{}},onHtmlChanged:{type:Function,default:()=>{}},onGetCatalog:{type:Function,default:()=>{}},mdHeadingId:{type:Function,default:()=>""},noMermaid:{type:Boolean,default:!1},sanitize:{type:Function,default:e=>e},noKatex:{type:Boolean,default:!1},formatCopiedText:{type:Function,default:e=>e},noHighlight:{type:Boolean,default:!1},previewOnly:{type:Boolean,default:!1},noImgZoomIn:{type:Boolean},sanitizeMermaid:{type:Function},codeFoldable:{type:Boolean},autoFoldThreshold:{type:Number},onRemount:{type:Function},noEcharts:{type:Boolean},previewComponent:{type:[Object,Function],default:void 0}};({...Es});const Ss=e=>{const t=new DOMParser().parseFromString(e,"text/html");return Array.from(t.body.childNodes)},dp=(e,t)=>e.nodeType!==t.nodeType?!1:e.nodeType===Node.TEXT_NODE||e.nodeType===Node.COMMENT_NODE?e.textContent===t.textContent:e.nodeType===Node.ELEMENT_NODE?e.outerHTML===t.outerHTML:e.isEqualNode?e.isEqualNode(t):!1,fp=i.defineComponent({name:"UpdateOnDemand",props:{id:{type:String,required:!0},class:{type:[String,Array,Object],required:!0},html:{type:String,required:!0}},setup(e){const t=i.ref(),n=e.html,u=(o,r)=>{if(!t.value)return;const a=t.value,s=Array.from(a.childNodes),l=Math.min(o.length,r.length);let d=-1;for(let c=0;c<l;c++)if(!dp(o[c],r[c])){d=c;break}if(d===-1)if(r.length>o.length)d=o.length;else if(o.length>r.length)d=r.length;else return;const f=Math.min(d,s.length);for(let c=s.length-1;c>=f;c--)s[c].remove();for(let c=d;c<o.length;c++)a.appendChild(o[c].cloneNode(!0))};return i.watch(()=>e.html,(o,r)=>{const a=Ss(o),s=Ss(r||"");u(a,s)}),()=>i.createVNode("div",{id:e.id,class:e.class,innerHTML:n,ref:t},null)}}),hp=i.defineComponent({name:"ContentPreview",props:Es,setup(e){const t=i.inject("editorId"),n=i.inject("setting"),u=i.inject("previewTheme"),o=i.inject("showCodeRowNumber"),{html:r,key:a}=ap(e,e.previewOnly);Pm(e,r,a),sp(e,r),lp(e,r),cp(e,r,a);const s=i.computed(()=>[`${X}-preview`,`${u==null?void 0:u.value}-theme`,o&&`${X}-scrn`].filter(Boolean)),l=()=>{const d=`${t}-preview`;return e.previewComponent?i.h(e.previewComponent,{key:a.value,html:r.value,id:d,class:s.value}):i.createVNode(fp,{key:a.value,html:r.value,id:d,class:s.value},null)};return()=>i.createVNode(i.Fragment,null,[n.value.preview&&(e.previewOnly?l():i.createVNode("div",{id:`${t}-preview-wrapper`,class:`${X}-preview-wrapper`,key:"content-preview-wrapper"},[l()])),n.value.htmlPreview&&i.createVNode("div",{id:`${t}-html-wrapper`,class:`${X}-preview-wrapper`,key:"html-preview-wrapper"},[i.createVNode("div",{class:`${X}-html`},[r.value])])])}}),mp=({text:e})=>e,Ds={modelValue:{type:String,default:""},onChange:{type:Function,default:void 0},theme:{type:String,default:"light"},class:{type:String,default:""},language:{type:String,default:"zh-CN"},onHtmlChanged:{type:Function,default:void 0},onGetCatalog:{type:Function,default:void 0},editorId:{type:String,default:void 0},id:{type:String,default:void 0},showCodeRowNumber:{type:Boolean,default:!0},previewTheme:{type:String,default:"default"},style:{type:Object,default:()=>({})},mdHeadingId:{type:Function,default:mp},sanitize:{type:Function,default:e=>e},noMermaid:{type:Boolean,default:!1},noKatex:{type:Boolean,default:!1},codeTheme:{type:String,default:"atom"},formatCopiedText:{type:Function,default:e=>e},codeStyleReverse:{type:Boolean,default:!0},codeStyleReverseList:{type:Array,default:["default","mk-cute"]},noHighlight:{type:Boolean,default:!1},noImgZoomIn:{type:Boolean,default:!1},customIcon:{type:Object,default:{}},sanitizeMermaid:{type:Function,default:e=>Promise.resolve(e)},codeFoldable:{type:Boolean,default:!0},autoFoldThreshold:{type:Number,default:30},onRemount:{type:Function,default:void 0},noEcharts:{type:Boolean,default:!1},previewComponent:{type:[Object,Function],default:void 0}};({...Ds});const Ts=["onHtmlChanged","onGetCatalog","onChange","onRemount","update:modelValue"];[...Ts];const pp=(e,t,n)=>{const{editorId:u}=n,o={rerender(){ot.emit(u,fs)}};t.expose(o)},gu=i.defineComponent({name:"MdPreview",props:Ds,emits:Ts,setup(e,t){const{noKatex:n,noMermaid:u,noHighlight:o}=e,r=i.ref(),a=Lm(e);Om(e,{rootRef:r,editorId:a}),pp(e,t,{editorId:a}),i.onBeforeUnmount(()=>{ot.clear(a)});const s=c=>{var h;(h=e.onChange)==null||h.call(e,c),t.emit("onChange",c),t.emit("update:modelValue",c)},l=c=>{var h;(h=e.onHtmlChanged)==null||h.call(e,c),t.emit("onHtmlChanged",c)},d=c=>{var h;(h=e.onGetCatalog)==null||h.call(e,c),t.emit("onGetCatalog",c)},f=()=>{var c;(c=e.onRemount)==null||c.call(e),t.emit("onRemount")};return()=>i.createVNode("div",{id:a,class:[X,e.class,e.theme==="dark"&&`${X}-dark`,`${X}-previewOnly`],style:e.style,ref:r},[i.createVNode(hp,{modelValue:e.modelValue,onChange:s,onHtmlChanged:l,onGetCatalog:d,mdHeadingId:e.mdHeadingId,noMermaid:u,sanitize:e.sanitize,noKatex:n,formatCopiedText:e.formatCopiedText,noHighlight:o,noImgZoomIn:e.noImgZoomIn,previewOnly:!0,sanitizeMermaid:e.sanitizeMermaid,codeFoldable:e.codeFoldable,autoFoldThreshold:e.autoFoldThreshold,onRemount:f,noEcharts:e.noEcharts,previewComponent:e.previewComponent},null)])}});gu.install=e=>(e.component(gu.name,gu),e);const gp={onClick:{type:Function,default:void 0},language:{type:String,default:void 0},theme:{type:String,default:void 0},disabled:{type:Boolean,default:void 0}},Bo=i.defineComponent({name:"NormalFooterToolbar",props:gp,emits:["onClick"],setup(e,t){return()=>{const n=um({props:e,ctx:t});return i.createVNode("div",{class:[`${X}-footer-item`,e.disabled&&`${X}-disabled`],onClick:u=>{var o;e.disabled||((o=e.onClick)==null||o.call(e,u),t.emit("onClick",u))}},[n])}}});Bo.install=e=>(e.component(Bo.name,Bo),e);var zo={exports:{}},pe={},jo={exports:{}},en={},Fs;function Ns(){if(Fs)return en;Fs=1;function e(){var r={};return r["align-content"]=!1,r["align-items"]=!1,r["align-self"]=!1,r["alignment-adjust"]=!1,r["alignment-baseline"]=!1,r.all=!1,r["anchor-point"]=!1,r.animation=!1,r["animation-delay"]=!1,r["animation-direction"]=!1,r["animation-duration"]=!1,r["animation-fill-mode"]=!1,r["animation-iteration-count"]=!1,r["animation-name"]=!1,r["animation-play-state"]=!1,r["animation-timing-function"]=!1,r.azimuth=!1,r["backface-visibility"]=!1,r.background=!0,r["background-attachment"]=!0,r["background-clip"]=!0,r["background-color"]=!0,r["background-image"]=!0,r["background-origin"]=!0,r["background-position"]=!0,r["background-repeat"]=!0,r["background-size"]=!0,r["baseline-shift"]=!1,r.binding=!1,r.bleed=!1,r["bookmark-label"]=!1,r["bookmark-level"]=!1,r["bookmark-state"]=!1,r.border=!0,r["border-bottom"]=!0,r["border-bottom-color"]=!0,r["border-bottom-left-radius"]=!0,r["border-bottom-right-radius"]=!0,r["border-bottom-style"]=!0,r["border-bottom-width"]=!0,r["border-collapse"]=!0,r["border-color"]=!0,r["border-image"]=!0,r["border-image-outset"]=!0,r["border-image-repeat"]=!0,r["border-image-slice"]=!0,r["border-image-source"]=!0,r["border-image-width"]=!0,r["border-left"]=!0,r["border-left-color"]=!0,r["border-left-style"]=!0,r["border-left-width"]=!0,r["border-radius"]=!0,r["border-right"]=!0,r["border-right-color"]=!0,r["border-right-style"]=!0,r["border-right-width"]=!0,r["border-spacing"]=!0,r["border-style"]=!0,r["border-top"]=!0,r["border-top-color"]=!0,r["border-top-left-radius"]=!0,r["border-top-right-radius"]=!0,r["border-top-style"]=!0,r["border-top-width"]=!0,r["border-width"]=!0,r.bottom=!1,r["box-decoration-break"]=!0,r["box-shadow"]=!0,r["box-sizing"]=!0,r["box-snap"]=!0,r["box-suppress"]=!0,r["break-after"]=!0,r["break-before"]=!0,r["break-inside"]=!0,r["caption-side"]=!1,r.chains=!1,r.clear=!0,r.clip=!1,r["clip-path"]=!1,r["clip-rule"]=!1,r.color=!0,r["color-interpolation-filters"]=!0,r["column-count"]=!1,r["column-fill"]=!1,r["column-gap"]=!1,r["column-rule"]=!1,r["column-rule-color"]=!1,r["column-rule-style"]=!1,r["column-rule-width"]=!1,r["column-span"]=!1,r["column-width"]=!1,r.columns=!1,r.contain=!1,r.content=!1,r["counter-increment"]=!1,r["counter-reset"]=!1,r["counter-set"]=!1,r.crop=!1,r.cue=!1,r["cue-after"]=!1,r["cue-before"]=!1,r.cursor=!1,r.direction=!1,r.display=!0,r["display-inside"]=!0,r["display-list"]=!0,r["display-outside"]=!0,r["dominant-baseline"]=!1,r.elevation=!1,r["empty-cells"]=!1,r.filter=!1,r.flex=!1,r["flex-basis"]=!1,r["flex-direction"]=!1,r["flex-flow"]=!1,r["flex-grow"]=!1,r["flex-shrink"]=!1,r["flex-wrap"]=!1,r.float=!1,r["float-offset"]=!1,r["flood-color"]=!1,r["flood-opacity"]=!1,r["flow-from"]=!1,r["flow-into"]=!1,r.font=!0,r["font-family"]=!0,r["font-feature-settings"]=!0,r["font-kerning"]=!0,r["font-language-override"]=!0,r["font-size"]=!0,r["font-size-adjust"]=!0,r["font-stretch"]=!0,r["font-style"]=!0,r["font-synthesis"]=!0,r["font-variant"]=!0,r["font-variant-alternates"]=!0,r["font-variant-caps"]=!0,r["font-variant-east-asian"]=!0,r["font-variant-ligatures"]=!0,r["font-variant-numeric"]=!0,r["font-variant-position"]=!0,r["font-weight"]=!0,r.grid=!1,r["grid-area"]=!1,r["grid-auto-columns"]=!1,r["grid-auto-flow"]=!1,r["grid-auto-rows"]=!1,r["grid-column"]=!1,r["grid-column-end"]=!1,r["grid-column-start"]=!1,r["grid-row"]=!1,r["grid-row-end"]=!1,r["grid-row-start"]=!1,r["grid-template"]=!1,r["grid-template-areas"]=!1,r["grid-template-columns"]=!1,r["grid-template-rows"]=!1,r["hanging-punctuation"]=!1,r.height=!0,r.hyphens=!1,r.icon=!1,r["image-orientation"]=!1,r["image-resolution"]=!1,r["ime-mode"]=!1,r["initial-letters"]=!1,r["inline-box-align"]=!1,r["justify-content"]=!1,r["justify-items"]=!1,r["justify-self"]=!1,r.left=!1,r["letter-spacing"]=!0,r["lighting-color"]=!0,r["line-box-contain"]=!1,r["line-break"]=!1,r["line-grid"]=!1,r["line-height"]=!1,r["line-snap"]=!1,r["line-stacking"]=!1,r["line-stacking-ruby"]=!1,r["line-stacking-shift"]=!1,r["line-stacking-strategy"]=!1,r["list-style"]=!0,r["list-style-image"]=!0,r["list-style-position"]=!0,r["list-style-type"]=!0,r.margin=!0,r["margin-bottom"]=!0,r["margin-left"]=!0,r["margin-right"]=!0,r["margin-top"]=!0,r["marker-offset"]=!1,r["marker-side"]=!1,r.marks=!1,r.mask=!1,r["mask-box"]=!1,r["mask-box-outset"]=!1,r["mask-box-repeat"]=!1,r["mask-box-slice"]=!1,r["mask-box-source"]=!1,r["mask-box-width"]=!1,r["mask-clip"]=!1,r["mask-image"]=!1,r["mask-origin"]=!1,r["mask-position"]=!1,r["mask-repeat"]=!1,r["mask-size"]=!1,r["mask-source-type"]=!1,r["mask-type"]=!1,r["max-height"]=!0,r["max-lines"]=!1,r["max-width"]=!0,r["min-height"]=!0,r["min-width"]=!0,r["move-to"]=!1,r["nav-down"]=!1,r["nav-index"]=!1,r["nav-left"]=!1,r["nav-right"]=!1,r["nav-up"]=!1,r["object-fit"]=!1,r["object-position"]=!1,r.opacity=!1,r.order=!1,r.orphans=!1,r.outline=!1,r["outline-color"]=!1,r["outline-offset"]=!1,r["outline-style"]=!1,r["outline-width"]=!1,r.overflow=!1,r["overflow-wrap"]=!1,r["overflow-x"]=!1,r["overflow-y"]=!1,r.padding=!0,r["padding-bottom"]=!0,r["padding-left"]=!0,r["padding-right"]=!0,r["padding-top"]=!0,r.page=!1,r["page-break-after"]=!1,r["page-break-before"]=!1,r["page-break-inside"]=!1,r["page-policy"]=!1,r.pause=!1,r["pause-after"]=!1,r["pause-before"]=!1,r.perspective=!1,r["perspective-origin"]=!1,r.pitch=!1,r["pitch-range"]=!1,r["play-during"]=!1,r.position=!1,r["presentation-level"]=!1,r.quotes=!1,r["region-fragment"]=!1,r.resize=!1,r.rest=!1,r["rest-after"]=!1,r["rest-before"]=!1,r.richness=!1,r.right=!1,r.rotation=!1,r["rotation-point"]=!1,r["ruby-align"]=!1,r["ruby-merge"]=!1,r["ruby-position"]=!1,r["shape-image-threshold"]=!1,r["shape-outside"]=!1,r["shape-margin"]=!1,r.size=!1,r.speak=!1,r["speak-as"]=!1,r["speak-header"]=!1,r["speak-numeral"]=!1,r["speak-punctuation"]=!1,r["speech-rate"]=!1,r.stress=!1,r["string-set"]=!1,r["tab-size"]=!1,r["table-layout"]=!1,r["text-align"]=!0,r["text-align-last"]=!0,r["text-combine-upright"]=!0,r["text-decoration"]=!0,r["text-decoration-color"]=!0,r["text-decoration-line"]=!0,r["text-decoration-skip"]=!0,r["text-decoration-style"]=!0,r["text-emphasis"]=!0,r["text-emphasis-color"]=!0,r["text-emphasis-position"]=!0,r["text-emphasis-style"]=!0,r["text-height"]=!0,r["text-indent"]=!0,r["text-justify"]=!0,r["text-orientation"]=!0,r["text-overflow"]=!0,r["text-shadow"]=!0,r["text-space-collapse"]=!0,r["text-transform"]=!0,r["text-underline-position"]=!0,r["text-wrap"]=!0,r.top=!1,r.transform=!1,r["transform-origin"]=!1,r["transform-style"]=!1,r.transition=!1,r["transition-delay"]=!1,r["transition-duration"]=!1,r["transition-property"]=!1,r["transition-timing-function"]=!1,r["unicode-bidi"]=!1,r["vertical-align"]=!1,r.visibility=!1,r["voice-balance"]=!1,r["voice-duration"]=!1,r["voice-family"]=!1,r["voice-pitch"]=!1,r["voice-range"]=!1,r["voice-rate"]=!1,r["voice-stress"]=!1,r["voice-volume"]=!1,r.volume=!1,r["white-space"]=!1,r.widows=!1,r.width=!0,r["will-change"]=!1,r["word-break"]=!0,r["word-spacing"]=!0,r["word-wrap"]=!0,r["wrap-flow"]=!1,r["wrap-through"]=!1,r["writing-mode"]=!1,r["z-index"]=!1,r}function t(r,a,s){}function n(r,a,s){}var u=/javascript\s*\:/img;function o(r,a){return u.test(a)?"":a}return en.whiteList=e(),en.getDefaultWhiteList=e,en.onAttr=t,en.onIgnoreAttr=n,en.safeAttrValue=o,en}var Is,Os;function Ls(){return Os||(Os=1,Is={indexOf:function(e,t){var n,u;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,u=e.length;n<u;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var u,o;if(Array.prototype.forEach)return e.forEach(t,n);for(u=0,o=e.length;u<o;u++)t.call(n,e[u],u,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}}),Is}var Ho,Ps;function bp(){if(Ps)return Ho;Ps=1;var e=Ls();function t(n,u){n=e.trimRight(n),n[n.length-1]!==";"&&(n+=";");var o=n.length,r=!1,a=0,s=0,l="";function d(){if(!r){var h=e.trim(n.slice(a,s)),p=h.indexOf(":");if(p!==-1){var m=e.trim(h.slice(0,p)),w=e.trim(h.slice(p+1));if(m){var y=u(a,l.length,m,w,h);y&&(l+=y+"; ")}}}a=s+1}for(;s<o;s++){var f=n[s];if(f==="/"&&n[s+1]==="*"){var c=n.indexOf("*/",s+2);if(c===-1)break;s=c+1,a=s+1,r=!1}else f==="("?r=!0:f===")"?r=!1:f===";"?r||d():f===`
100
+ `&&d()}return e.trim(l)}return Ho=t,Ho}var $o,Vs;function yp(){if(Vs)return $o;Vs=1;var e=Ns(),t=bp();Ls();function n(r){return r==null}function u(r){var a={};for(var s in r)a[s]=r[s];return a}function o(r){r=u(r||{}),r.whiteList=r.whiteList||e.whiteList,r.onAttr=r.onAttr||e.onAttr,r.onIgnoreAttr=r.onIgnoreAttr||e.onIgnoreAttr,r.safeAttrValue=r.safeAttrValue||e.safeAttrValue,this.options=r}return o.prototype.process=function(r){if(r=r||"",r=r.toString(),!r)return"";var a=this,s=a.options,l=s.whiteList,d=s.onAttr,f=s.onIgnoreAttr,c=s.safeAttrValue,h=t(r,function(p,m,w,y,A){var b=l[w],g=!1;if(b===!0?g=b:typeof b=="function"?g=b(y):b instanceof RegExp&&(g=b.test(y)),g!==!0&&(g=!1),y=c(w,y),!!y){var x={position:m,sourcePosition:p,source:A,isWhite:g};if(g){var k=d(w,y,x);return n(k)?w+":"+y:k}else{var k=f(w,y,x);if(!n(k))return k}}});return h},$o=o,$o}var Rs;function Uo(){return Rs||(Rs=1,function(e,t){var n=Ns(),u=yp();function o(a,s){var l=new u(s);return l.process(a)}t=e.exports=o,t.FilterCSS=u;for(var r in n)t[r]=n[r];typeof window<"u"&&(window.filterCSS=e.exports)}(jo,jo.exports)),jo.exports}var Ms,Bs;function Wo(){return Bs||(Bs=1,Ms={indexOf:function(e,t){var n,u;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,u=e.length;n<u;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var u,o;if(Array.prototype.forEach)return e.forEach(t,n);for(u=0,o=e.length;u<o;u++)t.call(n,e[u],u,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,n=t.exec(e);return n?n.index:-1}}),Ms}var zs;function js(){if(zs)return pe;zs=1;var e=Uo().FilterCSS,t=Uo().getDefaultWhiteList,n=Wo();function u(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var o=new e;function r(E,R,M){}function a(E,R,M){}function s(E,R,M){}function l(E,R,M){}function d(E){return E.replace(c,"&lt;").replace(h,"&gt;")}function f(E,R,M,$){if(M=_(M),R==="href"||R==="src"){if(M=n.trim(M),M==="#")return"#";if(!(M.substr(0,7)==="http://"||M.substr(0,8)==="https://"||M.substr(0,7)==="mailto:"||M.substr(0,4)==="tel:"||M.substr(0,11)==="data:image/"||M.substr(0,6)==="ftp://"||M.substr(0,2)==="./"||M.substr(0,3)==="../"||M[0]==="#"||M[0]==="/"))return""}else if(R==="background"){if(b.lastIndex=0,b.test(M))return""}else if(R==="style"){if(g.lastIndex=0,g.test(M)||(x.lastIndex=0,x.test(M)&&(b.lastIndex=0,b.test(M))))return"";$!==!1&&($=$||o,M=$.process(M))}return M=N(M),M}var c=/</g,h=/>/g,p=/"/g,m=/&quot;/g,w=/&#([a-zA-Z0-9]*);?/gim,y=/&colon;?/gim,A=/&newline;?/gim,b=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,g=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,x=/u\s*r\s*l\s*\(.*/gi;function k(E){return E.replace(p,"&quot;")}function F(E){return E.replace(m,'"')}function T(E){return E.replace(w,function(R,M){return M[0]==="x"||M[0]==="X"?String.fromCharCode(parseInt(M.substr(1),16)):String.fromCharCode(parseInt(M,10))})}function D(E){return E.replace(y,":").replace(A," ")}function U(E){for(var R="",M=0,$=E.length;M<$;M++)R+=E.charCodeAt(M)<32?" ":E.charAt(M);return n.trim(R)}function _(E){return E=F(E),E=T(E),E=D(E),E=U(E),E}function N(E){return E=k(E),E=d(E),E}function I(){return""}function C(E,R){typeof R!="function"&&(R=function(){});var M=!Array.isArray(E);function $(z){return M?!0:n.indexOf(E,z)!==-1}var re=[],te=!1;return{onIgnoreTag:function(z,j,L){if($(z))if(L.isClosing){var B="[/removed]",W=L.position+B.length;return re.push([te!==!1?te:L.position,W]),te=!1,B}else return te||(te=L.position),"[removed]";else return R(z,j,L)},remove:function(z){var j="",L=0;return n.forEach(re,function(B){j+=z.slice(L,B[0]),L=B[1]}),j+=z.slice(L),j}}}function P(E){for(var R="",M=0;M<E.length;){var $=E.indexOf("<!--",M);if($===-1){R+=E.slice(M);break}R+=E.slice(M,$);var re=E.indexOf("-->",$);if(re===-1)break;M=re+3}return R}function V(E){var R=E.split("");return R=R.filter(function(M){var $=M.charCodeAt(0);return $===127?!1:$<=31?$===10||$===13:!0}),R.join("")}return pe.whiteList=u(),pe.getDefaultWhiteList=u,pe.onTag=r,pe.onIgnoreTag=a,pe.onTagAttr=s,pe.onIgnoreTagAttr=l,pe.safeAttrValue=f,pe.escapeHtml=d,pe.escapeQuote=k,pe.unescapeQuote=F,pe.escapeHtmlEntities=T,pe.escapeDangerHtml5Entities=D,pe.clearNonPrintableCharacter=U,pe.friendlyAttrValue=_,pe.escapeAttrValue=N,pe.onIgnoreTagStripAll=I,pe.StripTagBody=C,pe.stripCommentTag=P,pe.stripBlankChar=V,pe.attributeWrapSign='"',pe.cssFilter=o,pe.getDefaultCSSWhiteList=t,pe}var bu={},Hs;function $s(){if(Hs)return bu;Hs=1;var e=Wo();function t(c){var h=e.spaceIndex(c),p;return h===-1?p=c.slice(1,-1):p=c.slice(1,h+1),p=e.trim(p).toLowerCase(),p.slice(0,1)==="/"&&(p=p.slice(1)),p.slice(-1)==="/"&&(p=p.slice(0,-1)),p}function n(c){return c.slice(0,2)==="</"}function u(c,h,p){var m="",w=0,y=!1,A=!1,b=0,g=c.length,x="",k="";e:for(b=0;b<g;b++){var F=c.charAt(b);if(y===!1){if(F==="<"){y=b;continue}}else if(A===!1){if(F==="<"){m+=p(c.slice(w,b)),y=b,w=b;continue}if(F===">"||b===g-1){m+=p(c.slice(w,y)),k=c.slice(y,b+1),x=t(k),m+=h(y,m.length,x,k,n(k)),w=b+1,y=!1;continue}if(F==='"'||F==="'")for(var T=1,D=c.charAt(b-T);D.trim()===""||D==="=";){if(D==="="){A=F;continue e}D=c.charAt(b-++T)}}else if(F===A){A=!1;continue}}return w<g&&(m+=p(c.substr(w))),m}var o=/[^a-zA-Z0-9\\_:.-]/gim;function r(c,h){var p=0,m=0,w=[],y=!1,A=c.length;function b(T,D){if(T=e.trim(T),T=T.replace(o,"").toLowerCase(),!(T.length<1)){var U=h(T,D||"");U&&w.push(U)}}for(var g=0;g<A;g++){var x=c.charAt(g),k,F;if(y===!1&&x==="="){y=c.slice(p,g),p=g+1,m=c.charAt(p)==='"'||c.charAt(p)==="'"?p:s(c,g+1);continue}if(y!==!1&&g===m){if(F=c.indexOf(x,g+1),F===-1)break;k=e.trim(c.slice(m+1,F)),b(y,k),y=!1,g=F,p=g+1;continue}if(/\s|\n|\t/.test(x))if(c=c.replace(/\s|\n|\t/g," "),y===!1)if(F=a(c,g),F===-1){k=e.trim(c.slice(p,g)),b(k),y=!1,p=g+1;continue}else{g=F-1;continue}else if(F=l(c,g-1),F===-1){k=e.trim(c.slice(p,g)),k=f(k),b(y,k),y=!1,p=g+1;continue}else continue}return p<c.length&&(y===!1?b(c.slice(p)):b(y,f(e.trim(c.slice(p))))),e.trim(w.join(" "))}function a(c,h){for(;h<c.length;h++){var p=c[h];if(p!==" ")return p==="="?h:-1}}function s(c,h){for(;h<c.length;h++){var p=c[h];if(p!==" ")return p==="'"||p==='"'?h:-1}}function l(c,h){for(;h>0;h--){var p=c[h];if(p!==" ")return p==="="?h:-1}}function d(c){return c[0]==='"'&&c[c.length-1]==='"'||c[0]==="'"&&c[c.length-1]==="'"}function f(c){return d(c)?c.substr(1,c.length-2):c}return bu.parseTag=u,bu.parseAttr=r,bu}var Go,Us;function xp(){if(Us)return Go;Us=1;var e=Uo().FilterCSS,t=js(),n=$s(),u=n.parseTag,o=n.parseAttr,r=Wo();function a(c){return c==null}function s(c){var h=r.spaceIndex(c);if(h===-1)return{html:"",closing:c[c.length-2]==="/"};c=r.trim(c.slice(h+1,-1));var p=c[c.length-1]==="/";return p&&(c=r.trim(c.slice(0,-1))),{html:c,closing:p}}function l(c){var h={};for(var p in c)h[p]=c[p];return h}function d(c){var h={};for(var p in c)Array.isArray(c[p])?h[p.toLowerCase()]=c[p].map(function(m){return m.toLowerCase()}):h[p.toLowerCase()]=c[p];return h}function f(c){c=l(c||{}),c.stripIgnoreTag&&(c.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),c.onIgnoreTag=t.onIgnoreTagStripAll),c.whiteList||c.allowList?c.whiteList=d(c.whiteList||c.allowList):c.whiteList=t.whiteList,this.attributeWrapSign=c.singleQuotedAttributeValue===!0?"'":t.attributeWrapSign,c.onTag=c.onTag||t.onTag,c.onTagAttr=c.onTagAttr||t.onTagAttr,c.onIgnoreTag=c.onIgnoreTag||t.onIgnoreTag,c.onIgnoreTagAttr=c.onIgnoreTagAttr||t.onIgnoreTagAttr,c.safeAttrValue=c.safeAttrValue||t.safeAttrValue,c.escapeHtml=c.escapeHtml||t.escapeHtml,this.options=c,c.css===!1?this.cssFilter=!1:(c.css=c.css||{},this.cssFilter=new e(c.css))}return f.prototype.process=function(c){if(c=c||"",c=c.toString(),!c)return"";var h=this,p=h.options,m=p.whiteList,w=p.onTag,y=p.onIgnoreTag,A=p.onTagAttr,b=p.onIgnoreTagAttr,g=p.safeAttrValue,x=p.escapeHtml,k=h.attributeWrapSign,F=h.cssFilter;p.stripBlankChar&&(c=t.stripBlankChar(c)),p.allowCommentTag||(c=t.stripCommentTag(c));var T=!1;p.stripIgnoreTagBody&&(T=t.StripTagBody(p.stripIgnoreTagBody,y),y=T.onIgnoreTag);var D=u(c,function(U,_,N,I,C){var P={sourcePosition:U,position:_,isClosing:C,isWhite:Object.prototype.hasOwnProperty.call(m,N)},V=w(N,I,P);if(!a(V))return V;if(P.isWhite){if(P.isClosing)return"</"+N+">";var E=s(I),R=m[N],M=o(E.html,function($,re){var te=r.indexOf(R,$)!==-1,z=A(N,$,re,te);return a(z)?te?(re=g(N,$,re,F),re?$+"="+k+re+k:$):(z=b(N,$,re,te),a(z)?void 0:z):z});return I="<"+N,M&&(I+=" "+M),E.closing&&(I+=" /"),I+=">",I}else return V=y(N,I,P),a(V)?x(I):V},x);return T&&(D=T.remove(D)),D},Go=f,Go}var Ws;function wp(){return Ws||(Ws=1,function(e,t){var n=js(),u=$s(),o=xp();function r(s,l){var d=new o(l);return d.process(s)}t=e.exports=r,t.filterXSS=r,t.FilterXSS=o,function(){for(var s in n)t[s]=n[s];for(var l in u)t[l]=u[l]}(),typeof window<"u"&&(window.filterXSS=e.exports);function a(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}a()&&(self.filterXSS=e.exports)}(zo,zo.exports)),zo.exports}wp();const tn=i.defineComponent({name:"FMarkdownPreview",props:ls,setup(e){return()=>i.createVNode("div",{class:"f-markdown-preview-container"},[i.createVNode(gu,{modelValue:e.content},null)])}});tn.install=e=>{e.component(tn.name,tn)};const Xo="farris-x-preview-bridge",qo=1,Zo="assistant.message";function Gs(e){try{return JSON.parse(JSON.stringify(e))}catch{return{...e,content:e.content}}}function Xs(e){return e!==null&&typeof e=="object"}function qs(e){if(!Xs(e)||e.source!==Xo||e.v!==qo||e.type!==Zo)return!1;const t=e.payload;return!(!Xs(t)||typeof t.messageId!="string"||t.messageId.length===0||t.role!=="user"&&t.role!=="assistant")}function vp(e,t){return!!(e.source===window.parent||t&&e.source===window.top||e.source===window)}function Zs(e,t,n){const u=Gs(n);try{return e.postMessage({source:Xo,v:qo,type:Zo,payload:u},t),!0}catch{return!1}}function Ys(e){const t=e.allowTopAsSource!==!1,n=u=>{var o;vp(u,t)&&(e.allowedParentOrigins&&e.allowedParentOrigins.length>0&&!e.allowedParentOrigins.includes(u.origin)||qs(u.data)&&((o=e.onAssistantMessage)==null||o.call(e,u.data.payload)))};return window.addEventListener("message",n),()=>window.removeEventListener("message",n)}const Ap="/platform/common/web/renderer/index.html#/preview",kp="Cases/ApplicationTemplates/Contacts/bo-contacts-front/metadata/components/Contacts.frm",Cp="Cases/ApplicationTemplates/Contacts/bo-contacts-front/metadata/components",_p="67441dbb-0219-46f2-b247-51555c317995";function Ks(e){if(e.url)return e.url;const t=e.baseUri??Ap,n=e.metadataPath??kp,u=e.projectPath??Cp,o=e.baseMetadataId??_p;return`${t}?metadataPath=${encodeURIComponent(n)}&projectPath=${encodeURIComponent(u)}&baseMetadataId=${encodeURIComponent(o)}`}function Ep(e){if(typeof window>"u")return null;if(e.postMessageTargetOrigin)return e.postMessageTargetOrigin;try{const t=Ks(e),n=new URL(t,window.location.href).origin;return n==="null"||n===""?window.location.origin:n}catch{return null}}const sr=i.defineComponent({name:"ChatPreview",props:ss,setup(e,{expose:t}){const n=i.ref(null),u=i.ref(null),o=i.ref(!1),r=i.ref(!1),a=i.computed(()=>Ks(e.previewConfig??{})),s=i.computed(()=>{var E;return((E=e.previewConfig)==null?void 0:E.contentType)==="markdown"}),l=i.computed(()=>{var E;return Object.keys(((E=e.previewConfig)==null?void 0:E.contentMap)??{})}),d=i.computed(()=>l.value.filter(E=>E).length>0),f=i.ref(),c=i.ref(),h=i.ref(!1);let p=null;i.onBeforeUnmount(()=>{p==null||p(),p=null,I()}),i.watch(()=>[a.value,n.value,s.value],()=>{if(p==null||p(),p=null,s.value)return;const E=n.value;if(!E)return;h.value=!1,o.value=!1,r.value=!1;const R=Date.now(),M=200,$=300,re=1e4;let te=!1,z=null,j=null;j=window.setTimeout(()=>{j=null,te||(r.value=!0)},M);const L=()=>{if(te)return;if(te=!0,z&&(window.clearTimeout(z),z=null),j&&(window.clearTimeout(j),j=null),h.value=!0,C(E),r.value){const K=Date.now()-R,Z=Math.max(0,$-K);setTimeout(()=>{o.value=!0},Z)}else o.value=!0;const W=()=>{var K;return(K=e.onIframeLoad)==null?void 0:K.call(e)};W(),window.setTimeout(W,0),window.setTimeout(W,120)},B=()=>{var W;te||(te=!0,j&&(window.clearTimeout(j),j=null),console.warn("ChatPreview: iframe load timeout"),h.value=!0,o.value=!0,(W=e.onIframeLoad)==null||W.call(e))};E.addEventListener("load",L,{once:!0}),z=window.setTimeout(B,re),p=()=>{E.removeEventListener("load",L),z&&(window.clearTimeout(z),z=null),j&&(window.clearTimeout(j),j=null)}},{flush:"post"}),i.watch([s,()=>{var E;return(E=e.previewConfig)==null?void 0:E.contentMap}],()=>{I(),s.value&&i.nextTick(()=>N())},{flush:"post"}),i.watch(()=>{var E;return(E=e.previewConfig)==null?void 0:E.contentMap},E=>{if(E){const R=Object.keys(E);f.value=R[0]??""}else f.value="";m()},{immediate:!0});function m(E){var R,M;E&&(f.value=E),d.value&&f.value?c.value=((M=(R=e.previewConfig)==null?void 0:R.contentMap)==null?void 0:M[f.value])||"":c.value=""}function w(E){var $;if(s.value||!h.value)return!1;const R=($=n.value)==null?void 0:$.contentWindow;if(!R)return!1;const M=Ep(e.previewConfig??{});return M?Zs(R,M,E):!1}t({postAssistantPayload:w});const y=i.ref(!1);let A=null;const b=800;function g(){y.value=!0,_(!0),A!=null&&(window.clearTimeout(A),A=null)}function x(){A!=null&&window.clearTimeout(A),A=window.setTimeout(()=>{y.value=!1,_(!1),A=null},b)}function k(){g(),x()}function F(){g()}function T(){x()}let D=[];function U(){const E=u.value;if(!E)return[];const R=[],M=E.querySelectorAll(".f-markdown-preview-container");return M.length>0&&M.forEach($=>R.push($)),R.length===0&&E.scrollHeight>E.clientHeight&&R.push(E),R}function _(E){const R=u.value;R&&R.querySelectorAll(".f-markdown-preview-container").forEach(M=>{M.classList.toggle("f-chat-preview-scrollbar-visible",E)})}function N(){const E=U();D=E,E.forEach(R=>{R.addEventListener("scroll",k,{passive:!0}),R.addEventListener("mouseenter",F),R.addEventListener("mouseleave",T)})}function I(){D.forEach(E=>{E.removeEventListener("scroll",k),E.removeEventListener("mouseenter",F),E.removeEventListener("mouseleave",T)}),D=[]}function C(E){try{const R=E.contentDocument;if(!R)return;const M="f-chat-preview-injected-scrollbar-style";if(R.getElementById(M))return;const $=R.createElement("style");$.id=M,$.textContent=`
101
101
  html, body {
102
102
  scrollbar-width: thin;
103
103
  scrollbar-color: transparent transparent;
@@ -123,7 +123,7 @@ See: https://github.com/francoischalifour/medium-zoom`)}},F1=function(t){var n=d
123
123
  body.iframe-scrollbar-visible::-webkit-scrollbar-thumb {
124
124
  background: rgba(0, 0, 0, 0.2);
125
125
  }
126
- `,(M.head||M.documentElement).appendChild($);const re="f-chat-preview-injected-scrollbar-script";if(M.getElementById(re))return;const te=M.createElement("script");te.id=re,te.textContent=`
126
+ `,(R.head||R.documentElement).appendChild($);const re="f-chat-preview-injected-scrollbar-script";if(R.getElementById(re))return;const te=R.createElement("script");te.id=re,te.textContent=`
127
127
  (function() {
128
128
  var hideTimer = null;
129
129
  var HIDE_DELAY = 800;
@@ -144,8 +144,8 @@ See: https://github.com/francoischalifour/medium-zoom`)}},F1=function(t){var n=d
144
144
  document.addEventListener('mouseenter', show);
145
145
  document.addEventListener('mouseleave', scheduleHide);
146
146
  })();
147
- `,(M.head||M.documentElement).appendChild(te)}catch{}}const P=()=>{var E;return i.createVNode("div",{class:"f-chat-preview-header"},[i.createVNode("div",{class:"f-chat-preview-header-left"},[i.createVNode("button",{class:"f-chat-preview-preview-btn"},[i.createVNode("i",{class:"fx-icon fx-icon-card_info"},null),i.createVNode("span",{class:"f-chat-preview-preview-text"},[((E=e.previewConfig)==null?void 0:E.title)||"预览"])])]),i.createVNode("div",{class:"f-chat-preview-header-right"},[i.createVNode("button",{class:"f-chat-preview-tool-btn",title:"关闭预览","aria-label":"关闭预览",onClick:()=>{var M;return(M=e.onClose)==null?void 0:M.call(e)}},[i.createVNode("i",{class:"fx-icon fx-icon-sidewindow_close"},null)])])])},V=()=>{var E;return d.value?c.value?i.createVNode("div",{class:"d-flex"},[i.createVNode(An,{class:"f-chat-content-main-layout",direction:"row"},{default:()=>[i.createVNode(ir,{position:"center",resizable:!1,minWidth:100,class:"f-chat-content-main-left"},{default:()=>[i.createVNode("div",{class:"f-chat-preview-content-nav"},[i.createVNode("div",{class:"f-chat-preview-content-nav-title"},[i.createTextVNode("全部文件")]),i.createVNode("div",{class:"f-chat-preview-content-nav-content"},[l.value.map((M,R)=>i.createVNode("div",{key:R,class:["f-chat-preview-content-nav-item",M===f.value?"active-nav-item":""],title:M,onClick:()=>p(M)},[M]))])])]}),i.createVNode(ir,{position:"right",resizable:!0,width:600,class:"f-chat-preview-pane-right"},{default:()=>[i.createVNode(nn,{content:c.value},null)]})]})]):null:i.createVNode(nn,{content:((E=e.previewConfig)==null?void 0:E.content)??""},null)};return()=>i.createVNode("div",{class:"f-chat-preview"},[P(),i.createVNode("div",{ref:u,class:"f-chat-preview-content",style:{overflow:s.value?"auto":"hidden"}},[s.value?V():i.createVNode(i.Fragment,null,[i.withDirectives(i.createVNode("div",{class:["f-chat-preview-skeleton",{"f-chat-preview-skeleton--fade-out":o.value}]},[i.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"60%"}},null),i.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"80%"}},null),i.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"45%"}},null),i.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"70%"}},null),i.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"55%"}},null)]),[[i.vShow,r.value]]),i.createVNode("iframe",{ref:n,name:"preview-iframe",title:"preview-iframe",src:a.value,class:["f-chat-preview-iframe",{"f-chat-preview-iframe--visible":o.value}]},null)])])])}});function Sp(e,t){const n=typeof window<"u"?window.AgentWorkbenchSDK:void 0;if(!n){console.warn("[AgentWorkbenchSDK] invoke: window.AgentWorkbenchSDK is not available");return}try{const u=n[e];if(typeof u!="function"){console.warn("[AgentWorkbenchSDK] invoke: not a function:",e);return}return u(...t??[])}catch(u){console.warn("[AgentWorkbenchSDK] invoke error:",e,u);return}}function Fp(e){return Zs(e)}let Dp=0;const lr=[];function rn(){var e;return((e=lr[lr.length-1])==null?void 0:e.h)??{}}function Tp(e){const t=++Dp;return lr.push({id:t,h:e}),()=>{const n=lr.findIndex(u=>u.id===t);n>=0&&lr.splice(n,1)}}const Np={showPreview(e){var t,n;(n=(t=rn()).showPreview)==null||n.call(t,e)},replaceRightPreview(e){var t,n;(n=(t=rn()).showPreview)==null||n.call(t,e)},closePreviewPane(){var e,t;(t=(e=rn()).closePreviewPane)==null||t.call(e)},closeRightPreview(){var e,t;(t=(e=rn()).closeRightPreview)==null||t.call(e)},showFullScreenPreview(e){var t,n;(n=(t=rn()).showFullScreenPreview)==null||n.call(t,e)},closeFullScreenPreview(){var e,t;(t=(e=rn()).closeFullScreenPreview)==null||t.call(e)},isPreviewLayoutActive(){return typeof rn().showPreview=="function"}};sr.install=e=>{e.component(sr.name,sr)};const Ks={modelValue:{type:Boolean,default:!1},title:{type:[String,Object],default:"标题"},description:{type:[String,Object],default:""},cancelText:{type:String,default:"取消"},confirmText:{type:String,default:"确认"},closeOnMask:{type:Boolean,default:!1},showDivider:{type:Boolean,default:!0}},cr=i.defineComponent({name:"FXConfirmDialog",props:Ks,emits:{"update:modelValue":e=>!0,cancel:()=>!0,confirm:()=>!0},setup(e,{emit:t,slots:n}){function u(){t("update:modelValue",!1)}function o(){t("cancel"),u()}function r(){t("confirm"),u()}function a(s){e.closeOnMask&&s.target===s.currentTarget&&o()}return()=>e.modelValue?i.createVNode(i.Teleport,{to:"body"},{default:()=>[i.createVNode("div",{class:"f-chat-confirm-dialog-mask",onClick:a},[i.createVNode("div",{class:"f-chat-confirm-dialog"},[i.createVNode("div",{class:"f-chat-confirm-dialog-title"},[n.title?n.title():e.title]),i.createVNode("div",{class:"f-chat-confirm-dialog-description"},[n.default?n.default():e.description]),i.createVNode("div",{class:["f-chat-confirm-dialog-actions",{"with-divider":e.showDivider}]},[i.createVNode("button",{type:"button",class:"f-chat-confirm-dialog-btn f-chat-confirm-dialog-btn-cancel",onClick:o},[e.cancelText]),i.createVNode("button",{type:"button",class:"f-chat-confirm-dialog-btn f-chat-confirm-dialog-btn-confirm",onClick:r},[e.confirmText])])])])]}):null}});cr.install=e=>{e.component(cr.name,cr)};function Qs(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,u=Array(t);n<t;n++)u[n]=e[n];return u}function Lp(e){if(Array.isArray(e))return e}function Ip(e,t,n){return(t=zp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Op(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var u,o,r,a,s=[],l=!0,d=!1;try{if(r=(n=n.call(e)).next,t!==0)for(;!(l=(u=r.call(n)).done)&&(s.push(u.value),s.length!==t);l=!0);}catch(f){d=!0,o=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw o}}return s}}function Pp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
148
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Js(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);t&&(u=u.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,u)}return n}function el(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Js(Object(n),!0).forEach(function(u){Ip(e,u,n[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Js(Object(n)).forEach(function(u){Object.defineProperty(e,u,Object.getOwnPropertyDescriptor(n,u))})}return e}function Vp(e,t){if(e==null)return{};var n,u,o=Rp(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(u=0;u<r.length;u++)n=r[u],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Rp(e,t){if(e==null)return{};var n={};for(var u in e)if({}.hasOwnProperty.call(e,u)){if(t.indexOf(u)!==-1)continue;n[u]=e[u]}return n}function Mp(e,t){return Lp(e)||Op(e,t)||jp(e,t)||Pp()}function Bp(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var u=n.call(e,t);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zp(e){var t=Bp(e,"string");return typeof t=="symbol"?t:t+""}function jp(e,t){if(e){if(typeof e=="string")return Qs(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qs(e,t):void 0}}function Hp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);t&&(u=u.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,u)}return n}function nl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tl(Object(n),!0).forEach(function(u){Hp(e,u,n[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tl(Object(n)).forEach(function(u){Object.defineProperty(e,u,Object.getOwnPropertyDescriptor(n,u))})}return e}function $p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(u){return t.reduceRight(function(o,r){return r(o)},u)}}function dr(e){return function t(){for(var n=this,u=arguments.length,o=new Array(u),r=0;r<u;r++)o[r]=arguments[r];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(n,[].concat(o,s))}}}function bu(e){return{}.toString.call(e).includes("Object")}function Up(e){return!Object.keys(e).length}function fr(e){return typeof e=="function"}function Wp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Gp(e,t){return bu(t)||Wt("changeType"),Object.keys(t).some(function(n){return!Wp(e,n)})&&Wt("changeField"),t}function Xp(e){fr(e)||Wt("selectorType")}function qp(e){fr(e)||bu(e)||Wt("handlerType"),bu(e)&&Object.values(e).some(function(t){return!fr(t)})&&Wt("handlersType")}function Zp(e){e||Wt("initialIsRequired"),bu(e)||Wt("initialType"),Up(e)&&Wt("initialContent")}function Yp(e,t){throw new Error(e[t]||e.default)}var Kp={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Wt=dr(Yp)(Kp),yu={changes:Gp,selector:Xp,handler:qp,initial:Zp};function Qp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};yu.initial(e),yu.handler(t);var n={current:e},u=dr(t2)(n,t),o=dr(e2)(n),r=dr(yu.changes)(e),a=dr(Jp)(n);function s(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(f){return f};return yu.selector(d),d(n.current)}function l(d){$p(u,o,r,a)(d)}return[s,l]}function Jp(e,t){return fr(t)?t(e.current):t}function e2(e,t){return e.current=nl(nl({},e.current),t),t}function t2(e,t,n){return fr(t)?t(e.current):Object.keys(n).forEach(function(u){var o;return(o=t[u])===null||o===void 0?void 0:o.call(t,e.current[u])}),n}var n2={create:Qp},r2={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function u2(e){return function t(){for(var n=this,u=arguments.length,o=new Array(u),r=0;r<u;r++)o[r]=arguments[r];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(n,[].concat(o,s))}}}function o2(e){return{}.toString.call(e).includes("Object")}function i2(e){return e||ul("configIsRequired"),o2(e)||ul("configType"),e.urls?(a2(),{paths:{vs:e.urls.monacoBase}}):e}function a2(){console.warn(rl.deprecation)}function s2(e,t){throw new Error(e[t]||e.default)}var rl={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
147
+ `,(R.head||R.documentElement).appendChild(te)}catch{}}const P=()=>{var E;return i.createVNode("div",{class:"f-chat-preview-header"},[i.createVNode("div",{class:"f-chat-preview-header-left"},[i.createVNode("button",{class:"f-chat-preview-preview-btn"},[i.createVNode("i",{class:"fx-icon fx-icon-card_info"},null),i.createVNode("span",{class:"f-chat-preview-preview-text"},[((E=e.previewConfig)==null?void 0:E.title)||"预览"])])]),i.createVNode("div",{class:"f-chat-preview-header-right"},[i.createVNode("button",{class:"f-chat-preview-tool-btn",title:"关闭预览","aria-label":"关闭预览",onClick:()=>{var R;return(R=e.onClose)==null?void 0:R.call(e)}},[i.createVNode("i",{class:"fx-icon fx-icon-sidewindow_close"},null)])])])},V=()=>{var E;return d.value?c.value?i.createVNode("div",{class:"d-flex"},[i.createVNode(An,{class:"f-chat-content-main-layout",direction:"row"},{default:()=>[i.createVNode(ir,{position:"center",resizable:!1,minWidth:100,class:"f-chat-content-main-left"},{default:()=>[i.createVNode("div",{class:"f-chat-preview-content-nav"},[i.createVNode("div",{class:"f-chat-preview-content-nav-title"},[i.createTextVNode("全部文件")]),i.createVNode("div",{class:"f-chat-preview-content-nav-content"},[l.value.map((R,M)=>i.createVNode("div",{key:M,class:["f-chat-preview-content-nav-item",R===f.value?"active-nav-item":""],title:R,onClick:()=>m(R)},[R]))])])]}),i.createVNode(ir,{position:"right",resizable:!0,width:600,class:"f-chat-preview-pane-right"},{default:()=>[i.createVNode(tn,{content:c.value},null)]})]})]):null:i.createVNode(tn,{content:((E=e.previewConfig)==null?void 0:E.content)??""},null)};return()=>i.createVNode("div",{class:"f-chat-preview"},[P(),i.createVNode("div",{ref:u,class:"f-chat-preview-content",style:{overflow:s.value?"auto":"hidden"}},[s.value?V():i.createVNode(i.Fragment,null,[i.withDirectives(i.createVNode("div",{class:["f-chat-preview-skeleton",{"f-chat-preview-skeleton--fade-out":o.value}]},[i.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"60%"}},null),i.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"80%"}},null),i.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"45%"}},null),i.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"70%"}},null),i.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"55%"}},null)]),[[i.vShow,r.value]]),i.createVNode("iframe",{ref:n,name:"preview-iframe",title:"preview-iframe",src:a.value,class:["f-chat-preview-iframe",{"f-chat-preview-iframe--visible":o.value}]},null)])])])}});function Sp(e,t){const n=typeof window<"u"?window.AgentWorkbenchSDK:void 0;if(!n){console.warn("[AgentWorkbenchSDK] invoke: window.AgentWorkbenchSDK is not available");return}try{const u=n[e];if(typeof u!="function"){console.warn("[AgentWorkbenchSDK] invoke: not a function:",e);return}return u(...t??[])}catch(u){console.warn("[AgentWorkbenchSDK] invoke error:",e,u);return}}function Dp(e){return Ys(e)}let Tp=0;const lr=[];function nn(){var e;return((e=lr[lr.length-1])==null?void 0:e.h)??{}}function Fp(e){const t=++Tp;return lr.push({id:t,h:e}),()=>{const n=lr.findIndex(u=>u.id===t);n>=0&&lr.splice(n,1)}}const Np={showPreview(e){var t,n;(n=(t=nn()).showPreview)==null||n.call(t,e)},replaceRightPreview(e){var t,n;(n=(t=nn()).showPreview)==null||n.call(t,e)},closePreviewPane(){var e,t;(t=(e=nn()).closePreviewPane)==null||t.call(e)},closeRightPreview(){var e,t;(t=(e=nn()).closeRightPreview)==null||t.call(e)},showFullScreenPreview(e){var t,n;(n=(t=nn()).showFullScreenPreview)==null||n.call(t,e)},closeFullScreenPreview(){var e,t;(t=(e=nn()).closeFullScreenPreview)==null||t.call(e)},isPreviewLayoutActive(){return typeof nn().showPreview=="function"}};sr.install=e=>{e.component(sr.name,sr)};const Qs={modelValue:{type:Boolean,default:!1},title:{type:[String,Object],default:"标题"},description:{type:[String,Object],default:""},cancelText:{type:String,default:"取消"},confirmText:{type:String,default:"确认"},closeOnMask:{type:Boolean,default:!1},showDivider:{type:Boolean,default:!0}},cr=i.defineComponent({name:"FXConfirmDialog",props:Qs,emits:{"update:modelValue":e=>!0,cancel:()=>!0,confirm:()=>!0},setup(e,{emit:t,slots:n}){function u(){t("update:modelValue",!1)}function o(){t("cancel"),u()}function r(){t("confirm"),u()}function a(s){e.closeOnMask&&s.target===s.currentTarget&&o()}return()=>e.modelValue?i.createVNode(i.Teleport,{to:"body"},{default:()=>[i.createVNode("div",{class:"f-chat-confirm-dialog-mask",onClick:a},[i.createVNode("div",{class:"f-chat-confirm-dialog"},[i.createVNode("div",{class:"f-chat-confirm-dialog-title"},[n.title?n.title():e.title]),i.createVNode("div",{class:"f-chat-confirm-dialog-description"},[n.default?n.default():e.description]),i.createVNode("div",{class:["f-chat-confirm-dialog-actions",{"with-divider":e.showDivider}]},[i.createVNode("button",{type:"button",class:"f-chat-confirm-dialog-btn f-chat-confirm-dialog-btn-cancel",onClick:o},[e.cancelText]),i.createVNode("button",{type:"button",class:"f-chat-confirm-dialog-btn f-chat-confirm-dialog-btn-confirm",onClick:r},[e.confirmText])])])])]}):null}});cr.install=e=>{e.component(cr.name,cr)};function Js(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,u=Array(t);n<t;n++)u[n]=e[n];return u}function Ip(e){if(Array.isArray(e))return e}function Op(e,t,n){return(t=zp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lp(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var u,o,r,a,s=[],l=!0,d=!1;try{if(r=(n=n.call(e)).next,t!==0)for(;!(l=(u=r.call(n)).done)&&(s.push(u.value),s.length!==t);l=!0);}catch(f){d=!0,o=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw o}}return s}}function Pp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
148
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function el(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);t&&(u=u.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,u)}return n}function tl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?el(Object(n),!0).forEach(function(u){Op(e,u,n[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):el(Object(n)).forEach(function(u){Object.defineProperty(e,u,Object.getOwnPropertyDescriptor(n,u))})}return e}function Vp(e,t){if(e==null)return{};var n,u,o=Rp(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(u=0;u<r.length;u++)n=r[u],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Rp(e,t){if(e==null)return{};var n={};for(var u in e)if({}.hasOwnProperty.call(e,u)){if(t.indexOf(u)!==-1)continue;n[u]=e[u]}return n}function Mp(e,t){return Ip(e)||Lp(e,t)||jp(e,t)||Pp()}function Bp(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var u=n.call(e,t);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zp(e){var t=Bp(e,"string");return typeof t=="symbol"?t:t+""}function jp(e,t){if(e){if(typeof e=="string")return Js(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Js(e,t):void 0}}function Hp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);t&&(u=u.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,u)}return n}function rl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nl(Object(n),!0).forEach(function(u){Hp(e,u,n[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nl(Object(n)).forEach(function(u){Object.defineProperty(e,u,Object.getOwnPropertyDescriptor(n,u))})}return e}function $p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(u){return t.reduceRight(function(o,r){return r(o)},u)}}function dr(e){return function t(){for(var n=this,u=arguments.length,o=new Array(u),r=0;r<u;r++)o[r]=arguments[r];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(n,[].concat(o,s))}}}function yu(e){return{}.toString.call(e).includes("Object")}function Up(e){return!Object.keys(e).length}function fr(e){return typeof e=="function"}function Wp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Gp(e,t){return yu(t)||Wt("changeType"),Object.keys(t).some(function(n){return!Wp(e,n)})&&Wt("changeField"),t}function Xp(e){fr(e)||Wt("selectorType")}function qp(e){fr(e)||yu(e)||Wt("handlerType"),yu(e)&&Object.values(e).some(function(t){return!fr(t)})&&Wt("handlersType")}function Zp(e){e||Wt("initialIsRequired"),yu(e)||Wt("initialType"),Up(e)&&Wt("initialContent")}function Yp(e,t){throw new Error(e[t]||e.default)}var Kp={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Wt=dr(Yp)(Kp),xu={changes:Gp,selector:Xp,handler:qp,initial:Zp};function Qp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};xu.initial(e),xu.handler(t);var n={current:e},u=dr(t1)(n,t),o=dr(e1)(n),r=dr(xu.changes)(e),a=dr(Jp)(n);function s(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(f){return f};return xu.selector(d),d(n.current)}function l(d){$p(u,o,r,a)(d)}return[s,l]}function Jp(e,t){return fr(t)?t(e.current):t}function e1(e,t){return e.current=rl(rl({},e.current),t),t}function t1(e,t,n){return fr(t)?t(e.current):Object.keys(n).forEach(function(u){var o;return(o=t[u])===null||o===void 0?void 0:o.call(t,e.current[u])}),n}var n1={create:Qp},r1={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function u1(e){return function t(){for(var n=this,u=arguments.length,o=new Array(u),r=0;r<u;r++)o[r]=arguments[r];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(n,[].concat(o,s))}}}function o1(e){return{}.toString.call(e).includes("Object")}function i1(e){return e||ol("configIsRequired"),o1(e)||ol("configType"),e.urls?(a1(),{paths:{vs:e.urls.monacoBase}}):e}function a1(){console.warn(ul.deprecation)}function s1(e,t){throw new Error(e[t]||e.default)}var ul={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
149
149
  You are using deprecated way of configuration.
150
150
 
151
151
  Instead of using
@@ -154,6 +154,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
154
154
  monaco.config({ paths: { vs: '...' } })
155
155
 
156
156
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
157
- `},ul=u2(s2)(rl),l2={config:i2},c2=function(){for(var t=arguments.length,n=new Array(t),u=0;u<t;u++)n[u]=arguments[u];return function(o){return n.reduceRight(function(r,a){return a(r)},o)}};function ol(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],ol(e[n],t[n]))}),el(el({},e),t)}var d2={type:"cancelation",msg:"operation is manually canceled"};function Yo(e){var t=!1,n=new Promise(function(u,o){e.then(function(r){return t?o(d2):u(r)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var f2=["monaco"],h2=n2.create({config:r2,isInitialized:!1,resolve:null,reject:null,monaco:null}),il=Mp(h2,2),hr=il[0],xu=il[1];function p2(e){var t=l2.config(e),n=t.monaco,u=Vp(t,f2);xu(function(o){return{config:ol(o.config,u),monaco:n}})}function m2(){var e=hr(function(t){var n=t.monaco,u=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:u,resolve:o}});if(!e.isInitialized){if(xu({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Yo(Ko);if(window.monaco&&window.monaco.editor)return al(window.monaco),e.resolve(window.monaco),Yo(Ko);c2(g2,y2)(x2)}return Yo(Ko)}function g2(e){return document.body.appendChild(e)}function b2(e){var t=document.createElement("script");return e&&(t.src=e),t}function y2(e){var t=hr(function(u){var o=u.config,r=u.reject;return{config:o,reject:r}}),n=b2("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function x2(){var e=hr(function(n){var u=n.config,o=n.resolve,r=n.reject;return{config:u,resolve:o,reject:r}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var u=n.m||n;al(u),e.resolve(u)},function(n){e.reject(n)})}function al(e){hr().monaco||xu({monaco:e})}function w2(){return hr(function(e){var t=e.monaco;return t})}var Ko=new Promise(function(e,t){return xu({resolve:e,reject:t})}),v2={config:p2,init:m2,__getMonacoInstance:w2};const sl={content:{type:Object,required:!0}},ll=20,A2=16,Cn=180;function k2(e){typeof requestIdleCallback<"u"?requestIdleCallback(e,{timeout:500}):setTimeout(e,0)}const pr=i.defineComponent({name:"FXCodingMessage",props:sl,setup(e){const t=i.ref(!0),n=i.ref(!1),u=i.ref(null),o=i.ref(null),r=i.ref(Cn),a=i.ref(!1);function s(){t.value=!t.value}function l(){var b,g,x,k;const p=(b=e.content)==null?void 0:b.code;if(!p)return Cn;const y=o.value;let A;if(y!=null&&y.getOriginalEditor&&(y!=null&&y.getModifiedEditor)){const T=((g=y.getOriginalEditor().getModel())==null?void 0:g.getLineCount())??0,D=((x=y.getModifiedEditor().getModel())==null?void 0:x.getLineCount())??0;A=T+D}else if(y!=null&&y.getModel)A=((k=y.getModel())==null?void 0:k.getLineCount())??0;else{const{value:T,originalValue:D}=p,F=(T||"").split(`
158
- `).length,U=D?D.split(`
159
- `).length:0;A=D?U+F:F}return A2+A*ll}const d=i.computed(()=>(o.value,l()>Cn));function f(){n.value=!n.value,r.value=n.value?l():Cn,h()}function c(){if(!o.value)return;o.value=null;const w=()=>{};typeof requestIdleCallback<"u"?requestIdleCallback(w,{timeout:100}):setTimeout(w,0)}function h(){if(a.value)return;const p=u.value,w=o.value;if(!p||!(w!=null&&w.layout))return;const y=p.clientWidth||p.offsetWidth,A=r.value;requestAnimationFrame(()=>{var b,g;a.value||!o.value||(g=(b=o.value)==null?void 0:b.layout)==null||g.call(b,{width:y,height:A})})}function m(){var p;a.value||!u.value||!((p=e.content)!=null&&p.code)||v2.init().then(w=>{var x;if(a.value||!u.value||!((x=e.content)!=null&&x.code))return;const{value:y,originalValue:A,language:b="typescript"}=e.content.code,g={readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,lineNumbers:"off",glyphMargin:!1,lineDecorationsWidth:0,folding:!1,renderLineHighlight:"none",fontSize:12,lineHeight:ll,padding:{top:8,bottom:8}};if(A){const k=w.editor.createDiffEditor(u.value,{...g,renderSideBySide:!1,renderOverviewRuler:!1});k.setModel({original:w.editor.createModel(A,b),modified:w.editor.createModel(y,b)}),k.getOriginalEditor().updateOptions({minimap:{enabled:!1}}),k.getModifiedEditor().updateOptions({minimap:{enabled:!1}}),i.nextTick(()=>{var D;if(a.value)return;const T=(D=k.getContainerDomNode)==null?void 0:D.call(k);if(T){const F=T.querySelector('.diff-editor-cell.original, [class*="original"]');F&&(F.style.display="none")}}),o.value=k}else{const k=w.editor.create(u.value,{value:y,language:b,...g});o.value=k}r.value=Cn,i.nextTick(()=>h())})}return i.onMounted(()=>{k2(()=>{a.value||!u.value||m()})}),i.watch(t,p=>{p&&!a.value&&i.nextTick(()=>h())}),i.onBeforeUnmount(()=>{a.value=!0,c()}),i.watch(()=>{var p,w;return(w=(p=e.content)==null?void 0:p.code)==null?void 0:w.value},()=>{a.value||(n.value?r.value=l():r.value=Cn,h())}),()=>{const p=e.content;if(!p)return null;const{message:w,fileIcon:y,fileName:A,code:b}=p;return i.createVNode("div",{class:"f-chat-message-coding"},[i.createVNode("div",{class:"f-chat-coding-message"},[w]),i.createVNode("div",{class:"f-chat-coding-card"},[i.createVNode("div",{class:"f-chat-coding-header",onClick:s,role:"button",tabindex:0,onKeydown:g=>g.key==="Enter"&&s()},[i.createVNode("span",{class:"f-chat-coding-header-icon-slot"},[i.createVNode("span",{class:"f-chat-coding-header-icon"},[i.createVNode("img",{src:y,alt:"",onError:g=>{var x;g.target.style.display="none",(x=g.target.parentElement)==null||x.classList.add("icon-error")}},null),i.createVNode("span",{class:"f-chat-coding-header-icon-fallback"},[i.createTextVNode("📄")])]),i.createVNode("span",{class:"f-chat-coding-header-expand"},[i.createVNode("i",{class:t.value?"fx-icon fx-icon-expanddown":"fx-icon fx-icon-arrow-right"},null)])]),i.createVNode("span",{class:"f-chat-coding-header-filename"},[A]),i.createVNode("span",{class:"f-chat-coding-header-stats"},[i.createVNode("span",{class:"f-chat-coding-stat-add"},[i.createTextVNode("+"),b.addedLines]),i.createVNode("span",{class:"f-chat-coding-stat-del"},[i.createTextVNode("-"),b.deletedLines])])]),i.createVNode("div",{style:{display:t.value?"block":"none"}},[i.createVNode("div",{ref:u,class:"f-chat-coding-editor",style:{height:`${r.value}px`}},null),d.value&&i.createVNode("button",{type:"button",class:"f-chat-coding-expand-btn",onClick:f,"aria-label":n.value?"收起代码":"展开代码",title:n.value?"收起代码":"展开代码"},[i.createVNode("i",{class:["fx-icon fx-icon-expanddown",n.value&&"f-chat-coding-expand-icon-up"]},null)])])])])}}});pr.install=e=>{e.component(pr.name,pr)};const cl={content:{type:Object,required:!0}};function C2(e){return"file"in e&&"path"in e}const mr=i.defineComponent({name:"FileOperationMessage",props:cl,setup(e){const t=i.ref(!0),n=i.ref({}),u=i.computed(()=>{var l;return!!((l=e.content)!=null&&l.summary)}),o=i.computed(()=>{var d;const l=(d=e.content)==null?void 0:d.summary;return l?`浏览了 ${l.explored} 个文件并查询了 ${l.searched} 个文件`:""});function r(){t.value=!t.value}function a(l){n.value={...n.value,[l]:!n.value[l]}}function s(l){return n.value[l]??!1}return()=>{const l=e.content;if(!l)return null;const{summary:d,operations:f}=l,c=!u.value||t.value;return i.createVNode("div",{class:"f-chat-message-file-operation"},[d&&i.createVNode("div",{class:"f-chat-file-op-summary",onClick:r,role:"button",tabindex:0,onKeydown:h=>h.key==="Enter"&&r()},[i.createVNode("span",{class:"f-chat-file-op-summary-inner"},[i.createVNode("span",{class:"f-chat-file-op-summary-text"},[o.value]),i.createVNode("span",{class:["f-chat-file-op-expand-btn",{expanded:t.value}]},[i.createVNode("i",{class:t.value?"fx-icon fx-icon-expanddown":"fx-icon fx-icon-arrow-right"},null)])])]),c&&i.createVNode("div",{class:"f-chat-file-op-operations"},[f.map((h,m)=>{var p,w,y,A;return i.createVNode("div",{key:m,class:"f-chat-file-op-operation"},[i.createVNode("div",i.mergeProps({class:["f-chat-file-op-operation-row",{"op-read":h.type==="Read","has-details":!!((p=h.details)!=null&&p.length)}],onClick:()=>{var b;return((b=h.details)==null?void 0:b.length)&&a(m)}},(w=h.details)!=null&&w.length?{role:"button",tabIndex:0}:{},{onKeydown:b=>{var g;return((g=h.details)==null?void 0:g.length)&&b.key==="Enter"&&a(m)}}),[i.createVNode("span",{class:"f-chat-file-op-type"},[h.type]),i.createVNode("span",{class:"f-chat-file-op-message-wrap"},[i.createVNode("span",{class:"f-chat-file-op-message"},[h.message]),(y=h.details)!=null&&y.length?i.createVNode("span",{class:["f-chat-file-op-expand-btn","sm",{expanded:s(m)}]},[i.createVNode("i",{class:s(m)?"fx-icon fx-icon-expanddown":"fx-icon fx-icon-arrow-right"},null)]):null])]),((A=h.details)==null?void 0:A.length)&&s(m)&&i.createVNode("div",{class:"f-chat-file-op-details"},[h.details.map((b,g)=>C2(b)?i.createVNode("div",{key:g,class:"f-chat-file-op-detail-file"},[i.createVNode("span",{class:"f-chat-file-op-file-icon"},[i.createVNode("img",{src:b.icon,alt:"",onError:x=>{const k=x.target;k.style.display="none";const T=k.parentElement;T&&T.classList.add("icon-error")}},null),i.createVNode("span",{class:"f-chat-file-op-file-icon-fallback"},[i.createTextVNode("📄")])]),i.createVNode("span",{class:"f-chat-file-op-file-name"},[b.file]),i.createVNode("span",{class:"f-chat-file-op-file-path",title:b.path},[b.path])]):i.createVNode("div",{key:g,class:"f-chat-file-op-detail-text"},[i.createVNode("div",{class:"f-chat-file-op-detail-title"},[b.title]),i.createVNode("div",{class:"f-chat-file-op-detail-content"},[b.text])]))])])})])])}}});mr.install=e=>{e.component(mr.name,mr)};const dl={visible:{type:Boolean,default:!0},description:[String,Object],progress:{type:Number,default:0},showProgress:{type:Boolean,default:!0},icon:{type:[String,Object],default:""},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},_2="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='60px'%20height='60px'%20viewBox='0%200%2060%2060'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e智能logo60px%3c/title%3e%3cdefs%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-1'%3e%3cstop%20stop-color='%230D7FE6'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%231EBBC6'%20offset='58.0673923%25'%3e%3c/stop%3e%3cstop%20stop-color='%232AE7AF'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cpath%20d='M25.1971977,0%20L45.8523137,11.3712178%20L45.8523137,37.6155801%20L44.4946453,38.9692599%20L24.623,28.022%20L24.6233274,49.9395377%20L21.4535582,49.9395377%20L2.72549351,39.5965647%20L0,34.4406135%20L0,12.8076673%20L3.70534859,10.5019677%20L20.556,20.546%20L20.5567534,0.161454345%20L25.1971977,0%20Z%20M20.7578212,28.1498874%20L5.81325199,36.7628182%20L20.7578212,45.0027895%20L20.7578212,28.1498874%20Z%20M41.8027832,15.9256338%20L26.7716137,24.6706076%20L41.8027832,32.9879669%20L41.8027832,15.9256338%20Z%20M4.06159924,15.4742393%20L4.06159924,32.9879669%20L19.1488772,24.4568004%20L4.06159924,15.4742393%20Z%20M24.6233274,4.32908173%20L24.6233274,21.2862528%20L39.8727429,12.4882393%20L24.6233274,4.32908173%20Z'%20id='path-2'%3e%3c/path%3e%3clinearGradient%20x1='81.0966666%25'%20y1='38.5584607%25'%20x2='28.8545509%25'%20y2='61.9626707%25'%20id='linearGradient-4'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-5'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='44.8152906%25'%20y1='77.6521765%25'%20x2='44.8152906%25'%20y2='3.26462903%25'%20id='linearGradient-6'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-7'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='3.93796935%25'%20y1='32.607826%25'%20x2='78.9687461%25'%20y2='60.0462823%25'%20id='linearGradient-8'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-9'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='56.0769337%25'%20y1='45.0797149%25'%20x2='24.9463054%25'%20y2='71.1433818%25'%20id='linearGradient-10'%3e%3cstop%20stop-color='%23159BD7'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='10.434388%25'%20y1='68.063656%25'%20x2='86.6988821%25'%20y2='30.8651063%25'%20id='linearGradient-11'%3e%3cstop%20stop-color='%2321C6C1'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-12'%3e%3cstop%20stop-color='%230D7FE6'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%232AE7AF'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20id='页面-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='生成过程'%20transform='translate(-766,%20-1268)'%3e%3cg%20id='编组-7'%20transform='translate(321,%20699)'%3e%3cg%20id='编组-5'%20transform='translate(247,%20488)'%3e%3cg%20id='智能logo60px'%20transform='translate(198,%2081)'%3e%3crect%20id='矩形'%20x='0'%20y='0'%20width='60'%20height='60'%3e%3c/rect%3e%3cg%20id='编组-35'%20transform='translate(0.8571,%200.8571)'%3e%3crect%20id='矩形'%20x='0'%20y='0'%20width='58.2857143'%20height='58.2857143'%3e%3c/rect%3e%3cg%20id='编组-19备份-17'%20transform='translate(3.4286,%201.7143)'%3e%3cpath%20d='M27.9148216,2.78182535%20L48.5699376,14.1530432%20L48.5699376,40.3974054%20L47.2122691,41.7510852%20L27.3406238,30.8038254%20L27.3409512,52.7213631%20L24.171182,52.7213631%20L5.44311735,42.3783901%20L2.71762384,37.2224388%20L2.71762384,15.5894926%20L6.42297243,13.283793%20L23.2736238,23.3278254%20L23.2743772,2.9432797%20L27.9148216,2.78182535%20Z%20M23.4754451,30.9317128%20L8.53087583,39.5446435%20L23.4754451,47.7846148%20L23.4754451,30.9317128%20Z%20M44.520407,18.7074592%20L29.4892375,27.452433%20L44.520407,35.7697922%20L44.520407,18.7074592%20Z%20M6.77922307,18.2560647%20L6.77922307,35.7697922%20L21.866501,27.2386257%20L6.77922307,18.2560647%20Z%20M27.3409512,7.11090709%20L27.3409512,24.0680782%20L42.5903667,15.2700646%20L27.3409512,7.11090709%20Z'%20id='形状结合'%20fill='url(%23linearGradient-1)'%3e%3c/path%3e%3cg%20id='路径-2-+-路径-3-+-路径-4蒙版'%20transform='translate(2.7176,%202.7818)'%3e%3cmask%20id='mask-3'%20fill='white'%3e%3cuse%20xlink:href='%23path-2'%3e%3c/use%3e%3c/mask%3e%3cuse%20id='蒙版'%20fill='url(%23linearGradient-1)'%20xlink:href='%23path-2'%3e%3c/use%3e%3cpolygon%20id='路径-2'%20fill='url(%23linearGradient-4)'%20filter='url(%23filter-5)'%20mask='url(%23mask-3)'%20points='14.177196%2023.2632694%2022.5796859%2023.2632694%2023.4218687%2027.5957059%209.52757789%2036.9780352%203.7254788%2029.0812693'%3e%3c/polygon%3e%3cpolygon%20id='路径-3'%20fill='url(%23linearGradient-6)'%20filter='url(%23filter-7)'%20mask='url(%23mask-3)'%20points='23.4218687%2022.4125055%2027.1161878%2015.1091341%2027.8042533%206.35665145%2018.1506617%205.88610282%2018.8417696%2016.8706238%2022.5796859%2022.4125055'%3e%3c/polygon%3e%3cpolygon%20id='路径-4'%20fill='url(%23linearGradient-8)'%20filter='url(%23filter-9)'%20mask='url(%23mask-3)'%20points='33.5501273%2024.6706076%2024.403058%2024.9983902%2024.403058%2027.5289361%2028.4733448%2033.3539069%2036.4355638%2036.3335669%2041.6970622%2028.387534'%3e%3c/polygon%3e%3c/g%3e%3cpath%20d='M27.9148216,2.78182535%20L48.5699376,14.1530432%20L48.5699376,40.3974054%20L47.2122691,41.7510852%20L23.2743772,28.5628437%20L23.2743772,2.9432797%20L27.9148216,2.78182535%20Z%20M27.3409512,7.11090709%20L27.3409512,24.0680782%20L28.3053772,23.5108254%20L28.3061985,25.7112082%20L30.1053772,27.0928254%20L29.4892375,27.452433%20L44.520407,35.7697922%20L44.5203772,18.7198254%20L45.4350062,17.1793767%20L42.5903667,15.2700646%20L27.3409512,7.11090709%20Z'%20id='形状结合'%20fill='url(%23linearGradient-10)'%20fill-rule='nonzero'%3e%3c/path%3e%3cpolygon%20id='路径'%20fill='url(%23linearGradient-11)'%20fill-rule='nonzero'%20points='22.5927693%2026.8440709%2023.6315003%2030.8033921%208.53087583%2039.5446435%207.30516741%2035.4601402'%3e%3c/polygon%3e%3cg%20id='编组-21'%20fill='url(%23linearGradient-12)'%3e%3cpath%20d='M25.4312165,33.1398658%20C28.857043,33.1398658%2031.634224,30.3626848%2031.634224,26.9368583%20C31.634224,23.5110318%2028.857043,20.7338508%2025.4312165,20.7338508%20C22.00539,20.7338508%2019.228209,23.5110318%2019.228209,26.9368583%20C19.228209,30.3626848%2022.00539,33.1398658%2025.4312165,33.1398658%20Z%20M46.5950591,20.103577%20C49.2645342,20.103577%2051.4285714,17.9395398%2051.4285714,15.2700646%20C51.4285714,12.6005895%2049.2645342,10.4365523%2046.5950591,10.4365523%20C43.9255839,10.4365523%2041.7615467,12.6005895%2041.7615467,15.2700646%20C41.7615467,17.9395398%2043.9255839,20.103577%2046.5950591,20.103577%20Z%20M25.4312165,54.9048659%20C28.1006917,54.9048659%2030.2647289,52.7408287%2030.2647289,50.0713536%20C30.2647289,47.4018784%2028.1006917,45.2378412%2025.4312165,45.2378412%20C22.7617413,45.2378412%2020.5977042,47.4018784%2020.5977042,50.0713536%20C20.5977042,52.7408287%2022.7617413,54.9048659%2025.4312165,54.9048659%20Z%20M4.83351235,43.462539%20C7.50298751,43.462539%209.6670247,41.2985018%209.6670247,38.6290267%20C9.6670247,35.9595515%207.50298751,33.7955143%204.83351235,33.7955143%20C2.16403719,33.7955143%200,35.9595515%200,38.6290267%20C0,41.2985018%202.16403719,43.462539%204.83351235,43.462539%20Z%20M25.4312165,8.37808808%20C27.7447616,8.37808808%2029.6202605,6.50258918%2029.6202605,4.18904404%20C29.6202605,1.8754989%2027.7447616,0%2025.4312165,0%20C23.1176714,0%2021.2421725,1.8754989%2021.2421725,4.18904404%20C21.2421725,6.50258918%2023.1176714,8.37808808%2025.4312165,8.37808808%20Z%20M46.5950591,43.3044363%20C48.9086042,43.3044363%2050.7841031,41.4289374%2050.7841031,39.1153922%20C50.7841031,36.8018471%2048.9086042,34.9263482%2046.5950591,34.9263482%20C44.2815139,34.9263482%2042.406015,36.8018471%2042.406015,39.1153922%20C42.406015,41.4289374%2044.2815139,43.3044363%2046.5950591,43.3044363%20Z%20M4.83351235,18.3420872%20C7.14705749,18.3420872%209.02255639,16.4665883%209.02255639,14.1530432%20C9.02255639,11.8394981%207.14705749,9.96399915%204.83351235,9.96399915%20C2.51996721,9.96399915%200.644468314,11.8394981%200.644468314,14.1530432%20C0.644468314,16.4665883%202.51996721,18.3420872%204.83351235,18.3420872%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",gr=i.defineComponent({name:"FXGenerateProcess",props:dl,emits:["closed"],setup(e,t){const n=i.computed(()=>{const d={"fx-generate-process":!0,"fx-generate-process--no-progress":!e.showProgress};return ye(d,e.customClass)}),u=i.computed(()=>Ae({},e.customStyle));function o(){var d,f;return t.slots.icon?t.slots.icon():i.createVNode("div",{class:["fx-generate-process--icon",(d=e.classNames)==null?void 0:d.icon],style:(f=e.styles)==null?void 0:f.icon},[e.icon?Ir(e.icon):i.createVNode("img",{alt:"ai logo",class:"fx-generate-process--icon-default",src:_2},null)])}function r(){var d,f;return e.description&&i.createVNode("p",{class:["fx-generate-process--description",(d=e.classNames)==null?void 0:d.description],style:(f=e.styles)==null?void 0:f.description},[e.description])}function a(){var d,f;return e.progress>0&&i.createVNode("div",{class:["fx-generate-process--progress-text",(d=e.classNames)==null?void 0:d["progress-text"]],style:(f=e.styles)==null?void 0:f["progress-text"]},[e.progress,i.createTextVNode("%")])}function s(){return i.createVNode("div",{class:"fx-generate-process--mask",onClick:d=>{d.stopPropagation()}},null)}function l(d=()=>{}){t.emit("closed",{callback:d})}return i.watch(()=>e.visible,d=>{d||l()}),t.expose({close:l}),()=>{var d,f;return i.createVNode(i.Fragment,null,[e.visible&&s(),e.visible&&i.createVNode("div",{class:n.value,style:u.value},[o(),!e.showProgress&&r(),e.showProgress&&i.createVNode("div",{class:["fx-generate-process--progress-bar",(d=e.classNames)==null?void 0:d["progress-bar"]],style:(f=e.styles)==null?void 0:f["progress-bar"]},[i.createVNode("div",{class:"fx-generate-process--progress-fill",style:{width:`${e.progress}%`}},null),!e.description&&a()]),e.description&&e.progress>0&&i.createVNode("div",{class:"fx-generate-process--progress"},[r(),i.createTextVNode(" "),a()])])])}}});gr.install=e=>{e.component(gr.name,gr)};const fl={title:{type:String,default:"历史对话"},items:{type:Array,default:()=>[]}},E2=[{key:"today",label:"今天"},{key:"week",label:"近7天"},{key:"older",label:"更早"}],br=i.defineComponent({name:"FXChatHistory",props:fl,emits:["itemClick"],setup(e,{emit:t}){const n=a=>{const s=new Date(a),l=new Date;return s.getDate()===l.getDate()&&s.getMonth()===l.getMonth()&&s.getFullYear()===l.getFullYear()},u=a=>{const s=new Date(a),l=new Date;return l.setDate(l.getDate()-7),s>=l&&!n(a)},o=i.computed(()=>{var l;const a={today:[],week:[],older:[]};(l=e.items)==null||l.forEach(d=>{n(d.timestamp)?a.today.push(d):u(d.timestamp)?a.week.push(d):a.older.push(d)});const s=(d,f)=>f.timestamp-d.timestamp;return a.today.sort(s).length||a.week.sort(s).length||a.older.sort(s).length?{today:a.today.sort(s),week:a.week.sort(s),older:a.older.sort(s)}:null}),r=(a,s)=>s.length>0&&i.createVNode("div",{class:"f-chat-history-section"},[i.createVNode("span",{class:"f-chat-history-section-header"},[a]),i.createVNode("div",{class:"d-flex flex-column"},[s.map(l=>i.createVNode("div",{key:l.id,class:"f-chat-history-item",onClick:()=>t("itemClick",l)},[i.createVNode("span",{class:"f-chat-history-item-title"},[l.title])]))])]);return()=>i.createVNode("div",{class:"f-chat-history-manager"},[i.createVNode("div",{class:"f-chat-history-manager-scroll"},[o.value&&E2.map(a=>r(a.label,o.value[a.key]))])])}});br.install=e=>{e.component(br.name,br)};const hl={items:{type:Array,default:()=>[]},title:{type:[String,Object],default:""},vertical:{type:Boolean,default:!1},wrap:{type:Boolean,default:!1},gap:{type:[String,Number],default:12},fadeIn:{type:Boolean,default:!1},fadeInLeft:{type:Boolean,default:!1},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""}};var pl=(e=>(e.standardFeatureCard="standard-feature-card",e.primaryFeatureCard="primary-feature-card",e.compactFeatureCard="compact-feature-card",e.standardQuestionItem="standard-question-item",e.functionEntryItem="function-entry-item",e.defaultTextItem="default-text-item",e.hasNestEntryItem="has-nest-entry-item",e.likeButtonEntryItem="like-button-entry-item",e.none="",e))(pl||{});const ml={id:{type:[String,Number],default:""},icon:{type:[String,Object],default:""},label:{type:[String,Object],default:""},description:{type:[String,Object],default:""},badge:{type:[String,Object],default:""},disabled:{type:Boolean,default:!1},children:{type:Array,default:()=>[]},styles:{type:Object},classNames:{type:Object},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},showType:{type:String,default:pl.defaultTextItem},gap:{type:[String,Number]},onClick:{type:Function,required:!1}},wu=i.defineComponent({name:"FPrompt",props:ml,setup(e){const t=i.computed(()=>!e.id&&e.children&&e.children.length>0),n=i.computed(()=>{var h;let c={"fx-prompt--item-wrapper":!0,"fx-prompt--item-disabled":e.disabled,"fx-prompt--item-has-nest":e.id&&e.children&&e.children.length>0};return c=ye(c,(h=e.classNames)==null?void 0:h.item),ye(c,e.customClass)}),u=i.computed(()=>{let c={"fx-prompt--item":!0};return c[`fx-prompt--${e.showType||"none"}`]=!0,c}),o=i.computed(()=>{var h;const c=Ae({},(h=e.styles)==null?void 0:h.item);return Ae(c,e.customStyle)}),r=()=>{var c,h;return e.icon?i.createVNode("div",{class:["fx-prompt--item-icon",(c=e.classNames)==null?void 0:c.icon],style:(h=e.styles)==null?void 0:h.icon},[Ir(e.icon)]):null},a=()=>{var c,h;return e.label?i.createVNode("h6",{class:["fx-prompt--item-label",(c=e.classNames)==null?void 0:c.label],style:(h=e.styles)==null?void 0:h.label},[Mn(e.label)]):null};function s(){var h;const c={"fx-prompt--item-badge":!0};return typeof e.badge=="string"&&(c["badge-default"]=!0),ye(c,(h=e.classNames)==null?void 0:h.badge)}const l=()=>{var c;return e.badge?i.createVNode("span",{class:s(),style:(c=e.styles)==null?void 0:c.badge},[Mn(e.badge)]):null},d=()=>{var c,h;return e.description?i.createVNode("p",{class:["fx-prompt--item-description",(c=e.classNames)==null?void 0:c.description],style:(h=e.styles)==null?void 0:h.description},[Mn(e.description)]):null},f=()=>{var c,h,m,p;return!e.children||e.children.length===0?null:i.createVNode(_n,{class:{"fx-prompt--only-children":!e.id,"fx-prompt--item-nested":e.id},gap:e.gap,items:e.children,vertical:!0,customClass:(c=e.classNames)==null?void 0:c.subItems,customStyle:(h=e.styles)==null?void 0:h.subItems,styles:{item:((m=e.styles)==null?void 0:m.subItem)??{}},classNames:{item:((p=e.classNames)==null?void 0:p.subItem)??""}},null)};return()=>{var c,h;return i.createVNode("div",{class:n.value,style:o.value,onClick:e.onClick},[t.value?f():i.createVNode("div",{class:u.value},[r(),l(),i.createVNode("div",{class:["fx-prompt--item-content",(c=e.classNames)==null?void 0:c.itemContent],style:(h=e.styles)==null?void 0:h.itemContent},[a(),d(),f()])])])}}}),_n=i.defineComponent({name:"FXPrompts",props:hl,emits:["item-click"],setup(e,t){const n=i.computed(()=>{var f;let d={"fx-prompts":!0,"fx-prompts--fade-in":e.fadeIn,"fx-prompts--fade-in-left":e.fadeInLeft};return d=ye(d,e.customClass),d=ye(d,(f=e.classNames)==null?void 0:f.root),d});function u(d=null){var c;let f={"fx-prompts--items":!0,"fx-prompt":!0,"fx-prompts--items-wrap":e.wrap,"fx-prompts--items-vertical":e.vertical};return f=ye(f,(c=e.classNames)==null?void 0:c.items),f=ye(f,d==null?void 0:d.customClass),f}function o(d=null){var c;let f={};return(e.gap||e.gap===0)&&(f.gap=typeof e.gap=="number"?`${e.gap}px`:e.gap),f=Ae(f,(c=e.styles)==null?void 0:c.items),f=Ae(f,d==null?void 0:d.customStyle),f}const r=(d,f)=>{f.disabled||f.children&&f.children.length>0||t.emit("item-click",d,f)},a=d=>{var f,c;return d!=null&&d.title?i.createVNode("h5",{class:["fx-prompts--title",(f=e.classNames)==null?void 0:f.title],style:(c=e.styles)==null?void 0:c.title},[Mn(d==null?void 0:d.title)]):null};function s(d){return!d.items||d.items.length===0?null:i.createVNode("div",{class:u(d),style:o(d)},[d.items.map((f,c)=>i.createVNode(wu,{key:f.id||`key_${c}`,id:f.id,icon:f.icon,label:f.label,description:f.description,disabled:f.disabled,children:f.children,styles:f.styles||e.styles,classNames:f.classNames||e.classNames,showType:f.showType,customClass:f.customClass,customStyle:f.customStyle,gap:f.gap,badge:f.badge,onClick:h=>r(h,f)},null))])}function l(){return t.slots.footer?t.slots.footer():null}return()=>{var d;return i.createVNode("div",{class:n.value,style:(d=e.styles)==null?void 0:d.root},[t.slots.title&&t.slots.title(),a(e),t.slots.default&&t.slots.default(),s(e),l()])}}});_n.install=e=>{e.component(_n.name,_n),e.component(wu.name,wu)};const gl={items:{type:Array,default:()=>[]},height:{type:Number,default:200},title:{type:[String,Object],default:"推荐操作"},prompt:{type:[String,Object],default:"输入@获取推荐操作"},promptChar:{type:String,default:"@"},promptAgentName:{type:String,default:"AI助理"}},yr=i.defineComponent({name:"FXSuggestion",props:gl,setup(e,t){const n=i.ref(null),u=i.ref(!1),o=i.ref(!1),r=i.ref({top:0,left:0,height:0}),a=i.ref(-1),s=i.ref(""),l=i.computed(()=>typeof e.prompt=="string"?e.prompt:"输入“@”获取推荐操作"),d=i.computed(()=>{var A;return(((A=e.items)==null?void 0:A.length)??0)===0}),f=()=>{var U;if(!n.value||d.value)return;if((((U=n.value.textContent)==null?void 0:U.trim())||"")===""){n.value.textContent="",n.value.innerHTML="",w();return}const b=window.getSelection();if(!b||b.rangeCount===0)return;const g=b.getRangeAt(0),x=g.cloneRange();x.selectNodeContents(n.value),x.setEnd(g.endContainer,g.endOffset);const k=x.toString(),T=k.lastIndexOf(e.promptChar);if(s.value=n.value.textContent||"",T!==-1&&k.substring(T+1).trim()===""&&(n.value.textContent=k.replace(/@$/,`@${e.promptAgentName} `),s.value=n.value.textContent,u.value=!0,g.selectNodeContents(n.value),g.collapse(!1),b.removeAllRanges(),b.addRange(g)),u.value===!1){o.value=!1,a.value=-1;return}if((n.value.textContent||"").lastIndexOf(`@${e.promptAgentName} `)!==-1){const _=document.createRange();_.setStart(n.value,0),_.setEnd(g.endContainer,g.endOffset);const{top:N,right:L}=_.getBoundingClientRect(),C=c();r.value={top:N-C-5,left:L+5,height:C},a.value===-1&&(a.value=0),o.value=!0}else o.value=!1,a.value=-1},c=()=>{const b=e.items.length*38-6;return Math.min(b+28+20,e.height)},h=A=>{var k;if(!n.value)return;const b=window.getSelection();if(!b||b.rangeCount===0)return;const g=((k=n.value.textContent)==null?void 0:k.replace(/\s*$/,""))||"";n.value.textContent=`${g} ${A.label}`;const x=b.getRangeAt(0);x.selectNodeContents(n.value),x.collapse(!1),b.removeAllRanges(),b.addRange(x),w()},m=async A=>{if(!o.value||!e.items||e.items.length===0)return;switch(["ArrowUp","ArrowDown","Enter","Escape"].includes(A.key)&&A.preventDefault(),A.key){case"ArrowDown":a.value++,a.value>=e.items.length&&(a.value=0);break;case"ArrowUp":a.value--,a.value<0&&(a.value=e.items.length-1);break;case"Enter":a.value!==-1&&h(e.items[a.value]);break;case"Escape":w();break}await i.nextTick();const b=a.value>0?".f-chat-suggestion-panel-item--current":".f-chat-suggestion-panel-header",g=document.querySelector(b);g==null||g.scrollIntoView({block:"nearest",behavior:"smooth"})},p=A=>{n.value&&!n.value.contains(A.target)&&w()},w=()=>{u.value=!1,o.value=!1,a.value=-1};i.onMounted(()=>{document.addEventListener("click",p)}),i.onUnmounted(()=>{document.removeEventListener("click",p)});const y=A=>{const b=A.iconUrl||"",g=A.icon||"fx-icon fx-icon-sender_task";return i.createVNode(i.Fragment,null,[b?i.createVNode("img",{alt:"suggestion item icon",src:b},null):i.createVNode("i",{class:g},null),i.createVNode("span",{class:"f-chat-suggestion-panel-item-label"},[A.label])])};return()=>{var A;return i.createVNode("div",{class:"f-chat-suggestion-container"},[i.createVNode("div",{ref:n,class:"f-chat-suggestion-input",contenteditable:"true",onInput:f,onKeyup:f,onKeydown:m,"data-placeholder":l.value},null),o.value&&i.createVNode("div",{class:"f-chat-suggestion-panel",style:{top:`${r.value.top}px`,left:`${r.value.left}px`,height:`${r.value.height}px`}},[i.createVNode("div",{class:"f-chat-suggestion-panel-header"},[e.title]),i.createVNode("div",{class:"f-chat-suggestion-panel-container"},[(A=e.items)==null?void 0:A.map((b,g)=>i.createVNode("div",{key:g,class:["f-chat-suggestion-panel-item",{"f-chat-suggestion-panel-item--current":g===a.value}],onClick:()=>h(b),onMouseenter:()=>a.value===g},[y(b)]))])])])}}});yr.install=e=>{e.component(yr.name,yr)};const bl={type:{type:String,default:"Todo"},message:{type:String,default:""},items:{type:Array,default:[]},customClass:{type:String,default:""}},xr=i.defineComponent({name:"Todo",props:bl,setup(e){const t=i.ref(!0),n=i.computed(()=>{var o;return(o=e.items)==null?void 0:o.length});function u(){t.value=!t.value}return()=>i.createVNode("div",{class:["f-chat-message-todo",e.customClass]},[i.createVNode("div",{class:"f-chat-todo-message"},[e.message]),i.createVNode("div",{class:"f-chat-todo-list"},[i.createVNode("div",{class:"f-chat-todo-header",onClick:u,role:"button",tabindex:0,onKeydown:o=>o.key==="Enter"&&u()},[i.createVNode("span",{class:"f-chat-todo-header-icon-slot"},[i.createVNode("span",{class:"f-chat-todo-header-icon"},[i.createVNode("i",{class:"fx-icon fx-icon-task-record"},null)]),i.createVNode("span",{class:"f-chat-todo-header-expand"},[i.createVNode("i",{class:t.value?"fx-icon fx-icon-expanddown":"fx-icon fx-icon-arrow-right"},null)])]),i.createVNode("span",{class:"f-chat-todo-header-label"},[i.createTextVNode("待办任务")]),i.createVNode("span",{class:"f-chat-todo-header-count"},[n.value])]),t.value&&i.createVNode("div",{class:"f-chat-todo-content"},[i.createVNode(nr,{items:e.items},null)])])])}});xr.install=e=>{e.component(xr.name,xr),e.component(nr.name,nr),e.component(au.name,au)};function En(e){return e.toolResultApplied===!0||String(e.result??"").trim().length>0}const wr=i.defineComponent({name:"FXToolUseBatch",props:{content:{type:Object,required:!0}},setup(e){const t=i.computed(()=>{const f=e.content.toolCalls;return!f||f.length===0?!0:f.every(En)}),n=i.computed(()=>t.value?`共调用 ${e.content.totalCount??e.content.toolCalls.length} 个工具`:"正在调用工具"),u=i.ref(!t.value),o=()=>{u.value=!u.value};i.watch(t,f=>{f&&(u.value=!1)});const r=f=>{En(f)&&(f._expanded=!f._expanded)},a=f=>{const c=En(f),h=f.success===!1;return{"f-chat-tool-use-batch-item":!0,"is-done":c&&!h,"is-error":h,"is-run":!c&&!h}},s=f=>{const c=En(f);return f.success===!1?"执行失败":c?"执行成功":"调用中"},l=f=>{const c=En(f),h=f.success===!1;return c||h?"Done":"Working"},d=f=>f.toolDescription?f.toolDescription:f.command?`{ command: ${f.command} }`:f.toolName??"tool";return()=>i.createVNode("div",{class:"f-chat-tool-use-batch"},[i.createVNode("div",{class:"f-chat-tool-use-batch-header",onClick:o},[i.createVNode("span",{class:"f-chat-tool-use-batch-title"},[n.value]),i.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:u.value?"rotate(-90deg)":"rotate(90deg)",transition:"transform 0.2s ease"}},null)]),u.value&&i.createVNode("div",{class:"f-chat-tool-use-batch-body"},[e.content.toolCalls.map(f=>{const c=En(f),h=f.success===!1,m=c||h,p=!!f._expanded;return i.createVNode("div",{class:a(f)},[i.createVNode("div",{class:"f-chat-tool-use-batch-item-header",onClick:()=>r(f)},[i.createVNode("i",{class:"fx-icon fx-icon-thinking_tool"},null),i.createVNode("span",{class:"f-chat-tool-use-batch-item-text"},[d(f)]),i.createVNode("div",{class:"f-chat-tool-use-batch-item-status"},[i.createVNode(Kt,{status:l(f)},null),i.createVNode("span",null,[s(f)])]),m&&i.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:p?"rotate(-90deg)":"rotate(90deg)",transition:"transform 0.2s ease"}},null)]),p&&m&&i.createVNode("div",{class:"f-chat-tool-use-batch-item-result"},[f.errorMessage||f.result])])}),!t.value&&i.createVNode("div",{class:"f-chat-tool-use-batch-progress"},[i.createVNode("span",{class:"f-chat-tool-use-batch-progress-status"},[i.createVNode(Kt,{status:"Working"},null),i.createVNode("span",null,[i.createTextVNode("生成中…")])]),i.createVNode("span",{class:"f-chat-tool-use-batch-progress-text"},[i.createTextVNode("正在处理复杂任务")])])])])}});wr.install=e=>{e.component(wr.name,wr)};const yl={icon:[String,Object],title:[String,Object],description:[String,Object],customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},vr=i.defineComponent({name:"FXWelcome",props:yl,emits:[],setup(e,t){const n=i.computed(()=>{const a={"fx-welcome":!0};return!e.description&&(e.icon||t.slots.icon)&&(a["fx-welcome--no-description"]=!0),ye(a,e.customClass)}),u=i.computed(()=>Ae({},e.customStyle));function o(){var a,s;return t.slots.icon?t.slots.icon():e.icon?i.createVNode("div",{class:["fx-welcome--icon",(a=e.classNames)==null?void 0:a.icon],style:(s=e.styles)==null?void 0:s.icon},[Ir(e.icon)]):null}function r(){var a,s,l,d,f,c;return t.slots.content?i.createVNode("div",{class:"fx-welcome--content"},[t.slots.content()]):(e.title||e.description)&&i.createVNode("div",{class:["fx-welcome--content",(a=e.classNames)==null?void 0:a.content],style:(s=e.styles)==null?void 0:s.content},[e.title&&i.createVNode("h4",{class:["fx-welcome--title",(l=e.classNames)==null?void 0:l.title],style:(d=e.styles)==null?void 0:d.title},[e.title]),e.description&&i.createVNode("p",{class:["fx-welcome--description",(f=e.classNames)==null?void 0:f.description],style:(c=e.styles)==null?void 0:c.description},[e.description])])}return()=>i.createVNode("div",{class:n.value,style:u.value},[o(),r()])}});vr.install=e=>{e.component(vr.name,vr)};const xl={content:{type:Object,required:!0},onOpen:{type:Function}},S2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAHHUlEQVRYCV2XSY8VVRTHT9UbgAbpZpSmaRNMxIiGqZVEE1csXBoNboyJ23ahfgI/gQuXdiRx6UY2utKNEUJjQLrBEEwUmQcBBZuphzdU+fufc+tVw61Xde894/+ce+6tepml9uKhpYMbVpWTuWUTpZUjQc7oSnvUMZvvVZJO8om4ZjzLUmK2bqVZO4g+r3hLfbMHi5plc1lZztBPnftkxeGkbfbCocUvW5lNrl+ZYQdLaurCv3UKs7mlNIHuo9RXsqJtHuKZwFRmxH+4ZLbYq3mS5Z76/dOVH2WKvCjLb1e3zHQPHEszIZDNfxY0AyAT9QNHSaoJaf0KV4qHApAcBu8+NisqwBUdO3mevZcT8aRE27mEaamLCdJShEaGknM4QkQLIJqbrWgsUwy2M3osnYtDS2qDQVlkkwDIJjKYrUbSSp0bDy96ugPJeYbUsyyRjbDXwpK31HkkjDusv5rsPa1PPUzkWBlpKX+VosKleS1Aq6IcOAgmWUkQkaFwo/jcRpUJJvy6/WR7kDU37/oEMNLUtC30lV64dilhKVg8sdo5DxeLQlX0mqs1PbQYV8Qq3Uu90Bc3xJQJKYZ+U327kdREdyDuWTpJSfzMmoDo9pNBtxFG2hSvU0WTjowUhXVZfzmVyQoGBe9zZU3UZo5RGXaypBEYbhf24SvaEj617/7s2/UH1AF8AnLi2zsatnNTwwvrxv3CfryoonAVr43NQ2bv7GxaL9XAVyd7NqedpKVzN3gEQ9NT63pQPd2lPUDwrecbNsK5oHZ3vrBvzvasJbTaT4D8eH/TxoeZ0249KuyH84vExCWriOwfy+yDPb7C9t98aZ//zGkmvtTpXZNxrvRHktTDJJBOr7AT1+ujb9dmEobjFtpav7E15cC5dLasyW3rMwGs7PdN9+4tAU786Su9VEsR0OA5AKB1KQO5ouuQ56MoVW3Xs9osIGNdm1lhb4zXxiuZfTgs4Eu/pN896pE5e/qibAUddjT5ZMRhVM1FEDdj7wLgcjcYPIdX5rZ9GK6ywAHw+rbaeCU0sbVBlqIOtpCh0bU1yGMXOp45mfcdIDcOREuBjjAEDp4g61I4tx4WduleqiD4SmlZ9NnvAHgu1vbOoz4vGQzQ9o5BA0Ch9C+L/o87Pfv3Md7k3CXlI40JKGAO0s82S4Ake/yqCieajGoZdmzMbf1QqJ240rHZ6yGzcXVu4yMqw9J2bw2A0jx2kUwqWhWnOr986I9YgbQeEuz1ZZwbUEcu1XWwZ1QRlvbqWJ3+GQCeWgZyAl7J8u1dDuACAOScZKrO/ABTLgSKGwC6YqIt5Gc3DI1PXusBSJK8atc0bHSN2Wvb4nwQ7QzRz16rs7RvrGV8U9j4ugC50C3tFDbcg0DoR68dJefymwsRP5+oDNmBPGGBdr6b2ZmbdRYmWOc9Kbq/H/TZ/yV1Utg9zgm1feMt27etTv+vV7opo7XNquZcAb9UVjhX3wWxg0lIxTl+uY7w/b1DNpROLqVeQHVVWRhZldu7u/ksSu0Y6dfBIzeKVnc0tETnTjUgchYFqFRVRQntiIoote0b6uh+IzNZpnrJbOZaLbNrrF2J2zS6pVLuzlSegktTlDQth2dASETUue08pPKcfU1/7nZh99NWc630OI1TmROIGVL9dLt5v28X7xbhEpnMqw2n4RtH/HwbOkHVqTddSpYy4Kigo3ziKQe3fP0jAmXgBi+qOw/rM0NgpnX4EF8u57KmMlnmXDTdsaHhqPgcFUjE0DJ4wlCavvRkhLMpeqm7AxRmrz4pc+yvqP5Iu1ty+/WRH/4Gi9qJ49oRxfkkRJHin8537aVN8yknZkdVXIqM24mA/v7skt3m9PQlRPMXP0NYRkWttcSWotWu8wD9yfjNrxcpfT67F7QFGegnJQlyFyoMjuC1rYLXcbWmGMvBrtczsnoH9Fk/vbZDGX6G80YTG7hLYONLCNtq0qPzLyJN9KXjRMlzDT65VMU40odIW2PdHgtPjDtYKN0Sh7p8UWWau3IufxLk58lQclPzJdCHI6aCJDlFL0nGWmMZ0orm+nil8T5yUHKifVzC71JleUObCl1fPRWfLtfwPsemA5ENLo35GsvmOl3+isk/tytorObRIshC9gs49J5SMIXhJEYX7xCVpYxINkkQQGw3mYc38KFKy+aajzvlDP/dDohRmYtsYACEypybwuC8/z2rnBMDNEXBHwzeU8qaeCkLFUTqSvpuQw4qP7KbZTPNhW42hZEDtQAcF4peS6qzQEgW2CmSEyjRfUDnDlLE4g3cMXaenjDE03yQhaycyuNfag6IYIivFoppDFMOdWvt3HmScbDUgLab7louOUOuXvfQh6RsTZ3+bMVhByTCy18sHWStJim6Cb7t+LSgCRRNY0c/mEfqB5HIeSWjkUcjAjetskX9zFFPM3nWxHnT/57/Dzj0fqfCZcLZAAAAAElFTkSuQmCC",F2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAHeklEQVRYCV1XW2hcVRTd985MZjKxNaVa6cNqnwbaftSIiuiPilh8NC2tWh+lXyFFbMEKgvgABQUfIGoxWqGioFLjR0GQlqooGhptjNU+9EPaarT2IUySZt73Xtfa+5w7o3dyc885+5y91l57nzN3AnHXjoOPbJAgGEhEegNJugUNCURqzbrUk5ok6GcklK6OLrTRwc2PxPhLYkniCAswEqPtbXiWGxekEdUkxniQSCmReDSO4sGP+vYPERoQIjtGtr2JRQOB9tQ3Rh0DPMvNCnAi6cwUJROEBk4QvQluoCkBR6QR1UFgqkVYiWKufmRwT9+BrYFFLh/Dl7sSCAEN0PeEIgA044bkM3mNlkYFR9R8sq8qEIB9AMRRU6brUxiPNHol5whwfsK2yMYsZaeRYFzrwVM6GMuEoYRBBxxRZkgOQubEOeJCOFQHrl1uTEsEcKpDGwFjZ0sVC5KBLJb26kJkw0iADDPjCBHQR8n1BgRnKQknqToHIZCsRVWJoJgBeQJGUpXD3ITkEunN4n93GjXm+LaVAxGJadIyCq5ScOaRkVFIgpMQKoWSVxtlDBkZGHW+X6trdK6u6876PPsU0F+rzdwagDkkCPueEOGtr+BwPF2fNGKOnE8BSbZI2BrWTbaOSs2FHQwUFwzUni0YdRGj54dPFxX7nGVzGLXZKoi8qYWJPqNsA9X6cX3vm4Fka0ogp9ITnCBRxEi53smNZ7sz2ii1H0tirEHO682qI0pCppbVSosMx9vVRBHGUsE+78wWzaGqwJRiEe55nfPkmjnX6SICY5J8PX5AzpfPKohGipytWbROsmGWZp0zdnpEfj47iq4D5w6iAvyoShYUVgQ4YiLRVAQZBdK8AzyKIvlzelw2dW+WK2Yuome9rpy5WF75/llETZKR3L74bll/1f3eLGenT8ueI7uVIGX2kht4q88gQxYcG9VmGYBNnUyGXrqo2ZBdP+3E1qqlAMtm9cjNl6/Rw+ay4nxZu3xTaouw9tXh5+wQgl+Cp4cUI9fbpxYEfJW2y8IcKXMewHBwhhEdfz8FYWPd8vtkftdC6V+93aR31qFj78nRc2P/CcQK2MhYDaCt5BIJWZ0EzId5rWztY4ys/RaERvLlqX3y45lDKYlcJidP3Pi8LLy4lZpfzx+VDw7vgjIOQKNFmjTvLVAGS5/ECgkeJgG+6Zh/xxILtJpgCzDGYuS8d8bekMnaREqikC2kbW7Bl755CqSbEoSabdvRDIRE6Bt+VFn4sjawYZECvmQ8S/Y9EQPGInyPkvFktSS7Dr2WgrY33v1hp/w9OY61zjlJo4ipJH16EnySBGtMFcjzENIgwRIfLgiwgOAKrG0qgWrF3+Ez3+kWbAevN2sy9teIFN1W1mCcigyGvnxQJOjJkBh2bgagzAmJsvgYgZfMnvSFI0od9fVskkuKc9rxpSObl4FrH8O7QgZf2QyIcy16KzZ3BpCI+jaVVQGViOCMmEbIZiTIGo5oY8GgvWTWUlnbc6+O/f/f1fOvl1uX3ikdIMBvU42camqxEdj8+XEM6BwtQisIG9A0YDKJ8YiNQYj2HKLr730U7waZFPuXc0fSNhsPrt4qc7sW4FTt1DXMsx5Wqir90RdTwDYCxjiK0Bvw9G08qbgu0OgjuWfFFpk7Y0EKOD5xUp7et10OnvoqHctjVzx8w5OSxSefMRIE0mDgp1UHLEDe3IZkQpH5guBYKUP0yZ57evmsFXLLojtSIJ52r3/7Aux1eevgi7o7vHHJ7B5Zv2oLDqdc6/0R872SFqRhtilgcnh5aCAJFAW2aEGl54uKv/Ye+1B+++e4vjdM1Ery9sjL3qTPvpUPybLZK/UlNuGhxBTwo8q2lLYiZJQuN5zAYgO8Rs7FD6zql9nFS1OAP0onZM/h3Qoe4HzAmSPDJ76Q4ZOfp3NYJ9tuekby2JYF1gP9Akefrqb8jgv6P9tIRDUaAccwSvANWZOpyoQrSCuoAo7sPLYd1eFrCXeN5pkAmmcd1fcL3boYLVcnpR5XsYS+tbjUJzqsAZOG4HYrG2VcqV/AcvQ5B855LNci/EaIcdziYGKfKoAHLvpBm/N5saboE6CdObxrtOF4NWjHNvTA/mkHSLU5bUB0CBBGg7dzfdJG7fXEZBSwaTpABFMwh/WDC6A6B/bOnP2i8niMXmsAVEu6AxxbRtHAz7Ea3pL0Ql8dgoeXL4ICjUYFbkmOMXOOkSMRlR6RS2BBMWK+LeWwM/wpS3CsKVGBUVBRqQgQoF3B7zl1C1IwENkiJKDesf7mM5uzY1yjZ0qUNJ7wpWeAC66AoiRRrmNqiB1i+SCBLToUDPIeRw2VR5VROWF3zuAVTi2/F/DVzHGO8dYi1G1nwPY+YQQJyruYnQHfNoayHgx337V3CO4H6YhvtTW+2TICd3MRZfMONDrY2G9ilzSQKhajRqSOPSB9WFvzToLo82ceT0w4GBx+vDKkiqAnmz+5bcNUtTSQxM1enIDduih1QAUYNZWCU8SaAqJ3UcdMyI9KgTLMkNrcXKpC0owatVGCj1HUyeCn237Xn+f/Avavy/P8wtVMAAAAAElFTkSuQmCC",D2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAGCklEQVRYCYVXPY8cRRCtnt29s/EhW0KAEAkxmXUBIkBkRERwdoqFHNiW/AMwPwCJECTYEDKEnYJk4+ASIwQ6WSIjwJKNQBjO8t6Xb3dvZ5r3XlXPjIzX7rub7qmuqvfqo3v3ksXIH53fsJQvmOV1y3aqyJ8055x74sZyAys8EqS+hX2pcC9b3t6xPD/i/gSPrWxpvPrNjWt0QhvLV85/CU2AP3sQXEDmwEIiXkuKLw4sb5DnBgz/nWju9NL42Lc3LyZFbs3VZ0O7RusATrnmj0ceURMMg3JfYEVC+4dme4ctUe5Xls4MlfbQdYvHnnQ4m4N9KKVkmYiDyqzCX+C6VYArG65PcI3jq5Z3D7QsQYDEhSE8rLvGkudRbfZwDzwZSZAo69WR2ck1EAlbYLU6EAmcMrIk8dHAjP60R3+2XmHvqQ1XlBuC8ifA4Q+ZObL8cBcLuGGz4afoQ63LGl+wn4aM131I0fIpSJ42oNws6KmtMyEEVRzNa8vTmVUrgyBHfwhbme+DwY6s3YF7gY+lBErtqM9RIpQ8hCUbNkePDFHjICp96DBJjNgnMKoSEiFmkvHxRAKljllHDdGfPWeDd8+0RssWeTbFmf/b6p82rdn8TuDMVhKZx7LBkoBhaR/5FDAYo10QMY5O3VgNxoXQMuAiT6vHrHr1NRu9f85GF68QGqWAPQJp2CN1NKCOqhP6XwZ0aZAAvCpbWLAB0b/taHYnciwBw1AoONUnnsdSibfB66dt8cbb1vx40xKzTjHLESWhLUsmAoxQ+2DmelQEa8gpqXjme2Pn40uWD3CrjnAMkV8RxX56bs1OfHDZVk6/Ke3hW+/Y9NYPOsIJfhrcJ06A0bvD1rNH3kPhkjwGoLQCoP7ApZJWcIeJrQensu3v2v7Xn7Wa1YuvWLPAKSEYH0cLTA7u5UYPtHWRGSJGOK5EdNaMNaSH/tA1ipgSSoM/MEEBRCjv7VhzsOfKo5Wwhd99NGiEzblk2nuATUFmBBJWmXHBoBFd1hEgGOOuAMwf/ja4L3hbVmtrVqEXOOr7f8q0gY90iM+CdngW6HjoeHp2QCwqu5YdHKxbWy38pCR8KPiJAYfB0KqXXrbjGx+2qvOtW/CJXto9tLRoeA20/tyvLiIHLxdPP1rGKVbBr3g++elXZbl0rrfv2+x7fOTvPrJqhtuU4KHdD2qo1DPKsqvLhykqvcAz1G4uBexvzH/9xfa++MTyPw+swtnnFayysczhqs1Ax4ZpB1TR6Hnswy/u/W6HiEwnAGWKFpBdgzov7t2x+u5ddPxR15xQA7TK1XMrG2SgE1GJgyTaDOAY0VkZ9YNtm25e14VT0XGDCNnEPG6oM4n51VuuWQBTCJ+8V9Q1ESTXOAVINSPhoMPY1CvXIoAalkGwR1O9hTvZUVChy0icgH5SQEbY1ORgy/pwHJ4C+HNWWGBQsdGxxCLI9DhRRTo8+z4IFsThvUp4Q0CciOZazChe9FUqdMN6qGMUtHQSxIMGodEu/J0OSdhnX+s6jjRTKzETEWubXVhQ1hGCInwPWRfX7ZWCXiR3Im5EIQbUieWXkIv4ZN0LZ+nrhZBcADxwhNeZoQek6OmXPIBdB67guf7rD5vf/lmixZ3fPAr2Db+UoocIXgaBCihTTncdtaIIDd+wNL981lUk6BQadXe2xXRuNb731XErVgBNAGfDMQuBIIziVJBsLrgrMp/df5FxH1dxVxdFQSLBjjPTqT+ACZDvWFOmjpfPSLFkFEiIp8/+HutuW/b0OSmMSsNo1tEEKCJlivmFpCIhrKt+zltQEnIQzvKh1y7dkjMzpObBTfBxl7dEVMa8fl2BEYo5P8kierJl1RU/HQDAQQsIEZ0ErQuQXIe4aIiMpS1WdOyKYYLInSkB4mZzNnINDkSNElBXOP7AmpEX+5IFN4GcWQ0dylLK42r4+dVriHBs0XSQx5CKrwXooCFwYL3AMeYCGiJXgwvulqwK3bWZxvELN25fI4rG7NJ7G/jywf+Q13Ou9d+SosHnQDPZb69rAtFIgHSmX1JwmfaYBRdQypX0sTfB2xayKHDK/wNolX2UI+Wo7QAAAABJRU5ErkJggg==",wl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAGLUlEQVRYCW1XTY9UVRCt19M9MwyiAxojRI1REImJRAfQhcSVGmJINMG9G5LRH+DOxJ0JP0BnpYlbMCYqGBciJmqIZiAsSARUUDQoYGjmo2emP97znFNVr3vUm+n76ladqjpV9973oLAYcyf6hwZlOVtVNmNWTVcQDH9lPLnGcr1Oa9cTRoD8KEoerstS3m1g5pe71dw7h6eP0b3g9O7x7ntwnKUsR4AzoQIymGzUU/DAFDlS53Il0qlTnABSJpHOGnzKau7IG1teL7zywVE6OJjoQnIGB1gEmEk4JQ0yAqWvP9PPn8DV/obkpQ1K4pClarzaZNs9OuEcnlyVY1UBzDEk586upUF/9ZJCFkM5Wi9df1B58iRkg9kmwDNKFoFSromMZmBzMPRYR4w6D+BEA5d4PJHTVteEkr/jihkQKKcVFEwC7wePieg10pG0J5BrVsuhp+SR7ZO/GStfQXKC3IczcDjszdpZQQiihlgXSu5BqKXhxDWDSRHY/9Ex/1qvtH5fIT00fWpsZc0S7KTjlEMALGSIR9hFbAQ7gD8H9byyVVVgnyskxY+x0y+6kddaPpianS69PcmGcQ9UHzw3iQcdkhDFPFxsrcf2ZNhSkTEQ4chO1nLk8u0FgayITFOJ7amvTlbAUlLO5PLRNPLCUtqiPkfJ3rsjY52Hrs2sHuFlzRZxlQmFcXOty+SRX77ug7nGupBFEkQ5zJKbXGTlmXy8ZfbwVp3PCJbtrez6rYHduxm84fjz731bXoGAxe5HWtr728ulbb6jIUI5sWM9HMRzP63VuZI43wNiNMpy01RhLz09kf7rnp9+t2J7do7b1rvHbP5C1z76umP7do3by/un7OT8ij32YMtmdv7Xd7FT2rlLIMBo4kypwBmI0yklbdAvLFV2/PSq5AP7JmxsrLCvzq4Zg1y93reb7YG9dmCjPbmjZafPN+z5PZN2a3FgX55ZtW1bxuzCr13b8UDL9u6atD9u9O3UmRXr4lZkh1UscnGNLXAm2ps4uWs9s/NXBqL64l4QgHTxas/+XvDXX3uxtLOXevbUo+N2+OAmG28VdvTzRet2K7v8Z99+uVbZxHgBAmbtpdJ++JFfH4XD5KKvK2uocnSh0tF3q5PxL5c8wond4X4y1klUxXvO5Feu9ez85R46Bgv/COCPI3R8oaW/Y/xcNWpsbIWS00/ew0lBY8lte+i+pjWxNRzb7mnaXTg3HCLBp1Y+1cRCqyIC0BDBTB6OTKDfaBTaAKa+iQvywt4NuAGlXfitqy4cfHZK4enivu6stdjzGxHvi4hFIg2COTJ4rl0nkybZASV6/xOTdufGhrbh41PL2ord2yds+zZcz4g39GRsj18zDCNj6sIqOJR8cngy7pGvQ6n1lk0Ne+bxCfsL74MzF7t2Ewfzm3Orgrzy3EYrsBN52t1P80jMOEcKzWuIJEoUCrYlB/Wf4d4z6GIHOBhaOHSffNuxazd6/j2A8ovvO7pu9JvCK2CxY9iann14YsFuLQ08OWxej8fPPMVb7y9Iw9ZNTfo+8YPCl0SCRBLp64aIpH/3l/Bu4A0qS7+iDJbb4P6O80JhHLEzXvx7wFkNQXCKTnhyuqENwcAZx+cXFrWcJGjHj3aHZnL6pw7PkBm76Szp6AB3pByB5Ip1EsKTATTok2v5cwoTA6UOqnXdFMavLTrgrfWlV5nJGYryuqAef0hIoBoiaJJ1/3BAhxRXb1vkxJZx6/xjFExjG+EBMEP9K7nI0FZXTfL8ZXCW5qW4PgqAVqE4YYx2Qy8iad2mgOTGEXjpXB5JBMjwuolu+DipoT99kojLDnRdA1esTUZM6RX6s24jnWFXQ4gbxbJy+KkiCIpDaMh08k5QiT/4JibIt/EmtPkaSBKkpwkPRNJHRCpXpt3JMoHDk3ztzK2iDVONYWwO6fEoivkGPmhzDgybql3PXD5wykoVFEpWUXeHQairq/QYo8Xw4HGt6oEtkLtxZBb/SxWJCAaDQmmKKpJU2JTL80HjeOpEUBrows6Htg2C5HSwau6Dt+8/5kcWyjfn2oemWgP8D7kxMygH00QziLd25E3HKBiqHvIy3oTkJ10IddsVIBK73AZ0vrBCyenzD7OyHHaTkJSSAAAAAElFTkSuQmCC",T2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAGkElEQVRYCZVXS2udRRh+Z+Y7zTFtk5iml7S1XpBW3HhJdVER0YUKikhtRNCFF5TYheLWjX/AlRuzcOnO/AXXIpiFG0URoUWq0KJpLb2eb8bned6ZcxLaCP1O5szMe33ey8z5Eqw+5czyKSt5Bdsli3vnRB6dB+k6lgV/2SVLsYJ1IE108pw23jf6plk6pWyEYOuhhNXwyPdrNBj4Vc689qXlQudm3QGoJS2t9GbX/8B6hOEgCpzROeexQ4EjHRTSsZ/IEXjjYV31ILuaHl3/MHjk/TdEaHEPxvTYkBzlq2Y3zrkzOWD0XNBJM+h7OmqOmyPOkmsgMvRDDaDYcoShFQqFMJRz2a4oIYbtFOgzQq40ykmLUNL0zoVkVJrmtM4OGNbgXCAzs0SdvBLxtUTDJd1dIyPD0+xC2HezKFa0QKXxqBmAtNEwsyFwVR9eW5kcOAWd53KSX4pANRfibjA7qgMEnXiEboB6oIYZ8R0A00iDeOi4OQM4lY00Aa3louaY5mup5zIXA1WQYndMJlHSMI1x8shCYhlEqWwH6ptJXb0Hqh6BKTuTyEGRXdqn7a6EnbCBVqiIZZBfAjJRFKw0a2V0ofJcxh1WueGDFhc/RtvcZ+HKT5bPfV5PEfjVXusDZQBgOjUYFkSmR7ItddUJJqWWWRj9gx2OpTLjdOmCF+//wkLnV4jNPm1xeK/1Py+jd27QEP5q9DLrPtBZ6MPKbChZ32JMPUd1rgzBCPulloV8zxzoO5+YOJcW9KaOmO1+EjtPdyvn5pm5B5+jatE4hqoNWpATp8EM+mWXDMpoPVa+ZpS3PgH3inULEJnUXmv6Aw3h07l2mDxiORKtRegArFu0MjyGXpweN1cDGP79zsqNP7cgKFd+Mbv2O474rLJD+5ujp++uaZChk1AJbhhQMq5jgCmocTr8KUpwl+WzV61c/FZZyrhUvD+GuNI/s7BwysKOQ1au/WblwtrYoXV7LfTXcLtfZujj0bErme7mvNWUWfBaUzxb3PeuhcT7ArIHTlu+hIjzZb+cEk4SLjLrL1r56ysWzUEBuHe727DBfrQNrvZ8E1Y8814CbPSppWjN5bTeytRRi7sel3N+xanDFuZfrWWAicE+2GuAGRBLWTPK7OkukCb6ASAkWwGo2SRMAUfejJUesUA5LbxB5pYnLryOfbIyWJA4v5Q90FgW+sjQLfhFVXZrf/HHjld76wdlwDveETnD1wSk6KePbnHOTZxaNNtzEg05lKPMIA68b/HY1xbnXxTNywobygiUiIo2cSpCGKg8AtDq3hQQNl4PMNCAac8r9HfbJy2chBxKhBH3v2Np/gVcKwNLix9Y2H3CecyCDhe/HEzARVMGe5WFSOfNMaPPPVFSFgqoV9z1mO9v852QmTL1gIWZpwD05S0S3eGPoI9jiw9tFf4EMxPVfEi4T9DUuoi8duRUMIicYOL880hV6+Mt9sebwf43bXDo9HjfFiENLR35pDomDHwULPGwN1CyHQhQkFgbDU5g6tNZmn2m2dt27maO43jyB+3WJ+18GC9ZL7kzOpSIl4L+GK5fxUI3YbCucebEtoZvdbU9pTv4tmVcYq2nVIoGBnHXDPAi4rHBrRdYJ9zRc89tb/UOOMxOd/A9aHhe+T6oNTMOmpqQDjWUCQji7k7TD92Bm/8XTeilsuMgfKC8uFvgRs656ASoOm73QRldsv7SDxaG90DQz8ikFblqg4aIna/tfJw+6dsql684T3XHEgBcBl0w+vUtvWixRkKI+rMU/egm5lE957xKUB798NChQnBL1OOzmcaoMhoM/nmKYoy4H/HyVyLWLi4A0MGbKH8YIKgLhYrsVl6faETPFZigwU+gRUWhN0kH4imEBYJinWkLkYHOtTsmSOjw5cfFuIU+3gnj9bMb6Po5Jlo/GrwsACJiUDoydtRtQIN0LjpYtERjmimLlcCTyHPODtcLBznIBkBRBU5rHORvENI6BciQIISYnqj3ZUaDCw1rvLspmoQoEgT4z1uCnA9Pd4IcR4QMdSjHwLCUHdpX6jETJIjrAFZWBZdMDAFhrZlGiFGZhqIG1jLMmUB0jjXzzabTnv9ZMnK3x5rTTguyZZq0kPNq5H+psA0QkgFCjwaT0FJwclVj0wSZ47bGTOBbmhNcOVYw7CsPSCo0A5/ds3+vSYb78uPxU31/cwUAlnLf490aDqqThppyPClthltlajyD54C9nNKvNggQvA3Q1lFOOD+/Rjv/AYfYvIrlGomFAAAAAElFTkSuQmCC",Ar=i.defineComponent({name:"FChatAttachmentPreview",props:xl,emits:[],setup(e){function t(s){switch(s.toLowerCase()){case"doc":case"docx":return S2;case"xlsx":case"xls":return F2;case"ppt":case"mobi":return D2;case"txt":return wl;case"png":case"jpg":case"jpeg":case"gif":return T2;default:return wl}}function n(s){return s.icon?s.icon:t(s.type||"")}function u(s){if(s===0)return"0 B";const l=1024,d=["B","KB","MB","GB"],f=Math.floor(Math.log(s)/Math.log(l));return parseFloat((s/Math.pow(l,f)).toFixed(2))+" "+d[f]}async function o(s){var l;(l=e.onOpen)==null||l.call(e,s)}async function r(s,l){s.stopPropagation(),s.preventDefault();const d=ln(l);d&&await Lr(d,l.name)}function a(s,l){const d=u(s.size||0),f=n(s),c=ln(s);return i.createVNode("div",{key:l,class:"f-chat-attachment-preview-card"},[i.createVNode("div",{class:"f-chat-attachment-preview-card-inner"},[i.createVNode("div",{class:"f-chat-attachment-preview-main",role:"button",tabindex:0,onClick:()=>o(s),onKeydown:h=>h.key==="Enter"&&o(s)},[i.createVNode("div",{class:"f-chat-attachment-preview-icon-wrapper"},[i.createVNode("img",{src:f,alt:""},null)]),i.createVNode("div",{class:"f-chat-attachment-preview-info"},[i.createVNode("div",{class:"f-chat-attachment-preview-name",title:s.name},[s.name]),i.createVNode("div",{class:"f-chat-attachment-preview-meta"},[d&&i.createVNode("span",null,[d])])])]),c?i.createVNode("button",{type:"button",class:"f-chat-attachment-preview-download-btn","aria-label":"下载附件",title:"下载",onClick:h=>r(h,s)},[i.createVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[i.createVNode("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4","stroke-linecap":"round","stroke-linejoin":"round"},null),i.createVNode("polyline",{points:"7 10 12 15 17 10","stroke-linecap":"round","stroke-linejoin":"round"},null),i.createVNode("line",{x1:"12",y1:"15",x2:"12",y2:"3","stroke-linecap":"round","stroke-linejoin":"round"},null)])]):null])])}return()=>{const s=e.content;if(!s)return null;const{message:l,attachments:d}=s;return i.createVNode("div",{class:"f-chat-attachment-preview"},[l&&i.createVNode("div",{class:"f-chat-attachment-preview-message"},[l]),i.createVNode("div",{class:"f-chat-attachment-preview-list"},[d.map((f,c)=>a(f,c))])])}}});Ar.install=e=>{e.component(Ar.name,Ar)},xn.install=e=>{e.component(xn.name,xn)},wn.install=e=>{e.component(wn.name,wn)};const vl={activeNavId:{type:String,default:""},displayField:{type:String,default:"text"},disableField:{type:String,default:"disable"},horizontal:{type:Boolean,default:!0},idField:{type:String,default:"id"},maxNum:{type:Number,default:99},navData:{type:Array,default:()=>[]},navPicking:{type:Function,default:null},valueField:{type:String,default:"num"},visible:{type:Boolean,default:!0},customClass:{type:String,default:""},customStyle:{type:String,default:""}},kr=i.defineComponent({name:"FXNav",props:vl,emits:["nav","update:activeNavId"],setup(e,t){const n=i.ref(e.activeNavId),u=i.ref(e.navData);function o(f){if(u.value&&u.value.length){let c=u.value.find(h=>h[e.idField]===f&&h[e.disableField]!==!0);c||(c=u.value.find(h=>h[e.disableField]!==!0)),c&&n.value!==c.id&&(n.value=c.id,t.emit("nav",c))}}i.watch([()=>e.activeNavId,()=>e.navData],([f,c])=>{u.value=c,o(f)});const r=i.computed(()=>e.visible&&u.value.length>0);function a(f){f.disable||f.id===n.value||Promise.resolve().then(()=>{const c=e.navPicking;return c&&typeof c=="function"?c(f):!0}).then(c=>{let h=!0;typeof c=="object"?c.canContinue||(h=!1,c.message&&console.error({message:c.message,position:"top-center"})):h=c,h&&(n.value=f.id,t.emit("update:activeNavId",f.id),t.emit("nav",f))})}const s=i.computed(()=>{const f={"farris-nav":!0,"farris-nav-vertical":!e.horizontal};return ye(f,e.customClass)}),l=i.computed(()=>Ae({},e.customStyle));function d(f){u.value=f,o(n.value)}return t.expose({updateNavData:d}),()=>{var f;return r.value&&i.createVNode("div",{class:s.value,style:l.value},[(f=u.value)==null?void 0:f.map(c=>i.createVNode("div",{class:["farris-nav-item",{active:c[e.idField]===n.value},{disabled:c[e.disableField]}],onClick:()=>a(c)},[i.createVNode("div",{class:"farris-nav-item-link pt-3"},[i.createVNode("span",{class:"farris-nav-item-link-text"},[typeof c[e.displayField]=="function"?c[e.displayField]():c[e.displayField],c[e.valueField]&&i.createVNode("div",{class:"farris-nav-item-tag"},[c[e.valueField]<=e.maxNum&&i.createVNode("span",{class:"tag-text"},[c[e.valueField]]),c[e.valueField]>e.maxNum&&i.createVNode("span",{class:"tag-text"},[e.maxNum,i.createTextVNode("+")])])]),i.createVNode("div",{class:"farris-nav-item-bottom-line"},null)])]))])}}});kr.install=e=>{e.component(kr.name,kr)};const Al={buttonContent:{type:String,default:'<i class="fx-icon fx-icon-search"></i>'},customClass:{type:String,default:""},modelValue:{type:String,default:""},popupHost:{type:Object},data:{type:Array,default:()=>[]},placeholder:{type:String,default:"请输入关键词"},idField:{type:String,default:"id"},textField:{type:String,default:"name"},maxHeight:{type:Number,default:350},loading:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},showDropdown:{type:Boolean,default:!0}},kl={data:{type:Array,default:()=>[]},onConfirmResult:{type:Function,default:void 0},onSearchedValue:{type:Function,default:void 0},idField:{type:String,default:"id"},textField:{type:String,default:"name"},maxHeight:{type:Number,default:350},loading:{type:Boolean,default:!1}},vu=i.defineComponent({name:"FXSearchBoxContainer",props:kl,emits:["confirmResult","searchedValue"],setup(e,t){const n=i.ref(e.data),u=i.ref(""),o=i.computed(()=>{if(!u.value)return n.value;const d=u.value.toLowerCase();return n.value.filter(f=>String(f[e.textField]??"").toLowerCase().includes(d))});function r(d){u.value=d}function a(d){t.emit("confirmResult",d[e.textField]),t.emit("searchedValue",[d])}function s(d){return t.slots.default?t.slots.default({item:d}):i.createVNode("span",null,[d[e.textField]])}const l=i.computed(()=>{const d={padding:"8px"};return e.maxHeight!==void 0&&e.maxHeight>0&&(d.maxHeight=`${e.maxHeight}px`),d});return i.watch(()=>e.data,d=>{d!==n.value&&(n.value=d)}),t.expose({search:r}),()=>i.createVNode("div",{class:"search-box-container f-utils-overflow-xhya position-relative",style:l.value},[e.loading&&i.createVNode("div",{class:"search-box-loading"},[i.createVNode("i",{class:"fx-icon fx-icon-bubble_step_loading fx-icon-spin"},null)]),i.createVNode("ul",{class:"search-box-list"},[o.value.map(d=>i.createVNode("li",{class:"search-box-item dropdown-item",key:d[e.idField],onClick:()=>a(d)},[s(d)])),!e.loading&&o.value.length===0&&i.createVNode("li",{class:"search-box-empty"},[i.createTextVNode("无匹配结果")])])])}}),Cr=i.defineComponent({name:"FXSearchBox",props:Al,emits:["update:modelValue","change","selectedValue","clickButton"],setup(e,t){const n=i.ref(),u=i.ref(),o=i.ref(),r=i.ref(e.modelValue),a=i.ref(!1),s='<i class="fx-icon fx-icon-clockwise fx-icon-spin"></i>',l=i.computed(()=>e.loading?s:e.buttonContent);i.watch(r,x=>{var k;(k=o.value)==null||k.search(x),t.emit("update:modelValue",x)}),i.watch(()=>e.modelValue,x=>{r.value=x});function d(x){r.value=x,p()}function f(x){const k=r.value;t.emit("change",x,{oldValue:k,newValue:x})}function c(x){t.emit("selectedValue",x)}function h(){t.emit("clickButton",{})}async function m(){var x;a.value=!0,await i.nextTick(),(x=u.value)==null||x.show(n.value)}function p(){var x;(x=u.value)==null||x.hide(),a.value=!1}function w(){a.value?p():m()}function y(x){const k=x.target.value;r.value=k,f(k),e.showDropdown&&k&&m()}function A(){e.showDropdown&&r.value&&m()}function b(){r.value="",t.emit("update:modelValue",""),p()}t.expose({togglePopup:w,hidePopup:p,showPopup:m});const g=i.computed(()=>{const x=ye({},e.customClass);return["f-search-box",{"f-search-box-disabled":e.disable},...typeof x=="string"?[x]:Array.isArray(x)?x:[]]});return()=>i.createVNode("div",{class:g.value},[i.createVNode("div",{class:"f-search-box-input-group",ref:n},[i.createVNode("input",{class:"f-search-box-input form-control",type:"text",placeholder:e.placeholder,value:r.value,disabled:e.disable,onInput:y,onFocus:A},null),r.value&&!e.disable&&i.createVNode("span",{class:"f-search-box-clear",onClick:b},[i.createVNode("i",{class:"fx-icon fx-icon-close"},null)]),i.createVNode("span",{class:"f-search-box-button",onClick:h,innerHTML:l.value},null)]),e.showDropdown&&i.createVNode(Qt,{ref:u,placement:"bottom-left",keepWidthWithReference:!0,showArrow:!1,fitContent:!0,limitContentBySpace:!0,host:e.popupHost},{default:()=>[i.createVNode(vu,{ref:o,data:e.data,idField:e.idField,textField:e.textField,onConfirmResult:d,onSearchedValue:x=>c(x),loading:e.loading,maxHeight:e.maxHeight},t.slots)]})])}});Cr.install=e=>{e.component(Cr.name,Cr),e.component(vu.name,vu)};const Qo={data:{type:Array,default:()=>[]},view:{type:String,default:"ContentView"},customClass:{type:String,default:""},itemClass:{type:[String,Function],default:""},idField:{type:String,default:"id"},textField:{type:String,default:"name"},titleField:{type:String,default:"name"},valueField:{type:String,default:"id"},group:{type:Object,default:void 0}};function N2(e){const t=i.ref([...e.data]),n=i.ref([]),u=i.ref(""),o=i.computed(()=>{var h;const c=e.group;return c!=null&&c.enable&&((h=c.groupFields)!=null&&h.length)?r(t.value,c):t.value.map((m,p)=>({type:0,data:m,originalIndex:p}))});function r(c,h){const m=[],p=h.groupFields[0],w=new Map;c.forEach(A=>{const b=String(A[p]??"");w.has(b)||w.set(b,[]),w.get(b).push(A)});let y=0;return w.forEach((A,b)=>{m.push({type:1,data:{[p]:b},groupField:p,groupValue:b,originalIndex:y++}),A.forEach(g=>{m.push({type:0,data:g,groupField:p,groupValue:b,originalIndex:y++})})}),m}function a(c){t.value=[...c],n.value=[],u.value=""}function s(c){u.value=c;const h=t.value.find(m=>m[e.idField]===c);h&&!n.value.includes(h)&&(n.value=[h])}function l(){n.value=[],u.value=""}function d(c){const h=n.value.indexOf(c);h>=0?n.value.splice(h,1):n.value=[c],u.value=c[e.idField]}function f(c){return n.value.includes(c)}return{data:t,visualData:o,selectedItems:n,activeItemId:u,updateDataSource:a,activeRowById:s,clearSelection:l,toggleSelection:d,isSelected:f}}const L2=i.defineComponent({name:"FXListViewItem",props:{...Qo,item:{type:Object,default:()=>({})},index:{type:Number,default:0},isActive:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1}},emits:["clickItem"],setup(e,t){const n=i.computed(()=>({"f-list-view-item":!0,"f-list-view-item-active":e.isActive}));return()=>i.createVNode("li",{class:[n.value,typeof e.itemClass=="function"?e.itemClass(e.item,e.index):e.itemClass],onClick:()=>t.emit("clickItem",e.item,e.index)},[t.slots.default?t.slots.default({item:e.item,index:e.index,selectedItem:e.isSelected?e.item:null}):i.createVNode("span",null,[e.item[e.textField]])])}}),I2=i.defineComponent({name:"FXListGroupItem",props:{groupData:{type:Object,default:()=>({})},groupField:{type:String,default:""},groupValue:{type:String,default:""},index:{type:Number,default:0}},setup(e,t){return()=>i.createVNode("li",{class:"f-list-view-group-item"},[t.slots.default?t.slots.default({item:e.groupData,index:e.index}):i.createVNode("div",{class:"f-list-view-group-header"},[i.createVNode("i",{class:"fx-icon f-accordion-expand"},null),i.createVNode("span",null,[e.groupValue])])])}}),_r=i.defineComponent({name:"FXListView",props:Qo,emits:["clickItem"],setup(e,t){const{visualData:n,activeItemId:u,updateDataSource:o,activeRowById:r,clearSelection:a,toggleSelection:s,isSelected:l}=N2({data:e.data,idField:e.idField,group:e.group}),d=i.computed(()=>ye({"f-list-view":!0},e.customClass));function f(c,h){s(c),t.emit("clickItem",c,h)}return t.expose({updateDataSource:o,activeRowById:r,clearSelection:a}),()=>i.createVNode("div",{class:d.value},[i.createVNode("div",{class:"f-list-view-content"},[i.createVNode("ul",{class:"f-listview-items"},[n.value.map((c,h)=>c.type===1?i.createVNode(I2,{key:`group_${c.groupValue}_${h}`,groupData:c.data,groupField:c.groupField,groupValue:c.groupValue,index:h},{default:t.slots.group}):i.createVNode(L2,{key:`${c.data[e.idField]}_${h}`,item:c.data,index:c.originalIndex,isActive:c.data[e.idField]===u.value,isSelected:l(c.data),itemClass:e.itemClass,textField:e.textField,onClickItem:f},{default:t.slots.content}))])])])}});_r.install=e=>{e.component(_r.name,_r)};const Au=i.defineComponent({name:"FXAgentThinkingMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content,n=t.streamStatus==="end"||t.streamStatus===void 0;return i.createVNode("details",{class:"f-ec-thinking",open:!0},[i.createVNode("summary",{class:"f-ec-thinking-summary"},[i.createTextVNode("思考过程"),n?null:i.createVNode("span",{class:"f-ec-thinking-badge"},[i.createTextVNode("进行中")])]),i.createVNode("div",{class:"f-ec-thinking-body"},[t.text]),t.sources&&t.sources.length>0?i.createVNode("ul",{class:"f-ec-thinking-sources"},[t.sources.map((u,o)=>i.createVNode("li",{key:o},[u]))]):null])}}});Au.install=e=>{e.component(Au.name,Au)};function O2(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function P2(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`#attachment:${encodeURIComponent(t)}`}function V2(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?{url:t}:{fileId:t}}const ku=i.defineComponent({name:"FXAttachmentFileMessage",props:{content:{type:Object,required:!0}},setup(e){const t=i.computed(()=>P2(e.content.media)),n=i.computed(()=>ln(V2(e.content.media)));async function u(o){o.preventDefault(),o.stopPropagation();const r=n.value;r&&await Lr(r,e.content.name)}return()=>{const o=!!n.value;return i.createVNode("div",{class:"f-ec-attach-row"},[i.createVNode("a",{class:"f-ec-attach f-ec-attach--stretch",href:t.value,target:"_blank",rel:"noopener noreferrer"},[i.createVNode("span",{class:"f-ec-attach-icon","aria-hidden":!0},[i.createTextVNode("📎")]),i.createVNode("span",{class:"f-ec-attach-body"},[i.createVNode("span",{class:"f-ec-attach-name"},[e.content.name]),i.createVNode("span",{class:"f-ec-attach-meta"},[i.createVNode("span",{class:"f-ec-attach-cat"},[e.content.category]),i.createVNode("span",{class:"f-ec-attach-size"},[O2(e.content.size)])])])]),o?i.createVNode("button",{type:"button",class:"f-ec-attach-download-btn","aria-label":"下载附件",title:"下载",onClick:u},[i.createVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[i.createVNode("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4","stroke-linecap":"round","stroke-linejoin":"round"},null),i.createVNode("polyline",{points:"7 10 12 15 17 10","stroke-linecap":"round","stroke-linejoin":"round"},null),i.createVNode("line",{x1:"12",y1:"15",x2:"12",y2:"3","stroke-linecap":"round","stroke-linejoin":"round"},null)])]):null])}}});ku.install=e=>{e.component(ku.name,ku)};const R2={0:"高",1:"中",2:"低"},Cu=i.defineComponent({name:"ErrorReminderMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content.errorLevel;return i.createVNode("div",{class:["f-ec-error",`f-ec-error--lvl-${t}`]},[i.createVNode("div",{class:"f-ec-error-head"},[i.createVNode("span",{class:"f-ec-error-badge"},[R2[t]]),i.createVNode("span",{class:"f-ec-error-label"},[i.createTextVNode("错误提醒")])]),i.createVNode("div",{class:"f-ec-error-text"},[e.content.errorText]),e.content.errorLink?i.createVNode("a",{class:"f-ec-error-link",href:e.content.errorLink,target:"_blank",rel:"noopener noreferrer"},[i.createTextVNode("查看详情")]):null])}}});Cu.install=e=>{e.component(Cu.name,Cu)};const Nt="__hitl_other__";function _u(e){const t=e??"text";return t==="text"||t==="select"||t==="multi_select"||t==="confirm"||t==="form"||t==="date"||t==="number"?t:"text"}const Eu=i.defineComponent({name:"FXHitlQuestion",props:{content:{type:Object,required:!0},disabled:{type:Boolean,default:!1},pinned:{type:Boolean,default:!1},pinnedWidth:{type:String,default:void 0},onSubmitAnswers:{type:Function,default:void 0}},setup(e){const t=i.ref(!1),n=i.ref(0),u=i.ref({}),o=i.ref({});function r(_){const N={},L={};for(const C of _){const P=_u(C.ui_type);if(P==="confirm")N[C.id]=C.default_value==="true"||C.default_value==="1";else if(P==="text"||P==="select")N[C.id]=C.default_value??"";else if(P==="multi_select")N[C.id]=C.default_value?JSON.parse(C.default_value):[];else if(P==="form"){const V={};if(Array.isArray(C.fields))for(const E of C.fields)V[E.name]=E.default_value??"";N[C.id]=V}else N[C.id]=C.default_value??"";L[C.id]={active:!1,text:""}}u.value=N,o.value=L,n.value=0}i.watch(()=>e.content.questions,_=>{Array.isArray(_)&&_.length&&r(_)},{immediate:!0});const a=i.computed(()=>e.content.questions.length),s=i.computed(()=>{const _=e.content.questions;if(_.length===0)return null;const N=Math.max(0,Math.min(n.value,_.length-1));return _[N]}),l=i.computed(()=>n.value<=0),d=i.computed(()=>n.value>=a.value-1);function f(){d.value||(n.value+=1)}function c(){l.value||(n.value-=1)}const h=i.computed(()=>{var _,N;if(t.value||e.disabled)return!1;for(const L of e.content.questions){const C=_u(L.ui_type),P=u.value[L.id];if(C==="text"&&(typeof P!="string"||P.trim()==="")||C==="select"&&(typeof P!="string"||P.trim()===""||P===Nt&&(((N=(_=o.value[L.id])==null?void 0:_.text)==null?void 0:N.trim())??"")==="")||C==="confirm"&&typeof P!="boolean"||C==="multi_select"&&(!Array.isArray(P)||P.length===0))return!1;if(C==="form"){const V=L.fields??[],E=P;for(const M of V)if(M.required){const R=E[M.name];if(typeof R!="string"||R.trim()==="")return!1}}if((C==="date"||C==="number")&&(typeof P!="string"||P.trim()===""))return!1}return!0});function m(_,N){u.value={...u.value,[_]:N}}function p(_,N){var L;N===Nt?(o.value={...o.value,[_.id]:{...o.value[_.id],active:!0,text:((L=o.value[_.id])==null?void 0:L.text)??""}},m(_.id,Nt)):(o.value={...o.value,[_.id]:{active:!1,text:""}},m(_.id,N))}function w(_,N){const L=u.value[_.id]??[];L.includes(N)?m(_.id,L.filter(C=>C!==N)):m(_.id,[...L,N])}function y(){var N,L,C;if(!h.value)return;const _=[];for(const P of e.content.questions){const V=_u(P.ui_type);let E=u.value[P.id];V==="select"&&E===Nt&&(E=((L=(N=o.value[P.id])==null?void 0:N.text)==null?void 0:L.trim())??""),V==="number"&&(E=Number(E)),_.push({id:P.id,answer:E})}t.value=!0,(C=e.onSubmitAnswers)==null||C.call(e,_)}function A(_,N,L){return i.createVNode("div",{class:"f-hitl-date-wrap"},[i.createVNode("input",{class:"f-hitl-input",type:"date",value:_,disabled:N,onInput:C=>L(C.target.value)},null)])}function b(_,N,L,C,P){const V=R=>{let $=Number(_)||0;$+=R,C!==void 0&&($=Math.max(C,$)),P!==void 0&&($=Math.min(P,$)),L(String($))},E=P!==void 0&&Number(_||0)>=P,M=C!==void 0&&Number(_||0)<=C;return i.createVNode("div",{class:"f-hitl-num-wrap"},[i.createVNode("input",{class:"f-hitl-input f-hitl-num-input",type:"number",value:_,min:C,max:P,disabled:N,onInput:R=>L(R.target.value)},null),i.createVNode("div",{class:"f-hitl-num-btns"},[i.createVNode("button",{type:"button",class:"f-hitl-num-btn",disabled:N||E,onClick:()=>V(1)},[i.createVNode("span",{class:"fx-icon fx-icon-foldup"},null)]),i.createVNode("button",{type:"button",class:"f-hitl-num-btn",disabled:N||M,onClick:()=>V(-1)},[i.createVNode("span",{class:"fx-icon fx-icon-expanddown"},null)])])])}function g(_,N){const L=u.value[_.id]??"",C=o.value[_.id]??{active:!1,text:""},P=t.value||e.disabled;return i.createVNode("div",{key:_.id},[i.createVNode("div",{class:"f-hitl-option-list"},[N.map((V,E)=>{const M=L===V.label&&!C.active;return i.createVNode("div",{key:V.label,class:["f-hitl-opt-row",{"f-hitl-opt-row--active":M}],onClick:()=>{P||p(_,V.label)}},[i.createVNode("span",{class:"f-hitl-opt-row__index"},[E+1]),i.createVNode("span",{class:"f-hitl-opt-row__label"},[V.label]),i.createVNode("span",{class:"f-hitl-opt-row__check"},[M?i.createVNode("span",{class:"fx-icon fx-icon-sender_choose",style:"font-size: 20px;"},null):null])])}),_.allow_other?i.createVNode("div",{class:["f-hitl-opt-row f-hitl-opt-row--other",{"f-hitl-opt-row--active":L===Nt||C.active}],onClick:()=>{P||p(_,Nt)}},[i.createVNode("span",{class:"f-hitl-opt-row__index"},[i.createTextVNode("...")]),i.createVNode("span",{class:"f-hitl-opt-row__label"},[i.createTextVNode("其他")]),i.createVNode("span",{class:"f-hitl-opt-row__check"},[L===Nt||C.active?i.createVNode("span",{class:"fx-icon fx-icon-sender_choose",style:"font-size: 20px;"},null):null])]):null]),_.allow_other&&(L===Nt||C.active)?i.createVNode("input",{class:"f-hitl-input f-hitl-input--other",type:"text",value:C.text,placeholder:"请输入自定义内容",disabled:P,onInput:V=>{const E=V.target.value;o.value={...o.value,[_.id]:{active:!0,text:E}},m(_.id,Nt)}},null):null])}function x(_,N){const L=u.value[_.id]??[],C=o.value[_.id]??{active:!1,text:""},P=t.value||e.disabled;return i.createVNode("div",{key:_.id},[i.createVNode("div",{class:"f-hitl-option-list"},[N.map((V,E)=>{const M=L.includes(V.label);return i.createVNode("div",{key:V.label,class:["f-hitl-opt-row",{"f-hitl-opt-row--active":M}],onClick:()=>{P||w(_,V.label)}},[i.createVNode("span",{class:"f-hitl-opt-row__index"},[E+1]),i.createVNode("span",{class:"f-hitl-opt-row__label"},[V.label]),i.createVNode("span",{class:"f-hitl-opt-row__check"},[M?i.createVNode("span",{class:"fx-icon fx-icon-sender_choose",style:"font-size: 20px;"},null):null])])}),_.allow_other?i.createVNode("div",{class:["f-hitl-opt-row f-hitl-opt-row--other",{"f-hitl-opt-row--active":C.active}],onClick:()=>{if(P)return;const V=C.text;if(C.active){const E=u.value[_.id]??[];m(_.id,E.filter(M=>M!==V)),o.value={...o.value,[_.id]:{active:!1,text:""}}}else o.value={...o.value,[_.id]:{active:!0,text:C.text}},C.text&&!L.includes(C.text)&&m(_.id,[...L,C.text])}},[i.createVNode("span",{class:"f-hitl-opt-row__index"},[i.createTextVNode("...")]),i.createVNode("span",{class:"f-hitl-opt-row__label"},[i.createTextVNode("其他")]),i.createVNode("span",{class:"f-hitl-opt-row__check"},[C.active?i.createVNode("span",{class:"fx-icon fx-icon-sender_choose",style:"font-size: 20px;"},null):null])]):null]),_.allow_other&&C.active?i.createVNode("input",{class:"f-hitl-input f-hitl-input--other",type:"text",value:C.text,placeholder:"请输入自定义内容",disabled:P,onInput:V=>{const E=V.target.value,M=C.text;o.value={...o.value,[_.id]:{active:!0,text:E}};const R=u.value[_.id]??[];m(_.id,[...R.filter($=>$!==M),E])}},null):null])}function k(_){const N=u.value[_.id]??{},L=_.fields??[];return i.createVNode("div",{class:"f-hitl-field",key:_.id},[i.createVNode("div",{class:"f-hitl-form-group"},[L.map(C=>{const P=N[C.name]??"";return C.type==="select"?i.createVNode("div",{class:"f-hitl-form-item",key:C.name},[i.createVNode("div",{class:"f-hitl-form-item__label"},[C.label]),i.createVNode("div",{class:"f-hitl-select-group"},[(C.options??[]).map(V=>i.createVNode("button",{key:V,type:"button",class:["f-hitl-opt",{"f-hitl-opt--active":P===V}],disabled:t.value||e.disabled,onClick:()=>m(_.id,{...N,[C.name]:V})},[V]))])]):C.type==="number"?i.createVNode("div",{class:"f-hitl-form-item",key:C.name},[i.createVNode("div",{class:"f-hitl-form-item__label"},[C.label]),b(P,t.value||e.disabled,V=>m(_.id,{...N,[C.name]:V}),C.min,C.max)]):C.type==="date"?i.createVNode("div",{class:"f-hitl-form-item",key:C.name},[i.createVNode("div",{class:"f-hitl-form-item__label"},[C.label]),A(P,t.value||e.disabled,V=>m(_.id,{...N,[C.name]:V}))]):i.createVNode("div",{class:"f-hitl-form-item",key:C.name},[i.createVNode("div",{class:"f-hitl-form-item__label"},[C.label]),i.createVNode("input",{class:"f-hitl-input",type:"text",value:P,placeholder:C.default_value??"请输入",disabled:t.value||e.disabled,onInput:V=>m(_.id,{...N,[C.name]:V.target.value})},null)])})])])}function T(_){const N=u.value[_.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:_.id},[A(N,t.value||e.disabled,L=>m(_.id,L))])}function D(_){const N=u.value[_.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:_.id},[b(N,t.value||e.disabled,L=>m(_.id,L),_.min,_.max)])}function F(_){const N=_u(_.ui_type);if(N==="text"){const L=u.value[_.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:_.id},[i.createVNode("input",{class:"f-hitl-input",type:"text",value:L,placeholder:_.placeholder??"请输入",disabled:t.value||e.disabled,onInput:C=>m(_.id,C.target.value)},null)])}if(N==="multi_select"){const L=Array.isArray(_.options)?_.options:[];return x(_,L)}if(N==="form")return k(_);if(N==="select"){const L=Array.isArray(_.options)?_.options:[];return L.length===0?i.createVNode("div",{class:"f-hitl-field f-hitl-field--unsupported",key:_.id},[i.createVNode("div",{class:"f-hitl-unsupported"},[i.createTextVNode("暂不支持空的 select,请升级前端。")])]):g(_,L)}if(N==="confirm"){const L=u.value[_.id];return i.createVNode("div",{class:"f-hitl-field",key:_.id},[i.createVNode("div",{class:"f-hitl-confirm"},[i.createVNode("button",{type:"button",class:["f-hitl-cbtn",{"f-hitl-cbtn--primary":L===!0}],disabled:t.value||e.disabled,onClick:()=>m(_.id,!0)},[i.createTextVNode("是")]),i.createVNode("button",{type:"button",class:["f-hitl-cbtn",{"f-hitl-cbtn--primary":L===!1}],disabled:t.value||e.disabled,onClick:()=>m(_.id,!1)},[i.createTextVNode("否")])])])}return N==="date"?T(_):N==="number"?D(_):i.createVNode("div",{class:"f-hitl-field f-hitl-field--unsupported",key:_.id},[i.createVNode("div",{class:"f-hitl-unsupported"},[i.createTextVNode("暂不支持 ui_type「"),String(_.ui_type),i.createTextVNode("」,请升级前端。")])])}function U(){return a.value<=1?null:i.createVNode("div",{class:"f-hitl-pagination"},[i.createVNode("button",{type:"button",class:"f-hitl-pagination__btn",disabled:l.value,onClick:c},[i.createVNode("span",{class:"fx-icon fx-icon-arrow-left"},null)]),i.createVNode("span",{class:"f-hitl-pagination__text"},[n.value+1,i.createTextVNode("/"),a.value]),i.createVNode("button",{type:"button",class:"f-hitl-pagination__btn",disabled:d.value,onClick:f},[i.createVNode("span",{class:"fx-icon fx-icon-arrow-right"},null)])])}return()=>{const _=s.value;if(!_)return null;const N=e.pinned&&!t.value?"f-hitl-card--pinned":"",L=e.pinned&&!t.value&&e.pinnedWidth?{width:e.pinnedWidth}:void 0;return i.createVNode("div",{class:["f-hitl-card",N],style:L},[i.createVNode("div",{class:"f-hitl-card__header"},[i.createVNode("div",{class:"f-hitl-card__title-wrap"},[i.createVNode("span",{class:"f-hitl-card__title"},[_.question]),i.createVNode("span",{class:"f-hitl-card__subtitle"},[_.header])]),U()]),i.createVNode("div",{class:"f-hitl-card__body"},[F(_)]),i.createVNode("div",{class:"f-hitl-card__footer"},[i.createVNode("button",{type:"button",class:"f-hitl-submit",disabled:!h.value,onClick:y},[t.value?"已提交":"提交"])])])}}});Eu.install=e=>{e.component(Eu.name,Eu)};function M2(e,t){var u;const n=(u=e.pickActions)==null?void 0:u[t];return n||e.pickActionDefault}const Su=i.defineComponent({name:"InputRecommendMessage",props:{content:{type:Object,required:!0},onPick:{type:Function,default:void 0}},setup(e){const t=(n,u)=>{var o;M2(e.content,u),(o=e.onPick)==null||o.call(e,n)};return()=>i.createVNode("div",{class:"f-ec-recommend"},[e.content.title?i.createVNode("div",{class:"f-ec-recommend-title"},[e.content.title]):null,i.createVNode("div",{class:"f-ec-recommend-chips"},[e.content.suggestions.map((n,u)=>i.createVNode("button",{key:u,type:"button",class:"f-ec-recommend-chip",onClick:()=>t(n,u)},[n]))])])}});Su.install=e=>{e.component(Su.name,Su)};const Fu=i.defineComponent({name:"LinkCardMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content;return i.createVNode("div",{class:"f-ec-linkcard"},[t.poster?i.createVNode("div",{class:"f-ec-linkcard-poster"},[i.createVNode("img",{src:t.poster,alt:""},null)]):null,i.createVNode("div",{class:"f-ec-linkcard-body"},[i.createVNode("a",{class:"f-ec-linkcard-title",href:t.url,target:"_blank",rel:"noopener noreferrer"},[t.title]),t.subtitle?i.createVNode("div",{class:"f-ec-linkcard-sub"},[t.subtitle]):null,t.relatedLinks&&t.relatedLinks.length>0?i.createVNode("div",{class:"f-ec-linkcard-related"},[i.createVNode("div",{class:"f-ec-linkcard-related-label"},[i.createTextVNode("相关阅读")]),i.createVNode("ul",null,[t.relatedLinks.map((n,u)=>i.createVNode("li",{key:u},[i.createVNode("a",{href:n.url,target:"_blank",rel:"noopener noreferrer"},[n.title])]))])]):null])])}}});Fu.install=e=>{e.component(Fu.name,Fu)};const Du=i.defineComponent({name:"ReferenceSourcesMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>i.createVNode("div",{class:"f-ec-sources"},[i.createVNode("div",{class:"f-ec-sources-title"},[i.createTextVNode("引用来源")]),i.createVNode("ul",{class:"f-ec-sources-list"},[e.content.items.map((t,n)=>i.createVNode("li",{key:n},[i.createVNode("a",{href:t.url,target:"_blank",rel:"noopener noreferrer"},[t.title])]))])])}});Du.install=e=>{e.component(Du.name,Du)};const Tu=i.defineComponent({name:"UnknownEnterpriseMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>i.createVNode("div",{class:"f-ec-unknown"},[i.createVNode("div",{class:"f-ec-unknown-title"},[i.createTextVNode("未知类型消息")]),e.content.wireType?i.createVNode("div",{class:"f-ec-unknown-wire"},[i.createTextVNode("wire type: "),e.content.wireType]):null,i.createVNode("div",{class:"f-ec-unknown-desc"},[e.content.hint??"客户端无法识别此消息类型,已按占位展示。"])])}});Tu.install=e=>{e.component(Tu.name,Tu)},rr.install=e=>{e.component(rr.name,rr)};const B2={install(e){e.use(at).use(ur).use(or).use(sr).use(cr).use(pr).use(mr).use(gr).use(br).use(mn).use(nn).use(_n).use(Jt).use(yr).use(xr).use(wr).use(vr).use(Ar).use(xn).use(wn).use(Qt).use(An).use(kr).use(Cr).use(_r)}};O.FXAgentThinking=Au,O.FXAppPreview=at,O.FXAttachmentFile=ku,O.FXAttachmentPreview=Ar,O.FXBubble=ur,O.FXBubbleAction=To,O.FXCarousel=or,O.FXCarouselItem=su,O.FXChatPreview=sr,O.FXCoding=pr,O.FXConfirmDialog=cr,O.FXDynamicComponent=wn,O.FXErrorReminder=Cu,O.FXFileOperation=mr,O.FXGenerateProcess=gr,O.FXHistory=br,O.FXHitlQuestion=Eu,O.FXInputRecommend=Su,O.FXLinkCard=Fu,O.FXListView=_r,O.FXMarkdown=mn,O.FXMarkdownPreview=nn,O.FXNav=kr,O.FXPopover=Qt,O.FXPopoverDirective=Qa,O.FXPrompt=wu,O.FXPrompts=_n,O.FXReferenceSources=Du,O.FXSearchBox=Cr,O.FXSearchBoxContainer=vu,O.FXSplitter=An,O.FXSplitterPane=ir,O.FXStartedTodo=Jt,O.FXSuggestion=yr,O.FXTodo=xr,O.FXTodoListItemView=au,O.FXTodoListView=nr,O.FXToolUse=vn,O.FXToolUseBatch=wr,O.FXUnknownEnterprise=Tu,O.FXUserAuth=rr,O.FXWelcome=vr,O.FXWidgetContainer=xn,O.PREVIEW_BRIDGE_MESSAGE_TYPE_ASSISTANT=Zo,O.PREVIEW_BRIDGE_SOURCE=Xo,O.PREVIEW_BRIDGE_VERSION=qo,O.appPreviewMessageProps=be,O.attachmentPreviewProps=xl,O.bubbleActionProps=rs,O.bubbleProps=Nr,O.carouselItemProps=os,O.carouselProps=us,O.chatHistoryProps=fl,O.chatPreviewProps=as,O.clonePreviewPayloadForPostMessage=Ws,O.codingMessageProps=sl,O.confirmDialogProps=Ks,O.createPreviewIframeSdk=Fp,O.default=B2,O.extractFileIdFromRuntimeDownloadUrl=fi,O.fileOperationMessageProps=cl,O.generateProcessProps=dl,O.getCustomClass=ye,O.getCustomStyle=Ae,O.getDynamicComponentRegistryDebugSnapshot=So,O.invokeAgentWorkbenchSdkApi=Sp,O.isImageUrl=hi,O.isPreviewBridgeAssistantMessage=Xs,O.listViewProps=Qo,O.loadDynamicComponent=Wa,O.markdownMessageProps=wa,O.markdownPreviewProps=ss,O.navProps=vl,O.normalizeDynamicComponentRegisterClaim=Ve,O.peekDynamicComponentRegisterBootstrapId=yh,O.popoverProps=Za,O.postAssistantToPreviewIframe=qs,O.postDynamicComponentAssistantMessage=kh,O.previewLayoutBridge=Np,O.promptProps=ml,O.promptsProps=hl,O.registerPreviewChromeSdk=Tp,O.renderIconNode=Ir,O.renderNode=Mn,O.resolveHrefForAttachmentDownload=ln,O.resolveRuntimeAttachmentDownloadUrl=ju,O.searchBoxContainerProps=kl,O.searchBoxProps=Al,O.splitterProps=is,O.startedTodoProps=Ja,O.subscribeAssistantInPreviewIframe=Zs,O.suggestionProps=gl,O.todoListItemProps=ts,O.todoListViewProps=es,O.todoProps=bl,O.triggerAttachmentDownload=Lr,O.unloadDynamicComponent=Ga,O.useSequentialStreaming=Or,O.useStreamingOutput=pi,O.useTimer=Hu,O.welcomeProps=yl,O.widgetContainerProps=Ba,Object.defineProperties(O,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
157
+ `},ol=u1(s1)(ul),l1={config:i1},c1=function(){for(var t=arguments.length,n=new Array(t),u=0;u<t;u++)n[u]=arguments[u];return function(o){return n.reduceRight(function(r,a){return a(r)},o)}};function il(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],il(e[n],t[n]))}),tl(tl({},e),t)}var d1={type:"cancelation",msg:"operation is manually canceled"};function Yo(e){var t=!1,n=new Promise(function(u,o){e.then(function(r){return t?o(d1):u(r)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var f1=["monaco"],h1=n1.create({config:r1,isInitialized:!1,resolve:null,reject:null,monaco:null}),al=Mp(h1,2),hr=al[0],wu=al[1];function m1(e){var t=l1.config(e),n=t.monaco,u=Vp(t,f1);wu(function(o){return{config:il(o.config,u),monaco:n}})}function p1(){var e=hr(function(t){var n=t.monaco,u=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:u,resolve:o}});if(!e.isInitialized){if(wu({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Yo(Ko);if(window.monaco&&window.monaco.editor)return sl(window.monaco),e.resolve(window.monaco),Yo(Ko);c1(g1,y1)(x1)}return Yo(Ko)}function g1(e){return document.body.appendChild(e)}function b1(e){var t=document.createElement("script");return e&&(t.src=e),t}function y1(e){var t=hr(function(u){var o=u.config,r=u.reject;return{config:o,reject:r}}),n=b1("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function x1(){var e=hr(function(n){var u=n.config,o=n.resolve,r=n.reject;return{config:u,resolve:o,reject:r}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var u=n.m||n;sl(u),e.resolve(u)},function(n){e.reject(n)})}function sl(e){hr().monaco||wu({monaco:e})}function w1(){return hr(function(e){var t=e.monaco;return t})}var Ko=new Promise(function(e,t){return wu({resolve:e,reject:t})}),v1={config:m1,init:p1,__getMonacoInstance:w1};const ll={content:{type:Object,required:!0}},cl=20,A1=16,Cn=180;function k1(e){typeof requestIdleCallback<"u"?requestIdleCallback(e,{timeout:500}):setTimeout(e,0)}const mr=i.defineComponent({name:"FXCodingMessage",props:ll,setup(e){const t=i.ref(!0),n=i.ref(!1),u=i.ref(null),o=i.ref(null),r=i.ref(Cn),a=i.ref(!1);function s(){t.value=!t.value}function l(){var b,g,x,k;const m=(b=e.content)==null?void 0:b.code;if(!m)return Cn;const y=o.value;let A;if(y!=null&&y.getOriginalEditor&&(y!=null&&y.getModifiedEditor)){const F=((g=y.getOriginalEditor().getModel())==null?void 0:g.getLineCount())??0,T=((x=y.getModifiedEditor().getModel())==null?void 0:x.getLineCount())??0;A=F+T}else if(y!=null&&y.getModel)A=((k=y.getModel())==null?void 0:k.getLineCount())??0;else{const{value:F,originalValue:T}=m,D=(F||"").split(`
158
+ `).length,U=T?T.split(`
159
+ `).length:0;A=T?U+D:D}return A1+A*cl}const d=i.computed(()=>(o.value,l()>Cn));function f(){n.value=!n.value,r.value=n.value?l():Cn,h()}function c(){if(!o.value)return;o.value=null;const w=()=>{};typeof requestIdleCallback<"u"?requestIdleCallback(w,{timeout:100}):setTimeout(w,0)}function h(){if(a.value)return;const m=u.value,w=o.value;if(!m||!(w!=null&&w.layout))return;const y=m.clientWidth||m.offsetWidth,A=r.value;requestAnimationFrame(()=>{var b,g;a.value||!o.value||(g=(b=o.value)==null?void 0:b.layout)==null||g.call(b,{width:y,height:A})})}function p(){var m;a.value||!u.value||!((m=e.content)!=null&&m.code)||v1.init().then(w=>{var x;if(a.value||!u.value||!((x=e.content)!=null&&x.code))return;const{value:y,originalValue:A,language:b="typescript"}=e.content.code,g={readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,lineNumbers:"off",glyphMargin:!1,lineDecorationsWidth:0,folding:!1,renderLineHighlight:"none",fontSize:12,lineHeight:cl,padding:{top:8,bottom:8}};if(A){const k=w.editor.createDiffEditor(u.value,{...g,renderSideBySide:!1,renderOverviewRuler:!1});k.setModel({original:w.editor.createModel(A,b),modified:w.editor.createModel(y,b)}),k.getOriginalEditor().updateOptions({minimap:{enabled:!1}}),k.getModifiedEditor().updateOptions({minimap:{enabled:!1}}),i.nextTick(()=>{var T;if(a.value)return;const F=(T=k.getContainerDomNode)==null?void 0:T.call(k);if(F){const D=F.querySelector('.diff-editor-cell.original, [class*="original"]');D&&(D.style.display="none")}}),o.value=k}else{const k=w.editor.create(u.value,{value:y,language:b,...g});o.value=k}r.value=Cn,i.nextTick(()=>h())})}return i.onMounted(()=>{k1(()=>{a.value||!u.value||p()})}),i.watch(t,m=>{m&&!a.value&&i.nextTick(()=>h())}),i.onBeforeUnmount(()=>{a.value=!0,c()}),i.watch(()=>{var m,w;return(w=(m=e.content)==null?void 0:m.code)==null?void 0:w.value},()=>{a.value||(n.value?r.value=l():r.value=Cn,h())}),()=>{const m=e.content;if(!m)return null;const{message:w,fileIcon:y,fileName:A,code:b}=m;return i.createVNode("div",{class:"f-chat-message-coding"},[i.createVNode("div",{class:"f-chat-coding-message"},[w]),i.createVNode("div",{class:"f-chat-coding-card"},[i.createVNode("div",{class:"f-chat-coding-header",onClick:s,role:"button",tabindex:0,onKeydown:g=>g.key==="Enter"&&s()},[i.createVNode("span",{class:"f-chat-coding-header-icon-slot"},[i.createVNode("span",{class:"f-chat-coding-header-icon"},[i.createVNode("img",{src:y,alt:"",onError:g=>{var x;g.target.style.display="none",(x=g.target.parentElement)==null||x.classList.add("icon-error")}},null),i.createVNode("span",{class:"f-chat-coding-header-icon-fallback"},[i.createTextVNode("📄")])]),i.createVNode("span",{class:"f-chat-coding-header-expand"},[i.createVNode("i",{class:t.value?"fx-icon fx-icon-foldup":"fx-icon fx-icon-expanddown"},null)])]),i.createVNode("span",{class:"f-chat-coding-header-filename"},[A]),i.createVNode("span",{class:"f-chat-coding-header-stats"},[i.createVNode("span",{class:"f-chat-coding-stat-add"},[i.createTextVNode("+"),b.addedLines]),i.createVNode("span",{class:"f-chat-coding-stat-del"},[i.createTextVNode("-"),b.deletedLines])])]),i.createVNode("div",{style:{display:t.value?"block":"none"}},[i.createVNode("div",{ref:u,class:"f-chat-coding-editor",style:{height:`${r.value}px`}},null),d.value&&i.createVNode("button",{type:"button",class:"f-chat-coding-expand-btn",onClick:f,"aria-label":n.value?"收起代码":"展开代码",title:n.value?"收起代码":"展开代码"},[i.createVNode("i",{class:["fx-icon fx-icon-expanddown",n.value&&"f-chat-coding-expand-icon-up"]},null)])])])])}}});mr.install=e=>{e.component(mr.name,mr)};const dl={content:{type:Object,required:!0}};function C1(e){return"file"in e&&"path"in e}const pr=i.defineComponent({name:"FileOperationMessage",props:dl,setup(e){const t=i.ref(!0),n=i.ref({}),u=i.computed(()=>{var l;return!!((l=e.content)!=null&&l.summary)}),o=i.computed(()=>{var d;const l=(d=e.content)==null?void 0:d.summary;return l?`浏览了 ${l.explored} 个文件并查询了 ${l.searched} 个文件`:""});function r(){t.value=!t.value}function a(l){n.value={...n.value,[l]:!n.value[l]}}function s(l){return n.value[l]??!1}return()=>{const l=e.content;if(!l)return null;const{summary:d,operations:f}=l,c=!u.value||t.value;return i.createVNode("div",{class:"f-chat-message-file-operation"},[d&&i.createVNode("div",{class:"f-chat-file-op-summary",onClick:r,role:"button",tabindex:0,onKeydown:h=>h.key==="Enter"&&r()},[i.createVNode("span",{class:"f-chat-file-op-summary-inner"},[i.createVNode("span",{class:"f-chat-file-op-summary-text"},[o.value]),i.createVNode("span",{class:["f-chat-file-op-expand-btn",{expanded:t.value}]},[i.createVNode("i",{class:t.value?"fx-icon fx-icon-foldup":"fx-icon fx-icon-expanddown"},null)])])]),c&&i.createVNode("div",{class:"f-chat-file-op-operations"},[f.map((h,p)=>{var m,w,y,A;return i.createVNode("div",{key:p,class:"f-chat-file-op-operation"},[i.createVNode("div",i.mergeProps({class:["f-chat-file-op-operation-row",{"op-read":h.type==="Read","has-details":!!((m=h.details)!=null&&m.length)}],onClick:()=>{var b;return((b=h.details)==null?void 0:b.length)&&a(p)}},(w=h.details)!=null&&w.length?{role:"button",tabIndex:0}:{},{onKeydown:b=>{var g;return((g=h.details)==null?void 0:g.length)&&b.key==="Enter"&&a(p)}}),[i.createVNode("span",{class:"f-chat-file-op-type"},[h.type]),i.createVNode("span",{class:"f-chat-file-op-message-wrap"},[i.createVNode("span",{class:"f-chat-file-op-message"},[h.message]),(y=h.details)!=null&&y.length?i.createVNode("span",{class:["f-chat-file-op-expand-btn","sm",{expanded:s(p)}]},[i.createVNode("i",{class:s(p)?"fx-icon fx-icon-foldu":"fx-icon pfx-icon-expanddown"},null)]):null])]),((A=h.details)==null?void 0:A.length)&&s(p)&&i.createVNode("div",{class:"f-chat-file-op-details"},[h.details.map((b,g)=>C1(b)?i.createVNode("div",{key:g,class:"f-chat-file-op-detail-file"},[i.createVNode("span",{class:"f-chat-file-op-file-icon"},[i.createVNode("img",{src:b.icon,alt:"",onError:x=>{const k=x.target;k.style.display="none";const F=k.parentElement;F&&F.classList.add("icon-error")}},null),i.createVNode("span",{class:"f-chat-file-op-file-icon-fallback"},[i.createTextVNode("📄")])]),i.createVNode("span",{class:"f-chat-file-op-file-name"},[b.file]),i.createVNode("span",{class:"f-chat-file-op-file-path",title:b.path},[b.path])]):i.createVNode("div",{key:g,class:"f-chat-file-op-detail-text"},[i.createVNode("div",{class:"f-chat-file-op-detail-title"},[b.title]),i.createVNode("div",{class:"f-chat-file-op-detail-content"},[b.text])]))])])})])])}}});pr.install=e=>{e.component(pr.name,pr)};const fl={visible:{type:Boolean,default:!0},description:[String,Object],progress:{type:Number,default:0},showProgress:{type:Boolean,default:!0},icon:{type:[String,Object],default:""},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},_1="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='60px'%20height='60px'%20viewBox='0%200%2060%2060'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e智能logo60px%3c/title%3e%3cdefs%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-1'%3e%3cstop%20stop-color='%230D7FE6'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%231EBBC6'%20offset='58.0673923%25'%3e%3c/stop%3e%3cstop%20stop-color='%232AE7AF'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cpath%20d='M25.1971977,0%20L45.8523137,11.3712178%20L45.8523137,37.6155801%20L44.4946453,38.9692599%20L24.623,28.022%20L24.6233274,49.9395377%20L21.4535582,49.9395377%20L2.72549351,39.5965647%20L0,34.4406135%20L0,12.8076673%20L3.70534859,10.5019677%20L20.556,20.546%20L20.5567534,0.161454345%20L25.1971977,0%20Z%20M20.7578212,28.1498874%20L5.81325199,36.7628182%20L20.7578212,45.0027895%20L20.7578212,28.1498874%20Z%20M41.8027832,15.9256338%20L26.7716137,24.6706076%20L41.8027832,32.9879669%20L41.8027832,15.9256338%20Z%20M4.06159924,15.4742393%20L4.06159924,32.9879669%20L19.1488772,24.4568004%20L4.06159924,15.4742393%20Z%20M24.6233274,4.32908173%20L24.6233274,21.2862528%20L39.8727429,12.4882393%20L24.6233274,4.32908173%20Z'%20id='path-2'%3e%3c/path%3e%3clinearGradient%20x1='81.0966666%25'%20y1='38.5584607%25'%20x2='28.8545509%25'%20y2='61.9626707%25'%20id='linearGradient-4'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-5'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='44.8152906%25'%20y1='77.6521765%25'%20x2='44.8152906%25'%20y2='3.26462903%25'%20id='linearGradient-6'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-7'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='3.93796935%25'%20y1='32.607826%25'%20x2='78.9687461%25'%20y2='60.0462823%25'%20id='linearGradient-8'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-9'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='56.0769337%25'%20y1='45.0797149%25'%20x2='24.9463054%25'%20y2='71.1433818%25'%20id='linearGradient-10'%3e%3cstop%20stop-color='%23159BD7'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='10.434388%25'%20y1='68.063656%25'%20x2='86.6988821%25'%20y2='30.8651063%25'%20id='linearGradient-11'%3e%3cstop%20stop-color='%2321C6C1'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-12'%3e%3cstop%20stop-color='%230D7FE6'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%232AE7AF'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20id='页面-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='生成过程'%20transform='translate(-766,%20-1268)'%3e%3cg%20id='编组-7'%20transform='translate(321,%20699)'%3e%3cg%20id='编组-5'%20transform='translate(247,%20488)'%3e%3cg%20id='智能logo60px'%20transform='translate(198,%2081)'%3e%3crect%20id='矩形'%20x='0'%20y='0'%20width='60'%20height='60'%3e%3c/rect%3e%3cg%20id='编组-35'%20transform='translate(0.8571,%200.8571)'%3e%3crect%20id='矩形'%20x='0'%20y='0'%20width='58.2857143'%20height='58.2857143'%3e%3c/rect%3e%3cg%20id='编组-19备份-17'%20transform='translate(3.4286,%201.7143)'%3e%3cpath%20d='M27.9148216,2.78182535%20L48.5699376,14.1530432%20L48.5699376,40.3974054%20L47.2122691,41.7510852%20L27.3406238,30.8038254%20L27.3409512,52.7213631%20L24.171182,52.7213631%20L5.44311735,42.3783901%20L2.71762384,37.2224388%20L2.71762384,15.5894926%20L6.42297243,13.283793%20L23.2736238,23.3278254%20L23.2743772,2.9432797%20L27.9148216,2.78182535%20Z%20M23.4754451,30.9317128%20L8.53087583,39.5446435%20L23.4754451,47.7846148%20L23.4754451,30.9317128%20Z%20M44.520407,18.7074592%20L29.4892375,27.452433%20L44.520407,35.7697922%20L44.520407,18.7074592%20Z%20M6.77922307,18.2560647%20L6.77922307,35.7697922%20L21.866501,27.2386257%20L6.77922307,18.2560647%20Z%20M27.3409512,7.11090709%20L27.3409512,24.0680782%20L42.5903667,15.2700646%20L27.3409512,7.11090709%20Z'%20id='形状结合'%20fill='url(%23linearGradient-1)'%3e%3c/path%3e%3cg%20id='路径-2-+-路径-3-+-路径-4蒙版'%20transform='translate(2.7176,%202.7818)'%3e%3cmask%20id='mask-3'%20fill='white'%3e%3cuse%20xlink:href='%23path-2'%3e%3c/use%3e%3c/mask%3e%3cuse%20id='蒙版'%20fill='url(%23linearGradient-1)'%20xlink:href='%23path-2'%3e%3c/use%3e%3cpolygon%20id='路径-2'%20fill='url(%23linearGradient-4)'%20filter='url(%23filter-5)'%20mask='url(%23mask-3)'%20points='14.177196%2023.2632694%2022.5796859%2023.2632694%2023.4218687%2027.5957059%209.52757789%2036.9780352%203.7254788%2029.0812693'%3e%3c/polygon%3e%3cpolygon%20id='路径-3'%20fill='url(%23linearGradient-6)'%20filter='url(%23filter-7)'%20mask='url(%23mask-3)'%20points='23.4218687%2022.4125055%2027.1161878%2015.1091341%2027.8042533%206.35665145%2018.1506617%205.88610282%2018.8417696%2016.8706238%2022.5796859%2022.4125055'%3e%3c/polygon%3e%3cpolygon%20id='路径-4'%20fill='url(%23linearGradient-8)'%20filter='url(%23filter-9)'%20mask='url(%23mask-3)'%20points='33.5501273%2024.6706076%2024.403058%2024.9983902%2024.403058%2027.5289361%2028.4733448%2033.3539069%2036.4355638%2036.3335669%2041.6970622%2028.387534'%3e%3c/polygon%3e%3c/g%3e%3cpath%20d='M27.9148216,2.78182535%20L48.5699376,14.1530432%20L48.5699376,40.3974054%20L47.2122691,41.7510852%20L23.2743772,28.5628437%20L23.2743772,2.9432797%20L27.9148216,2.78182535%20Z%20M27.3409512,7.11090709%20L27.3409512,24.0680782%20L28.3053772,23.5108254%20L28.3061985,25.7112082%20L30.1053772,27.0928254%20L29.4892375,27.452433%20L44.520407,35.7697922%20L44.5203772,18.7198254%20L45.4350062,17.1793767%20L42.5903667,15.2700646%20L27.3409512,7.11090709%20Z'%20id='形状结合'%20fill='url(%23linearGradient-10)'%20fill-rule='nonzero'%3e%3c/path%3e%3cpolygon%20id='路径'%20fill='url(%23linearGradient-11)'%20fill-rule='nonzero'%20points='22.5927693%2026.8440709%2023.6315003%2030.8033921%208.53087583%2039.5446435%207.30516741%2035.4601402'%3e%3c/polygon%3e%3cg%20id='编组-21'%20fill='url(%23linearGradient-12)'%3e%3cpath%20d='M25.4312165,33.1398658%20C28.857043,33.1398658%2031.634224,30.3626848%2031.634224,26.9368583%20C31.634224,23.5110318%2028.857043,20.7338508%2025.4312165,20.7338508%20C22.00539,20.7338508%2019.228209,23.5110318%2019.228209,26.9368583%20C19.228209,30.3626848%2022.00539,33.1398658%2025.4312165,33.1398658%20Z%20M46.5950591,20.103577%20C49.2645342,20.103577%2051.4285714,17.9395398%2051.4285714,15.2700646%20C51.4285714,12.6005895%2049.2645342,10.4365523%2046.5950591,10.4365523%20C43.9255839,10.4365523%2041.7615467,12.6005895%2041.7615467,15.2700646%20C41.7615467,17.9395398%2043.9255839,20.103577%2046.5950591,20.103577%20Z%20M25.4312165,54.9048659%20C28.1006917,54.9048659%2030.2647289,52.7408287%2030.2647289,50.0713536%20C30.2647289,47.4018784%2028.1006917,45.2378412%2025.4312165,45.2378412%20C22.7617413,45.2378412%2020.5977042,47.4018784%2020.5977042,50.0713536%20C20.5977042,52.7408287%2022.7617413,54.9048659%2025.4312165,54.9048659%20Z%20M4.83351235,43.462539%20C7.50298751,43.462539%209.6670247,41.2985018%209.6670247,38.6290267%20C9.6670247,35.9595515%207.50298751,33.7955143%204.83351235,33.7955143%20C2.16403719,33.7955143%200,35.9595515%200,38.6290267%20C0,41.2985018%202.16403719,43.462539%204.83351235,43.462539%20Z%20M25.4312165,8.37808808%20C27.7447616,8.37808808%2029.6202605,6.50258918%2029.6202605,4.18904404%20C29.6202605,1.8754989%2027.7447616,0%2025.4312165,0%20C23.1176714,0%2021.2421725,1.8754989%2021.2421725,4.18904404%20C21.2421725,6.50258918%2023.1176714,8.37808808%2025.4312165,8.37808808%20Z%20M46.5950591,43.3044363%20C48.9086042,43.3044363%2050.7841031,41.4289374%2050.7841031,39.1153922%20C50.7841031,36.8018471%2048.9086042,34.9263482%2046.5950591,34.9263482%20C44.2815139,34.9263482%2042.406015,36.8018471%2042.406015,39.1153922%20C42.406015,41.4289374%2044.2815139,43.3044363%2046.5950591,43.3044363%20Z%20M4.83351235,18.3420872%20C7.14705749,18.3420872%209.02255639,16.4665883%209.02255639,14.1530432%20C9.02255639,11.8394981%207.14705749,9.96399915%204.83351235,9.96399915%20C2.51996721,9.96399915%200.644468314,11.8394981%200.644468314,14.1530432%20C0.644468314,16.4665883%202.51996721,18.3420872%204.83351235,18.3420872%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",gr=i.defineComponent({name:"FXGenerateProcess",props:fl,emits:["closed"],setup(e,t){const n=i.computed(()=>{const d={"fx-generate-process":!0,"fx-generate-process--no-progress":!e.showProgress};return ye(d,e.customClass)}),u=i.computed(()=>Ae({},e.customStyle));function o(){var d,f;return t.slots.icon?t.slots.icon():i.createVNode("div",{class:["fx-generate-process--icon",(d=e.classNames)==null?void 0:d.icon],style:(f=e.styles)==null?void 0:f.icon},[e.icon?Lr(e.icon):i.createVNode("img",{alt:"ai logo",class:"fx-generate-process--icon-default",src:_1},null)])}function r(){var d,f;return e.description&&i.createVNode("p",{class:["fx-generate-process--description",(d=e.classNames)==null?void 0:d.description],style:(f=e.styles)==null?void 0:f.description},[e.description])}function a(){var d,f;return e.progress>0&&i.createVNode("div",{class:["fx-generate-process--progress-text",(d=e.classNames)==null?void 0:d["progress-text"]],style:(f=e.styles)==null?void 0:f["progress-text"]},[e.progress,i.createTextVNode("%")])}function s(){return i.createVNode("div",{class:"fx-generate-process--mask",onClick:d=>{d.stopPropagation()}},null)}function l(d=()=>{}){t.emit("closed",{callback:d})}return i.watch(()=>e.visible,d=>{d||l()}),t.expose({close:l}),()=>{var d,f;return i.createVNode(i.Fragment,null,[e.visible&&s(),e.visible&&i.createVNode("div",{class:n.value,style:u.value},[o(),!e.showProgress&&r(),e.showProgress&&i.createVNode("div",{class:["fx-generate-process--progress-bar",(d=e.classNames)==null?void 0:d["progress-bar"]],style:(f=e.styles)==null?void 0:f["progress-bar"]},[i.createVNode("div",{class:"fx-generate-process--progress-fill",style:{width:`${e.progress}%`}},null),!e.description&&a()]),e.description&&e.progress>0&&i.createVNode("div",{class:"fx-generate-process--progress"},[r(),i.createTextVNode(" "),a()])])])}}});gr.install=e=>{e.component(gr.name,gr)};const hl={title:{type:String,default:"历史对话"},items:{type:Array,default:()=>[]}},E1=[{key:"today",label:"今天"},{key:"week",label:"近7天"},{key:"older",label:"更早"}],br=i.defineComponent({name:"FXChatHistory",props:hl,emits:["itemClick"],setup(e,{emit:t}){const n=a=>{const s=new Date(a),l=new Date;return s.getDate()===l.getDate()&&s.getMonth()===l.getMonth()&&s.getFullYear()===l.getFullYear()},u=a=>{const s=new Date(a),l=new Date;return l.setDate(l.getDate()-7),s>=l&&!n(a)},o=i.computed(()=>{var l;const a={today:[],week:[],older:[]};(l=e.items)==null||l.forEach(d=>{n(d.timestamp)?a.today.push(d):u(d.timestamp)?a.week.push(d):a.older.push(d)});const s=(d,f)=>f.timestamp-d.timestamp;return a.today.sort(s).length||a.week.sort(s).length||a.older.sort(s).length?{today:a.today.sort(s),week:a.week.sort(s),older:a.older.sort(s)}:null}),r=(a,s)=>s.length>0&&i.createVNode("div",{class:"f-chat-history-section"},[i.createVNode("span",{class:"f-chat-history-section-header"},[a]),i.createVNode("div",{class:"d-flex flex-column"},[s.map(l=>i.createVNode("div",{key:l.id,class:"f-chat-history-item",onClick:()=>t("itemClick",l)},[i.createVNode("span",{class:"f-chat-history-item-title"},[l.title])]))])]);return()=>i.createVNode("div",{class:"f-chat-history-manager"},[i.createVNode("div",{class:"f-chat-history-manager-scroll"},[o.value&&E1.map(a=>r(a.label,o.value[a.key]))])])}});br.install=e=>{e.component(br.name,br)};const ml={items:{type:Array,default:()=>[]},title:{type:[String,Object],default:""},vertical:{type:Boolean,default:!1},wrap:{type:Boolean,default:!1},gap:{type:[String,Number],default:12},fadeIn:{type:Boolean,default:!1},fadeInLeft:{type:Boolean,default:!1},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""}};var pl=(e=>(e.standardFeatureCard="standard-feature-card",e.primaryFeatureCard="primary-feature-card",e.compactFeatureCard="compact-feature-card",e.standardQuestionItem="standard-question-item",e.functionEntryItem="function-entry-item",e.defaultTextItem="default-text-item",e.hasNestEntryItem="has-nest-entry-item",e.likeButtonEntryItem="like-button-entry-item",e.none="",e))(pl||{});const gl={id:{type:[String,Number],default:""},icon:{type:[String,Object],default:""},label:{type:[String,Object],default:""},description:{type:[String,Object],default:""},badge:{type:[String,Object],default:""},disabled:{type:Boolean,default:!1},children:{type:Array,default:()=>[]},styles:{type:Object},classNames:{type:Object},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},showType:{type:String,default:pl.defaultTextItem},gap:{type:[String,Number]},onClick:{type:Function,required:!1}},vu=i.defineComponent({name:"FPrompt",props:gl,setup(e){const t=i.computed(()=>!e.id&&e.children&&e.children.length>0),n=i.computed(()=>{var h;let c={"fx-prompt--item-wrapper":!0,"fx-prompt--item-disabled":e.disabled,"fx-prompt--item-has-nest":e.id&&e.children&&e.children.length>0};return c=ye(c,(h=e.classNames)==null?void 0:h.item),ye(c,e.customClass)}),u=i.computed(()=>{let c={"fx-prompt--item":!0};return c[`fx-prompt--${e.showType||"none"}`]=!0,c}),o=i.computed(()=>{var h;const c=Ae({},(h=e.styles)==null?void 0:h.item);return Ae(c,e.customStyle)}),r=()=>{var c,h;return e.icon?i.createVNode("div",{class:["fx-prompt--item-icon",(c=e.classNames)==null?void 0:c.icon],style:(h=e.styles)==null?void 0:h.icon},[Lr(e.icon)]):null},a=()=>{var c,h;return e.label?i.createVNode("h6",{class:["fx-prompt--item-label",(c=e.classNames)==null?void 0:c.label],style:(h=e.styles)==null?void 0:h.label},[Mn(e.label)]):null};function s(){var h;const c={"fx-prompt--item-badge":!0};return typeof e.badge=="string"&&(c["badge-default"]=!0),ye(c,(h=e.classNames)==null?void 0:h.badge)}const l=()=>{var c;return e.badge?i.createVNode("span",{class:s(),style:(c=e.styles)==null?void 0:c.badge},[Mn(e.badge)]):null},d=()=>{var c,h;return e.description?i.createVNode("p",{class:["fx-prompt--item-description",(c=e.classNames)==null?void 0:c.description],style:(h=e.styles)==null?void 0:h.description},[Mn(e.description)]):null},f=()=>{var c,h,p,m;return!e.children||e.children.length===0?null:i.createVNode(_n,{class:{"fx-prompt--only-children":!e.id,"fx-prompt--item-nested":e.id},gap:e.gap,items:e.children,vertical:!0,customClass:(c=e.classNames)==null?void 0:c.subItems,customStyle:(h=e.styles)==null?void 0:h.subItems,styles:{item:((p=e.styles)==null?void 0:p.subItem)??{}},classNames:{item:((m=e.classNames)==null?void 0:m.subItem)??""}},null)};return()=>{var c,h;return i.createVNode("div",{class:n.value,style:o.value,onClick:e.onClick},[t.value?f():i.createVNode("div",{class:u.value},[r(),l(),i.createVNode("div",{class:["fx-prompt--item-content",(c=e.classNames)==null?void 0:c.itemContent],style:(h=e.styles)==null?void 0:h.itemContent},[a(),d(),f()])])])}}}),_n=i.defineComponent({name:"FXPrompts",props:ml,emits:["item-click"],setup(e,t){const n=i.computed(()=>{var f;let d={"fx-prompts":!0,"fx-prompts--fade-in":e.fadeIn,"fx-prompts--fade-in-left":e.fadeInLeft};return d=ye(d,e.customClass),d=ye(d,(f=e.classNames)==null?void 0:f.root),d});function u(d=null){var c;let f={"fx-prompts--items":!0,"fx-prompt":!0,"fx-prompts--items-wrap":e.wrap,"fx-prompts--items-vertical":e.vertical};return f=ye(f,(c=e.classNames)==null?void 0:c.items),f=ye(f,d==null?void 0:d.customClass),f}function o(d=null){var c;let f={};return(e.gap||e.gap===0)&&(f.gap=typeof e.gap=="number"?`${e.gap}px`:e.gap),f=Ae(f,(c=e.styles)==null?void 0:c.items),f=Ae(f,d==null?void 0:d.customStyle),f}const r=(d,f)=>{f.disabled||f.children&&f.children.length>0||t.emit("item-click",d,f)},a=d=>{var f,c;return d!=null&&d.title?i.createVNode("h5",{class:["fx-prompts--title",(f=e.classNames)==null?void 0:f.title],style:(c=e.styles)==null?void 0:c.title},[Mn(d==null?void 0:d.title)]):null};function s(d){return!d.items||d.items.length===0?null:i.createVNode("div",{class:u(d),style:o(d)},[d.items.map((f,c)=>i.createVNode(vu,{key:f.id||`key_${c}`,id:f.id,icon:f.icon,label:f.label,description:f.description,disabled:f.disabled,children:f.children,styles:f.styles||e.styles,classNames:f.classNames||e.classNames,showType:f.showType,customClass:f.customClass,customStyle:f.customStyle,gap:f.gap,badge:f.badge,onClick:h=>r(h,f)},null))])}function l(){return t.slots.footer?t.slots.footer():null}return()=>{var d;return i.createVNode("div",{class:n.value,style:(d=e.styles)==null?void 0:d.root},[t.slots.title&&t.slots.title(),a(e),t.slots.default&&t.slots.default(),s(e),l()])}}});_n.install=e=>{e.component(_n.name,_n),e.component(vu.name,vu)};const bl={items:{type:Array,default:()=>[]},height:{type:Number,default:200},title:{type:[String,Object],default:"推荐操作"},prompt:{type:[String,Object],default:"输入@获取推荐操作"},promptChar:{type:String,default:"@"},promptAgentName:{type:String,default:"AI助理"}},yr=i.defineComponent({name:"FXSuggestion",props:bl,setup(e,t){const n=i.ref(null),u=i.ref(!1),o=i.ref(!1),r=i.ref({top:0,left:0,height:0}),a=i.ref(-1),s=i.ref(""),l=i.computed(()=>typeof e.prompt=="string"?e.prompt:"输入“@”获取推荐操作"),d=i.computed(()=>{var A;return(((A=e.items)==null?void 0:A.length)??0)===0}),f=()=>{var U;if(!n.value||d.value)return;if((((U=n.value.textContent)==null?void 0:U.trim())||"")===""){n.value.textContent="",n.value.innerHTML="",w();return}const b=window.getSelection();if(!b||b.rangeCount===0)return;const g=b.getRangeAt(0),x=g.cloneRange();x.selectNodeContents(n.value),x.setEnd(g.endContainer,g.endOffset);const k=x.toString(),F=k.lastIndexOf(e.promptChar);if(s.value=n.value.textContent||"",F!==-1&&k.substring(F+1).trim()===""&&(n.value.textContent=k.replace(/@$/,`@${e.promptAgentName} `),s.value=n.value.textContent,u.value=!0,g.selectNodeContents(n.value),g.collapse(!1),b.removeAllRanges(),b.addRange(g)),u.value===!1){o.value=!1,a.value=-1;return}if((n.value.textContent||"").lastIndexOf(`@${e.promptAgentName} `)!==-1){const _=document.createRange();_.setStart(n.value,0),_.setEnd(g.endContainer,g.endOffset);const{top:N,right:I}=_.getBoundingClientRect(),C=c();r.value={top:N-C-5,left:I+5,height:C},a.value===-1&&(a.value=0),o.value=!0}else o.value=!1,a.value=-1},c=()=>{const b=e.items.length*38-6;return Math.min(b+28+20,e.height)},h=A=>{var k;if(!n.value)return;const b=window.getSelection();if(!b||b.rangeCount===0)return;const g=((k=n.value.textContent)==null?void 0:k.replace(/\s*$/,""))||"";n.value.textContent=`${g} ${A.label}`;const x=b.getRangeAt(0);x.selectNodeContents(n.value),x.collapse(!1),b.removeAllRanges(),b.addRange(x),w()},p=async A=>{if(!o.value||!e.items||e.items.length===0)return;switch(["ArrowUp","ArrowDown","Enter","Escape"].includes(A.key)&&A.preventDefault(),A.key){case"ArrowDown":a.value++,a.value>=e.items.length&&(a.value=0);break;case"ArrowUp":a.value--,a.value<0&&(a.value=e.items.length-1);break;case"Enter":a.value!==-1&&h(e.items[a.value]);break;case"Escape":w();break}await i.nextTick();const b=a.value>0?".f-chat-suggestion-panel-item--current":".f-chat-suggestion-panel-header",g=document.querySelector(b);g==null||g.scrollIntoView({block:"nearest",behavior:"smooth"})},m=A=>{n.value&&!n.value.contains(A.target)&&w()},w=()=>{u.value=!1,o.value=!1,a.value=-1};i.onMounted(()=>{document.addEventListener("click",m)}),i.onUnmounted(()=>{document.removeEventListener("click",m)});const y=A=>{const b=A.iconUrl||"",g=A.icon||"fx-icon fx-icon-sender_task";return i.createVNode(i.Fragment,null,[b?i.createVNode("img",{alt:"suggestion item icon",src:b},null):i.createVNode("i",{class:g},null),i.createVNode("span",{class:"f-chat-suggestion-panel-item-label"},[A.label])])};return()=>{var A;return i.createVNode("div",{class:"f-chat-suggestion-container"},[i.createVNode("div",{ref:n,class:"f-chat-suggestion-input",contenteditable:"true",onInput:f,onKeyup:f,onKeydown:p,"data-placeholder":l.value},null),o.value&&i.createVNode("div",{class:"f-chat-suggestion-panel",style:{top:`${r.value.top}px`,left:`${r.value.left}px`,height:`${r.value.height}px`}},[i.createVNode("div",{class:"f-chat-suggestion-panel-header"},[e.title]),i.createVNode("div",{class:"f-chat-suggestion-panel-container"},[(A=e.items)==null?void 0:A.map((b,g)=>i.createVNode("div",{key:g,class:["f-chat-suggestion-panel-item",{"f-chat-suggestion-panel-item--current":g===a.value}],onClick:()=>h(b),onMouseenter:()=>a.value===g},[y(b)]))])])])}}});yr.install=e=>{e.component(yr.name,yr)};const yl={type:{type:String,default:"Todo"},message:{type:String,default:""},items:{type:Array,default:[]},customClass:{type:String,default:""}},xr=i.defineComponent({name:"Todo",props:yl,setup(e){const t=i.ref(!0),n=i.computed(()=>{var o;return(o=e.items)==null?void 0:o.length});function u(){t.value=!t.value}return()=>i.createVNode("div",{class:["f-chat-message-todo",e.customClass]},[i.createVNode("div",{class:"f-chat-todo-message"},[e.message]),i.createVNode("div",{class:"f-chat-todo-list"},[i.createVNode("div",{class:"f-chat-todo-header",onClick:u,role:"button",tabindex:0,onKeydown:o=>o.key==="Enter"&&u()},[i.createVNode("span",{class:"f-chat-todo-header-icon-slot"},[i.createVNode("span",{class:"f-chat-todo-header-icon"},[i.createVNode("i",{class:"fx-icon fx-icon-task-record"},null)]),i.createVNode("span",{class:"f-chat-todo-header-expand"},[i.createVNode("i",{class:t.value?"fx-icon fx-icon-foldup":"fx-icon fx-icon-expanddown"},null)])]),i.createVNode("span",{class:"f-chat-todo-header-label"},[i.createTextVNode("待办任务")]),i.createVNode("span",{class:"f-chat-todo-header-count"},[n.value])]),t.value&&i.createVNode("div",{class:"f-chat-todo-content"},[i.createVNode(nr,{items:e.items},null)])])])}});xr.install=e=>{e.component(xr.name,xr),e.component(nr.name,nr),e.component(su.name,su),e.directive("overflow-tooltip",bi)};function En(e){return e.toolResultApplied===!0||String(e.result??"").trim().length>0}const wr=i.defineComponent({name:"FXToolUseBatch",props:{content:{type:Object,required:!0}},setup(e){const t=i.computed(()=>{const f=e.content.toolCalls;return!f||f.length===0?!0:f.every(En)}),n=i.computed(()=>t.value?`共调用 ${e.content.totalCount??e.content.toolCalls.length} 个工具`:"正在调用工具"),u=i.ref(!t.value),o=()=>{u.value=!u.value};i.watch(t,f=>{f&&(u.value=!1)});const r=f=>{En(f)&&(f._expanded=!f._expanded)},a=f=>{const c=En(f),h=f.success===!1;return{"f-chat-tool-use-batch-item":!0,"is-done":c&&!h,"is-error":h,"is-run":!c&&!h}},s=f=>{const c=En(f);return f.success===!1?"执行失败":c?"执行成功":"调用中"},l=f=>{const c=En(f),h=f.success===!1;return c||h?"Done":"Working"},d=f=>f.toolDescription?f.toolDescription:f.command?`{ command: ${f.command} }`:f.toolName??"tool";return()=>i.createVNode("div",{class:"f-chat-tool-use-batch"},[i.createVNode("div",{class:"f-chat-tool-use-batch-header",onClick:o},[i.createVNode("span",{class:"f-chat-tool-use-batch-title"},[n.value]),i.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:u.value?"rotate(-90deg)":"rotate(90deg)",transition:"transform 0.2s ease"}},null)]),u.value&&i.createVNode("div",{class:"f-chat-tool-use-batch-body"},[e.content.toolCalls.map(f=>{const c=En(f),h=f.success===!1,p=c||h,m=!!f._expanded;return i.createVNode("div",{class:a(f)},[i.createVNode("div",{class:"f-chat-tool-use-batch-item-header",onClick:()=>r(f)},[i.createVNode("i",{class:"fx-icon fx-icon-thinking_tool"},null),i.createVNode("span",{class:"f-chat-tool-use-batch-item-text"},[d(f)]),i.createVNode("div",{class:"f-chat-tool-use-batch-item-status"},[i.createVNode(wn,{status:l(f)},null),i.createVNode("span",null,[s(f)])]),p&&i.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:m?"rotate(-90deg)":"rotate(90deg)",transition:"transform 0.2s ease"}},null)]),m&&p&&i.createVNode("div",{class:"f-chat-tool-use-batch-item-result"},[f.errorMessage||f.result])])}),!t.value&&i.createVNode("div",{class:"f-chat-tool-use-batch-progress"},[i.createVNode("span",{class:"f-chat-tool-use-batch-progress-status"},[i.createVNode(wn,{status:"Working"},null),i.createVNode("span",null,[i.createTextVNode("生成中…")])]),i.createVNode("span",{class:"f-chat-tool-use-batch-progress-text"},[i.createTextVNode("正在处理复杂任务")])])])])}});wr.install=e=>{e.component(wr.name,wr)};const xl={icon:[String,Object],title:[String,Object],description:[String,Object],customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},vr=i.defineComponent({name:"FXWelcome",props:xl,emits:[],setup(e,t){const n=i.computed(()=>{const a={"fx-welcome":!0};return!e.description&&(e.icon||t.slots.icon)&&(a["fx-welcome--no-description"]=!0),ye(a,e.customClass)}),u=i.computed(()=>Ae({},e.customStyle));function o(){var a,s;return t.slots.icon?t.slots.icon():e.icon?i.createVNode("div",{class:["fx-welcome--icon",(a=e.classNames)==null?void 0:a.icon],style:(s=e.styles)==null?void 0:s.icon},[Lr(e.icon)]):null}function r(){var a,s,l,d,f,c;return t.slots.content?i.createVNode("div",{class:"fx-welcome--content"},[t.slots.content()]):(e.title||e.description)&&i.createVNode("div",{class:["fx-welcome--content",(a=e.classNames)==null?void 0:a.content],style:(s=e.styles)==null?void 0:s.content},[e.title&&i.createVNode("h4",{class:["fx-welcome--title",(l=e.classNames)==null?void 0:l.title],style:(d=e.styles)==null?void 0:d.title},[e.title]),e.description&&i.createVNode("p",{class:["fx-welcome--description",(f=e.classNames)==null?void 0:f.description],style:(c=e.styles)==null?void 0:c.description},[e.description])])}return()=>i.createVNode("div",{class:n.value,style:u.value},[o(),r()])}});vr.install=e=>{e.component(vr.name,vr)};const wl={content:{type:Object,required:!0},onOpen:{type:Function}},S1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAHHUlEQVRYCV2XSY8VVRTHT9UbgAbpZpSmaRNMxIiGqZVEE1csXBoNboyJ23ahfgI/gQuXdiRx6UY2utKNEUJjQLrBEEwUmQcBBZuphzdU+fufc+tVw61Xde894/+ce+6tepml9uKhpYMbVpWTuWUTpZUjQc7oSnvUMZvvVZJO8om4ZjzLUmK2bqVZO4g+r3hLfbMHi5plc1lZztBPnftkxeGkbfbCocUvW5lNrl+ZYQdLaurCv3UKs7mlNIHuo9RXsqJtHuKZwFRmxH+4ZLbYq3mS5Z76/dOVH2WKvCjLb1e3zHQPHEszIZDNfxY0AyAT9QNHSaoJaf0KV4qHApAcBu8+NisqwBUdO3mevZcT8aRE27mEaamLCdJShEaGknM4QkQLIJqbrWgsUwy2M3osnYtDS2qDQVlkkwDIJjKYrUbSSp0bDy96ugPJeYbUsyyRjbDXwpK31HkkjDusv5rsPa1PPUzkWBlpKX+VosKleS1Aq6IcOAgmWUkQkaFwo/jcRpUJJvy6/WR7kDU37/oEMNLUtC30lV64dilhKVg8sdo5DxeLQlX0mqs1PbQYV8Qq3Uu90Bc3xJQJKYZ+U327kdREdyDuWTpJSfzMmoDo9pNBtxFG2hSvU0WTjowUhXVZfzmVyQoGBe9zZU3UZo5RGXaypBEYbhf24SvaEj617/7s2/UH1AF8AnLi2zsatnNTwwvrxv3CfryoonAVr43NQ2bv7GxaL9XAVyd7NqedpKVzN3gEQ9NT63pQPd2lPUDwrecbNsK5oHZ3vrBvzvasJbTaT4D8eH/TxoeZ0249KuyH84vExCWriOwfy+yDPb7C9t98aZ//zGkmvtTpXZNxrvRHktTDJJBOr7AT1+ujb9dmEobjFtpav7E15cC5dLasyW3rMwGs7PdN9+4tAU786Su9VEsR0OA5AKB1KQO5ouuQ56MoVW3Xs9osIGNdm1lhb4zXxiuZfTgs4Eu/pN896pE5e/qibAUddjT5ZMRhVM1FEDdj7wLgcjcYPIdX5rZ9GK6ywAHw+rbaeCU0sbVBlqIOtpCh0bU1yGMXOp45mfcdIDcOREuBjjAEDp4g61I4tx4WduleqiD4SmlZ9NnvAHgu1vbOoz4vGQzQ9o5BA0Ch9C+L/o87Pfv3Md7k3CXlI40JKGAO0s82S4Ake/yqCieajGoZdmzMbf1QqJ240rHZ6yGzcXVu4yMqw9J2bw2A0jx2kUwqWhWnOr986I9YgbQeEuz1ZZwbUEcu1XWwZ1QRlvbqWJ3+GQCeWgZyAl7J8u1dDuACAOScZKrO/ABTLgSKGwC6YqIt5Gc3DI1PXusBSJK8atc0bHSN2Wvb4nwQ7QzRz16rs7RvrGV8U9j4ugC50C3tFDbcg0DoR68dJefymwsRP5+oDNmBPGGBdr6b2ZmbdRYmWOc9Kbq/H/TZ/yV1Utg9zgm1feMt27etTv+vV7opo7XNquZcAb9UVjhX3wWxg0lIxTl+uY7w/b1DNpROLqVeQHVVWRhZldu7u/ksSu0Y6dfBIzeKVnc0tETnTjUgchYFqFRVRQntiIoote0b6uh+IzNZpnrJbOZaLbNrrF2J2zS6pVLuzlSegktTlDQth2dASETUue08pPKcfU1/7nZh99NWc630OI1TmROIGVL9dLt5v28X7xbhEpnMqw2n4RtH/HwbOkHVqTddSpYy4Kigo3ziKQe3fP0jAmXgBi+qOw/rM0NgpnX4EF8u57KmMlnmXDTdsaHhqPgcFUjE0DJ4wlCavvRkhLMpeqm7AxRmrz4pc+yvqP5Iu1ty+/WRH/4Gi9qJ49oRxfkkRJHin8537aVN8yknZkdVXIqM24mA/v7skt3m9PQlRPMXP0NYRkWttcSWotWu8wD9yfjNrxcpfT67F7QFGegnJQlyFyoMjuC1rYLXcbWmGMvBrtczsnoH9Fk/vbZDGX6G80YTG7hLYONLCNtq0qPzLyJN9KXjRMlzDT65VMU40odIW2PdHgtPjDtYKN0Sh7p8UWWau3IufxLk58lQclPzJdCHI6aCJDlFL0nGWmMZ0orm+nil8T5yUHKifVzC71JleUObCl1fPRWfLtfwPsemA5ENLo35GsvmOl3+isk/tytorObRIshC9gs49J5SMIXhJEYX7xCVpYxINkkQQGw3mYc38KFKy+aajzvlDP/dDohRmYtsYACEypybwuC8/z2rnBMDNEXBHwzeU8qaeCkLFUTqSvpuQw4qP7KbZTPNhW42hZEDtQAcF4peS6qzQEgW2CmSEyjRfUDnDlLE4g3cMXaenjDE03yQhaycyuNfag6IYIivFoppDFMOdWvt3HmScbDUgLab7louOUOuXvfQh6RsTZ3+bMVhByTCy18sHWStJim6Cb7t+LSgCRRNY0c/mEfqB5HIeSWjkUcjAjetskX9zFFPM3nWxHnT/57/Dzj0fqfCZcLZAAAAAElFTkSuQmCC",D1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAHeklEQVRYCV1XW2hcVRTd985MZjKxNaVa6cNqnwbaftSIiuiPilh8NC2tWh+lXyFFbMEKgvgABQUfIGoxWqGioFLjR0GQlqooGhptjNU+9EPaarT2IUySZt73Xtfa+5w7o3dyc885+5y91l57nzN3AnHXjoOPbJAgGEhEegNJugUNCURqzbrUk5ok6GcklK6OLrTRwc2PxPhLYkniCAswEqPtbXiWGxekEdUkxniQSCmReDSO4sGP+vYPERoQIjtGtr2JRQOB9tQ3Rh0DPMvNCnAi6cwUJROEBk4QvQluoCkBR6QR1UFgqkVYiWKufmRwT9+BrYFFLh/Dl7sSCAEN0PeEIgA044bkM3mNlkYFR9R8sq8qEIB9AMRRU6brUxiPNHol5whwfsK2yMYsZaeRYFzrwVM6GMuEoYRBBxxRZkgOQubEOeJCOFQHrl1uTEsEcKpDGwFjZ0sVC5KBLJb26kJkw0iADDPjCBHQR8n1BgRnKQknqToHIZCsRVWJoJgBeQJGUpXD3ITkEunN4n93GjXm+LaVAxGJadIyCq5ScOaRkVFIgpMQKoWSVxtlDBkZGHW+X6trdK6u6876PPsU0F+rzdwagDkkCPueEOGtr+BwPF2fNGKOnE8BSbZI2BrWTbaOSs2FHQwUFwzUni0YdRGj54dPFxX7nGVzGLXZKoi8qYWJPqNsA9X6cX3vm4Fka0ogp9ITnCBRxEi53smNZ7sz2ii1H0tirEHO682qI0pCppbVSosMx9vVRBHGUsE+78wWzaGqwJRiEe55nfPkmjnX6SICY5J8PX5AzpfPKohGipytWbROsmGWZp0zdnpEfj47iq4D5w6iAvyoShYUVgQ4YiLRVAQZBdK8AzyKIvlzelw2dW+WK2Yuome9rpy5WF75/llETZKR3L74bll/1f3eLGenT8ueI7uVIGX2kht4q88gQxYcG9VmGYBNnUyGXrqo2ZBdP+3E1qqlAMtm9cjNl6/Rw+ay4nxZu3xTaouw9tXh5+wQgl+Cp4cUI9fbpxYEfJW2y8IcKXMewHBwhhEdfz8FYWPd8vtkftdC6V+93aR31qFj78nRc2P/CcQK2MhYDaCt5BIJWZ0EzId5rWztY4ys/RaERvLlqX3y45lDKYlcJidP3Pi8LLy4lZpfzx+VDw7vgjIOQKNFmjTvLVAGS5/ECgkeJgG+6Zh/xxILtJpgCzDGYuS8d8bekMnaREqikC2kbW7Bl755CqSbEoSabdvRDIRE6Bt+VFn4sjawYZECvmQ8S/Y9EQPGInyPkvFktSS7Dr2WgrY33v1hp/w9OY61zjlJo4ipJH16EnySBGtMFcjzENIgwRIfLgiwgOAKrG0qgWrF3+Ez3+kWbAevN2sy9teIFN1W1mCcigyGvnxQJOjJkBh2bgagzAmJsvgYgZfMnvSFI0od9fVskkuKc9rxpSObl4FrH8O7QgZf2QyIcy16KzZ3BpCI+jaVVQGViOCMmEbIZiTIGo5oY8GgvWTWUlnbc6+O/f/f1fOvl1uX3ikdIMBvU42camqxEdj8+XEM6BwtQisIG9A0YDKJ8YiNQYj2HKLr730U7waZFPuXc0fSNhsPrt4qc7sW4FTt1DXMsx5Wqir90RdTwDYCxjiK0Bvw9G08qbgu0OgjuWfFFpk7Y0EKOD5xUp7et10OnvoqHctjVzx8w5OSxSefMRIE0mDgp1UHLEDe3IZkQpH5guBYKUP0yZ57evmsFXLLojtSIJ52r3/7Aux1eevgi7o7vHHJ7B5Zv2oLDqdc6/0R872SFqRhtilgcnh5aCAJFAW2aEGl54uKv/Ye+1B+++e4vjdM1Ery9sjL3qTPvpUPybLZK/UlNuGhxBTwo8q2lLYiZJQuN5zAYgO8Rs7FD6zql9nFS1OAP0onZM/h3Qoe4HzAmSPDJ76Q4ZOfp3NYJ9tuekby2JYF1gP9Akefrqb8jgv6P9tIRDUaAccwSvANWZOpyoQrSCuoAo7sPLYd1eFrCXeN5pkAmmcd1fcL3boYLVcnpR5XsYS+tbjUJzqsAZOG4HYrG2VcqV/AcvQ5B855LNci/EaIcdziYGKfKoAHLvpBm/N5saboE6CdObxrtOF4NWjHNvTA/mkHSLU5bUB0CBBGg7dzfdJG7fXEZBSwaTpABFMwh/WDC6A6B/bOnP2i8niMXmsAVEu6AxxbRtHAz7Ea3pL0Ql8dgoeXL4ICjUYFbkmOMXOOkSMRlR6RS2BBMWK+LeWwM/wpS3CsKVGBUVBRqQgQoF3B7zl1C1IwENkiJKDesf7mM5uzY1yjZ0qUNJ7wpWeAC66AoiRRrmNqiB1i+SCBLToUDPIeRw2VR5VROWF3zuAVTi2/F/DVzHGO8dYi1G1nwPY+YQQJyruYnQHfNoayHgx337V3CO4H6YhvtTW+2TICd3MRZfMONDrY2G9ilzSQKhajRqSOPSB9WFvzToLo82ceT0w4GBx+vDKkiqAnmz+5bcNUtTSQxM1enIDduih1QAUYNZWCU8SaAqJ3UcdMyI9KgTLMkNrcXKpC0owatVGCj1HUyeCn237Xn+f/Avavy/P8wtVMAAAAAElFTkSuQmCC",T1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAGCklEQVRYCYVXPY8cRRCtnt29s/EhW0KAEAkxmXUBIkBkRERwdoqFHNiW/AMwPwCJECTYEDKEnYJk4+ASIwQ6WSIjwJKNQBjO8t6Xb3dvZ5r3XlXPjIzX7rub7qmuqvfqo3v3ksXIH53fsJQvmOV1y3aqyJ8055x74sZyAys8EqS+hX2pcC9b3t6xPD/i/gSPrWxpvPrNjWt0QhvLV85/CU2AP3sQXEDmwEIiXkuKLw4sb5DnBgz/nWju9NL42Lc3LyZFbs3VZ0O7RusATrnmj0ceURMMg3JfYEVC+4dme4ctUe5Xls4MlfbQdYvHnnQ4m4N9KKVkmYiDyqzCX+C6VYArG65PcI3jq5Z3D7QsQYDEhSE8rLvGkudRbfZwDzwZSZAo69WR2ck1EAlbYLU6EAmcMrIk8dHAjP60R3+2XmHvqQ1XlBuC8ifA4Q+ZObL8cBcLuGGz4afoQ63LGl+wn4aM131I0fIpSJ42oNws6KmtMyEEVRzNa8vTmVUrgyBHfwhbme+DwY6s3YF7gY+lBErtqM9RIpQ8hCUbNkePDFHjICp96DBJjNgnMKoSEiFmkvHxRAKljllHDdGfPWeDd8+0RssWeTbFmf/b6p82rdn8TuDMVhKZx7LBkoBhaR/5FDAYo10QMY5O3VgNxoXQMuAiT6vHrHr1NRu9f85GF68QGqWAPQJp2CN1NKCOqhP6XwZ0aZAAvCpbWLAB0b/taHYnciwBw1AoONUnnsdSibfB66dt8cbb1vx40xKzTjHLESWhLUsmAoxQ+2DmelQEa8gpqXjme2Pn40uWD3CrjnAMkV8RxX56bs1OfHDZVk6/Ke3hW+/Y9NYPOsIJfhrcJ06A0bvD1rNH3kPhkjwGoLQCoP7ApZJWcIeJrQensu3v2v7Xn7Wa1YuvWLPAKSEYH0cLTA7u5UYPtHWRGSJGOK5EdNaMNaSH/tA1ipgSSoM/MEEBRCjv7VhzsOfKo5Wwhd99NGiEzblk2nuATUFmBBJWmXHBoBFd1hEgGOOuAMwf/ja4L3hbVmtrVqEXOOr7f8q0gY90iM+CdngW6HjoeHp2QCwqu5YdHKxbWy38pCR8KPiJAYfB0KqXXrbjGx+2qvOtW/CJXto9tLRoeA20/tyvLiIHLxdPP1rGKVbBr3g++elXZbl0rrfv2+x7fOTvPrJqhtuU4KHdD2qo1DPKsqvLhykqvcAz1G4uBexvzH/9xfa++MTyPw+swtnnFayysczhqs1Ax4ZpB1TR6Hnswy/u/W6HiEwnAGWKFpBdgzov7t2x+u5ddPxR15xQA7TK1XMrG2SgE1GJgyTaDOAY0VkZ9YNtm25e14VT0XGDCNnEPG6oM4n51VuuWQBTCJ+8V9Q1ESTXOAVINSPhoMPY1CvXIoAalkGwR1O9hTvZUVChy0icgH5SQEbY1ORgy/pwHJ4C+HNWWGBQsdGxxCLI9DhRRTo8+z4IFsThvUp4Q0CciOZazChe9FUqdMN6qGMUtHQSxIMGodEu/J0OSdhnX+s6jjRTKzETEWubXVhQ1hGCInwPWRfX7ZWCXiR3Im5EIQbUieWXkIv4ZN0LZ+nrhZBcADxwhNeZoQek6OmXPIBdB67guf7rD5vf/lmixZ3fPAr2Db+UoocIXgaBCihTTncdtaIIDd+wNL981lUk6BQadXe2xXRuNb731XErVgBNAGfDMQuBIIziVJBsLrgrMp/df5FxH1dxVxdFQSLBjjPTqT+ACZDvWFOmjpfPSLFkFEiIp8/+HutuW/b0OSmMSsNo1tEEKCJlivmFpCIhrKt+zltQEnIQzvKh1y7dkjMzpObBTfBxl7dEVMa8fl2BEYo5P8kierJl1RU/HQDAQQsIEZ0ErQuQXIe4aIiMpS1WdOyKYYLInSkB4mZzNnINDkSNElBXOP7AmpEX+5IFN4GcWQ0dylLK42r4+dVriHBs0XSQx5CKrwXooCFwYL3AMeYCGiJXgwvulqwK3bWZxvELN25fI4rG7NJ7G/jywf+Q13Ou9d+SosHnQDPZb69rAtFIgHSmX1JwmfaYBRdQypX0sTfB2xayKHDK/wNolX2UI+Wo7QAAAABJRU5ErkJggg==",vl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAGLUlEQVRYCW1XTY9UVRCt19M9MwyiAxojRI1REImJRAfQhcSVGmJINMG9G5LRH+DOxJ0JP0BnpYlbMCYqGBciJmqIZiAsSARUUDQoYGjmo2emP97znFNVr3vUm+n76ladqjpV9973oLAYcyf6hwZlOVtVNmNWTVcQDH9lPLnGcr1Oa9cTRoD8KEoerstS3m1g5pe71dw7h6eP0b3g9O7x7ntwnKUsR4AzoQIymGzUU/DAFDlS53Il0qlTnABSJpHOGnzKau7IG1teL7zywVE6OJjoQnIGB1gEmEk4JQ0yAqWvP9PPn8DV/obkpQ1K4pClarzaZNs9OuEcnlyVY1UBzDEk586upUF/9ZJCFkM5Wi9df1B58iRkg9kmwDNKFoFSromMZmBzMPRYR4w6D+BEA5d4PJHTVteEkr/jihkQKKcVFEwC7wePieg10pG0J5BrVsuhp+SR7ZO/GStfQXKC3IczcDjszdpZQQiihlgXSu5BqKXhxDWDSRHY/9Ex/1qvtH5fIT00fWpsZc0S7KTjlEMALGSIR9hFbAQ7gD8H9byyVVVgnyskxY+x0y+6kddaPpianS69PcmGcQ9UHzw3iQcdkhDFPFxsrcf2ZNhSkTEQ4chO1nLk8u0FgayITFOJ7amvTlbAUlLO5PLRNPLCUtqiPkfJ3rsjY52Hrs2sHuFlzRZxlQmFcXOty+SRX77ug7nGupBFEkQ5zJKbXGTlmXy8ZfbwVp3PCJbtrez6rYHduxm84fjz731bXoGAxe5HWtr728ulbb6jIUI5sWM9HMRzP63VuZI43wNiNMpy01RhLz09kf7rnp9+t2J7do7b1rvHbP5C1z76umP7do3by/un7OT8ij32YMtmdv7Xd7FT2rlLIMBo4kypwBmI0yklbdAvLFV2/PSq5AP7JmxsrLCvzq4Zg1y93reb7YG9dmCjPbmjZafPN+z5PZN2a3FgX55ZtW1bxuzCr13b8UDL9u6atD9u9O3UmRXr4lZkh1UscnGNLXAm2ps4uWs9s/NXBqL64l4QgHTxas/+XvDXX3uxtLOXevbUo+N2+OAmG28VdvTzRet2K7v8Z99+uVbZxHgBAmbtpdJ++JFfH4XD5KKvK2uocnSh0tF3q5PxL5c8wond4X4y1klUxXvO5Feu9ez85R46Bgv/COCPI3R8oaW/Y/xcNWpsbIWS00/ew0lBY8lte+i+pjWxNRzb7mnaXTg3HCLBp1Y+1cRCqyIC0BDBTB6OTKDfaBTaAKa+iQvywt4NuAGlXfitqy4cfHZK4enivu6stdjzGxHvi4hFIg2COTJ4rl0nkybZASV6/xOTdufGhrbh41PL2ord2yds+zZcz4g39GRsj18zDCNj6sIqOJR8cngy7pGvQ6n1lk0Ne+bxCfsL74MzF7t2Ewfzm3Orgrzy3EYrsBN52t1P80jMOEcKzWuIJEoUCrYlB/Wf4d4z6GIHOBhaOHSffNuxazd6/j2A8ovvO7pu9JvCK2CxY9iann14YsFuLQ08OWxej8fPPMVb7y9Iw9ZNTfo+8YPCl0SCRBLp64aIpH/3l/Bu4A0qS7+iDJbb4P6O80JhHLEzXvx7wFkNQXCKTnhyuqENwcAZx+cXFrWcJGjHj3aHZnL6pw7PkBm76Szp6AB3pByB5Ip1EsKTATTok2v5cwoTA6UOqnXdFMavLTrgrfWlV5nJGYryuqAef0hIoBoiaJJ1/3BAhxRXb1vkxJZx6/xjFExjG+EBMEP9K7nI0FZXTfL8ZXCW5qW4PgqAVqE4YYx2Qy8iad2mgOTGEXjpXB5JBMjwuolu+DipoT99kojLDnRdA1esTUZM6RX6s24jnWFXQ4gbxbJy+KkiCIpDaMh08k5QiT/4JibIt/EmtPkaSBKkpwkPRNJHRCpXpt3JMoHDk3ztzK2iDVONYWwO6fEoivkGPmhzDgybql3PXD5wykoVFEpWUXeHQairq/QYo8Xw4HGt6oEtkLtxZBb/SxWJCAaDQmmKKpJU2JTL80HjeOpEUBrows6Htg2C5HSwau6Dt+8/5kcWyjfn2oemWgP8D7kxMygH00QziLd25E3HKBiqHvIy3oTkJ10IddsVIBK73AZ0vrBCyenzD7OyHHaTkJSSAAAAAElFTkSuQmCC",F1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAGkElEQVRYCZVXS2udRRh+Z+Y7zTFtk5iml7S1XpBW3HhJdVER0YUKikhtRNCFF5TYheLWjX/AlRuzcOnO/AXXIpiFG0URoUWq0KJpLb2eb8bned6ZcxLaCP1O5szMe33ey8z5Eqw+5czyKSt5Bdsli3vnRB6dB+k6lgV/2SVLsYJ1IE108pw23jf6plk6pWyEYOuhhNXwyPdrNBj4Vc689qXlQudm3QGoJS2t9GbX/8B6hOEgCpzROeexQ4EjHRTSsZ/IEXjjYV31ILuaHl3/MHjk/TdEaHEPxvTYkBzlq2Y3zrkzOWD0XNBJM+h7OmqOmyPOkmsgMvRDDaDYcoShFQqFMJRz2a4oIYbtFOgzQq40ykmLUNL0zoVkVJrmtM4OGNbgXCAzs0SdvBLxtUTDJd1dIyPD0+xC2HezKFa0QKXxqBmAtNEwsyFwVR9eW5kcOAWd53KSX4pANRfibjA7qgMEnXiEboB6oIYZ8R0A00iDeOi4OQM4lY00Aa3louaY5mup5zIXA1WQYndMJlHSMI1x8shCYhlEqWwH6ptJXb0Hqh6BKTuTyEGRXdqn7a6EnbCBVqiIZZBfAjJRFKw0a2V0ofJcxh1WueGDFhc/RtvcZ+HKT5bPfV5PEfjVXusDZQBgOjUYFkSmR7ItddUJJqWWWRj9gx2OpTLjdOmCF+//wkLnV4jNPm1xeK/1Py+jd27QEP5q9DLrPtBZ6MPKbChZ32JMPUd1rgzBCPulloV8zxzoO5+YOJcW9KaOmO1+EjtPdyvn5pm5B5+jatE4hqoNWpATp8EM+mWXDMpoPVa+ZpS3PgH3inULEJnUXmv6Aw3h07l2mDxiORKtRegArFu0MjyGXpweN1cDGP79zsqNP7cgKFd+Mbv2O474rLJD+5ujp++uaZChk1AJbhhQMq5jgCmocTr8KUpwl+WzV61c/FZZyrhUvD+GuNI/s7BwysKOQ1au/WblwtrYoXV7LfTXcLtfZujj0bErme7mvNWUWfBaUzxb3PeuhcT7ArIHTlu+hIjzZb+cEk4SLjLrL1r56ysWzUEBuHe727DBfrQNrvZ8E1Y8814CbPSppWjN5bTeytRRi7sel3N+xanDFuZfrWWAicE+2GuAGRBLWTPK7OkukCb6ASAkWwGo2SRMAUfejJUesUA5LbxB5pYnLryOfbIyWJA4v5Q90FgW+sjQLfhFVXZrf/HHjld76wdlwDveETnD1wSk6KePbnHOTZxaNNtzEg05lKPMIA68b/HY1xbnXxTNywobygiUiIo2cSpCGKg8AtDq3hQQNl4PMNCAac8r9HfbJy2chBxKhBH3v2Np/gVcKwNLix9Y2H3CecyCDhe/HEzARVMGe5WFSOfNMaPPPVFSFgqoV9z1mO9v852QmTL1gIWZpwD05S0S3eGPoI9jiw9tFf4EMxPVfEi4T9DUuoi8duRUMIicYOL880hV6+Mt9sebwf43bXDo9HjfFiENLR35pDomDHwULPGwN1CyHQhQkFgbDU5g6tNZmn2m2dt27maO43jyB+3WJ+18GC9ZL7kzOpSIl4L+GK5fxUI3YbCucebEtoZvdbU9pTv4tmVcYq2nVIoGBnHXDPAi4rHBrRdYJ9zRc89tb/UOOMxOd/A9aHhe+T6oNTMOmpqQDjWUCQji7k7TD92Bm/8XTeilsuMgfKC8uFvgRs656ASoOm73QRldsv7SDxaG90DQz8ikFblqg4aIna/tfJw+6dsql684T3XHEgBcBl0w+vUtvWixRkKI+rMU/egm5lE957xKUB798NChQnBL1OOzmcaoMhoM/nmKYoy4H/HyVyLWLi4A0MGbKH8YIKgLhYrsVl6faETPFZigwU+gRUWhN0kH4imEBYJinWkLkYHOtTsmSOjw5cfFuIU+3gnj9bMb6Po5Jlo/GrwsACJiUDoydtRtQIN0LjpYtERjmimLlcCTyHPODtcLBznIBkBRBU5rHORvENI6BciQIISYnqj3ZUaDCw1rvLspmoQoEgT4z1uCnA9Pd4IcR4QMdSjHwLCUHdpX6jETJIjrAFZWBZdMDAFhrZlGiFGZhqIG1jLMmUB0jjXzzabTnv9ZMnK3x5rTTguyZZq0kPNq5H+psA0QkgFCjwaT0FJwclVj0wSZ47bGTOBbmhNcOVYw7CsPSCo0A5/ds3+vSYb78uPxU31/cwUAlnLf490aDqqThppyPClthltlajyD54C9nNKvNggQvA3Q1lFOOD+/Rjv/AYfYvIrlGomFAAAAAElFTkSuQmCC",Ar=i.defineComponent({name:"FChatAttachmentPreview",props:wl,emits:[],setup(e){function t(s){switch(s.toLowerCase()){case"doc":case"docx":return S1;case"xlsx":case"xls":return D1;case"ppt":case"mobi":return T1;case"txt":return vl;case"png":case"jpg":case"jpeg":case"gif":return F1;default:return vl}}function n(s){return s.icon?s.icon:t(s.type||"")}function u(s){if(s===0)return"0 B";const l=1024,d=["B","KB","MB","GB"],f=Math.floor(Math.log(s)/Math.log(l));return parseFloat((s/Math.pow(l,f)).toFixed(2))+" "+d[f]}async function o(s){var l;(l=e.onOpen)==null||l.call(e,s)}async function r(s,l){s.stopPropagation(),s.preventDefault();const d=sn(l);d&&await Or(d,l.name)}function a(s,l){const d=u(s.size||0),f=n(s),c=sn(s);return i.createVNode("div",{key:l,class:"f-chat-attachment-preview-card"},[i.createVNode("div",{class:"f-chat-attachment-preview-card-inner"},[i.createVNode("div",{class:"f-chat-attachment-preview-main",role:"button",tabindex:0,onClick:()=>o(s),onKeydown:h=>h.key==="Enter"&&o(s)},[i.createVNode("div",{class:"f-chat-attachment-preview-icon-wrapper"},[i.createVNode("img",{src:f,alt:""},null)]),i.createVNode("div",{class:"f-chat-attachment-preview-info"},[i.createVNode("div",{class:"f-chat-attachment-preview-name",title:s.name},[s.name]),i.createVNode("div",{class:"f-chat-attachment-preview-meta"},[d&&i.createVNode("span",null,[d])])])]),c?i.createVNode("button",{type:"button",class:"f-chat-attachment-preview-download-btn","aria-label":"下载附件",title:"下载",onClick:h=>r(h,s)},[i.createVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[i.createVNode("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4","stroke-linecap":"round","stroke-linejoin":"round"},null),i.createVNode("polyline",{points:"7 10 12 15 17 10","stroke-linecap":"round","stroke-linejoin":"round"},null),i.createVNode("line",{x1:"12",y1:"15",x2:"12",y2:"3","stroke-linecap":"round","stroke-linejoin":"round"},null)])]):null])])}return()=>{const s=e.content;if(!s)return null;const{message:l,attachments:d}=s;return i.createVNode("div",{class:"f-chat-attachment-preview"},[l&&i.createVNode("div",{class:"f-chat-attachment-preview-message"},[l]),i.createVNode("div",{class:"f-chat-attachment-preview-list"},[d.map((f,c)=>a(f,c))])])}}});Ar.install=e=>{e.component(Ar.name,Ar)},yn.install=e=>{e.component(yn.name,yn)},xn.install=e=>{e.component(xn.name,xn)};const Al={activeNavId:{type:String,default:""},displayField:{type:String,default:"text"},disableField:{type:String,default:"disable"},horizontal:{type:Boolean,default:!0},idField:{type:String,default:"id"},maxNum:{type:Number,default:99},navData:{type:Array,default:()=>[]},navPicking:{type:Function,default:null},valueField:{type:String,default:"num"},visible:{type:Boolean,default:!0},customClass:{type:String,default:""},customStyle:{type:String,default:""}},kr=i.defineComponent({name:"FXNav",props:Al,emits:["nav","update:activeNavId"],setup(e,t){const n=i.ref(e.activeNavId),u=i.ref(e.navData);function o(f){if(u.value&&u.value.length){let c=u.value.find(h=>h[e.idField]===f&&h[e.disableField]!==!0);c||(c=u.value.find(h=>h[e.disableField]!==!0)),c&&n.value!==c.id&&(n.value=c.id,t.emit("nav",c))}}i.watch([()=>e.activeNavId,()=>e.navData],([f,c])=>{u.value=c,o(f)});const r=i.computed(()=>e.visible&&u.value.length>0);function a(f){f.disable||f.id===n.value||Promise.resolve().then(()=>{const c=e.navPicking;return c&&typeof c=="function"?c(f):!0}).then(c=>{let h=!0;typeof c=="object"?c.canContinue||(h=!1,c.message&&console.error({message:c.message,position:"top-center"})):h=c,h&&(n.value=f.id,t.emit("update:activeNavId",f.id),t.emit("nav",f))})}const s=i.computed(()=>{const f={"farris-nav":!0,"farris-nav-vertical":!e.horizontal};return ye(f,e.customClass)}),l=i.computed(()=>Ae({},e.customStyle));function d(f){u.value=f,o(n.value)}return t.expose({updateNavData:d}),()=>{var f;return r.value&&i.createVNode("div",{class:s.value,style:l.value},[(f=u.value)==null?void 0:f.map(c=>i.createVNode("div",{class:["farris-nav-item",{active:c[e.idField]===n.value},{disabled:c[e.disableField]}],onClick:()=>a(c)},[i.createVNode("div",{class:"farris-nav-item-link pt-3"},[i.createVNode("span",{class:"farris-nav-item-link-text"},[typeof c[e.displayField]=="function"?c[e.displayField]():c[e.displayField],c[e.valueField]&&i.createVNode("div",{class:"farris-nav-item-tag"},[c[e.valueField]<=e.maxNum&&i.createVNode("span",{class:"tag-text"},[c[e.valueField]]),c[e.valueField]>e.maxNum&&i.createVNode("span",{class:"tag-text"},[e.maxNum,i.createTextVNode("+")])])]),i.createVNode("div",{class:"farris-nav-item-bottom-line"},null)])]))])}}});kr.install=e=>{e.component(kr.name,kr)};const kl={buttonContent:{type:String,default:'<i class="fx-icon fx-icon-search"></i>'},customClass:{type:String,default:""},modelValue:{type:String,default:""},popupHost:{type:Object},data:{type:Array,default:()=>[]},placeholder:{type:String,default:"请输入关键词"},idField:{type:String,default:"id"},textField:{type:String,default:"name"},maxHeight:{type:Number,default:350},loading:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},showDropdown:{type:Boolean,default:!0}},Cl={data:{type:Array,default:()=>[]},onConfirmResult:{type:Function,default:void 0},onSearchedValue:{type:Function,default:void 0},idField:{type:String,default:"id"},textField:{type:String,default:"name"},maxHeight:{type:Number,default:350},loading:{type:Boolean,default:!1}},Au=i.defineComponent({name:"FXSearchBoxContainer",props:Cl,emits:["confirmResult","searchedValue"],setup(e,t){const n=i.ref(e.data),u=i.ref(""),o=i.computed(()=>{if(!u.value)return n.value;const d=u.value.toLowerCase();return n.value.filter(f=>String(f[e.textField]??"").toLowerCase().includes(d))});function r(d){u.value=d}function a(d){t.emit("confirmResult",d[e.textField]),t.emit("searchedValue",[d])}function s(d){return t.slots.default?t.slots.default({item:d}):i.createVNode("span",null,[d[e.textField]])}const l=i.computed(()=>{const d={padding:"8px"};return e.maxHeight!==void 0&&e.maxHeight>0&&(d.maxHeight=`${e.maxHeight}px`),d});return i.watch(()=>e.data,d=>{d!==n.value&&(n.value=d)}),t.expose({search:r}),()=>i.createVNode("div",{class:"search-box-container f-utils-overflow-xhya position-relative",style:l.value},[e.loading&&i.createVNode("div",{class:"search-box-loading"},[i.createVNode("i",{class:"fx-icon fx-icon-bubble_step_loading fx-icon-spin"},null)]),i.createVNode("ul",{class:"search-box-list"},[o.value.map(d=>i.createVNode("li",{class:"search-box-item dropdown-item",key:d[e.idField],onClick:()=>a(d)},[s(d)])),!e.loading&&o.value.length===0&&i.createVNode("li",{class:"search-box-empty"},[i.createTextVNode("无匹配结果")])])])}}),Cr=i.defineComponent({name:"FXSearchBox",props:kl,emits:["update:modelValue","change","selectedValue","clickButton"],setup(e,t){const n=i.ref(),u=i.ref(),o=i.ref(),r=i.ref(e.modelValue),a=i.ref(!1),s='<i class="fx-icon fx-icon-clockwise fx-icon-spin"></i>',l=i.computed(()=>e.loading?s:e.buttonContent);i.watch(r,x=>{var k;(k=o.value)==null||k.search(x),t.emit("update:modelValue",x)}),i.watch(()=>e.modelValue,x=>{r.value=x});function d(x){r.value=x,m()}function f(x){const k=r.value;t.emit("change",x,{oldValue:k,newValue:x})}function c(x){t.emit("selectedValue",x)}function h(){t.emit("clickButton",{})}async function p(){var x;a.value=!0,await i.nextTick(),(x=u.value)==null||x.show(n.value)}function m(){var x;(x=u.value)==null||x.hide(),a.value=!1}function w(){a.value?m():p()}function y(x){const k=x.target.value;r.value=k,f(k),e.showDropdown&&k&&p()}function A(){e.showDropdown&&r.value&&p()}function b(){r.value="",t.emit("update:modelValue",""),m()}t.expose({togglePopup:w,hidePopup:m,showPopup:p});const g=i.computed(()=>{const x=ye({},e.customClass);return["f-search-box",{"f-search-box-disabled":e.disable},...typeof x=="string"?[x]:Array.isArray(x)?x:[]]});return()=>i.createVNode("div",{class:g.value},[i.createVNode("div",{class:"f-search-box-input-group",ref:n},[i.createVNode("input",{class:"f-search-box-input form-control",type:"text",placeholder:e.placeholder,value:r.value,disabled:e.disable,onInput:y,onFocus:A},null),r.value&&!e.disable&&i.createVNode("span",{class:"f-search-box-clear",onClick:b},[i.createVNode("i",{class:"fx-icon fx-icon-close"},null)]),i.createVNode("span",{class:"f-search-box-button",onClick:h,innerHTML:l.value},null)]),e.showDropdown&&i.createVNode(Kt,{ref:u,placement:"bottom-left",keepWidthWithReference:!0,showArrow:!1,fitContent:!0,limitContentBySpace:!0,host:e.popupHost},{default:()=>[i.createVNode(Au,{ref:o,data:e.data,idField:e.idField,textField:e.textField,onConfirmResult:d,onSearchedValue:x=>c(x),loading:e.loading,maxHeight:e.maxHeight},t.slots)]})])}});Cr.install=e=>{e.component(Cr.name,Cr),e.component(Au.name,Au)};const Qo={data:{type:Array,default:()=>[]},view:{type:String,default:"ContentView"},customClass:{type:String,default:""},itemClass:{type:[String,Function],default:""},idField:{type:String,default:"id"},textField:{type:String,default:"name"},titleField:{type:String,default:"name"},valueField:{type:String,default:"id"},group:{type:Object,default:void 0}};function N1(e){const t=i.ref([...e.data]),n=i.ref([]),u=i.ref(""),o=i.computed(()=>{var h;const c=e.group;return c!=null&&c.enable&&((h=c.groupFields)!=null&&h.length)?r(t.value,c):t.value.map((p,m)=>({type:0,data:p,originalIndex:m}))});function r(c,h){const p=[],m=h.groupFields[0],w=new Map;c.forEach(A=>{const b=String(A[m]??"");w.has(b)||w.set(b,[]),w.get(b).push(A)});let y=0;return w.forEach((A,b)=>{p.push({type:1,data:{[m]:b},groupField:m,groupValue:b,originalIndex:y++}),A.forEach(g=>{p.push({type:0,data:g,groupField:m,groupValue:b,originalIndex:y++})})}),p}function a(c){t.value=[...c],n.value=[],u.value=""}function s(c){u.value=c;const h=t.value.find(p=>p[e.idField]===c);h&&!n.value.includes(h)&&(n.value=[h])}function l(){n.value=[],u.value=""}function d(c){const h=n.value.indexOf(c);h>=0?n.value.splice(h,1):n.value=[c],u.value=c[e.idField]}function f(c){return n.value.includes(c)}return{data:t,visualData:o,selectedItems:n,activeItemId:u,updateDataSource:a,activeRowById:s,clearSelection:l,toggleSelection:d,isSelected:f}}const I1=i.defineComponent({name:"FXListViewItem",props:{...Qo,item:{type:Object,default:()=>({})},index:{type:Number,default:0},isActive:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1}},emits:["clickItem"],setup(e,t){const n=i.computed(()=>({"f-list-view-item":!0,"f-list-view-item-active":e.isActive}));return()=>i.createVNode("li",{class:[n.value,typeof e.itemClass=="function"?e.itemClass(e.item,e.index):e.itemClass],onClick:()=>t.emit("clickItem",e.item,e.index)},[t.slots.default?t.slots.default({item:e.item,index:e.index,selectedItem:e.isSelected?e.item:null}):i.createVNode("span",null,[e.item[e.textField]])])}}),O1=i.defineComponent({name:"FXListGroupItem",props:{groupData:{type:Object,default:()=>({})},groupField:{type:String,default:""},groupValue:{type:String,default:""},index:{type:Number,default:0}},setup(e,t){return()=>i.createVNode("li",{class:"f-list-view-group-item"},[t.slots.default?t.slots.default({item:e.groupData,index:e.index}):i.createVNode("div",{class:"f-list-view-group-header"},[i.createVNode("i",{class:"fx-icon f-accordion-expand"},null),i.createVNode("span",null,[e.groupValue])])])}}),_r=i.defineComponent({name:"FXListView",props:Qo,emits:["clickItem"],setup(e,t){const{visualData:n,activeItemId:u,updateDataSource:o,activeRowById:r,clearSelection:a,toggleSelection:s,isSelected:l}=N1({data:e.data,idField:e.idField,group:e.group}),d=i.computed(()=>ye({"f-list-view":!0},e.customClass));function f(c,h){s(c),t.emit("clickItem",c,h)}return t.expose({updateDataSource:o,activeRowById:r,clearSelection:a}),()=>i.createVNode("div",{class:d.value},[i.createVNode("div",{class:"f-list-view-content"},[i.createVNode("ul",{class:"f-listview-items"},[n.value.map((c,h)=>c.type===1?i.createVNode(O1,{key:`group_${c.groupValue}_${h}`,groupData:c.data,groupField:c.groupField,groupValue:c.groupValue,index:h},{default:t.slots.group}):i.createVNode(I1,{key:`${c.data[e.idField]}_${h}`,item:c.data,index:c.originalIndex,isActive:c.data[e.idField]===u.value,isSelected:l(c.data),itemClass:e.itemClass,textField:e.textField,onClickItem:f},{default:t.slots.content}))])])])}});_r.install=e=>{e.component(_r.name,_r)};const ku=i.defineComponent({name:"FXAgentThinkingMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content,n=t.streamStatus==="end"||t.streamStatus===void 0;return i.createVNode("details",{class:"f-ec-thinking",open:!0},[i.createVNode("summary",{class:"f-ec-thinking-summary"},[i.createTextVNode("思考过程"),n?null:i.createVNode("span",{class:"f-ec-thinking-badge"},[i.createTextVNode("进行中")])]),i.createVNode("div",{class:"f-ec-thinking-body"},[t.text]),t.sources&&t.sources.length>0?i.createVNode("ul",{class:"f-ec-thinking-sources"},[t.sources.map((u,o)=>i.createVNode("li",{key:o},[u]))]):null])}}});ku.install=e=>{e.component(ku.name,ku)};function L1(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function P1(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`#attachment:${encodeURIComponent(t)}`}function V1(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?{url:t}:{fileId:t}}const Cu=i.defineComponent({name:"FXAttachmentFileMessage",props:{content:{type:Object,required:!0}},setup(e){const t=i.computed(()=>P1(e.content.media)),n=i.computed(()=>sn(V1(e.content.media)));async function u(o){o.preventDefault(),o.stopPropagation();const r=n.value;r&&await Or(r,e.content.name)}return()=>{const o=!!n.value;return i.createVNode("div",{class:"f-ec-attach-row"},[i.createVNode("a",{class:"f-ec-attach f-ec-attach--stretch",href:t.value,target:"_blank",rel:"noopener noreferrer"},[i.createVNode("span",{class:"f-ec-attach-icon","aria-hidden":!0},[i.createTextVNode("📎")]),i.createVNode("span",{class:"f-ec-attach-body"},[i.createVNode("span",{class:"f-ec-attach-name"},[e.content.name]),i.createVNode("span",{class:"f-ec-attach-meta"},[i.createVNode("span",{class:"f-ec-attach-cat"},[e.content.category]),i.createVNode("span",{class:"f-ec-attach-size"},[L1(e.content.size)])])])]),o?i.createVNode("button",{type:"button",class:"f-ec-attach-download-btn","aria-label":"下载附件",title:"下载",onClick:u},[i.createVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[i.createVNode("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4","stroke-linecap":"round","stroke-linejoin":"round"},null),i.createVNode("polyline",{points:"7 10 12 15 17 10","stroke-linecap":"round","stroke-linejoin":"round"},null),i.createVNode("line",{x1:"12",y1:"15",x2:"12",y2:"3","stroke-linecap":"round","stroke-linejoin":"round"},null)])]):null])}}});Cu.install=e=>{e.component(Cu.name,Cu)};const R1={0:"高",1:"中",2:"低"},_u=i.defineComponent({name:"ErrorReminderMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content.errorLevel;return i.createVNode("div",{class:["f-ec-error",`f-ec-error--lvl-${t}`]},[i.createVNode("div",{class:"f-ec-error-head"},[i.createVNode("span",{class:"f-ec-error-badge"},[R1[t]]),i.createVNode("span",{class:"f-ec-error-label"},[i.createTextVNode("错误提醒")])]),i.createVNode("div",{class:"f-ec-error-text"},[e.content.errorText]),e.content.errorLink?i.createVNode("a",{class:"f-ec-error-link",href:e.content.errorLink,target:"_blank",rel:"noopener noreferrer"},[i.createTextVNode("查看详情")]):null])}}});_u.install=e=>{e.component(_u.name,_u)};const Dt="__hitl_other__";function Er(e){const t=e??"text";return t==="text"||t==="select"||t==="multi_select"||t==="confirm"||t==="form"||t==="date"||t==="number"?t:"text"}const Eu=i.defineComponent({name:"FXHitlQuestion",props:{content:{type:Object,required:!0},disabled:{type:Boolean,default:!1},pinned:{type:Boolean,default:!1},pinnedWidth:{type:String,default:void 0},onSubmitAnswers:{type:Function,default:void 0}},setup(e){const t=i.ref(!1),n=i.ref(0),u=i.ref({}),o=i.ref({});function r(_){const N={},I={};for(const C of _){const P=Er(C.ui_type);if(P==="confirm")N[C.id]=void 0;else if(P==="text"||P==="select")N[C.id]=C.default_value??"";else if(P==="multi_select")N[C.id]=C.default_value?JSON.parse(C.default_value):[];else if(P==="form"){const V={};if(Array.isArray(C.fields))for(const E of C.fields)V[E.name]=E.default_value??"";N[C.id]=V}else N[C.id]=C.default_value??"";I[C.id]={active:!1,text:""}}u.value=N,o.value=I,n.value=0}i.watch(()=>e.content.questions,_=>{Array.isArray(_)&&_.length&&r(_)},{immediate:!0}),i.watch(()=>e.content.answers,_=>{if(!Array.isArray(_)||_.length===0)return;const N={...u.value},I={...o.value};for(const C of _){N[C.id]=C.answer;const P=e.content.questions.find(V=>V.id===C.id);P&&Er(P.ui_type)==="select"&&typeof C.answer=="string"&&!(P.options??[]).some(R=>R.label===C.answer)&&C.answer!==""&&(I[C.id]={active:!0,text:C.answer},N[C.id]=Dt)}u.value=N,o.value=I,t.value=!0},{immediate:!0});const a=i.computed(()=>e.content.questions.length),s=i.computed(()=>{const _=e.content.questions;if(_.length===0)return null;const N=Math.max(0,Math.min(n.value,_.length-1));return _[N]}),l=i.computed(()=>n.value<=0),d=i.computed(()=>n.value>=a.value-1);function f(){d.value||(n.value+=1)}function c(){l.value||(n.value-=1)}const h=i.computed(()=>{var _,N;if(t.value||e.disabled)return!1;for(const I of e.content.questions){const C=Er(I.ui_type),P=u.value[I.id];if(C==="text"&&(typeof P!="string"||P.trim()==="")||C==="select"&&(typeof P!="string"||P.trim()===""||P===Dt&&(((N=(_=o.value[I.id])==null?void 0:_.text)==null?void 0:N.trim())??"")==="")||C==="confirm"&&typeof P!="boolean"||C==="multi_select"&&(!Array.isArray(P)||P.length===0))return!1;if(C==="form"){const V=I.fields??[],E=P;for(const R of V)if(R.required){const M=E[R.name];if(typeof M!="string"||M.trim()==="")return!1}}if((C==="date"||C==="number")&&(typeof P!="string"||P.trim()===""))return!1}return!0});function p(_,N){u.value={...u.value,[_]:N}}function m(_,N){var I;N===Dt?(o.value={...o.value,[_.id]:{...o.value[_.id],active:!0,text:((I=o.value[_.id])==null?void 0:I.text)??""}},p(_.id,Dt)):(o.value={...o.value,[_.id]:{active:!1,text:""}},p(_.id,N))}function w(_,N){const I=u.value[_.id]??[];I.includes(N)?p(_.id,I.filter(C=>C!==N)):p(_.id,[...I,N])}function y(){var N,I,C;if(!h.value)return;const _=[];for(const P of e.content.questions){const V=Er(P.ui_type);let E=u.value[P.id];V==="select"&&E===Dt&&(E=((I=(N=o.value[P.id])==null?void 0:N.text)==null?void 0:I.trim())??""),V==="number"&&(E=Number(E)),_.push({id:P.id,answer:E})}t.value=!0,(C=e.onSubmitAnswers)==null||C.call(e,_)}function A(_,N,I){return i.createVNode("div",{class:"f-hitl-date-wrap"},[i.createVNode("input",{class:"f-hitl-input",type:"date",value:_,disabled:N,onInput:C=>I(C.target.value)},null)])}function b(_,N,I,C,P){const V=M=>{let $=Number(_)||0;$+=M,C!==void 0&&($=Math.max(C,$)),P!==void 0&&($=Math.min(P,$)),I(String($))},E=P!==void 0&&Number(_||0)>=P,R=C!==void 0&&Number(_||0)<=C;return i.createVNode("div",{class:"f-hitl-num-wrap"},[i.createVNode("input",{class:"f-hitl-input f-hitl-num-input",type:"number",value:_,min:C,max:P,disabled:N,onInput:M=>I(M.target.value)},null),i.createVNode("div",{class:"f-hitl-num-btns"},[i.createVNode("button",{type:"button",class:"f-hitl-num-btn",disabled:N||E,onClick:()=>V(1)},[i.createVNode("span",{class:"fx-icon fx-icon-foldup"},null)]),i.createVNode("button",{type:"button",class:"f-hitl-num-btn",disabled:N||R,onClick:()=>V(-1)},[i.createVNode("span",{class:"fx-icon fx-icon-expanddown"},null)])])])}function g(_,N){const I=u.value[_.id]??"",C=o.value[_.id]??{active:!1,text:""},P=t.value||e.disabled;return i.createVNode("div",{key:_.id},[i.createVNode("div",{class:"f-hitl-option-list"},[N.map((V,E)=>{const R=I===V.label&&!C.active;return i.createVNode("div",{key:V.label,class:["f-hitl-opt-row",{"f-hitl-opt-row--active":R}],onClick:()=>{P||m(_,V.label)}},[i.createVNode("span",{class:"f-hitl-opt-row__index"},[E+1]),i.createVNode("span",{class:"f-hitl-opt-row__label"},[V.label]),i.createVNode("span",{class:"f-hitl-opt-row__check"},[R?i.createVNode("span",{class:"fx-icon fx-icon-sender_choose",style:"font-size: 20px;"},null):null])])}),_.allow_other?i.createVNode("div",{class:["f-hitl-opt-row f-hitl-opt-row--other",{"f-hitl-opt-row--active":I===Dt||C.active}],onClick:()=>{P||m(_,Dt)}},[i.createVNode("span",{class:"f-hitl-opt-row__index"},[i.createTextVNode("...")]),i.createVNode("span",{class:"f-hitl-opt-row__label"},[i.createTextVNode("其他")]),i.createVNode("span",{class:"f-hitl-opt-row__check"},[I===Dt||C.active?i.createVNode("span",{class:"fx-icon fx-icon-sender_choose",style:"font-size: 20px;"},null):null])]):null]),_.allow_other&&(I===Dt||C.active)?i.createVNode("input",{class:"f-hitl-input f-hitl-input--other",type:"text",value:C.text,placeholder:"请输入自定义内容",disabled:P,onInput:V=>{const E=V.target.value;o.value={...o.value,[_.id]:{active:!0,text:E}},p(_.id,Dt)}},null):null])}function x(_,N){const I=u.value[_.id]??[],C=o.value[_.id]??{active:!1,text:""},P=t.value||e.disabled;return i.createVNode("div",{key:_.id},[i.createVNode("div",{class:"f-hitl-option-list"},[N.map((V,E)=>{const R=I.includes(V.label);return i.createVNode("div",{key:V.label,class:["f-hitl-opt-row",{"f-hitl-opt-row--active":R}],onClick:()=>{P||w(_,V.label)}},[i.createVNode("span",{class:"f-hitl-opt-row__index"},[E+1]),i.createVNode("span",{class:"f-hitl-opt-row__label"},[V.label]),i.createVNode("span",{class:"f-hitl-opt-row__check"},[R?i.createVNode("span",{class:"fx-icon fx-icon-sender_choose",style:"font-size: 20px;"},null):null])])}),_.allow_other?i.createVNode("div",{class:["f-hitl-opt-row f-hitl-opt-row--other",{"f-hitl-opt-row--active":C.active}],onClick:()=>{if(P)return;const V=C.text;if(C.active){const E=u.value[_.id]??[];p(_.id,E.filter(R=>R!==V)),o.value={...o.value,[_.id]:{active:!1,text:""}}}else o.value={...o.value,[_.id]:{active:!0,text:C.text}},C.text&&!I.includes(C.text)&&p(_.id,[...I,C.text])}},[i.createVNode("span",{class:"f-hitl-opt-row__index"},[i.createTextVNode("...")]),i.createVNode("span",{class:"f-hitl-opt-row__label"},[i.createTextVNode("其他")]),i.createVNode("span",{class:"f-hitl-opt-row__check"},[C.active?i.createVNode("span",{class:"fx-icon fx-icon-sender_choose",style:"font-size: 20px;"},null):null])]):null]),_.allow_other&&C.active?i.createVNode("input",{class:"f-hitl-input f-hitl-input--other",type:"text",value:C.text,placeholder:"请输入自定义内容",disabled:P,onInput:V=>{const E=V.target.value,R=C.text;o.value={...o.value,[_.id]:{active:!0,text:E}};const M=u.value[_.id]??[];p(_.id,[...M.filter($=>$!==R),E])}},null):null])}function k(_){const N=u.value[_.id]??{},I=_.fields??[];return i.createVNode("div",{class:"f-hitl-field",key:_.id},[i.createVNode("div",{class:"f-hitl-form-group"},[I.map(C=>{const P=N[C.name]??"";return C.type==="select"?i.createVNode("div",{class:"f-hitl-form-item",key:C.name},[i.createVNode("div",{class:"f-hitl-form-item__label"},[C.label]),i.createVNode("div",{class:"f-hitl-select-group"},[(C.options??[]).map(V=>i.createVNode("button",{key:V,type:"button",class:["f-hitl-opt",{"f-hitl-opt--active":P===V}],disabled:t.value||e.disabled,onClick:()=>p(_.id,{...N,[C.name]:V})},[V]))])]):C.type==="number"?i.createVNode("div",{class:"f-hitl-form-item",key:C.name},[i.createVNode("div",{class:"f-hitl-form-item__label"},[C.label]),b(P,t.value||e.disabled,V=>p(_.id,{...N,[C.name]:V}),C.min,C.max)]):C.type==="date"?i.createVNode("div",{class:"f-hitl-form-item",key:C.name},[i.createVNode("div",{class:"f-hitl-form-item__label"},[C.label]),A(P,t.value||e.disabled,V=>p(_.id,{...N,[C.name]:V}))]):i.createVNode("div",{class:"f-hitl-form-item",key:C.name},[i.createVNode("div",{class:"f-hitl-form-item__label"},[C.label]),i.createVNode("input",{class:"f-hitl-input",type:"text",value:P,placeholder:C.default_value??"请输入",disabled:t.value||e.disabled,onInput:V=>p(_.id,{...N,[C.name]:V.target.value})},null)])})])])}function F(_){const N=u.value[_.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:_.id},[A(N,t.value||e.disabled,I=>p(_.id,I))])}function T(_){const N=u.value[_.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:_.id},[b(N,t.value||e.disabled,I=>p(_.id,I),_.min,_.max)])}function D(_){const N=Er(_.ui_type);if(N==="text"){const I=u.value[_.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:_.id},[i.createVNode("input",{class:"f-hitl-input",type:"text",value:I,placeholder:_.placeholder??"请输入",disabled:t.value||e.disabled,onInput:C=>p(_.id,C.target.value)},null)])}if(N==="multi_select"){const I=Array.isArray(_.options)?_.options:[];return x(_,I)}if(N==="form")return k(_);if(N==="select"){const I=Array.isArray(_.options)?_.options:[];return I.length===0?i.createVNode("div",{class:"f-hitl-field f-hitl-field--unsupported",key:_.id},[i.createVNode("div",{class:"f-hitl-unsupported"},[i.createTextVNode("暂不支持空的 select,请升级前端。")])]):g(_,I)}if(N==="confirm"){const I=u.value[_.id];return i.createVNode("div",{class:"f-hitl-field",key:_.id},[i.createVNode("div",{class:"f-hitl-confirm"},[i.createVNode("button",{type:"button",class:["f-hitl-cbtn",{"f-hitl-cbtn--primary":I===!0}],disabled:t.value||e.disabled,onClick:()=>p(_.id,!0)},[i.createTextVNode("是")]),i.createVNode("button",{type:"button",class:["f-hitl-cbtn",{"f-hitl-cbtn--primary":I===!1}],disabled:t.value||e.disabled,onClick:()=>p(_.id,!1)},[i.createTextVNode("否")])])])}return N==="date"?F(_):N==="number"?T(_):i.createVNode("div",{class:"f-hitl-field f-hitl-field--unsupported",key:_.id},[i.createVNode("div",{class:"f-hitl-unsupported"},[i.createTextVNode("暂不支持 ui_type「"),String(_.ui_type),i.createTextVNode("」,请升级前端。")])])}function U(){return a.value<=1?null:i.createVNode("div",{class:"f-hitl-pagination"},[i.createVNode("button",{type:"button",class:"f-hitl-pagination__btn",disabled:l.value,onClick:c},[i.createVNode("span",{class:"fx-icon fx-icon-arrow-left"},null)]),i.createVNode("span",{class:"f-hitl-pagination__text"},[n.value+1,i.createTextVNode("/"),a.value]),i.createVNode("button",{type:"button",class:"f-hitl-pagination__btn",disabled:d.value,onClick:f},[i.createVNode("span",{class:"fx-icon fx-icon-arrow-right"},null)])])}return()=>{const _=s.value;if(!_)return null;const N=e.pinned&&!t.value?"f-hitl-card--pinned":"",I=e.pinned&&!t.value&&e.pinnedWidth?{width:e.pinnedWidth}:void 0;return i.createVNode("div",{class:["f-hitl-card",N],style:I},[i.createVNode("div",{class:"f-hitl-card__header"},[i.createVNode("div",{class:"f-hitl-card__title-wrap"},[i.createVNode("span",{class:"f-hitl-card__title"},[_.question]),i.createVNode("span",{class:"f-hitl-card__subtitle"},[_.header])]),U()]),i.createVNode("div",{class:"f-hitl-card__body"},[D(_)]),!e.disabled&&i.createVNode("div",{class:"f-hitl-card__footer"},[i.createVNode("button",{type:"button",class:"f-hitl-submit",disabled:!h.value,onClick:y},[t.value?"已提交":"提交"])])])}}});Eu.install=e=>{e.component(Eu.name,Eu)};function M1(e,t){var u;const n=(u=e.pickActions)==null?void 0:u[t];return n||e.pickActionDefault}const Su=i.defineComponent({name:"InputRecommendMessage",props:{content:{type:Object,required:!0},onPick:{type:Function,default:void 0}},setup(e){const t=(n,u)=>{var o;M1(e.content,u),(o=e.onPick)==null||o.call(e,n)};return()=>i.createVNode("div",{class:"f-ec-recommend"},[e.content.title?i.createVNode("div",{class:"f-ec-recommend-title"},[e.content.title]):null,i.createVNode("div",{class:"f-ec-recommend-chips"},[e.content.suggestions.map((n,u)=>i.createVNode("button",{key:u,type:"button",class:"f-ec-recommend-chip",onClick:()=>t(n,u)},[n]))])])}});Su.install=e=>{e.component(Su.name,Su)};const Du=i.defineComponent({name:"LinkCardMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content;return i.createVNode("div",{class:"f-ec-linkcard"},[t.poster?i.createVNode("div",{class:"f-ec-linkcard-poster"},[i.createVNode("img",{src:t.poster,alt:""},null)]):null,i.createVNode("div",{class:"f-ec-linkcard-body"},[i.createVNode("a",{class:"f-ec-linkcard-title",href:t.url,target:"_blank",rel:"noopener noreferrer"},[t.title]),t.subtitle?i.createVNode("div",{class:"f-ec-linkcard-sub"},[t.subtitle]):null,t.relatedLinks&&t.relatedLinks.length>0?i.createVNode("div",{class:"f-ec-linkcard-related"},[i.createVNode("div",{class:"f-ec-linkcard-related-label"},[i.createTextVNode("相关阅读")]),i.createVNode("ul",null,[t.relatedLinks.map((n,u)=>i.createVNode("li",{key:u},[i.createVNode("a",{href:n.url,target:"_blank",rel:"noopener noreferrer"},[n.title])]))])]):null])])}}});Du.install=e=>{e.component(Du.name,Du)};const Tu=i.defineComponent({name:"ReferenceSourcesMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>i.createVNode("div",{class:"f-ec-sources"},[i.createVNode("div",{class:"f-ec-sources-title"},[i.createTextVNode("引用来源")]),i.createVNode("ul",{class:"f-ec-sources-list"},[e.content.items.map((t,n)=>i.createVNode("li",{key:n},[i.createVNode("a",{href:t.url,target:"_blank",rel:"noopener noreferrer"},[t.title])]))])])}});Tu.install=e=>{e.component(Tu.name,Tu)};const Fu=i.defineComponent({name:"UnknownEnterpriseMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>i.createVNode("div",{class:"f-ec-unknown"},[i.createVNode("div",{class:"f-ec-unknown-title"},[i.createTextVNode("未知类型消息")]),e.content.wireType?i.createVNode("div",{class:"f-ec-unknown-wire"},[i.createTextVNode("wire type: "),e.content.wireType]):null,i.createVNode("div",{class:"f-ec-unknown-desc"},[e.content.hint??"客户端无法识别此消息类型,已按占位展示。"])])}});Fu.install=e=>{e.component(Fu.name,Fu)},rr.install=e=>{e.component(rr.name,rr)};const B1={install(e){e.use(at).use(ur).use(or).use(sr).use(cr).use(mr).use(pr).use(gr).use(br).use(mn).use(tn).use(_n).use(Qt).use(yr).use(xr).use(wr).use(vr).use(Ar).use(yn).use(xn).use(Kt).use(An).use(kr).use(Cr).use(_r)}};O.FXAgentThinking=ku,O.FXAppPreview=at,O.FXAttachmentFile=Cu,O.FXAttachmentPreview=Ar,O.FXBubble=ur,O.FXBubbleAction=Fo,O.FXCarousel=or,O.FXCarouselItem=lu,O.FXChatPreview=sr,O.FXCoding=mr,O.FXConfirmDialog=cr,O.FXDynamicComponent=xn,O.FXErrorReminder=_u,O.FXFileOperation=pr,O.FXGenerateProcess=gr,O.FXHistory=br,O.FXHitlQuestion=Eu,O.FXInputRecommend=Su,O.FXLinkCard=Du,O.FXListView=_r,O.FXMarkdown=mn,O.FXMarkdownPreview=tn,O.FXNav=kr,O.FXPopover=Kt,O.FXPopoverDirective=es,O.FXPrompt=vu,O.FXPrompts=_n,O.FXReferenceSources=Tu,O.FXSearchBox=Cr,O.FXSearchBoxContainer=Au,O.FXSplitter=An,O.FXSplitterPane=ir,O.FXStartedTodo=Qt,O.FXSuggestion=yr,O.FXTodo=xr,O.FXTodoListItemView=su,O.FXTodoListView=nr,O.FXToolUse=vn,O.FXToolUseBatch=wr,O.FXUnknownEnterprise=Fu,O.FXUserAuth=rr,O.FXWelcome=vr,O.FXWidgetContainer=yn,O.PREVIEW_BRIDGE_MESSAGE_TYPE_ASSISTANT=Zo,O.PREVIEW_BRIDGE_SOURCE=Xo,O.PREVIEW_BRIDGE_VERSION=qo,O.appPreviewMessageProps=be,O.attachmentPreviewProps=wl,O.bubbleActionProps=us,O.bubbleProps=Ir,O.carouselItemProps=is,O.carouselProps=os,O.chatHistoryProps=hl,O.chatPreviewProps=ss,O.clonePreviewPayloadForPostMessage=Gs,O.codingMessageProps=ll,O.confirmDialogProps=Qs,O.createPreviewIframeSdk=Dp,O.default=B1,O.extractFileIdFromRuntimeDownloadUrl=fi,O.fileOperationMessageProps=dl,O.generateProcessProps=fl,O.getCustomClass=ye,O.getCustomStyle=Ae,O.getDynamicComponentRegistryDebugSnapshot=So,O.invokeAgentWorkbenchSdkApi=Sp,O.isImageUrl=hi,O.isPreviewBridgeAssistantMessage=qs,O.listViewProps=Qo,O.loadDynamicComponent=qa,O.markdownMessageProps=ka,O.markdownPreviewProps=ls,O.navProps=Al,O.normalizeDynamicComponentRegisterClaim=Ve,O.overflowTooltipDirective=bi,O.peekDynamicComponentRegisterBootstrapId=wh,O.popoverProps=Ka,O.postAssistantToPreviewIframe=Zs,O.postDynamicComponentAssistantMessage=_h,O.previewLayoutBridge=Np,O.promptProps=gl,O.promptsProps=ml,O.registerPreviewChromeSdk=Fp,O.renderIconNode=Lr,O.renderNode=Mn,O.resolveHrefForAttachmentDownload=sn,O.resolveRuntimeAttachmentDownloadUrl=ju,O.searchBoxContainerProps=Cl,O.searchBoxProps=kl,O.splitterProps=as,O.startedTodoProps=ts,O.subscribeAssistantInPreviewIframe=Ys,O.suggestionProps=bl,O.todoListItemProps=rs,O.todoListViewProps=ns,O.todoProps=yl,O.triggerAttachmentDownload=Or,O.unloadDynamicComponent=Za,O.useSequentialStreaming=Pr,O.useStreamingOutput=mi,O.useTimer=Hu,O.welcomeProps=xl,O.widgetContainerProps=Ha,Object.defineProperties(O,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});