@apform-ui/core 1.4.1 → 1.6.1
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.
- package/dist/__tests__/composables-utils.spec.d.ts +1 -0
- package/dist/__tests__/core-feedback.spec.d.ts +1 -0
- package/dist/apform-ui.css +1 -1
- package/dist/apform-ui.js +1787 -1591
- package/dist/apform-ui.umd.cjs +25 -25
- package/dist/components/BreadcrumbNav/BreadcrumbNav.vue.d.ts +19 -0
- package/dist/components/BreadcrumbNav/index.d.ts +2 -0
- package/dist/components/Chat/ConversationHeader/ConversationHeader.vue.d.ts +3 -0
- package/dist/components/Chat/SessionSidebar/SessionSidebar.vue.d.ts +1 -1
- package/dist/components/ExcelPreviewCard/ExcelPreviewCard.vue.d.ts +37 -0
- package/dist/components/ExcelPreviewCard/index.d.ts +1 -0
- package/dist/components/PdfPreviewCard/PdfPreviewCard.vue.d.ts +37 -0
- package/dist/components/PdfPreviewCard/index.d.ts +1 -0
- package/dist/composables/index.d.ts +5 -0
- package/dist/composables/useChatScroll.d.ts +28 -0
- package/dist/composables/useConfirm.d.ts +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/stories/AppDialog.stories.d.ts +1 -1
- package/dist/stories/AppIcon.stories.d.ts +1 -1
- package/dist/stories/ApprovalCard.stories.d.ts +1 -1
- package/dist/stories/Composer.stories.d.ts +1 -1
- package/dist/stories/MessageBubble.stories.d.ts +1 -1
- package/dist/stories/RunStatusBar.stories.d.ts +1 -1
- package/dist/stories/StatusTag.stories.d.ts +1 -1
- package/dist/stories/useConfirm.stories.d.ts +1 -1
- package/dist/stories/useMessage.stories.d.ts +1 -1
- package/package.json +1 -1
- package/src/theme/dark.css +3652 -0
package/dist/apform-ui.umd.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
(function(y,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus"],e):(y=typeof globalThis<"u"?globalThis:y||self,e(y.ApformUI={},y.Vue,y.ElementPlus))})(this,(function(y,e,se){"use strict";var a1=Object.defineProperty;var o1=(y,e,se)=>e in y?a1(y,e,{enumerable:!0,configurable:!0,writable:!0,value:se}):y[e]=se;var P=(y,e,se)=>o1(y,typeof e!="symbol"?e+"":e,se);/*! Element Plus Icons Vue v2.3.2 */var Ct;var No=e.defineComponent({name:"Close",__name:"close",setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Ao=No,zo=e.defineComponent({name:"FullScreen",__name:"full-screen",setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),Mo=zo,Lo=e.defineComponent({name:"ScaleToOriginal",__name:"scale-to-original",setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"})]))}}),Io=Lo;const Ro=e.defineComponent({__name:"AppDialog",props:{modelValue:{type:Boolean},title:{},width:{default:"580px"},destroyOnClose:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0},showFullscreenBtn:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!1},cancelText:{default:"取消"},confirmText:{default:"确定"}},emits:["update:modelValue","confirm","cancel","close"],setup(t,{emit:n}){const a=n,o=e.ref(!1);function l(){o.value=!o.value}function r(){a("confirm")}function i(){a("update:modelValue",!1),a("cancel")}function c(){a("close")}return(s,d)=>{const f=e.resolveComponent("el-button"),u=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(u,{"model-value":t.modelValue,width:o.value?"100vw":t.width,fullscreen:o.value,style:e.normalizeStyle(o.value?{margin:0}:{}),"destroy-on-close":t.destroyOnClose,draggable:t.draggable&&!o.value,"append-to-body":t.appendToBody,"close-on-click-modal":t.closeOnClickModal,"show-close":!1,"onUpdate:modelValue":d[1]||(d[1]=h=>a("update:modelValue",h)),onClose:c},{header:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(s.$style.header)},[e.createElementVNode("span",{class:e.normalizeClass(s.$style.title)},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(s.$style.headerRight)},[t.showFullscreenBtn?(e.openBlock(),e.createBlock(f,{key:0,class:e.normalizeClass(s.$style.headerBtn),icon:o.value?e.unref(Io):e.unref(Mo),text:"",onClick:l},null,8,["class","icon"])):e.createCommentVNode("",!0),e.createVNode(f,{class:e.normalizeClass(s.$style.headerBtn),icon:e.unref(Ao),text:"",onClick:d[0]||(d[0]=h=>a("update:modelValue",!1))},null,8,["class","icon"])],2)],2)]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(s.$style.footer)},[e.renderSlot(s.$slots,"footer",{},()=>[e.createVNode(f,{onClick:i},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.cancelText),1)]),_:1}),e.createVNode(f,{type:"primary",loading:t.loading,onClick:r},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.confirmText),1)]),_:1},8,["loading"])])],2)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(s.$style.body)},[e.renderSlot(s.$slots,"default")],2)]),_:3},8,["model-value","width","fullscreen","style","destroy-on-close","draggable","append-to-body","close-on-click-modal"])}}}),Do={header:"_header_1wxe2_2",title:"_title_1wxe2_10",headerRight:"_headerRight_1wxe2_19",headerBtn:"_headerBtn_1wxe2_26",body:"_body_1wxe2_38",footer:"_footer_1wxe2_44"},L=(t,n)=>{const a=t.__vccOpts||t;for(const[o,l]of n)a[o]=l;return a},rt=L(Ro,[["__cssModules",{$style:Do}]]),Nn=/^[a-z0-9]+(-[a-z0-9]+)*$/,st=(t,n,a,o="")=>{const l=t.split(":");if(t.slice(0,1)==="@"){if(l.length<2||l.length>3)return null;o=l.shift().slice(1)}if(l.length>3||!l.length)return null;if(l.length>1){const c=l.pop(),s=l.pop(),d={provider:l.length>0?l[0]:o,prefix:s,name:c};return n&&!it(d)?null:d}const r=l[0],i=r.split("-");if(i.length>1){const c={provider:o,prefix:i.shift(),name:i.join("-")};return n&&!it(c)?null:c}if(a&&o===""){const c={provider:o,prefix:"",name:r};return n&&!it(c,a)?null:c}return null},it=(t,n)=>t?!!((n&&t.prefix===""||t.prefix)&&t.name):!1;function Po(t,n){const a=t.icons,o=t.aliases||Object.create(null),l=Object.create(null);function r(i){if(a[i])return l[i]=[];if(!(i in l)){l[i]=null;const c=o[i]&&o[i].parent,s=c&&r(c);s&&(l[i]=[c].concat(s))}return l[i]}return Object.keys(a).concat(Object.keys(o)).forEach(r),l}const An=Object.freeze({left:0,top:0,width:16,height:16}),ct=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),dt=Object.freeze({...An,...ct}),Rt=Object.freeze({...dt,body:"",hidden:!1});function Oo(t,n){const a={};!t.hFlip!=!n.hFlip&&(a.hFlip=!0),!t.vFlip!=!n.vFlip&&(a.vFlip=!0);const o=((t.rotate||0)+(n.rotate||0))%4;return o&&(a.rotate=o),a}function zn(t,n){const a=Oo(t,n);for(const o in Rt)o in ct?o in t&&!(o in a)&&(a[o]=ct[o]):o in n?a[o]=n[o]:o in t&&(a[o]=t[o]);return a}function Ho(t,n,a){const o=t.icons,l=t.aliases||Object.create(null);let r={};function i(c){r=zn(o[c]||l[c],r)}return i(n),a.forEach(i),zn(t,r)}function Mn(t,n){const a=[];if(typeof t!="object"||typeof t.icons!="object")return a;t.not_found instanceof Array&&t.not_found.forEach(l=>{n(l,null),a.push(l)});const o=Po(t);for(const l in o){const r=o[l];r&&(n(l,Ho(t,l,r)),a.push(l))}return a}const Fo={provider:"",aliases:{},not_found:{},...An};function Dt(t,n){for(const a in n)if(a in t&&typeof t[a]!=typeof n[a])return!1;return!0}function Ln(t){if(typeof t!="object"||t===null)return null;const n=t;if(typeof n.prefix!="string"||!t.icons||typeof t.icons!="object"||!Dt(t,Fo))return null;const a=n.icons;for(const l in a){const r=a[l];if(!l||typeof r.body!="string"||!Dt(r,Rt))return null}const o=n.aliases||Object.create(null);for(const l in o){const r=o[l],i=r.parent;if(!l||typeof i!="string"||!a[i]&&!o[i]||!Dt(r,Rt))return null}return n}const In=Object.create(null);function Uo(t,n){return{provider:t,prefix:n,icons:Object.create(null),missing:new Set}}function ze(t,n){const a=In[t]||(In[t]=Object.create(null));return a[n]||(a[n]=Uo(t,n))}function Rn(t,n){return Ln(n)?Mn(n,(a,o)=>{o?t.icons[a]=o:t.missing.add(a)}):[]}function jo(t,n,a){try{if(typeof a.body=="string")return t.icons[n]={...a},!0}catch{}return!1}let qe=!1;function Dn(t){return typeof t=="boolean"&&(qe=t),qe}function qo(t){const n=typeof t=="string"?st(t,!0,qe):t;if(n){const a=ze(n.provider,n.prefix),o=n.name;return a.icons[o]||(a.missing.has(o)?null:void 0)}}function Go(t,n){const a=st(t,!0,qe);if(!a)return!1;const o=ze(a.provider,a.prefix);return n?jo(o,a.name,n):(o.missing.add(a.name),!0)}function Wo(t,n){if(typeof t!="object")return!1;if(typeof n!="string"&&(n=t.provider||""),qe&&!n&&!t.prefix){let o=!1;return Ln(t)&&(t.prefix="",Mn(t,(l,r)=>{Go(l,r)&&(o=!0)})),o}const a=t.prefix;return it({prefix:a,name:"a"})?!!Rn(ze(n,a),t):!1}const Pn=Object.freeze({width:null,height:null}),On=Object.freeze({...Pn,...ct}),Yo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Zo=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Hn(t,n,a){if(n===1)return t;if(a=a||100,typeof t=="number")return Math.ceil(t*n*a)/a;if(typeof t!="string")return t;const o=t.split(Yo);if(o===null||!o.length)return t;const l=[];let r=o.shift(),i=Zo.test(r);for(;;){if(i){const c=parseFloat(r);isNaN(c)?l.push(r):l.push(Math.ceil(c*n*a)/a)}else l.push(r);if(r=o.shift(),r===void 0)return l.join("");i=!i}}function Ko(t,n="defs"){let a="";const o=t.indexOf("<"+n);for(;o>=0;){const l=t.indexOf(">",o),r=t.indexOf("</"+n);if(l===-1||r===-1)break;const i=t.indexOf(">",r);if(i===-1)break;a+=t.slice(l+1,r).trim(),t=t.slice(0,o).trim()+t.slice(i+1)}return{defs:a,content:t}}function Qo(t,n){return t?"<defs>"+t+"</defs>"+n:n}function Xo(t,n,a){const o=Ko(t);return Qo(o.defs,n+o.content+a)}const Jo=t=>t==="unset"||t==="undefined"||t==="none";function vo(t,n){const a={...dt,...t},o={...On,...n},l={left:a.left,top:a.top,width:a.width,height:a.height};let r=a.body;[a,o].forEach(A=>{const $=[],T=A.hFlip,E=A.vFlip;let S=A.rotate;T?E?S+=2:($.push("translate("+(l.width+l.left).toString()+" "+(0-l.top).toString()+")"),$.push("scale(-1 1)"),l.top=l.left=0):E&&($.push("translate("+(0-l.left).toString()+" "+(l.height+l.top).toString()+")"),$.push("scale(1 -1)"),l.top=l.left=0);let _;switch(S<0&&(S-=Math.floor(S/4)*4),S=S%4,S){case 1:_=l.height/2+l.top,$.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:$.unshift("rotate(180 "+(l.width/2+l.left).toString()+" "+(l.height/2+l.top).toString()+")");break;case 3:_=l.width/2+l.left,$.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}S%2===1&&(l.left!==l.top&&(_=l.left,l.left=l.top,l.top=_),l.width!==l.height&&(_=l.width,l.width=l.height,l.height=_)),$.length&&(r=Xo(r,'<g transform="'+$.join(" ")+'">',"</g>"))});const i=o.width,c=o.height,s=l.width,d=l.height;let f,u;i===null?(u=c===null?"1em":c==="auto"?d:c,f=Hn(u,s/d)):(f=i==="auto"?s:i,u=c===null?Hn(f,d/s):c==="auto"?d:c);const h={},x=(A,$)=>{Jo($)||(h[A]=$.toString())};x("width",f),x("height",u);const g=[l.left,l.top,s,d];return h.viewBox=g.join(" "),{attributes:h,viewBox:g,body:r}}const el=/\sid="(\S+)"/g,Fn=new Map;function tl(t){t=t.replace(/[0-9]+$/,"")||"a";const n=Fn.get(t)||0;return Fn.set(t,n+1),n?`${t}${n}`:t}function nl(t){const n=[];let a;for(;a=el.exec(t);)n.push(a[1]);if(!n.length)return t;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(l=>{const r=tl(l),i=l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+r+o+"$3")}),t=t.replace(new RegExp(o,"g"),""),t}const Pt=Object.create(null);function al(t,n){Pt[t]=n}function Ot(t){return Pt[t]||Pt[""]}function Ht(t){let n;if(typeof t.resources=="string")n=[t.resources];else if(n=t.resources,!(n instanceof Array)||!n.length)return null;return{resources:n,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const Ft=Object.create(null),Ge=["https://api.simplesvg.com","https://api.unisvg.com"],pt=[];for(;Ge.length>0;)Ge.length===1||Math.random()>.5?pt.push(Ge.shift()):pt.push(Ge.pop());Ft[""]=Ht({resources:["https://api.iconify.design"].concat(pt)});function ol(t,n){const a=Ht(n);return a===null?!1:(Ft[t]=a,!0)}function Ut(t){return Ft[t]}let Un=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function ll(t,n){const a=Ut(t);if(!a)return 0;let o;if(!a.maxURL)o=0;else{let l=0;a.resources.forEach(i=>{l=Math.max(l,i.length)});const r=n+".json?icons=";o=a.maxURL-l-a.path.length-r.length}return o}function rl(t){return t===404}const sl=(t,n,a)=>{const o=[],l=ll(t,n),r="icons";let i={type:r,provider:t,prefix:n,icons:[]},c=0;return a.forEach((s,d)=>{c+=s.length+1,c>=l&&d>0&&(o.push(i),i={type:r,provider:t,prefix:n,icons:[]},c=s.length),i.icons.push(s)}),o.push(i),o};function il(t){if(typeof t=="string"){const n=Ut(t);if(n)return n.path}return"/"}const cl={prepare:sl,send:(t,n,a)=>{if(!Un){a("abort",424);return}let o=il(n.provider);switch(n.type){case"icons":{const r=n.prefix,i=n.icons.join(","),c=new URLSearchParams({icons:i});o+=r+".json?"+c.toString();break}case"custom":{const r=n.uri;o+=r.slice(0,1)==="/"?r.slice(1):r;break}default:a("abort",400);return}let l=503;Un(t+o).then(r=>{const i=r.status;if(i!==200){setTimeout(()=>{a(rl(i)?"abort":"next",i)});return}return l=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?a("abort",r):a("next",l)});return}setTimeout(()=>{a("success",r)})}).catch(()=>{a("next",l)})}};function jn(t,n){t.forEach(a=>{const o=a.loaderCallbacks;o&&(a.loaderCallbacks=o.filter(l=>l.id!==n))})}function dl(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const n=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!n.length)return;let a=!1;const o=t.provider,l=t.prefix;n.forEach(r=>{const i=r.icons,c=i.pending.length;i.pending=i.pending.filter(s=>{if(s.prefix!==l)return!0;const d=s.name;if(t.icons[d])i.loaded.push({provider:o,prefix:l,name:d});else if(t.missing.has(d))i.missing.push({provider:o,prefix:l,name:d});else return a=!0,!0;return!1}),i.pending.length!==c&&(a||jn([t],r.id),r.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),r.abort))})}))}let pl=0;function fl(t,n,a){const o=pl++,l=jn.bind(null,a,o);if(!n.pending.length)return l;const r={id:o,icons:n,callback:t,abort:l};return a.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(r)}),l}function hl(t){const n={loaded:[],missing:[],pending:[]},a=Object.create(null);t.sort((l,r)=>l.provider!==r.provider?l.provider.localeCompare(r.provider):l.prefix!==r.prefix?l.prefix.localeCompare(r.prefix):l.name.localeCompare(r.name));let o={provider:"",prefix:"",name:""};return t.forEach(l=>{if(o.name===l.name&&o.prefix===l.prefix&&o.provider===l.provider)return;o=l;const r=l.provider,i=l.prefix,c=l.name,s=a[r]||(a[r]=Object.create(null)),d=s[i]||(s[i]=ze(r,i));let f;c in d.icons?f=n.loaded:i===""||d.missing.has(c)?f=n.missing:f=n.pending;const u={provider:r,prefix:i,name:c};f.push(u)}),n}function ml(t,n=!0,a=!1){const o=[];return t.forEach(l=>{const r=typeof l=="string"?st(l,n,a):l;r&&o.push(r)}),o}const ul={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function gl(t,n,a,o){const l=t.resources.length,r=t.random?Math.floor(Math.random()*l):t.index;let i;if(t.random){let B=t.resources.slice(0);for(i=[];B.length>1;){const j=Math.floor(Math.random()*B.length);i.push(B[j]),B=B.slice(0,j).concat(B.slice(j+1))}i=i.concat(B)}else i=t.resources.slice(r).concat(t.resources.slice(0,r));const c=Date.now();let s="pending",d=0,f,u=null,h=[],x=[];typeof o=="function"&&x.push(o);function g(){u&&(clearTimeout(u),u=null)}function A(){s==="pending"&&(s="aborted"),g(),h.forEach(B=>{B.status==="pending"&&(B.status="aborted")}),h=[]}function $(B,j){j&&(x=[]),typeof B=="function"&&x.push(B)}function T(){return{startTime:c,payload:n,status:s,queriesSent:d,queriesPending:h.length,subscribe:$,abort:A}}function E(){s="failed",x.forEach(B=>{B(void 0,f)})}function S(){h.forEach(B=>{B.status==="pending"&&(B.status="aborted")}),h=[]}function _(B,j,ee){const z=j!=="success";switch(h=h.filter(N=>N!==B),s){case"pending":break;case"failed":if(z||!t.dataAfterTimeout)return;break;default:return}if(j==="abort"){f=ee,E();return}if(z){f=ee,h.length||(i.length?w():E());return}if(g(),S(),!t.random){const N=t.resources.indexOf(B.resource);N!==-1&&N!==t.index&&(t.index=N)}s="completed",x.forEach(N=>{N(ee)})}function w(){if(s!=="pending")return;g();const B=i.shift();if(B===void 0){if(h.length){u=setTimeout(()=>{g(),s==="pending"&&(S(),E())},t.timeout);return}E();return}const j={status:"pending",resource:B,callback:(ee,z)=>{_(j,ee,z)}};h.push(j),d++,u=setTimeout(w,t.rotate),a(B,n,j.callback)}return setTimeout(w),T}function qn(t){const n={...ul,...t};let a=[];function o(){a=a.filter(i=>i().status==="pending")}function l(i,c,s){const d=gl(n,i,c,(f,u)=>{o(),s&&s(f,u)});return a.push(d),d}function r(i){return a.find(c=>i(c))||null}return{query:l,find:r,setIndex:i=>{n.index=i},getIndex:()=>n.index,cleanup:o}}function Gn(){}const jt=Object.create(null);function kl(t){if(!jt[t]){const n=Ut(t);if(!n)return;jt[t]={config:n,redundancy:qn(n)}}return jt[t]}function yl(t,n,a){let o,l;if(typeof t=="string"){const r=Ot(t);if(!r)return a(void 0,424),Gn;l=r.send;const i=kl(t);i&&(o=i.redundancy)}else{const r=Ht(t);if(r){o=qn(r);const i=Ot(t.resources?t.resources[0]:"");i&&(l=i.send)}}return!o||!l?(a(void 0,424),Gn):o.query(n,l,a)().abort}function Wn(){}function bl(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,dl(t)}))}function _l(t){const n=[],a=[];return t.forEach(o=>{(o.match(Nn)?n:a).push(o)}),{valid:n,invalid:a}}function We(t,n,a){function o(){const l=t.pendingIcons;n.forEach(r=>{l&&l.delete(r),t.icons[r]||t.missing.add(r)})}if(a&&typeof a=="object")try{if(!Rn(t,a).length){o();return}}catch(l){console.error(l)}o(),bl(t)}function Yn(t,n){t instanceof Promise?t.then(a=>{n(a)}).catch(()=>{n(null)}):n(t)}function wl(t,n){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(n).sort():t.iconsToLoad=n,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:a,prefix:o}=t,l=t.iconsToLoad;if(delete t.iconsToLoad,!l||!l.length)return;const r=t.loadIcon;if(t.loadIcons&&(l.length>1||!r)){Yn(t.loadIcons(l,o,a),d=>{We(t,l,d)});return}if(r){l.forEach(d=>{Yn(r(d,o,a),f=>{We(t,[d],f?{prefix:o,icons:{[d]:f}}:null)})});return}const{valid:i,invalid:c}=_l(l);if(c.length&&We(t,c,null),!i.length)return;const s=o.match(Nn)?Ot(a):null;if(!s){We(t,i,null);return}s.prepare(a,o,i).forEach(d=>{yl(a,d,f=>{We(t,d.icons,f)})})}))}const Cl=(t,n)=>{const a=hl(ml(t,!0,Dn()));if(!a.pending.length){let c=!0;return n&&setTimeout(()=>{c&&n(a.loaded,a.missing,a.pending,Wn)}),()=>{c=!1}}const o=Object.create(null),l=[];let r,i;return a.pending.forEach(c=>{const{provider:s,prefix:d}=c;if(d===i&&s===r)return;r=s,i=d,l.push(ze(s,d));const f=o[s]||(o[s]=Object.create(null));f[d]||(f[d]=[])}),a.pending.forEach(c=>{const{provider:s,prefix:d,name:f}=c,u=ze(s,d),h=u.pendingIcons||(u.pendingIcons=new Set);h.has(f)||(h.add(f),o[s][d].push(f))}),l.forEach(c=>{const s=o[c.provider][c.prefix];s.length&&wl(c,s)}),n?fl(n,a,l):Wn};function El(t,n){const a={...t};for(const o in n){const l=n[o],r=typeof l;o in Pn?(l===null||l&&(r==="string"||r==="number"))&&(a[o]=l):r===typeof a[o]&&(a[o]=o==="rotate"?l%4:l)}return a}const xl=/[\s,]+/;function $l(t,n){n.split(xl).forEach(a=>{switch(a.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function Tl(t,n=0){const a=t.replace(/^-?[0-9.]*/,"");function o(l){for(;l<0;)l+=4;return l%4}if(a===""){const l=parseInt(t);return isNaN(l)?0:o(l)}else if(a!==t){let l=0;switch(a){case"%":l=25;break;case"deg":l=90}if(l){let r=parseFloat(t.slice(0,t.length-a.length));return isNaN(r)?0:(r=r/l,r%1===0?o(r):0)}}return n}function Sl(t,n){let a=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in n)a+=" "+o+'="'+n[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+a+">"+t+"</svg>"}function Vl(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Bl(t){return"data:image/svg+xml,"+Vl(t)}function Nl(t){return'url("'+Bl(t)+'")'}const Zn={...On,inline:!1},Al={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},zl={display:"inline-block"},qt={backgroundColor:"currentColor"},Kn={backgroundColor:"transparent"},Qn={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Xn={webkitMask:qt,mask:qt,background:Kn};for(const t in Xn){const n=Xn[t];for(const a in Qn)n[t+a]=Qn[a]}const ft={};["horizontal","vertical"].forEach(t=>{const n=t.slice(0,1)+"Flip";ft[t+"-flip"]=n,ft[t.slice(0,1)+"-flip"]=n,ft[t+"Flip"]=n});function Jn(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const vn=(t,n)=>{const a=El(Zn,n),o={...Al},l=n.mode||"svg",r={},i=n.style,c=typeof i=="object"&&!(i instanceof Array)?i:{};for(let A in n){const $=n[A];if($!==void 0)switch(A){case"icon":case"style":case"onLoad":case"mode":case"ssr":case"customise":break;case"inline":case"hFlip":case"vFlip":a[A]=$===!0||$==="true"||$===1;break;case"flip":typeof $=="string"&&$l(a,$);break;case"color":r.color=$;break;case"rotate":typeof $=="string"?a[A]=Tl($):typeof $=="number"&&(a[A]=$);break;case"ariaHidden":case"aria-hidden":$!==!0&&$!=="true"&&delete o["aria-hidden"];break;default:{const T=ft[A];T?($===!0||$==="true"||$===1)&&(a[T]=!0):Zn[A]===void 0&&(o[A]=$)}}}const s=vo(t,a),d=s.attributes;if(a.inline&&(r.verticalAlign="-0.125em"),l==="svg")return o.style={...r,...c},Object.assign(o,d),o.innerHTML=nl(s.body),e.h("svg",o);const{body:f,width:u,height:h}=t,x=l==="mask"||(l==="bg"?!1:f.indexOf("currentColor")!==-1),g=Sl(f,{...d,width:u+"",height:h+""});return o.style={...r,"--svg":Nl(g),width:Jn(d.width),height:Jn(d.height),...zl,...x?qt:Kn,...c},e.h("span",o)};if(Dn(!0),al("",cl),typeof document<"u"&&typeof window<"u"){const t=window;if(t.IconifyPreload!==void 0){const n=t.IconifyPreload,a="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Wo(o))&&console.error(a)}catch{console.error(a)}})}if(t.IconifyProviders!==void 0){const n=t.IconifyProviders;if(typeof n=="object"&&n!==null)for(let a in n){const o="IconifyProviders["+a+"] is invalid.";try{const l=n[a];if(typeof l!="object"||!l||l.resources===void 0)continue;ol(a,l)||console.error(o)}catch{console.error(o)}}}}const Ml={...dt,body:""},Ll=e.defineComponent((t,{emit:n})=>{const a=e.ref(null);function o(){var d,f;a.value&&((f=(d=a.value).abort)==null||f.call(d),a.value=null)}const l=e.ref(!!t.ssr),r=e.ref(""),i=e.shallowRef(null);function c(){const d=t.icon;if(typeof d=="object"&&d!==null&&typeof d.body=="string")return r.value="",{data:d};let f;if(typeof d!="string"||(f=st(d,!1,!0))===null)return null;let u=qo(f);if(!u){const g=a.value;return(!g||g.name!==d)&&(u===null?a.value={name:d}:a.value={name:d,abort:Cl([f],s)}),null}o(),r.value!==d&&(r.value=d,e.nextTick(()=>{n("load",d)}));const h=t.customise;if(h){u=Object.assign({},u);const g=h(u.body,f.name,f.prefix,f.provider);typeof g=="string"&&(u.body=g)}const x=["iconify"];return f.prefix!==""&&x.push("iconify--"+f.prefix),f.provider!==""&&x.push("iconify--"+f.provider),{data:u,classes:x}}function s(){var f;const d=c();d?d.data!==((f=i.value)==null?void 0:f.data)&&(i.value=d):i.value=null}return l.value?s():e.onMounted(()=>{l.value=!0,s()}),e.watch(()=>t.icon,s),e.onUnmounted(o),()=>{const d=i.value;if(!d)return vn(Ml,t);let f=t;return d.classes&&(f={...t,class:d.classes.join(" ")}),vn({...dt,...d.data},f)}},{props:["icon","mode","ssr","width","height","style","color","inline","rotate","hFlip","horizontalFlip","vFlip","verticalFlip","flip","id","ariaHidden","customise","title"],emits:["load"]}),Il={width:1024,height:1024,body:'<path fill="currentColor" d="M512 128L128 448v448h256V640h256v256h256V448z"/>'},Rl={width:1024,height:1024,body:'<path fill="currentColor" d="M600.7 64a32 32 0 0 1 30.5 22.2l35.2 109.4a348 348 0 0 1 42.4 24.5l112.4-24.2a32 32 0 0 1 34.4 15.4l88.7 153.5a32 32 0 0 1-4 37.5l-77.1 85.1a357 357 0 0 1 0 49l77 85.3a32 32 0 0 1 4.1 37.5l-88.7 153.6a32 32 0 0 1-34.4 15.3l-112.4-24.2q-20.2 13.6-42.4 24.5l-35.2 109.4a32 32 0 0 1-30.5 22.2H423.3a32 32 0 0 1-30.5-22.2l-35.1-109.3a352 352 0 0 1-42.6-24.7l-112.3 24.3a32 32 0 0 1-34.4-15.4L79.7 659.2a32 32 0 0 1 4-37.5l77.1-85.3a357 357 0 0 1 0-48.8l-77-85.3a32 32 0 0 1-4.1-37.5l88.7-153.6a32 32 0 0 1 34.4-15.3l112.3 24.3a355 355 0 0 1 42.6-24.7l35.2-109.3A32 32 0 0 1 423.2 64zm-23.4 64H446.7l-36.3 113l-24.5 12a294 294 0 0 0-34.9 20.2l-22.6 15.3l-116.2-25l-65.3 113l79.7 88.3l-2 27.1a293 293 0 0 0 0 40.2l2 27.1l-79.8 88.2L212 760.6l116.2-25l22.7 15.2a294 294 0 0 0 34.8 20.1l24.5 12L446.7 896h130.7L614 782.8l24.4-11.9a288 288 0 0 0 34.8-20l22.6-15.3l116.3 25l65.2-113.2l-79.7-88.2l2-27.1a293 293 0 0 0 0-40.3l-2-27.1l79.8-88.1L812 263.4l-116.3 25l-22.6-15.2a288 288 0 0 0-34.8-20.1L614 241zM512 320a192 192 0 1 1 0 384a192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256a128 128 0 0 0 0-256"/>'},Dl={width:1024,height:1024,body:'<path fill="currentColor" d="M512 512a192 192 0 1 0 0-384a192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512a256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"/>'},Pl={width:1024,height:1024,body:'<path fill="currentColor" d="M288 320a224 224 0 1 0 448 0a224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"/>'},Ol={width:1024,height:1024,body:'<path fill="currentColor" d="M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"/><path fill="currentColor" d="M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"/>'},Hl={width:1024,height:1024,body:'<path fill="currentColor" d="M448 456V96a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8m64 440a192 192 0 1 0 0-384a192 192 0 0 0 0 384"/>'},Fl={width:1024,height:1024,body:'<path fill="currentColor" d="M832 384H576V128H192v768h640zm-26.5-64L640 154.5V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"/>'},Ul={width:1024,height:1024,body:'<path fill="currentColor" d="M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"/>'},jl={width:1024,height:1024,body:'<path fill="currentColor" d="M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"/>'},ql={width:1024,height:1024,body:'<path fill="currentColor" d="M512 896a384 384 0 1 0 0-768a384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896a448 448 0 0 1 0 896"/><path fill="currentColor" d="M192 512a320 320 0 1 1 640 0a32 32 0 1 1-64 0a256 256 0 1 0-512 0a32 32 0 0 1-64 0"/><path fill="currentColor" d="M570.4 627.8a96 96 0 1 1-60.8-19.8l61-187.8a32 32 0 1 1 60.8 19.8zm-68.3 106.7a32 32 0 1 0 19.8-61a32 32 0 0 0-19.8 61"/>'},Gl={width:1024,height:1024,body:'<path fill="currentColor" d="M160 448a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"/>'},Wl={width:1024,height:1024,body:'<path fill="currentColor" d="M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.8v-70.3a192 192 0 0 1 128 181v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"/><path fill="currentColor" d="M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.8v70.3A192 192 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"/>'},Yl={width:1024,height:1024,body:'<path fill="currentColor" d="M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"/>'},Zl={width:1024,height:1024,body:'<path fill="currentColor" d="M512 896a256 256 0 1 0 0-512a256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640a320 320 0 0 1 0 640"/><path fill="currentColor" d="M576 128H448v200a287 287 0 0 1 64-8a288 288 0 0 1 64 8zm64 0v219.6q36.6 13.7 78.4 34l39-253.6zm-256 0H266.6l39 253.6a897 897 0 0 1 78.4-34zM229.3 64h565.4a32 32 0 0 1 31.6 36.9L768 480q-170.7-96-256-96c-85.3 0-142.2 32-256 96l-58.3-379.1A32 32 0 0 1 229.3 64"/>'},Kl={width:1024,height:1024,body:'<path fill="currentColor" d="M480 896V702a256 256 0 0 1-216-190h-32.6a96 96 0 0 1-92-68.4L93.7 290.9a76.8 76.8 0 0 1 73.6-98.9H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.8a76.8 76.8 0 0 1 73.6 98.9l-46 152.6a96 96 0 0 1-91.8 68.5h-32.7A256 256 0 0 1 544 702v194h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64zm224-448V128H320v320a192 192 0 1 0 384 0m64 0h24.6a32 32 0 0 0 30.6-22.8l45.9-152.8a12.8 12.8 0 0 0-12.3-16.4H768zm-512 0V256h-88.8a12.8 12.8 0 0 0-12.3 16.4l45.9 152.8a32 32 0 0 0 30.6 22.8z"/>'},Ql={width:1024,height:1024,body:'<path fill="currentColor" d="M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"/>'},Xl={width:1024,height:1024,body:'<path fill="currentColor" d="M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128"/><path fill="currentColor" d="M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32M64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32"/>'},Jl={width:1024,height:1024,body:'<path fill="currentColor" d="M174.7 855.7L310 810.6l23.7 11.8A398 398 0 0 0 512 864c211.8 0 384-166.8 384-352S723.8 160 512 160S128 326.8 128 512c0 69.1 25 139.3 70.8 199.2L221 740zm-45.2 82.5A32 32 0 0 1 89.6 896L148 750c-53.3-69.6-84-153-84-238C64 299.9 256 96 512 96s448 203.9 448 416s-192 416-448 416a461 461 0 0 1-207-48.4z"/><path fill="currentColor" d="M512 563.2a51.2 51.2 0 1 1 0-102.4a51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4a51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4a51.2 51.2 0 0 1 0 102.4"/>'},vl={width:1024,height:1024,body:'<path fill="currentColor" d="M174.7 855.7L310 810.6l23.7 11.8A398 398 0 0 0 512 864c211.8 0 384-166.8 384-352S723.8 160 512 160S128 326.8 128 512c0 69.1 25 139.3 70.8 199.2L221 740zm-45.2 82.5A32 32 0 0 1 89.6 896L148 750c-53.3-69.6-84-153-84-238C64 299.9 256 96 512 96s448 203.9 448 416s-192 416-448 416a461 461 0 0 1-207-48.4z"/><path fill="currentColor" d="M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"/>'},er={width:1024,height:1024,body:'<path fill="currentColor" d="M273.5 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.9zm22.5 64L148 918.4a32 32 0 0 1-52-25V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"/>'},tr={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"/><path fill="currentColor" d="M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"/><path fill="currentColor" d="M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"/>'},nr={width:1024,height:1024,body:'<path fill="currentColor" d="M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.5-228.5l-69-69a32 32 0 0 0-45.2 0L128 768.2h778.7L664.6 477.5a32 32 0 0 0-49.2 0l-156.6 188a32 32 0 0 1-47.3 2M256 384a96 96 0 1 0 192 0a96 96 0 0 0-192 0"/>'},ar={width:1024,height:1024,body:'<path fill="currentColor" d="M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"/><path fill="currentColor" d="M384 288q64 0 64 64t-64 64t-64-64t64-64M185.4 877l-50.8-39l216.1-282a96 96 0 0 1 134.6-17.8l1.9 1.4L610 638.8a32 32 0 0 0 45-4.9L871 364l50 40l-215.8 269.8l-.3.3a96 96 0 0 1-135 14.5l-123-99.1l-.6-.5a32 32 0 0 0-44.8 6z"/>'},or={width:1024,height:1024,body:'<path fill="currentColor" d="M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"/><path fill="currentColor" d="m470 554.2l52.8-7.5L847 222.4a32 32 0 1 0-45.2-45.2L477.4 501.4l-7.5 52.8zm422.4-422.4a96 96 0 0 1 0 135.8L560.5 599.5a32 32 0 0 1-18.1 9l-105.6 15.2a32 32 0 0 1-36.2-36.2l15-105.6a32 32 0 0 1 9.1-18.2l332-331.8a96 96 0 0 1 135.7 0z"/>'},lr={width:1024,height:1024,body:'<path fill="currentColor" d="m199 672.6l194 112l224-388l-193.9-112l-224 388.1zm-23.8 60.2L208 881.1l145-45.7zM455 229.2l194 112l56.7-98l-194-112zM104.3 708.8l384-665l304.8 176l-384 665h.1l-248.4 78.3zm384 254.3v-64h448v64z"/>'},rr={width:1024,height:1024,body:'<path fill="currentColor" d="M511.6 128a64.4 64.4 0 0 0-64.4 64.4V709L274 571a94 94 0 0 0-112.8-3.5a44.4 44.4 0 0 0-9 62.2l180.6 240.8A64 64 0 0 0 384 896h512V575.2a64 64 0 0 0-45.6-61.3l-206-61.7a96 96 0 0 1-68.4-92V192.4a64.4 64.4 0 0 0-64.4-64.4M359 556.8l24.2 19.2V192.4a128.4 128.4 0 1 1 256.8 0v167.8a32 32 0 0 0 22.8 30.6l206 61.8A128 128 0 0 1 960 575.2V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.1 668A108.4 108.4 0 0 1 128 512.5a158 158 0 0 1 186 8.3z"/>'},sr={width:1024,height:1024,body:'<path fill="currentColor" d="M160 256H96a32 32 0 0 1 0-64h256V96a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v96h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"/>'},ir={width:1024,height:1024,body:'<path fill="currentColor" d="m795.9 750.7l125 125a32 32 0 0 1-45.3 45.2l-125-125a416 416 0 1 1 45.3-45.2M480 832a352 352 0 1 0 0-704a352 352 0 0 0 0 704"/>'},cr={width:1024,height:1024,body:'<path fill="currentColor" d="M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"/>'},dr={width:1024,height:1024,body:'<path fill="currentColor" d="M771.8 794.9A384 384 0 0 1 128 512h64a320 320 0 0 0 555.7 216.4h-93a32 32 0 1 1 0-64h149a32 32 0 0 1 32 32v149a32 32 0 1 1-64 0zM276.3 295.6h93a32 32 0 0 1 0 64H220.2a32 32 0 0 1-32-32v-149a32 32 0 0 1 64 0V229a384 384 0 0 1 644 282.9h-64a320 320 0 0 0-555.8-216.4z"/>'},pr={width:1024,height:1024,body:'<path fill="currentColor" d="M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.7L780.3 342l45.2 45.2L508.8 704L192 387.2l45.2-45.2L480 584.7V128h64z"/>'},fr={width:1024,height:1024,body:'<path fill="currentColor" d="M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.3V704h-64V247.3L237.2 490L192 444.8L508.8 128l316.8 316.8l-45.3 45.2z"/>'},hr={width:1024,height:1024,body:'<path fill="currentColor" d="M512 160c320 0 512 352 512 352S832 864 512 864S0 512 0 512s192-352 512-352m0 64c-225.3 0-384.1 208-436.8 288c52.6 79.9 211.5 288 436.8 288s384.1-208 436.8-288C896.2 432.1 737.3 224 512 224m0 64a224 224 0 1 1 0 448a224 224 0 0 1 0-448m0 64a160 160 0 0 0-160 160c0 88.2 71.7 160 160 160s160-71.8 160-160s-71.7-160-160-160"/>'},mr={width:1024,height:1024,body:'<path fill="currentColor" d="M406.7 707L195.8 496.2a32 32 0 1 0-45.2 45.2l256 256l512-512a32 32 0 0 0-45.3-45.2L406.6 706.9z"/>'},ur={width:1024,height:1024,body:'<path fill="currentColor" d="M764.3 214.6L512 466.9L259.7 214.6a32 32 0 0 0-45.1 45.1L466.8 512L214.5 764.2a32 32 0 1 0 45.1 45.2L512 557.2l252.3 252.3a32 32 0 0 0 45.1-45.1L557.1 512l252.3-252.4a32 32 0 1 0-45.1-45.2z"/>'},gr={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768a384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0a48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"/>'},kr={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m0 192a58.4 58.4 0 0 0-58.2 63.7L477 576.1a35 35 0 0 0 69.8 0l23.3-256.4A58.4 58.4 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4a51.2 51.2 0 0 0 0 102.4"/>'},yr={width:1024,height:1024,body:'<path fill="currentColor" d="M384 523.4V928a32 32 0 0 0 46.3 28.6l192-96A32 32 0 0 0 640 832V523.4l280.8-343.1a32 32 0 1 0-49.6-40.6l-288 352A32 32 0 0 0 576 512v300.2l-128 64V512a32 32 0 0 0-7.2-20.3L195.5 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.8 52.3z"/>'},br={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m67.2 275c33.3 0 60.3-23 60.3-57.3s-27-57.3-60.3-57.3s-60.2 23-60.2 57.3s27 57.4 60.2 57.4m11.7 360.1c0-6.8 2.4-24.6 1-34.8L539.3 725c-10.9 11.4-24.5 19.4-30.9 17.3a13 13 0 0 1-8.2-14.7l87.6-277c7.2-35.2-12.5-67.2-54.3-71.3c-44 0-109 44.7-148.5 101.5c0 6.8-1.3 23.6 0 33.8l52.6-60.6c11-11.4 23.6-19.4 30-17.2a13 13 0 0 1 7.8 16.1l-87 275.7c-10 32.2 9 63.8 55.1 71c67.9 0 108-43.6 147.5-100.4z"/>'},ea={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m-55.8 536.4l-99.5-99.6a38.4 38.4 0 1 0-54.4 54.3L429.1 682a38.3 38.3 0 0 0 54.3 0l262.4-262.5a38.4 38.4 0 1 0-54.3-54.3z"/>'},_r={width:1024,height:1024,body:'<path fill="currentColor" d="M340.9 149.3a30.6 30.6 0 0 0 0 42.8L652.7 512L341 831.9a30.6 30.6 0 0 0 0 42.7a29 29 0 0 0 41.7 0l331.6-340.3a32 32 0 0 0 0-44.6L382.6 149.4a29 29 0 0 0-41.7 0z"/>'},wr={width:1024,height:1024,body:'<path fill="currentColor" d="M831.9 340.9L512 652.7L192.1 340.9a30.6 30.6 0 0 0-42.7 0a29 29 0 0 0 0 41.6l340.3 331.7a32 32 0 0 0 44.6 0l340.3-331.7a29 29 0 0 0 0-41.7a30.6 30.6 0 0 0-42.7 0z"/>'},Cr={width:1024,height:1024,body:'<path fill="currentColor" d="M488.8 344.3L149 701a32 32 0 0 0 0 44.2l.4.3a29.4 29.4 0 0 0 42.7 0l320-335.8l319.8 335.8a29.4 29.4 0 0 0 42.7 0l.4-.3a32 32 0 0 0 0-44.2L535.2 344.3a32 32 0 0 0-46.4 0"/>'},Er={width:1024,height:1024,body:'<path fill="currentColor" d="M609.4 149.4L277.8 489.6a32 32 0 0 0 0 44.7l331.6 340.3a29 29 0 0 0 41.7 0a30.6 30.6 0 0 0 0-42.7l-311.8-320L651 192.1a30.6 30.6 0 0 0 0-42.7a29 29 0 0 0-41.7 0"/>'},xr={width:1024,height:1024,body:'<path fill="currentColor" d="M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"/><path fill="currentColor" d="m237.2 512l265.5 265.3a32 32 0 0 1-45.4 45.4l-288-288a32 32 0 0 1 0-45.4l288-288a32 32 0 1 1 45.4 45.4z"/>'},$r={width:1024,height:1024,body:'<path fill="currentColor" d="M754.8 480H160a32 32 0 1 0 0 64h594.8L521.3 777.3a32 32 0 0 0 45.4 45.4l288-288a32 32 0 0 0 0-45.4l-288-288a32 32 0 1 0-45.4 45.4z"/>'},Tr={width:1024,height:1024,body:'<path fill="currentColor" d="M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384L128 512l192 128z"/>'},Sr={width:1024,height:1024,body:'<path fill="currentColor" d="M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352l192 160l-192 128z"/>'},Vr={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.2 0l136 135.8a32 32 0 0 1-45.3 45.3L195.2 240.4a32 32 0 0 1 0-45.2m452.5 452.5a32 32 0 0 1 45.3 0l135.8 135.9a32 32 0 0 1-45.2 45.2L647.7 693a32 32 0 0 1 0-45.3m181.1-452.4a32 32 0 0 1 0 45.1L693 376.4a32 32 0 0 1-45.3-45.3l135.9-135.8a32 32 0 0 1 45.2 0M376.3 647.7a32 32 0 0 1 0 45.3L240.4 828.8a32 32 0 0 1-45.2-45.2L331 647.7a32 32 0 0 1 45.3 0"/>'},Br={width:1024,height:1024,body:'<path fill="currentColor" d="M176 416a112 112 0 1 1 0 224a112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224a112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224a112 112 0 0 1 0-224"/>'},Nr={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768a384 384 0 0 0 0 768m-48-247.6L668.6 512L464 375.6zm10.6-342.7l249.5 166.4a48 48 0 0 1 0 79.8L474.6 718.3a48 48 0 0 1-74.6-40V345.6a48 48 0 0 1 74.6-40z"/>'},Ar={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768a384 384 0 0 0 0 768m-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32m192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32"/>'},zr={width:1024,height:1024,body:'<path fill="currentColor" d="m160 96l192 .3a32 32 0 0 1 0 64l-192-.2V352a32 32 0 0 1-64 0V96zm0 832H96V672a32 32 0 1 1 64 0v192l192-.3a32 32 0 1 1 0 64zM864 96h64v256a32 32 0 1 1-64 0V160l-192 .3a32 32 0 1 1 0-64zm0 832l-192-.3a32 32 0 0 1 0-64l192 .2V672a32 32 0 1 1 64 0v256z"/>'},Mr={width:1024,height:1024,body:'<path fill="currentColor" d="m249.6 417l319.7 43.2l39.2 310.2L845.1 179zm-129 47.3a32 32 0 0 1-7.7-61.5l777.8-311a32 32 0 0 1 41.6 41.6L622 909a32 32 0 0 1-61.5-7.9L512 517z"/>'},Lr={width:1024,height:1024,body:'<path fill="currentColor" d="m64 448l832-320l-128 704l-446-243.3L832 192L242.8 545.5zm256 512V657l192 111z"/>'},Ir={width:1024,height:1024,body:'<path fill="currentColor" d="M512 896a384 384 0 1 0 0-768a384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896a448 448 0 0 1 0 896"/><path fill="currentColor" d="M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"/><path fill="currentColor" d="M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"/>'},Rr={width:1024,height:1024,body:'<path fill="currentColor" d="M512 896a384 384 0 1 0 0-768a384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896a448 448 0 0 1 0 896"/><path fill="currentColor" d="M745.3 361.3a32 32 0 0 1 45.4 45.4l-288 288a32 32 0 0 1-45.4 0l-160-160a32 32 0 1 1 45.4-45.4L480 626.8z"/>'},Dr={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m-55.8 536.4l-99.5-99.6a38.4 38.4 0 1 0-54.4 54.3L429.1 682a38.3 38.3 0 0 0 54.3 0l262.4-262.5a38.4 38.4 0 1 0-54.3-54.3z"/>'},Pr={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m0 393.7L408 353.6a38.4 38.4 0 1 0-54.4 54.3l104 104.1l-104 104a38.4 38.4 0 1 0 54.3 54.4l104.1-104l104 104a38.4 38.4 0 1 0 54.4-54.3L566.4 512l104-104a38.4 38.4 0 1 0-54.3-54.4z"/>'},Or={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m23.7 191.5q-77.9 0-123.2 44.3c-31 29.6-45.7 70.4-45.7 122.5H447c0-29.5 5.7-52.8 17.6-69c13.4-19.7 35.2-28.8 66.2-28.8q36.2-.2 56.3 19.7a77 77 0 0 1 19.7 54.9a78 78 0 0 1-19 50l-8.4 9.8c-45.8 40.9-73.2 70.4-82.4 89.5c-9.8 19-14 42.2-14 69v9.8h80.9v-9.9c0-16.9 3.5-31.6 10.6-45.7a109 109 0 0 1 28.1-35.2c33.8-29.6 54.2-48.6 60.6-55.6c16.9-22.6 26-51.4 26-86.6q0-64.4-42.2-101.4c-28.2-25.3-65.5-37.3-111.3-37.3m-12.6 406.2a54 54 0 0 0-38.7 14.8a49 49 0 0 0-15.5 38c0 15.5 4.9 28.2 15.5 38A55 55 0 0 0 523 768c15.5 0 28.1-5 38.7-14.8a52 52 0 0 0 16.2-38.7a52 52 0 0 0-15.5-38a56 56 0 0 0-39.4-14.8"/>'},Hr={width:1024,height:1024,body:'<path fill="currentColor" d="m186.5 544l41.4 41.3a32 32 0 1 1-45.2 45.4l-96-96a32 32 0 0 1 0-45.4l96-96a32 32 0 1 1 45.2 45.4L186.5 480h290.8V186.4L435.8 228a32 32 0 1 1-45.2-45.2l96-96.1a32 32 0 0 1 45.3 0l96 96a32 32 0 0 1-45.2 45.2l-41.4-41.2V480H832l-41.3-41.3a32 32 0 0 1 45.2-45.4l96 96a32 32 0 0 1 0 45.4l-96 96a32 32 0 0 1-45.2-45.4L832 544H541.3v293.4l41.4-41.2a32 32 0 1 1 45.2 45.2l-96 96a32 32 0 0 1-45.3 0l-96-96a32 32 0 1 1 45.3-45.2l41.4 41.4V544z"/>'},Fr={width:1024,height:1024,body:'<path fill="currentColor" d="M384 96a32 32 0 0 1 64 0v786.8a32 32 0 0 1-54.6 22.6L96 608a32 32 0 0 1 0-45.3h.2a32 32 0 0 1 45.1 0l242.8 243zm192 45.2a32 32 0 0 1 54.6-22.5L928 416a32 32 0 0 1 0 45.3h-.2a32 32 0 0 1-45.1 0L640 218.5V928a32 32 0 1 1-64 0z"/>'},Ur={width:1024,height:1024,body:'<path fill="currentColor" d="M512 896a320 320 0 1 0 0-640a320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768a384 384 0 0 1 0 768"/><path fill="currentColor" d="M512 320a32 32 0 0 1 32 32l-.5 224a32 32 0 1 1-64 0l.5-224a32 32 0 0 1 32-32"/><path fill="currentColor" d="M448 576a64 64 0 1 0 128 0a64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"/>'},jr={width:1024,height:1024,body:'<path fill="currentColor" d="M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"/><path fill="currentColor" d="M904 224L656.5 506.9a192 192 0 0 1-289 0L120 224zm-699 0l210.6 240.7a128 128 0 0 0 192.7 0L819 224z"/>'},qr={width:1024,height:1024,body:'<path fill="currentColor" d="M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96"/><path fill="currentColor" d="M384 416a64 64 0 1 0 0-128a64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256a128 128 0 0 1 0 256"/><path fill="currentColor" d="M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32m160 416a64 64 0 1 0 0-128a64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256a128 128 0 0 1 0 256"/><path fill="currentColor" d="M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"/>'},Gr={width:1024,height:1024,body:'<path fill="currentColor" d="M352 159.9v70.5a352 352 0 1 0 320 0v-70.5A416.1 416.1 0 0 1 512 960a416 416 0 0 1-160-800.1"/><path fill="currentColor" d="M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"/>'},ta={width:1024,height:1024,body:'<path fill="currentColor" d="M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"/><path fill="currentColor" d="M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"/>'},ht={"home-filled":Il,setting:Rl,user:Dl,"user-filled":Pl,lock:Ol,key:Hl,document:Fl,files:Ul,grid:jl,odometer:ql,menu:Gl,connection:Wl,monitor:Yl,medal:Zl,trophy:Kl,platform:Ql,cpu:Xl,"chat-dot-round":Jl,"chat-line-round":vl,"chat-square":er,bell:tr,"picture-filled":nr,picture:ar,edit:or,"edit-pen":lr,pointer:rr,delete:sr,search:ir,plus:cr,refresh:dr,download:pr,upload:fr,view:hr,check:mr,close:ur,warning:gr,"warning-filled":kr,filter:yr,"info-filled":br,"success-filled":ea,success:ea,"arrow-right":_r,"arrow-down":wr,"arrow-up":Cr,"arrow-left":Er,back:xr,right:$r,fold:Tr,expand:Sr,loading:Vr,"more-filled":Br,"video-play":Nr,"video-pause":Ar,"full-screen":zr,position:Mr,promotion:Lr,clock:Ir,"circle-check":Rr,"circle-check-filled":Dr,"circle-close-filled":Pr,"question-filled":Or,rank:Hr,sort:Fr,timer:Ur,message:jr,"set-up":qr,"switch-button":Gr,"copy-document":ta,copy:ta,folder:{width:1024,height:1024,body:'<path fill="currentColor" d="M128 192v640h768V320H485.8L357.5 192zm-32-64h287.9l128.4 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"/>'},"folder-add":{width:1024,height:1024,body:'<path fill="currentColor" d="M128 192v640h768V320H485.8L357.5 192zm-32-64h287.9l128.4 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m384 416V416h64v128h128v64H544v128h-64V608H352v-64z"/>'},"folder-remove":{width:1024,height:1024,body:'<path fill="currentColor" d="M128 192v640h768V320H485.8L357.5 192zm-32-64h287.9l128.4 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m256 416h320v64H352z"/>'},list:{width:1024,height:1024,body:'<path fill="currentColor" d="M704 192h160v736H160V192h160v64h384zM288 512h448v-64H288zm0 256h448v-64H288zm96-576V96h256v96z"/>'},notebook:{width:1024,height:1024,body:'<path fill="currentColor" d="M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"/><path fill="currentColor" d="M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"/>'},"refresh-right":{width:1024,height:1024,body:'<path fill="currentColor" d="M784.5 230.3v-50.6a32 32 0 1 1 64 0v149a32 32 0 0 1-32 32h-149a32 32 0 1 1 0-64h93a320 320 0 1 0-235.7 536.5a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384a384 384 0 0 1-384-384a384 384 0 0 1 643.7-283"/>'},"refresh-left":{width:1024,height:1024,body:'<path fill="currentColor" d="M289 296.7h93a32 32 0 0 1 0 64H233a32 32 0 0 1-32-32v-149a32 32 0 0 1 64 0v50.6a384 384 0 0 1 643.8 282.9a384 384 0 0 1-384 384a384 384 0 0 1-384-384h64a320 320 0 1 0 640 0a320 320 0 0 0-555.6-216.5z"/>'},"document-copy":{width:1024,height:1024,body:'<path fill="currentColor" d="M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"/>'},calendar:{width:1024,height:1024,body:'<path fill="currentColor" d="M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"/>'},link:{width:1024,height:1024,body:'<path fill="currentColor" d="m715.6 625.2l-45.2-45.3l90.5-90.6c75-74.9 85.1-186.3 22.7-248.9c-62.6-62.4-174-52.3-249 22.7l-90.4 90.5l-45.3-45.2l90.5-90.5c100-100 252-110.1 339.5-22.7c87.5 87.5 77.3 239.4-22.7 339.5l-90.5 90.5zm-90.4 90.4l-90.5 90.5c-100 100-252 110.1-339.5 22.7c-87.5-87.5-77.3-239.4 22.7-339.5l90.5-90.5l45.2 45.3l-90.5 90.6c-75 74.9-85.1 186.3-22.7 248.9c62.6 62.4 174 52.3 249-22.7l90.5-90.5zm0-362l45.2 45.2l-271.6 271.6l-45.2-45.2z"/>'},share:{width:1024,height:1024,body:'<path fill="currentColor" d="M679.9 348.8L378 537.4a128 128 0 0 1 5.1 52.2l280 105a128 128 0 1 1-22.5 59.8l-279.9-105a128 128 0 1 1-16.6-166.2l301.7-188.6a128 128 0 1 1 34 54.3z"/>'},star:{width:1024,height:1024,body:'<path fill="currentColor" d="m512 747.8l228.2 120a6.4 6.4 0 0 0 9.2-6.7L706 607l184.5-180a6.4 6.4 0 0 0-3.5-10.8L632 379L517.7 147.9a6.4 6.4 0 0 0-11.6 0l-114 231.2L137 416a6.4 6.4 0 0 0-3.5 11L318 607l-43.6 254a6.4 6.4 0 0 0 9.3 6.8zM313.6 924.5a70.4 70.4 0 0 1-102.1-74.3l37.8-220.9L89 473a70.4 70.4 0 0 1 39-120.1l221.8-32.3l99.2-201a70.4 70.4 0 0 1 126.2 0l99.2 201L896.2 353a70.4 70.4 0 0 1 39 120L774.7 629.5l38 220.9a70.4 70.4 0 0 1-102.2 74.2L512 820.1z"/>'},comment:{width:1024,height:1024,body:'<path fill="currentColor" d="M736 504a56 56 0 1 1 0-112a56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112a56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112a56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"/>'},phone:{width:1024,height:1024,body:'<path fill="currentColor" d="m79.4 432.3l512.3 512.3a32 32 0 0 0 35.2 6.8L880.4 843a32 32 0 0 0 10-52L736.5 637a32 32 0 0 0-37-6l-69.8 35l-271.6-271.7l35-69.8a32 32 0 0 0-6-37l-154-153.8a32 32 0 0 0-52 10L72.5 397.1a32 32 0 0 0 6.8 35.2zm60.4-30l81.6-190l104.2 104.2l-24.7 49.2l-20.6 41.2l32.6 32.7L584.4 711l32.7 32.6l41.2-20.6l49.3-24.6l104.2 104.1L621.7 884zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192m0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384"/>'},"video-camera":{width:1024,height:1024,body:'<path fill="currentColor" d="M704 768V256H128v512zm64-416l192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.6v176.8l128 64V359.6zM192 320h192v64H192z"/>'},house:{width:1024,height:1024,body:'<path fill="currentColor" d="M192 414v482h640V414L512 147.3zm-52.5-39.6l352-293.3a32 32 0 0 1 41 0l352 293.3A32 32 0 0 1 896 399v529a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V399a32 32 0 0 1 11.5-24.6"/>'},"magic-stick":{width:1024,height:1024,body:'<path fill="currentColor" d="M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.9 199l45.1-45l135.7 135.7l-45.2 45.2l-135.7-135.7zm407.3 407.4l45.2-45.2l135.7 135.7l-45.2 45.2zM114 923.2L68.8 878l316.8-316.8l45.2 45.2zm588.4-588.4l-45.2-45.2l135.7-135.7l45.2 45.2z"/>'},operation:{width:1024,height:1024,body:'<path fill="currentColor" d="M389.4 768a96 96 0 0 1 181.2 0H896v64H570.6a96 96 0 0 1-181.2 0H128v-64zm192-288a96 96 0 0 1 181.2 0H896v64H762.6a96 96 0 0 1-181.2 0H128v-64zm-320-288a96 96 0 0 1 181.2 0H896v64H442.6a96 96 0 0 1-181.2 0H128v-64z"/>'},"data-line":{width:1024,height:1024,body:'<path fill="currentColor" d="M359.2 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.2l110.9 192h-73.9L591.4 768H433L322.2 960h-73.9zM832 192H192v512h640zM342.7 534.7a32 32 0 1 1-45.4-45.4L445 341.8l125.4 94L679 300a32 32 0 1 1 50 40L581.6 524.2l-130.6-98l-108.3 108.4z"/>'},"pie-chart":{width:1024,height:1024,body:'<path fill="currentColor" d="M448 68.5v64.8A384.1 384.1 0 0 0 512 896a384 384 0 0 0 378.7-320h64.8A448.1 448.1 0 0 1 64 512A448 448 0 0 1 448 68.5"/><path fill="currentColor" d="M576 97.3V448h350.7A384 384 0 0 0 576 97.3M512 64V33.2A448 448 0 0 1 990.8 512H512z"/>'},"data-board":{width:1024,height:1024,body:'<path fill="currentColor" d="M32 128h960v64H32z"/><path fill="currentColor" d="M192 192v512h640V192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"/><path fill="currentColor" d="M322.2 960h-73.9L393 709.4l55.4 32zm453.9 0h-73.9L576 741.4l55.4-32z"/>'},"trend-charts":{width:1024,height:1024,body:'<path fill="currentColor" d="M128 896V128h768v768zm291.7-327.3l128 102.4L728 469.3l-48-42.6l-139.7 156.6l-128-102.4L232 682.7l47.8 42.6zM816 352a48 48 0 1 0-96 0a48 48 0 0 0 96 0"/>'},histogram:{width:1024,height:1024,body:'<path fill="currentColor" d="M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"/>'},crop:{width:1024,height:1024,body:'<path fill="currentColor" d="M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0z"/><path fill="currentColor" d="M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32"/>'},location:{width:1024,height:1024,body:'<path fill="currentColor" d="M800 416a288 288 0 1 0-576 0c0 118.1 94.5 272.1 288 456.6C705.5 688 800 534 800 416M512 960Q160 640 160 416a352 352 0 0 1 704 0q0 224-352 544"/><path fill="currentColor" d="M512 512a96 96 0 1 0 0-192a96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320a160 160 0 0 1 0 320"/>'},aim:{width:1024,height:1024,body:'<path fill="currentColor" d="M512 896a384 384 0 1 0 0-768a384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896a448 448 0 0 1 0 896"/><path fill="currentColor" d="M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"/>'},"caret-top":{width:1024,height:1024,body:'<path fill="currentColor" d="M512 320L192 704h640z"/>'},"caret-bottom":{width:1024,height:1024,body:'<path fill="currentColor" d="m192 384l320 384l320-384z"/>'},minus:{width:1024,height:1024,body:'<path fill="currentColor" d="M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"/>'},iphone:{width:1024,height:1024,body:'<path fill="currentColor" d="M224 768v96a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64v-96zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96zm304-144a48 48 0 1 1-96 0a48 48 0 0 1 96 0"/>'},cellphone:{width:1024,height:1024,body:'<path fill="currentColor" d="M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64m128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64m128 640a64 64 0 1 1 0-128a64 64 0 0 1 0 128"/>'},"office-building":{width:1024,height:1024,body:'<path fill="currentColor" d="M192 128v704h384V128zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"/><path fill="currentColor" d="M256 256h256v64H256zm0 192h256v64H256zm0 192h256v64H256zm384-128h128v64H640zm0 128h128v64H640zM64 832h896v64H64z"/><path fill="currentColor" d="M640 384v448h192V384zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32"/>'},stamp:{width:1024,height:1024,body:'<path fill="currentColor" d="M624 476v164h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V476a192 192 0 1 1 224 0M128 896v-64h768v64z"/>'},wallet:{width:1024,height:1024,body:'<path fill="currentColor" d="M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32z"/><path fill="currentColor" d="M128 320v512h768V320zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32"/><path fill="currentColor" d="M704 640a64 64 0 1 1 0-128a64 64 0 0 1 0 128"/>'},money:{width:1024,height:1024,body:'<path fill="currentColor" d="M256 640v192h640V384H768v-64h151c14.2 0 19.4 1.5 24.6 4.3a29 29 0 0 1 12.2 12c2.7 5.3 4.2 10.5 4.2 24.7v494c0 14.2-1.5 19.4-4.3 24.6a29 29 0 0 1-12 12.2c-5.3 2.7-10.5 4.2-24.7 4.2H233c-14.2 0-19.4-1.5-24.6-4.3a29 29 0 0 1-12.2-12c-2.7-5.3-4.2-10.5-4.2-24.7V640z"/><path fill="currentColor" d="M768 192H128v448h640zm64-23v494c0 14.2-1.5 19.4-4.3 24.6a29 29 0 0 1-12 12.2c-5.3 2.7-10.5 4.2-24.7 4.2H105c-14.2 0-19.4-1.5-24.6-4.3a29 29 0 0 1-12.2-12c-2.7-5.3-4.2-10.5-4.2-24.7V169c0-14.2 1.5-19.4 4.3-24.6a29 29 0 0 1 12-12.2c5.3-2.7 10.5-4.2 24.7-4.2h686c14.2 0 19.4 1.5 24.6 4.3a29 29 0 0 1 12.1 12c2.8 5.3 4.2 10.5 4.2 24.7z"/><path fill="currentColor" d="M448 576a160 160 0 1 1 0-320a160 160 0 0 1 0 320m0-64a96 96 0 1 0 0-192a96 96 0 0 0 0 192"/>'},"shopping-cart":{width:1024,height:1024,body:'<path fill="currentColor" d="M432 928a48 48 0 1 1 0-96a48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96a48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.4 25.7L320.6 256H928a32 32 0 0 1 31.3 38.7l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.4-25.7L229.8 128zm314.2 576h396l82.2-384h-555z"/>'},"credit-card":{width:1024,height:1024,body:'<path fill="currentColor" d="M896 324.1c0-42.4-2.5-55.3-9.5-68.5a52 52 0 0 0-22.2-22c-13.1-7.1-26-9.6-68.4-9.6H228.1c-42.4 0-55.3 2.5-68.5 9.5a52 52 0 0 0-22 22.2c-7.1 13.1-9.6 26-9.6 68.4v375.8c0 42.4 2.5 55.3 9.5 68.5a52 52 0 0 0 22.2 22c13.1 7.1 26 9.6 68.4 9.6h567.8c42.4 0 55.3-2.5 68.5-9.5a52 52 0 0 0 22-22.2c7.1-13.1 9.6-26 9.6-68.4zm64 0v375.8c0 57-6 77.8-17 98.6q-17 31.5-48.5 48.4C863 864 853 864 796 864H228c-57 0-77.7-6-98.5-17A116 116 0 0 1 81 798.4C70 777.7 64 757 64 700V324c0-57 5.9-77.7 17-98.5q17-31.6 48.4-48.5c31.4-16.9 41.6-17 98.6-17h567.8c57.1 0 77.8 5.9 98.6 17q31.6 17 48.4 48.4C959.6 256.8 960 267 960 324z"/><path fill="currentColor" d="M64 320h896v64H64zm0 128h896v64H64zm128 192h256v64H192z"/>'},coin:{width:1024,height:1024,body:'<path fill="currentColor" d="m162 580.7l29.8 59c-20.5 20-31.8 42-31.8 64.3c0 82.3 155.3 160 352 160s352-77.7 352-160c0-22.3-11.4-44.2-31.8-64.3l30.5-58.5C903.9 615.8 928 657.7 928 704c0 129.7-188.5 224-416 224S96 833.7 96 704c0-46.6 24.3-88.6 66-123.3"/><path fill="currentColor" d="m162 388.7l29.8 59c-20.5 20.1-31.8 42-31.8 64.3c0 82.3 155.3 160 352 160s352-77.7 352-160c0-22.3-11.4-44.2-31.8-64.3l30.5-58.5C903.9 423.8 928 465.7 928 512c0 129.7-188.5 224-416 224S96 641.7 96 512c0-46.6 24.3-88.6 66-123.3"/><path fill="currentColor" d="M512 544c-227.5 0-416-94.3-416-224S284.5 96 512 96s416 94.3 416 224s-188.5 224-416 224m0-64c196.7 0 352-77.7 352-160S708.7 160 512 160s-352 77.7-352 160s155.3 160 352 160"/>'},goods:{width:1024,height:1024,body:'<path fill="currentColor" d="M320 288v-22.3C320 154.7 405.5 64 512 64s192 90.7 192 201.7V288h131a32 32 0 0 1 31.9 28.8l57.6 576a32 32 0 0 1-31.8 35.2H131.3a32 32 0 0 1-31.8-35.2l57.6-576A32 32 0 0 1 189 288zm64 0h256v-22.3c0-76.5-57.7-137.7-128-137.7s-128 61.2-128 137.7zm-64 64H218l-51.3 512h690.6L806 352H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0z"/>'},collection:{width:1024,height:1024,body:'<path fill="currentColor" d="M192 736h640V128H256a64 64 0 0 0-64 64zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.5V192A128 128 0 0 1 256 64"/><path fill="currentColor" d="M240 800a48 48 0 1 0 0 96h592v-96zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224m144-608v250.9l96-76.8l96 76.8V128zm-64-64h320v381.4a32 32 0 0 1-52 25L480 384l-108 86.4a32 32 0 0 1-52-25z"/>'},tools:{width:1024,height:1024,body:'<path fill="currentColor" d="M764.4 254.7A352 352 0 0 1 850.8 404H960v192H850.8a352 352 0 0 1-86.4 149.4l54.7 94.7L653 936l-54.6-94.7a353 353 0 0 1-172.5 0L371 936l-166-96l54.7-94.7A352 352 0 0 1 173.2 596H64V404h109.2a352 352 0 0 1 86.4-149.3L204.8 160L371 64h.2l54.7 94.6a353 353 0 0 1 172.4 0L652.8 64h.1l166.3 96zM704 500a192 192 0 1 0-384 0a192 192 0 0 0 384 0"/>'},"document-checked":{width:1024,height:1024,body:'<path fill="currentColor" d="M805.5 320L640 154.5V320zm26.5 64H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m318.4 582.1l181-181l45.2 45.3l-226.2 226.2L320 578.3l45.2-45.3z"/>'},box:{width:1024,height:1024,body:'<path fill="currentColor" d="M317 128L128 344v552h768V344L707 128zm-14.5-64h419a32 32 0 0 1 24 10.9l206.6 236A32 32 0 0 1 960 332v596a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332a32 32 0 0 1 8-21L278.3 75a32 32 0 0 1 24.1-11"/><path fill="currentColor" d="M64 320h896v64H64z"/><path fill="currentColor" d="M448 327.9V640h128V327.9L526 128h-28zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320z"/>'},"alarm-clock":{width:1024,height:1024,body:'<path fill="currentColor" d="M512 832a320 320 0 1 0 0-640a320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768a384 384 0 0 1 0 768"/><path fill="currentColor" d="m292.3 824.6l55.4 32l-48 83.1a32 32 0 1 1-55.4-32zm439.4 0l-55.4 32l48 83.1a32 32 0 1 0 55.4-32zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0zM90.5 312.3A160 160 0 0 1 312.3 90.5l-46.8 46.8a96 96 0 0 0-128 128zm835.3 0A160 160 0 0 0 704 90.5l46.8 46.8a96 96 0 0 1 128 128z"/>'},"takeaway-box":{width:1024,height:1024,body:'<path fill="currentColor" d="M832 384H192v448h640zM96 320h832V128H96zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64"/>'},coordinate:{width:1024,height:1024,body:'<path fill="currentColor" d="M480 512h64v320h-64z"/><path fill="currentColor" d="M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64m64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128m256-256a192 192 0 1 0 0-384a192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512a256 256 0 0 1 0 512"/>'},postcard:{width:1024,height:1024,body:'<path fill="currentColor" d="M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96"/><path fill="currentColor" d="M704 320a64 64 0 1 1 0 128a64 64 0 0 1 0-128M288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32m0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"/>'},"data-analysis":{width:1024,height:1024,body:'<path fill="currentColor" d="m665.2 768l110.9 192h-73.9L591.4 768H433L322.2 960h-73.9l110.9-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32zM832 192H192v512h640zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32"/>'},reading:{width:1024,height:1024,body:'<path fill="currentColor" d="m512 863.4l384-54.9V169.8l-370.4 53a96 96 0 0 1-27.2 0l-370.4-53v638.7zm-375-757l370.5 53a32 32 0 0 0 9 0l370.5-53a64 64 0 0 1 73 63.4v638.7a64 64 0 0 1-55 63.4l-388.5 55.5a32 32 0 0 1-9 0L119 871.9a64 64 0 0 1-55-63.4V169.8a64 64 0 0 1 73-63.4"/><path fill="currentColor" d="M480 192h64v704h-64z"/>'},flag:{width:1024,height:1024,body:'<path fill="currentColor" d="M288 128h608L736 384l160 256H288v320h-96V64h96z"/>'}},Wr=Object.keys(ht).sort();function Yr(t){return t in ht}const le=e.defineComponent({__name:"AppIcon",props:{name:{},size:{},color:{}},setup(t){const n=t,a=e.computed(()=>ht[n.name]??null),o=e.computed(()=>typeof n.size=="number"?`${n.size}px`:n.size??"1em");return(l,r)=>a.value?(e.openBlock(),e.createBlock(e.unref(Ll),{key:0,icon:a.value,width:o.value,height:o.value,style:e.normalizeStyle(t.color?{color:t.color}:void 0)},null,8,["icon","width","height","style"])):(e.openBlock(),e.createElementBlock("span",{key:1,style:e.normalizeStyle({fontSize:o.value,color:t.color,width:o.value,height:o.value,display:"inline-block"}),"aria-hidden":"true"},null,4))}}),Gt=10,na=[10,20,50],aa="total, sizes, prev, pager, next",Zr=L(e.defineComponent({__name:"AppPagination",props:{currentPage:{},pageSize:{default:Gt},total:{},size:{default:"default"}},emits:["update:currentPage","update:pageSize","currentChange","sizeChange"],setup(t,{emit:n}){const a=t,o=n;function l(i){o("update:currentPage",i),o("currentChange",i)}function r(i){o("update:pageSize",i),o("sizeChange",i)}return(i,c)=>{const s=e.resolveComponent("el-pagination");return a.total>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(i.$style.pagination),"data-testid":"app-pagination"},[e.createVNode(s,{"current-page":a.currentPage,"page-size":a.pageSize,"page-sizes":[...e.unref(na)],total:a.total,layout:e.unref(aa),size:a.size,background:"",onCurrentChange:l,onSizeChange:r},null,8,["current-page","page-size","page-sizes","total","layout","size"])],2)):e.createCommentVNode("",!0)}}}),[["__cssModules",{$style:{pagination:"_pagination_d8k9z_2"}}]]),Kr=L(e.defineComponent({__name:"ConfirmDialog",props:{modelValue:{type:Boolean},title:{default:"确认操作"},width:{default:"400px"},loading:{type:Boolean,default:!1},message:{},type:{default:"warning"},cancelText:{default:"取消"},confirmText:{default:"确定"}},emits:["update:modelValue","confirm"],setup(t,{emit:n}){const a=n;function o(){a("confirm")}return(l,r)=>(e.openBlock(),e.createBlock(rt,{"model-value":t.modelValue,title:t.title,width:t.width,loading:t.loading,"cancel-text":t.cancelText,"confirm-text":t.confirmText,"onUpdate:modelValue":r[0]||(r[0]=i=>l.$emit("update:modelValue",i)),onConfirm:o},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(l.$style.content)},[t.type==="warning"?(e.openBlock(),e.createBlock(le,{key:0,name:"warning",class:e.normalizeClass(l.$style.icon),style:{color:"var(--el-color-warning)"}},null,8,["class"])):t.type==="danger"?(e.openBlock(),e.createBlock(le,{key:1,name:"circle-close-filled",class:e.normalizeClass(l.$style.icon),style:{color:"var(--el-color-danger)"}},null,8,["class"])):(e.openBlock(),e.createBlock(le,{key:2,name:"info-filled",class:e.normalizeClass(l.$style.icon),style:{color:"var(--el-color-primary)"}},null,8,["class"])),e.createElementVNode("p",{class:e.normalizeClass(l.$style.message)},e.toDisplayString(t.message),3)],2)]),_:1},8,["model-value","title","width","loading","cancel-text","confirm-text"]))}}),[["__cssModules",{$style:{content:"_content_1cbfb_2",icon:"_icon_1cbfb_8",message:"_message_1cbfb_13"}}]]),Qr=e.defineComponent({__name:"FormDialog",props:{modelValue:{type:Boolean},title:{},width:{default:"500px"},loading:{type:Boolean,default:!1},labelWidth:{default:"100px"},formData:{},rules:{default:()=>({})},showFullscreenBtn:{type:Boolean,default:!1},cancelText:{default:"取消"},confirmText:{default:"确定"}},emits:["update:modelValue","submit","cancel"],setup(t,{emit:n}){const a=t,o=n,l=e.ref();async function r(){if(l.value)try{await l.value.validate(),o("submit",{...a.formData})}catch{}}function i(){o("cancel")}return e.watch(()=>a.modelValue,c=>{var s;c&&((s=l.value)==null||s.clearValidate())}),(c,s)=>{const d=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(rt,{"model-value":t.modelValue,title:t.title,width:t.width,loading:t.loading,"show-fullscreen-btn":t.showFullscreenBtn,"cancel-text":t.cancelText,"confirm-text":t.confirmText,"onUpdate:modelValue":s[0]||(s[0]=f=>c.$emit("update:modelValue",f)),onConfirm:r,onCancel:i},{default:e.withCtx(()=>[e.createVNode(d,{ref_key:"formRef",ref:l,model:t.formData,rules:t.rules,"label-width":t.labelWidth},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default",{form:t.formData})]),_:3},8,["model","rules","label-width"])]),_:3},8,["model-value","title","width","loading","show-fullscreen-btn","cancel-text","confirm-text"])}}}),Xr=["onClick"],Jr=L(e.defineComponent({__name:"FilterTabs",props:{options:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:n}){const a=n;return(o,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.$style.tabs)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,r=>(e.openBlock(),e.createElementBlock("button",{key:r.value,class:e.normalizeClass([o.$style.tab,{[o.$style.tabActive]:t.modelValue===r.value}]),onClick:i=>a("update:modelValue",r.value)},[e.createTextVNode(e.toDisplayString(r.label)+" ",1),r.count!=null?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(o.$style.count)},e.toDisplayString(r.count),3)):e.createCommentVNode("",!0)],10,Xr))),128))],2))}}),[["__cssModules",{$style:{tabs:"_tabs_1fmwo_2",tab:"_tab_1fmwo_2",tabActive:"_tabActive_1fmwo_32",count:"_count_1fmwo_38"}}]]),vr=["onClick"],es=L(e.defineComponent({__name:"Toast",setup(t,{expose:n}){const a=e.ref([]);let o=0;function l(c,s="info",d=3e3){const f=o++;a.value.push({id:f,message:c,type:s}),setTimeout(()=>r(f),d)}function r(c){const s=a.value.findIndex(d=>d.id===c);s>=0&&(a.value[s].removing=!0,setTimeout(()=>{a.value=a.value.filter(d=>d.id!==c)},300))}function i(c,s="info",d){l(c,s,d)}return n({show:i}),(c,s)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createElementVNode("div",{class:e.normalizeClass(c.$style.container)},[e.createVNode(e.TransitionGroup,{name:"toast"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,d=>(e.openBlock(),e.createElementBlock("div",{key:d.id,class:e.normalizeClass([c.$style.item,c.$style[d.type],{[c.$style.removing]:d.removing}]),onClick:f=>r(d.id)},[e.createElementVNode("span",{class:e.normalizeClass(c.$style.icon)},[d.type==="success"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("✓")],64)):d.type==="error"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("✗")],64)):d.type==="warning"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("⚠")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createTextVNode("ℹ")],64))],2),e.createElementVNode("span",{class:e.normalizeClass(c.$style.msg)},e.toDisplayString(d.message),3)],10,vr))),128))]),_:1})],2)]))}}),[["__cssModules",{$style:{container:"_container_1tfi3_2",item:"_item_1tfi3_14",info:"_info_1tfi3_31",success:"_success_1tfi3_37",warning:"_warning_1tfi3_43",error:"_error_1tfi3_49",removing:"_removing_1tfi3_55",icon:"_icon_1tfi3_60",msg:"_msg_1tfi3_65"}}]]),ts=L(e.defineComponent({__name:"EmptyState",props:{icon:{},iconSize:{},title:{},description:{},compact:{type:Boolean,default:!1},actionText:{}},emits:["action"],setup(t,{emit:n}){const a=n;return(o,l)=>{const r=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([o.$style.empty,t.compact&&o.$style.compact])},[t.icon?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.$style.icon)},[e.createVNode(le,{name:t.icon,size:t.iconSize??(t.compact?48:64)},null,8,["name","size"])],2)):e.createCommentVNode("",!0),t.title?(e.openBlock(),e.createElementBlock("h2",{key:1,class:e.normalizeClass(o.$style.title)},e.toDisplayString(t.title),3)):e.createCommentVNode("",!0),t.description?(e.openBlock(),e.createElementBlock("p",{key:2,class:e.normalizeClass(o.$style.desc)},e.toDisplayString(t.description),3)):e.createCommentVNode("",!0),o.$slots.default||t.actionText?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(o.$style.actions)},[e.renderSlot(o.$slots,"default",{},()=>[t.actionText?(e.openBlock(),e.createBlock(r,{key:0,type:"primary",onClick:l[0]||(l[0]=i=>a("action"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.actionText),1)]),_:1})):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0)],2)}}}),[["__cssModules",{$style:{empty:"_empty_147z3_2",compact:"_compact_147z3_11",icon:"_icon_147z3_15",title:"_title_147z3_24",desc:"_desc_147z3_31",actions:"_actions_147z3_42"}}]]),ns=e.defineComponent({name:"ErrorBoundary",props:{context:{type:String,default:""},onError:{type:Function,default:void 0}},setup(t,{slots:n,expose:a}){const o=e.ref(!1),l=e.ref(null),r=e.ref(0);e.onErrorCaptured(c=>(o.value=!0,l.value=c instanceof Error?c:new Error(String(c)),console.error(`[ErrorBoundary] ${t.context}`,c),t.onError&&t.onError({context:t.context,error:l.value}),!1));function i(){o.value=!1,l.value=null,r.value++}return a({hasError:o,error:l,retryCounter:r,retry:i}),()=>{var s,d;if(o.value)return e.h("div",{class:"apf-error-boundary"},[e.h("div",{class:"apf-error-boundary__inner"},[e.h("div",{class:"apf-error-boundary__header"},[e.h("span",{class:"apf-error-boundary__icon"},"!"),e.h("span",{class:"apf-error-boundary__title"},"Render Error")]),t.context?e.h("div",{class:"apf-error-boundary__info"},t.context):null,e.h("div",{class:"apf-error-boundary__message"},((s=l.value)==null?void 0:s.message)??"Unknown error"),e.h(se.ElButton,{size:"small",type:"primary",onClick:i},()=>"Retry")])]);const c=(d=n.default)==null?void 0:d.call(n);return c?e.h("div",{key:r.value,style:{display:"contents"}},c):null}}}),as=e.defineComponent({__name:"StatusTag",props:{status:{},statusMap:{},round:{type:Boolean,default:!0},size:{default:"default"}},setup(t){const n={pending:{label:"待审批",type:"warning",effect:"light"},approved:{label:"已通过",type:"success",effect:"light"},rejected:{label:"已拒绝",type:"danger",effect:"light"},delegated:{label:"已转签",type:"info",effect:"light"},commented:{label:"已评论",type:"info",effect:"light"},active:{label:"启用",type:"success",effect:"light"},inactive:{label:"停用",type:"danger",effect:"light"},draft:{label:"草稿",type:"info",effect:"light"},published:{label:"已发布",type:"success",effect:"light"},archived:{label:"已归档",type:"info",effect:"light"},running:{label:"运行中",type:"primary",effect:"light"},completed:{label:"已完成",type:"success",effect:"light"},failed:{label:"失败",type:"danger",effect:"light"},cancelled:{label:"已取消",type:"info",effect:"light"},waiting:{label:"等待中",type:"warning",effect:"light"}},a=t,o=e.computed(()=>({...n,...a.statusMap})[a.status]??{label:a.status,type:"info",effect:"light"});return(l,r)=>{const i=e.resolveComponent("el-tag");return e.openBlock(),e.createBlock(i,{type:o.value.type,effect:o.value.effect??"light",round:t.round,size:t.size},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.value.label),1)]),_:1},8,["type","effect","round","size"])}}}),os=L(e.defineComponent({__name:"Skeleton",props:{variant:{default:"card"},count:{default:3},rows:{default:5},animated:{type:Boolean,default:!0}},setup(t){return(n,a)=>{const o=e.resolveComponent("el-skeleton");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([n.$style.skeleton,{[n.$style.animated]:t.animated}])},[t.variant==="card"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.count,l=>(e.openBlock(),e.createElementBlock("div",{key:l,class:e.normalizeClass(n.$style.card)},[e.createElementVNode("div",{class:e.normalizeClass(n.$style.cardImage)},null,2),e.createElementVNode("div",{class:e.normalizeClass(n.$style.cardBody)},[e.createElementVNode("div",{class:e.normalizeClass([n.$style.line,n.$style.lineTitle])},null,2),e.createElementVNode("div",{class:e.normalizeClass([n.$style.line,n.$style.lineText])},null,2),e.createElementVNode("div",{class:e.normalizeClass([n.$style.line,n.$style.lineTextShort])},null,2)],2)],2))),128)):e.createCommentVNode("",!0),t.variant==="list"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.count,l=>(e.openBlock(),e.createElementBlock("div",{key:l,class:e.normalizeClass(n.$style.listItem)},[e.createElementVNode("div",{class:e.normalizeClass(n.$style.avatar)},null,2),e.createElementVNode("div",{class:e.normalizeClass(n.$style.listContent)},[e.createElementVNode("div",{class:e.normalizeClass([n.$style.line,n.$style.lineTitle])},null,2),e.createElementVNode("div",{class:e.normalizeClass([n.$style.line,n.$style.lineText])},null,2)],2)],2))),128)):e.createCommentVNode("",!0),t.variant==="table"?(e.openBlock(),e.createBlock(o,{key:2,rows:t.rows,animated:""},null,8,["rows"])):e.createCommentVNode("",!0)],2)}}}),[["__cssModules",{$style:{skeleton:"_skeleton_1krg9_2",animated:"_animated_1krg9_6",cardImage:"_cardImage_1krg9_6",line:"_line_1krg9_7",avatar:"_avatar_1krg9_8","skeleton-loading":"_skeleton-loading_1krg9_1",card:"_card_1krg9_6",cardBody:"_cardBody_1krg9_36",listItem:"_listItem_1krg9_41",listContent:"_listContent_1krg9_57",lineTitle:"_lineTitle_1krg9_71",lineText:"_lineText_1krg9_76",lineTextShort:"_lineTextShort_1krg9_80"}}]]),ls=L(e.defineComponent({__name:"CardGridSkeleton",props:{count:{default:6},showThumb:{type:Boolean,default:!0},animated:{type:Boolean,default:!0}},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([n.$style.grid,{[n.$style.animated]:t.animated}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.count,o=>(e.openBlock(),e.createElementBlock("div",{key:o,class:e.normalizeClass(n.$style.card)},[t.showThumb?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(n.$style.thumb)},null,2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(n.$style.body)},[e.createElementVNode("div",{class:e.normalizeClass([n.$style.line,n.$style.title])},null,2),e.createElementVNode("div",{class:e.normalizeClass([n.$style.line,n.$style.text])},null,2),e.createElementVNode("div",{class:e.normalizeClass([n.$style.line,n.$style.textShort])},null,2)],2)],2))),128))],2))}}),[["__cssModules",{$style:{grid:"_grid_a2uu0_2",card:"_card_a2uu0_9",animated:"_animated_a2uu0_16",thumb:"_thumb_a2uu0_16",line:"_line_a2uu0_17","skeleton-loading":"_skeleton-loading_a2uu0_1",body:"_body_a2uu0_39",title:"_title_a2uu0_52",text:"_text_a2uu0_57",textShort:"_textShort_a2uu0_61"}}]]),rs=["src","alt"],ss={name:"UserAvatar"},is=e.defineComponent({...ss,props:{name:{default:""},src:{default:""},size:{default:32},shape:{default:"circle"}},setup(t){const n=t,a=e.computed(()=>n.name?n.name.charAt(0).toUpperCase():"?"),o=e.computed(()=>!!n.src),l=e.computed(()=>{const r=n.size===24?"var(--avatar-size-sm, 24px)":n.size===32?"var(--avatar-size-md, 32px)":n.size===40?"var(--avatar-size-lg, 40px)":n.size===48?"var(--avatar-size-xl, 48px)":`${n.size}px`;return{width:r,height:r,fontSize:`${Math.max(n.size*.45,12)}px`}});return(r,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([r.$style.avatar,t.shape==="square"?r.$style.square:r.$style.circle]),style:e.normalizeStyle(l.value)},[o.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.src,alt:t.name,class:e.normalizeClass(r.$style.img),onError:i[0]||(i[0]=c=>r.$emit("error",c))},null,42,rs)):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(r.$style.initial)},e.toDisplayString(a.value),3))],6))}}),cs=L(is,[["__cssModules",{$style:{avatar:"_avatar_nft28_2",circle:"_circle_nft28_13",square:"_square_nft28_17",img:"_img_nft28_21",initial:"_initial_nft28_27"}}]]),ds=L(e.defineComponent({__name:"PageShell",props:{fill:{type:Boolean,default:!1}},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([n.$style.shell,t.fill&&n.$style.shellFill])},[e.renderSlot(n.$slots,"default")],2))}}),[["__cssModules",{$style:{shell:"_shell_1qlp7_2",shellFill:"_shellFill_1qlp7_10"}}]]),ps=L(e.defineComponent({__name:"PageHeader",props:{title:{},subtitle:{}},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("header",{class:e.normalizeClass(n.$style.header)},[e.createElementVNode("div",{class:e.normalizeClass(n.$style.titleRow)},[e.createElementVNode("div",{class:e.normalizeClass(n.$style.titleLeft)},[e.createElementVNode("h1",{class:e.normalizeClass(n.$style.title)},e.toDisplayString(t.title),3),t.subtitle?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(n.$style.subtitle)},e.toDisplayString(t.subtitle),3)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default")],2),n.$slots.actions||n.$slots.extra?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(n.$style.actions)},[e.renderSlot(n.$slots,"actions"),e.renderSlot(n.$slots,"extra")],2)):e.createCommentVNode("",!0)],2)],2))}}),[["__cssModules",{$style:{header:"_header_ect8w_2",titleRow:"_titleRow_ect8w_6",titleLeft:"_titleLeft_ect8w_14",title:"_title_ect8w_6",subtitle:"_subtitle_ect8w_26",actions:"_actions_ect8w_33"}}]]),fs={key:0,class:"apf-content-panel__head"},hs={key:0,class:"apf-content-panel__title"},ms={key:1,class:"apf-content-panel__extra"},us={class:"apf-content-panel__body"},gs=L(e.defineComponent({__name:"ContentPanel",props:{title:{},flush:{type:Boolean,default:!1},fill:{type:Boolean,default:!1}},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("section",{class:e.normalizeClass(["apf-content-panel",{"apf-content-panel--flush":t.flush,"apf-content-panel--fill":t.fill}])},[t.title||n.$slots.extra?(e.openBlock(),e.createElementBlock("header",fs,[t.title?(e.openBlock(),e.createElementBlock("span",hs,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),n.$slots.extra?(e.openBlock(),e.createElementBlock("div",ms,[e.renderSlot(n.$slots,"extra",{},void 0,!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",us,[e.renderSlot(n.$slots,"default",{},void 0,!0)])],2))}}),[["__scopeId","data-v-dd4cdf29"]]),ks={class:"apf-filter-bar"},ys={key:0,class:"apf-filter-bar__title"},bs={class:"apf-filter-bar__fields"},_s={class:"apf-filter-bar__actions"},ws=L(e.defineComponent({__name:"FilterBar",props:{title:{}},emits:["search","reset"],setup(t,{emit:n}){const a=n;return(o,l)=>{const r=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",ks,[t.title?(e.openBlock(),e.createElementBlock("div",ys,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.createElementVNode("div",bs,[e.renderSlot(o.$slots,"default",{},void 0,!0)]),e.createElementVNode("div",_s,[e.renderSlot(o.$slots,"actions",{},()=>[e.createVNode(r,{type:"primary",onClick:l[0]||(l[0]=i=>a("search"))},{default:e.withCtx(()=>[...l[2]||(l[2]=[e.createTextVNode("查询",-1)])]),_:1}),e.createVNode(r,{onClick:l[1]||(l[1]=i=>a("reset"))},{default:e.withCtx(()=>[...l[3]||(l[3]=[e.createTextVNode("重置",-1)])]),_:1})],!0)])])}}}),[["__scopeId","data-v-86218301"]]),Cs=L(e.defineComponent({__name:"CardTable",props:{loading:{type:Boolean,default:!1},padding:{default:"var(--spacing-sm, 8px)"},borderless:{type:Boolean,default:!1}},setup(t){return(n,a)=>{const o=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["apf-card-table",{"apf-card-table--borderless":t.borderless}]),style:e.normalizeStyle({padding:t.padding})},[e.renderSlot(n.$slots,"default",{},void 0,!0)],6)),[[o,t.loading]])}}}),[["__scopeId","data-v-fbd06971"]]),Es={class:"apf-table-row-actions"},xs=L(e.defineComponent({__name:"TableRowActions",props:{actions:{},collapseAt:{default:5},visibleCount:{default:2}},setup(t){const n=t,a=e.computed(()=>n.actions.length>=n.collapseAt),o=e.computed(()=>a.value?n.actions.slice(0,n.visibleCount):n.actions),l=e.computed(()=>a.value?n.actions.slice(n.visibleCount):[]);function r(i){var c;(c=n.actions.find(s=>s.key===i))==null||c.onClick()}return(i,c)=>{const s=e.resolveComponent("el-button"),d=e.resolveComponent("el-dropdown-item"),f=e.resolveComponent("el-dropdown-menu"),u=e.resolveComponent("el-dropdown");return e.openBlock(),e.createElementBlock("div",Es,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,h=>(e.openBlock(),e.createBlock(s,{key:h.key,link:"",type:h.type??"primary",size:"small",loading:h.loading,onClick:h.onClick},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.label),1)]),_:2},1032,["type","loading","onClick"]))),128)),l.value.length?(e.openBlock(),e.createBlock(u,{key:0,trigger:"click",onCommand:r},{dropdown:e.withCtx(()=>[e.createVNode(f,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,h=>(e.openBlock(),e.createBlock(d,{key:h.key,command:h.key,style:e.normalizeStyle(h.type==="danger"?{color:"var(--el-color-danger)"}:void 0)},{default:e.withCtx(()=>[h.icon?(e.openBlock(),e.createBlock(e.unref(le),{key:0,name:h.icon,size:14,style:{"margin-right":"6px"}},null,8,["name"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(h.label),1)]),_:2},1032,["command","style"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createVNode(s,{link:"",type:"primary",size:"small"},{default:e.withCtx(()=>[c[0]||(c[0]=e.createTextVNode(" 更多 ",-1)),e.createVNode(e.unref(le),{name:"arrow-down",size:12,style:{"margin-left":"2px"}})]),_:1})]),_:1})):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-06e2a9ce"]]),$s={class:"apf-search-form"},Ts={class:"apf-search-form__row"},Ss={class:"apf-search-form__label"},Vs={class:"apf-search-form__actions"},Bs=L(e.defineComponent({__name:"SearchForm",props:{fields:{},modelValue:{default:()=>({})},collapsible:{type:Boolean,default:!0},defaultCollapsed:{type:Boolean,default:!1},defaultVisibleCount:{default:3}},emits:["update:modelValue","search","reset"],setup(t,{expose:n,emit:a}){const o=t,l=a,r=e.ref(o.defaultCollapsed),i=e.reactive({});function c(){var x;for(const g of Object.keys(i))o.fields.some(A=>A.key===g)||delete i[g];for(const g of o.fields)i[g.key]=((x=o.modelValue)==null?void 0:x[g.key])??(g.type==="daterange"?[]:"")}e.watch(()=>[o.fields,o.modelValue],c,{immediate:!0,deep:!0});const s=e.computed(()=>o.collapsible&&o.fields.length>o.defaultVisibleCount),d=e.computed(()=>!s.value||!r.value?o.fields:o.fields.slice(0,o.defaultVisibleCount));function f(){return{...i}}function u(){const x=f();l("update:modelValue",x),l("search",x)}function h(){for(const g of o.fields)i[g.key]=g.type==="daterange"?[]:"";const x=f();l("update:modelValue",x),l("reset")}return n({getValues:f,reset:h}),(x,g)=>{const A=e.resolveComponent("el-input"),$=e.resolveComponent("el-option"),T=e.resolveComponent("el-select"),E=e.resolveComponent("el-date-picker"),S=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",$s,[e.createElementVNode("div",Ts,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,_=>(e.openBlock(),e.createElementBlock("div",{key:_.key,class:"apf-search-form__field"},[e.createElementVNode("label",Ss,e.toDisplayString(_.label),1),_.type==="input"?(e.openBlock(),e.createBlock(A,{key:0,modelValue:i[_.key],"onUpdate:modelValue":w=>i[_.key]=w,clearable:"",placeholder:_.placeholder||`请输入${_.label}`},null,8,["modelValue","onUpdate:modelValue","placeholder"])):_.type==="select"?(e.openBlock(),e.createBlock(T,{key:1,modelValue:i[_.key],"onUpdate:modelValue":w=>i[_.key]=w,clearable:"",placeholder:_.placeholder||`请选择${_.label}`,style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.options||[],w=>(e.openBlock(),e.createBlock($,{key:String(w.value),label:w.label,value:w.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):_.type==="date"?(e.openBlock(),e.createBlock(E,{key:2,modelValue:i[_.key],"onUpdate:modelValue":w=>i[_.key]=w,type:"date","value-format":"YYYY-MM-DD",placeholder:_.placeholder||`请选择${_.label}`,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(e.openBlock(),e.createBlock(E,{key:3,modelValue:i[_.key],"onUpdate:modelValue":w=>i[_.key]=w,type:"daterange","value-format":"YYYY-MM-DD","start-placeholder":"开始","end-placeholder":"结束",style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue"]))]))),128)),e.createElementVNode("div",Vs,[e.createVNode(S,{type:"primary",onClick:u},{default:e.withCtx(()=>[e.createVNode(e.unref(le),{name:"search",size:14,style:{"margin-right":"var(--spacing-xs, 4px)"}}),g[1]||(g[1]=e.createTextVNode(" 查询 ",-1))]),_:1}),e.createVNode(S,{onClick:h},{default:e.withCtx(()=>[...g[2]||(g[2]=[e.createTextVNode("重置",-1)])]),_:1}),s.value?(e.openBlock(),e.createBlock(S,{key:0,link:"",type:"primary",onClick:g[0]||(g[0]=_=>r.value=!r.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value?"展开":"收起"),1)]),_:1})):e.createCommentVNode("",!0)])])])}}}),[["__scopeId","data-v-8a00c2b6"]]),oa=L(e.defineComponent({inheritAttrs:!1,__name:"TruncatedTooltipText",props:{content:{},placement:{default:"top"},maxWidth:{default:360}},setup(t){const n=e.useAttrs();return(a,o)=>{const l=e.resolveComponent("el-tooltip");return e.openBlock(),e.createBlock(l,{content:t.content,placement:t.placement,"show-after":200,"popper-style":{maxWidth:`${t.maxWidth}px`,wordBreak:"break-word",whiteSpace:"pre-wrap"}},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["apf-truncated-text",e.unref(n).class]),style:e.normalizeStyle(e.unref(n).style)},[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.content),1)],!0)],6)]),_:3},8,["content","placement","popper-style"])}}}),[["__scopeId","data-v-04c4f36c"]]),Ns={class:"apf-field-row__label"},As={key:0,class:"apf-field-row__required"},zs=L(e.defineComponent({__name:"FieldRow",props:{label:{},textarea:{type:Boolean},hint:{},required:{type:Boolean}},setup(t){const n=t,a=e.computed(()=>{var o;return(o=n.hint)!=null&&o.trim()?`${n.label}
|
|
2
|
-
${n.hint.trim()}`:n.label});return(o,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["apf-field-row",{"apf-field-row--textarea":t.textarea}])},[e.createElementVNode("div",Ns,[t.required?(e.openBlock(),e.createElementBlock("span",As,"*")):e.createCommentVNode("",!0),e.createVNode(e.unref(oa),{content:a.value,class:"apf-field-row__label-text"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:1},8,["content"])]),e.createElementVNode("div",{class:e.normalizeClass(["apf-field-row__control",{"apf-field-row__control--textarea":t.textarea}])},[e.renderSlot(o.$slots,"default",{},void 0,!0)],2)],2))}}),[["__scopeId","data-v-1e6441a9"]]),Ms={class:"apf-hint-trigger","aria-label":"提示"},Ls={class:"apf-hint-content"},Is=L(e.defineComponent({__name:"HintText",props:{width:{default:240}},setup(t){return(n,a)=>{const o=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(o,{placement:"top",width:t.width,trigger:"hover","show-after":200,"popper-style":{maxWidth:"320px"}},{reference:e.withCtx(()=>[e.createElementVNode("span",Ms,[e.createVNode(e.unref(le),{name:"question-filled",size:14})])]),default:e.withCtx(()=>[e.createElementVNode("div",Ls,[e.renderSlot(n.$slots,"default",{},void 0,!0)])]),_:3},8,["width"])}}}),[["__scopeId","data-v-74635820"]]),Rs={class:"apf-section-toggle"},Ds={class:"apf-section-toggle__label"},Ps={key:0,class:"apf-section-toggle__count"},Os={class:"apf-section-toggle__body"},Hs=L(e.defineComponent({__name:"SectionToggle",props:{title:{},count:{},defaultOpen:{type:Boolean,default:!0}},setup(t){const n=t,a=e.ref(n.defaultOpen);function o(){a.value=!a.value}return(l,r)=>(e.openBlock(),e.createElementBlock("div",Rs,[e.createElementVNode("button",{type:"button",class:"apf-section-toggle__header",onClick:o},[e.createVNode(e.unref(le),{name:a.value?"arrow-down":"arrow-right",size:12,class:"apf-section-toggle__arrow"},null,8,["name"]),e.createElementVNode("span",Ds,e.toDisplayString(t.title),1),t.count!==void 0?(e.openBlock(),e.createElementBlock("span",Ps,e.toDisplayString(t.count),1)):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("div",Os,[e.renderSlot(l.$slots,"default",{},void 0,!0)],512),[[e.vShow,a.value]])]))}}),[["__scopeId","data-v-dc38631a"]]),Fs={class:"apf-loading-dots","aria-label":"加载中",role:"status"},Us=L(e.defineComponent({__name:"LoadingDots",props:{size:{}},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("span",Fs,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,o=>e.createElementVNode("span",{key:o,class:"apf-loading-dots__dot",style:e.normalizeStyle(t.size?{width:t.size+"px",height:t.size+"px"}:void 0)},null,4)),64))]))}}),[["__scopeId","data-v-df891291"]]),js={class:"apf-json-card__body"},qs={class:"apf-json-card__title"},Gs={class:"apf-json-card__summary"},Ws=L(e.defineComponent({__name:"JsonCard",props:{title:{},data:{},content:{},type:{default:"json"}},emits:["click","openDetail"],setup(t,{emit:n}){const a=t,o=n,l=e.computed(()=>{if(a.data!==void 0)return a.data;if(!a.content)return null;try{return JSON.parse(a.content)}catch{return null}}),r=e.computed(()=>{const s=l.value;if(s==null)return"JSON 数据";if(Array.isArray(s))return`${s.length} 个元素`;if(typeof s=="object"){const d=s;if(Array.isArray(d.nodes)){const u=Array.isArray(d.edges)?d.edges.length:0;return`${d.nodes.length} 个节点, ${u} 条连线`}const f=Object.keys(d);return`${f.length} 个字段${f.length?` (${f.slice(0,3).join(", ")}${f.length>3?"...":""})`:""}`}return String(s)}),i=e.computed(()=>a.type==="schema"?"document":a.type==="flow"?"connection":"files");function c(){o("click"),o("openDetail")}return(s,d)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:"apf-json-card",onClick:c},[e.createVNode(e.unref(le),{name:i.value,size:20,class:"apf-json-card__icon"},null,8,["name"]),e.createElementVNode("div",js,[e.createElementVNode("strong",qs,e.toDisplayString(t.title),1),e.createElementVNode("span",Gs,e.toDisplayString(r.value),1)])]))}}),[["__scopeId","data-v-059cffad"]]),Ys={class:"apf-json-detail"},Zs=L(e.defineComponent({__name:"JsonDetailDialog",props:{modelValue:{type:Boolean},title:{},data:{},content:{}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,l=e.computed(()=>{if(a.content)try{return JSON.stringify(JSON.parse(a.content),null,2)}catch{return a.content}try{return JSON.stringify(a.data??null,null,2)}catch{return String(a.data)}});return(r,i)=>{const c=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(e.unref(rt),{"model-value":t.modelValue,title:t.title||"JSON 详情",width:"720px","show-fullscreen-btn":!0,"onUpdate:modelValue":i[1]||(i[1]=s=>o("update:modelValue",s))},{footer:e.withCtx(()=>[e.createVNode(c,{type:"primary",onClick:i[0]||(i[0]=s=>o("update:modelValue",!1))},{default:e.withCtx(()=>[...i[2]||(i[2]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("pre",Ys,e.toDisplayString(l.value),1)]),_:1},8,["model-value","title"])}}}),[["__scopeId","data-v-ea543e4a"]]),Ks={class:"apf-schema-lite-preview"},Qs=L(e.defineComponent({__name:"SchemaLitePreview",props:{fields:{},modelValue:{default:()=>({})},labelWidth:{default:"100px"}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,l=e.reactive({});function r(){var c;for(const s of Object.keys(l))a.fields.some(d=>d.key===s)||delete l[s];for(const s of a.fields){const d=(c=a.modelValue)==null?void 0:c[s.key];d!==void 0?l[s.key]=d:s.key in l||(l[s.key]=s.type==="switch"?!1:s.type==="number"?void 0:"")}}e.watch(()=>[a.fields,a.modelValue],r,{immediate:!0,deep:!0});function i(){o("update:modelValue",{...l})}return(c,s)=>{const d=e.resolveComponent("el-input"),f=e.resolveComponent("el-input-number"),u=e.resolveComponent("el-option"),h=e.resolveComponent("el-select"),x=e.resolveComponent("el-switch"),g=e.resolveComponent("el-date-picker"),A=e.resolveComponent("el-form-item"),$=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",Ks,[e.createVNode($,{model:l,"label-width":t.labelWidth,onChange:i},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fields,T=>(e.openBlock(),e.createBlock(A,{key:T.key,label:T.label},{default:e.withCtx(()=>[T.type==="input"?(e.openBlock(),e.createBlock(d,{key:0,modelValue:l[T.key],"onUpdate:modelValue":E=>l[T.key]=E,placeholder:T.placeholder,disabled:T.disabled,onChange:i},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled"])):T.type==="textarea"?(e.openBlock(),e.createBlock(d,{key:1,modelValue:l[T.key],"onUpdate:modelValue":E=>l[T.key]=E,type:"textarea",rows:3,placeholder:T.placeholder,disabled:T.disabled,onChange:i},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled"])):T.type==="number"?(e.openBlock(),e.createBlock(f,{key:2,modelValue:l[T.key],"onUpdate:modelValue":E=>l[T.key]=E,disabled:T.disabled,onChange:i},null,8,["modelValue","onUpdate:modelValue","disabled"])):T.type==="select"?(e.openBlock(),e.createBlock(h,{key:3,modelValue:l[T.key],"onUpdate:modelValue":E=>l[T.key]=E,placeholder:T.placeholder||`请选择${T.label}`,disabled:T.disabled,style:{width:"100%"},onChange:i},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.options||[],E=>(e.openBlock(),e.createBlock(u,{key:String(E.value),label:E.label,value:E.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","disabled"])):T.type==="switch"?(e.openBlock(),e.createBlock(x,{key:4,modelValue:l[T.key],"onUpdate:modelValue":E=>l[T.key]=E,disabled:T.disabled,onChange:i},null,8,["modelValue","onUpdate:modelValue","disabled"])):(e.openBlock(),e.createBlock(g,{key:5,modelValue:l[T.key],"onUpdate:modelValue":E=>l[T.key]=E,type:"date","value-format":"YYYY-MM-DD",placeholder:T.placeholder||`请选择${T.label}`,disabled:T.disabled,style:{width:"100%"},onChange:i},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled"]))]),_:2},1032,["label"]))),128))]),_:1},8,["model","label-width"])])}}}),[["__scopeId","data-v-1d125a82"]]);function Me(t){const n=(t.mimetype||"").toLowerCase(),a=(t.filename||"").toLowerCase();return n.startsWith("image/")||/\.(png|jpe?g|gif|webp|bmp)$/.test(a)}function Ye(t){const n=(t.mimetype||"").toLowerCase(),a=(t.filename||"").toLowerCase();return n.includes("pdf")||a.endsWith(".pdf")}function la(t){const n=(t.mimetype||"").toLowerCase(),a=(t.filename||"").toLowerCase();return a.endsWith(".docx")||a.endsWith(".doc")||a.endsWith(".xlsx")||a.endsWith(".xls")||n.includes("word")||n.includes("sheet")||n.includes("excel")}function Xs(t){return Me(t)||Ye(t)}function Wt(t){const n=(t.filename||"").toLowerCase(),a=(t.mimetype||"").toLowerCase();return Ye(t)?"PDF":n.endsWith(".docx")||n.endsWith(".doc")||a.includes("word")?"Word":n.endsWith(".xlsx")||n.endsWith(".xls")||a.includes("sheet")||a.includes("excel")?"Excel":n.endsWith(".csv")?"CSV":n.endsWith(".txt")||n.endsWith(".md")?"文本":n.endsWith(".json")?"JSON":"文件"}function mt(t){return t==null||t<0?"":t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}const Js={class:"apf-doc-preview"},vs={key:0,class:"apf-doc-preview__loading"},ei={key:1,class:"apf-doc-preview__error"},ti={key:0,class:"apf-doc-preview__meta"},ni={key:1,class:"apf-doc-preview__actions"},ai={key:2,class:"apf-doc-preview__viewer"},oi=["src","title"],li={key:3,class:"apf-doc-preview__viewer"},ri=["src","title"],si={class:"apf-doc-preview__text"},ra=L(e.defineComponent({__name:"DocumentPreviewPanel",props:{filename:{},mimetype:{},size:{},chunks:{default:()=>[]},extractionMethod:{},hasOriginalFile:{type:Boolean,default:!1},pdfUrl:{},excelUrl:{},loading:{type:Boolean,default:!1},error:{default:null}},emits:["download","close"],setup(t,{emit:n}){const a=t,o=n,l=e.computed(()=>{const u=(a.mimetype||"").toLowerCase(),h=a.filename.toLowerCase();return u.includes("pdf")||h.endsWith(".pdf")||!!a.pdfUrl}),r=e.computed(()=>{const u=(a.mimetype||"").toLowerCase(),h=a.filename.toLowerCase();return!!a.excelUrl||u.includes("sheet")||u.includes("excel")||h.endsWith(".xls")||h.endsWith(".xlsx")}),i=e.computed(()=>{var h;const u=[];return a.mimetype&&u.push(a.mimetype),a.size!=null&&u.push(mt(a.size)||`${a.size} bytes`),(h=a.chunks)!=null&&h.length&&u.push(`${a.chunks.length} 块`),a.extractionMethod&&u.push(a.extractionMethod),u.join(" · ")}),c=e.computed(()=>{var u;return(u=a.chunks)!=null&&u.length?a.chunks.map((h,x)=>`${h.index!=null?`[${h.index}]`:`[${x+1}]`}
|
|
1
|
+
(function(y,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus"],e):(y=typeof globalThis<"u"?globalThis:y||self,e(y.ApformUI={},y.Vue,y.ElementPlus))})(this,(function(y,e,se){"use strict";var $1=Object.defineProperty;var T1=(y,e,se)=>e in y?$1(y,e,{enumerable:!0,configurable:!0,writable:!0,value:se}):y[e]=se;var P=(y,e,se)=>T1(y,typeof e!="symbol"?e+"":e,se);/*! Element Plus Icons Vue v2.3.2 */var Ct;var No=e.defineComponent({name:"Close",__name:"close",setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Ao=No,zo=e.defineComponent({name:"FullScreen",__name:"full-screen",setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),Mo=zo,Lo=e.defineComponent({name:"ScaleToOriginal",__name:"scale-to-original",setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"})]))}}),Io=Lo;const Ro=e.defineComponent({__name:"AppDialog",props:{modelValue:{type:Boolean},title:{},width:{default:"580px"},destroyOnClose:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0},showFullscreenBtn:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!1},cancelText:{default:"取消"},confirmText:{default:"确定"}},emits:["update:modelValue","confirm","cancel","close"],setup(t,{emit:n}){const a=n,o=e.ref(!1);function l(){o.value=!o.value}function r(){a("confirm")}function i(){a("update:modelValue",!1),a("cancel")}function c(){a("close")}return(s,d)=>{const f=e.resolveComponent("el-button"),u=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(u,{"model-value":t.modelValue,width:o.value?"100vw":t.width,fullscreen:o.value,style:e.normalizeStyle(o.value?{margin:0}:{}),"destroy-on-close":t.destroyOnClose,draggable:t.draggable&&!o.value,"append-to-body":t.appendToBody,"close-on-click-modal":t.closeOnClickModal,"show-close":!1,"onUpdate:modelValue":d[1]||(d[1]=h=>a("update:modelValue",h)),onClose:c},{header:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(s.$style.header)},[e.createElementVNode("span",{class:e.normalizeClass(s.$style.title)},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(s.$style.headerRight)},[t.showFullscreenBtn?(e.openBlock(),e.createBlock(f,{key:0,class:e.normalizeClass(s.$style.headerBtn),icon:o.value?e.unref(Io):e.unref(Mo),text:"",onClick:l},null,8,["class","icon"])):e.createCommentVNode("",!0),e.createVNode(f,{class:e.normalizeClass(s.$style.headerBtn),icon:e.unref(Ao),text:"",onClick:d[0]||(d[0]=h=>a("update:modelValue",!1))},null,8,["class","icon"])],2)],2)]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(s.$style.footer)},[e.renderSlot(s.$slots,"footer",{},()=>[e.createVNode(f,{onClick:i},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.cancelText),1)]),_:1}),e.createVNode(f,{type:"primary",loading:t.loading,onClick:r},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.confirmText),1)]),_:1},8,["loading"])])],2)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(s.$style.body)},[e.renderSlot(s.$slots,"default")],2)]),_:3},8,["model-value","width","fullscreen","style","destroy-on-close","draggable","append-to-body","close-on-click-modal"])}}}),Do={header:"_header_1wxe2_2",title:"_title_1wxe2_10",headerRight:"_headerRight_1wxe2_19",headerBtn:"_headerBtn_1wxe2_26",body:"_body_1wxe2_38",footer:"_footer_1wxe2_44"},L=(t,n)=>{const a=t.__vccOpts||t;for(const[o,l]of n)a[o]=l;return a},rt=L(Ro,[["__cssModules",{$style:Do}]]),Nn=/^[a-z0-9]+(-[a-z0-9]+)*$/,st=(t,n,a,o="")=>{const l=t.split(":");if(t.slice(0,1)==="@"){if(l.length<2||l.length>3)return null;o=l.shift().slice(1)}if(l.length>3||!l.length)return null;if(l.length>1){const c=l.pop(),s=l.pop(),d={provider:l.length>0?l[0]:o,prefix:s,name:c};return n&&!it(d)?null:d}const r=l[0],i=r.split("-");if(i.length>1){const c={provider:o,prefix:i.shift(),name:i.join("-")};return n&&!it(c)?null:c}if(a&&o===""){const c={provider:o,prefix:"",name:r};return n&&!it(c,a)?null:c}return null},it=(t,n)=>t?!!((n&&t.prefix===""||t.prefix)&&t.name):!1;function Po(t,n){const a=t.icons,o=t.aliases||Object.create(null),l=Object.create(null);function r(i){if(a[i])return l[i]=[];if(!(i in l)){l[i]=null;const c=o[i]&&o[i].parent,s=c&&r(c);s&&(l[i]=[c].concat(s))}return l[i]}return Object.keys(a).concat(Object.keys(o)).forEach(r),l}const An=Object.freeze({left:0,top:0,width:16,height:16}),ct=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),dt=Object.freeze({...An,...ct}),Rt=Object.freeze({...dt,body:"",hidden:!1});function Oo(t,n){const a={};!t.hFlip!=!n.hFlip&&(a.hFlip=!0),!t.vFlip!=!n.vFlip&&(a.vFlip=!0);const o=((t.rotate||0)+(n.rotate||0))%4;return o&&(a.rotate=o),a}function zn(t,n){const a=Oo(t,n);for(const o in Rt)o in ct?o in t&&!(o in a)&&(a[o]=ct[o]):o in n?a[o]=n[o]:o in t&&(a[o]=t[o]);return a}function Ho(t,n,a){const o=t.icons,l=t.aliases||Object.create(null);let r={};function i(c){r=zn(o[c]||l[c],r)}return i(n),a.forEach(i),zn(t,r)}function Mn(t,n){const a=[];if(typeof t!="object"||typeof t.icons!="object")return a;t.not_found instanceof Array&&t.not_found.forEach(l=>{n(l,null),a.push(l)});const o=Po(t);for(const l in o){const r=o[l];r&&(n(l,Ho(t,l,r)),a.push(l))}return a}const Fo={provider:"",aliases:{},not_found:{},...An};function Dt(t,n){for(const a in n)if(a in t&&typeof t[a]!=typeof n[a])return!1;return!0}function Ln(t){if(typeof t!="object"||t===null)return null;const n=t;if(typeof n.prefix!="string"||!t.icons||typeof t.icons!="object"||!Dt(t,Fo))return null;const a=n.icons;for(const l in a){const r=a[l];if(!l||typeof r.body!="string"||!Dt(r,Rt))return null}const o=n.aliases||Object.create(null);for(const l in o){const r=o[l],i=r.parent;if(!l||typeof i!="string"||!a[i]&&!o[i]||!Dt(r,Rt))return null}return n}const In=Object.create(null);function Uo(t,n){return{provider:t,prefix:n,icons:Object.create(null),missing:new Set}}function ze(t,n){const a=In[t]||(In[t]=Object.create(null));return a[n]||(a[n]=Uo(t,n))}function Rn(t,n){return Ln(n)?Mn(n,(a,o)=>{o?t.icons[a]=o:t.missing.add(a)}):[]}function jo(t,n,a){try{if(typeof a.body=="string")return t.icons[n]={...a},!0}catch{}return!1}let qe=!1;function Dn(t){return typeof t=="boolean"&&(qe=t),qe}function qo(t){const n=typeof t=="string"?st(t,!0,qe):t;if(n){const a=ze(n.provider,n.prefix),o=n.name;return a.icons[o]||(a.missing.has(o)?null:void 0)}}function Go(t,n){const a=st(t,!0,qe);if(!a)return!1;const o=ze(a.provider,a.prefix);return n?jo(o,a.name,n):(o.missing.add(a.name),!0)}function Wo(t,n){if(typeof t!="object")return!1;if(typeof n!="string"&&(n=t.provider||""),qe&&!n&&!t.prefix){let o=!1;return Ln(t)&&(t.prefix="",Mn(t,(l,r)=>{Go(l,r)&&(o=!0)})),o}const a=t.prefix;return it({prefix:a,name:"a"})?!!Rn(ze(n,a),t):!1}const Pn=Object.freeze({width:null,height:null}),On=Object.freeze({...Pn,...ct}),Yo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Zo=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Hn(t,n,a){if(n===1)return t;if(a=a||100,typeof t=="number")return Math.ceil(t*n*a)/a;if(typeof t!="string")return t;const o=t.split(Yo);if(o===null||!o.length)return t;const l=[];let r=o.shift(),i=Zo.test(r);for(;;){if(i){const c=parseFloat(r);isNaN(c)?l.push(r):l.push(Math.ceil(c*n*a)/a)}else l.push(r);if(r=o.shift(),r===void 0)return l.join("");i=!i}}function Ko(t,n="defs"){let a="";const o=t.indexOf("<"+n);for(;o>=0;){const l=t.indexOf(">",o),r=t.indexOf("</"+n);if(l===-1||r===-1)break;const i=t.indexOf(">",r);if(i===-1)break;a+=t.slice(l+1,r).trim(),t=t.slice(0,o).trim()+t.slice(i+1)}return{defs:a,content:t}}function Qo(t,n){return t?"<defs>"+t+"</defs>"+n:n}function Xo(t,n,a){const o=Ko(t);return Qo(o.defs,n+o.content+a)}const Jo=t=>t==="unset"||t==="undefined"||t==="none";function vo(t,n){const a={...dt,...t},o={...On,...n},l={left:a.left,top:a.top,width:a.width,height:a.height};let r=a.body;[a,o].forEach(V=>{const x=[],T=V.hFlip,$=V.vFlip;let B=V.rotate;T?$?B+=2:(x.push("translate("+(l.width+l.left).toString()+" "+(0-l.top).toString()+")"),x.push("scale(-1 1)"),l.top=l.left=0):$&&(x.push("translate("+(0-l.left).toString()+" "+(l.height+l.top).toString()+")"),x.push("scale(1 -1)"),l.top=l.left=0);let _;switch(B<0&&(B-=Math.floor(B/4)*4),B=B%4,B){case 1:_=l.height/2+l.top,x.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:x.unshift("rotate(180 "+(l.width/2+l.left).toString()+" "+(l.height/2+l.top).toString()+")");break;case 3:_=l.width/2+l.left,x.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}B%2===1&&(l.left!==l.top&&(_=l.left,l.left=l.top,l.top=_),l.width!==l.height&&(_=l.width,l.width=l.height,l.height=_)),x.length&&(r=Xo(r,'<g transform="'+x.join(" ")+'">',"</g>"))});const i=o.width,c=o.height,s=l.width,d=l.height;let f,u;i===null?(u=c===null?"1em":c==="auto"?d:c,f=Hn(u,s/d)):(f=i==="auto"?s:i,u=c===null?Hn(f,d/s):c==="auto"?d:c);const h={},w=(V,x)=>{Jo(x)||(h[V]=x.toString())};w("width",f),w("height",u);const g=[l.left,l.top,s,d];return h.viewBox=g.join(" "),{attributes:h,viewBox:g,body:r}}const el=/\sid="(\S+)"/g,Fn=new Map;function tl(t){t=t.replace(/[0-9]+$/,"")||"a";const n=Fn.get(t)||0;return Fn.set(t,n+1),n?`${t}${n}`:t}function nl(t){const n=[];let a;for(;a=el.exec(t);)n.push(a[1]);if(!n.length)return t;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(l=>{const r=tl(l),i=l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+r+o+"$3")}),t=t.replace(new RegExp(o,"g"),""),t}const Pt=Object.create(null);function al(t,n){Pt[t]=n}function Ot(t){return Pt[t]||Pt[""]}function Ht(t){let n;if(typeof t.resources=="string")n=[t.resources];else if(n=t.resources,!(n instanceof Array)||!n.length)return null;return{resources:n,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const Ft=Object.create(null),Ge=["https://api.simplesvg.com","https://api.unisvg.com"],pt=[];for(;Ge.length>0;)Ge.length===1||Math.random()>.5?pt.push(Ge.shift()):pt.push(Ge.pop());Ft[""]=Ht({resources:["https://api.iconify.design"].concat(pt)});function ol(t,n){const a=Ht(n);return a===null?!1:(Ft[t]=a,!0)}function Ut(t){return Ft[t]}let Un=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function ll(t,n){const a=Ut(t);if(!a)return 0;let o;if(!a.maxURL)o=0;else{let l=0;a.resources.forEach(i=>{l=Math.max(l,i.length)});const r=n+".json?icons=";o=a.maxURL-l-a.path.length-r.length}return o}function rl(t){return t===404}const sl=(t,n,a)=>{const o=[],l=ll(t,n),r="icons";let i={type:r,provider:t,prefix:n,icons:[]},c=0;return a.forEach((s,d)=>{c+=s.length+1,c>=l&&d>0&&(o.push(i),i={type:r,provider:t,prefix:n,icons:[]},c=s.length),i.icons.push(s)}),o.push(i),o};function il(t){if(typeof t=="string"){const n=Ut(t);if(n)return n.path}return"/"}const cl={prepare:sl,send:(t,n,a)=>{if(!Un){a("abort",424);return}let o=il(n.provider);switch(n.type){case"icons":{const r=n.prefix,i=n.icons.join(","),c=new URLSearchParams({icons:i});o+=r+".json?"+c.toString();break}case"custom":{const r=n.uri;o+=r.slice(0,1)==="/"?r.slice(1):r;break}default:a("abort",400);return}let l=503;Un(t+o).then(r=>{const i=r.status;if(i!==200){setTimeout(()=>{a(rl(i)?"abort":"next",i)});return}return l=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?a("abort",r):a("next",l)});return}setTimeout(()=>{a("success",r)})}).catch(()=>{a("next",l)})}};function jn(t,n){t.forEach(a=>{const o=a.loaderCallbacks;o&&(a.loaderCallbacks=o.filter(l=>l.id!==n))})}function dl(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const n=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!n.length)return;let a=!1;const o=t.provider,l=t.prefix;n.forEach(r=>{const i=r.icons,c=i.pending.length;i.pending=i.pending.filter(s=>{if(s.prefix!==l)return!0;const d=s.name;if(t.icons[d])i.loaded.push({provider:o,prefix:l,name:d});else if(t.missing.has(d))i.missing.push({provider:o,prefix:l,name:d});else return a=!0,!0;return!1}),i.pending.length!==c&&(a||jn([t],r.id),r.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),r.abort))})}))}let pl=0;function fl(t,n,a){const o=pl++,l=jn.bind(null,a,o);if(!n.pending.length)return l;const r={id:o,icons:n,callback:t,abort:l};return a.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(r)}),l}function hl(t){const n={loaded:[],missing:[],pending:[]},a=Object.create(null);t.sort((l,r)=>l.provider!==r.provider?l.provider.localeCompare(r.provider):l.prefix!==r.prefix?l.prefix.localeCompare(r.prefix):l.name.localeCompare(r.name));let o={provider:"",prefix:"",name:""};return t.forEach(l=>{if(o.name===l.name&&o.prefix===l.prefix&&o.provider===l.provider)return;o=l;const r=l.provider,i=l.prefix,c=l.name,s=a[r]||(a[r]=Object.create(null)),d=s[i]||(s[i]=ze(r,i));let f;c in d.icons?f=n.loaded:i===""||d.missing.has(c)?f=n.missing:f=n.pending;const u={provider:r,prefix:i,name:c};f.push(u)}),n}function ml(t,n=!0,a=!1){const o=[];return t.forEach(l=>{const r=typeof l=="string"?st(l,n,a):l;r&&o.push(r)}),o}const ul={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function gl(t,n,a,o){const l=t.resources.length,r=t.random?Math.floor(Math.random()*l):t.index;let i;if(t.random){let N=t.resources.slice(0);for(i=[];N.length>1;){const j=Math.floor(Math.random()*N.length);i.push(N[j]),N=N.slice(0,j).concat(N.slice(j+1))}i=i.concat(N)}else i=t.resources.slice(r).concat(t.resources.slice(0,r));const c=Date.now();let s="pending",d=0,f,u=null,h=[],w=[];typeof o=="function"&&w.push(o);function g(){u&&(clearTimeout(u),u=null)}function V(){s==="pending"&&(s="aborted"),g(),h.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),h=[]}function x(N,j){j&&(w=[]),typeof N=="function"&&w.push(N)}function T(){return{startTime:c,payload:n,status:s,queriesSent:d,queriesPending:h.length,subscribe:x,abort:V}}function $(){s="failed",w.forEach(N=>{N(void 0,f)})}function B(){h.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),h=[]}function _(N,j,ee){const z=j!=="success";switch(h=h.filter(A=>A!==N),s){case"pending":break;case"failed":if(z||!t.dataAfterTimeout)return;break;default:return}if(j==="abort"){f=ee,$();return}if(z){f=ee,h.length||(i.length?C():$());return}if(g(),B(),!t.random){const A=t.resources.indexOf(N.resource);A!==-1&&A!==t.index&&(t.index=A)}s="completed",w.forEach(A=>{A(ee)})}function C(){if(s!=="pending")return;g();const N=i.shift();if(N===void 0){if(h.length){u=setTimeout(()=>{g(),s==="pending"&&(B(),$())},t.timeout);return}$();return}const j={status:"pending",resource:N,callback:(ee,z)=>{_(j,ee,z)}};h.push(j),d++,u=setTimeout(C,t.rotate),a(N,n,j.callback)}return setTimeout(C),T}function qn(t){const n={...ul,...t};let a=[];function o(){a=a.filter(i=>i().status==="pending")}function l(i,c,s){const d=gl(n,i,c,(f,u)=>{o(),s&&s(f,u)});return a.push(d),d}function r(i){return a.find(c=>i(c))||null}return{query:l,find:r,setIndex:i=>{n.index=i},getIndex:()=>n.index,cleanup:o}}function Gn(){}const jt=Object.create(null);function kl(t){if(!jt[t]){const n=Ut(t);if(!n)return;jt[t]={config:n,redundancy:qn(n)}}return jt[t]}function yl(t,n,a){let o,l;if(typeof t=="string"){const r=Ot(t);if(!r)return a(void 0,424),Gn;l=r.send;const i=kl(t);i&&(o=i.redundancy)}else{const r=Ht(t);if(r){o=qn(r);const i=Ot(t.resources?t.resources[0]:"");i&&(l=i.send)}}return!o||!l?(a(void 0,424),Gn):o.query(n,l,a)().abort}function Wn(){}function bl(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,dl(t)}))}function _l(t){const n=[],a=[];return t.forEach(o=>{(o.match(Nn)?n:a).push(o)}),{valid:n,invalid:a}}function We(t,n,a){function o(){const l=t.pendingIcons;n.forEach(r=>{l&&l.delete(r),t.icons[r]||t.missing.add(r)})}if(a&&typeof a=="object")try{if(!Rn(t,a).length){o();return}}catch(l){console.error(l)}o(),bl(t)}function Yn(t,n){t instanceof Promise?t.then(a=>{n(a)}).catch(()=>{n(null)}):n(t)}function wl(t,n){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(n).sort():t.iconsToLoad=n,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:a,prefix:o}=t,l=t.iconsToLoad;if(delete t.iconsToLoad,!l||!l.length)return;const r=t.loadIcon;if(t.loadIcons&&(l.length>1||!r)){Yn(t.loadIcons(l,o,a),d=>{We(t,l,d)});return}if(r){l.forEach(d=>{Yn(r(d,o,a),f=>{We(t,[d],f?{prefix:o,icons:{[d]:f}}:null)})});return}const{valid:i,invalid:c}=_l(l);if(c.length&&We(t,c,null),!i.length)return;const s=o.match(Nn)?Ot(a):null;if(!s){We(t,i,null);return}s.prepare(a,o,i).forEach(d=>{yl(a,d,f=>{We(t,d.icons,f)})})}))}const Cl=(t,n)=>{const a=hl(ml(t,!0,Dn()));if(!a.pending.length){let c=!0;return n&&setTimeout(()=>{c&&n(a.loaded,a.missing,a.pending,Wn)}),()=>{c=!1}}const o=Object.create(null),l=[];let r,i;return a.pending.forEach(c=>{const{provider:s,prefix:d}=c;if(d===i&&s===r)return;r=s,i=d,l.push(ze(s,d));const f=o[s]||(o[s]=Object.create(null));f[d]||(f[d]=[])}),a.pending.forEach(c=>{const{provider:s,prefix:d,name:f}=c,u=ze(s,d),h=u.pendingIcons||(u.pendingIcons=new Set);h.has(f)||(h.add(f),o[s][d].push(f))}),l.forEach(c=>{const s=o[c.provider][c.prefix];s.length&&wl(c,s)}),n?fl(n,a,l):Wn};function El(t,n){const a={...t};for(const o in n){const l=n[o],r=typeof l;o in Pn?(l===null||l&&(r==="string"||r==="number"))&&(a[o]=l):r===typeof a[o]&&(a[o]=o==="rotate"?l%4:l)}return a}const xl=/[\s,]+/;function $l(t,n){n.split(xl).forEach(a=>{switch(a.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function Tl(t,n=0){const a=t.replace(/^-?[0-9.]*/,"");function o(l){for(;l<0;)l+=4;return l%4}if(a===""){const l=parseInt(t);return isNaN(l)?0:o(l)}else if(a!==t){let l=0;switch(a){case"%":l=25;break;case"deg":l=90}if(l){let r=parseFloat(t.slice(0,t.length-a.length));return isNaN(r)?0:(r=r/l,r%1===0?o(r):0)}}return n}function Bl(t,n){let a=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in n)a+=" "+o+'="'+n[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+a+">"+t+"</svg>"}function Sl(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Vl(t){return"data:image/svg+xml,"+Sl(t)}function Nl(t){return'url("'+Vl(t)+'")'}const Zn={...On,inline:!1},Al={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},zl={display:"inline-block"},qt={backgroundColor:"currentColor"},Kn={backgroundColor:"transparent"},Qn={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Xn={webkitMask:qt,mask:qt,background:Kn};for(const t in Xn){const n=Xn[t];for(const a in Qn)n[t+a]=Qn[a]}const ft={};["horizontal","vertical"].forEach(t=>{const n=t.slice(0,1)+"Flip";ft[t+"-flip"]=n,ft[t.slice(0,1)+"-flip"]=n,ft[t+"Flip"]=n});function Jn(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const vn=(t,n)=>{const a=El(Zn,n),o={...Al},l=n.mode||"svg",r={},i=n.style,c=typeof i=="object"&&!(i instanceof Array)?i:{};for(let V in n){const x=n[V];if(x!==void 0)switch(V){case"icon":case"style":case"onLoad":case"mode":case"ssr":case"customise":break;case"inline":case"hFlip":case"vFlip":a[V]=x===!0||x==="true"||x===1;break;case"flip":typeof x=="string"&&$l(a,x);break;case"color":r.color=x;break;case"rotate":typeof x=="string"?a[V]=Tl(x):typeof x=="number"&&(a[V]=x);break;case"ariaHidden":case"aria-hidden":x!==!0&&x!=="true"&&delete o["aria-hidden"];break;default:{const T=ft[V];T?(x===!0||x==="true"||x===1)&&(a[T]=!0):Zn[V]===void 0&&(o[V]=x)}}}const s=vo(t,a),d=s.attributes;if(a.inline&&(r.verticalAlign="-0.125em"),l==="svg")return o.style={...r,...c},Object.assign(o,d),o.innerHTML=nl(s.body),e.h("svg",o);const{body:f,width:u,height:h}=t,w=l==="mask"||(l==="bg"?!1:f.indexOf("currentColor")!==-1),g=Bl(f,{...d,width:u+"",height:h+""});return o.style={...r,"--svg":Nl(g),width:Jn(d.width),height:Jn(d.height),...zl,...w?qt:Kn,...c},e.h("span",o)};if(Dn(!0),al("",cl),typeof document<"u"&&typeof window<"u"){const t=window;if(t.IconifyPreload!==void 0){const n=t.IconifyPreload,a="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Wo(o))&&console.error(a)}catch{console.error(a)}})}if(t.IconifyProviders!==void 0){const n=t.IconifyProviders;if(typeof n=="object"&&n!==null)for(let a in n){const o="IconifyProviders["+a+"] is invalid.";try{const l=n[a];if(typeof l!="object"||!l||l.resources===void 0)continue;ol(a,l)||console.error(o)}catch{console.error(o)}}}}const Ml={...dt,body:""},Ll=e.defineComponent((t,{emit:n})=>{const a=e.ref(null);function o(){var d,f;a.value&&((f=(d=a.value).abort)==null||f.call(d),a.value=null)}const l=e.ref(!!t.ssr),r=e.ref(""),i=e.shallowRef(null);function c(){const d=t.icon;if(typeof d=="object"&&d!==null&&typeof d.body=="string")return r.value="",{data:d};let f;if(typeof d!="string"||(f=st(d,!1,!0))===null)return null;let u=qo(f);if(!u){const g=a.value;return(!g||g.name!==d)&&(u===null?a.value={name:d}:a.value={name:d,abort:Cl([f],s)}),null}o(),r.value!==d&&(r.value=d,e.nextTick(()=>{n("load",d)}));const h=t.customise;if(h){u=Object.assign({},u);const g=h(u.body,f.name,f.prefix,f.provider);typeof g=="string"&&(u.body=g)}const w=["iconify"];return f.prefix!==""&&w.push("iconify--"+f.prefix),f.provider!==""&&w.push("iconify--"+f.provider),{data:u,classes:w}}function s(){var f;const d=c();d?d.data!==((f=i.value)==null?void 0:f.data)&&(i.value=d):i.value=null}return l.value?s():e.onMounted(()=>{l.value=!0,s()}),e.watch(()=>t.icon,s),e.onUnmounted(o),()=>{const d=i.value;if(!d)return vn(Ml,t);let f=t;return d.classes&&(f={...t,class:d.classes.join(" ")}),vn({...dt,...d.data},f)}},{props:["icon","mode","ssr","width","height","style","color","inline","rotate","hFlip","horizontalFlip","vFlip","verticalFlip","flip","id","ariaHidden","customise","title"],emits:["load"]}),Il={width:1024,height:1024,body:'<path fill="currentColor" d="M512 128L128 448v448h256V640h256v256h256V448z"/>'},Rl={width:1024,height:1024,body:'<path fill="currentColor" d="M600.7 64a32 32 0 0 1 30.5 22.2l35.2 109.4a348 348 0 0 1 42.4 24.5l112.4-24.2a32 32 0 0 1 34.4 15.4l88.7 153.5a32 32 0 0 1-4 37.5l-77.1 85.1a357 357 0 0 1 0 49l77 85.3a32 32 0 0 1 4.1 37.5l-88.7 153.6a32 32 0 0 1-34.4 15.3l-112.4-24.2q-20.2 13.6-42.4 24.5l-35.2 109.4a32 32 0 0 1-30.5 22.2H423.3a32 32 0 0 1-30.5-22.2l-35.1-109.3a352 352 0 0 1-42.6-24.7l-112.3 24.3a32 32 0 0 1-34.4-15.4L79.7 659.2a32 32 0 0 1 4-37.5l77.1-85.3a357 357 0 0 1 0-48.8l-77-85.3a32 32 0 0 1-4.1-37.5l88.7-153.6a32 32 0 0 1 34.4-15.3l112.3 24.3a355 355 0 0 1 42.6-24.7l35.2-109.3A32 32 0 0 1 423.2 64zm-23.4 64H446.7l-36.3 113l-24.5 12a294 294 0 0 0-34.9 20.2l-22.6 15.3l-116.2-25l-65.3 113l79.7 88.3l-2 27.1a293 293 0 0 0 0 40.2l2 27.1l-79.8 88.2L212 760.6l116.2-25l22.7 15.2a294 294 0 0 0 34.8 20.1l24.5 12L446.7 896h130.7L614 782.8l24.4-11.9a288 288 0 0 0 34.8-20l22.6-15.3l116.3 25l65.2-113.2l-79.7-88.2l2-27.1a293 293 0 0 0 0-40.3l-2-27.1l79.8-88.1L812 263.4l-116.3 25l-22.6-15.2a288 288 0 0 0-34.8-20.1L614 241zM512 320a192 192 0 1 1 0 384a192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256a128 128 0 0 0 0-256"/>'},Dl={width:1024,height:1024,body:'<path fill="currentColor" d="M512 512a192 192 0 1 0 0-384a192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512a256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"/>'},Pl={width:1024,height:1024,body:'<path fill="currentColor" d="M288 320a224 224 0 1 0 448 0a224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"/>'},Ol={width:1024,height:1024,body:'<path fill="currentColor" d="M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"/><path fill="currentColor" d="M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"/>'},Hl={width:1024,height:1024,body:'<path fill="currentColor" d="M448 456V96a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8m64 440a192 192 0 1 0 0-384a192 192 0 0 0 0 384"/>'},Fl={width:1024,height:1024,body:'<path fill="currentColor" d="M832 384H576V128H192v768h640zm-26.5-64L640 154.5V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"/>'},Ul={width:1024,height:1024,body:'<path fill="currentColor" d="M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"/>'},jl={width:1024,height:1024,body:'<path fill="currentColor" d="M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"/>'},ql={width:1024,height:1024,body:'<path fill="currentColor" d="M512 896a384 384 0 1 0 0-768a384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896a448 448 0 0 1 0 896"/><path fill="currentColor" d="M192 512a320 320 0 1 1 640 0a32 32 0 1 1-64 0a256 256 0 1 0-512 0a32 32 0 0 1-64 0"/><path fill="currentColor" d="M570.4 627.8a96 96 0 1 1-60.8-19.8l61-187.8a32 32 0 1 1 60.8 19.8zm-68.3 106.7a32 32 0 1 0 19.8-61a32 32 0 0 0-19.8 61"/>'},Gl={width:1024,height:1024,body:'<path fill="currentColor" d="M160 448a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"/>'},Wl={width:1024,height:1024,body:'<path fill="currentColor" d="M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.8v-70.3a192 192 0 0 1 128 181v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"/><path fill="currentColor" d="M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.8v70.3A192 192 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"/>'},Yl={width:1024,height:1024,body:'<path fill="currentColor" d="M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"/>'},Zl={width:1024,height:1024,body:'<path fill="currentColor" d="M512 896a256 256 0 1 0 0-512a256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640a320 320 0 0 1 0 640"/><path fill="currentColor" d="M576 128H448v200a287 287 0 0 1 64-8a288 288 0 0 1 64 8zm64 0v219.6q36.6 13.7 78.4 34l39-253.6zm-256 0H266.6l39 253.6a897 897 0 0 1 78.4-34zM229.3 64h565.4a32 32 0 0 1 31.6 36.9L768 480q-170.7-96-256-96c-85.3 0-142.2 32-256 96l-58.3-379.1A32 32 0 0 1 229.3 64"/>'},Kl={width:1024,height:1024,body:'<path fill="currentColor" d="M480 896V702a256 256 0 0 1-216-190h-32.6a96 96 0 0 1-92-68.4L93.7 290.9a76.8 76.8 0 0 1 73.6-98.9H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.8a76.8 76.8 0 0 1 73.6 98.9l-46 152.6a96 96 0 0 1-91.8 68.5h-32.7A256 256 0 0 1 544 702v194h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64zm224-448V128H320v320a192 192 0 1 0 384 0m64 0h24.6a32 32 0 0 0 30.6-22.8l45.9-152.8a12.8 12.8 0 0 0-12.3-16.4H768zm-512 0V256h-88.8a12.8 12.8 0 0 0-12.3 16.4l45.9 152.8a32 32 0 0 0 30.6 22.8z"/>'},Ql={width:1024,height:1024,body:'<path fill="currentColor" d="M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"/>'},Xl={width:1024,height:1024,body:'<path fill="currentColor" d="M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128"/><path fill="currentColor" d="M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32M64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32"/>'},Jl={width:1024,height:1024,body:'<path fill="currentColor" d="M174.7 855.7L310 810.6l23.7 11.8A398 398 0 0 0 512 864c211.8 0 384-166.8 384-352S723.8 160 512 160S128 326.8 128 512c0 69.1 25 139.3 70.8 199.2L221 740zm-45.2 82.5A32 32 0 0 1 89.6 896L148 750c-53.3-69.6-84-153-84-238C64 299.9 256 96 512 96s448 203.9 448 416s-192 416-448 416a461 461 0 0 1-207-48.4z"/><path fill="currentColor" d="M512 563.2a51.2 51.2 0 1 1 0-102.4a51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4a51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4a51.2 51.2 0 0 1 0 102.4"/>'},vl={width:1024,height:1024,body:'<path fill="currentColor" d="M174.7 855.7L310 810.6l23.7 11.8A398 398 0 0 0 512 864c211.8 0 384-166.8 384-352S723.8 160 512 160S128 326.8 128 512c0 69.1 25 139.3 70.8 199.2L221 740zm-45.2 82.5A32 32 0 0 1 89.6 896L148 750c-53.3-69.6-84-153-84-238C64 299.9 256 96 512 96s448 203.9 448 416s-192 416-448 416a461 461 0 0 1-207-48.4z"/><path fill="currentColor" d="M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"/>'},er={width:1024,height:1024,body:'<path fill="currentColor" d="M273.5 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.9zm22.5 64L148 918.4a32 32 0 0 1-52-25V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"/>'},tr={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"/><path fill="currentColor" d="M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"/><path fill="currentColor" d="M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"/>'},nr={width:1024,height:1024,body:'<path fill="currentColor" d="M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.5-228.5l-69-69a32 32 0 0 0-45.2 0L128 768.2h778.7L664.6 477.5a32 32 0 0 0-49.2 0l-156.6 188a32 32 0 0 1-47.3 2M256 384a96 96 0 1 0 192 0a96 96 0 0 0-192 0"/>'},ar={width:1024,height:1024,body:'<path fill="currentColor" d="M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"/><path fill="currentColor" d="M384 288q64 0 64 64t-64 64t-64-64t64-64M185.4 877l-50.8-39l216.1-282a96 96 0 0 1 134.6-17.8l1.9 1.4L610 638.8a32 32 0 0 0 45-4.9L871 364l50 40l-215.8 269.8l-.3.3a96 96 0 0 1-135 14.5l-123-99.1l-.6-.5a32 32 0 0 0-44.8 6z"/>'},or={width:1024,height:1024,body:'<path fill="currentColor" d="M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"/><path fill="currentColor" d="m470 554.2l52.8-7.5L847 222.4a32 32 0 1 0-45.2-45.2L477.4 501.4l-7.5 52.8zm422.4-422.4a96 96 0 0 1 0 135.8L560.5 599.5a32 32 0 0 1-18.1 9l-105.6 15.2a32 32 0 0 1-36.2-36.2l15-105.6a32 32 0 0 1 9.1-18.2l332-331.8a96 96 0 0 1 135.7 0z"/>'},lr={width:1024,height:1024,body:'<path fill="currentColor" d="m199 672.6l194 112l224-388l-193.9-112l-224 388.1zm-23.8 60.2L208 881.1l145-45.7zM455 229.2l194 112l56.7-98l-194-112zM104.3 708.8l384-665l304.8 176l-384 665h.1l-248.4 78.3zm384 254.3v-64h448v64z"/>'},rr={width:1024,height:1024,body:'<path fill="currentColor" d="M511.6 128a64.4 64.4 0 0 0-64.4 64.4V709L274 571a94 94 0 0 0-112.8-3.5a44.4 44.4 0 0 0-9 62.2l180.6 240.8A64 64 0 0 0 384 896h512V575.2a64 64 0 0 0-45.6-61.3l-206-61.7a96 96 0 0 1-68.4-92V192.4a64.4 64.4 0 0 0-64.4-64.4M359 556.8l24.2 19.2V192.4a128.4 128.4 0 1 1 256.8 0v167.8a32 32 0 0 0 22.8 30.6l206 61.8A128 128 0 0 1 960 575.2V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.1 668A108.4 108.4 0 0 1 128 512.5a158 158 0 0 1 186 8.3z"/>'},sr={width:1024,height:1024,body:'<path fill="currentColor" d="M160 256H96a32 32 0 0 1 0-64h256V96a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v96h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"/>'},ir={width:1024,height:1024,body:'<path fill="currentColor" d="m795.9 750.7l125 125a32 32 0 0 1-45.3 45.2l-125-125a416 416 0 1 1 45.3-45.2M480 832a352 352 0 1 0 0-704a352 352 0 0 0 0 704"/>'},cr={width:1024,height:1024,body:'<path fill="currentColor" d="M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"/>'},dr={width:1024,height:1024,body:'<path fill="currentColor" d="M771.8 794.9A384 384 0 0 1 128 512h64a320 320 0 0 0 555.7 216.4h-93a32 32 0 1 1 0-64h149a32 32 0 0 1 32 32v149a32 32 0 1 1-64 0zM276.3 295.6h93a32 32 0 0 1 0 64H220.2a32 32 0 0 1-32-32v-149a32 32 0 0 1 64 0V229a384 384 0 0 1 644 282.9h-64a320 320 0 0 0-555.8-216.4z"/>'},pr={width:1024,height:1024,body:'<path fill="currentColor" d="M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.7L780.3 342l45.2 45.2L508.8 704L192 387.2l45.2-45.2L480 584.7V128h64z"/>'},fr={width:1024,height:1024,body:'<path fill="currentColor" d="M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.3V704h-64V247.3L237.2 490L192 444.8L508.8 128l316.8 316.8l-45.3 45.2z"/>'},hr={width:1024,height:1024,body:'<path fill="currentColor" d="M512 160c320 0 512 352 512 352S832 864 512 864S0 512 0 512s192-352 512-352m0 64c-225.3 0-384.1 208-436.8 288c52.6 79.9 211.5 288 436.8 288s384.1-208 436.8-288C896.2 432.1 737.3 224 512 224m0 64a224 224 0 1 1 0 448a224 224 0 0 1 0-448m0 64a160 160 0 0 0-160 160c0 88.2 71.7 160 160 160s160-71.8 160-160s-71.7-160-160-160"/>'},mr={width:1024,height:1024,body:'<path fill="currentColor" d="M406.7 707L195.8 496.2a32 32 0 1 0-45.2 45.2l256 256l512-512a32 32 0 0 0-45.3-45.2L406.6 706.9z"/>'},ur={width:1024,height:1024,body:'<path fill="currentColor" d="M764.3 214.6L512 466.9L259.7 214.6a32 32 0 0 0-45.1 45.1L466.8 512L214.5 764.2a32 32 0 1 0 45.1 45.2L512 557.2l252.3 252.3a32 32 0 0 0 45.1-45.1L557.1 512l252.3-252.4a32 32 0 1 0-45.1-45.2z"/>'},gr={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768a384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0a48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"/>'},kr={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m0 192a58.4 58.4 0 0 0-58.2 63.7L477 576.1a35 35 0 0 0 69.8 0l23.3-256.4A58.4 58.4 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4a51.2 51.2 0 0 0 0 102.4"/>'},yr={width:1024,height:1024,body:'<path fill="currentColor" d="M384 523.4V928a32 32 0 0 0 46.3 28.6l192-96A32 32 0 0 0 640 832V523.4l280.8-343.1a32 32 0 1 0-49.6-40.6l-288 352A32 32 0 0 0 576 512v300.2l-128 64V512a32 32 0 0 0-7.2-20.3L195.5 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.8 52.3z"/>'},br={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m67.2 275c33.3 0 60.3-23 60.3-57.3s-27-57.3-60.3-57.3s-60.2 23-60.2 57.3s27 57.4 60.2 57.4m11.7 360.1c0-6.8 2.4-24.6 1-34.8L539.3 725c-10.9 11.4-24.5 19.4-30.9 17.3a13 13 0 0 1-8.2-14.7l87.6-277c7.2-35.2-12.5-67.2-54.3-71.3c-44 0-109 44.7-148.5 101.5c0 6.8-1.3 23.6 0 33.8l52.6-60.6c11-11.4 23.6-19.4 30-17.2a13 13 0 0 1 7.8 16.1l-87 275.7c-10 32.2 9 63.8 55.1 71c67.9 0 108-43.6 147.5-100.4z"/>'},ea={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m-55.8 536.4l-99.5-99.6a38.4 38.4 0 1 0-54.4 54.3L429.1 682a38.3 38.3 0 0 0 54.3 0l262.4-262.5a38.4 38.4 0 1 0-54.3-54.3z"/>'},_r={width:1024,height:1024,body:'<path fill="currentColor" d="M340.9 149.3a30.6 30.6 0 0 0 0 42.8L652.7 512L341 831.9a30.6 30.6 0 0 0 0 42.7a29 29 0 0 0 41.7 0l331.6-340.3a32 32 0 0 0 0-44.6L382.6 149.4a29 29 0 0 0-41.7 0z"/>'},wr={width:1024,height:1024,body:'<path fill="currentColor" d="M831.9 340.9L512 652.7L192.1 340.9a30.6 30.6 0 0 0-42.7 0a29 29 0 0 0 0 41.6l340.3 331.7a32 32 0 0 0 44.6 0l340.3-331.7a29 29 0 0 0 0-41.7a30.6 30.6 0 0 0-42.7 0z"/>'},Cr={width:1024,height:1024,body:'<path fill="currentColor" d="M488.8 344.3L149 701a32 32 0 0 0 0 44.2l.4.3a29.4 29.4 0 0 0 42.7 0l320-335.8l319.8 335.8a29.4 29.4 0 0 0 42.7 0l.4-.3a32 32 0 0 0 0-44.2L535.2 344.3a32 32 0 0 0-46.4 0"/>'},Er={width:1024,height:1024,body:'<path fill="currentColor" d="M609.4 149.4L277.8 489.6a32 32 0 0 0 0 44.7l331.6 340.3a29 29 0 0 0 41.7 0a30.6 30.6 0 0 0 0-42.7l-311.8-320L651 192.1a30.6 30.6 0 0 0 0-42.7a29 29 0 0 0-41.7 0"/>'},xr={width:1024,height:1024,body:'<path fill="currentColor" d="M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"/><path fill="currentColor" d="m237.2 512l265.5 265.3a32 32 0 0 1-45.4 45.4l-288-288a32 32 0 0 1 0-45.4l288-288a32 32 0 1 1 45.4 45.4z"/>'},$r={width:1024,height:1024,body:'<path fill="currentColor" d="M754.8 480H160a32 32 0 1 0 0 64h594.8L521.3 777.3a32 32 0 0 0 45.4 45.4l288-288a32 32 0 0 0 0-45.4l-288-288a32 32 0 1 0-45.4 45.4z"/>'},Tr={width:1024,height:1024,body:'<path fill="currentColor" d="M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384L128 512l192 128z"/>'},Br={width:1024,height:1024,body:'<path fill="currentColor" d="M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352l192 160l-192 128z"/>'},Sr={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.2 0l136 135.8a32 32 0 0 1-45.3 45.3L195.2 240.4a32 32 0 0 1 0-45.2m452.5 452.5a32 32 0 0 1 45.3 0l135.8 135.9a32 32 0 0 1-45.2 45.2L647.7 693a32 32 0 0 1 0-45.3m181.1-452.4a32 32 0 0 1 0 45.1L693 376.4a32 32 0 0 1-45.3-45.3l135.9-135.8a32 32 0 0 1 45.2 0M376.3 647.7a32 32 0 0 1 0 45.3L240.4 828.8a32 32 0 0 1-45.2-45.2L331 647.7a32 32 0 0 1 45.3 0"/>'},Vr={width:1024,height:1024,body:'<path fill="currentColor" d="M176 416a112 112 0 1 1 0 224a112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224a112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224a112 112 0 0 1 0-224"/>'},Nr={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768a384 384 0 0 0 0 768m-48-247.6L668.6 512L464 375.6zm10.6-342.7l249.5 166.4a48 48 0 0 1 0 79.8L474.6 718.3a48 48 0 0 1-74.6-40V345.6a48 48 0 0 1 74.6-40z"/>'},Ar={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768a384 384 0 0 0 0 768m-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32m192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32"/>'},zr={width:1024,height:1024,body:'<path fill="currentColor" d="m160 96l192 .3a32 32 0 0 1 0 64l-192-.2V352a32 32 0 0 1-64 0V96zm0 832H96V672a32 32 0 1 1 64 0v192l192-.3a32 32 0 1 1 0 64zM864 96h64v256a32 32 0 1 1-64 0V160l-192 .3a32 32 0 1 1 0-64zm0 832l-192-.3a32 32 0 0 1 0-64l192 .2V672a32 32 0 1 1 64 0v256z"/>'},Mr={width:1024,height:1024,body:'<path fill="currentColor" d="m249.6 417l319.7 43.2l39.2 310.2L845.1 179zm-129 47.3a32 32 0 0 1-7.7-61.5l777.8-311a32 32 0 0 1 41.6 41.6L622 909a32 32 0 0 1-61.5-7.9L512 517z"/>'},Lr={width:1024,height:1024,body:'<path fill="currentColor" d="m64 448l832-320l-128 704l-446-243.3L832 192L242.8 545.5zm256 512V657l192 111z"/>'},Ir={width:1024,height:1024,body:'<path fill="currentColor" d="M512 896a384 384 0 1 0 0-768a384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896a448 448 0 0 1 0 896"/><path fill="currentColor" d="M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"/><path fill="currentColor" d="M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"/>'},Rr={width:1024,height:1024,body:'<path fill="currentColor" d="M512 896a384 384 0 1 0 0-768a384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896a448 448 0 0 1 0 896"/><path fill="currentColor" d="M745.3 361.3a32 32 0 0 1 45.4 45.4l-288 288a32 32 0 0 1-45.4 0l-160-160a32 32 0 1 1 45.4-45.4L480 626.8z"/>'},Dr={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m-55.8 536.4l-99.5-99.6a38.4 38.4 0 1 0-54.4 54.3L429.1 682a38.3 38.3 0 0 0 54.3 0l262.4-262.5a38.4 38.4 0 1 0-54.3-54.3z"/>'},Pr={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m0 393.7L408 353.6a38.4 38.4 0 1 0-54.4 54.3l104 104.1l-104 104a38.4 38.4 0 1 0 54.3 54.4l104.1-104l104 104a38.4 38.4 0 1 0 54.4-54.3L566.4 512l104-104a38.4 38.4 0 1 0-54.3-54.4z"/>'},Or={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m23.7 191.5q-77.9 0-123.2 44.3c-31 29.6-45.7 70.4-45.7 122.5H447c0-29.5 5.7-52.8 17.6-69c13.4-19.7 35.2-28.8 66.2-28.8q36.2-.2 56.3 19.7a77 77 0 0 1 19.7 54.9a78 78 0 0 1-19 50l-8.4 9.8c-45.8 40.9-73.2 70.4-82.4 89.5c-9.8 19-14 42.2-14 69v9.8h80.9v-9.9c0-16.9 3.5-31.6 10.6-45.7a109 109 0 0 1 28.1-35.2c33.8-29.6 54.2-48.6 60.6-55.6c16.9-22.6 26-51.4 26-86.6q0-64.4-42.2-101.4c-28.2-25.3-65.5-37.3-111.3-37.3m-12.6 406.2a54 54 0 0 0-38.7 14.8a49 49 0 0 0-15.5 38c0 15.5 4.9 28.2 15.5 38A55 55 0 0 0 523 768c15.5 0 28.1-5 38.7-14.8a52 52 0 0 0 16.2-38.7a52 52 0 0 0-15.5-38a56 56 0 0 0-39.4-14.8"/>'},Hr={width:1024,height:1024,body:'<path fill="currentColor" d="m186.5 544l41.4 41.3a32 32 0 1 1-45.2 45.4l-96-96a32 32 0 0 1 0-45.4l96-96a32 32 0 1 1 45.2 45.4L186.5 480h290.8V186.4L435.8 228a32 32 0 1 1-45.2-45.2l96-96.1a32 32 0 0 1 45.3 0l96 96a32 32 0 0 1-45.2 45.2l-41.4-41.2V480H832l-41.3-41.3a32 32 0 0 1 45.2-45.4l96 96a32 32 0 0 1 0 45.4l-96 96a32 32 0 0 1-45.2-45.4L832 544H541.3v293.4l41.4-41.2a32 32 0 1 1 45.2 45.2l-96 96a32 32 0 0 1-45.3 0l-96-96a32 32 0 1 1 45.3-45.2l41.4 41.4V544z"/>'},Fr={width:1024,height:1024,body:'<path fill="currentColor" d="M384 96a32 32 0 0 1 64 0v786.8a32 32 0 0 1-54.6 22.6L96 608a32 32 0 0 1 0-45.3h.2a32 32 0 0 1 45.1 0l242.8 243zm192 45.2a32 32 0 0 1 54.6-22.5L928 416a32 32 0 0 1 0 45.3h-.2a32 32 0 0 1-45.1 0L640 218.5V928a32 32 0 1 1-64 0z"/>'},Ur={width:1024,height:1024,body:'<path fill="currentColor" d="M512 896a320 320 0 1 0 0-640a320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768a384 384 0 0 1 0 768"/><path fill="currentColor" d="M512 320a32 32 0 0 1 32 32l-.5 224a32 32 0 1 1-64 0l.5-224a32 32 0 0 1 32-32"/><path fill="currentColor" d="M448 576a64 64 0 1 0 128 0a64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"/>'},jr={width:1024,height:1024,body:'<path fill="currentColor" d="M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"/><path fill="currentColor" d="M904 224L656.5 506.9a192 192 0 0 1-289 0L120 224zm-699 0l210.6 240.7a128 128 0 0 0 192.7 0L819 224z"/>'},qr={width:1024,height:1024,body:'<path fill="currentColor" d="M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96"/><path fill="currentColor" d="M384 416a64 64 0 1 0 0-128a64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256a128 128 0 0 1 0 256"/><path fill="currentColor" d="M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32m160 416a64 64 0 1 0 0-128a64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256a128 128 0 0 1 0 256"/><path fill="currentColor" d="M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"/>'},Gr={width:1024,height:1024,body:'<path fill="currentColor" d="M352 159.9v70.5a352 352 0 1 0 320 0v-70.5A416.1 416.1 0 0 1 512 960a416 416 0 0 1-160-800.1"/><path fill="currentColor" d="M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"/>'},ta={width:1024,height:1024,body:'<path fill="currentColor" d="M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"/><path fill="currentColor" d="M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"/>'},ht={"home-filled":Il,setting:Rl,user:Dl,"user-filled":Pl,lock:Ol,key:Hl,document:Fl,files:Ul,grid:jl,odometer:ql,menu:Gl,connection:Wl,monitor:Yl,medal:Zl,trophy:Kl,platform:Ql,cpu:Xl,"chat-dot-round":Jl,"chat-line-round":vl,"chat-square":er,bell:tr,"picture-filled":nr,picture:ar,edit:or,"edit-pen":lr,pointer:rr,delete:sr,search:ir,plus:cr,refresh:dr,download:pr,upload:fr,view:hr,check:mr,close:ur,warning:gr,"warning-filled":kr,filter:yr,"info-filled":br,"success-filled":ea,success:ea,"arrow-right":_r,"arrow-down":wr,"arrow-up":Cr,"arrow-left":Er,back:xr,right:$r,fold:Tr,expand:Br,loading:Sr,"more-filled":Vr,"video-play":Nr,"video-pause":Ar,"full-screen":zr,position:Mr,promotion:Lr,clock:Ir,"circle-check":Rr,"circle-check-filled":Dr,"circle-close-filled":Pr,"question-filled":Or,rank:Hr,sort:Fr,timer:Ur,message:jr,"set-up":qr,"switch-button":Gr,"copy-document":ta,copy:ta,folder:{width:1024,height:1024,body:'<path fill="currentColor" d="M128 192v640h768V320H485.8L357.5 192zm-32-64h287.9l128.4 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"/>'},"folder-add":{width:1024,height:1024,body:'<path fill="currentColor" d="M128 192v640h768V320H485.8L357.5 192zm-32-64h287.9l128.4 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m384 416V416h64v128h128v64H544v128h-64V608H352v-64z"/>'},"folder-remove":{width:1024,height:1024,body:'<path fill="currentColor" d="M128 192v640h768V320H485.8L357.5 192zm-32-64h287.9l128.4 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m256 416h320v64H352z"/>'},list:{width:1024,height:1024,body:'<path fill="currentColor" d="M704 192h160v736H160V192h160v64h384zM288 512h448v-64H288zm0 256h448v-64H288zm96-576V96h256v96z"/>'},notebook:{width:1024,height:1024,body:'<path fill="currentColor" d="M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"/><path fill="currentColor" d="M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"/>'},"refresh-right":{width:1024,height:1024,body:'<path fill="currentColor" d="M784.5 230.3v-50.6a32 32 0 1 1 64 0v149a32 32 0 0 1-32 32h-149a32 32 0 1 1 0-64h93a320 320 0 1 0-235.7 536.5a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384a384 384 0 0 1-384-384a384 384 0 0 1 643.7-283"/>'},"refresh-left":{width:1024,height:1024,body:'<path fill="currentColor" d="M289 296.7h93a32 32 0 0 1 0 64H233a32 32 0 0 1-32-32v-149a32 32 0 0 1 64 0v50.6a384 384 0 0 1 643.8 282.9a384 384 0 0 1-384 384a384 384 0 0 1-384-384h64a320 320 0 1 0 640 0a320 320 0 0 0-555.6-216.5z"/>'},"document-copy":{width:1024,height:1024,body:'<path fill="currentColor" d="M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"/>'},calendar:{width:1024,height:1024,body:'<path fill="currentColor" d="M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"/>'},link:{width:1024,height:1024,body:'<path fill="currentColor" d="m715.6 625.2l-45.2-45.3l90.5-90.6c75-74.9 85.1-186.3 22.7-248.9c-62.6-62.4-174-52.3-249 22.7l-90.4 90.5l-45.3-45.2l90.5-90.5c100-100 252-110.1 339.5-22.7c87.5 87.5 77.3 239.4-22.7 339.5l-90.5 90.5zm-90.4 90.4l-90.5 90.5c-100 100-252 110.1-339.5 22.7c-87.5-87.5-77.3-239.4 22.7-339.5l90.5-90.5l45.2 45.3l-90.5 90.6c-75 74.9-85.1 186.3-22.7 248.9c62.6 62.4 174 52.3 249-22.7l90.5-90.5zm0-362l45.2 45.2l-271.6 271.6l-45.2-45.2z"/>'},share:{width:1024,height:1024,body:'<path fill="currentColor" d="M679.9 348.8L378 537.4a128 128 0 0 1 5.1 52.2l280 105a128 128 0 1 1-22.5 59.8l-279.9-105a128 128 0 1 1-16.6-166.2l301.7-188.6a128 128 0 1 1 34 54.3z"/>'},star:{width:1024,height:1024,body:'<path fill="currentColor" d="m512 747.8l228.2 120a6.4 6.4 0 0 0 9.2-6.7L706 607l184.5-180a6.4 6.4 0 0 0-3.5-10.8L632 379L517.7 147.9a6.4 6.4 0 0 0-11.6 0l-114 231.2L137 416a6.4 6.4 0 0 0-3.5 11L318 607l-43.6 254a6.4 6.4 0 0 0 9.3 6.8zM313.6 924.5a70.4 70.4 0 0 1-102.1-74.3l37.8-220.9L89 473a70.4 70.4 0 0 1 39-120.1l221.8-32.3l99.2-201a70.4 70.4 0 0 1 126.2 0l99.2 201L896.2 353a70.4 70.4 0 0 1 39 120L774.7 629.5l38 220.9a70.4 70.4 0 0 1-102.2 74.2L512 820.1z"/>'},comment:{width:1024,height:1024,body:'<path fill="currentColor" d="M736 504a56 56 0 1 1 0-112a56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112a56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112a56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"/>'},phone:{width:1024,height:1024,body:'<path fill="currentColor" d="m79.4 432.3l512.3 512.3a32 32 0 0 0 35.2 6.8L880.4 843a32 32 0 0 0 10-52L736.5 637a32 32 0 0 0-37-6l-69.8 35l-271.6-271.7l35-69.8a32 32 0 0 0-6-37l-154-153.8a32 32 0 0 0-52 10L72.5 397.1a32 32 0 0 0 6.8 35.2zm60.4-30l81.6-190l104.2 104.2l-24.7 49.2l-20.6 41.2l32.6 32.7L584.4 711l32.7 32.6l41.2-20.6l49.3-24.6l104.2 104.1L621.7 884zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192m0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384"/>'},"video-camera":{width:1024,height:1024,body:'<path fill="currentColor" d="M704 768V256H128v512zm64-416l192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.6v176.8l128 64V359.6zM192 320h192v64H192z"/>'},house:{width:1024,height:1024,body:'<path fill="currentColor" d="M192 414v482h640V414L512 147.3zm-52.5-39.6l352-293.3a32 32 0 0 1 41 0l352 293.3A32 32 0 0 1 896 399v529a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V399a32 32 0 0 1 11.5-24.6"/>'},"magic-stick":{width:1024,height:1024,body:'<path fill="currentColor" d="M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.9 199l45.1-45l135.7 135.7l-45.2 45.2l-135.7-135.7zm407.3 407.4l45.2-45.2l135.7 135.7l-45.2 45.2zM114 923.2L68.8 878l316.8-316.8l45.2 45.2zm588.4-588.4l-45.2-45.2l135.7-135.7l45.2 45.2z"/>'},operation:{width:1024,height:1024,body:'<path fill="currentColor" d="M389.4 768a96 96 0 0 1 181.2 0H896v64H570.6a96 96 0 0 1-181.2 0H128v-64zm192-288a96 96 0 0 1 181.2 0H896v64H762.6a96 96 0 0 1-181.2 0H128v-64zm-320-288a96 96 0 0 1 181.2 0H896v64H442.6a96 96 0 0 1-181.2 0H128v-64z"/>'},"data-line":{width:1024,height:1024,body:'<path fill="currentColor" d="M359.2 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.2l110.9 192h-73.9L591.4 768H433L322.2 960h-73.9zM832 192H192v512h640zM342.7 534.7a32 32 0 1 1-45.4-45.4L445 341.8l125.4 94L679 300a32 32 0 1 1 50 40L581.6 524.2l-130.6-98l-108.3 108.4z"/>'},"pie-chart":{width:1024,height:1024,body:'<path fill="currentColor" d="M448 68.5v64.8A384.1 384.1 0 0 0 512 896a384 384 0 0 0 378.7-320h64.8A448.1 448.1 0 0 1 64 512A448 448 0 0 1 448 68.5"/><path fill="currentColor" d="M576 97.3V448h350.7A384 384 0 0 0 576 97.3M512 64V33.2A448 448 0 0 1 990.8 512H512z"/>'},"data-board":{width:1024,height:1024,body:'<path fill="currentColor" d="M32 128h960v64H32z"/><path fill="currentColor" d="M192 192v512h640V192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"/><path fill="currentColor" d="M322.2 960h-73.9L393 709.4l55.4 32zm453.9 0h-73.9L576 741.4l55.4-32z"/>'},"trend-charts":{width:1024,height:1024,body:'<path fill="currentColor" d="M128 896V128h768v768zm291.7-327.3l128 102.4L728 469.3l-48-42.6l-139.7 156.6l-128-102.4L232 682.7l47.8 42.6zM816 352a48 48 0 1 0-96 0a48 48 0 0 0 96 0"/>'},histogram:{width:1024,height:1024,body:'<path fill="currentColor" d="M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"/>'},crop:{width:1024,height:1024,body:'<path fill="currentColor" d="M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0z"/><path fill="currentColor" d="M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32"/>'},location:{width:1024,height:1024,body:'<path fill="currentColor" d="M800 416a288 288 0 1 0-576 0c0 118.1 94.5 272.1 288 456.6C705.5 688 800 534 800 416M512 960Q160 640 160 416a352 352 0 0 1 704 0q0 224-352 544"/><path fill="currentColor" d="M512 512a96 96 0 1 0 0-192a96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320a160 160 0 0 1 0 320"/>'},aim:{width:1024,height:1024,body:'<path fill="currentColor" d="M512 896a384 384 0 1 0 0-768a384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896a448 448 0 0 1 0 896"/><path fill="currentColor" d="M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"/>'},"caret-top":{width:1024,height:1024,body:'<path fill="currentColor" d="M512 320L192 704h640z"/>'},"caret-bottom":{width:1024,height:1024,body:'<path fill="currentColor" d="m192 384l320 384l320-384z"/>'},minus:{width:1024,height:1024,body:'<path fill="currentColor" d="M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"/>'},iphone:{width:1024,height:1024,body:'<path fill="currentColor" d="M224 768v96a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64v-96zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96zm304-144a48 48 0 1 1-96 0a48 48 0 0 1 96 0"/>'},cellphone:{width:1024,height:1024,body:'<path fill="currentColor" d="M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64m128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64m128 640a64 64 0 1 1 0-128a64 64 0 0 1 0 128"/>'},"office-building":{width:1024,height:1024,body:'<path fill="currentColor" d="M192 128v704h384V128zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"/><path fill="currentColor" d="M256 256h256v64H256zm0 192h256v64H256zm0 192h256v64H256zm384-128h128v64H640zm0 128h128v64H640zM64 832h896v64H64z"/><path fill="currentColor" d="M640 384v448h192V384zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32"/>'},stamp:{width:1024,height:1024,body:'<path fill="currentColor" d="M624 476v164h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V476a192 192 0 1 1 224 0M128 896v-64h768v64z"/>'},wallet:{width:1024,height:1024,body:'<path fill="currentColor" d="M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32z"/><path fill="currentColor" d="M128 320v512h768V320zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32"/><path fill="currentColor" d="M704 640a64 64 0 1 1 0-128a64 64 0 0 1 0 128"/>'},money:{width:1024,height:1024,body:'<path fill="currentColor" d="M256 640v192h640V384H768v-64h151c14.2 0 19.4 1.5 24.6 4.3a29 29 0 0 1 12.2 12c2.7 5.3 4.2 10.5 4.2 24.7v494c0 14.2-1.5 19.4-4.3 24.6a29 29 0 0 1-12 12.2c-5.3 2.7-10.5 4.2-24.7 4.2H233c-14.2 0-19.4-1.5-24.6-4.3a29 29 0 0 1-12.2-12c-2.7-5.3-4.2-10.5-4.2-24.7V640z"/><path fill="currentColor" d="M768 192H128v448h640zm64-23v494c0 14.2-1.5 19.4-4.3 24.6a29 29 0 0 1-12 12.2c-5.3 2.7-10.5 4.2-24.7 4.2H105c-14.2 0-19.4-1.5-24.6-4.3a29 29 0 0 1-12.2-12c-2.7-5.3-4.2-10.5-4.2-24.7V169c0-14.2 1.5-19.4 4.3-24.6a29 29 0 0 1 12-12.2c5.3-2.7 10.5-4.2 24.7-4.2h686c14.2 0 19.4 1.5 24.6 4.3a29 29 0 0 1 12.1 12c2.8 5.3 4.2 10.5 4.2 24.7z"/><path fill="currentColor" d="M448 576a160 160 0 1 1 0-320a160 160 0 0 1 0 320m0-64a96 96 0 1 0 0-192a96 96 0 0 0 0 192"/>'},"shopping-cart":{width:1024,height:1024,body:'<path fill="currentColor" d="M432 928a48 48 0 1 1 0-96a48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96a48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.4 25.7L320.6 256H928a32 32 0 0 1 31.3 38.7l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.4-25.7L229.8 128zm314.2 576h396l82.2-384h-555z"/>'},"credit-card":{width:1024,height:1024,body:'<path fill="currentColor" d="M896 324.1c0-42.4-2.5-55.3-9.5-68.5a52 52 0 0 0-22.2-22c-13.1-7.1-26-9.6-68.4-9.6H228.1c-42.4 0-55.3 2.5-68.5 9.5a52 52 0 0 0-22 22.2c-7.1 13.1-9.6 26-9.6 68.4v375.8c0 42.4 2.5 55.3 9.5 68.5a52 52 0 0 0 22.2 22c13.1 7.1 26 9.6 68.4 9.6h567.8c42.4 0 55.3-2.5 68.5-9.5a52 52 0 0 0 22-22.2c7.1-13.1 9.6-26 9.6-68.4zm64 0v375.8c0 57-6 77.8-17 98.6q-17 31.5-48.5 48.4C863 864 853 864 796 864H228c-57 0-77.7-6-98.5-17A116 116 0 0 1 81 798.4C70 777.7 64 757 64 700V324c0-57 5.9-77.7 17-98.5q17-31.6 48.4-48.5c31.4-16.9 41.6-17 98.6-17h567.8c57.1 0 77.8 5.9 98.6 17q31.6 17 48.4 48.4C959.6 256.8 960 267 960 324z"/><path fill="currentColor" d="M64 320h896v64H64zm0 128h896v64H64zm128 192h256v64H192z"/>'},coin:{width:1024,height:1024,body:'<path fill="currentColor" d="m162 580.7l29.8 59c-20.5 20-31.8 42-31.8 64.3c0 82.3 155.3 160 352 160s352-77.7 352-160c0-22.3-11.4-44.2-31.8-64.3l30.5-58.5C903.9 615.8 928 657.7 928 704c0 129.7-188.5 224-416 224S96 833.7 96 704c0-46.6 24.3-88.6 66-123.3"/><path fill="currentColor" d="m162 388.7l29.8 59c-20.5 20.1-31.8 42-31.8 64.3c0 82.3 155.3 160 352 160s352-77.7 352-160c0-22.3-11.4-44.2-31.8-64.3l30.5-58.5C903.9 423.8 928 465.7 928 512c0 129.7-188.5 224-416 224S96 641.7 96 512c0-46.6 24.3-88.6 66-123.3"/><path fill="currentColor" d="M512 544c-227.5 0-416-94.3-416-224S284.5 96 512 96s416 94.3 416 224s-188.5 224-416 224m0-64c196.7 0 352-77.7 352-160S708.7 160 512 160s-352 77.7-352 160s155.3 160 352 160"/>'},goods:{width:1024,height:1024,body:'<path fill="currentColor" d="M320 288v-22.3C320 154.7 405.5 64 512 64s192 90.7 192 201.7V288h131a32 32 0 0 1 31.9 28.8l57.6 576a32 32 0 0 1-31.8 35.2H131.3a32 32 0 0 1-31.8-35.2l57.6-576A32 32 0 0 1 189 288zm64 0h256v-22.3c0-76.5-57.7-137.7-128-137.7s-128 61.2-128 137.7zm-64 64H218l-51.3 512h690.6L806 352H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0z"/>'},collection:{width:1024,height:1024,body:'<path fill="currentColor" d="M192 736h640V128H256a64 64 0 0 0-64 64zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.5V192A128 128 0 0 1 256 64"/><path fill="currentColor" d="M240 800a48 48 0 1 0 0 96h592v-96zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224m144-608v250.9l96-76.8l96 76.8V128zm-64-64h320v381.4a32 32 0 0 1-52 25L480 384l-108 86.4a32 32 0 0 1-52-25z"/>'},tools:{width:1024,height:1024,body:'<path fill="currentColor" d="M764.4 254.7A352 352 0 0 1 850.8 404H960v192H850.8a352 352 0 0 1-86.4 149.4l54.7 94.7L653 936l-54.6-94.7a353 353 0 0 1-172.5 0L371 936l-166-96l54.7-94.7A352 352 0 0 1 173.2 596H64V404h109.2a352 352 0 0 1 86.4-149.3L204.8 160L371 64h.2l54.7 94.6a353 353 0 0 1 172.4 0L652.8 64h.1l166.3 96zM704 500a192 192 0 1 0-384 0a192 192 0 0 0 384 0"/>'},"document-checked":{width:1024,height:1024,body:'<path fill="currentColor" d="M805.5 320L640 154.5V320zm26.5 64H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m318.4 582.1l181-181l45.2 45.3l-226.2 226.2L320 578.3l45.2-45.3z"/>'},box:{width:1024,height:1024,body:'<path fill="currentColor" d="M317 128L128 344v552h768V344L707 128zm-14.5-64h419a32 32 0 0 1 24 10.9l206.6 236A32 32 0 0 1 960 332v596a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332a32 32 0 0 1 8-21L278.3 75a32 32 0 0 1 24.1-11"/><path fill="currentColor" d="M64 320h896v64H64z"/><path fill="currentColor" d="M448 327.9V640h128V327.9L526 128h-28zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320z"/>'},"alarm-clock":{width:1024,height:1024,body:'<path fill="currentColor" d="M512 832a320 320 0 1 0 0-640a320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768a384 384 0 0 1 0 768"/><path fill="currentColor" d="m292.3 824.6l55.4 32l-48 83.1a32 32 0 1 1-55.4-32zm439.4 0l-55.4 32l48 83.1a32 32 0 1 0 55.4-32zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0zM90.5 312.3A160 160 0 0 1 312.3 90.5l-46.8 46.8a96 96 0 0 0-128 128zm835.3 0A160 160 0 0 0 704 90.5l46.8 46.8a96 96 0 0 1 128 128z"/>'},"takeaway-box":{width:1024,height:1024,body:'<path fill="currentColor" d="M832 384H192v448h640zM96 320h832V128H96zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64"/>'},coordinate:{width:1024,height:1024,body:'<path fill="currentColor" d="M480 512h64v320h-64z"/><path fill="currentColor" d="M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64m64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128m256-256a192 192 0 1 0 0-384a192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512a256 256 0 0 1 0 512"/>'},postcard:{width:1024,height:1024,body:'<path fill="currentColor" d="M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96"/><path fill="currentColor" d="M704 320a64 64 0 1 1 0 128a64 64 0 0 1 0-128M288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32m0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"/>'},"data-analysis":{width:1024,height:1024,body:'<path fill="currentColor" d="m665.2 768l110.9 192h-73.9L591.4 768H433L322.2 960h-73.9l110.9-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32zM832 192H192v512h640zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32"/>'},reading:{width:1024,height:1024,body:'<path fill="currentColor" d="m512 863.4l384-54.9V169.8l-370.4 53a96 96 0 0 1-27.2 0l-370.4-53v638.7zm-375-757l370.5 53a32 32 0 0 0 9 0l370.5-53a64 64 0 0 1 73 63.4v638.7a64 64 0 0 1-55 63.4l-388.5 55.5a32 32 0 0 1-9 0L119 871.9a64 64 0 0 1-55-63.4V169.8a64 64 0 0 1 73-63.4"/><path fill="currentColor" d="M480 192h64v704h-64z"/>'},flag:{width:1024,height:1024,body:'<path fill="currentColor" d="M288 128h608L736 384l160 256H288v320h-96V64h96z"/>'}},Wr=Object.keys(ht).sort();function Yr(t){return t in ht}const le=e.defineComponent({__name:"AppIcon",props:{name:{},size:{},color:{}},setup(t){const n=t,a=e.computed(()=>ht[n.name]??null),o=e.computed(()=>typeof n.size=="number"?`${n.size}px`:n.size??"1em");return(l,r)=>a.value?(e.openBlock(),e.createBlock(e.unref(Ll),{key:0,icon:a.value,width:o.value,height:o.value,style:e.normalizeStyle(t.color?{color:t.color}:void 0)},null,8,["icon","width","height","style"])):(e.openBlock(),e.createElementBlock("span",{key:1,style:e.normalizeStyle({fontSize:o.value,color:t.color,width:o.value,height:o.value,display:"inline-block"}),"aria-hidden":"true"},null,4))}}),Gt=10,na=[10,20,50],aa="total, sizes, prev, pager, next",Zr=L(e.defineComponent({__name:"AppPagination",props:{currentPage:{},pageSize:{default:Gt},total:{},size:{default:"default"}},emits:["update:currentPage","update:pageSize","currentChange","sizeChange"],setup(t,{emit:n}){const a=t,o=n;function l(i){o("update:currentPage",i),o("currentChange",i)}function r(i){o("update:pageSize",i),o("sizeChange",i)}return(i,c)=>{const s=e.resolveComponent("el-pagination");return a.total>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(i.$style.pagination),"data-testid":"app-pagination"},[e.createVNode(s,{"current-page":a.currentPage,"page-size":a.pageSize,"page-sizes":[...e.unref(na)],total:a.total,layout:e.unref(aa),size:a.size,background:"",onCurrentChange:l,onSizeChange:r},null,8,["current-page","page-size","page-sizes","total","layout","size"])],2)):e.createCommentVNode("",!0)}}}),[["__cssModules",{$style:{pagination:"_pagination_d8k9z_2"}}]]),Kr=L(e.defineComponent({__name:"ConfirmDialog",props:{modelValue:{type:Boolean},title:{default:"确认操作"},width:{default:"400px"},loading:{type:Boolean,default:!1},message:{},type:{default:"warning"},cancelText:{default:"取消"},confirmText:{default:"确定"}},emits:["update:modelValue","confirm"],setup(t,{emit:n}){const a=n;function o(){a("confirm")}return(l,r)=>(e.openBlock(),e.createBlock(rt,{"model-value":t.modelValue,title:t.title,width:t.width,loading:t.loading,"cancel-text":t.cancelText,"confirm-text":t.confirmText,"onUpdate:modelValue":r[0]||(r[0]=i=>l.$emit("update:modelValue",i)),onConfirm:o},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(l.$style.content)},[t.type==="warning"?(e.openBlock(),e.createBlock(le,{key:0,name:"warning",class:e.normalizeClass(l.$style.icon),style:{color:"var(--el-color-warning)"}},null,8,["class"])):t.type==="danger"?(e.openBlock(),e.createBlock(le,{key:1,name:"circle-close-filled",class:e.normalizeClass(l.$style.icon),style:{color:"var(--el-color-danger)"}},null,8,["class"])):(e.openBlock(),e.createBlock(le,{key:2,name:"info-filled",class:e.normalizeClass(l.$style.icon),style:{color:"var(--el-color-primary)"}},null,8,["class"])),e.createElementVNode("p",{class:e.normalizeClass(l.$style.message)},e.toDisplayString(t.message),3)],2)]),_:1},8,["model-value","title","width","loading","cancel-text","confirm-text"]))}}),[["__cssModules",{$style:{content:"_content_1cbfb_2",icon:"_icon_1cbfb_8",message:"_message_1cbfb_13"}}]]),Qr=e.defineComponent({__name:"FormDialog",props:{modelValue:{type:Boolean},title:{},width:{default:"500px"},loading:{type:Boolean,default:!1},labelWidth:{default:"100px"},formData:{},rules:{default:()=>({})},showFullscreenBtn:{type:Boolean,default:!1},cancelText:{default:"取消"},confirmText:{default:"确定"}},emits:["update:modelValue","submit","cancel"],setup(t,{emit:n}){const a=t,o=n,l=e.ref();async function r(){if(l.value)try{await l.value.validate(),o("submit",{...a.formData})}catch{}}function i(){o("cancel")}return e.watch(()=>a.modelValue,c=>{var s;c&&((s=l.value)==null||s.clearValidate())}),(c,s)=>{const d=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(rt,{"model-value":t.modelValue,title:t.title,width:t.width,loading:t.loading,"show-fullscreen-btn":t.showFullscreenBtn,"cancel-text":t.cancelText,"confirm-text":t.confirmText,"onUpdate:modelValue":s[0]||(s[0]=f=>c.$emit("update:modelValue",f)),onConfirm:r,onCancel:i},{default:e.withCtx(()=>[e.createVNode(d,{ref_key:"formRef",ref:l,model:t.formData,rules:t.rules,"label-width":t.labelWidth},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default",{form:t.formData})]),_:3},8,["model","rules","label-width"])]),_:3},8,["model-value","title","width","loading","show-fullscreen-btn","cancel-text","confirm-text"])}}}),Xr=["onClick"],Jr=L(e.defineComponent({__name:"FilterTabs",props:{options:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:n}){const a=n;return(o,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.$style.tabs)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,r=>(e.openBlock(),e.createElementBlock("button",{key:r.value,class:e.normalizeClass([o.$style.tab,{[o.$style.tabActive]:t.modelValue===r.value}]),onClick:i=>a("update:modelValue",r.value)},[e.createTextVNode(e.toDisplayString(r.label)+" ",1),r.count!=null?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(o.$style.count)},e.toDisplayString(r.count),3)):e.createCommentVNode("",!0)],10,Xr))),128))],2))}}),[["__cssModules",{$style:{tabs:"_tabs_1fmwo_2",tab:"_tab_1fmwo_2",tabActive:"_tabActive_1fmwo_32",count:"_count_1fmwo_38"}}]]),vr=["onClick"],es=L(e.defineComponent({__name:"Toast",setup(t,{expose:n}){const a=e.ref([]);let o=0;function l(c,s="info",d=3e3){const f=o++;a.value.push({id:f,message:c,type:s}),setTimeout(()=>r(f),d)}function r(c){const s=a.value.findIndex(d=>d.id===c);s>=0&&(a.value[s].removing=!0,setTimeout(()=>{a.value=a.value.filter(d=>d.id!==c)},300))}function i(c,s="info",d){l(c,s,d)}return n({show:i}),(c,s)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createElementVNode("div",{class:e.normalizeClass(c.$style.container)},[e.createVNode(e.TransitionGroup,{name:"toast"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,d=>(e.openBlock(),e.createElementBlock("div",{key:d.id,class:e.normalizeClass([c.$style.item,c.$style[d.type],{[c.$style.removing]:d.removing}]),onClick:f=>r(d.id)},[e.createElementVNode("span",{class:e.normalizeClass(c.$style.icon)},[d.type==="success"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("✓")],64)):d.type==="error"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("✗")],64)):d.type==="warning"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("⚠")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createTextVNode("ℹ")],64))],2),e.createElementVNode("span",{class:e.normalizeClass(c.$style.msg)},e.toDisplayString(d.message),3)],10,vr))),128))]),_:1})],2)]))}}),[["__cssModules",{$style:{container:"_container_1tfi3_2",item:"_item_1tfi3_14",info:"_info_1tfi3_31",success:"_success_1tfi3_37",warning:"_warning_1tfi3_43",error:"_error_1tfi3_49",removing:"_removing_1tfi3_55",icon:"_icon_1tfi3_60",msg:"_msg_1tfi3_65"}}]]),ts=L(e.defineComponent({__name:"EmptyState",props:{icon:{},iconSize:{},title:{},description:{},compact:{type:Boolean,default:!1},actionText:{}},emits:["action"],setup(t,{emit:n}){const a=n;return(o,l)=>{const r=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([o.$style.empty,t.compact&&o.$style.compact])},[t.icon?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.$style.icon)},[e.createVNode(le,{name:t.icon,size:t.iconSize??(t.compact?48:64)},null,8,["name","size"])],2)):e.createCommentVNode("",!0),t.title?(e.openBlock(),e.createElementBlock("h2",{key:1,class:e.normalizeClass(o.$style.title)},e.toDisplayString(t.title),3)):e.createCommentVNode("",!0),t.description?(e.openBlock(),e.createElementBlock("p",{key:2,class:e.normalizeClass(o.$style.desc)},e.toDisplayString(t.description),3)):e.createCommentVNode("",!0),o.$slots.default||t.actionText?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(o.$style.actions)},[e.renderSlot(o.$slots,"default",{},()=>[t.actionText?(e.openBlock(),e.createBlock(r,{key:0,type:"primary",onClick:l[0]||(l[0]=i=>a("action"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.actionText),1)]),_:1})):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0)],2)}}}),[["__cssModules",{$style:{empty:"_empty_147z3_2",compact:"_compact_147z3_11",icon:"_icon_147z3_15",title:"_title_147z3_24",desc:"_desc_147z3_31",actions:"_actions_147z3_42"}}]]),ns=e.defineComponent({name:"ErrorBoundary",props:{context:{type:String,default:""},onError:{type:Function,default:void 0}},setup(t,{slots:n,expose:a}){const o=e.ref(!1),l=e.ref(null),r=e.ref(0);e.onErrorCaptured(c=>(o.value=!0,l.value=c instanceof Error?c:new Error(String(c)),console.error(`[ErrorBoundary] ${t.context}`,c),t.onError&&t.onError({context:t.context,error:l.value}),!1));function i(){o.value=!1,l.value=null,r.value++}return a({hasError:o,error:l,retryCounter:r,retry:i}),()=>{var s,d;if(o.value)return e.h("div",{class:"apf-error-boundary"},[e.h("div",{class:"apf-error-boundary__inner"},[e.h("div",{class:"apf-error-boundary__header"},[e.h("span",{class:"apf-error-boundary__icon"},"!"),e.h("span",{class:"apf-error-boundary__title"},"Render Error")]),t.context?e.h("div",{class:"apf-error-boundary__info"},t.context):null,e.h("div",{class:"apf-error-boundary__message"},((s=l.value)==null?void 0:s.message)??"Unknown error"),e.h(se.ElButton,{size:"small",type:"primary",onClick:i},()=>"Retry")])]);const c=(d=n.default)==null?void 0:d.call(n);return c?e.h("div",{key:r.value,style:{display:"contents"}},c):null}}}),as=e.defineComponent({__name:"StatusTag",props:{status:{},statusMap:{},round:{type:Boolean,default:!0},size:{default:"default"}},setup(t){const n={pending:{label:"待审批",type:"warning",effect:"light"},approved:{label:"已通过",type:"success",effect:"light"},rejected:{label:"已拒绝",type:"danger",effect:"light"},delegated:{label:"已转签",type:"info",effect:"light"},commented:{label:"已评论",type:"info",effect:"light"},active:{label:"启用",type:"success",effect:"light"},inactive:{label:"停用",type:"danger",effect:"light"},draft:{label:"草稿",type:"info",effect:"light"},published:{label:"已发布",type:"success",effect:"light"},archived:{label:"已归档",type:"info",effect:"light"},running:{label:"运行中",type:"primary",effect:"light"},completed:{label:"已完成",type:"success",effect:"light"},failed:{label:"失败",type:"danger",effect:"light"},cancelled:{label:"已取消",type:"info",effect:"light"},waiting:{label:"等待中",type:"warning",effect:"light"}},a=t,o=e.computed(()=>({...n,...a.statusMap})[a.status]??{label:a.status,type:"info",effect:"light"});return(l,r)=>{const i=e.resolveComponent("el-tag");return e.openBlock(),e.createBlock(i,{type:o.value.type,effect:o.value.effect??"light",round:t.round,size:t.size},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.value.label),1)]),_:1},8,["type","effect","round","size"])}}}),os=L(e.defineComponent({__name:"Skeleton",props:{variant:{default:"card"},count:{default:3},rows:{default:5},animated:{type:Boolean,default:!0}},setup(t){return(n,a)=>{const o=e.resolveComponent("el-skeleton");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([n.$style.skeleton,{[n.$style.animated]:t.animated}])},[t.variant==="card"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.count,l=>(e.openBlock(),e.createElementBlock("div",{key:l,class:e.normalizeClass(n.$style.card)},[e.createElementVNode("div",{class:e.normalizeClass(n.$style.cardImage)},null,2),e.createElementVNode("div",{class:e.normalizeClass(n.$style.cardBody)},[e.createElementVNode("div",{class:e.normalizeClass([n.$style.line,n.$style.lineTitle])},null,2),e.createElementVNode("div",{class:e.normalizeClass([n.$style.line,n.$style.lineText])},null,2),e.createElementVNode("div",{class:e.normalizeClass([n.$style.line,n.$style.lineTextShort])},null,2)],2)],2))),128)):e.createCommentVNode("",!0),t.variant==="list"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.count,l=>(e.openBlock(),e.createElementBlock("div",{key:l,class:e.normalizeClass(n.$style.listItem)},[e.createElementVNode("div",{class:e.normalizeClass(n.$style.avatar)},null,2),e.createElementVNode("div",{class:e.normalizeClass(n.$style.listContent)},[e.createElementVNode("div",{class:e.normalizeClass([n.$style.line,n.$style.lineTitle])},null,2),e.createElementVNode("div",{class:e.normalizeClass([n.$style.line,n.$style.lineText])},null,2)],2)],2))),128)):e.createCommentVNode("",!0),t.variant==="table"?(e.openBlock(),e.createBlock(o,{key:2,rows:t.rows,animated:""},null,8,["rows"])):e.createCommentVNode("",!0)],2)}}}),[["__cssModules",{$style:{skeleton:"_skeleton_1krg9_2",animated:"_animated_1krg9_6",cardImage:"_cardImage_1krg9_6",line:"_line_1krg9_7",avatar:"_avatar_1krg9_8","skeleton-loading":"_skeleton-loading_1krg9_1",card:"_card_1krg9_6",cardBody:"_cardBody_1krg9_36",listItem:"_listItem_1krg9_41",listContent:"_listContent_1krg9_57",lineTitle:"_lineTitle_1krg9_71",lineText:"_lineText_1krg9_76",lineTextShort:"_lineTextShort_1krg9_80"}}]]),ls=L(e.defineComponent({__name:"CardGridSkeleton",props:{count:{default:6},showThumb:{type:Boolean,default:!0},animated:{type:Boolean,default:!0}},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([n.$style.grid,{[n.$style.animated]:t.animated}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.count,o=>(e.openBlock(),e.createElementBlock("div",{key:o,class:e.normalizeClass(n.$style.card)},[t.showThumb?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(n.$style.thumb)},null,2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(n.$style.body)},[e.createElementVNode("div",{class:e.normalizeClass([n.$style.line,n.$style.title])},null,2),e.createElementVNode("div",{class:e.normalizeClass([n.$style.line,n.$style.text])},null,2),e.createElementVNode("div",{class:e.normalizeClass([n.$style.line,n.$style.textShort])},null,2)],2)],2))),128))],2))}}),[["__cssModules",{$style:{grid:"_grid_a2uu0_2",card:"_card_a2uu0_9",animated:"_animated_a2uu0_16",thumb:"_thumb_a2uu0_16",line:"_line_a2uu0_17","skeleton-loading":"_skeleton-loading_a2uu0_1",body:"_body_a2uu0_39",title:"_title_a2uu0_52",text:"_text_a2uu0_57",textShort:"_textShort_a2uu0_61"}}]]),rs=["src","alt"],ss={name:"UserAvatar"},is=e.defineComponent({...ss,props:{name:{default:""},src:{default:""},size:{default:32},shape:{default:"circle"}},setup(t){const n=t,a=e.computed(()=>n.name?n.name.charAt(0).toUpperCase():"?"),o=e.computed(()=>!!n.src),l=e.computed(()=>{const r=n.size===24?"var(--avatar-size-sm, 24px)":n.size===32?"var(--avatar-size-md, 32px)":n.size===40?"var(--avatar-size-lg, 40px)":n.size===48?"var(--avatar-size-xl, 48px)":`${n.size}px`;return{width:r,height:r,fontSize:`${Math.max(n.size*.45,12)}px`}});return(r,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([r.$style.avatar,t.shape==="square"?r.$style.square:r.$style.circle]),style:e.normalizeStyle(l.value)},[o.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.src,alt:t.name,class:e.normalizeClass(r.$style.img),onError:i[0]||(i[0]=c=>r.$emit("error",c))},null,42,rs)):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(r.$style.initial)},e.toDisplayString(a.value),3))],6))}}),cs=L(is,[["__cssModules",{$style:{avatar:"_avatar_nft28_2",circle:"_circle_nft28_13",square:"_square_nft28_17",img:"_img_nft28_21",initial:"_initial_nft28_27"}}]]),ds=L(e.defineComponent({__name:"PageShell",props:{fill:{type:Boolean,default:!1}},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([n.$style.shell,t.fill&&n.$style.shellFill])},[e.renderSlot(n.$slots,"default")],2))}}),[["__cssModules",{$style:{shell:"_shell_1qlp7_2",shellFill:"_shellFill_1qlp7_10"}}]]),ps=L(e.defineComponent({__name:"PageHeader",props:{title:{},subtitle:{}},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("header",{class:e.normalizeClass(n.$style.header)},[e.createElementVNode("div",{class:e.normalizeClass(n.$style.titleRow)},[e.createElementVNode("div",{class:e.normalizeClass(n.$style.titleLeft)},[e.createElementVNode("h1",{class:e.normalizeClass(n.$style.title)},e.toDisplayString(t.title),3),t.subtitle?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(n.$style.subtitle)},e.toDisplayString(t.subtitle),3)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default")],2),n.$slots.actions||n.$slots.extra?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(n.$style.actions)},[e.renderSlot(n.$slots,"actions"),e.renderSlot(n.$slots,"extra")],2)):e.createCommentVNode("",!0)],2)],2))}}),[["__cssModules",{$style:{header:"_header_ect8w_2",titleRow:"_titleRow_ect8w_6",titleLeft:"_titleLeft_ect8w_14",title:"_title_ect8w_6",subtitle:"_subtitle_ect8w_26",actions:"_actions_ect8w_33"}}]]),fs=["onClick"],hs=L(e.defineComponent({__name:"BreadcrumbNav",props:{items:{}},emits:["navigate"],setup(t,{emit:n}){const a=n;return(o,l)=>t.items.length>0?(e.openBlock(),e.createElementBlock("nav",{key:0,class:e.normalizeClass(o.$style.breadcrumb),"aria-label":"面包屑"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(r,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`${r.label}-${i}`},[i>0?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(o.$style.separator),"aria-hidden":"true"},"/",2)):e.createCommentVNode("",!0),r.to&&i<t.items.length-1?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:e.normalizeClass(o.$style.link),onClick:c=>a("navigate",r.to)},e.toDisplayString(r.label),11,fs)):(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(o.$style.current)},e.toDisplayString(r.label),3))],64))),128))],2)):e.createCommentVNode("",!0)}}),[["__cssModules",{$style:{breadcrumb:"_breadcrumb_vy5ij_2",separator:"_separator_vy5ij_11",link:"_link_vy5ij_16",current:"_current_vy5ij_30"}}]]),ms={key:0,class:"apf-content-panel__head"},us={key:0,class:"apf-content-panel__title"},gs={key:1,class:"apf-content-panel__extra"},ks={class:"apf-content-panel__body"},ys=L(e.defineComponent({__name:"ContentPanel",props:{title:{},flush:{type:Boolean,default:!1},fill:{type:Boolean,default:!1}},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("section",{class:e.normalizeClass(["apf-content-panel",{"apf-content-panel--flush":t.flush,"apf-content-panel--fill":t.fill}])},[t.title||n.$slots.extra?(e.openBlock(),e.createElementBlock("header",ms,[t.title?(e.openBlock(),e.createElementBlock("span",us,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),n.$slots.extra?(e.openBlock(),e.createElementBlock("div",gs,[e.renderSlot(n.$slots,"extra",{},void 0,!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",ks,[e.renderSlot(n.$slots,"default",{},void 0,!0)])],2))}}),[["__scopeId","data-v-dd4cdf29"]]),bs={class:"apf-filter-bar"},_s={key:0,class:"apf-filter-bar__title"},ws={class:"apf-filter-bar__fields"},Cs={class:"apf-filter-bar__actions"},Es=L(e.defineComponent({__name:"FilterBar",props:{title:{}},emits:["search","reset"],setup(t,{emit:n}){const a=n;return(o,l)=>{const r=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",bs,[t.title?(e.openBlock(),e.createElementBlock("div",_s,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.createElementVNode("div",ws,[e.renderSlot(o.$slots,"default",{},void 0,!0)]),e.createElementVNode("div",Cs,[e.renderSlot(o.$slots,"actions",{},()=>[e.createVNode(r,{type:"primary",onClick:l[0]||(l[0]=i=>a("search"))},{default:e.withCtx(()=>[...l[2]||(l[2]=[e.createTextVNode("查询",-1)])]),_:1}),e.createVNode(r,{onClick:l[1]||(l[1]=i=>a("reset"))},{default:e.withCtx(()=>[...l[3]||(l[3]=[e.createTextVNode("重置",-1)])]),_:1})],!0)])])}}}),[["__scopeId","data-v-86218301"]]),xs=L(e.defineComponent({__name:"CardTable",props:{loading:{type:Boolean,default:!1},padding:{default:"var(--spacing-sm, 8px)"},borderless:{type:Boolean,default:!1}},setup(t){return(n,a)=>{const o=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["apf-card-table",{"apf-card-table--borderless":t.borderless}]),style:e.normalizeStyle({padding:t.padding})},[e.renderSlot(n.$slots,"default",{},void 0,!0)],6)),[[o,t.loading]])}}}),[["__scopeId","data-v-fbd06971"]]),$s={class:"apf-table-row-actions"},Ts=L(e.defineComponent({__name:"TableRowActions",props:{actions:{},collapseAt:{default:5},visibleCount:{default:2}},setup(t){const n=t,a=e.computed(()=>n.actions.length>=n.collapseAt),o=e.computed(()=>a.value?n.actions.slice(0,n.visibleCount):n.actions),l=e.computed(()=>a.value?n.actions.slice(n.visibleCount):[]);function r(i){var c;(c=n.actions.find(s=>s.key===i))==null||c.onClick()}return(i,c)=>{const s=e.resolveComponent("el-button"),d=e.resolveComponent("el-dropdown-item"),f=e.resolveComponent("el-dropdown-menu"),u=e.resolveComponent("el-dropdown");return e.openBlock(),e.createElementBlock("div",$s,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,h=>(e.openBlock(),e.createBlock(s,{key:h.key,link:"",type:h.type??"primary",size:"small",loading:h.loading,onClick:h.onClick},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.label),1)]),_:2},1032,["type","loading","onClick"]))),128)),l.value.length?(e.openBlock(),e.createBlock(u,{key:0,trigger:"click",onCommand:r},{dropdown:e.withCtx(()=>[e.createVNode(f,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,h=>(e.openBlock(),e.createBlock(d,{key:h.key,command:h.key,style:e.normalizeStyle(h.type==="danger"?{color:"var(--el-color-danger)"}:void 0)},{default:e.withCtx(()=>[h.icon?(e.openBlock(),e.createBlock(e.unref(le),{key:0,name:h.icon,size:14,style:{"margin-right":"6px"}},null,8,["name"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(h.label),1)]),_:2},1032,["command","style"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createVNode(s,{link:"",type:"primary",size:"small"},{default:e.withCtx(()=>[c[0]||(c[0]=e.createTextVNode(" 更多 ",-1)),e.createVNode(e.unref(le),{name:"arrow-down",size:12,style:{"margin-left":"2px"}})]),_:1})]),_:1})):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-06e2a9ce"]]),Bs={class:"apf-search-form"},Ss={class:"apf-search-form__row"},Vs={class:"apf-search-form__label"},Ns={class:"apf-search-form__actions"},As=L(e.defineComponent({__name:"SearchForm",props:{fields:{},modelValue:{default:()=>({})},collapsible:{type:Boolean,default:!0},defaultCollapsed:{type:Boolean,default:!1},defaultVisibleCount:{default:3}},emits:["update:modelValue","search","reset"],setup(t,{expose:n,emit:a}){const o=t,l=a,r=e.ref(o.defaultCollapsed),i=e.reactive({});function c(){var w;for(const g of Object.keys(i))o.fields.some(V=>V.key===g)||delete i[g];for(const g of o.fields)i[g.key]=((w=o.modelValue)==null?void 0:w[g.key])??(g.type==="daterange"?[]:"")}e.watch(()=>[o.fields,o.modelValue],c,{immediate:!0,deep:!0});const s=e.computed(()=>o.collapsible&&o.fields.length>o.defaultVisibleCount),d=e.computed(()=>!s.value||!r.value?o.fields:o.fields.slice(0,o.defaultVisibleCount));function f(){return{...i}}function u(){const w=f();l("update:modelValue",w),l("search",w)}function h(){for(const g of o.fields)i[g.key]=g.type==="daterange"?[]:"";const w=f();l("update:modelValue",w),l("reset")}return n({getValues:f,reset:h}),(w,g)=>{const V=e.resolveComponent("el-input"),x=e.resolveComponent("el-option"),T=e.resolveComponent("el-select"),$=e.resolveComponent("el-date-picker"),B=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",Bs,[e.createElementVNode("div",Ss,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,_=>(e.openBlock(),e.createElementBlock("div",{key:_.key,class:"apf-search-form__field"},[e.createElementVNode("label",Vs,e.toDisplayString(_.label),1),_.type==="input"?(e.openBlock(),e.createBlock(V,{key:0,modelValue:i[_.key],"onUpdate:modelValue":C=>i[_.key]=C,clearable:"",placeholder:_.placeholder||`请输入${_.label}`},null,8,["modelValue","onUpdate:modelValue","placeholder"])):_.type==="select"?(e.openBlock(),e.createBlock(T,{key:1,modelValue:i[_.key],"onUpdate:modelValue":C=>i[_.key]=C,clearable:"",placeholder:_.placeholder||`请选择${_.label}`,style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.options||[],C=>(e.openBlock(),e.createBlock(x,{key:String(C.value),label:C.label,value:C.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):_.type==="date"?(e.openBlock(),e.createBlock($,{key:2,modelValue:i[_.key],"onUpdate:modelValue":C=>i[_.key]=C,type:"date","value-format":"YYYY-MM-DD",placeholder:_.placeholder||`请选择${_.label}`,style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(e.openBlock(),e.createBlock($,{key:3,modelValue:i[_.key],"onUpdate:modelValue":C=>i[_.key]=C,type:"daterange","value-format":"YYYY-MM-DD","start-placeholder":"开始","end-placeholder":"结束",style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue"]))]))),128)),e.createElementVNode("div",Ns,[e.createVNode(B,{type:"primary",onClick:u},{default:e.withCtx(()=>[e.createVNode(e.unref(le),{name:"search",size:14,style:{"margin-right":"var(--spacing-xs, 4px)"}}),g[1]||(g[1]=e.createTextVNode(" 查询 ",-1))]),_:1}),e.createVNode(B,{onClick:h},{default:e.withCtx(()=>[...g[2]||(g[2]=[e.createTextVNode("重置",-1)])]),_:1}),s.value?(e.openBlock(),e.createBlock(B,{key:0,link:"",type:"primary",onClick:g[0]||(g[0]=_=>r.value=!r.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value?"展开":"收起"),1)]),_:1})):e.createCommentVNode("",!0)])])])}}}),[["__scopeId","data-v-8a00c2b6"]]),oa=L(e.defineComponent({inheritAttrs:!1,__name:"TruncatedTooltipText",props:{content:{},placement:{default:"top"},maxWidth:{default:360}},setup(t){const n=e.useAttrs();return(a,o)=>{const l=e.resolveComponent("el-tooltip");return e.openBlock(),e.createBlock(l,{content:t.content,placement:t.placement,"show-after":200,"popper-style":{maxWidth:`${t.maxWidth}px`,wordBreak:"break-word",whiteSpace:"pre-wrap"}},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["apf-truncated-text",e.unref(n).class]),style:e.normalizeStyle(e.unref(n).style)},[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.content),1)],!0)],6)]),_:3},8,["content","placement","popper-style"])}}}),[["__scopeId","data-v-04c4f36c"]]),zs={class:"apf-field-row__label"},Ms={key:0,class:"apf-field-row__required"},Ls=L(e.defineComponent({__name:"FieldRow",props:{label:{},textarea:{type:Boolean},hint:{},required:{type:Boolean}},setup(t){const n=t,a=e.computed(()=>{var o;return(o=n.hint)!=null&&o.trim()?`${n.label}
|
|
2
|
+
${n.hint.trim()}`:n.label});return(o,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["apf-field-row",{"apf-field-row--textarea":t.textarea}])},[e.createElementVNode("div",zs,[t.required?(e.openBlock(),e.createElementBlock("span",Ms,"*")):e.createCommentVNode("",!0),e.createVNode(e.unref(oa),{content:a.value,class:"apf-field-row__label-text"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:1},8,["content"])]),e.createElementVNode("div",{class:e.normalizeClass(["apf-field-row__control",{"apf-field-row__control--textarea":t.textarea}])},[e.renderSlot(o.$slots,"default",{},void 0,!0)],2)],2))}}),[["__scopeId","data-v-1e6441a9"]]),Is={class:"apf-hint-trigger","aria-label":"提示"},Rs={class:"apf-hint-content"},Ds=L(e.defineComponent({__name:"HintText",props:{width:{default:240}},setup(t){return(n,a)=>{const o=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(o,{placement:"top",width:t.width,trigger:"hover","show-after":200,"popper-style":{maxWidth:"320px"}},{reference:e.withCtx(()=>[e.createElementVNode("span",Is,[e.createVNode(e.unref(le),{name:"question-filled",size:14})])]),default:e.withCtx(()=>[e.createElementVNode("div",Rs,[e.renderSlot(n.$slots,"default",{},void 0,!0)])]),_:3},8,["width"])}}}),[["__scopeId","data-v-74635820"]]),Ps={class:"apf-section-toggle"},Os={class:"apf-section-toggle__label"},Hs={key:0,class:"apf-section-toggle__count"},Fs={class:"apf-section-toggle__body"},Us=L(e.defineComponent({__name:"SectionToggle",props:{title:{},count:{},defaultOpen:{type:Boolean,default:!0}},setup(t){const n=t,a=e.ref(n.defaultOpen);function o(){a.value=!a.value}return(l,r)=>(e.openBlock(),e.createElementBlock("div",Ps,[e.createElementVNode("button",{type:"button",class:"apf-section-toggle__header",onClick:o},[e.createVNode(e.unref(le),{name:a.value?"arrow-down":"arrow-right",size:12,class:"apf-section-toggle__arrow"},null,8,["name"]),e.createElementVNode("span",Os,e.toDisplayString(t.title),1),t.count!==void 0?(e.openBlock(),e.createElementBlock("span",Hs,e.toDisplayString(t.count),1)):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("div",Fs,[e.renderSlot(l.$slots,"default",{},void 0,!0)],512),[[e.vShow,a.value]])]))}}),[["__scopeId","data-v-dc38631a"]]),js={class:"apf-loading-dots","aria-label":"加载中",role:"status"},qs=L(e.defineComponent({__name:"LoadingDots",props:{size:{}},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("span",js,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,o=>e.createElementVNode("span",{key:o,class:"apf-loading-dots__dot",style:e.normalizeStyle(t.size?{width:t.size+"px",height:t.size+"px"}:void 0)},null,4)),64))]))}}),[["__scopeId","data-v-df891291"]]),Gs={class:"apf-json-card__body"},Ws={class:"apf-json-card__title"},Ys={class:"apf-json-card__summary"},Zs=L(e.defineComponent({__name:"JsonCard",props:{title:{},data:{},content:{},type:{default:"json"}},emits:["click","openDetail"],setup(t,{emit:n}){const a=t,o=n,l=e.computed(()=>{if(a.data!==void 0)return a.data;if(!a.content)return null;try{return JSON.parse(a.content)}catch{return null}}),r=e.computed(()=>{const s=l.value;if(s==null)return"JSON 数据";if(Array.isArray(s))return`${s.length} 个元素`;if(typeof s=="object"){const d=s;if(Array.isArray(d.nodes)){const u=Array.isArray(d.edges)?d.edges.length:0;return`${d.nodes.length} 个节点, ${u} 条连线`}const f=Object.keys(d);return`${f.length} 个字段${f.length?` (${f.slice(0,3).join(", ")}${f.length>3?"...":""})`:""}`}return String(s)}),i=e.computed(()=>a.type==="schema"?"document":a.type==="flow"?"connection":"files");function c(){o("click"),o("openDetail")}return(s,d)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:"apf-json-card",onClick:c},[e.createVNode(e.unref(le),{name:i.value,size:20,class:"apf-json-card__icon"},null,8,["name"]),e.createElementVNode("div",Gs,[e.createElementVNode("strong",Ws,e.toDisplayString(t.title),1),e.createElementVNode("span",Ys,e.toDisplayString(r.value),1)])]))}}),[["__scopeId","data-v-059cffad"]]),Ks={class:"apf-json-detail"},Qs=L(e.defineComponent({__name:"JsonDetailDialog",props:{modelValue:{type:Boolean},title:{},data:{},content:{}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,l=e.computed(()=>{if(a.content)try{return JSON.stringify(JSON.parse(a.content),null,2)}catch{return a.content}try{return JSON.stringify(a.data??null,null,2)}catch{return String(a.data)}});return(r,i)=>{const c=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(e.unref(rt),{"model-value":t.modelValue,title:t.title||"JSON 详情",width:"720px","show-fullscreen-btn":!0,"onUpdate:modelValue":i[1]||(i[1]=s=>o("update:modelValue",s))},{footer:e.withCtx(()=>[e.createVNode(c,{type:"primary",onClick:i[0]||(i[0]=s=>o("update:modelValue",!1))},{default:e.withCtx(()=>[...i[2]||(i[2]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("pre",Ks,e.toDisplayString(l.value),1)]),_:1},8,["model-value","title"])}}}),[["__scopeId","data-v-ea543e4a"]]),Xs={class:"apf-schema-lite-preview"},Js=L(e.defineComponent({__name:"SchemaLitePreview",props:{fields:{},modelValue:{default:()=>({})},labelWidth:{default:"100px"}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,o=n,l=e.reactive({});function r(){var c;for(const s of Object.keys(l))a.fields.some(d=>d.key===s)||delete l[s];for(const s of a.fields){const d=(c=a.modelValue)==null?void 0:c[s.key];d!==void 0?l[s.key]=d:s.key in l||(l[s.key]=s.type==="switch"?!1:s.type==="number"?void 0:"")}}e.watch(()=>[a.fields,a.modelValue],r,{immediate:!0,deep:!0});function i(){o("update:modelValue",{...l})}return(c,s)=>{const d=e.resolveComponent("el-input"),f=e.resolveComponent("el-input-number"),u=e.resolveComponent("el-option"),h=e.resolveComponent("el-select"),w=e.resolveComponent("el-switch"),g=e.resolveComponent("el-date-picker"),V=e.resolveComponent("el-form-item"),x=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",Xs,[e.createVNode(x,{model:l,"label-width":t.labelWidth,onChange:i},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fields,T=>(e.openBlock(),e.createBlock(V,{key:T.key,label:T.label},{default:e.withCtx(()=>[T.type==="input"?(e.openBlock(),e.createBlock(d,{key:0,modelValue:l[T.key],"onUpdate:modelValue":$=>l[T.key]=$,placeholder:T.placeholder,disabled:T.disabled,onChange:i},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled"])):T.type==="textarea"?(e.openBlock(),e.createBlock(d,{key:1,modelValue:l[T.key],"onUpdate:modelValue":$=>l[T.key]=$,type:"textarea",rows:3,placeholder:T.placeholder,disabled:T.disabled,onChange:i},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled"])):T.type==="number"?(e.openBlock(),e.createBlock(f,{key:2,modelValue:l[T.key],"onUpdate:modelValue":$=>l[T.key]=$,disabled:T.disabled,onChange:i},null,8,["modelValue","onUpdate:modelValue","disabled"])):T.type==="select"?(e.openBlock(),e.createBlock(h,{key:3,modelValue:l[T.key],"onUpdate:modelValue":$=>l[T.key]=$,placeholder:T.placeholder||`请选择${T.label}`,disabled:T.disabled,style:{width:"100%"},onChange:i},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.options||[],$=>(e.openBlock(),e.createBlock(u,{key:String($.value),label:$.label,value:$.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","disabled"])):T.type==="switch"?(e.openBlock(),e.createBlock(w,{key:4,modelValue:l[T.key],"onUpdate:modelValue":$=>l[T.key]=$,disabled:T.disabled,onChange:i},null,8,["modelValue","onUpdate:modelValue","disabled"])):(e.openBlock(),e.createBlock(g,{key:5,modelValue:l[T.key],"onUpdate:modelValue":$=>l[T.key]=$,type:"date","value-format":"YYYY-MM-DD",placeholder:T.placeholder||`请选择${T.label}`,disabled:T.disabled,style:{width:"100%"},onChange:i},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled"]))]),_:2},1032,["label"]))),128))]),_:1},8,["model","label-width"])])}}}),[["__scopeId","data-v-1d125a82"]]);function Me(t){const n=(t.mimetype||"").toLowerCase(),a=(t.filename||"").toLowerCase();return n.startsWith("image/")||/\.(png|jpe?g|gif|webp|bmp)$/.test(a)}function Ye(t){const n=(t.mimetype||"").toLowerCase(),a=(t.filename||"").toLowerCase();return n.includes("pdf")||a.endsWith(".pdf")}function la(t){const n=(t.mimetype||"").toLowerCase(),a=(t.filename||"").toLowerCase();return a.endsWith(".docx")||a.endsWith(".doc")||a.endsWith(".xlsx")||a.endsWith(".xls")||n.includes("word")||n.includes("sheet")||n.includes("excel")}function vs(t){return Me(t)||Ye(t)}function Wt(t){const n=(t.filename||"").toLowerCase(),a=(t.mimetype||"").toLowerCase();return Ye(t)?"PDF":n.endsWith(".docx")||n.endsWith(".doc")||a.includes("word")?"Word":n.endsWith(".xlsx")||n.endsWith(".xls")||a.includes("sheet")||a.includes("excel")?"Excel":n.endsWith(".csv")?"CSV":n.endsWith(".txt")||n.endsWith(".md")?"文本":n.endsWith(".json")?"JSON":"文件"}function mt(t){return t==null||t<0?"":t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}const ei={class:"apf-doc-preview"},ti={key:0,class:"apf-doc-preview__loading"},ni={key:1,class:"apf-doc-preview__error"},ai={key:0,class:"apf-doc-preview__meta"},oi={key:1,class:"apf-doc-preview__actions"},li={key:2,class:"apf-doc-preview__viewer"},ri=["src","title"],si={key:3,class:"apf-doc-preview__viewer"},ii=["src","title"],ci={class:"apf-doc-preview__text"},ra=L(e.defineComponent({__name:"DocumentPreviewPanel",props:{filename:{},mimetype:{},size:{},chunks:{default:()=>[]},extractionMethod:{},hasOriginalFile:{type:Boolean,default:!1},pdfUrl:{},excelUrl:{},loading:{type:Boolean,default:!1},error:{default:null}},emits:["download","close"],setup(t,{emit:n}){const a=t,o=n,l=e.computed(()=>{const u=(a.mimetype||"").toLowerCase(),h=a.filename.toLowerCase();return u.includes("pdf")||h.endsWith(".pdf")||!!a.pdfUrl}),r=e.computed(()=>{const u=(a.mimetype||"").toLowerCase(),h=a.filename.toLowerCase();return!!a.excelUrl||u.includes("sheet")||u.includes("excel")||h.endsWith(".xls")||h.endsWith(".xlsx")}),i=e.computed(()=>{var h;const u=[];return a.mimetype&&u.push(a.mimetype),a.size!=null&&u.push(mt(a.size)||`${a.size} bytes`),(h=a.chunks)!=null&&h.length&&u.push(`${a.chunks.length} 块`),a.extractionMethod&&u.push(a.extractionMethod),u.join(" · ")}),c=e.computed(()=>{var u;return(u=a.chunks)!=null&&u.length?a.chunks.map((h,w)=>`${h.index!=null?`[${h.index}]`:`[${w+1}]`}
|
|
3
3
|
${h.text}`).join(`
|
|
4
4
|
|
|
5
|
-
`):""}),s=e.computed(()=>!!a.pdfUrl&&l.value),d=e.computed(()=>!!a.excelUrl&&r.value&&!s.value),f=e.computed(()=>!s.value&&!d.value);return(u,h)=>{const x=e.resolveComponent("el-button"),g=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock("div",Js,[t.loading?(e.openBlock(),e.createElementBlock("div",vs,"加载中...")):t.error?(e.openBlock(),e.createElementBlock("div",ei,e.toDisplayString(t.error),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[i.value?(e.openBlock(),e.createElementBlock("div",ti,e.toDisplayString(i.value),1)):e.createCommentVNode("",!0),t.hasOriginalFile?(e.openBlock(),e.createElementBlock("div",ni,[e.createVNode(x,{size:"small",type:"primary",plain:"",onClick:h[0]||(h[0]=A=>o("download"))},{default:e.withCtx(()=>[...h[1]||(h[1]=[e.createTextVNode(" 下载原文件 ",-1)])]),_:1})])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("div",ai,[e.renderSlot(u.$slots,"pdf",{url:t.pdfUrl},()=>[e.createElementVNode("iframe",{class:"apf-doc-preview__frame",src:t.pdfUrl,title:t.filename},null,8,oi)],!0)])):d.value?(e.openBlock(),e.createElementBlock("div",li,[e.renderSlot(u.$slots,"excel",{url:t.excelUrl},()=>[e.createElementVNode("iframe",{class:"apf-doc-preview__frame",src:t.excelUrl,title:t.filename},null,8,ri)],!0)])):f.value?(e.openBlock(),e.createBlock(g,{key:4,class:"apf-doc-preview__scroll"},{default:e.withCtx(()=>[e.createElementVNode("pre",si,e.toDisplayString(c.value||"暂无预览内容"),1)]),_:1})):e.createCommentVNode("",!0)],64))])}}}),[["__scopeId","data-v-384b2e70"]]),ii=e.defineComponent({__name:"DocumentPreviewDrawer",props:{modelValue:{type:Boolean},filename:{default:""},mimetype:{},size:{},chunks:{default:()=>[]},extractionMethod:{},hasOriginalFile:{type:Boolean,default:!1},pdfUrl:{},excelUrl:{},loading:{type:Boolean,default:!1},error:{default:null},sizeDrawer:{default:"50%"}},emits:["update:modelValue","download","close"],setup(t,{emit:n}){const a=n;function o(){a("update:modelValue",!1),a("close")}return(l,r)=>{const i=e.resolveComponent("el-drawer");return e.openBlock(),e.createBlock(i,{"model-value":t.modelValue,title:t.filename||"文档预览",size:t.sizeDrawer,"append-to-body":"","onUpdate:modelValue":r[1]||(r[1]=c=>a("update:modelValue",c)),onClose:o},{default:e.withCtx(()=>[e.createVNode(ra,{filename:t.filename||"文档预览",mimetype:t.mimetype,size:t.size,chunks:t.chunks,"extraction-method":t.extractionMethod,"has-original-file":t.hasOriginalFile,"pdf-url":t.pdfUrl,"excel-url":t.excelUrl,loading:t.loading,error:t.error,onDownload:r[0]||(r[0]=c=>a("download")),onClose:o},e.createSlots({_:2},[l.$slots.pdf?{name:"pdf",fn:e.withCtx(c=>[e.renderSlot(l.$slots,"pdf",e.normalizeProps(e.guardReactiveProps(c)))]),key:"0"}:void 0,l.$slots.excel?{name:"excel",fn:e.withCtx(c=>[e.renderSlot(l.$slots,"excel",e.normalizeProps(e.guardReactiveProps(c)))]),key:"1"}:void 0]),1032,["filename","mimetype","size","chunks","extraction-method","has-original-file","pdf-url","excel-url","loading","error"])]),_:3},8,["model-value","title","size"])}}});function Yt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var xe=Yt();function sa(t){xe=t}var $e={exec:()=>null};function Le(t){let n=[];return a=>{let o=Math.max(0,Math.min(3,a-1)),l=n[o];return l||(l=t(o),n[o]=l),l}}function I(t,n=""){let a=typeof t=="string"?t:t.source,o={replace:(l,r)=>{let i=typeof r=="string"?r:r.source;return i=i.replace(Q.caret,"$1"),a=a.replace(l,i),o},getRegex:()=>new RegExp(a,n)};return o}var ci=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),Q={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Le(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Le(t=>new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Le(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Le(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Le(t=>new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Le(t=>new RegExp(`^ {0,${t}}>`))},di=/^(?:[ \t]*(?:\n|$))+/,pi=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,fi=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ze=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,hi=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Zt=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ia=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ca=I(ia).replace(/bull/g,Zt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),mi=I(ia).replace(/bull/g,Zt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Kt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,ui=/^[^\n]+/,Qt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,gi=I(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Qt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ki=I(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Zt).getRegex(),ut="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Xt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,yi=I("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Xt).replace("tag",ut).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),da=t=>I(Kt).replace("hr",Ze).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ut).getRegex(),bi=da(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),_i=da(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),wi=I(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",_i).getRegex(),Jt={blockquote:wi,code:pi,def:gi,fences:fi,heading:hi,hr:Ze,html:yi,lheading:ca,list:ki,newline:di,paragraph:bi,table:$e,text:ui},pa=I("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ze).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ut).getRegex(),Ci={...Jt,lheading:mi,table:pa,paragraph:I(Kt).replace("hr",Ze).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",pa).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ut).getRegex()},Ei={...Jt,html:I(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Xt).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:$e,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:I(Kt).replace("hr",Ze).replace("heading",` *#{1,6} *[^
|
|
6
|
-
]`).replace("lheading",ca).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},
|
|
5
|
+
`):""}),s=e.computed(()=>!!a.pdfUrl&&l.value),d=e.computed(()=>!!a.excelUrl&&r.value&&!s.value),f=e.computed(()=>!s.value&&!d.value);return(u,h)=>{const w=e.resolveComponent("el-button"),g=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock("div",ei,[t.loading?(e.openBlock(),e.createElementBlock("div",ti,"加载中...")):t.error?(e.openBlock(),e.createElementBlock("div",ni,e.toDisplayString(t.error),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[i.value?(e.openBlock(),e.createElementBlock("div",ai,e.toDisplayString(i.value),1)):e.createCommentVNode("",!0),t.hasOriginalFile?(e.openBlock(),e.createElementBlock("div",oi,[e.createVNode(w,{size:"small",type:"primary",plain:"",onClick:h[0]||(h[0]=V=>o("download"))},{default:e.withCtx(()=>[...h[1]||(h[1]=[e.createTextVNode(" 下载原文件 ",-1)])]),_:1})])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("div",li,[e.renderSlot(u.$slots,"pdf",{url:t.pdfUrl},()=>[e.createElementVNode("iframe",{class:"apf-doc-preview__frame",src:t.pdfUrl,title:t.filename},null,8,ri)],!0)])):d.value?(e.openBlock(),e.createElementBlock("div",si,[e.renderSlot(u.$slots,"excel",{url:t.excelUrl},()=>[e.createElementVNode("iframe",{class:"apf-doc-preview__frame",src:t.excelUrl,title:t.filename},null,8,ii)],!0)])):f.value?(e.openBlock(),e.createBlock(g,{key:4,class:"apf-doc-preview__scroll"},{default:e.withCtx(()=>[e.createElementVNode("pre",ci,e.toDisplayString(c.value||"暂无预览内容"),1)]),_:1})):e.createCommentVNode("",!0)],64))])}}}),[["__scopeId","data-v-384b2e70"]]),di=e.defineComponent({__name:"DocumentPreviewDrawer",props:{modelValue:{type:Boolean},filename:{default:""},mimetype:{},size:{},chunks:{default:()=>[]},extractionMethod:{},hasOriginalFile:{type:Boolean,default:!1},pdfUrl:{},excelUrl:{},loading:{type:Boolean,default:!1},error:{default:null},sizeDrawer:{default:"50%"}},emits:["update:modelValue","download","close"],setup(t,{emit:n}){const a=n;function o(){a("update:modelValue",!1),a("close")}return(l,r)=>{const i=e.resolveComponent("el-drawer");return e.openBlock(),e.createBlock(i,{"model-value":t.modelValue,title:t.filename||"文档预览",size:t.sizeDrawer,"append-to-body":"","onUpdate:modelValue":r[1]||(r[1]=c=>a("update:modelValue",c)),onClose:o},{default:e.withCtx(()=>[e.createVNode(ra,{filename:t.filename||"文档预览",mimetype:t.mimetype,size:t.size,chunks:t.chunks,"extraction-method":t.extractionMethod,"has-original-file":t.hasOriginalFile,"pdf-url":t.pdfUrl,"excel-url":t.excelUrl,loading:t.loading,error:t.error,onDownload:r[0]||(r[0]=c=>a("download")),onClose:o},e.createSlots({_:2},[l.$slots.pdf?{name:"pdf",fn:e.withCtx(c=>[e.renderSlot(l.$slots,"pdf",e.normalizeProps(e.guardReactiveProps(c)))]),key:"0"}:void 0,l.$slots.excel?{name:"excel",fn:e.withCtx(c=>[e.renderSlot(l.$slots,"excel",e.normalizeProps(e.guardReactiveProps(c)))]),key:"1"}:void 0]),1032,["filename","mimetype","size","chunks","extraction-method","has-original-file","pdf-url","excel-url","loading","error"])]),_:3},8,["model-value","title","size"])}}}),pi={class:"apf-pdf-preview"},fi={key:0,class:"apf-pdf-preview__state"},hi={key:1,class:"apf-pdf-preview__state apf-pdf-preview__state--error"},mi=["src","title"],ui={key:3,class:"apf-pdf-preview__state"},gi=L(e.defineComponent({__name:"PdfPreviewCard",props:{url:{},title:{default:"PDF 预览"},loading:{type:Boolean,default:!1},error:{default:null},minHeight:{default:"320px"}},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("div",pi,[t.loading?(e.openBlock(),e.createElementBlock("div",fi,"加载中...")):t.error?(e.openBlock(),e.createElementBlock("div",hi,e.toDisplayString(t.error),1)):t.url?e.renderSlot(n.$slots,"default",{url:t.url},()=>[e.createElementVNode("iframe",{class:"apf-pdf-preview__frame",src:t.url,title:t.title,style:e.normalizeStyle({minHeight:t.minHeight})},null,12,mi)],!0,2):(e.openBlock(),e.createElementBlock("div",ui,"未提供 PDF URL"))]))}}),[["__scopeId","data-v-086a9d46"]]),ki={class:"apf-excel-preview"},yi={key:0,class:"apf-excel-preview__toolbar"},bi={class:"apf-excel-preview__tabs"},_i=["onClick"],wi={key:0,class:"apf-excel-preview__info"},Ci={key:0},Ei={key:1,class:"apf-excel-preview__state"},xi={key:2,class:"apf-excel-preview__state apf-excel-preview__state--error"},$i={key:3,class:"apf-excel-preview__table-wrap"},Ti={class:"apf-excel-preview__table"},Bi={class:"apf-excel-preview__row-num"},Si={key:4,class:"apf-excel-preview__state"},Vi=L(e.defineComponent({__name:"ExcelPreviewCard",props:{sheetNames:{default:()=>[]},modelValue:{default:""},headers:{default:()=>[]},rows:{default:()=>[]},totalRows:{default:0},maxPreviewRows:{default:100},loading:{type:Boolean,default:!1},error:{default:null}},emits:["update:modelValue"],setup(t,{emit:n}){const a=n;return(o,l)=>(e.openBlock(),e.createElementBlock("div",ki,[t.sheetNames.length?(e.openBlock(),e.createElementBlock("div",yi,[e.createElementVNode("div",bi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.sheetNames,r=>(e.openBlock(),e.createElementBlock("button",{key:r,type:"button",class:e.normalizeClass(["apf-excel-preview__tab",{"apf-excel-preview__tab--active":t.modelValue===r}]),onClick:i=>a("update:modelValue",r)},e.toDisplayString(r),11,_i))),128))]),t.totalRows>0?(e.openBlock(),e.createElementBlock("div",wi,[e.createTextVNode(e.toDisplayString(t.totalRows)+" 行 ",1),t.totalRows>t.maxPreviewRows?(e.openBlock(),e.createElementBlock("span",Ci,"(显示前 "+e.toDisplayString(t.maxPreviewRows)+" 行)",1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.loading?(e.openBlock(),e.createElementBlock("div",Ei,"加载中...")):t.error?(e.openBlock(),e.createElementBlock("div",xi,e.toDisplayString(t.error),1)):t.headers.length?(e.openBlock(),e.createElementBlock("div",$i,[e.createElementVNode("table",Ti,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[l[0]||(l[0]=e.createElementVNode("th",{class:"apf-excel-preview__row-num"},"#",-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.headers,(r,i)=>(e.openBlock(),e.createElementBlock("th",{key:i},e.toDisplayString(r||`列${i+1}`),1))),128))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.rows,(r,i)=>(e.openBlock(),e.createElementBlock("tr",{key:i},[e.createElementVNode("td",Bi,e.toDisplayString(i+1),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(c,s)=>(e.openBlock(),e.createElementBlock("td",{key:s},e.toDisplayString(c),1))),128))]))),128))])])])):(e.openBlock(),e.createElementBlock("div",Si,"无数据"))]))}}),[["__scopeId","data-v-05ac2e05"]]);function Yt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var xe=Yt();function sa(t){xe=t}var $e={exec:()=>null};function Le(t){let n=[];return a=>{let o=Math.max(0,Math.min(3,a-1)),l=n[o];return l||(l=t(o),n[o]=l),l}}function I(t,n=""){let a=typeof t=="string"?t:t.source,o={replace:(l,r)=>{let i=typeof r=="string"?r:r.source;return i=i.replace(Q.caret,"$1"),a=a.replace(l,i),o},getRegex:()=>new RegExp(a,n)};return o}var Ni=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),Q={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Le(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Le(t=>new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Le(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Le(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Le(t=>new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Le(t=>new RegExp(`^ {0,${t}}>`))},Ai=/^(?:[ \t]*(?:\n|$))+/,zi=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Mi=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ze=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Li=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Zt=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ia=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ca=I(ia).replace(/bull/g,Zt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ii=I(ia).replace(/bull/g,Zt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Kt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Ri=/^[^\n]+/,Qt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Di=I(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Qt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Pi=I(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Zt).getRegex(),ut="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Xt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Oi=I("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Xt).replace("tag",ut).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),da=t=>I(Kt).replace("hr",Ze).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ut).getRegex(),Hi=da(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Fi=da(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Ui=I(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Fi).getRegex(),Jt={blockquote:Ui,code:zi,def:Di,fences:Mi,heading:Li,hr:Ze,html:Oi,lheading:ca,list:Pi,newline:Ai,paragraph:Hi,table:$e,text:Ri},pa=I("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ze).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ut).getRegex(),ji={...Jt,lheading:Ii,table:pa,paragraph:I(Kt).replace("hr",Ze).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",pa).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ut).getRegex()},qi={...Jt,html:I(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Xt).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:$e,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:I(Kt).replace("hr",Ze).replace("heading",` *#{1,6} *[^
|
|
6
|
+
]`).replace("lheading",ca).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Gi=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Wi=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,fa=/^( {2,}|\\)\n(?!\s*$)/,Yi=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ge=/[\p{P}\p{S}]/u,Ie=/[\s\p{P}\p{S}]/u,Ke=/[^\s\p{P}\p{S}]/u,Zi=I(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ie).getRegex(),Ki=/[\p{Pi}\p{Ps}"']/u,ha=/(?!~)[\p{P}\p{S}]/u,Qi=/(?!~)[\s\p{P}\p{S}]/u,Xi=/(?:[^\s\p{P}\p{S}]|~)/u,Ji=I(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Ni?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ma=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,vi=I(ma,"u").replace(/punct/g,ge).getRegex(),ec=I(ma,"u").replace(/punct/g,ha).getRegex(),tc=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,nc=I(tc,"u").replace(/openQuote/g,Ki).replace(/punct/g,ge).getRegex(),ua="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ac=I(ua,"gu").replace(/notPunctSpace/g,Ke).replace(/punctSpace/g,Ie).replace(/punct/g,ge).getRegex(),oc=I(ua,"gu").replace(/notPunctSpace/g,Xi).replace(/punctSpace/g,Qi).replace(/punct/g,ha).getRegex(),lc="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",rc=I(lc,"gu").replace(/notPunctSpace/g,Ke).replace(/punctSpace/g,Ie).replace(/punct/g,ge).getRegex(),sc=I("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ke).replace(/punctSpace/g,Ie).replace(/punct/g,ge).getRegex(),ic="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",cc=I(ic,"gu").replace(/notPunctSpace/g,Ke).replace(/punctSpace/g,Ie).replace(/punct/g,ge).getRegex(),dc=I(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ge).getRegex(),pc="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",fc=I(pc,"gu").replace(/notPunctSpace/g,Ke).replace(/punctSpace/g,Ie).replace(/punct/g,ge).getRegex(),hc=I(/\\(punct)/,"gu").replace(/punct/g,ge).getRegex(),mc=I(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),uc=I(Xt).replace("(?:-->|$)","-->").getRegex(),gc=I("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",uc).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),gt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,kc=I(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",gt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ga=I(/^!?\[(label)\]\[(ref)\]/).replace("label",gt).replace("ref",Qt).getRegex(),ka=I(/^!?\[(ref)\](?:\[\])?/).replace("ref",Qt).getRegex(),yc=I("reflink|nolink(?!\\()","g").replace("reflink",ga).replace("nolink",ka).getRegex(),ya=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,vt={_backpedal:$e,anyPunctuation:hc,autolink:mc,blockSkip:Ji,br:fa,code:Wi,del:$e,delLDelim:$e,delRDelim:$e,emStrongLDelim:vi,emStrongRDelimAst:ac,emStrongRDelimUnd:sc,escape:Gi,link:kc,nolink:ka,punctuation:Zi,reflink:ga,reflinkSearch:yc,tag:gc,text:Yi,url:$e},bc={...vt,emStrongLDelim:nc,emStrongRDelimAst:rc,emStrongRDelimUnd:cc,link:I(/^!?\[(label)\]\((.*?)\)/).replace("label",gt).getRegex(),reflink:I(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",gt).getRegex()},en={...vt,emStrongRDelimAst:oc,emStrongLDelim:ec,delLDelim:dc,delRDelim:fc,url:I(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ya).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:I(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ya).getRegex()},_c={...en,br:I(fa).replace("{2,}","*").getRegex(),text:I(en.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},kt={normal:Jt,gfm:ji,pedantic:qi},Qe={normal:vt,gfm:en,breaks:_c,pedantic:bc},wc={"&":"&","<":"<",">":">",'"':""","'":"'"},ba=t=>wc[t];function fe(t,n){if(n){if(Q.escapeTest.test(t))return t.replace(Q.escapeReplace,ba)}else if(Q.escapeTestNoEncode.test(t))return t.replace(Q.escapeReplaceNoEncode,ba);return t}function _a(t){try{t=encodeURI(t).replace(Q.percentDecode,"%")}catch{return null}return t}function wa(t,n){var r;let a=t.replace(Q.findPipe,(i,c,s)=>{let d=!1,f=c;for(;--f>=0&&s[f]==="\\";)d=!d;return d?"|":" |"}),o=a.split(Q.splitPipe),l=0;if(o[0].trim()||o.shift(),o.length>0&&!((r=o.at(-1))!=null&&r.trim())&&o.pop(),n)if(o.length>n)o.splice(n);else for(;o.length<n;)o.push("");for(;l<o.length;l++)o[l]=o[l].trim().replace(Q.slashPipe,"|");return o}function ye(t,n,a){let o=t.length;if(o===0)return"";let l=0;for(;l<o&&t.charAt(o-l-1)===n;)l++;return t.slice(0,o-l)}function Ca(t){let n=t.split(`
|
|
7
7
|
`),a=n.length-1;for(;a>=0&&Q.blankLine.test(n[a]);)a--;return n.length-a<=2?t:n.slice(0,a+1).join(`
|
|
8
|
-
`)}function
|
|
8
|
+
`)}function Cc(t,n){if(t.indexOf(n[1])===-1)return-1;let a=0;for(let o=0;o<t.length;o++)if(t[o]==="\\")o++;else if(t[o]===n[0])a++;else if(t[o]===n[1]&&(a--,a<0))return o;return a>0?-2:-1}function Ec(t,n=0){let a=n,o="";for(let l of t)if(l===" "){let r=4-a%4;o+=" ".repeat(r),a+=r}else o+=l,a++;return o}function Ea(t,n,a,o,l){let r=n.href,i=n.title||null,c=t[1].replace(l.other.outputLinkReplace,"$1"),s=t[0].charAt(0)==="!";o.state.inLink=!0;let d=o.state.linkEmitted,f=o.state.inRawBlock;o.state.linkEmitted=!1;let u=o.inlineTokens(c),h=o.state.linkEmitted;if(o.state.linkEmitted=d,o.state.inLink=!1,!s){if(h){o.state.inRawBlock=f;return}o.state.linkEmitted=!0}return{type:s?"image":"link",raw:a,href:r,title:i,text:c,tokens:u}}function xc(t,n,a){let o=t.match(a.other.indentCodeCompensation);if(o===null)return n;let l=o[1];return n.split(`
|
|
9
9
|
`).map(r=>{let i=r.match(a.other.beginningSpace);if(i===null)return r;let[c]=i;return c.length>=l.length?r.slice(l.length):r}).join(`
|
|
10
|
-
`)}var yt=class{constructor(t){P(this,"options");P(this,"rules");P(this,"lexer");this.options=t||xe}space(t){let n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){let n=this.rules.block.code.exec(t);if(n){let a=this.options.pedantic?n[0]:Ca(n[0]),o=a.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:a,codeBlockStyle:"indented",text:o}}}fences(t){let n=this.rules.block.fences.exec(t);if(n){let a=n[0],o=
|
|
10
|
+
`)}var yt=class{constructor(t){P(this,"options");P(this,"rules");P(this,"lexer");this.options=t||xe}space(t){let n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){let n=this.rules.block.code.exec(t);if(n){let a=this.options.pedantic?n[0]:Ca(n[0]),o=a.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:a,codeBlockStyle:"indented",text:o}}}fences(t){let n=this.rules.block.fences.exec(t);if(n){let a=n[0],o=xc(a,n[3]||"",this.rules);return{type:"code",raw:a,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:o}}}heading(t){let n=this.rules.block.heading.exec(t);if(n){let a=n[2].trim();if(this.rules.other.endingHash.test(a)){let o=ye(a,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(a=o.trim())}return{type:"heading",raw:ye(n[0],`
|
|
11
11
|
`),depth:n[1].length,text:a,tokens:this.lexer.inline(a)}}}hr(t){let n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:ye(n[0],`
|
|
12
12
|
`)}}blockquote(t){let n=this.rules.block.blockquote.exec(t);if(n){let a=ye(n[0],`
|
|
13
13
|
`).split(`
|
|
@@ -15,25 +15,25 @@ ${h.text}`).join(`
|
|
|
15
15
|
`),f=d.replace(this.rules.other.blockquoteSetextReplace,`
|
|
16
16
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
|
|
17
17
|
${d}`:d,l=l?`${l}
|
|
18
|
-
${f}`:f;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,r,!0),this.lexer.state.top=u,a.length===0)break;let h=r.at(-1);if((h==null?void 0:h.type)==="code")break;if((h==null?void 0:h.type)==="blockquote"){let
|
|
19
|
-
`),
|
|
20
|
-
`+g.replace(this.rules.other.blockquoteSetextReplace2,"")
|
|
21
|
-
${g}`,l=l.substring(0,l.length-
|
|
18
|
+
${f}`:f;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,r,!0),this.lexer.state.top=u,a.length===0)break;let h=r.at(-1);if((h==null?void 0:h.type)==="code")break;if((h==null?void 0:h.type)==="blockquote"){let w=h,g=a.join(`
|
|
19
|
+
`),V=w.raw+`
|
|
20
|
+
`+g.replace(this.rules.other.blockquoteSetextReplace2,""),x=this.blockquote(V);r[r.length-1]=x,o=`${o}
|
|
21
|
+
${g}`,l=l.substring(0,l.length-w.text.length)+x.text;break}else if((h==null?void 0:h.type)==="list"){let w=h,g=w.raw+`
|
|
22
22
|
`+a.join(`
|
|
23
|
-
`),
|
|
24
|
-
`);continue}}return{type:"blockquote",raw:o,tokens:r,text:l}}}list(t){let n=this.rules.block.list.exec(t);if(n){let a=n[1].trim(),o=a.length>1,l={type:"list",raw:"",ordered:o,start:o?+a.slice(0,-1):"",loose:!1,items:[]};a=o?`\\d{1,9}\\${a.slice(-1)}`:`\\${a}`,this.options.pedantic&&(a=o?a:"[*+-]");let r=this.rules.other.listItemRegex(a),i=!1;for(;t;){let s=!1,d="",f="";if(!(n=r.exec(t))||this.rules.block.hr.test(t))break;d=n[0],t=t.substring(d.length);let u=
|
|
23
|
+
`),V=this.list(g);r[r.length-1]=V,o=o.substring(0,o.length-h.raw.length)+V.raw,l=l.substring(0,l.length-w.raw.length)+V.raw,a=g.substring(r.at(-1).raw.length).split(`
|
|
24
|
+
`);continue}}return{type:"blockquote",raw:o,tokens:r,text:l}}}list(t){let n=this.rules.block.list.exec(t);if(n){let a=n[1].trim(),o=a.length>1,l={type:"list",raw:"",ordered:o,start:o?+a.slice(0,-1):"",loose:!1,items:[]};a=o?`\\d{1,9}\\${a.slice(-1)}`:`\\${a}`,this.options.pedantic&&(a=o?a:"[*+-]");let r=this.rules.other.listItemRegex(a),i=!1;for(;t;){let s=!1,d="",f="";if(!(n=r.exec(t))||this.rules.block.hr.test(t))break;d=n[0],t=t.substring(d.length);let u=Ec(n[2].split(`
|
|
25
25
|
`,1)[0],n[1].length),h=t.split(`
|
|
26
|
-
`,1)[0],
|
|
27
|
-
`,t=t.substring(h.length+1),s=!0),!s){let
|
|
28
|
-
`,1)[0],
|
|
29
|
-
`+
|
|
30
|
-
`+h}
|
|
31
|
-
`,t=t.substring(
|
|
26
|
+
`,1)[0],w=!u.trim(),g=0;if(this.options.pedantic?(g=2,f=u.trimStart()):w?g=n[1].length+1:(g=u.search(this.rules.other.nonSpaceChar),g=g>4?1:g,f=u.slice(g),g+=n[1].length),w&&this.rules.other.blankLine.test(h)&&(d+=h+`
|
|
27
|
+
`,t=t.substring(h.length+1),s=!0),!s){let V=this.rules.other.nextBulletRegex(g),x=this.rules.other.hrRegex(g),T=this.rules.other.fencesBeginRegex(g),$=this.rules.other.headingBeginRegex(g),B=this.rules.other.htmlBeginRegex(g),_=this.rules.other.blockquoteBeginRegex(g);for(;t;){let C=t.split(`
|
|
28
|
+
`,1)[0],N;if(h=C,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting," "),N=h):N=h.replace(this.rules.other.tabCharGlobal," "),T.test(h)||$.test(h)||B.test(h)||_.test(h)||V.test(h)||x.test(h))break;if(N.search(this.rules.other.nonSpaceChar)>=g||!h.trim())f+=`
|
|
29
|
+
`+N.slice(g);else{if(w||u.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||T.test(u)||$.test(u)||x.test(u))break;f+=`
|
|
30
|
+
`+h}w=!h.trim(),d+=C+`
|
|
31
|
+
`,t=t.substring(C.length+1),u=N.slice(g)}}l.loose||(i?l.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(i=!0)),l.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(f),loose:!1,text:f,tokens:[]}),l.raw+=d}let c=l.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let s of l.items)if(this.lexer.state.top=!1,s.tokens=this.lexer.blockTokens(s.text,[]),!l.loose){let d=s.tokens.filter(u=>u.type==="space"),f=d.length>0&&d.some(u=>this.rules.other.anyLine.test(u.raw));l.loose=f}for(let s of l.items){let d=s.tokens[0];if(s.task&&((d==null?void 0:d.type)==="text"||(d==null?void 0:d.type)==="paragraph")){s.text=s.text.replace(this.rules.other.listReplaceTask,""),d.raw=d.raw.replace(this.rules.other.listReplaceTask,""),d.text=d.text.replace(this.rules.other.listReplaceTask,"");for(let u=this.lexer.inlineQueue.length-1;u>=0;u--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[u].src)){this.lexer.inlineQueue[u].src=this.lexer.inlineQueue[u].src.replace(this.rules.other.listReplaceTask,"");break}let f=this.rules.other.listTaskCheckbox.exec(s.raw);if(f){let u={type:"checkbox",raw:f[0]+" ",checked:f[0]!=="[ ]"};s.checked=u.checked,l.loose?s.tokens[0]&&["paragraph","text"].includes(s.tokens[0].type)&&"tokens"in s.tokens[0]&&s.tokens[0].tokens?(s.tokens[0].raw=u.raw+s.tokens[0].raw,s.tokens[0].text=u.raw+s.tokens[0].text,s.tokens[0].tokens.unshift(u)):s.tokens.unshift({type:"paragraph",raw:u.raw,text:u.raw,tokens:[u]}):s.tokens.unshift(u)}}else s.task&&(s.task=!1)}if(l.loose)for(let s of l.items){s.loose=!0;for(let d of s.tokens)d.type==="text"&&(d.type="paragraph")}return l}}html(t){let n=this.rules.block.html.exec(t);if(n){let a=Ca(n[0]);return{type:"html",block:!0,raw:a,pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:a}}}def(t){let n=this.rules.block.def.exec(t);if(n){let a=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",l=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:a,raw:ye(n[0],`
|
|
32
32
|
`),href:o,title:l}}}table(t){var i;let n=this.rules.block.table.exec(t);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let a=wa(n[1]),o=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),l=(i=n[3])!=null&&i.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
33
33
|
`):[],r={type:"table",raw:ye(n[0],`
|
|
34
34
|
`),header:[],align:[],rows:[]};if(a.length===o.length){for(let c of o)this.rules.other.tableAlignRight.test(c)?r.align.push("right"):this.rules.other.tableAlignCenter.test(c)?r.align.push("center"):this.rules.other.tableAlignLeft.test(c)?r.align.push("left"):r.align.push(null);for(let c=0;c<a.length;c++)r.header.push({text:a[c],tokens:this.lexer.inline(a[c]),header:!0,align:r.align[c]});for(let c of l)r.rows.push(wa(c,r.header.length).map((s,d)=>({text:s,tokens:this.lexer.inline(s),header:!1,align:r.align[d]})));return r}}lheading(t){let n=this.rules.block.lheading.exec(t);if(n){let a=n[1].trim();return{type:"heading",raw:ye(n[0],`
|
|
35
35
|
`),depth:n[2].charAt(0)==="="?1:2,text:a,tokens:this.lexer.inline(a)}}}paragraph(t){let n=this.rules.block.paragraph.exec(t);if(n){let a=n[1].charAt(n[1].length-1)===`
|
|
36
|
-
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:a,tokens:this.lexer.inline(a)}}}text(t){let n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){let n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(t){let n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){let n=this.rules.inline.link.exec(t);if(n){let a=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(a)){if(!this.rules.other.endAngleBracket.test(a))return;let r=ye(a.slice(0,-1),"\\");if((a.length-r.length)%2===0)return}else{let r=
|
|
36
|
+
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:a,tokens:this.lexer.inline(a)}}}text(t){let n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){let n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(t){let n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){let n=this.rules.inline.link.exec(t);if(n){let a=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(a)){if(!this.rules.other.endAngleBracket.test(a))return;let r=ye(a.slice(0,-1),"\\");if((a.length-r.length)%2===0)return}else{let r=Cc(n[2],"()");if(r===-2)return;if(r>-1){let i=(n[0].indexOf("!")===0?5:4)+n[1].length+r;n[2]=n[2].substring(0,r),n[0]=n[0].substring(0,i).trim(),n[3]=""}}let o=n[2],l="";if(this.options.pedantic){let r=this.rules.other.pedanticHrefTitle.exec(o);r&&(o=r[1],l=r[3])}else l=n[3]?n[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(a)?o=o.slice(1):o=o.slice(1,-1)),Ea(n,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:l&&l.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(t,n){let a;if((a=this.rules.inline.reflink.exec(t))||(a=this.rules.inline.nolink.exec(t))){let o=(a[2]||a[1]).replace(this.rules.other.multipleSpaceGlobal," "),l=n[o.toLowerCase()];if(!l){let r=a[0].charAt(0);return{type:"text",raw:r,text:r}}return Ea(a,l,a[0],this.lexer,this.rules)}}emStrong(t,n,a=""){let o=this.rules.inline.emStrongLDelim.exec(t);if(!(!o||!o[1]&&!o[2]&&!o[3]&&!o[4]||o[4]&&a.match(this.rules.other.unicodeAlphaNumeric))&&(!(o[1]||o[3])||!a||this.rules.inline.punctuation.exec(a))){let l=[...o[0]].length-1,r,i,c=l,s=0,d=o[0][0],f=a===d,u=d==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,n=n.slice(-1*t.length+l);(o=u.exec(n))!==null;){if(r=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!r)continue;if(i=[...r].length,o[3]||o[4]){c+=i;continue}else if(o[5]||o[6]){if(l%3&&!((l+i)%3)){s+=i;continue}if(f)break}if(c-=i,c>0)continue;i=Math.min(i,i+c+s);let h=[...o[0]][0].length,w=t.slice(0,l+o.index+h+i);if(Math.min(l,i)%2){let V=w.slice(1,-1);return{type:"em",raw:w,text:V,tokens:this.lexer.inlineTokens(V)}}let g=w.slice(2,-2);return{type:"strong",raw:w,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(t){let n=this.rules.inline.code.exec(t);if(n){let a=n[2].replace(this.rules.other.newLineCharGlobal," "),o=this.rules.other.nonSpaceChar.test(a),l=this.rules.other.startingSpaceChar.test(a)&&this.rules.other.endingSpaceChar.test(a);return o&&l&&(a=a.substring(1,a.length-1)),{type:"codespan",raw:n[0],text:a}}}br(t){let n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t,n,a=""){let o=this.rules.inline.delLDelim.exec(t);if(o&&(!o[1]||!a||this.rules.inline.punctuation.exec(a))){let l=[...o[0]].length-1,r,i,c=l,s=this.rules.inline.delRDelim;for(s.lastIndex=0,n=n.slice(-1*t.length+l);(o=s.exec(n))!==null;){if(r=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!r||(i=[...r].length,i!==l))continue;if(o[3]||o[4]){c+=i;continue}if(c-=i,c>0)continue;i=Math.min(i,i+c);let d=[...o[0]][0].length,f=t.slice(0,l+o.index+d+i),u=f.slice(l,-l);return{type:"del",raw:f,text:u,tokens:this.lexer.inlineTokens(u)}}}}autolink(t){let n=this.rules.inline.autolink.exec(t);if(n){let a,o;return n[2]==="@"?(a=n[1],o="mailto:"+a):(a=n[1],o=a),{type:"link",raw:n[0],text:a,href:o,tokens:[{type:"text",raw:a,text:a}]}}}url(t){var a;let n;if(n=this.rules.inline.url.exec(t)){let o,l;if(n[2]==="@")o=n[0],l="mailto:"+o;else{let r;do r=n[0],n[0]=((a=this.rules.inline._backpedal.exec(n[0]))==null?void 0:a[0])??"";while(r!==n[0]);o=n[0],n[1]==="www."?l="http://"+n[0]:l=n[0]}return{type:"link",raw:n[0],text:o,href:l,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(t){let n=this.rules.inline.text.exec(t);if(n){let a=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:a}}}},ie=class Sn{constructor(n){P(this,"tokens");P(this,"options");P(this,"state");P(this,"inlineQueue");P(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=n||xe,this.options.tokenizer=this.options.tokenizer||new yt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let a={other:Q,block:kt.normal,inline:Qe.normal};this.options.pedantic?(a.block=kt.pedantic,a.inline=Qe.pedantic):this.options.gfm&&(a.block=kt.gfm,this.options.breaks?a.inline=Qe.breaks:a.inline=Qe.gfm),this.tokenizer.rules=a}static get rules(){return{block:kt,inline:Qe}}static lex(n,a){return new Sn(a).lex(n)}static lexInline(n,a){return new Sn(a).inlineTokens(n)}lex(n){n=n.replace(Q.carriageReturn,`
|
|
37
37
|
`),this.blockTokens(n,this.tokens);for(let a=0;a<this.inlineQueue.length;a++){let o=this.inlineQueue[a];this.inlineTokens(o.src,o.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(n,a=[],o=!1){var r,i,c;this.tokenizer.lexer=this,this.options.pedantic&&(n=n.replace(Q.tabCharGlobal," ").replace(Q.spaceLine,""));let l=1/0;for(;n;){if(n.length<l)l=n.length;else{this.infiniteLoopError(n.charCodeAt(0));break}let s;if((i=(r=this.options.extensions)==null?void 0:r.block)!=null&&i.some(f=>(s=f.call({lexer:this},n,a))?(n=n.substring(s.raw.length),a.push(s),!0):!1))continue;if(s=this.tokenizer.space(n)){n=n.substring(s.raw.length);let f=a.at(-1);s.raw.length===1&&f!==void 0?f.raw+=`
|
|
38
38
|
`:a.push(s);continue}if(s=this.tokenizer.code(n)){n=n.substring(s.raw.length);let f=a.at(-1);(f==null?void 0:f.type)==="paragraph"||(f==null?void 0:f.type)==="text"?(f.raw+=(f.raw.endsWith(`
|
|
39
39
|
`)?"":`
|
|
@@ -41,13 +41,13 @@ ${g}`,l=l.substring(0,l.length-x.text.length)+$.text;break}else if((h==null?void
|
|
|
41
41
|
`+s.text,this.inlineQueue.at(-1).src=f.text):a.push(s);continue}if(s=this.tokenizer.fences(n)){n=n.substring(s.raw.length),a.push(s);continue}if(s=this.tokenizer.heading(n)){n=n.substring(s.raw.length),a.push(s);continue}if(s=this.tokenizer.hr(n)){n=n.substring(s.raw.length),a.push(s);continue}if(s=this.tokenizer.blockquote(n)){n=n.substring(s.raw.length),a.push(s);continue}if(s=this.tokenizer.list(n)){n=n.substring(s.raw.length),a.push(s);continue}if(s=this.tokenizer.html(n)){n=n.substring(s.raw.length),a.push(s);continue}if(s=this.tokenizer.def(n)){n=n.substring(s.raw.length);let f=a.at(-1);(f==null?void 0:f.type)==="paragraph"||(f==null?void 0:f.type)==="text"?(f.raw+=(f.raw.endsWith(`
|
|
42
42
|
`)?"":`
|
|
43
43
|
`)+s.raw,f.text+=`
|
|
44
|
-
`+s.raw,this.inlineQueue.at(-1).src=f.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title},a.push(s));continue}if(s=this.tokenizer.table(n)){n=n.substring(s.raw.length),a.push(s);continue}if(s=this.tokenizer.lheading(n)){n=n.substring(s.raw.length),a.push(s);continue}let d=n;if((c=this.options.extensions)!=null&&c.startBlock){let f=1/0,u=n.slice(1),h;this.options.extensions.startBlock.forEach(
|
|
44
|
+
`+s.raw,this.inlineQueue.at(-1).src=f.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title},a.push(s));continue}if(s=this.tokenizer.table(n)){n=n.substring(s.raw.length),a.push(s);continue}if(s=this.tokenizer.lheading(n)){n=n.substring(s.raw.length),a.push(s);continue}let d=n;if((c=this.options.extensions)!=null&&c.startBlock){let f=1/0,u=n.slice(1),h;this.options.extensions.startBlock.forEach(w=>{h=w.call({lexer:this},u),typeof h=="number"&&h>=0&&(f=Math.min(f,h))}),f<1/0&&f>=0&&(d=n.substring(0,f+1))}if(this.state.top&&(s=this.tokenizer.paragraph(d))){let f=a.at(-1);o&&(f==null?void 0:f.type)==="paragraph"?(f.raw+=(f.raw.endsWith(`
|
|
45
45
|
`)?"":`
|
|
46
46
|
`)+s.raw,f.text+=`
|
|
47
47
|
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):a.push(s),o=d.length!==n.length,n=n.substring(s.raw.length);continue}if(s=this.tokenizer.text(n)){n=n.substring(s.raw.length);let f=a.at(-1);(f==null?void 0:f.type)==="text"?(f.raw+=(f.raw.endsWith(`
|
|
48
48
|
`)?"":`
|
|
49
49
|
`)+s.raw,f.text+=`
|
|
50
|
-
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):a.push(s);continue}if(n){this.infiniteLoopError(n.charCodeAt(0));break}}return this.state.top=!0,a}inline(n,a=[]){return this.inlineQueue.push({src:n,tokens:a}),a}linkInText(n){if(!n.includes("["))return!1;let a=this.tokenizer.rules.inline.link;for(let o of n.matchAll(this.tokenizer.rules.inline.blockSkip))if(a.test(o[0])&&n.charAt(o.index-1)!=="!")return!0;for(let o of n.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let l=o[0],r=l.lastIndexOf("[");if(!(l.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,l.slice(r+1,-1)))&&!(r>1&&this.linkInText(l.slice(1,r-1))))return!0}return!1}inlineTokens(n,a=[]){var c,s,d,f,u;this.tokenizer.lexer=this;let o=n;if(this.tokens.links&&n.includes("[")){let h=this.tokenizer.rules.inline.reflinkSearch,
|
|
50
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):a.push(s);continue}if(n){this.infiniteLoopError(n.charCodeAt(0));break}}return this.state.top=!0,a}inline(n,a=[]){return this.inlineQueue.push({src:n,tokens:a}),a}linkInText(n){if(!n.includes("["))return!1;let a=this.tokenizer.rules.inline.link;for(let o of n.matchAll(this.tokenizer.rules.inline.blockSkip))if(a.test(o[0])&&n.charAt(o.index-1)!=="!")return!0;for(let o of n.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let l=o[0],r=l.lastIndexOf("[");if(!(l.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,l.slice(r+1,-1)))&&!(r>1&&this.linkInText(l.slice(1,r-1))))return!0}return!1}inlineTokens(n,a=[]){var c,s,d,f,u;this.tokenizer.lexer=this;let o=n;if(this.tokens.links&&n.includes("[")){let h=this.tokenizer.rules.inline.reflinkSearch,w=g=>{let V=g.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,g.slice(V+1,-1)))return g;if(V>1&&g.charAt(0)!=="!"){let x=g.slice(1,V-1);if(this.linkInText(x))return"["+x.replace(h,w)+"]["+"a".repeat(g.length-V-2)+"]"}return"["+"a".repeat(g.length-2)+"]"};o=o.replace(h,w)}o=o.replace(this.tokenizer.rules.inline.anyPunctuation,h=>"+".repeat(h.length)),o=o.replace(this.tokenizer.rules.inline.blockSkip,(h,w,g)=>{let V=g?g.length:0;return h.slice(0,V)+"["+"a".repeat(h.length-V-2)+"]"}),o=((s=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:s.call({lexer:this},o))??o;let l=!1,r="",i=1/0;for(;n;){if(n.length<i)i=n.length;else{this.infiniteLoopError(n.charCodeAt(0));break}l||(r=""),l=!1;let h;if((f=(d=this.options.extensions)==null?void 0:d.inline)!=null&&f.some(g=>(h=g.call({lexer:this},n,a))?(n=n.substring(h.raw.length),a.push(h),!0):!1))continue;if(h=this.tokenizer.escape(n)){n=n.substring(h.raw.length),a.push(h);continue}if(h=this.tokenizer.tag(n)){n=n.substring(h.raw.length),a.push(h);continue}if(h=this.tokenizer.link(n)){n=n.substring(h.raw.length),a.push(h);continue}if(h=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(h.raw.length);let g=a.at(-1);h.type==="text"&&(g==null?void 0:g.type)==="text"?(g.raw+=h.raw,g.text+=h.text):a.push(h);continue}if(h=this.tokenizer.emStrong(n,o,r)){n=n.substring(h.raw.length),a.push(h);continue}if(h=this.tokenizer.codespan(n)){n=n.substring(h.raw.length),a.push(h);continue}if(h=this.tokenizer.br(n)){n=n.substring(h.raw.length),a.push(h);continue}if(h=this.tokenizer.del(n,o,r)){n=n.substring(h.raw.length),a.push(h);continue}if(h=this.tokenizer.autolink(n)){n=n.substring(h.raw.length),a.push(h);continue}if(!this.state.inLink&&(h=this.tokenizer.url(n))){n=n.substring(h.raw.length),a.push(h);continue}let w=n;if((u=this.options.extensions)!=null&&u.startInline){let g=1/0,V=n.slice(1),x;this.options.extensions.startInline.forEach(T=>{x=T.call({lexer:this},V),typeof x=="number"&&x>=0&&(g=Math.min(g,x))}),g<1/0&&g>=0&&(w=n.substring(0,g+1))}if(h=this.tokenizer.inlineText(w)){n=n.substring(h.raw.length),h.raw.slice(-1)!=="_"&&(r=h.raw.slice(-1)),l=!0;let g=a.at(-1);(g==null?void 0:g.type)==="text"?(g.raw+=h.raw,g.text+=h.text):a.push(h);continue}if(n){this.infiniteLoopError(n.charCodeAt(0));break}}return a}infiniteLoopError(n){let a="Infinite loop on byte: "+n;if(this.options.silent)console.error(a);else throw new Error(a)}},bt=class{constructor(t){P(this,"options");P(this,"parser");this.options=t||xe}space(t){return""}code({text:t,lang:n,escaped:a}){var r;let o=(r=(n||"").match(Q.notSpaceStart))==null?void 0:r[0],l=t.replace(Q.endingNewline,"")+`
|
|
51
51
|
`;return o?'<pre><code class="language-'+fe(o)+'">'+(a?l:fe(l,!0))+`</code></pre>
|
|
52
52
|
`:"<pre><code>"+(a?l:fe(l,!0))+`</code></pre>
|
|
53
53
|
`}blockquote({tokens:t}){return`<blockquote>
|
|
@@ -65,7 +65,7 @@ ${this.parser.parse(t)}</blockquote>
|
|
|
65
65
|
`}tablerow({text:t}){return`<tr>
|
|
66
66
|
${t}</tr>
|
|
67
67
|
`}tablecell(t){let n=this.parser.parseInline(t.tokens),a=t.header?"th":"td";return(t.align?`<${a} align="${t.align}">`:`<${a}>`)+n+`</${a}>
|
|
68
|
-
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${fe(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:a}){let o=this.parser.parseInline(a),l=_a(t);if(l===null)return o;t=l;let r='<a href="'+t+'"';return n&&(r+=' title="'+fe(n)+'"'),r+=">"+o+"</a>",r}image({href:t,title:n,text:a,tokens:o}){o&&(a=this.parser.parseInline(o,this.parser.textRenderer));let l=_a(t);if(l===null)return fe(a);t=l;let r=`<img src="${t}" alt="${fe(a)}"`;return n&&(r+=` title="${fe(n)}"`),r+=">",r}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:fe(t.text)}},tn=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},ce=class
|
|
69
|
-
Please report this to https://github.com/markedjs/marked.`,t){let o="<p>An error occurred:</p><pre>"+fe(a.message+"",!0)+"</pre>";return n?Promise.resolve(o):o}if(n)return Promise.reject(a);throw a}}},Te=new
|
|
70
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cc(t,n){return rc(t)||sc(t,n)||dc(t,n)||ic()}function dc(t,n){if(t){if(typeof t=="string")return xa(t,n);var a={}.toString.call(t).slice(8,-1);return a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set"?Array.from(t):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?xa(t,n):void 0}}const $a=Object.entries,Ta=Object.setPrototypeOf,pc=Object.isFrozen,fc=Object.getPrototypeOf,hc=Object.getOwnPropertyDescriptor;let Y=Object.freeze,Z=Object.seal,Re=Object.create,Sa=typeof Reflect<"u"&&Reflect,nn=Sa.apply,an=Sa.construct;Y||(Y=function(n){return n}),Z||(Z=function(n){return n}),nn||(nn=function(n,a){for(var o=arguments.length,l=new Array(o>2?o-2:0),r=2;r<o;r++)l[r-2]=arguments[r];return n.apply(a,l)}),an||(an=function(n){for(var a=arguments.length,o=new Array(a>1?a-1:0),l=1;l<a;l++)o[l-1]=arguments[l];return new n(...o)});const Se=W(Array.prototype.forEach),mc=W(Array.prototype.lastIndexOf),Va=W(Array.prototype.pop),Je=W(Array.prototype.push),uc=W(Array.prototype.splice),De=Array.isArray,ve=W(String.prototype.toLowerCase),on=W(String.prototype.toString),Ba=W(String.prototype.match),et=W(String.prototype.replace),Na=W(String.prototype.indexOf),gc=W(String.prototype.trim),kc=W(Number.prototype.toString),yc=W(Boolean.prototype.toString),Aa=typeof BigInt>"u"?null:W(BigInt.prototype.toString),za=typeof Symbol>"u"?null:W(Symbol.prototype.toString),v=W(Object.prototype.hasOwnProperty),tt=W(Object.prototype.toString),X=W(RegExp.prototype.test),Ve=bc(TypeError);function W(t){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var a=arguments.length,o=new Array(a>1?a-1:0),l=1;l<a;l++)o[l-1]=arguments[l];return nn(t,n,o)}}function bc(t){return function(){for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return an(t,a)}}function R(t,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ve;if(Ta&&Ta(t,null),!De(n))return t;let o=n.length;for(;o--;){let l=n[o];if(typeof l=="string"){const r=a(l);r!==l&&(pc(n)||(n[o]=r),l=r)}t[l]=!0}return t}function _c(t){for(let n=0;n<t.length;n++)v(t,n)||(t[n]=null);return t}function ae(t){const n=Re(null);for(const o of $a(t)){var a=cc(o,2);const l=a[0],r=a[1];v(t,l)&&(De(r)?n[l]=_c(r):r&&typeof r=="object"&&r.constructor===Object?n[l]=ae(r):n[l]=r)}return n}function wc(t){switch(typeof t){case"string":return t;case"number":return kc(t);case"boolean":return yc(t);case"bigint":return Aa?Aa(t):"0";case"symbol":return za?za(t):"Symbol()";case"undefined":return tt(t);case"function":case"object":{if(t===null)return tt(t);const n=t,a=de(n,"toString");if(typeof a=="function"){const o=a(n);return typeof o=="string"?o:tt(o)}return tt(t)}default:return tt(t)}}function de(t,n){for(;t!==null;){const o=hc(t,n);if(o){if(o.get)return W(o.get);if(typeof o.value=="function")return W(o.value)}t=fc(t)}function a(){return null}return a}function Cc(t){try{return X(t,""),!0}catch{return!1}}const Ma=Y(["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"]),ln=Y(["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"]),rn=Y(["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"]),Ec=Y(["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"]),sn=Y(["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"]),xc=Y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),La=Y(["#text"]),Ia=Y(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","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"]),cn=Y(["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","dominant-baseline","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","pointer-events","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-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","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"]),Ra=Y(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),_t=Y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$c=Z(/{{[\w\W]*|^[\w\W]*}}/g),Tc=Z(/<%[\w\W]*|^[\w\W]*%>/g),Sc=Z(/\${[\w\W]*/g),Vc=Z(/^data-[\-\w.\u00B7-\uFFFF]+$/),Bc=Z(/^aria-[\-\w]+$/),Da=Z(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Nc=Z(/^(?:\w+script|data):/i),Ac=Z(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),zc=Z(/^html$/i),Mc=Z(/^[a-z][.\w]*(-[.\w]+)+$/i),Pa=Z(/<[/\w!]/g),Oa=Z(/<[/\w]/g),Lc=Z(/<\/no(script|embed|frames)/i),Ic=Z(/\/>/i),oe={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ha=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Rc=Y(R({},Ha)),Dc=(function(){const t={};return Se(Ha,n=>{t[n]=Z(new RegExp("</"+n+"(?=[\\t\\n\\f\\r />])","i"))}),Y(t)})(),Pc=function(){return typeof window>"u"?null:window},Oc=function(n,a){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let o=null;const l="data-tt-policy-suffix";a&&a.hasAttribute(l)&&(o=a.getAttribute(l));const r="dompurify"+(o?"#"+o:"");try{return n.createPolicy(r,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},Fa=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},be=function(n,a,o,l){return v(n,a)&&De(n[a])?R(l.base?ae(l.base):{},n[a],l.transform):o},dn=function(n,a,o){const l=v(n,a)?n[a]:void 0;return l&&typeof l=="object"?ae(l):o()};function Ua(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pc();const n=b=>Ua(b);if(n.version="3.4.14",n.removed=[],!t||!t.document||t.document.nodeType!==oe.document||!t.Element)return n.isSupported=!1,n;let a=t.document;const o=a,l=o.currentScript;t.DocumentFragment;const r=t.HTMLTemplateElement,i=t.Node,c=t.Element,s=t.NodeFilter,d=t.NamedNodeMap;d===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const f=t.DOMParser,u=t.trustedTypes,h=c.prototype,x=de(h,"cloneNode"),g=de(h,"remove"),A=de(h,"nextSibling"),$=de(h,"childNodes"),T=de(h,"parentNode"),E=de(h,"shadowRoot"),S=de(h,"attributes"),_=i&&i.prototype?de(i.prototype,"nodeType"):null,w=i&&i.prototype?de(i.prototype,"nodeName"):null,B=i&&i.prototype?de(i.prototype,"ownerDocument"):null,j=function(p){return _?_(p):p.nodeType},ee=function(p){return w?w(p):p.nodeName};if(typeof r=="function"){const b=a.createElement("template");b.content&&b.content.ownerDocument&&(a=b.content.ownerDocument)}let z,N="",re,pe=!1,_e=0;const nt=function(){if(_e>0)throw Ve('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},ke=function(p){nt(),_e++;try{return z.createHTML(p)}finally{_e--}},K=function(p){nt(),_e++;try{return z.createScriptURL(p)}finally{_e--}},Ja=function(){return pe||(re=Oc(u,l),pe=!0),re},Et=a,fn=Et.implementation,va=Et.createNodeIterator,Ad=Et.createDocumentFragment,zd=Et.getElementsByTagName,Md=o.importNode;let H=Fa();n.isSupported=typeof $a=="function"&&typeof T=="function"&&fn&&fn.createHTMLDocument!==void 0;const Ld=$c,Id=Tc,Rd=Sc,Dd=Vc,Pd=Bc,Od=Nc,eo=Ac,Hd=Mc;let to=Da,F=null;const hn=R({},[...Ma,...ln,...rn,...sn,...La]);let U=null;const mn=R({},[...Ia,...cn,...Ra,..._t]);let he=Object.seal(Re(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}})),at=null,no=null;const we=Object.seal(Re(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ao=!0,un=!0,oo=!1,lo=!0,Ce=!1,Be=!0,Ne=!1,gn=!1,xt=null,$t=null,kn=!1,Pe=!1,Tt=!1,St=!1,ro=!0,so=!1;const io="user-content-";let yn=!0,bn=!1,Oe={},He=null;const co=R({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let po=null;const fo=R({},["audio","video","img","source","image","track"]);let ho=null;const mo=R({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Vt="http://www.w3.org/1998/Math/MathML",Bt="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let Fe=me,_n=!1,wn=null;const Fd=R({},[Vt,Bt,me],on),uo=Y(["mi","mo","mn","ms","mtext"]);let Cn=R({},uo);const go=Y(["annotation-xml"]);let En=R({},go);const Ud=R({},["title","style","font","a","script"]);let ot=null;const jd=["application/xhtml+xml","text/html"],qd="text/html";let G=null,Ue=null;const Gd=a.createElement("form"),ko=function(p){return p instanceof RegExp||p instanceof Function},xn=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ue&&Ue===p)return;(!p||typeof p!="object")&&(p={}),p=ae(p),ot=jd.indexOf(p.PARSER_MEDIA_TYPE)===-1?qd:p.PARSER_MEDIA_TYPE,G=ot==="application/xhtml+xml"?on:ve,F=be(p,"ALLOWED_TAGS",hn,{transform:G}),U=be(p,"ALLOWED_ATTR",mn,{transform:G}),wn=be(p,"ALLOWED_NAMESPACES",Fd,{transform:on}),ho=be(p,"ADD_URI_SAFE_ATTR",mo,{transform:G,base:mo}),po=be(p,"ADD_DATA_URI_TAGS",fo,{transform:G,base:fo}),He=be(p,"FORBID_CONTENTS",co,{transform:G}),at=be(p,"FORBID_TAGS",ae({}),{transform:G}),no=be(p,"FORBID_ATTR",ae({}),{transform:G}),Oe=v(p,"USE_PROFILES")?p.USE_PROFILES&&typeof p.USE_PROFILES=="object"?ae(p.USE_PROFILES):p.USE_PROFILES:!1,ao=p.ALLOW_ARIA_ATTR!==!1,un=p.ALLOW_DATA_ATTR!==!1,oo=p.ALLOW_UNKNOWN_PROTOCOLS||!1,lo=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ce=p.SAFE_FOR_TEMPLATES||!1,Be=p.SAFE_FOR_XML!==!1,Ne=p.WHOLE_DOCUMENT||!1,Pe=p.RETURN_DOM||!1,Tt=p.RETURN_DOM_FRAGMENT||!1,St=p.RETURN_TRUSTED_TYPE||!1,kn=p.FORCE_BODY||!1,ro=p.SANITIZE_DOM!==!1,so=p.SANITIZE_NAMED_PROPS||!1,yn=p.KEEP_CONTENT!==!1,bn=p.IN_PLACE||!1,to=Cc(p.ALLOWED_URI_REGEXP)?p.ALLOWED_URI_REGEXP:Da,Fe=typeof p.NAMESPACE=="string"?p.NAMESPACE:me,Cn=dn(p,"MATHML_TEXT_INTEGRATION_POINTS",()=>R({},uo)),En=dn(p,"HTML_INTEGRATION_POINTS",()=>R({},go));const m=dn(p,"CUSTOM_ELEMENT_HANDLING",()=>Re(null));if(he=Re(null),v(m,"tagNameCheck")&&ko(m.tagNameCheck)&&(he.tagNameCheck=m.tagNameCheck),v(m,"attributeNameCheck")&&ko(m.attributeNameCheck)&&(he.attributeNameCheck=m.attributeNameCheck),v(m,"allowCustomizedBuiltInElements")&&typeof m.allowCustomizedBuiltInElements=="boolean"&&(he.allowCustomizedBuiltInElements=m.allowCustomizedBuiltInElements),Z(he),Ce&&(un=!1),Tt&&(Pe=!0),Oe&&(F=R({},La),U=Re(null),Oe.html===!0&&(R(F,Ma),R(U,Ia)),Oe.svg===!0&&(R(F,ln),R(U,cn),R(U,_t)),Oe.svgFilters===!0&&(R(F,rn),R(U,cn),R(U,_t)),Oe.mathMl===!0&&(R(F,sn),R(U,Ra),R(U,_t))),we.tagCheck=null,we.attributeCheck=null,v(p,"ADD_TAGS")&&(typeof p.ADD_TAGS=="function"?we.tagCheck=p.ADD_TAGS:De(p.ADD_TAGS)&&(F===hn&&(F=ae(F)),R(F,p.ADD_TAGS,G))),v(p,"ADD_ATTR")&&(typeof p.ADD_ATTR=="function"?we.attributeCheck=p.ADD_ATTR:De(p.ADD_ATTR)&&(U===mn&&(U=ae(U)),R(U,p.ADD_ATTR,G))),v(p,"ADD_FORBID_CONTENTS")&&De(p.ADD_FORBID_CONTENTS)&&(He===co&&(He=ae(He)),R(He,p.ADD_FORBID_CONTENTS,G)),yn&&(F["#text"]=!0),Ne&&R(F,["html","head","body"]),F.table&&(R(F,["tbody"]),delete at.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ve('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ve('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const k=z;z=p.TRUSTED_TYPES_POLICY;try{N=ke("")}catch(C){throw z=k,C}}else p.TRUSTED_TYPES_POLICY===null?(z=void 0,N=""):(z===void 0&&(z=Ja()),z&&typeof N=="string"&&(N=ke("")));Y&&Y(p),Ue=p},yo=R({},[...ln,...rn,...Ec]),bo=R({},[...sn,...xc]),Wd=function(p,m,k){return m.namespaceURI===me?p==="svg":m.namespaceURI===Vt?p==="svg"&&(k==="annotation-xml"||Cn[k]):!!yo[p]},Yd=function(p,m,k){return m.namespaceURI===me?p==="math":m.namespaceURI===Bt?p==="math"&&En[k]:!!bo[p]},Zd=function(p,m,k){return m.namespaceURI===Bt&&!En[k]||m.namespaceURI===Vt&&!Cn[k]?!1:!bo[p]&&(Ud[p]||!yo[p])},Kd=function(p){let m=T(p);(!m||!m.tagName)&&(m={namespaceURI:Fe,tagName:"template"});const k=ve(p.tagName),C=ve(m.tagName);return wn[p.namespaceURI]?p.namespaceURI===Bt?Wd(k,m,C):p.namespaceURI===Vt?Yd(k,m,C):p.namespaceURI===me?Zd(k,m,C):!!(ot==="application/xhtml+xml"&&wn[p.namespaceURI]):!1},Ee=function(p){Je(n.removed,{element:p});try{T(p).removeChild(p)}catch{if(g(p),!T(p))throw Ve("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},_o=function(p,m,k){try{p.removeAttributeNode(m)}catch{try{p.removeAttribute(k)}catch{}}},Nt=function(p){At(p);const m=$(p);if(m){const C=[];Se(m,V=>{Je(C,V)}),Se(C,V=>{try{g(V)}catch{}})}const k=S(p);if(k)for(let C=k.length-1;C>=0;--C){const V=k[C],M=V&&V.name;typeof M=="string"&&_o(p,V,M)}},Ae=function(p,m,k){if(!k)try{k=m.getAttributeNode(p)}catch{k=null}Je(n.removed,{attribute:k||null,from:m});try{k?m.removeAttributeNode(k):m.removeAttribute(p)}catch{try{m.removeAttribute(p)}catch{}}if(p==="is")if(Pe||Tt)try{Ee(m)}catch{}else try{m.setAttribute(p,"")}catch{}},Qd=function(p){const m=S(p);if(m)for(let k=m.length-1;k>=0;--k){const C=m[k],V=C&&C.name;typeof V!="string"||U[G(V)]||_o(p,C,V)}},At=function(p){const m=[p];for(;m.length>0;){const k=m.pop();j(k)===oe.element&&Qd(k);const V=$(k);if(V)for(let M=V.length-1;M>=0;--M)m.push(V[M])}},wo=function(p,m){return Be?p==="patchsrc"?!0:p==="for"&&m!=="label"&&m!=="output":!1},Xd=function(p){if(!Be)return;const m=[p];for(;m.length>0;){const k=m.pop(),C=j(k);if(C===oe.processingInstruction||C===oe.comment&&X(Oa,k.data)){try{g(k)}catch{}continue}if(C===oe.element){const M=k,O=G(ee(k));try{M.hasAttribute&&M.hasAttribute("patchsrc")&&M.removeAttribute("patchsrc"),M.hasAttribute&&M.hasAttribute("for")&&wo("for",O)&&M.removeAttribute("for")}catch{}}const V=$(k);if(V)for(let M=V.length-1;M>=0;--M)m.push(V[M])}},Co=function(p){let m=null,k=null;if(kn)p="<remove></remove>"+p;else{const M=Ba(p,/^[\r\n\t ]+/);k=M&&M[0]}ot==="application/xhtml+xml"&&Fe===me&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const C=z?ke(p):p;if(Fe===me)try{m=new f().parseFromString(C,ot)}catch{}if(!m||!m.documentElement){m=fn.createDocument(Fe,"template",null);try{m.documentElement.innerHTML=_n?N:C}catch{}}const V=m.body||m.documentElement;return p&&k&&V.insertBefore(a.createTextNode(k),V.childNodes[0]||null),Fe===me?zd.call(m,Ne?"html":"body")[0]:Ne?m.documentElement:V},Eo=function(p){const m=B?B(p):p.ownerDocument;return va.call(m||p,p,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null)},zt=function(p){return p=et(p,Ld," "),p=et(p,Id," "),p=et(p,Rd," "),p},$n=function(p){var m;p.normalize();const k=B?B(p):p.ownerDocument,C=va.call(k||p,p,s.SHOW_TEXT|s.SHOW_COMMENT|s.SHOW_CDATA_SECTION|s.SHOW_PROCESSING_INSTRUCTION,null);let V=C.nextNode();for(;V;)V.data=zt(V.data),V=C.nextNode();const M=(m=p.querySelectorAll)===null||m===void 0?void 0:m.call(p,"template");M&&Se(M,O=>{je(O.content)&&$n(O.content)})},Mt=function(p){const m=w?w(p):null;return typeof m!="string"||G(m)!=="form"?!1:typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||p.attributes!==S(p)||typeof p.removeAttribute!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function"||typeof p.hasChildNodes!="function"||p.nodeType!==_(p)||p.childNodes!==$(p)},je=function(p){if(!_||typeof p!="object"||p===null)return!1;try{return _(p)===oe.documentFragment}catch{return!1}},lt=function(p){if(!_||typeof p!="object"||p===null)return!1;try{return typeof _(p)=="number"}catch{return!1}};function ue(b,p,m){b.length!==0&&Se(b,k=>{k.call(n,p,m,Ue)})}const Jd=function(p,m){return!!(Be&&p.hasChildNodes()&&!lt(p.firstElementChild)&&X(Pa,p.textContent)&&X(Pa,p.innerHTML)||Be&&p.namespaceURI===me&&Rc[m]&&(lt(p.firstElementChild)||typeof p.textContent=="string"&&X(Dc[m],p.textContent))||p.nodeType===oe.processingInstruction||Be&&p.nodeType===oe.comment&&X(Oa,p.data))},Lt=function(p,m){if(p instanceof RegExp)return X(p,m);if(p instanceof Function){for(var k=arguments.length,C=new Array(k>2?k-2:0),V=2;V<k;V++)C[V-2]=arguments[V];return!!p(m,...C)}return!1},vd=function(p,m,k){if(!at[m]&&Vo(m)&&Lt(he.tagNameCheck,m))return!1;if(yn&&!He[m]){const C=T(p),V=$(p);if(V&&C){const M=V.length;for(let O=M-1;O>=0;--O){const q=p===k?x(V[O],!0):V[O];C.insertBefore(q,A(p))}}}return Ee(p),!0},xo=function(p,m,k,C){return p.length===0?m:m===k||m===C?ae(m):m},$o=function(p,m){return p===m||T(p)!==null?!1:(bn&&At(p),!0)},To=function(p,m){if(ue(H.beforeSanitizeElements,p,null),$o(p,m))return!0;if(Mt(p))return Ee(p),!0;const k=G(ee(p));if(F=xo(H.uponSanitizeElement,F,hn,xt),ue(H.uponSanitizeElement,p,{tagName:k,allowedTags:F}),$o(p,m))return!0;if(Jd(p,k))return Ee(p),!0;if(at[k]||!(we.tagCheck instanceof Function&&we.tagCheck(k))&&!F[k]){const V=vd(p,k,m);return V===!1&&ue(H.afterSanitizeElements,p,null),V}if(j(p)===oe.element&&!Kd(p)||(k==="noscript"||k==="noembed"||k==="noframes")&&X(Lc,p.innerHTML))return Ee(p),!0;if(Ce&&p.nodeType===oe.text){const V=zt(p.textContent);p.textContent!==V&&(Je(n.removed,{element:p.cloneNode()}),p.textContent=V)}return ue(H.afterSanitizeElements,p,null),!1},So=function(p,m,k){if(no[m]||wo(m,p)||ro&&(m==="id"||m==="name")&&(k in a||k in Gd))return!1;const C=U[m]||we.attributeCheck instanceof Function&&we.attributeCheck(m,p);return un&&X(Dd,m)||ao&&X(Pd,m)?!0:C?ho[m]||X(to,et(k,eo,""))||(m==="src"||m==="xlink:href"||m==="href")&&p!=="script"&&Na(k,"data:")===0&&po[p]||oo&&!X(Od,et(k,eo,""))?!0:!k:Vo(p)&&Lt(he.tagNameCheck,p)&&Lt(he.attributeNameCheck,m,p)||m==="is"&&he.allowCustomizedBuiltInElements&&Lt(he.tagNameCheck,k)},e1=R({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Vo=function(p){return!e1[ve(p)]&&X(Hd,p)},t1=function(p,m,k,C){if(z&&typeof u=="object"&&typeof u.getAttributeType=="function"&&!k)switch(u.getAttributeType(p,m)){case"TrustedHTML":return ke(C);case"TrustedScriptURL":return K(C)}return C},n1=function(p,m,k,C){try{k?p.setAttributeNS(k,m,C):p.setAttribute(m,C),Mt(p)?Ee(p):Va(n.removed)}catch{Ae(m,p)}},Bo=function(p){ue(H.beforeSanitizeAttributes,p,null);const m=p.attributes;if(!m||Mt(p))return;U=xo(H.uponSanitizeAttribute,U,mn,$t);const k={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U,forceKeepAttr:void 0};let C=m.length;const V=G(p.nodeName);for(;C--;){const M=m[C],O=M.name,q=M.namespaceURI,te=M.value,ne=G(O),Sn=te;let J=O==="value"?Sn:gc(Sn);if(k.attrName=ne,k.attrValue=J,k.keepAttr=!0,k.forceKeepAttr=void 0,ue(H.uponSanitizeAttribute,p,k),J=k.attrValue,so&&(ne==="id"||ne==="name")&&Na(J,io)!==0&&(Ae(O,p,M),J=io+J),Be&&X(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,J)){Ae(O,p,M);continue}if(ne==="attributename"&&Ba(J,"href")){Ae(O,p,M);continue}if(!k.forceKeepAttr){if(!k.keepAttr){Ae(O,p,M);continue}if(!lo&&X(Ic,J)){Ae(O,p,M);continue}if(Ce&&(J=zt(J)),!So(V,ne,J)){Ae(O,p,M);continue}J=t1(V,ne,q,J),J!==Sn&&n1(p,O,q,J)}}ue(H.afterSanitizeAttributes,p,null)},It=function(p){let m=null;const k=Eo(p);for(ue(H.beforeSanitizeShadowDOM,p,null);m=k.nextNode();)if(ue(H.uponSanitizeShadowNode,m,null),To(m,p),Bo(m),je(m.content)&&It(m.content),j(m)===oe.element){const C=E(m);je(C)&&(Tn(C),It(C))}ue(H.afterSanitizeShadowDOM,p,null)},Tn=function(p){const m=[{node:p,shadow:null}];for(;m.length>0;){const k=m.pop();if(k.shadow){It(k.shadow);continue}const C=k.node,M=j(C)===oe.element,O=$(C);if(O)for(let q=O.length-1;q>=0;--q)m.push({node:O[q],shadow:null});if(M){const q=w?w(C):null;if(typeof q=="string"&&G(q)==="template"){const te=C.content;je(te)&&m.push({node:te,shadow:null})}}if(M){const q=E(C);je(q)&&m.push({node:null,shadow:q},{node:q,shadow:null})}}};return n.sanitize=function(b){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=null,k=null,C=null,V=null;if(_n=!b,_n&&(b="<!-->"),typeof b!="string"&&!lt(b)&&(b=wc(b),typeof b!="string"))throw Ve("dirty is not a string, aborting");if(!n.isSupported)return b;gn?(F=xt,U=$t):xn(p),(H.uponSanitizeElement.length>0||H.uponSanitizeAttribute.length>0)&&(F=ae(F)),H.uponSanitizeAttribute.length>0&&(U=ae(U)),n.removed=[];const M=bn&&typeof b!="string"&<(b);if(M){Xd(b);const te=ee(b);if(typeof te=="string"){const ne=G(te);if(!F[ne]||at[ne])throw Nt(b),Ve("root node is forbidden and cannot be sanitized in-place")}if(Mt(b))throw Nt(b),Ve("root node is clobbered and cannot be sanitized in-place");try{Tn(b)}catch(ne){throw Nt(b),ne}}else if(lt(b))m=Co("<!---->"),k=m.ownerDocument.importNode(b,!0),k.nodeType===oe.element&&k.nodeName==="BODY"||k.nodeName==="HTML"?m=k:m.appendChild(k),Tn(k);else{if(!Pe&&!Ce&&!Ne&&b.indexOf("<")===-1)return z&&St?ke(b):b;if(m=Co(b),!m)return Pe?null:St?N:""}m&&kn&&Ee(m.firstChild);const O=M?b:m;try{const te=Eo(O);for(;C=te.nextNode();)To(C,O),Bo(C),je(C.content)&&It(C.content)}catch(te){throw M&&(Nt(b),Se(n.removed,ne=>{ne.element&&At(ne.element)})),te}if(M)return Se(n.removed,te=>{te.element&&At(te.element)}),Ce&&$n(b),b;if(Pe){if(Ce&&$n(m),Tt)for(V=Ad.call(m.ownerDocument);m.firstChild;)V.appendChild(m.firstChild);else V=m;return(U.shadowroot||U.shadowrootmode)&&(V=Md.call(o,V,!0)),V}let q=Ne?m.outerHTML:m.innerHTML;return Ne&&F["!doctype"]&&m.ownerDocument&&m.ownerDocument.doctype&&m.ownerDocument.doctype.name&&X(zc,m.ownerDocument.doctype.name)&&(q="<!DOCTYPE "+m.ownerDocument.doctype.name+`>
|
|
71
|
-
`+q),Ce&&(q=zt(q)),z&&St?ke(q):q},n.setConfig=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};xn(b),gn=!0,xt=F,$t=U},n.clearConfig=function(){Ue=null,gn=!1,xt=null,$t=null,z=re,N=""},n.isValidAttribute=function(b,p,m){Ue||xn({});const k=G(b),C=G(p);return So(k,C,m)},n.addHook=function(b,p){typeof p=="function"&&v(H,b)&&Je(H[b],p)},n.removeHook=function(b,p){if(v(H,b)){if(p!==void 0){const m=mc(H[b],p);return m===-1?void 0:uc(H[b],m,1)[0]}return Va(H[b])}},n.removeHooks=function(b){v(H,b)&&(H[b]=[])},n.removeAllHooks=function(){H=Fa()},n}var pn=Ua();const wt=typeof pn.sanitize=="function"?pn:pn.default;function Hc(t){const n=t.trim();if(!n)return!1;const a=[/^(好的|已|我|现在|以上|这就是|这是|根据|基于)/,/^(表单|流程|Schema|JSON|数据)\s*(已|已经|已生成|已创建|已更新)/,/已(生成|创建|更新|完成|应用)(好|了)?/,/以上(就是|是)/,/请(查看|确认|检查|参考)/,/希望(这|这个)/];return n.length<100&&a.some(o=>o.test(n))}function ja(t){if(!t)return[{type:"text",content:""}];const n=[],a=/```([\w:+#.-]*)\r?\n([\s\S]*?)```|```([^\n`]*?)```|<schema>([\s\S]*?)<\/schema>/g;let o=0,l,r=!1;for(;(l=a.exec(t))!==null;){const s=t.slice(o,l.index);if(s.trim()&&n.push({type:"text",content:s}),l[0].startsWith("<schema>"))n.push({type:"code",content:(l[4]||"").trim(),language:"json"}),r=!0;else if(l[1]!==void 0){const d=(l[1]||"text").trim()||"text",f=(l[2]||"").replace(/^\n/,"").replace(/\n$/,"");qa(n,d,f)}else qa(n,"text",(l[3]||"").trim());o=l.index+l[0].length}const i=t.slice(o);i.trim()&&(r&&Hc(i)||n.push({type:"text",content:i}));const c=n.filter((s,d)=>s.type!=="text"||s.content.trim()?!0:d>0&&d<n.length-1);return c.length?c:[{type:"text",content:t}]}function qa(t,n,a){if(n.startsWith("artifact:")){const o=n.slice(9);t.push({type:"artifact",content:a,language:o,artifactType:o});return}t.push({type:"code",content:a,language:n})}function Ga(t){if(!t)return"";const a=D.parse(t,{breaks:!0,gfm:!0}).replace(/<table>/g,'<div class="table-scroll"><table>').replace(/<\/table>/g,"</table></div>");return typeof window>"u"||typeof(wt==null?void 0:wt.sanitize)!="function"?a:wt.sanitize(a,{ADD_ATTR:["class"]})}const Fc={class:"apf-message-parts"},Uc=["innerHTML"],jc={class:"apf-artifact-head"},qc={class:"apf-artifact-badge"},Gc={class:"apf-part-actions"},Wc=["onClick"],Yc=["onClick"],Zc={class:"apf-code-block"},Kc={class:"apf-code-head"},Qc={class:"apf-code-lang"},Xc={class:"apf-part-actions"},Jc=["onClick"],vc=["onClick"],e2={class:"apf-code-block"},Wa=L(e.defineComponent({__name:"MessageParts",props:{content:{}},setup(t){const n=t,a=e.computed(()=>ja(n.content||"").map(o));function o(s){if(!((s.language||"").toLowerCase()==="json"||s.artifactType==="json"||l(s.content)))return{...s,display:s.content,isJson:!1};try{const u=JSON.parse(s.content);return{...s,language:s.language||"json",display:JSON.stringify(u,null,2),isJson:!0}}catch{return{...s,display:s.content,isJson:!1}}}function l(s){const d=s.trim();return d.startsWith("{")&&d.endsWith("}")||d.startsWith("[")&&d.endsWith("]")}function r(s){return s.type==="artifact"?s.artifactType||"artifact":s.isJson?"json":s.language&&s.language!=="text"?s.language:"code"}function i(s){var d;s&&((d=navigator.clipboard)==null||d.writeText(s))}function c(s){const d=s.isJson||s.language==="json"?"json":s.language&&s.language!=="text"?s.language.replace(/[^a-z0-9]+/gi,""):"txt",f=new Blob([s.display],{type:"text/plain;charset=utf-8"}),u=URL.createObjectURL(f),h=document.createElement("a");h.href=u,h.download=`result.${d||"txt"}`,h.click(),URL.revokeObjectURL(u)}return(s,d)=>(e.openBlock(),e.createElementBlock("div",Fc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(f,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:u},[f.type==="text"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"apf-md-block",innerHTML:e.unref(Ga)(f.content)},null,8,Uc)):f.type==="artifact"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["apf-artifact-card",{"apf-json":f.isJson}])},[e.createElementVNode("div",jc,[e.createElementVNode("span",qc,"工件 · "+e.toDisplayString(r(f)),1),e.createElementVNode("div",Gc,[e.createElementVNode("button",{class:"apf-icon-btn",type:"button","aria-label":"复制",onClick:h=>i(f.display)},[...d[0]||(d[0]=[e.createElementVNode("svg",{viewBox:"0 0 16 16",width:"13",height:"13"},[e.createElementVNode("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5",fill:"none",stroke:"currentColor","stroke-width":"1.4"}),e.createElementVNode("path",{d:"M3.5 10.5V3.5h7",fill:"none",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round"})],-1)])],8,Wc),e.createElementVNode("button",{class:"apf-icon-btn",type:"button","aria-label":"下载",onClick:h=>c(f)},[...d[1]||(d[1]=[e.createElementVNode("svg",{viewBox:"0 0 16 16",width:"13",height:"13"},[e.createElementVNode("path",{d:"M8 2.5v7.2M5.2 7.5 8 10.3l2.8-2.8M3.5 13h9",fill:"none",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,Yc)])]),e.createElementVNode("pre",Zc,[e.createElementVNode("code",null,e.toDisplayString(f.display),1)])],2)):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["apf-code-wrap",{"apf-json":f.isJson}])},[e.createElementVNode("div",Kc,[e.createElementVNode("span",Qc,e.toDisplayString(r(f)),1),e.createElementVNode("div",Xc,[e.createElementVNode("button",{class:"apf-icon-btn",type:"button","aria-label":"复制",onClick:h=>i(f.display)},[...d[2]||(d[2]=[e.createElementVNode("svg",{viewBox:"0 0 16 16",width:"13",height:"13"},[e.createElementVNode("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5",fill:"none",stroke:"currentColor","stroke-width":"1.4"}),e.createElementVNode("path",{d:"M3.5 10.5V3.5h7",fill:"none",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round"})],-1)])],8,Jc),e.createElementVNode("button",{class:"apf-icon-btn",type:"button","aria-label":"下载",onClick:h=>c(f)},[...d[3]||(d[3]=[e.createElementVNode("svg",{viewBox:"0 0 16 16",width:"13",height:"13"},[e.createElementVNode("path",{d:"M8 2.5v7.2M5.2 7.5 8 10.3l2.8-2.8M3.5 13h9",fill:"none",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,vc)])]),e.createElementVNode("pre",e2,[e.createElementVNode("code",null,e.toDisplayString(f.display),1)])],2))],64))),128))]))}}),[["__scopeId","data-v-ed1039e3"]]),t2={key:0,class:"apf-att-list"},n2=["onClick"],a2=["src","alt"],o2=["onClick"],l2={class:"apf-att-badge"},r2={class:"apf-att-meta"},Ya=L(e.defineComponent({__name:"MessageAttachmentList",props:{attachments:{}},emits:["preview"],setup(t,{emit:n}){const a=t,o=n,l=e.computed(()=>a.attachments.filter(Me)),r=e.computed(()=>a.attachments.filter(i=>!Me(i)));return(i,c)=>{var s;return(s=t.attachments)!=null&&s.length?(e.openBlock(),e.createElementBlock("div",t2,[l.value.length?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["apf-image-grid",{"apf-multi":l.value.length>1}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,d=>(e.openBlock(),e.createElementBlock("button",{key:d.id,type:"button",class:"apf-att-image",onClick:f=>o("preview",d)},[e.createElementVNode("img",{src:d.url,alt:d.filename,loading:"lazy"},null,8,a2)],8,n2))),128))],2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,d=>(e.openBlock(),e.createElementBlock("button",{key:d.id,type:"button",class:"apf-att-file",onClick:f=>o("preview",d)},[e.createElementVNode("span",l2,e.toDisplayString(e.unref(Wt)(d)),1),e.createElementVNode("span",r2,[e.createElementVNode("strong",null,e.toDisplayString(d.filename),1),e.createElementVNode("small",null,[d.size?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(mt)(d.size)),1)],64)):e.createCommentVNode("",!0),e.unref(Ye)(d)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" · 点击预览")],64)):e.unref(la)(d)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" · 点击查看")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createTextVNode(" · 点击打开")],64))])])],8,o2))),128))])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-d851b768"]]),s2={key:0,class:"apf-doc-list"},i2=["role","tabindex","onClick","onKeydown"],c2={class:"apf-doc-body"},d2={class:"apf-doc-name"},p2={class:"apf-doc-summary"},f2={key:0,class:"apf-doc-meta"},Za=L(e.defineComponent({__name:"DocumentSummaryList",props:{summaries:{},attachments:{}},emits:["preview"],setup(t,{emit:n}){const a=t,o=n;function l(c){var d;if(!((d=a.attachments)!=null&&d.length))return null;const s=(c.filename||"").toLowerCase();return a.attachments.find(f=>(f.filename||"").toLowerCase()===s)||null}function r(c){const s=l(c);s&&o("preview",s)}function i(c){return l(c)!==null}return(c,s)=>{var d;return(d=t.summaries)!=null&&d.length?(e.openBlock(),e.createElementBlock("div",s2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.summaries,f=>(e.openBlock(),e.createElementBlock("article",{key:f.documentId,class:e.normalizeClass(["apf-doc-card",{"apf-clickable":i(f)}]),role:i(f)?"button":void 0,tabindex:i(f)?0:void 0,onClick:u=>r(f),onKeydown:[e.withKeys(u=>r(f),["enter"]),e.withKeys(e.withModifiers(u=>r(f),["prevent"]),["space"])]},[s[0]||(s[0]=e.createElementVNode("div",{class:"apf-doc-icon"},[e.createElementVNode("svg",{viewBox:"0 0 16 16",width:"14",height:"14"},[e.createElementVNode("path",{d:"M4 2.5h5.2L12 5.3V13.5H4V2.5Z",fill:"none",stroke:"currentColor","stroke-width":"1.3","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M9.2 2.5V5.3H12",fill:"none",stroke:"currentColor","stroke-width":"1.3","stroke-linejoin":"round"})])],-1)),e.createElementVNode("div",c2,[e.createElementVNode("strong",d2,e.toDisplayString(f.filename),1),e.createElementVNode("p",p2,e.toDisplayString(f.summary),1),f.pageCount?(e.openBlock(),e.createElementBlock("span",f2,e.toDisplayString(f.pageCount)+" 页",1)):e.createCommentVNode("",!0)])],42,i2))),128))])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-a5548a3c"]]),h2={class:"apf-bubble-wrap"},m2={key:0,class:"apf-tip"},u2={key:1,class:"apf-typing"},g2={key:2,class:"apf-result-wrap"},k2={key:3,class:"apf-inline-progress"},y2={key:0,class:"apf-result-actions"},b2={key:1,class:"apf-fail-actions"},_2={key:3,class:"apf-bubble apf-waiting-hint"},w2={key:4,class:"apf-bubble apf-failed-hint"},C2={key:5,class:"apf-bubble apf-cancelled-hint"},E2=["aria-expanded"],x2={key:0,class:"apf-live-dot"},$2={class:"apf-detail-collapse"},T2={class:"apf-detail-collapse-inner"},S2=["aria-expanded"],V2={class:"apf-detail-collapse"},B2={class:"apf-detail-collapse-inner"},N2={key:9,class:"apf-chip apf-chip-success"},A2={class:"apf-approval-head"},z2={key:0,class:"apf-approval-danger-tag"},M2={class:"apf-approval-prompt"},L2={class:"apf-approval-actions"},I2=["disabled","onClick"],Ka=L(e.defineComponent({__name:"MessageBubble",props:{message:{},run:{},sending:{type:Boolean},brandMark:{}},emits:["resume","cancel","retry","open-process","preview"],setup(t,{emit:n}){const a=t,o=n,l=e.computed(()=>a.message.role==="user"),r=e.computed(()=>a.message.role==="assistant");function i(z){return{PENDING:"排队中",RUNNING:"正在处理",WAITING_INPUT:"等待你的确认",COMPLETED:"已完成",FAILED:"处理失败",CANCELLED:"已取消"}[z]||z}function c(z){return{RUNNING:"apf-chip-running",WAITING_INPUT:"apf-chip-waiting",COMPLETED:"apf-chip-success",FAILED:"apf-chip-failed",CANCELLED:"apf-chip-cancelled"}[z]||"apf-chip-cancelled"}const s=[{action:"approve",label:"确认继续",style:"primary"},{action:"reject",label:"需要修改",style:"danger"}],d=e.computed(()=>{var N,re;if(a.message.status!=="WAITING_INPUT")return null;const z=(N=a.run)==null?void 0:N.waiting;if(z){const pe=(re=z.actions)!=null&&re.length?z.actions:s;return{prompt:z.prompt||"请确认后继续。",fields:z.fields||[],actions:pe,dangerous:!!z.dangerous}}return{prompt:"请确认后继续。",fields:[],actions:s,dangerous:!1}}),f=e.computed(()=>a.message.content||""),u=e.computed(()=>{var z;return r.value&&a.message.status==="RUNNING"&&!f.value&&!((z=a.message.attachments)!=null&&z.length)}),h=e.computed(()=>{var z,N;return!!f.value||!!((z=a.message.documentSummaries)!=null&&z.length)||!!((N=a.message.attachments)!=null&&N.length)}),x=e.computed(()=>l.value?"apf-user":a.message.status==="WAITING_INPUT"?"apf-waiting":a.message.status==="FAILED"?"apf-failed":""),g=e.ref("");function A(z){o("resume",z,g.value||void 0),g.value=""}function $(){var N;const z=f.value||a.message.content;z&&((N=navigator.clipboard)==null||N.writeText(z))}function T(){const z=f.value||a.message.content;if(!z)return;const N=new Blob([z],{type:"text/markdown;charset=utf-8"}),re=URL.createObjectURL(N),pe=document.createElement("a");pe.href=re,pe.download="reply.md",pe.click(),URL.revokeObjectURL(re)}function E(z){return z.error?"失败":z.result!==void 0?"已完成":"处理中"}const S=e.ref(!1),_=e.ref(!1),w=e.ref(!1),B=e.computed(()=>r.value&&a.message.status==="RUNNING"&&!!a.message.thinking);e.watch(()=>{var z;return[a.message.status,!!((z=a.message.thinking)!=null&&z.trim())]},([z,N])=>{if(!N){S.value=!1,_.value=!1;return}if(z==="RUNNING"){S.value=!0,_.value=!1;return}_.value||(S.value=!1)},{immediate:!0});function j(){S.value=!S.value,_.value=!0}function ee(){w.value=!w.value}return(z,N)=>{var re,pe,_e,nt,ke;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["apf-message",[t.message.role,t.message.status&&r.value?`apf-st-${t.message.status}`:""]])},[r.value&&t.brandMark?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.brandMark),{key:0,variant:"ai",size:"sm"})):e.createCommentVNode("",!0),e.createElementVNode("div",h2,[r.value&&t.message.tip?(e.openBlock(),e.createElementBlock("p",m2,e.toDisplayString(t.message.tip),1)):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createElementBlock("div",u2,[...N[4]||(N[4]=[e.createElementVNode("span",{class:"apf-status-text"},"正在处理",-1),e.createElementVNode("span",{class:"apf-dots"},[e.createElementVNode("i"),e.createElementVNode("i"),e.createElementVNode("i")],-1)])])):h.value?(e.openBlock(),e.createElementBlock("div",g2,[e.createElementVNode("div",{class:e.normalizeClass(["apf-bubble apf-message-content",x.value])},[(re=t.message.attachments)!=null&&re.length?(e.openBlock(),e.createBlock(Ya,{key:0,attachments:t.message.attachments,onPreview:N[0]||(N[0]=K=>o("preview",K))},null,8,["attachments"])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createBlock(Wa,{key:1,content:f.value},null,8,["content"])):e.createCommentVNode("",!0),(pe=t.message.documentSummaries)!=null&&pe.length?(e.openBlock(),e.createBlock(Za,{key:2,summaries:t.message.documentSummaries,onPreview:N[1]||(N[1]=K=>o("preview",K))},null,8,["summaries"])):e.createCommentVNode("",!0),r.value&&t.message.status==="RUNNING"&&f.value?(e.openBlock(),e.createElementBlock("p",k2,"仍在处理…")):e.createCommentVNode("",!0)],2),r.value&&t.message.status==="COMPLETED"?(e.openBlock(),e.createElementBlock("div",y2,[e.createElementVNode("button",{class:"apf-icon-btn",type:"button","aria-label":"复制",onClick:$},[...N[5]||(N[5]=[e.createElementVNode("svg",{viewBox:"0 0 16 16",width:"14",height:"14"},[e.createElementVNode("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5",fill:"none",stroke:"currentColor","stroke-width":"1.4"}),e.createElementVNode("path",{d:"M3.5 10.5V3.5h7",fill:"none",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round"})],-1)])]),e.createElementVNode("button",{class:"apf-icon-btn",type:"button","aria-label":"下载",onClick:T},[...N[6]||(N[6]=[e.createElementVNode("svg",{viewBox:"0 0 16 16",width:"14",height:"14"},[e.createElementVNode("path",{d:"M8 2.5v7.2M5.2 7.5 8 10.3l2.8-2.8M3.5 13h9",fill:"none",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])]),t.message.thinking||(_e=t.message.toolCalls)!=null&&_e.length?(e.openBlock(),e.createElementBlock("button",{key:0,class:"apf-text-link",type:"button",onClick:N[2]||(N[2]=K=>o("open-process"))},"处理信息")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),r.value&&t.message.status==="FAILED"?(e.openBlock(),e.createElementBlock("div",b2,[e.createElementVNode("button",{class:"apf-icon-btn",type:"button","aria-label":"重试",onClick:N[3]||(N[3]=K=>o("retry"))},[...N[7]||(N[7]=[e.createElementVNode("svg",{viewBox:"0 0 16 16",width:"14",height:"14"},[e.createElementVNode("path",{d:"M3.2 8a4.8 4.8 0 0 1 8.3-3.2",fill:"none",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round"}),e.createElementVNode("path",{d:"M12.8 8a4.8 4.8 0 0 1-8.3 3.2",fill:"none",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round"}),e.createElementVNode("path",{d:"M11.2 2.6v2.6h-2.6M4.8 13.4v-2.6h2.6",fill:"none",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])])])):e.createCommentVNode("",!0)])):r.value&&t.message.status==="WAITING_INPUT"&&!h.value?(e.openBlock(),e.createElementBlock("div",_2,"请在下方确认后继续。")):r.value&&t.message.status==="FAILED"&&!h.value?(e.openBlock(),e.createElementBlock("div",w2,"处理失败")):r.value&&t.message.status==="CANCELLED"&&!h.value?(e.openBlock(),e.createElementBlock("div",C2,"已取消")):e.createCommentVNode("",!0),r.value&&((nt=t.message.thinking)!=null&&nt.trim())?(e.openBlock(),e.createElementBlock("div",{key:6,class:e.normalizeClass(["apf-detail-block",{open:S.value,streaming:B.value}])},[e.createElementVNode("button",{type:"button",class:"apf-detail-summary","aria-expanded":S.value,onClick:j},[N[8]||(N[8]=e.createElementVNode("span",{class:"apf-chevron"},null,-1)),N[9]||(N[9]=e.createElementVNode("span",null,"思考过程",-1)),B.value?(e.openBlock(),e.createElementBlock("span",x2)):e.createCommentVNode("",!0)],8,E2),e.createElementVNode("div",$2,[e.createElementVNode("div",T2,[e.createElementVNode("div",{class:e.normalizeClass(["apf-detail-content",{streaming:B.value}])},e.toDisplayString(t.message.thinking),3)])])],2)):e.createCommentVNode("",!0),r.value&&((ke=t.message.toolCalls)!=null&&ke.length)?(e.openBlock(),e.createElementBlock("div",{key:7,class:e.normalizeClass(["apf-detail-block",{open:w.value}])},[e.createElementVNode("button",{type:"button",class:"apf-detail-summary","aria-expanded":w.value,onClick:ee},[N[10]||(N[10]=e.createElementVNode("span",{class:"apf-chevron"},null,-1)),e.createElementVNode("span",null,"处理步骤("+e.toDisplayString(t.message.toolCalls.length)+")",1)],8,S2),e.createElementVNode("div",V2,[e.createElementVNode("div",B2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.message.toolCalls,K=>(e.openBlock(),e.createElementBlock("div",{key:K.id||K.name,class:"apf-tool-row"},[e.createElementVNode("strong",null,e.toDisplayString(K.name),1),e.createElementVNode("span",{class:e.normalizeClass({"apf-err":!!K.error})},e.toDisplayString(E(K)),3)]))),128))])])],2)):e.createCommentVNode("",!0),r.value&&t.message.status!=="COMPLETED"&&t.message.status!=="CANCELLED"?(e.openBlock(),e.createElementBlock("span",{key:8,class:e.normalizeClass(["apf-chip",c(t.message.status)])},[N[11]||(N[11]=e.createElementVNode("i",null,null,-1)),e.createTextVNode(e.toDisplayString(i(t.message.status)),1)],2)):r.value&&t.message.status==="COMPLETED"?(e.openBlock(),e.createElementBlock("span",N2,[...N[12]||(N[12]=[e.createElementVNode("i",null,null,-1),e.createTextVNode("已完成",-1)])])):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock("div",{key:10,class:e.normalizeClass(["apf-inline-approval",{"apf-dangerous-approval":d.value.dangerous}])},[e.createElementVNode("div",A2,[N[13]||(N[13]=e.createElementVNode("span",{class:"apf-approval-title"},"需要你的确认",-1)),d.value.dangerous?(e.openBlock(),e.createElementBlock("span",z2,"需谨慎")):e.createCommentVNode("",!0)]),e.createElementVNode("p",M2,e.toDisplayString(d.value.prompt),1),e.createElementVNode("div",L2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.actions,K=>(e.openBlock(),e.createElementBlock("button",{key:K.action,type:"button",class:e.normalizeClass(["apf-approval-btn",K.style==="danger"?"apf-approval-btn-danger":"apf-approval-btn-primary"]),disabled:t.sending,onClick:Ja=>A(K.action)},e.toDisplayString(K.label),11,I2))),128))])],2)):e.createCommentVNode("",!0)])],2)}}}),[["__scopeId","data-v-a82d00ca"]]),R2={key:0,class:"apf-skeleton-line"},D2=L(e.defineComponent({__name:"MessageList",props:{messages:{},loading:{type:Boolean},currentRun:{},sending:{type:Boolean},brandMark:{}},emits:["resume","cancel","retry","open-process","preview"],setup(t,{emit:n}){const a=t,o=n,l=e.ref(null);e.watch(()=>a.messages.length,async()=>{await e.nextTick(),l.value&&(l.value.scrollTop=l.value.scrollHeight)},{flush:"post"}),e.watch(()=>a.messages.map(i=>`${i.id}:${i.status}:${(i.content||"").length}`).join("|"),async()=>{await e.nextTick(),l.value&&(l.value.scrollTop=l.value.scrollHeight)},{flush:"post"});function r(i){return!a.currentRun||!i.runtimeExecutionId?null:a.currentRun.runtimeExecutionId===i.runtimeExecutionId?a.currentRun:null}return(i,c)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"container",ref:l,class:"apf-message-list"},[t.loading&&!t.messages.length?(e.openBlock(),e.createElementBlock("div",R2,[...c[4]||(c[4]=[e.createElementVNode("div",{class:"apf-skeleton",style:{height:"var(--icon-size-sm, 14px)",width:"60%"}},null,-1),e.createElementVNode("div",{class:"apf-skeleton",style:{height:"var(--icon-size-sm, 14px)",width:"45%","margin-top":"var(--spacing-sm, 8px)"}},null,-1)])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.messages,s=>(e.openBlock(),e.createBlock(Ka,{key:s.id,message:s,run:r(s),sending:!!t.sending,"brand-mark":t.brandMark,onResume:c[0]||(c[0]=(d,f)=>o("resume",d,f)),onCancel:c[1]||(c[1]=d=>o("cancel")),onRetry:c[2]||(c[2]=d=>o("retry")),onOpenProcess:d=>o("open-process",s),onPreview:c[3]||(c[3]=d=>o("preview",d))},null,8,["message","run","sending","brand-mark","onOpenProcess"]))),128))],512))}}),[["__scopeId","data-v-2dbe38cf"]]),P2={key:0,class:"apf-pending-list"},O2=["src"],H2={class:"apf-pending-name"},F2={key:1,class:"apf-pending-status"},U2={key:2,class:"apf-pending-status apf-error"},j2=["onClick"],q2=["placeholder","disabled"],G2={class:"apf-composer-footer"},W2={class:"apf-composer-tools"},Y2=["disabled"],Z2=["disabled"],K2={class:"apf-composer-meta"},Q2={class:"apf-cap-row"},X2={key:0,class:"apf-cap-chip"},J2={key:1,class:"apf-cap-chip"},v2={class:"apf-meta-right"},e0=L(e.defineComponent({__name:"Composer",props:{disabled:{type:Boolean},placeholder:{},supportedInputs:{},hitlCapable:{type:Boolean},wsStatus:{},wsLabel:{}},emits:["send","upload","remove-attachment","ws-click"],setup(t,{emit:n}){const a=t,o=n,l=e.ref(""),r=e.ref(null),i=e.ref(null),c=e.ref([]),s=e.ref(!1),d=e.computed(()=>a.supportedInputs||["text"]),f=e.computed(()=>d.value.some(E=>E==="file"||E==="image"||E==="document")),u=e.computed(()=>{if(a.disabled||s.value)return!1;const E=!!l.value.trim(),S=c.value.some(w=>w.status==="done"),_=c.value.some(w=>w.status==="uploading");return(E||S)&&!_});function h(){var E;a.disabled||!f.value||(E=i.value)==null||E.click()}function x(E){const S=E.target,_=S.files;if(_!=null&&_.length){for(const w of Array.from(_))o("upload",w);S.value=""}}function g(E){const S=c.value.find(_=>_.id===E);S!=null&&S.previewUrl&&URL.revokeObjectURL(S.previewUrl),c.value=c.value.filter(_=>_.id!==E),o("remove-attachment",E)}async function A(){if(!u.value)return;const E=l.value.trim(),S=c.value.filter(_=>_.status==="done").map(_=>_.id);o("send",E,S),l.value="",c.value.forEach(_=>{_.previewUrl&&URL.revokeObjectURL(_.previewUrl)}),c.value=[],await e.nextTick(),r.value&&(r.value.style.height="auto")}function $(E){const S=E.target;S.style.height="auto",S.style.height=Math.min(S.scrollHeight,220)+"px"}function T(E){E.key==="Enter"&&!E.shiftKey&&(E.preventDefault(),A())}return e.onBeforeUnmount(()=>{c.value.forEach(E=>{E.previewUrl&&URL.revokeObjectURL(E.previewUrl)})}),(E,S)=>(e.openBlock(),e.createElementBlock("form",{class:"apf-composer",onSubmit:e.withModifiers(A,["prevent"])},[e.createElementVNode("div",{class:e.normalizeClass(["apf-composer-field",{"apf-disabled":t.disabled}])},[c.value.length?(e.openBlock(),e.createElementBlock("div",P2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,_=>(e.openBlock(),e.createElementBlock("div",{key:_.id,class:e.normalizeClass(["apf-pending-chip",_.status])},[_.previewUrl?(e.openBlock(),e.createElementBlock("img",{key:0,src:_.previewUrl,alt:"",class:"apf-pending-thumb"},null,8,O2)):e.createCommentVNode("",!0),e.createElementVNode("span",H2,e.toDisplayString(_.filename),1),_.status==="uploading"?(e.openBlock(),e.createElementBlock("span",F2,"上传中")):_.status==="error"?(e.openBlock(),e.createElementBlock("span",U2,e.toDisplayString(_.error||"失败"),1)):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:"apf-pending-remove",onClick:w=>g(_.id)},"×",8,j2)],2))),128))])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("textarea",{ref_key:"textareaRef",ref:r,"onUpdate:modelValue":S[0]||(S[0]=_=>l.value=_),placeholder:t.placeholder||"输入消息…",disabled:t.disabled,onInput:$,onKeydown:T},null,40,q2),[[e.vModelText,l.value]]),e.createElementVNode("div",G2,[e.createElementVNode("div",W2,[e.renderSlot(E.$slots,"tools",{},void 0,!0),e.createElementVNode("input",{ref_key:"fileInputRef",ref:i,type:"file",class:"apf-file-input",multiple:"",accept:"image/*,.pdf,.txt,.md,.csv,.json,.doc,.docx,.xls,.xlsx",onChange:x},null,544),f.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:"apf-cap-btn",type:"button","aria-label":"添加文件",disabled:t.disabled||s.value,onClick:h},[...S[2]||(S[2]=[e.createElementVNode("svg",{viewBox:"0 0 16 16",width:"14",height:"14"},[e.createElementVNode("path",{d:"M9.2 2.8 4.4 7.6a2.6 2.6 0 0 0 3.7 3.7l5.2-5.2a1.8 1.8 0 0 0-2.5-2.5L5.6 8.8",fill:"none",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,Y2)):e.createCommentVNode("",!0)]),e.createElementVNode("button",{type:"submit",class:"apf-send-btn",disabled:!u.value,title:"发送"},"↗",8,Z2)])],2),e.createElementVNode("div",K2,[e.createElementVNode("div",Q2,[S[3]||(S[3]=e.createElementVNode("span",{class:"apf-cap-chip"},"文本",-1)),f.value?(e.openBlock(),e.createElementBlock("span",X2,"文件")):e.createCommentVNode("",!0),t.hitlCapable?(e.openBlock(),e.createElementBlock("span",J2,"需要确认")):e.createCommentVNode("",!0)]),e.createElementVNode("div",v2,[t.wsStatus?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:e.normalizeClass(["apf-ws-status",t.wsStatus]),onClick:S[1]||(S[1]=_=>o("ws-click"))},[...S[4]||(S[4]=[e.createElementVNode("i",{class:"apf-ws-dot"},null,-1)])],2)):e.createCommentVNode("",!0),S[5]||(S[5]=e.createElementVNode("small",{class:"apf-hint"},"Enter 发送 · Shift+Enter 换行",-1))])])],32))}}),[["__scopeId","data-v-45ece43f"]]),t0={key:0,class:"apf-run-bar"},n0={class:"apf-row"},a0={key:0,class:"apf-elapsed"},o0={key:0,class:"apf-error-text"},Qa=L(e.defineComponent({__name:"RunStatusBar",props:{run:{},sending:{type:Boolean}},emits:["cancel"],setup(t,{emit:n}){const a=t,o=n,l=e.computed(()=>{var s;return((s=a.run)==null?void 0:s.status)||null});function r(s){return{RUNNING:"正在处理",COMPLETED:"已完成",FAILED:"处理失败",WAITING_INPUT:"等待你的确认",CANCELLED:"已取消"}[s]||s}function i(s){return{RUNNING:"apf-running",COMPLETED:"apf-success",FAILED:"apf-failed",WAITING_INPUT:"apf-waiting",CANCELLED:"apf-cancelled"}[s]||""}function c(){if(!a.run)return"";const s=new Date(a.run.startedAt).getTime(),d=a.run.finishedAt?new Date(a.run.finishedAt).getTime():Date.now(),f=Math.round((d-s)/1e3);return f<60?f+"s":Math.floor(f/60)+"m "+f%60+"s"}return(s,d)=>t.run?(e.openBlock(),e.createElementBlock("div",t0,[e.createElementVNode("div",n0,[e.createElementVNode("span",{class:e.normalizeClass(["apf-chip",i(l.value||"")])},[d[1]||(d[1]=e.createElementVNode("i",null,null,-1)),e.createTextVNode(e.toDisplayString(r(l.value||"")),1)],2),l.value==="RUNNING"||l.value==="WAITING_INPUT"?(e.openBlock(),e.createElementBlock("span",a0,e.toDisplayString(c()),1)):e.createCommentVNode("",!0),l.value==="RUNNING"?(e.openBlock(),e.createElementBlock("button",{key:1,class:"apf-btn-cancel",onClick:d[0]||(d[0]=f=>o("cancel"))},"停止")):e.createCommentVNode("",!0)]),t.run.errorMessage?(e.openBlock(),e.createElementBlock("p",o0,e.toDisplayString(t.run.errorMessage),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-33963f1d"]]),l0={class:"apf-header"},r0={key:0,class:"apf-danger-tag"},s0={class:"apf-prompt"},i0=["placeholder"],c0=["value"],d0=["placeholder"],p0={class:"apf-actions"},f0=["disabled","onClick"],h0=L(e.defineComponent({__name:"ApprovalCard",props:{waiting:{},disabled:{type:Boolean}},emits:["resume"],setup(t,{emit:n}){const a=n,o=e.ref("");function l(r){a("resume",r,o.value||void 0),o.value=""}return(r,i)=>t.waiting?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["apf-approval-card",{"apf-dangerous":t.waiting.dangerous}])},[e.createElementVNode("div",l0,[i[3]||(i[3]=e.createElementVNode("span",{class:"apf-title"},"需要你的操作",-1)),t.waiting.dangerous?(e.openBlock(),e.createElementBlock("span",r0,"危险操作")):e.createCommentVNode("",!0)]),e.createElementVNode("p",s0,e.toDisplayString(t.waiting.prompt),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.waiting.fields,c=>(e.openBlock(),e.createElementBlock("div",{key:c.key,class:"apf-field"},[e.createElementVNode("label",null,e.toDisplayString(c.label),1),c.type==="textarea"?e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:0,"onUpdate:modelValue":i[0]||(i[0]=s=>o.value=s),placeholder:"请输入"+c.label,rows:"2"},null,8,i0)),[[e.vModelText,o.value]]):c.type==="select"&&c.options.length?e.withDirectives((e.openBlock(),e.createElementBlock("select",{key:1,"onUpdate:modelValue":i[1]||(i[1]=s=>o.value=s)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.options,s=>(e.openBlock(),e.createElementBlock("option",{key:s,value:s},e.toDisplayString(s),9,c0))),128))],512)),[[e.vModelSelect,o.value]]):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:2,"onUpdate:modelValue":i[2]||(i[2]=s=>o.value=s),placeholder:"请输入"+c.label},null,8,d0)),[[e.vModelText,o.value]])]))),128)),e.createElementVNode("div",p0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.waiting.actions,c=>(e.openBlock(),e.createElementBlock("button",{key:c.action,class:e.normalizeClass(["apf-btn",c.style==="danger"?"apf-btn-danger":"apf-btn-primary"]),disabled:t.disabled,onClick:s=>l(c.action)},e.toDisplayString(c.label),11,f0))),128))])],2)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-eef9b412"]]),m0=["aria-label"],u0={class:"apf-preview-head"},g0={class:"apf-preview-title"},k0={class:"apf-preview-actions"},y0=["href"],b0={key:0,class:"apf-preview-body apf-preview-body-image"},_0=["src","alt"],w0={key:3,class:"apf-gallery-counter"},C0={key:1,class:"apf-preview-body apf-preview-body-pdf"},E0=["src","title"],x0={key:2,class:"apf-preview-body apf-preview-body-degraded"},$0={class:"apf-degraded-content"},T0={class:"apf-degraded-badge"},S0={class:"apf-degraded-filename"},V0={key:0,class:"apf-degraded-size"},B0=["href"],N0=L(e.defineComponent({__name:"AttachmentPreviewModal",props:{modelValue:{type:Boolean},attachment:{},gallery:{}},emits:["update:modelValue","update:attachment"],setup(t,{emit:n}){const a=t,o=n,l=e.computed({get:()=>a.modelValue,set:w=>o("update:modelValue",w)});function r(w){return w.url||""}const i=e.computed(()=>a.attachment?Me(a.attachment):!1),c=e.computed(()=>a.attachment?Ye(a.attachment):!1),s=e.computed(()=>{var B;return((B=a.gallery)!=null&&B.length?a.gallery:a.attachment?[a.attachment]:[]).filter(Me)}),d=e.computed(()=>!s.value.length||!a.attachment?-1:s.value.findIndex(w=>{var B;return w.id===((B=a.attachment)==null?void 0:B.id)})),f=e.computed(()=>d.value>0),u=e.computed(()=>d.value>=0&&d.value<s.value.length-1),h=e.ref(null),x=e.ref(null),g=e.ref(null);function A(){l.value=!1}function $(){if(!f.value)return;const w=s.value[d.value-1];w&&o("update:attachment",w)}function T(){if(!u.value)return;const w=s.value[d.value+1];w&&o("update:attachment",w)}function E(w){if(l.value){if(w.key==="Escape"){w.preventDefault(),A();return}if(w.key==="ArrowLeft"&&f.value){w.preventDefault(),$();return}if(w.key==="ArrowRight"&&u.value){w.preventDefault(),T();return}if(w.key==="Tab"&&h.value){const B=h.value.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(B.length===0)return;const j=B[0],ee=B[B.length-1];w.shiftKey&&document.activeElement===j?(w.preventDefault(),ee.focus()):!w.shiftKey&&document.activeElement===ee&&(w.preventDefault(),j.focus())}}}e.watch(l,w=>{w?(g.value=document.activeElement,requestAnimationFrame(()=>{var B;return(B=x.value)==null?void 0:B.focus()}),document.addEventListener("keydown",E)):(document.removeEventListener("keydown",E),g.value&&(g.value.focus(),g.value=null))}),e.onUnmounted(()=>document.removeEventListener("keydown",E));function S(w){w.target===w.currentTarget&&A()}function _(w){w.stopPropagation()}return(w,B)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[l.value&&t.attachment?(e.openBlock(),e.createElementBlock("div",{key:0,class:"apf-preview-mask",role:"dialog","aria-modal":"true","aria-label":`预览 ${t.attachment.filename}`,onClick:S},[e.createElementVNode("div",{ref_key:"panelRef",ref:h,class:e.normalizeClass(["apf-preview-panel",{"apf-preview-image":i.value,"apf-preview-pdf":c.value,"apf-preview-degraded":!i.value&&!c.value}]),onClick:_},[e.createElementVNode("header",u0,[e.createElementVNode("strong",g0,e.toDisplayString(t.attachment.filename),1),e.createElementVNode("div",k0,[r(t.attachment)?(e.openBlock(),e.createElementBlock("a",{key:0,href:r(t.attachment),target:"_blank",rel:"noopener",class:"apf-preview-action-btn"},e.toDisplayString(c.value?"新窗口打开":i.value?"打开原图":"打开/下载"),9,y0)):e.createCommentVNode("",!0),e.createElementVNode("button",{ref_key:"closeBtnRef",ref:x,type:"button",class:"apf-preview-action-btn","aria-label":"关闭预览",onClick:A}," 关闭 ",512)])]),i.value?(e.openBlock(),e.createElementBlock("div",b0,[f.value?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"apf-gallery-btn apf-gallery-prev","aria-label":"上一张图片",onClick:$}," ‹ ")):e.createCommentVNode("",!0),r(t.attachment)?(e.openBlock(),e.createElementBlock("img",{key:1,src:r(t.attachment),alt:t.attachment.filename,class:"apf-preview-img"},null,8,_0)):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:"apf-gallery-btn apf-gallery-next","aria-label":"下一张图片",onClick:T}," › ")):e.createCommentVNode("",!0),s.value.length>1?(e.openBlock(),e.createElementBlock("div",w0,e.toDisplayString(d.value+1)+" / "+e.toDisplayString(s.value.length),1)):e.createCommentVNode("",!0)])):c.value?(e.openBlock(),e.createElementBlock("div",C0,[r(t.attachment)?(e.openBlock(),e.createElementBlock("iframe",{key:0,src:r(t.attachment),title:t.attachment.filename,class:"apf-pdf-frame"},null,8,E0)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",x0,[e.createElementVNode("div",$0,[e.createElementVNode("span",T0,e.toDisplayString(e.unref(Wt)(t.attachment)),1),e.createElementVNode("strong",S0,e.toDisplayString(t.attachment.filename),1),t.attachment.size?(e.openBlock(),e.createElementBlock("p",V0,e.toDisplayString(e.unref(mt)(t.attachment.size)),1)):e.createCommentVNode("",!0),B[0]||(B[0]=e.createElementVNode("p",{class:"apf-degraded-hint"},"此格式暂不支持应用内预览",-1)),r(t.attachment)?(e.openBlock(),e.createElementBlock("a",{key:1,href:r(t.attachment),target:"_blank",rel:"noopener",class:"apf-preview-action-btn apf-preview-action-primary"}," 打开/下载 ",8,B0)):e.createCommentVNode("",!0)])]))],2)],8,m0)):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-40702673"]]),A0={class:"apf-session-sidebar","aria-label":"会话列表"},z0={class:"apf-session-sidebar__head"},M0={class:"apf-session-sidebar__list"},L0=["onClick"],I0={class:"apf-session-sidebar__item-title"},R0={key:0,class:"apf-session-sidebar__empty"},D0=L(e.defineComponent({__name:"SessionSidebar",props:{sessions:{},activeId:{},loading:{type:Boolean},title:{}},emits:["select","create","delete"],setup(t,{emit:n}){const a=n;function o(l){if(!l)return"";const r=new Date(l),i=(Date.now()-r.getTime())/1e3;return i<60?"刚刚":i<3600?`${Math.floor(i/60)} 分钟前`:i<86400?`${Math.floor(i/3600)} 小时前`:r.toLocaleDateString("zh-CN")}return(l,r)=>{const i=e.resolveComponent("el-button"),c=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("aside",A0,[e.createElementVNode("div",z0,[e.createElementVNode("strong",null,e.toDisplayString(t.title||"会话"),1),e.createVNode(i,{type:"primary",size:"small",onClick:r[0]||(r[0]=s=>a("create"))},{default:e.withCtx(()=>[...r[1]||(r[1]=[e.createTextVNode("新建",-1)])]),_:1})]),e.withDirectives((e.openBlock(),e.createElementBlock("div",M0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.sessions,s=>(e.openBlock(),e.createElementBlock("button",{key:s.id,type:"button",class:e.normalizeClass(["apf-session-sidebar__item",{"is-active":s.id===t.activeId}]),onClick:d=>a("select",s.id)},[e.createElementVNode("span",I0,e.toDisplayString(s.title||"未命名会话"),1),e.createElementVNode("small",null,e.toDisplayString(o(s.updatedAt||s.createdAt)),1),e.createVNode(i,{class:"apf-session-sidebar__delete",link:"",type:"danger",size:"small",onClick:e.withModifiers(d=>a("delete",s.id),["stop"])},{default:e.withCtx(()=>[...r[2]||(r[2]=[e.createTextVNode(" 删除 ",-1)])]),_:1},8,["onClick"])],10,L0))),128)),!t.loading&&!t.sessions.length?(e.openBlock(),e.createElementBlock("div",R0,"暂无会话")):e.createCommentVNode("",!0)])),[[c,t.loading]])])}}}),[["__scopeId","data-v-8f9bd29d"]]),P0={key:0,class:"apf-processing-drawer__subtitle"},O0={class:"apf-processing-drawer__body"},H0=L(e.defineComponent({__name:"ProcessingDrawer",props:{modelValue:{type:Boolean},run:{},title:{},subtitle:{},sending:{type:Boolean}},emits:["update:modelValue","cancel"],setup(t,{emit:n}){const a=n;return(o,l)=>{const r=e.resolveComponent("el-drawer");return e.openBlock(),e.createBlock(r,{"model-value":t.modelValue,title:t.title||"处理详情",size:"380px","append-to-body":"","onUpdate:modelValue":l[1]||(l[1]=i=>a("update:modelValue",i))},{default:e.withCtx(()=>[t.subtitle?(e.openBlock(),e.createElementBlock("p",P0,e.toDisplayString(t.subtitle),1)):e.createCommentVNode("",!0),t.run?(e.openBlock(),e.createBlock(e.unref(Qa),{key:1,run:t.run,sending:t.sending??!1,onCancel:l[0]||(l[0]=i=>a("cancel"))},null,8,["run","sending"])):e.createCommentVNode("",!0),e.createElementVNode("div",O0,[e.renderSlot(o.$slots,"default",{},void 0,!0)])]),_:3},8,["model-value","title"])}}}),[["__scopeId","data-v-6036074a"]]),F0={class:"apf-conversation-header"},U0={class:"apf-conversation-header__identity"},j0={class:"apf-conversation-header__copy"},q0={class:"apf-conversation-header__label"},G0={class:"apf-conversation-header__actions"},W0={key:0,class:"apf-conversation-header__processing"},Y0=L(e.defineComponent({__name:"ConversationHeader",props:{title:{},label:{},hasMessages:{type:Boolean},processing:{type:Boolean}},emits:["changeAssistant","toggleDetails","create"],setup(t,{emit:n}){const a=n;return(o,l)=>(e.openBlock(),e.createElementBlock("header",F0,[e.createElementVNode("div",U0,[e.createElementVNode("div",j0,[e.createElementVNode("span",q0,e.toDisplayString(t.label||"正在使用"),1),e.createElementVNode("strong",null,e.toDisplayString(t.title||"选择一个智能体开始"),1)])]),e.createElementVNode("div",G0,[t.processing?(e.openBlock(),e.createElementBlock("span",W0,[...l[2]||(l[2]=[e.createElementVNode("i",null,null,-1),e.createElementVNode("span",null,"正在处理",-1)])])):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:"apf-conversation-header__btn",onClick:l[0]||(l[0]=r=>a(t.hasMessages?"create":"changeAssistant"))},e.toDisplayString(t.hasMessages?"新建对话":"选择智能体"),1),t.hasMessages?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"apf-conversation-header__btn",onClick:l[1]||(l[1]=r=>a("toggleDetails"))}," 处理详情 ")):e.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-47648485"]]),Z0={class:"apf-assistant-picker"},K0={key:0,class:"apf-assistant-picker__state"},Q0={key:1,class:"apf-assistant-picker__state apf-assistant-picker__state--error"},X0={key:2,class:"apf-assistant-picker__state"},J0=["onClick"],v0={class:"apf-assistant-picker__main"},ed={class:"apf-assistant-picker__icon-wrap"},td={class:"apf-assistant-picker__info"},nd={class:"apf-assistant-picker__caps"},ad=L(e.defineComponent({__name:"AssistantPicker",props:{items:{},modelValue:{},loading:{type:Boolean,default:!1},error:{default:null}},emits:["update:modelValue","select"],setup(t,{emit:n}){const a=t,o=n;function l(s){var f,u;const d=["文本"];return(f=s.supportedInputs)!=null&&f.includes("file")&&d.push("文件"),(u=s.supportedInputs)!=null&&u.includes("image")&&d.push("图片"),s.hitlCapable&&d.push("需要确认"),d}function r(s){return s.icon||"chat-dot-round"}function i(s){o("update:modelValue",s.id),o("select",s)}const c=e.computed(()=>!a.loading&&!a.error&&!a.items.length);return(s,d)=>(e.openBlock(),e.createElementBlock("div",Z0,[t.loading?(e.openBlock(),e.createElementBlock("div",K0,[...d[0]||(d[0]=[e.createElementVNode("p",null,"正在加载智能体…",-1)])])):t.error?(e.openBlock(),e.createElementBlock("div",Q0,[e.createElementVNode("p",null,e.toDisplayString(t.error),1)])):c.value?(e.openBlock(),e.createElementBlock("div",X0,[...d[1]||(d[1]=[e.createElementVNode("p",null,"暂无可用智能体",-1)])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,f=>(e.openBlock(),e.createElementBlock("button",{key:f.id,type:"button",class:e.normalizeClass(["apf-assistant-picker__item",{"is-active":t.modelValue===f.id}]),onClick:u=>i(f)},[e.createElementVNode("div",v0,[e.createElementVNode("span",ed,[e.createVNode(e.unref(le),{name:r(f),size:22},null,8,["name"])]),e.createElementVNode("span",td,[e.createElementVNode("b",null,e.toDisplayString(f.name),1),e.createElementVNode("small",null,e.toDisplayString(f.description||"适合处理一类明确任务"),1),e.createElementVNode("span",nd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l(f),u=>(e.openBlock(),e.createElementBlock("span",{key:u,class:e.normalizeClass(["apf-assistant-picker__cap",{"is-confirm":u==="需要确认"}])},e.toDisplayString(u),3))),128))])])]),e.createElementVNode("span",{class:e.normalizeClass(["apf-assistant-picker__choose",{"is-selected":t.modelValue===f.id}])},e.toDisplayString(t.modelValue===f.id?"已选择":"开始使用"),3)],10,J0))),128))]))}}),[["__scopeId","data-v-f05e69c0"]]),od={class:"apf-model-picker"},ld=L(e.defineComponent({__name:"ModelPicker",props:{models:{},modelValue:{},loading:{type:Boolean}},emits:["update:modelValue"],setup(t,{emit:n}){const a=n;return(o,l)=>{const r=e.resolveComponent("el-option"),i=e.resolveComponent("el-select");return e.openBlock(),e.createElementBlock("label",od,[e.createVNode(i,{"model-value":t.modelValue||void 0,disabled:t.loading||!t.models.length,placeholder:"选择模型","onUpdate:modelValue":l[0]||(l[0]=c=>a("update:modelValue",c))},{default:e.withCtx(()=>[t.loading?(e.openBlock(),e.createBlock(r,{key:0,label:"正在加载模型…",value:"",disabled:""})):t.models.length?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(r,{key:1,label:"暂无可用模型",value:"",disabled:""})),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.models,c=>(e.openBlock(),e.createBlock(r,{key:c.id,label:`${c.name} · ${c.provider}`,value:c.id},null,8,["label","value"]))),128))]),_:1},8,["model-value","disabled"])])}}}),[["__scopeId","data-v-483ae73d"]]),Xa=Symbol("fg-toast");function rd(t){return{[Xa]:t}}function sd(){const t=e.inject(Xa);return{show(n,a="info",o){var l;(l=t==null?void 0:t.value)==null||l.show(n,a,o)},info(n,a){var o;(o=t==null?void 0:t.value)==null||o.show(n,"info",a)},success(n,a){var o;(o=t==null?void 0:t.value)==null||o.show(n,"success",a)},warning(n,a){var o;(o=t==null?void 0:t.value)==null||o.show(n,"warning",a)},error(n,a){var o;(o=t==null?void 0:t.value)==null||o.show(n,"error",a)}}}function id(){async function t(o,l={}){const{title:r="确认操作",type:i="warning",confirmButtonText:c="确定",cancelButtonText:s="取消"}=l;try{return await se.ElMessageBox.confirm(o,r,{confirmButtonText:c,cancelButtonText:s,type:i}),!0}catch{return!1}}async function n(o,l={}){return t(`此操作将永久删除${o},是否继续?`,{title:"确认删除",type:"danger",confirmButtonText:"确认删除",...l})}async function a(o,l={}){return t(o,{title:"确认操作",type:"danger",...l})}return{confirm:t,confirmDelete:n,confirmDanger:a}}function cd(){return{success(t,n={}){se.ElMessage({message:t,type:"success",...n})},error(t,n={}){se.ElMessage({message:t,type:"error",...n})},warning(t,n={}){se.ElMessage({message:t,type:"warning",...n})},info(t,n={}){se.ElMessage({message:t,type:"info",...n})}}}function dd(t,n=300){const a=e.ref(null);function o(...l){a.value&&clearTimeout(a.value),a.value=setTimeout(()=>{t(...l),a.value=null},n)}return e.onUnmounted(()=>{a.value&&clearTimeout(a.value)}),o}function pd(t,n){var c;const a=e.ref(1),o=e.ref((n==null?void 0:n.initialPageSize)??Gt),l=e.computed(()=>{const s=t.value,d=(a.value-1)*o.value;return s.slice(d,d+o.value)}),r=e.computed(()=>t.value.length);function i(){a.value=1}return e.watch(o,()=>{a.value=1},{flush:"sync"}),e.watch(t,s=>{const d=Math.max(1,Math.ceil(s.length/o.value)||1);a.value>d&&(a.value=d)}),(c=n==null?void 0:n.resetOn)!=null&&c.length&&e.watch(n.resetOn,()=>{i()}),{currentPage:a,pageSize:o,pagedItems:l,total:r,resetPage:i}}function fd(t={}){const{timeout:n=15e3,silentError:a=!1}=t,o=e.ref(!1),l=e.ref(null),r=e.ref(!1),i=e.computed(()=>l.value!==null);let c=null,s=0;function d(){s++,s===1&&(o.value=!0,l.value=null,r.value=!1,c=setTimeout(()=>{r.value=!0},n))}function f(){s=Math.max(0,s-1),s===0&&(o.value=!1,r.value=!1,c&&(clearTimeout(c),c=null))}async function u(x){d();try{return await x()}catch(g){return a||(l.value=g instanceof Error?g.message:"加载失败"),null}finally{f()}}function h(){s=0,o.value=!1,l.value=null,r.value=!1,c&&(clearTimeout(c),c=null)}return{loading:o,error:l,timedOut:r,hasError:i,withLoading:u,reset:h}}function hd(t){if(!t)return"操作失败";if(typeof t=="string")return t;if(t instanceof Error)return t.message||"操作失败";if(typeof t=="object"){const n=t;if(n.message)return n.message;if(n.errors&&typeof n.errors=="object"){const a=[];for(const o of Object.values(n.errors))Array.isArray(o)&&a.push(...o);if(a.length>0)return a.join(";")}if(n.code)return`错误码:${n.code}`}return"操作失败"}const md={primary:"#0060A2",primaryHover:"#4581E9",primaryLight:"#4581E9",primaryLighter:"#EEF5FF",primaryDark:"#0060A2",success:"#26A036",warning:"#F09700",danger:"#E50113",info:"#4581E9"},ud={title:"#303133",primary:"#333333",regular:"#606266",secondary:"#666666",muted:"#909399",placeholder:"#969FA8",disabled:"#C0C4CC",inverse:"#FFFFFF"},gd={10:"10px",11:"11px",12:"12px",13:"13px",14:"14px",15:"15px",16:"16px",18:"18px",20:"20px",22:"22px",24:"24px",28:"28px"},kd={xs:"4px",sm:"8px",md:"16px",lg:"24px",xl:"32px","2xl":"48px","3xl":"64px",10:"10px",12:"12px",20:"20px"},yd={xs:"24px",sm:"28px",md:"32px",lg:"40px",xl:"44px"},bd={header:"56px",conversationHeader:"68px",dialogFooter:"60px",toolbar:"48px",tabs:"40px",listRow:"48px"},_d={xs:"12px",sm:"14px",md:"16px",lg:"20px",xl:"24px"},wd={paddingX:"24px",paddingY:"24px",headerPaddingTop:"28px",sidebarWidth:"240px",sidebarWidthCollapsed:"64px"},Cd={sm:"2px",md:"4px",6:"6px",8:"8px",lg:"10px",xl:"12px",full:"999px"},Ed={fieldWidth:"220px",labelWidth:"96px",fieldGap:"6px"},xd={sm:"24px",md:"32px",lg:"40px",xl:"48px"},$d={sm:"0 1px 2px rgba(0, 0, 0, 0.05)",md:"0 4px 12px rgba(0, 0, 0, 0.08)",lg:"0 8px 24px rgba(0, 0, 0, 0.12)"},Td={fast:"0.15s",normal:"0.25s",slow:"0.35s"},Sd={dropdown:1e3,sticky:1020,fixed:1030,modalBackdrop:1040,modal:1050,popover:1060,tooltip:1070,toast:1080},Vd="1.4.0",Bd="2.14.2",Nd="2026-08-27";y.APP_ICON_NAMES=Wr,y.AVATAR_SIZE=xd,y.AppDialog=rt,y.AppIcon=le,y.AppPagination=Zr,y.ApprovalCard=h0,y.AssistantPicker=ad,y.AttachmentPreviewModal=N0,y.BORDER_RADIUS=Cd,y.COLORS=md,y.CONTROL_HEIGHT=yd,y.CardGridSkeleton=ls,y.CardTable=Cs,y.Composer=e0,y.ConfirmDialog=Kr,y.ContentPanel=gs,y.ConversationHeader=Y0,y.DEFAULT_PAGE_SIZE=Gt,y.DURATION=Td,y.DocumentPreviewDrawer=ii,y.DocumentPreviewPanel=ra,y.DocumentSummaryList=Za,y.EP_FORK_BASE=Bd,y.EP_FORK_DATE=Nd,y.EmptyState=ts,y.ErrorBoundary=ns,y.FONT_SIZE=gd,y.FORM=Ed,y.FieldRow=zs,y.FilterBar=ws,y.FilterTabs=Jr,y.FormDialog=Qr,y.HintText=Is,y.ICON_MAP=ht,y.ICON_SIZE=_d,y.JsonCard=Ws,y.JsonDetailDialog=Zs,y.LAYOUT_HEIGHT=bd,y.LoadingDots=Us,y.MessageAttachmentList=Ya,y.MessageBubble=Ka,y.MessageList=D2,y.MessageParts=Wa,y.ModelPicker=ld,y.PAGE=wd,y.PAGE_SIZE_OPTIONS=na,y.PAGINATION_LAYOUT=aa,y.PageHeader=ps,y.PageShell=ds,y.ProcessingDrawer=H0,y.RunStatusBar=Qa,y.SCHEMA_UI_VERSION=Vd,y.SHADOWS=$d,y.SPACING=kd,y.SchemaLitePreview=Qs,y.SearchForm=Bs,y.SectionToggle=Hs,y.SessionSidebar=D0,y.Skeleton=os,y.StatusTag=as,y.TEXT_COLORS=ud,y.TableRowActions=xs,y.Toast=es,y.TruncatedTooltipText=oa,y.UserAvatar=cs,y.Z_INDEX=Sd,y.fileKind=Wt,y.formatSize=mt,y.isImage=Me,y.isOffice=la,y.isPdf=Ye,y.isPreviewable=Xs,y.isRegisteredAppIcon=Yr,y.provideToast=rd,y.renderMarkdown=Ga,y.resolveApiErrorMessage=hd,y.splitTextAndCodeBlocks=ja,y.useClientPagination=pd,y.useConfirm=id,y.useDataLoading=fd,y.useDebounceFn=dd,y.useMessage=cd,y.useToast=sd,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})}));
|
|
68
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${fe(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:a}){let o=this.parser.parseInline(a),l=_a(t);if(l===null)return o;t=l;let r='<a href="'+t+'"';return n&&(r+=' title="'+fe(n)+'"'),r+=">"+o+"</a>",r}image({href:t,title:n,text:a,tokens:o}){o&&(a=this.parser.parseInline(o,this.parser.textRenderer));let l=_a(t);if(l===null)return fe(a);t=l;let r=`<img src="${t}" alt="${fe(a)}"`;return n&&(r+=` title="${fe(n)}"`),r+=">",r}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:fe(t.text)}},tn=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},ce=class Vn{constructor(n){P(this,"options");P(this,"renderer");P(this,"textRenderer");this.options=n||xe,this.options.renderer=this.options.renderer||new bt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new tn}static parse(n,a){return new Vn(a).parse(n)}static parseInline(n,a){return new Vn(a).parseInline(n)}parse(n){var o,l;this.renderer.parser=this;let a="";for(let r=0;r<n.length;r++){let i=n[r];if((l=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&l[i.type]){let s=i,d=this.options.extensions.renderers[s.type].call({parser:this},s);if(d!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(s.type)){a+=d||"";continue}}let c=i;switch(c.type){case"space":{a+=this.renderer.space(c);break}case"hr":{a+=this.renderer.hr(c);break}case"heading":{a+=this.renderer.heading(c);break}case"code":{a+=this.renderer.code(c);break}case"table":{a+=this.renderer.table(c);break}case"blockquote":{a+=this.renderer.blockquote(c);break}case"list":{a+=this.renderer.list(c);break}case"checkbox":{a+=this.renderer.checkbox(c);break}case"html":{a+=this.renderer.html(c);break}case"def":{a+=this.renderer.def(c);break}case"paragraph":{a+=this.renderer.paragraph(c);break}case"text":{a+=this.renderer.text(c);break}default:{let s='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return a}parseInline(n,a=this.renderer){var l,r;this.renderer.parser=this;let o="";for(let i=0;i<n.length;i++){let c=n[i];if((r=(l=this.options.extensions)==null?void 0:l.renderers)!=null&&r[c.type]){let d=this.options.extensions.renderers[c.type].call({parser:this},c);if(d!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(c.type)){o+=d||"";continue}}let s=c;switch(s.type){case"escape":{o+=a.text(s);break}case"html":{o+=a.html(s);break}case"link":{o+=a.link(s);break}case"image":{o+=a.image(s);break}case"checkbox":{o+=a.checkbox(s);break}case"strong":{o+=a.strong(s);break}case"em":{o+=a.em(s);break}case"codespan":{o+=a.codespan(s);break}case"br":{o+=a.br(s);break}case"del":{o+=a.del(s);break}case"text":{o+=a.text(s);break}default:{let d='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return o}},Xe=(Ct=class{constructor(t){P(this,"options");P(this,"block");this.options=t||xe}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(t=this.block){return t?ie.lex:ie.lexInline}provideParser(t=this.block){return t?ce.parse:ce.parseInline}},P(Ct,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),P(Ct,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Ct),$c=class{constructor(...t){P(this,"defaults",Yt());P(this,"options",this.setOptions);P(this,"parse",this.parseMarkdown(!0));P(this,"parseInline",this.parseMarkdown(!1));P(this,"Parser",ce);P(this,"Renderer",bt);P(this,"TextRenderer",tn);P(this,"Lexer",ie);P(this,"Tokenizer",yt);P(this,"Hooks",Xe);this.use(...t)}walkTokens(t,n){var o,l;let a=[];for(let r of t)switch(a=a.concat(n.call(this,r)),r.type){case"table":{let i=r;for(let c of i.header)a=a.concat(this.walkTokens(c.tokens,n));for(let c of i.rows)for(let s of c)a=a.concat(this.walkTokens(s.tokens,n));break}case"list":{let i=r;a=a.concat(this.walkTokens(i.items,n));break}default:{let i=r;(l=(o=this.defaults.extensions)==null?void 0:o.childTokens)!=null&&l[i.type]?this.defaults.extensions.childTokens[i.type].forEach(c=>{let s=i[c].flat(1/0);a=a.concat(this.walkTokens(s,n))}):i.tokens&&(a=a.concat(this.walkTokens(i.tokens,n)))}}return a}use(...t){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(a=>{let o={...a};if(o.async=this.defaults.async||o.async||!1,a.extensions&&(a.extensions.forEach(l=>{if(!l.name)throw new Error("extension name required");if("renderer"in l){let r=n.renderers[l.name];r?n.renderers[l.name]=function(...i){let c=l.renderer.apply(this,i);return c===!1&&(c=r.apply(this,i)),c}:n.renderers[l.name]=l.renderer}if("tokenizer"in l){if(!l.level||l.level!=="block"&&l.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let r=n[l.level];r?r.unshift(l.tokenizer):n[l.level]=[l.tokenizer],l.start&&(l.level==="block"?n.startBlock?n.startBlock.push(l.start):n.startBlock=[l.start]:l.level==="inline"&&(n.startInline?n.startInline.push(l.start):n.startInline=[l.start]))}"childTokens"in l&&l.childTokens&&(n.childTokens[l.name]=l.childTokens)}),o.extensions=n),a.renderer){let l=this.defaults.renderer||new bt(this.defaults);for(let r in a.renderer){if(!(r in l))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let i=r,c=a.renderer[i],s=l[i];l[i]=(...d)=>{let f=c.apply(l,d);return f===!1&&(f=s.apply(l,d)),f||""}}o.renderer=l}if(a.tokenizer){let l=this.defaults.tokenizer||new yt(this.defaults);for(let r in a.tokenizer){if(!(r in l))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let i=r,c=a.tokenizer[i],s=l[i];l[i]=(...d)=>{let f=c.apply(l,d);return f===!1&&(f=s.apply(l,d)),f}}o.tokenizer=l}if(a.hooks){let l=this.defaults.hooks||new Xe;for(let r in a.hooks){if(!(r in l))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let i=r,c=a.hooks[i],s=l[i];Xe.passThroughHooks.has(r)?l[i]=d=>{if(this.defaults.async&&Xe.passThroughHooksRespectAsync.has(r))return(async()=>{let u=await c.call(l,d);return s.call(l,u)})();let f=c.call(l,d);return s.call(l,f)}:l[i]=(...d)=>{if(this.defaults.async)return(async()=>{let u=await c.apply(l,d);return u===!1&&(u=await s.apply(l,d)),u})();let f=c.apply(l,d);return f===!1&&(f=s.apply(l,d)),f}}o.hooks=l}if(a.walkTokens){let l=this.defaults.walkTokens,r=a.walkTokens;o.walkTokens=function(i){let c=[];return c.push(r.call(this,i)),l&&(c=c.concat(l.call(this,i))),c}}this.defaults={...this.defaults,...o}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return ie.lex(t,n??this.defaults)}parser(t,n){return ce.parse(t,n??this.defaults)}parseMarkdown(t){return(n,a)=>{let o={...a},l={...this.defaults,...o},r=this.onError(!!l.silent,!!l.async);if(this.defaults.async===!0&&o.async===!1)return r(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return r(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return r(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(l.hooks&&(l.hooks.options=l,l.hooks.block=t),l.async)return(async()=>{let i=l.hooks?await l.hooks.preprocess(n):n,c=await(l.hooks?await l.hooks.provideLexer(t):t?ie.lex:ie.lexInline)(i,l),s=l.hooks?await l.hooks.processAllTokens(c):c;l.walkTokens&&await Promise.all(this.walkTokens(s,l.walkTokens));let d=await(l.hooks?await l.hooks.provideParser(t):t?ce.parse:ce.parseInline)(s,l);return l.hooks?await l.hooks.postprocess(d):d})().catch(r);try{l.hooks&&(n=l.hooks.preprocess(n));let i=(l.hooks?l.hooks.provideLexer(t):t?ie.lex:ie.lexInline)(n,l);l.hooks&&(i=l.hooks.processAllTokens(i)),l.walkTokens&&this.walkTokens(i,l.walkTokens);let c=(l.hooks?l.hooks.provideParser(t):t?ce.parse:ce.parseInline)(i,l);return l.hooks&&(c=l.hooks.postprocess(c)),c}catch(i){return r(i)}}}onError(t,n){return a=>{if(a.message+=`
|
|
69
|
+
Please report this to https://github.com/markedjs/marked.`,t){let o="<p>An error occurred:</p><pre>"+fe(a.message+"",!0)+"</pre>";return n?Promise.resolve(o):o}if(n)return Promise.reject(a);throw a}}},Te=new $c;function D(t,n){return Te.parse(t,n)}D.options=D.setOptions=function(t){return Te.setOptions(t),D.defaults=Te.defaults,sa(D.defaults),D},D.getDefaults=Yt,D.defaults=xe;function Tc(...t){return Te.use(...t),D.defaults=Te.defaults,sa(D.defaults),D}D.use=Tc,D.walkTokens=function(t,n){return Te.walkTokens(t,n)},D.parseInline=Te.parseInline,D.Parser=ce,D.parser=ce.parse,D.Renderer=bt,D.TextRenderer=tn,D.Lexer=ie,D.lexer=ie.lex,D.Tokenizer=yt,D.Hooks=Xe,D.parse=D,D.options,D.setOptions,D.walkTokens,D.parseInline,ce.parse,ie.lex;/*! @license DOMPurify 3.4.14 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.14/LICENSE */function xa(t,n){(n==null||n>t.length)&&(n=t.length);for(var a=0,o=Array(n);a<n;a++)o[a]=t[a];return o}function Bc(t){if(Array.isArray(t))return t}function Sc(t,n){var a=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(a!=null){var o,l,r,i,c=[],s=!0,d=!1;try{if(r=(a=a.call(t)).next,n!==0)for(;!(s=(o=r.call(a)).done)&&(c.push(o.value),c.length!==n);s=!0);}catch(f){d=!0,l=f}finally{try{if(!s&&a.return!=null&&(i=a.return(),Object(i)!==i))return}finally{if(d)throw l}}return c}}function Vc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
70
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nc(t,n){return Bc(t)||Sc(t,n)||Ac(t,n)||Vc()}function Ac(t,n){if(t){if(typeof t=="string")return xa(t,n);var a={}.toString.call(t).slice(8,-1);return a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set"?Array.from(t):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?xa(t,n):void 0}}const $a=Object.entries,Ta=Object.setPrototypeOf,zc=Object.isFrozen,Mc=Object.getPrototypeOf,Lc=Object.getOwnPropertyDescriptor;let Y=Object.freeze,Z=Object.seal,Re=Object.create,Ba=typeof Reflect<"u"&&Reflect,nn=Ba.apply,an=Ba.construct;Y||(Y=function(n){return n}),Z||(Z=function(n){return n}),nn||(nn=function(n,a){for(var o=arguments.length,l=new Array(o>2?o-2:0),r=2;r<o;r++)l[r-2]=arguments[r];return n.apply(a,l)}),an||(an=function(n){for(var a=arguments.length,o=new Array(a>1?a-1:0),l=1;l<a;l++)o[l-1]=arguments[l];return new n(...o)});const Be=W(Array.prototype.forEach),Ic=W(Array.prototype.lastIndexOf),Sa=W(Array.prototype.pop),Je=W(Array.prototype.push),Rc=W(Array.prototype.splice),De=Array.isArray,ve=W(String.prototype.toLowerCase),on=W(String.prototype.toString),Va=W(String.prototype.match),et=W(String.prototype.replace),Na=W(String.prototype.indexOf),Dc=W(String.prototype.trim),Pc=W(Number.prototype.toString),Oc=W(Boolean.prototype.toString),Aa=typeof BigInt>"u"?null:W(BigInt.prototype.toString),za=typeof Symbol>"u"?null:W(Symbol.prototype.toString),v=W(Object.prototype.hasOwnProperty),tt=W(Object.prototype.toString),X=W(RegExp.prototype.test),Se=Hc(TypeError);function W(t){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var a=arguments.length,o=new Array(a>1?a-1:0),l=1;l<a;l++)o[l-1]=arguments[l];return nn(t,n,o)}}function Hc(t){return function(){for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return an(t,a)}}function R(t,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ve;if(Ta&&Ta(t,null),!De(n))return t;let o=n.length;for(;o--;){let l=n[o];if(typeof l=="string"){const r=a(l);r!==l&&(zc(n)||(n[o]=r),l=r)}t[l]=!0}return t}function Fc(t){for(let n=0;n<t.length;n++)v(t,n)||(t[n]=null);return t}function ae(t){const n=Re(null);for(const o of $a(t)){var a=Nc(o,2);const l=a[0],r=a[1];v(t,l)&&(De(r)?n[l]=Fc(r):r&&typeof r=="object"&&r.constructor===Object?n[l]=ae(r):n[l]=r)}return n}function Uc(t){switch(typeof t){case"string":return t;case"number":return Pc(t);case"boolean":return Oc(t);case"bigint":return Aa?Aa(t):"0";case"symbol":return za?za(t):"Symbol()";case"undefined":return tt(t);case"function":case"object":{if(t===null)return tt(t);const n=t,a=de(n,"toString");if(typeof a=="function"){const o=a(n);return typeof o=="string"?o:tt(o)}return tt(t)}default:return tt(t)}}function de(t,n){for(;t!==null;){const o=Lc(t,n);if(o){if(o.get)return W(o.get);if(typeof o.value=="function")return W(o.value)}t=Mc(t)}function a(){return null}return a}function jc(t){try{return X(t,""),!0}catch{return!1}}const Ma=Y(["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"]),ln=Y(["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"]),rn=Y(["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"]),qc=Y(["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"]),sn=Y(["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"]),Gc=Y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),La=Y(["#text"]),Ia=Y(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","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"]),cn=Y(["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","dominant-baseline","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","pointer-events","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-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","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"]),Ra=Y(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),_t=Y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Wc=Z(/{{[\w\W]*|^[\w\W]*}}/g),Yc=Z(/<%[\w\W]*|^[\w\W]*%>/g),Zc=Z(/\${[\w\W]*/g),Kc=Z(/^data-[\-\w.\u00B7-\uFFFF]+$/),Qc=Z(/^aria-[\-\w]+$/),Da=Z(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Xc=Z(/^(?:\w+script|data):/i),Jc=Z(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),vc=Z(/^html$/i),e2=Z(/^[a-z][.\w]*(-[.\w]+)+$/i),Pa=Z(/<[/\w!]/g),Oa=Z(/<[/\w]/g),t2=Z(/<\/no(script|embed|frames)/i),n2=Z(/\/>/i),oe={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ha=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],a2=Y(R({},Ha)),o2=(function(){const t={};return Be(Ha,n=>{t[n]=Z(new RegExp("</"+n+"(?=[\\t\\n\\f\\r />])","i"))}),Y(t)})(),l2=function(){return typeof window>"u"?null:window},r2=function(n,a){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let o=null;const l="data-tt-policy-suffix";a&&a.hasAttribute(l)&&(o=a.getAttribute(l));const r="dompurify"+(o?"#"+o:"");try{return n.createPolicy(r,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},Fa=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},be=function(n,a,o,l){return v(n,a)&&De(n[a])?R(l.base?ae(l.base):{},n[a],l.transform):o},dn=function(n,a,o){const l=v(n,a)?n[a]:void 0;return l&&typeof l=="object"?ae(l):o()};function Ua(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l2();const n=b=>Ua(b);if(n.version="3.4.14",n.removed=[],!t||!t.document||t.document.nodeType!==oe.document||!t.Element)return n.isSupported=!1,n;let a=t.document;const o=a,l=o.currentScript;t.DocumentFragment;const r=t.HTMLTemplateElement,i=t.Node,c=t.Element,s=t.NodeFilter,d=t.NamedNodeMap;d===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const f=t.DOMParser,u=t.trustedTypes,h=c.prototype,w=de(h,"cloneNode"),g=de(h,"remove"),V=de(h,"nextSibling"),x=de(h,"childNodes"),T=de(h,"parentNode"),$=de(h,"shadowRoot"),B=de(h,"attributes"),_=i&&i.prototype?de(i.prototype,"nodeType"):null,C=i&&i.prototype?de(i.prototype,"nodeName"):null,N=i&&i.prototype?de(i.prototype,"ownerDocument"):null,j=function(p){return _?_(p):p.nodeType},ee=function(p){return C?C(p):p.nodeName};if(typeof r=="function"){const b=a.createElement("template");b.content&&b.content.ownerDocument&&(a=b.content.ownerDocument)}let z,A="",re,pe=!1,_e=0;const nt=function(){if(_e>0)throw Se('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},ke=function(p){nt(),_e++;try{return z.createHTML(p)}finally{_e--}},K=function(p){nt(),_e++;try{return z.createScriptURL(p)}finally{_e--}},Ja=function(){return pe||(re=r2(u,l),pe=!0),re},Et=a,fn=Et.implementation,va=Et.createNodeIterator,vd=Et.createDocumentFragment,e1=Et.getElementsByTagName,t1=o.importNode;let H=Fa();n.isSupported=typeof $a=="function"&&typeof T=="function"&&fn&&fn.createHTMLDocument!==void 0;const n1=Wc,a1=Yc,o1=Zc,l1=Kc,r1=Qc,s1=Xc,eo=Jc,i1=e2;let to=Da,F=null;const hn=R({},[...Ma,...ln,...rn,...sn,...La]);let U=null;const mn=R({},[...Ia,...cn,...Ra,..._t]);let he=Object.seal(Re(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}})),at=null,no=null;const we=Object.seal(Re(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ao=!0,un=!0,oo=!1,lo=!0,Ce=!1,Ve=!0,Ne=!1,gn=!1,xt=null,$t=null,kn=!1,Pe=!1,Tt=!1,Bt=!1,ro=!0,so=!1;const io="user-content-";let yn=!0,bn=!1,Oe={},He=null;const co=R({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let po=null;const fo=R({},["audio","video","img","source","image","track"]);let ho=null;const mo=R({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),St="http://www.w3.org/1998/Math/MathML",Vt="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let Fe=me,_n=!1,wn=null;const c1=R({},[St,Vt,me],on),uo=Y(["mi","mo","mn","ms","mtext"]);let Cn=R({},uo);const go=Y(["annotation-xml"]);let En=R({},go);const d1=R({},["title","style","font","a","script"]);let ot=null;const p1=["application/xhtml+xml","text/html"],f1="text/html";let G=null,Ue=null;const h1=a.createElement("form"),ko=function(p){return p instanceof RegExp||p instanceof Function},xn=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ue&&Ue===p)return;(!p||typeof p!="object")&&(p={}),p=ae(p),ot=p1.indexOf(p.PARSER_MEDIA_TYPE)===-1?f1:p.PARSER_MEDIA_TYPE,G=ot==="application/xhtml+xml"?on:ve,F=be(p,"ALLOWED_TAGS",hn,{transform:G}),U=be(p,"ALLOWED_ATTR",mn,{transform:G}),wn=be(p,"ALLOWED_NAMESPACES",c1,{transform:on}),ho=be(p,"ADD_URI_SAFE_ATTR",mo,{transform:G,base:mo}),po=be(p,"ADD_DATA_URI_TAGS",fo,{transform:G,base:fo}),He=be(p,"FORBID_CONTENTS",co,{transform:G}),at=be(p,"FORBID_TAGS",ae({}),{transform:G}),no=be(p,"FORBID_ATTR",ae({}),{transform:G}),Oe=v(p,"USE_PROFILES")?p.USE_PROFILES&&typeof p.USE_PROFILES=="object"?ae(p.USE_PROFILES):p.USE_PROFILES:!1,ao=p.ALLOW_ARIA_ATTR!==!1,un=p.ALLOW_DATA_ATTR!==!1,oo=p.ALLOW_UNKNOWN_PROTOCOLS||!1,lo=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ce=p.SAFE_FOR_TEMPLATES||!1,Ve=p.SAFE_FOR_XML!==!1,Ne=p.WHOLE_DOCUMENT||!1,Pe=p.RETURN_DOM||!1,Tt=p.RETURN_DOM_FRAGMENT||!1,Bt=p.RETURN_TRUSTED_TYPE||!1,kn=p.FORCE_BODY||!1,ro=p.SANITIZE_DOM!==!1,so=p.SANITIZE_NAMED_PROPS||!1,yn=p.KEEP_CONTENT!==!1,bn=p.IN_PLACE||!1,to=jc(p.ALLOWED_URI_REGEXP)?p.ALLOWED_URI_REGEXP:Da,Fe=typeof p.NAMESPACE=="string"?p.NAMESPACE:me,Cn=dn(p,"MATHML_TEXT_INTEGRATION_POINTS",()=>R({},uo)),En=dn(p,"HTML_INTEGRATION_POINTS",()=>R({},go));const m=dn(p,"CUSTOM_ELEMENT_HANDLING",()=>Re(null));if(he=Re(null),v(m,"tagNameCheck")&&ko(m.tagNameCheck)&&(he.tagNameCheck=m.tagNameCheck),v(m,"attributeNameCheck")&&ko(m.attributeNameCheck)&&(he.attributeNameCheck=m.attributeNameCheck),v(m,"allowCustomizedBuiltInElements")&&typeof m.allowCustomizedBuiltInElements=="boolean"&&(he.allowCustomizedBuiltInElements=m.allowCustomizedBuiltInElements),Z(he),Ce&&(un=!1),Tt&&(Pe=!0),Oe&&(F=R({},La),U=Re(null),Oe.html===!0&&(R(F,Ma),R(U,Ia)),Oe.svg===!0&&(R(F,ln),R(U,cn),R(U,_t)),Oe.svgFilters===!0&&(R(F,rn),R(U,cn),R(U,_t)),Oe.mathMl===!0&&(R(F,sn),R(U,Ra),R(U,_t))),we.tagCheck=null,we.attributeCheck=null,v(p,"ADD_TAGS")&&(typeof p.ADD_TAGS=="function"?we.tagCheck=p.ADD_TAGS:De(p.ADD_TAGS)&&(F===hn&&(F=ae(F)),R(F,p.ADD_TAGS,G))),v(p,"ADD_ATTR")&&(typeof p.ADD_ATTR=="function"?we.attributeCheck=p.ADD_ATTR:De(p.ADD_ATTR)&&(U===mn&&(U=ae(U)),R(U,p.ADD_ATTR,G))),v(p,"ADD_FORBID_CONTENTS")&&De(p.ADD_FORBID_CONTENTS)&&(He===co&&(He=ae(He)),R(He,p.ADD_FORBID_CONTENTS,G)),yn&&(F["#text"]=!0),Ne&&R(F,["html","head","body"]),F.table&&(R(F,["tbody"]),delete at.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw Se('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Se('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const k=z;z=p.TRUSTED_TYPES_POLICY;try{A=ke("")}catch(E){throw z=k,E}}else p.TRUSTED_TYPES_POLICY===null?(z=void 0,A=""):(z===void 0&&(z=Ja()),z&&typeof A=="string"&&(A=ke("")));Y&&Y(p),Ue=p},yo=R({},[...ln,...rn,...qc]),bo=R({},[...sn,...Gc]),m1=function(p,m,k){return m.namespaceURI===me?p==="svg":m.namespaceURI===St?p==="svg"&&(k==="annotation-xml"||Cn[k]):!!yo[p]},u1=function(p,m,k){return m.namespaceURI===me?p==="math":m.namespaceURI===Vt?p==="math"&&En[k]:!!bo[p]},g1=function(p,m,k){return m.namespaceURI===Vt&&!En[k]||m.namespaceURI===St&&!Cn[k]?!1:!bo[p]&&(d1[p]||!yo[p])},k1=function(p){let m=T(p);(!m||!m.tagName)&&(m={namespaceURI:Fe,tagName:"template"});const k=ve(p.tagName),E=ve(m.tagName);return wn[p.namespaceURI]?p.namespaceURI===Vt?m1(k,m,E):p.namespaceURI===St?u1(k,m,E):p.namespaceURI===me?g1(k,m,E):!!(ot==="application/xhtml+xml"&&wn[p.namespaceURI]):!1},Ee=function(p){Je(n.removed,{element:p});try{T(p).removeChild(p)}catch{if(g(p),!T(p))throw Se("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},_o=function(p,m,k){try{p.removeAttributeNode(m)}catch{try{p.removeAttribute(k)}catch{}}},Nt=function(p){At(p);const m=x(p);if(m){const E=[];Be(m,S=>{Je(E,S)}),Be(E,S=>{try{g(S)}catch{}})}const k=B(p);if(k)for(let E=k.length-1;E>=0;--E){const S=k[E],M=S&&S.name;typeof M=="string"&&_o(p,S,M)}},Ae=function(p,m,k){if(!k)try{k=m.getAttributeNode(p)}catch{k=null}Je(n.removed,{attribute:k||null,from:m});try{k?m.removeAttributeNode(k):m.removeAttribute(p)}catch{try{m.removeAttribute(p)}catch{}}if(p==="is")if(Pe||Tt)try{Ee(m)}catch{}else try{m.setAttribute(p,"")}catch{}},y1=function(p){const m=B(p);if(m)for(let k=m.length-1;k>=0;--k){const E=m[k],S=E&&E.name;typeof S!="string"||U[G(S)]||_o(p,E,S)}},At=function(p){const m=[p];for(;m.length>0;){const k=m.pop();j(k)===oe.element&&y1(k);const S=x(k);if(S)for(let M=S.length-1;M>=0;--M)m.push(S[M])}},wo=function(p,m){return Ve?p==="patchsrc"?!0:p==="for"&&m!=="label"&&m!=="output":!1},b1=function(p){if(!Ve)return;const m=[p];for(;m.length>0;){const k=m.pop(),E=j(k);if(E===oe.processingInstruction||E===oe.comment&&X(Oa,k.data)){try{g(k)}catch{}continue}if(E===oe.element){const M=k,O=G(ee(k));try{M.hasAttribute&&M.hasAttribute("patchsrc")&&M.removeAttribute("patchsrc"),M.hasAttribute&&M.hasAttribute("for")&&wo("for",O)&&M.removeAttribute("for")}catch{}}const S=x(k);if(S)for(let M=S.length-1;M>=0;--M)m.push(S[M])}},Co=function(p){let m=null,k=null;if(kn)p="<remove></remove>"+p;else{const M=Va(p,/^[\r\n\t ]+/);k=M&&M[0]}ot==="application/xhtml+xml"&&Fe===me&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const E=z?ke(p):p;if(Fe===me)try{m=new f().parseFromString(E,ot)}catch{}if(!m||!m.documentElement){m=fn.createDocument(Fe,"template",null);try{m.documentElement.innerHTML=_n?A:E}catch{}}const S=m.body||m.documentElement;return p&&k&&S.insertBefore(a.createTextNode(k),S.childNodes[0]||null),Fe===me?e1.call(m,Ne?"html":"body")[0]:Ne?m.documentElement:S},Eo=function(p){const m=N?N(p):p.ownerDocument;return va.call(m||p,p,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null)},zt=function(p){return p=et(p,n1," "),p=et(p,a1," "),p=et(p,o1," "),p},$n=function(p){var m;p.normalize();const k=N?N(p):p.ownerDocument,E=va.call(k||p,p,s.SHOW_TEXT|s.SHOW_COMMENT|s.SHOW_CDATA_SECTION|s.SHOW_PROCESSING_INSTRUCTION,null);let S=E.nextNode();for(;S;)S.data=zt(S.data),S=E.nextNode();const M=(m=p.querySelectorAll)===null||m===void 0?void 0:m.call(p,"template");M&&Be(M,O=>{je(O.content)&&$n(O.content)})},Mt=function(p){const m=C?C(p):null;return typeof m!="string"||G(m)!=="form"?!1:typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||p.attributes!==B(p)||typeof p.removeAttribute!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function"||typeof p.hasChildNodes!="function"||p.nodeType!==_(p)||p.childNodes!==x(p)},je=function(p){if(!_||typeof p!="object"||p===null)return!1;try{return _(p)===oe.documentFragment}catch{return!1}},lt=function(p){if(!_||typeof p!="object"||p===null)return!1;try{return typeof _(p)=="number"}catch{return!1}};function ue(b,p,m){b.length!==0&&Be(b,k=>{k.call(n,p,m,Ue)})}const _1=function(p,m){return!!(Ve&&p.hasChildNodes()&&!lt(p.firstElementChild)&&X(Pa,p.textContent)&&X(Pa,p.innerHTML)||Ve&&p.namespaceURI===me&&a2[m]&&(lt(p.firstElementChild)||typeof p.textContent=="string"&&X(o2[m],p.textContent))||p.nodeType===oe.processingInstruction||Ve&&p.nodeType===oe.comment&&X(Oa,p.data))},Lt=function(p,m){if(p instanceof RegExp)return X(p,m);if(p instanceof Function){for(var k=arguments.length,E=new Array(k>2?k-2:0),S=2;S<k;S++)E[S-2]=arguments[S];return!!p(m,...E)}return!1},w1=function(p,m,k){if(!at[m]&&So(m)&&Lt(he.tagNameCheck,m))return!1;if(yn&&!He[m]){const E=T(p),S=x(p);if(S&&E){const M=S.length;for(let O=M-1;O>=0;--O){const q=p===k?w(S[O],!0):S[O];E.insertBefore(q,V(p))}}}return Ee(p),!0},xo=function(p,m,k,E){return p.length===0?m:m===k||m===E?ae(m):m},$o=function(p,m){return p===m||T(p)!==null?!1:(bn&&At(p),!0)},To=function(p,m){if(ue(H.beforeSanitizeElements,p,null),$o(p,m))return!0;if(Mt(p))return Ee(p),!0;const k=G(ee(p));if(F=xo(H.uponSanitizeElement,F,hn,xt),ue(H.uponSanitizeElement,p,{tagName:k,allowedTags:F}),$o(p,m))return!0;if(_1(p,k))return Ee(p),!0;if(at[k]||!(we.tagCheck instanceof Function&&we.tagCheck(k))&&!F[k]){const S=w1(p,k,m);return S===!1&&ue(H.afterSanitizeElements,p,null),S}if(j(p)===oe.element&&!k1(p)||(k==="noscript"||k==="noembed"||k==="noframes")&&X(t2,p.innerHTML))return Ee(p),!0;if(Ce&&p.nodeType===oe.text){const S=zt(p.textContent);p.textContent!==S&&(Je(n.removed,{element:p.cloneNode()}),p.textContent=S)}return ue(H.afterSanitizeElements,p,null),!1},Bo=function(p,m,k){if(no[m]||wo(m,p)||ro&&(m==="id"||m==="name")&&(k in a||k in h1))return!1;const E=U[m]||we.attributeCheck instanceof Function&&we.attributeCheck(m,p);return un&&X(l1,m)||ao&&X(r1,m)?!0:E?ho[m]||X(to,et(k,eo,""))||(m==="src"||m==="xlink:href"||m==="href")&&p!=="script"&&Na(k,"data:")===0&&po[p]||oo&&!X(s1,et(k,eo,""))?!0:!k:So(p)&&Lt(he.tagNameCheck,p)&&Lt(he.attributeNameCheck,m,p)||m==="is"&&he.allowCustomizedBuiltInElements&&Lt(he.tagNameCheck,k)},C1=R({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),So=function(p){return!C1[ve(p)]&&X(i1,p)},E1=function(p,m,k,E){if(z&&typeof u=="object"&&typeof u.getAttributeType=="function"&&!k)switch(u.getAttributeType(p,m)){case"TrustedHTML":return ke(E);case"TrustedScriptURL":return K(E)}return E},x1=function(p,m,k,E){try{k?p.setAttributeNS(k,m,E):p.setAttribute(m,E),Mt(p)?Ee(p):Sa(n.removed)}catch{Ae(m,p)}},Vo=function(p){ue(H.beforeSanitizeAttributes,p,null);const m=p.attributes;if(!m||Mt(p))return;U=xo(H.uponSanitizeAttribute,U,mn,$t);const k={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U,forceKeepAttr:void 0};let E=m.length;const S=G(p.nodeName);for(;E--;){const M=m[E],O=M.name,q=M.namespaceURI,te=M.value,ne=G(O),Bn=te;let J=O==="value"?Bn:Dc(Bn);if(k.attrName=ne,k.attrValue=J,k.keepAttr=!0,k.forceKeepAttr=void 0,ue(H.uponSanitizeAttribute,p,k),J=k.attrValue,so&&(ne==="id"||ne==="name")&&Na(J,io)!==0&&(Ae(O,p,M),J=io+J),Ve&&X(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,J)){Ae(O,p,M);continue}if(ne==="attributename"&&Va(J,"href")){Ae(O,p,M);continue}if(!k.forceKeepAttr){if(!k.keepAttr){Ae(O,p,M);continue}if(!lo&&X(n2,J)){Ae(O,p,M);continue}if(Ce&&(J=zt(J)),!Bo(S,ne,J)){Ae(O,p,M);continue}J=E1(S,ne,q,J),J!==Bn&&x1(p,O,q,J)}}ue(H.afterSanitizeAttributes,p,null)},It=function(p){let m=null;const k=Eo(p);for(ue(H.beforeSanitizeShadowDOM,p,null);m=k.nextNode();)if(ue(H.uponSanitizeShadowNode,m,null),To(m,p),Vo(m),je(m.content)&&It(m.content),j(m)===oe.element){const E=$(m);je(E)&&(Tn(E),It(E))}ue(H.afterSanitizeShadowDOM,p,null)},Tn=function(p){const m=[{node:p,shadow:null}];for(;m.length>0;){const k=m.pop();if(k.shadow){It(k.shadow);continue}const E=k.node,M=j(E)===oe.element,O=x(E);if(O)for(let q=O.length-1;q>=0;--q)m.push({node:O[q],shadow:null});if(M){const q=C?C(E):null;if(typeof q=="string"&&G(q)==="template"){const te=E.content;je(te)&&m.push({node:te,shadow:null})}}if(M){const q=$(E);je(q)&&m.push({node:null,shadow:q},{node:q,shadow:null})}}};return n.sanitize=function(b){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=null,k=null,E=null,S=null;if(_n=!b,_n&&(b="<!-->"),typeof b!="string"&&!lt(b)&&(b=Uc(b),typeof b!="string"))throw Se("dirty is not a string, aborting");if(!n.isSupported)return b;gn?(F=xt,U=$t):xn(p),(H.uponSanitizeElement.length>0||H.uponSanitizeAttribute.length>0)&&(F=ae(F)),H.uponSanitizeAttribute.length>0&&(U=ae(U)),n.removed=[];const M=bn&&typeof b!="string"&<(b);if(M){b1(b);const te=ee(b);if(typeof te=="string"){const ne=G(te);if(!F[ne]||at[ne])throw Nt(b),Se("root node is forbidden and cannot be sanitized in-place")}if(Mt(b))throw Nt(b),Se("root node is clobbered and cannot be sanitized in-place");try{Tn(b)}catch(ne){throw Nt(b),ne}}else if(lt(b))m=Co("<!---->"),k=m.ownerDocument.importNode(b,!0),k.nodeType===oe.element&&k.nodeName==="BODY"||k.nodeName==="HTML"?m=k:m.appendChild(k),Tn(k);else{if(!Pe&&!Ce&&!Ne&&b.indexOf("<")===-1)return z&&Bt?ke(b):b;if(m=Co(b),!m)return Pe?null:Bt?A:""}m&&kn&&Ee(m.firstChild);const O=M?b:m;try{const te=Eo(O);for(;E=te.nextNode();)To(E,O),Vo(E),je(E.content)&&It(E.content)}catch(te){throw M&&(Nt(b),Be(n.removed,ne=>{ne.element&&At(ne.element)})),te}if(M)return Be(n.removed,te=>{te.element&&At(te.element)}),Ce&&$n(b),b;if(Pe){if(Ce&&$n(m),Tt)for(S=vd.call(m.ownerDocument);m.firstChild;)S.appendChild(m.firstChild);else S=m;return(U.shadowroot||U.shadowrootmode)&&(S=t1.call(o,S,!0)),S}let q=Ne?m.outerHTML:m.innerHTML;return Ne&&F["!doctype"]&&m.ownerDocument&&m.ownerDocument.doctype&&m.ownerDocument.doctype.name&&X(vc,m.ownerDocument.doctype.name)&&(q="<!DOCTYPE "+m.ownerDocument.doctype.name+`>
|
|
71
|
+
`+q),Ce&&(q=zt(q)),z&&Bt?ke(q):q},n.setConfig=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};xn(b),gn=!0,xt=F,$t=U},n.clearConfig=function(){Ue=null,gn=!1,xt=null,$t=null,z=re,A=""},n.isValidAttribute=function(b,p,m){Ue||xn({});const k=G(b),E=G(p);return Bo(k,E,m)},n.addHook=function(b,p){typeof p=="function"&&v(H,b)&&Je(H[b],p)},n.removeHook=function(b,p){if(v(H,b)){if(p!==void 0){const m=Ic(H[b],p);return m===-1?void 0:Rc(H[b],m,1)[0]}return Sa(H[b])}},n.removeHooks=function(b){v(H,b)&&(H[b]=[])},n.removeAllHooks=function(){H=Fa()},n}var pn=Ua();const wt=typeof pn.sanitize=="function"?pn:pn.default;function s2(t){const n=t.trim();if(!n)return!1;const a=[/^(好的|已|我|现在|以上|这就是|这是|根据|基于)/,/^(表单|流程|Schema|JSON|数据)\s*(已|已经|已生成|已创建|已更新)/,/已(生成|创建|更新|完成|应用)(好|了)?/,/以上(就是|是)/,/请(查看|确认|检查|参考)/,/希望(这|这个)/];return n.length<100&&a.some(o=>o.test(n))}function ja(t){if(!t)return[{type:"text",content:""}];const n=[],a=/```([\w:+#.-]*)\r?\n([\s\S]*?)```|```([^\n`]*?)```|<schema>([\s\S]*?)<\/schema>/g;let o=0,l,r=!1;for(;(l=a.exec(t))!==null;){const s=t.slice(o,l.index);if(s.trim()&&n.push({type:"text",content:s}),l[0].startsWith("<schema>"))n.push({type:"code",content:(l[4]||"").trim(),language:"json"}),r=!0;else if(l[1]!==void 0){const d=(l[1]||"text").trim()||"text",f=(l[2]||"").replace(/^\n/,"").replace(/\n$/,"");qa(n,d,f)}else qa(n,"text",(l[3]||"").trim());o=l.index+l[0].length}const i=t.slice(o);i.trim()&&(r&&s2(i)||n.push({type:"text",content:i}));const c=n.filter((s,d)=>s.type!=="text"||s.content.trim()?!0:d>0&&d<n.length-1);return c.length?c:[{type:"text",content:t}]}function qa(t,n,a){if(n.startsWith("artifact:")){const o=n.slice(9);t.push({type:"artifact",content:a,language:o,artifactType:o});return}t.push({type:"code",content:a,language:n})}function Ga(t){if(!t)return"";const a=D.parse(t,{breaks:!0,gfm:!0}).replace(/<table>/g,'<div class="table-scroll"><table>').replace(/<\/table>/g,"</table></div>");return typeof window>"u"||typeof(wt==null?void 0:wt.sanitize)!="function"?a:wt.sanitize(a,{ADD_ATTR:["class"]})}const i2={class:"apf-message-parts"},c2=["innerHTML"],d2={class:"apf-artifact-head"},p2={class:"apf-artifact-badge"},f2={class:"apf-part-actions"},h2=["onClick"],m2=["onClick"],u2={class:"apf-code-block"},g2={class:"apf-code-head"},k2={class:"apf-code-lang"},y2={class:"apf-part-actions"},b2=["onClick"],_2=["onClick"],w2={class:"apf-code-block"},Wa=L(e.defineComponent({__name:"MessageParts",props:{content:{}},setup(t){const n=t,a=e.computed(()=>ja(n.content||"").map(o));function o(s){if(!((s.language||"").toLowerCase()==="json"||s.artifactType==="json"||l(s.content)))return{...s,display:s.content,isJson:!1};try{const u=JSON.parse(s.content);return{...s,language:s.language||"json",display:JSON.stringify(u,null,2),isJson:!0}}catch{return{...s,display:s.content,isJson:!1}}}function l(s){const d=s.trim();return d.startsWith("{")&&d.endsWith("}")||d.startsWith("[")&&d.endsWith("]")}function r(s){return s.type==="artifact"?s.artifactType||"artifact":s.isJson?"json":s.language&&s.language!=="text"?s.language:"code"}function i(s){var d;s&&((d=navigator.clipboard)==null||d.writeText(s))}function c(s){const d=s.isJson||s.language==="json"?"json":s.language&&s.language!=="text"?s.language.replace(/[^a-z0-9]+/gi,""):"txt",f=new Blob([s.display],{type:"text/plain;charset=utf-8"}),u=URL.createObjectURL(f),h=document.createElement("a");h.href=u,h.download=`result.${d||"txt"}`,h.click(),URL.revokeObjectURL(u)}return(s,d)=>(e.openBlock(),e.createElementBlock("div",i2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(f,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:u},[f.type==="text"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"apf-md-block",innerHTML:e.unref(Ga)(f.content)},null,8,c2)):f.type==="artifact"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["apf-artifact-card",{"apf-json":f.isJson}])},[e.createElementVNode("div",d2,[e.createElementVNode("span",p2,"工件 · "+e.toDisplayString(r(f)),1),e.createElementVNode("div",f2,[e.createElementVNode("button",{class:"apf-icon-btn",type:"button","aria-label":"复制",onClick:h=>i(f.display)},[...d[0]||(d[0]=[e.createElementVNode("svg",{viewBox:"0 0 16 16",width:"13",height:"13"},[e.createElementVNode("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5",fill:"none",stroke:"currentColor","stroke-width":"1.4"}),e.createElementVNode("path",{d:"M3.5 10.5V3.5h7",fill:"none",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round"})],-1)])],8,h2),e.createElementVNode("button",{class:"apf-icon-btn",type:"button","aria-label":"下载",onClick:h=>c(f)},[...d[1]||(d[1]=[e.createElementVNode("svg",{viewBox:"0 0 16 16",width:"13",height:"13"},[e.createElementVNode("path",{d:"M8 2.5v7.2M5.2 7.5 8 10.3l2.8-2.8M3.5 13h9",fill:"none",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,m2)])]),e.createElementVNode("pre",u2,[e.createElementVNode("code",null,e.toDisplayString(f.display),1)])],2)):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["apf-code-wrap",{"apf-json":f.isJson}])},[e.createElementVNode("div",g2,[e.createElementVNode("span",k2,e.toDisplayString(r(f)),1),e.createElementVNode("div",y2,[e.createElementVNode("button",{class:"apf-icon-btn",type:"button","aria-label":"复制",onClick:h=>i(f.display)},[...d[2]||(d[2]=[e.createElementVNode("svg",{viewBox:"0 0 16 16",width:"13",height:"13"},[e.createElementVNode("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5",fill:"none",stroke:"currentColor","stroke-width":"1.4"}),e.createElementVNode("path",{d:"M3.5 10.5V3.5h7",fill:"none",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round"})],-1)])],8,b2),e.createElementVNode("button",{class:"apf-icon-btn",type:"button","aria-label":"下载",onClick:h=>c(f)},[...d[3]||(d[3]=[e.createElementVNode("svg",{viewBox:"0 0 16 16",width:"13",height:"13"},[e.createElementVNode("path",{d:"M8 2.5v7.2M5.2 7.5 8 10.3l2.8-2.8M3.5 13h9",fill:"none",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,_2)])]),e.createElementVNode("pre",w2,[e.createElementVNode("code",null,e.toDisplayString(f.display),1)])],2))],64))),128))]))}}),[["__scopeId","data-v-ed1039e3"]]),C2={key:0,class:"apf-att-list"},E2=["onClick"],x2=["src","alt"],$2=["onClick"],T2={class:"apf-att-badge"},B2={class:"apf-att-meta"},Ya=L(e.defineComponent({__name:"MessageAttachmentList",props:{attachments:{}},emits:["preview"],setup(t,{emit:n}){const a=t,o=n,l=e.computed(()=>a.attachments.filter(Me)),r=e.computed(()=>a.attachments.filter(i=>!Me(i)));return(i,c)=>{var s;return(s=t.attachments)!=null&&s.length?(e.openBlock(),e.createElementBlock("div",C2,[l.value.length?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["apf-image-grid",{"apf-multi":l.value.length>1}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,d=>(e.openBlock(),e.createElementBlock("button",{key:d.id,type:"button",class:"apf-att-image",onClick:f=>o("preview",d)},[e.createElementVNode("img",{src:d.url,alt:d.filename,loading:"lazy"},null,8,x2)],8,E2))),128))],2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,d=>(e.openBlock(),e.createElementBlock("button",{key:d.id,type:"button",class:"apf-att-file",onClick:f=>o("preview",d)},[e.createElementVNode("span",T2,e.toDisplayString(e.unref(Wt)(d)),1),e.createElementVNode("span",B2,[e.createElementVNode("strong",null,e.toDisplayString(d.filename),1),e.createElementVNode("small",null,[d.size?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(mt)(d.size)),1)],64)):e.createCommentVNode("",!0),e.unref(Ye)(d)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" · 点击预览")],64)):e.unref(la)(d)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" · 点击查看")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createTextVNode(" · 点击打开")],64))])])],8,$2))),128))])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-d851b768"]]),S2={key:0,class:"apf-doc-list"},V2=["role","tabindex","onClick","onKeydown"],N2={class:"apf-doc-body"},A2={class:"apf-doc-name"},z2={class:"apf-doc-summary"},M2={key:0,class:"apf-doc-meta"},Za=L(e.defineComponent({__name:"DocumentSummaryList",props:{summaries:{},attachments:{}},emits:["preview"],setup(t,{emit:n}){const a=t,o=n;function l(c){var d;if(!((d=a.attachments)!=null&&d.length))return null;const s=(c.filename||"").toLowerCase();return a.attachments.find(f=>(f.filename||"").toLowerCase()===s)||null}function r(c){const s=l(c);s&&o("preview",s)}function i(c){return l(c)!==null}return(c,s)=>{var d;return(d=t.summaries)!=null&&d.length?(e.openBlock(),e.createElementBlock("div",S2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.summaries,f=>(e.openBlock(),e.createElementBlock("article",{key:f.documentId,class:e.normalizeClass(["apf-doc-card",{"apf-clickable":i(f)}]),role:i(f)?"button":void 0,tabindex:i(f)?0:void 0,onClick:u=>r(f),onKeydown:[e.withKeys(u=>r(f),["enter"]),e.withKeys(e.withModifiers(u=>r(f),["prevent"]),["space"])]},[s[0]||(s[0]=e.createElementVNode("div",{class:"apf-doc-icon"},[e.createElementVNode("svg",{viewBox:"0 0 16 16",width:"14",height:"14"},[e.createElementVNode("path",{d:"M4 2.5h5.2L12 5.3V13.5H4V2.5Z",fill:"none",stroke:"currentColor","stroke-width":"1.3","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M9.2 2.5V5.3H12",fill:"none",stroke:"currentColor","stroke-width":"1.3","stroke-linejoin":"round"})])],-1)),e.createElementVNode("div",N2,[e.createElementVNode("strong",A2,e.toDisplayString(f.filename),1),e.createElementVNode("p",z2,e.toDisplayString(f.summary),1),f.pageCount?(e.openBlock(),e.createElementBlock("span",M2,e.toDisplayString(f.pageCount)+" 页",1)):e.createCommentVNode("",!0)])],42,V2))),128))])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-a5548a3c"]]),L2={class:"apf-bubble-wrap"},I2={key:0,class:"apf-tip"},R2={key:1,class:"apf-typing"},D2={key:2,class:"apf-result-wrap"},P2={key:3,class:"apf-inline-progress"},O2={key:0,class:"apf-result-actions"},H2={key:1,class:"apf-fail-actions"},F2={key:3,class:"apf-bubble apf-waiting-hint"},U2={key:4,class:"apf-bubble apf-failed-hint"},j2={key:5,class:"apf-bubble apf-cancelled-hint"},q2=["aria-expanded"],G2={key:0,class:"apf-live-dot"},W2={class:"apf-detail-collapse"},Y2={class:"apf-detail-collapse-inner"},Z2=["aria-expanded"],K2={class:"apf-detail-collapse"},Q2={class:"apf-detail-collapse-inner"},X2={key:9,class:"apf-chip apf-chip-success"},J2={class:"apf-approval-head"},v2={key:0,class:"apf-approval-danger-tag"},e0={class:"apf-approval-prompt"},t0={class:"apf-approval-actions"},n0=["disabled","onClick"],Ka=L(e.defineComponent({__name:"MessageBubble",props:{message:{},run:{},sending:{type:Boolean},brandMark:{}},emits:["resume","cancel","retry","open-process","preview"],setup(t,{emit:n}){const a=t,o=n,l=e.computed(()=>a.message.role==="user"),r=e.computed(()=>a.message.role==="assistant");function i(z){return{PENDING:"排队中",RUNNING:"正在处理",WAITING_INPUT:"等待你的确认",COMPLETED:"已完成",FAILED:"处理失败",CANCELLED:"已取消"}[z]||z}function c(z){return{RUNNING:"apf-chip-running",WAITING_INPUT:"apf-chip-waiting",COMPLETED:"apf-chip-success",FAILED:"apf-chip-failed",CANCELLED:"apf-chip-cancelled"}[z]||"apf-chip-cancelled"}const s=[{action:"approve",label:"确认继续",style:"primary"},{action:"reject",label:"需要修改",style:"danger"}],d=e.computed(()=>{var A,re;if(a.message.status!=="WAITING_INPUT")return null;const z=(A=a.run)==null?void 0:A.waiting;if(z){const pe=(re=z.actions)!=null&&re.length?z.actions:s;return{prompt:z.prompt||"请确认后继续。",fields:z.fields||[],actions:pe,dangerous:!!z.dangerous}}return{prompt:"请确认后继续。",fields:[],actions:s,dangerous:!1}}),f=e.computed(()=>a.message.content||""),u=e.computed(()=>{var z;return r.value&&a.message.status==="RUNNING"&&!f.value&&!((z=a.message.attachments)!=null&&z.length)}),h=e.computed(()=>{var z,A;return!!f.value||!!((z=a.message.documentSummaries)!=null&&z.length)||!!((A=a.message.attachments)!=null&&A.length)}),w=e.computed(()=>l.value?"apf-user":a.message.status==="WAITING_INPUT"?"apf-waiting":a.message.status==="FAILED"?"apf-failed":""),g=e.ref("");function V(z){o("resume",z,g.value||void 0),g.value=""}function x(){var A;const z=f.value||a.message.content;z&&((A=navigator.clipboard)==null||A.writeText(z))}function T(){const z=f.value||a.message.content;if(!z)return;const A=new Blob([z],{type:"text/markdown;charset=utf-8"}),re=URL.createObjectURL(A),pe=document.createElement("a");pe.href=re,pe.download="reply.md",pe.click(),URL.revokeObjectURL(re)}function $(z){return z.error?"失败":z.result!==void 0?"已完成":"处理中"}const B=e.ref(!1),_=e.ref(!1),C=e.ref(!1),N=e.computed(()=>r.value&&a.message.status==="RUNNING"&&!!a.message.thinking);e.watch(()=>{var z;return[a.message.status,!!((z=a.message.thinking)!=null&&z.trim())]},([z,A])=>{if(!A){B.value=!1,_.value=!1;return}if(z==="RUNNING"){B.value=!0,_.value=!1;return}_.value||(B.value=!1)},{immediate:!0});function j(){B.value=!B.value,_.value=!0}function ee(){C.value=!C.value}return(z,A)=>{var re,pe,_e,nt,ke;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["apf-message",[t.message.role,t.message.status&&r.value?`apf-st-${t.message.status}`:""]])},[r.value&&t.brandMark?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.brandMark),{key:0,variant:"ai",size:"sm"})):e.createCommentVNode("",!0),e.createElementVNode("div",L2,[r.value&&t.message.tip?(e.openBlock(),e.createElementBlock("p",I2,e.toDisplayString(t.message.tip),1)):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createElementBlock("div",R2,[...A[4]||(A[4]=[e.createElementVNode("span",{class:"apf-status-text"},"正在处理",-1),e.createElementVNode("span",{class:"apf-dots"},[e.createElementVNode("i"),e.createElementVNode("i"),e.createElementVNode("i")],-1)])])):h.value?(e.openBlock(),e.createElementBlock("div",D2,[e.createElementVNode("div",{class:e.normalizeClass(["apf-bubble apf-message-content",w.value])},[(re=t.message.attachments)!=null&&re.length?(e.openBlock(),e.createBlock(Ya,{key:0,attachments:t.message.attachments,onPreview:A[0]||(A[0]=K=>o("preview",K))},null,8,["attachments"])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createBlock(Wa,{key:1,content:f.value},null,8,["content"])):e.createCommentVNode("",!0),(pe=t.message.documentSummaries)!=null&&pe.length?(e.openBlock(),e.createBlock(Za,{key:2,summaries:t.message.documentSummaries,onPreview:A[1]||(A[1]=K=>o("preview",K))},null,8,["summaries"])):e.createCommentVNode("",!0),r.value&&t.message.status==="RUNNING"&&f.value?(e.openBlock(),e.createElementBlock("p",P2,"仍在处理…")):e.createCommentVNode("",!0)],2),r.value&&t.message.status==="COMPLETED"?(e.openBlock(),e.createElementBlock("div",O2,[e.createElementVNode("button",{class:"apf-icon-btn",type:"button","aria-label":"复制",onClick:x},[...A[5]||(A[5]=[e.createElementVNode("svg",{viewBox:"0 0 16 16",width:"14",height:"14"},[e.createElementVNode("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5",fill:"none",stroke:"currentColor","stroke-width":"1.4"}),e.createElementVNode("path",{d:"M3.5 10.5V3.5h7",fill:"none",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round"})],-1)])]),e.createElementVNode("button",{class:"apf-icon-btn",type:"button","aria-label":"下载",onClick:T},[...A[6]||(A[6]=[e.createElementVNode("svg",{viewBox:"0 0 16 16",width:"14",height:"14"},[e.createElementVNode("path",{d:"M8 2.5v7.2M5.2 7.5 8 10.3l2.8-2.8M3.5 13h9",fill:"none",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])]),t.message.thinking||(_e=t.message.toolCalls)!=null&&_e.length?(e.openBlock(),e.createElementBlock("button",{key:0,class:"apf-text-link",type:"button",onClick:A[2]||(A[2]=K=>o("open-process"))},"处理信息")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),r.value&&t.message.status==="FAILED"?(e.openBlock(),e.createElementBlock("div",H2,[e.createElementVNode("button",{class:"apf-icon-btn",type:"button","aria-label":"重试",onClick:A[3]||(A[3]=K=>o("retry"))},[...A[7]||(A[7]=[e.createElementVNode("svg",{viewBox:"0 0 16 16",width:"14",height:"14"},[e.createElementVNode("path",{d:"M3.2 8a4.8 4.8 0 0 1 8.3-3.2",fill:"none",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round"}),e.createElementVNode("path",{d:"M12.8 8a4.8 4.8 0 0 1-8.3 3.2",fill:"none",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round"}),e.createElementVNode("path",{d:"M11.2 2.6v2.6h-2.6M4.8 13.4v-2.6h2.6",fill:"none",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])])])):e.createCommentVNode("",!0)])):r.value&&t.message.status==="WAITING_INPUT"&&!h.value?(e.openBlock(),e.createElementBlock("div",F2,"请在下方确认后继续。")):r.value&&t.message.status==="FAILED"&&!h.value?(e.openBlock(),e.createElementBlock("div",U2,"处理失败")):r.value&&t.message.status==="CANCELLED"&&!h.value?(e.openBlock(),e.createElementBlock("div",j2,"已取消")):e.createCommentVNode("",!0),r.value&&((nt=t.message.thinking)!=null&&nt.trim())?(e.openBlock(),e.createElementBlock("div",{key:6,class:e.normalizeClass(["apf-detail-block",{open:B.value,streaming:N.value}])},[e.createElementVNode("button",{type:"button",class:"apf-detail-summary","aria-expanded":B.value,onClick:j},[A[8]||(A[8]=e.createElementVNode("span",{class:"apf-chevron"},null,-1)),A[9]||(A[9]=e.createElementVNode("span",null,"思考过程",-1)),N.value?(e.openBlock(),e.createElementBlock("span",G2)):e.createCommentVNode("",!0)],8,q2),e.createElementVNode("div",W2,[e.createElementVNode("div",Y2,[e.createElementVNode("div",{class:e.normalizeClass(["apf-detail-content",{streaming:N.value}])},e.toDisplayString(t.message.thinking),3)])])],2)):e.createCommentVNode("",!0),r.value&&((ke=t.message.toolCalls)!=null&&ke.length)?(e.openBlock(),e.createElementBlock("div",{key:7,class:e.normalizeClass(["apf-detail-block",{open:C.value}])},[e.createElementVNode("button",{type:"button",class:"apf-detail-summary","aria-expanded":C.value,onClick:ee},[A[10]||(A[10]=e.createElementVNode("span",{class:"apf-chevron"},null,-1)),e.createElementVNode("span",null,"处理步骤("+e.toDisplayString(t.message.toolCalls.length)+")",1)],8,Z2),e.createElementVNode("div",K2,[e.createElementVNode("div",Q2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.message.toolCalls,K=>(e.openBlock(),e.createElementBlock("div",{key:K.id||K.name,class:"apf-tool-row"},[e.createElementVNode("strong",null,e.toDisplayString(K.name),1),e.createElementVNode("span",{class:e.normalizeClass({"apf-err":!!K.error})},e.toDisplayString($(K)),3)]))),128))])])],2)):e.createCommentVNode("",!0),r.value&&t.message.status!=="COMPLETED"&&t.message.status!=="CANCELLED"?(e.openBlock(),e.createElementBlock("span",{key:8,class:e.normalizeClass(["apf-chip",c(t.message.status)])},[A[11]||(A[11]=e.createElementVNode("i",null,null,-1)),e.createTextVNode(e.toDisplayString(i(t.message.status)),1)],2)):r.value&&t.message.status==="COMPLETED"?(e.openBlock(),e.createElementBlock("span",X2,[...A[12]||(A[12]=[e.createElementVNode("i",null,null,-1),e.createTextVNode("已完成",-1)])])):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock("div",{key:10,class:e.normalizeClass(["apf-inline-approval",{"apf-dangerous-approval":d.value.dangerous}])},[e.createElementVNode("div",J2,[A[13]||(A[13]=e.createElementVNode("span",{class:"apf-approval-title"},"需要你的确认",-1)),d.value.dangerous?(e.openBlock(),e.createElementBlock("span",v2,"需谨慎")):e.createCommentVNode("",!0)]),e.createElementVNode("p",e0,e.toDisplayString(d.value.prompt),1),e.createElementVNode("div",t0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.actions,K=>(e.openBlock(),e.createElementBlock("button",{key:K.action,type:"button",class:e.normalizeClass(["apf-approval-btn",K.style==="danger"?"apf-approval-btn-danger":"apf-approval-btn-primary"]),disabled:t.sending,onClick:Ja=>V(K.action)},e.toDisplayString(K.label),11,n0))),128))])],2)):e.createCommentVNode("",!0)])],2)}}}),[["__scopeId","data-v-0bce1166"]]),a0={key:0,class:"apf-skeleton-line"},o0=L(e.defineComponent({__name:"MessageList",props:{messages:{},loading:{type:Boolean},currentRun:{},sending:{type:Boolean},brandMark:{}},emits:["resume","cancel","retry","open-process","preview"],setup(t,{emit:n}){const a=t,o=n,l=e.ref(null);e.watch(()=>a.messages.length,async()=>{await e.nextTick(),l.value&&(l.value.scrollTop=l.value.scrollHeight)},{flush:"post"}),e.watch(()=>a.messages.map(i=>`${i.id}:${i.status}:${(i.content||"").length}`).join("|"),async()=>{await e.nextTick(),l.value&&(l.value.scrollTop=l.value.scrollHeight)},{flush:"post"});function r(i){return!a.currentRun||!i.runtimeExecutionId?null:a.currentRun.runtimeExecutionId===i.runtimeExecutionId?a.currentRun:null}return(i,c)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"container",ref:l,class:"apf-message-list"},[t.loading&&!t.messages.length?(e.openBlock(),e.createElementBlock("div",a0,[...c[4]||(c[4]=[e.createElementVNode("div",{class:"apf-skeleton",style:{height:"var(--icon-size-sm, 14px)",width:"60%"}},null,-1),e.createElementVNode("div",{class:"apf-skeleton",style:{height:"var(--icon-size-sm, 14px)",width:"45%","margin-top":"var(--spacing-sm, 8px)"}},null,-1)])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.messages,s=>(e.openBlock(),e.createBlock(Ka,{key:s.id,message:s,run:r(s),sending:!!t.sending,"brand-mark":t.brandMark,onResume:c[0]||(c[0]=(d,f)=>o("resume",d,f)),onCancel:c[1]||(c[1]=d=>o("cancel")),onRetry:c[2]||(c[2]=d=>o("retry")),onOpenProcess:d=>o("open-process",s),onPreview:c[3]||(c[3]=d=>o("preview",d))},null,8,["message","run","sending","brand-mark","onOpenProcess"]))),128))],512))}}),[["__scopeId","data-v-98c128d1"]]),l0={key:0,class:"apf-pending-list"},r0=["src"],s0={class:"apf-pending-name"},i0={key:1,class:"apf-pending-status"},c0={key:2,class:"apf-pending-status apf-error"},d0=["onClick"],p0=["placeholder","disabled"],f0={class:"apf-composer-footer"},h0={class:"apf-composer-tools"},m0=["disabled"],u0=["disabled"],g0={class:"apf-composer-meta"},k0={class:"apf-cap-row"},y0={key:0,class:"apf-cap-chip"},b0={key:1,class:"apf-cap-chip"},_0={class:"apf-meta-right"},w0=L(e.defineComponent({__name:"Composer",props:{disabled:{type:Boolean},placeholder:{},supportedInputs:{},hitlCapable:{type:Boolean},wsStatus:{},wsLabel:{}},emits:["send","upload","remove-attachment","ws-click"],setup(t,{emit:n}){const a=t,o=n,l=e.ref(""),r=e.ref(null),i=e.ref(null),c=e.ref([]),s=e.ref(!1),d=e.computed(()=>a.supportedInputs||["text"]),f=e.computed(()=>d.value.some($=>$==="file"||$==="image"||$==="document")),u=e.computed(()=>{if(a.disabled||s.value)return!1;const $=!!l.value.trim(),B=c.value.some(C=>C.status==="done"),_=c.value.some(C=>C.status==="uploading");return($||B)&&!_});function h(){var $;a.disabled||!f.value||($=i.value)==null||$.click()}function w($){const B=$.target,_=B.files;if(_!=null&&_.length){for(const C of Array.from(_))o("upload",C);B.value=""}}function g($){const B=c.value.find(_=>_.id===$);B!=null&&B.previewUrl&&URL.revokeObjectURL(B.previewUrl),c.value=c.value.filter(_=>_.id!==$),o("remove-attachment",$)}async function V(){if(!u.value)return;const $=l.value.trim(),B=c.value.filter(_=>_.status==="done").map(_=>_.id);o("send",$,B),l.value="",c.value.forEach(_=>{_.previewUrl&&URL.revokeObjectURL(_.previewUrl)}),c.value=[],await e.nextTick(),r.value&&(r.value.style.height="auto")}function x($){const B=$.target;B.style.height="auto",B.style.height=Math.min(B.scrollHeight,220)+"px"}function T($){$.key==="Enter"&&!$.shiftKey&&($.preventDefault(),V())}return e.onBeforeUnmount(()=>{c.value.forEach($=>{$.previewUrl&&URL.revokeObjectURL($.previewUrl)})}),($,B)=>(e.openBlock(),e.createElementBlock("form",{class:"apf-composer",onSubmit:e.withModifiers(V,["prevent"])},[e.createElementVNode("div",{class:e.normalizeClass(["apf-composer-field",{"apf-disabled":t.disabled}])},[c.value.length?(e.openBlock(),e.createElementBlock("div",l0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,_=>(e.openBlock(),e.createElementBlock("div",{key:_.id,class:e.normalizeClass(["apf-pending-chip",_.status])},[_.previewUrl?(e.openBlock(),e.createElementBlock("img",{key:0,src:_.previewUrl,alt:"",class:"apf-pending-thumb"},null,8,r0)):e.createCommentVNode("",!0),e.createElementVNode("span",s0,e.toDisplayString(_.filename),1),_.status==="uploading"?(e.openBlock(),e.createElementBlock("span",i0,"上传中")):_.status==="error"?(e.openBlock(),e.createElementBlock("span",c0,e.toDisplayString(_.error||"失败"),1)):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:"apf-pending-remove",onClick:C=>g(_.id)},"×",8,d0)],2))),128))])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("textarea",{ref_key:"textareaRef",ref:r,"onUpdate:modelValue":B[0]||(B[0]=_=>l.value=_),placeholder:t.placeholder||"输入消息…",disabled:t.disabled,onInput:x,onKeydown:T},null,40,p0),[[e.vModelText,l.value]]),e.createElementVNode("div",f0,[e.createElementVNode("div",h0,[e.renderSlot($.$slots,"tools",{},void 0,!0),e.createElementVNode("input",{ref_key:"fileInputRef",ref:i,type:"file",class:"apf-file-input",multiple:"",accept:"image/*,.pdf,.txt,.md,.csv,.json,.doc,.docx,.xls,.xlsx",onChange:w},null,544),f.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:"apf-cap-btn",type:"button","aria-label":"添加文件",disabled:t.disabled||s.value,onClick:h},[...B[2]||(B[2]=[e.createElementVNode("svg",{viewBox:"0 0 16 16",width:"14",height:"14"},[e.createElementVNode("path",{d:"M9.2 2.8 4.4 7.6a2.6 2.6 0 0 0 3.7 3.7l5.2-5.2a1.8 1.8 0 0 0-2.5-2.5L5.6 8.8",fill:"none",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,m0)):e.createCommentVNode("",!0)]),e.createElementVNode("button",{type:"submit",class:"apf-send-btn",disabled:!u.value,title:"发送"},"↗",8,u0)])],2),e.createElementVNode("div",g0,[e.createElementVNode("div",k0,[B[3]||(B[3]=e.createElementVNode("span",{class:"apf-cap-chip"},"文本",-1)),f.value?(e.openBlock(),e.createElementBlock("span",y0,"文件")):e.createCommentVNode("",!0),t.hitlCapable?(e.openBlock(),e.createElementBlock("span",b0,"需要确认")):e.createCommentVNode("",!0)]),e.createElementVNode("div",_0,[t.wsStatus?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:e.normalizeClass(["apf-ws-status",t.wsStatus]),onClick:B[1]||(B[1]=_=>o("ws-click"))},[...B[4]||(B[4]=[e.createElementVNode("i",{class:"apf-ws-dot"},null,-1)])],2)):e.createCommentVNode("",!0),B[5]||(B[5]=e.createElementVNode("small",{class:"apf-hint"},"Enter 发送 · Shift+Enter 换行",-1))])])],32))}}),[["__scopeId","data-v-45ece43f"]]),C0={key:0,class:"apf-run-bar"},E0={class:"apf-row"},x0={key:0,class:"apf-elapsed"},$0={key:0,class:"apf-error-text"},Qa=L(e.defineComponent({__name:"RunStatusBar",props:{run:{},sending:{type:Boolean}},emits:["cancel"],setup(t,{emit:n}){const a=t,o=n,l=e.computed(()=>{var s;return((s=a.run)==null?void 0:s.status)||null});function r(s){return{RUNNING:"正在处理",COMPLETED:"已完成",FAILED:"处理失败",WAITING_INPUT:"等待你的确认",CANCELLED:"已取消"}[s]||s}function i(s){return{RUNNING:"apf-running",COMPLETED:"apf-success",FAILED:"apf-failed",WAITING_INPUT:"apf-waiting",CANCELLED:"apf-cancelled"}[s]||""}function c(){if(!a.run)return"";const s=new Date(a.run.startedAt).getTime(),d=a.run.finishedAt?new Date(a.run.finishedAt).getTime():Date.now(),f=Math.round((d-s)/1e3);return f<60?f+"s":Math.floor(f/60)+"m "+f%60+"s"}return(s,d)=>t.run?(e.openBlock(),e.createElementBlock("div",C0,[e.createElementVNode("div",E0,[e.createElementVNode("span",{class:e.normalizeClass(["apf-chip",i(l.value||"")])},[d[1]||(d[1]=e.createElementVNode("i",null,null,-1)),e.createTextVNode(e.toDisplayString(r(l.value||"")),1)],2),l.value==="RUNNING"||l.value==="WAITING_INPUT"?(e.openBlock(),e.createElementBlock("span",x0,e.toDisplayString(c()),1)):e.createCommentVNode("",!0),l.value==="RUNNING"?(e.openBlock(),e.createElementBlock("button",{key:1,class:"apf-btn-cancel",onClick:d[0]||(d[0]=f=>o("cancel"))},"停止")):e.createCommentVNode("",!0)]),t.run.errorMessage?(e.openBlock(),e.createElementBlock("p",$0,e.toDisplayString(t.run.errorMessage),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-33963f1d"]]),T0={class:"apf-header"},B0={key:0,class:"apf-danger-tag"},S0={class:"apf-prompt"},V0=["placeholder"],N0=["value"],A0=["placeholder"],z0={class:"apf-actions"},M0=["disabled","onClick"],L0=L(e.defineComponent({__name:"ApprovalCard",props:{waiting:{},disabled:{type:Boolean}},emits:["resume"],setup(t,{emit:n}){const a=n,o=e.ref("");function l(r){a("resume",r,o.value||void 0),o.value=""}return(r,i)=>t.waiting?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["apf-approval-card",{"apf-dangerous":t.waiting.dangerous}])},[e.createElementVNode("div",T0,[i[3]||(i[3]=e.createElementVNode("span",{class:"apf-title"},"需要你的操作",-1)),t.waiting.dangerous?(e.openBlock(),e.createElementBlock("span",B0,"危险操作")):e.createCommentVNode("",!0)]),e.createElementVNode("p",S0,e.toDisplayString(t.waiting.prompt),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.waiting.fields,c=>(e.openBlock(),e.createElementBlock("div",{key:c.key,class:"apf-field"},[e.createElementVNode("label",null,e.toDisplayString(c.label),1),c.type==="textarea"?e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:0,"onUpdate:modelValue":i[0]||(i[0]=s=>o.value=s),placeholder:"请输入"+c.label,rows:"2"},null,8,V0)),[[e.vModelText,o.value]]):c.type==="select"&&c.options.length?e.withDirectives((e.openBlock(),e.createElementBlock("select",{key:1,"onUpdate:modelValue":i[1]||(i[1]=s=>o.value=s)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.options,s=>(e.openBlock(),e.createElementBlock("option",{key:s,value:s},e.toDisplayString(s),9,N0))),128))],512)),[[e.vModelSelect,o.value]]):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:2,"onUpdate:modelValue":i[2]||(i[2]=s=>o.value=s),placeholder:"请输入"+c.label},null,8,A0)),[[e.vModelText,o.value]])]))),128)),e.createElementVNode("div",z0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.waiting.actions,c=>(e.openBlock(),e.createElementBlock("button",{key:c.action,class:e.normalizeClass(["apf-btn",c.style==="danger"?"apf-btn-danger":"apf-btn-primary"]),disabled:t.disabled,onClick:s=>l(c.action)},e.toDisplayString(c.label),11,M0))),128))])],2)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-ca69b479"]]),I0=["aria-label"],R0={class:"apf-preview-head"},D0={class:"apf-preview-title"},P0={class:"apf-preview-actions"},O0=["href"],H0={key:0,class:"apf-preview-body apf-preview-body-image"},F0=["src","alt"],U0={key:3,class:"apf-gallery-counter"},j0={key:1,class:"apf-preview-body apf-preview-body-pdf"},q0=["src","title"],G0={key:2,class:"apf-preview-body apf-preview-body-degraded"},W0={class:"apf-degraded-content"},Y0={class:"apf-degraded-badge"},Z0={class:"apf-degraded-filename"},K0={key:0,class:"apf-degraded-size"},Q0=["href"],X0=L(e.defineComponent({__name:"AttachmentPreviewModal",props:{modelValue:{type:Boolean},attachment:{},gallery:{}},emits:["update:modelValue","update:attachment"],setup(t,{emit:n}){const a=t,o=n,l=e.computed({get:()=>a.modelValue,set:C=>o("update:modelValue",C)});function r(C){return C.url||""}const i=e.computed(()=>a.attachment?Me(a.attachment):!1),c=e.computed(()=>a.attachment?Ye(a.attachment):!1),s=e.computed(()=>{var N;return((N=a.gallery)!=null&&N.length?a.gallery:a.attachment?[a.attachment]:[]).filter(Me)}),d=e.computed(()=>!s.value.length||!a.attachment?-1:s.value.findIndex(C=>{var N;return C.id===((N=a.attachment)==null?void 0:N.id)})),f=e.computed(()=>d.value>0),u=e.computed(()=>d.value>=0&&d.value<s.value.length-1),h=e.ref(null),w=e.ref(null),g=e.ref(null);function V(){l.value=!1}function x(){if(!f.value)return;const C=s.value[d.value-1];C&&o("update:attachment",C)}function T(){if(!u.value)return;const C=s.value[d.value+1];C&&o("update:attachment",C)}function $(C){if(l.value){if(C.key==="Escape"){C.preventDefault(),V();return}if(C.key==="ArrowLeft"&&f.value){C.preventDefault(),x();return}if(C.key==="ArrowRight"&&u.value){C.preventDefault(),T();return}if(C.key==="Tab"&&h.value){const N=h.value.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(N.length===0)return;const j=N[0],ee=N[N.length-1];C.shiftKey&&document.activeElement===j?(C.preventDefault(),ee.focus()):!C.shiftKey&&document.activeElement===ee&&(C.preventDefault(),j.focus())}}}e.watch(l,C=>{C?(g.value=document.activeElement,requestAnimationFrame(()=>{var N;return(N=w.value)==null?void 0:N.focus()}),document.addEventListener("keydown",$)):(document.removeEventListener("keydown",$),g.value&&(g.value.focus(),g.value=null))}),e.onUnmounted(()=>document.removeEventListener("keydown",$));function B(C){C.target===C.currentTarget&&V()}function _(C){C.stopPropagation()}return(C,N)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[l.value&&t.attachment?(e.openBlock(),e.createElementBlock("div",{key:0,class:"apf-preview-mask",role:"dialog","aria-modal":"true","aria-label":`预览 ${t.attachment.filename}`,onClick:B},[e.createElementVNode("div",{ref_key:"panelRef",ref:h,class:e.normalizeClass(["apf-preview-panel",{"apf-preview-image":i.value,"apf-preview-pdf":c.value,"apf-preview-degraded":!i.value&&!c.value}]),onClick:_},[e.createElementVNode("header",R0,[e.createElementVNode("strong",D0,e.toDisplayString(t.attachment.filename),1),e.createElementVNode("div",P0,[r(t.attachment)?(e.openBlock(),e.createElementBlock("a",{key:0,href:r(t.attachment),target:"_blank",rel:"noopener",class:"apf-preview-action-btn"},e.toDisplayString(c.value?"新窗口打开":i.value?"打开原图":"打开/下载"),9,O0)):e.createCommentVNode("",!0),e.createElementVNode("button",{ref_key:"closeBtnRef",ref:w,type:"button",class:"apf-preview-action-btn","aria-label":"关闭预览",onClick:V}," 关闭 ",512)])]),i.value?(e.openBlock(),e.createElementBlock("div",H0,[f.value?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"apf-gallery-btn apf-gallery-prev","aria-label":"上一张图片",onClick:x}," ‹ ")):e.createCommentVNode("",!0),r(t.attachment)?(e.openBlock(),e.createElementBlock("img",{key:1,src:r(t.attachment),alt:t.attachment.filename,class:"apf-preview-img"},null,8,F0)):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:"apf-gallery-btn apf-gallery-next","aria-label":"下一张图片",onClick:T}," › ")):e.createCommentVNode("",!0),s.value.length>1?(e.openBlock(),e.createElementBlock("div",U0,e.toDisplayString(d.value+1)+" / "+e.toDisplayString(s.value.length),1)):e.createCommentVNode("",!0)])):c.value?(e.openBlock(),e.createElementBlock("div",j0,[r(t.attachment)?(e.openBlock(),e.createElementBlock("iframe",{key:0,src:r(t.attachment),title:t.attachment.filename,class:"apf-pdf-frame"},null,8,q0)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",G0,[e.createElementVNode("div",W0,[e.createElementVNode("span",Y0,e.toDisplayString(e.unref(Wt)(t.attachment)),1),e.createElementVNode("strong",Z0,e.toDisplayString(t.attachment.filename),1),t.attachment.size?(e.openBlock(),e.createElementBlock("p",K0,e.toDisplayString(e.unref(mt)(t.attachment.size)),1)):e.createCommentVNode("",!0),N[0]||(N[0]=e.createElementVNode("p",{class:"apf-degraded-hint"},"此格式暂不支持应用内预览",-1)),r(t.attachment)?(e.openBlock(),e.createElementBlock("a",{key:1,href:r(t.attachment),target:"_blank",rel:"noopener",class:"apf-preview-action-btn apf-preview-action-primary"}," 打开/下载 ",8,Q0)):e.createCommentVNode("",!0)])]))],2)],8,I0)):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-40702673"]]),J0={class:"apf-session-sidebar","aria-label":"会话列表"},v0={class:"apf-session-sidebar__head"},ed={class:"apf-session-sidebar__list"},td=["onClick"],nd={class:"apf-session-sidebar__item-title"},ad={key:0,class:"apf-session-sidebar__empty"},od=L(e.defineComponent({__name:"SessionSidebar",props:{sessions:{},activeId:{},loading:{type:Boolean},title:{}},emits:["select","create","delete"],setup(t,{emit:n}){const a=n;function o(l){if(!l)return"";const r=new Date(l),i=(Date.now()-r.getTime())/1e3;return i<60?"刚刚":i<3600?`${Math.floor(i/60)} 分钟前`:i<86400?`${Math.floor(i/3600)} 小时前`:r.toLocaleDateString("zh-CN")}return(l,r)=>{const i=e.resolveComponent("el-button"),c=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("aside",J0,[e.createElementVNode("div",v0,[e.createElementVNode("strong",null,e.toDisplayString(t.title||"会话"),1),e.createVNode(i,{type:"primary",size:"small",onClick:r[0]||(r[0]=s=>a("create"))},{default:e.withCtx(()=>[...r[1]||(r[1]=[e.createTextVNode("新建",-1)])]),_:1})]),e.withDirectives((e.openBlock(),e.createElementBlock("div",ed,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.sessions,s=>(e.openBlock(),e.createElementBlock("button",{key:s.id,type:"button",class:e.normalizeClass(["apf-session-sidebar__item",{"is-active":s.id===t.activeId}]),onClick:d=>a("select",s.id)},[e.createElementVNode("span",nd,e.toDisplayString(s.title||"未命名会话"),1),e.createElementVNode("small",null,e.toDisplayString(o(s.updatedAt||s.createdAt)),1),e.createVNode(i,{class:"apf-session-sidebar__delete",link:"",type:"danger",size:"small",onClick:e.withModifiers(d=>a("delete",s.id),["stop"])},{default:e.withCtx(()=>[...r[2]||(r[2]=[e.createTextVNode(" 删除 ",-1)])]),_:1},8,["onClick"])],10,td))),128)),!t.loading&&!t.sessions.length?(e.openBlock(),e.createElementBlock("div",ad,"暂无会话")):e.createCommentVNode("",!0)])),[[c,t.loading]])])}}}),[["__scopeId","data-v-2a3b7a7c"]]),ld={key:0,class:"apf-processing-drawer__subtitle"},rd={class:"apf-processing-drawer__body"},sd=L(e.defineComponent({__name:"ProcessingDrawer",props:{modelValue:{type:Boolean},run:{},title:{},subtitle:{},sending:{type:Boolean}},emits:["update:modelValue","cancel"],setup(t,{emit:n}){const a=n;return(o,l)=>{const r=e.resolveComponent("el-drawer");return e.openBlock(),e.createBlock(r,{"model-value":t.modelValue,title:t.title||"处理详情",size:"380px","append-to-body":"","onUpdate:modelValue":l[1]||(l[1]=i=>a("update:modelValue",i))},{default:e.withCtx(()=>[t.subtitle?(e.openBlock(),e.createElementBlock("p",ld,e.toDisplayString(t.subtitle),1)):e.createCommentVNode("",!0),t.run?(e.openBlock(),e.createBlock(e.unref(Qa),{key:1,run:t.run,sending:t.sending??!1,onCancel:l[0]||(l[0]=i=>a("cancel"))},null,8,["run","sending"])):e.createCommentVNode("",!0),e.createElementVNode("div",rd,[e.renderSlot(o.$slots,"default",{},void 0,!0)])]),_:3},8,["model-value","title"])}}}),[["__scopeId","data-v-6036074a"]]),id={class:"apf-conversation-header"},cd={class:"apf-conversation-header__identity"},dd={class:"apf-conversation-header__copy"},pd={class:"apf-conversation-header__label"},fd={class:"apf-conversation-header__actions"},hd={key:0,class:"apf-conversation-header__processing"},md=L(e.defineComponent({__name:"ConversationHeader",props:{title:{},label:{},hasMessages:{type:Boolean},processing:{type:Boolean}},emits:["changeAssistant","toggleDetails","create"],setup(t,{emit:n}){const a=n;return(o,l)=>(e.openBlock(),e.createElementBlock("header",id,[e.createElementVNode("div",cd,[e.createElementVNode("div",dd,[e.createElementVNode("span",pd,e.toDisplayString(t.label||"正在使用"),1),e.createElementVNode("strong",null,e.toDisplayString(t.title||"选择一个智能体开始"),1)])]),e.createElementVNode("div",fd,[t.processing?(e.openBlock(),e.createElementBlock("span",hd,[...l[2]||(l[2]=[e.createElementVNode("i",null,null,-1),e.createElementVNode("span",null,"正在处理",-1)])])):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:"apf-conversation-header__btn",onClick:l[0]||(l[0]=r=>t.hasMessages?a("create"):a("changeAssistant"))},e.toDisplayString(t.hasMessages?"新建对话":"选择智能体"),1),t.hasMessages?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"apf-conversation-header__btn",onClick:l[1]||(l[1]=r=>a("toggleDetails"))}," 处理详情 ")):e.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-d93df7f9"]]),ud={class:"apf-assistant-picker"},gd={key:0,class:"apf-assistant-picker__state"},kd={key:1,class:"apf-assistant-picker__state apf-assistant-picker__state--error"},yd={key:2,class:"apf-assistant-picker__state"},bd=["onClick"],_d={class:"apf-assistant-picker__main"},wd={class:"apf-assistant-picker__icon-wrap"},Cd={class:"apf-assistant-picker__info"},Ed={class:"apf-assistant-picker__caps"},xd=L(e.defineComponent({__name:"AssistantPicker",props:{items:{},modelValue:{},loading:{type:Boolean,default:!1},error:{default:null}},emits:["update:modelValue","select"],setup(t,{emit:n}){const a=t,o=n;function l(s){var f,u;const d=["文本"];return(f=s.supportedInputs)!=null&&f.includes("file")&&d.push("文件"),(u=s.supportedInputs)!=null&&u.includes("image")&&d.push("图片"),s.hitlCapable&&d.push("需要确认"),d}function r(s){return s.icon||"chat-dot-round"}function i(s){o("update:modelValue",s.id),o("select",s)}const c=e.computed(()=>!a.loading&&!a.error&&!a.items.length);return(s,d)=>(e.openBlock(),e.createElementBlock("div",ud,[t.loading?(e.openBlock(),e.createElementBlock("div",gd,[...d[0]||(d[0]=[e.createElementVNode("p",null,"正在加载智能体…",-1)])])):t.error?(e.openBlock(),e.createElementBlock("div",kd,[e.createElementVNode("p",null,e.toDisplayString(t.error),1)])):c.value?(e.openBlock(),e.createElementBlock("div",yd,[...d[1]||(d[1]=[e.createElementVNode("p",null,"暂无可用智能体",-1)])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,f=>(e.openBlock(),e.createElementBlock("button",{key:f.id,type:"button",class:e.normalizeClass(["apf-assistant-picker__item",{"is-active":t.modelValue===f.id}]),onClick:u=>i(f)},[e.createElementVNode("div",_d,[e.createElementVNode("span",wd,[e.createVNode(e.unref(le),{name:r(f),size:22},null,8,["name"])]),e.createElementVNode("span",Cd,[e.createElementVNode("b",null,e.toDisplayString(f.name),1),e.createElementVNode("small",null,e.toDisplayString(f.description||"适合处理一类明确任务"),1),e.createElementVNode("span",Ed,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l(f),u=>(e.openBlock(),e.createElementBlock("span",{key:u,class:e.normalizeClass(["apf-assistant-picker__cap",{"is-confirm":u==="需要确认"}])},e.toDisplayString(u),3))),128))])])]),e.createElementVNode("span",{class:e.normalizeClass(["apf-assistant-picker__choose",{"is-selected":t.modelValue===f.id}])},e.toDisplayString(t.modelValue===f.id?"已选择":"开始使用"),3)],10,bd))),128))]))}}),[["__scopeId","data-v-f05e69c0"]]),$d={class:"apf-model-picker"},Td=L(e.defineComponent({__name:"ModelPicker",props:{models:{},modelValue:{},loading:{type:Boolean}},emits:["update:modelValue"],setup(t,{emit:n}){const a=n;return(o,l)=>{const r=e.resolveComponent("el-option"),i=e.resolveComponent("el-select");return e.openBlock(),e.createElementBlock("label",$d,[e.createVNode(i,{"model-value":t.modelValue||void 0,disabled:t.loading||!t.models.length,placeholder:"选择模型","onUpdate:modelValue":l[0]||(l[0]=c=>a("update:modelValue",c))},{default:e.withCtx(()=>[t.loading?(e.openBlock(),e.createBlock(r,{key:0,label:"正在加载模型…",value:"",disabled:""})):t.models.length?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(r,{key:1,label:"暂无可用模型",value:"",disabled:""})),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.models,c=>(e.openBlock(),e.createBlock(r,{key:c.id,label:`${c.name} · ${c.provider}`,value:c.id},null,8,["label","value"]))),128))]),_:1},8,["model-value","disabled"])])}}}),[["__scopeId","data-v-483ae73d"]]),Xa=Symbol("fg-toast");function Bd(t){return{[Xa]:t}}function Sd(){const t=e.inject(Xa);return{show(n,a="info",o){var l;(l=t==null?void 0:t.value)==null||l.show(n,a,o)},info(n,a){var o;(o=t==null?void 0:t.value)==null||o.show(n,"info",a)},success(n,a){var o;(o=t==null?void 0:t.value)==null||o.show(n,"success",a)},warning(n,a){var o;(o=t==null?void 0:t.value)==null||o.show(n,"warning",a)},error(n,a){var o;(o=t==null?void 0:t.value)==null||o.show(n,"error",a)}}}function Vd(){async function t(o,l={}){const{title:r="确认操作",type:i="warning",confirmButtonText:c="确定",cancelButtonText:s="取消"}=l;try{return await se.ElMessageBox.confirm(o,r,{confirmButtonText:c,cancelButtonText:s,type:i}),!0}catch{return!1}}async function n(o,l={}){return t(`此操作将永久删除${o},是否继续?`,{title:"确认删除",type:"warning",confirmButtonText:"确认删除",...l})}async function a(o,l={}){return t(o,{title:"确认操作",type:"warning",...l})}return{confirm:t,confirmDelete:n,confirmDanger:a}}function Nd(){return{success(t,n={}){se.ElMessage({message:t,type:"success",...n})},error(t,n={}){se.ElMessage({message:t,type:"error",...n})},warning(t,n={}){se.ElMessage({message:t,type:"warning",...n})},info(t,n={}){se.ElMessage({message:t,type:"info",...n})}}}function Ad(t,n=300){const a=e.ref(null);function o(...l){a.value&&clearTimeout(a.value),a.value=setTimeout(()=>{t(...l),a.value=null},n)}return e.onUnmounted(()=>{a.value&&clearTimeout(a.value)}),o}function zd(t,n){var c;const a=e.ref(1),o=e.ref((n==null?void 0:n.initialPageSize)??Gt),l=e.computed(()=>{const s=t.value,d=(a.value-1)*o.value;return s.slice(d,d+o.value)}),r=e.computed(()=>t.value.length);function i(){a.value=1}return e.watch(o,()=>{a.value=1},{flush:"sync"}),e.watch(t,s=>{const d=Math.max(1,Math.ceil(s.length/o.value)||1);a.value>d&&(a.value=d)}),(c=n==null?void 0:n.resetOn)!=null&&c.length&&e.watch(n.resetOn,()=>{i()}),{currentPage:a,pageSize:o,pagedItems:l,total:r,resetPage:i}}function Md(t={}){const{timeout:n=15e3,silentError:a=!1}=t,o=e.ref(!1),l=e.ref(null),r=e.ref(!1),i=e.computed(()=>l.value!==null);let c=null,s=0;function d(){s++,s===1&&(o.value=!0,l.value=null,r.value=!1,c=setTimeout(()=>{r.value=!0},n))}function f(){s=Math.max(0,s-1),s===0&&(o.value=!1,r.value=!1,c&&(clearTimeout(c),c=null))}async function u(w){d();try{return await w()}catch(g){return a||(l.value=g instanceof Error?g.message:"加载失败"),null}finally{f()}}function h(){s=0,o.value=!1,l.value=null,r.value=!1,c&&(clearTimeout(c),c=null)}return{loading:o,error:l,timedOut:r,hasError:i,withLoading:u,reset:h}}function Ld(t){const{containerRef:n,autoScroll:a=!0,behavior:o="smooth",offset:l=50}=t,r=e.ref(!0),i=e.ref(a);function c(){const w=n.value;if(!w)return!0;const{scrollTop:g,scrollHeight:V,clientHeight:x}=w;return V-g-x<l}async function s(w=!0){if(!w&&!i.value)return;await e.nextTick();const g=n.value;g&&g.scrollTo({top:g.scrollHeight,behavior:o})}function d(w){const g=n.value;g&&g.scrollTo({top:w,behavior:o})}function f(){i.value=!0}function u(){i.value=!1}function h(){r.value=c(),r.value&&(i.value=!0)}return e.onMounted(()=>{const w=n.value;w&&(w.addEventListener("scroll",h),r.value=c())}),e.onUnmounted(()=>{const w=n.value;w&&w.removeEventListener("scroll",h)}),{scrollToBottom:s,scrollTo:d,isAtBottom:r,autoScrollEnabled:i,checkIfAtBottom:c,enableAutoScroll:f,disableAutoScroll:u}}function Id(t){if(!t)return"操作失败";if(typeof t=="string")return t;if(t instanceof Error)return t.message||"操作失败";if(typeof t=="object"){const n=t;if(n.message)return n.message;if(n.errors&&typeof n.errors=="object"){const a=[];for(const o of Object.values(n.errors))Array.isArray(o)&&a.push(...o);if(a.length>0)return a.join(";")}if(n.code)return`错误码:${n.code}`}return"操作失败"}const Rd={primary:"#0060A2",primaryHover:"#4581E9",primaryLight:"#4581E9",primaryLighter:"#EEF5FF",primaryDark:"#0060A2",success:"#26A036",warning:"#F09700",danger:"#E50113",info:"#4581E9"},Dd={title:"#303133",primary:"#333333",regular:"#606266",secondary:"#666666",muted:"#909399",placeholder:"#969FA8",disabled:"#C0C4CC",inverse:"#FFFFFF"},Pd={10:"10px",11:"11px",12:"12px",13:"13px",14:"14px",15:"15px",16:"16px",18:"18px",20:"20px",22:"22px",24:"24px",28:"28px"},Od={xs:"4px",sm:"8px",md:"16px",lg:"24px",xl:"32px","2xl":"48px","3xl":"64px",10:"10px",12:"12px",20:"20px"},Hd={xs:"24px",sm:"28px",md:"32px",lg:"40px",xl:"44px"},Fd={header:"56px",conversationHeader:"68px",dialogFooter:"60px",toolbar:"48px",tabs:"40px",listRow:"48px"},Ud={xs:"12px",sm:"14px",md:"16px",lg:"20px",xl:"24px"},jd={paddingX:"24px",paddingY:"24px",headerPaddingTop:"28px",sidebarWidth:"240px",sidebarWidthCollapsed:"64px"},qd={sm:"2px",md:"4px",6:"6px",8:"8px",lg:"10px",xl:"12px",full:"999px"},Gd={fieldWidth:"220px",labelWidth:"96px",fieldGap:"6px"},Wd={sm:"24px",md:"32px",lg:"40px",xl:"48px"},Yd={sm:"0 1px 2px rgba(0, 0, 0, 0.05)",md:"0 4px 12px rgba(0, 0, 0, 0.08)",lg:"0 8px 24px rgba(0, 0, 0, 0.12)"},Zd={fast:"0.15s",normal:"0.25s",slow:"0.35s"},Kd={dropdown:1e3,sticky:1020,fixed:1030,modalBackdrop:1040,modal:1050,popover:1060,tooltip:1070,toast:1080},Qd="1.6.1",Xd="2.14.2",Jd="2026-08-27";y.APP_ICON_NAMES=Wr,y.AVATAR_SIZE=Wd,y.AppDialog=rt,y.AppIcon=le,y.AppPagination=Zr,y.ApprovalCard=L0,y.AssistantPicker=xd,y.AttachmentPreviewModal=X0,y.BORDER_RADIUS=qd,y.BreadcrumbNav=hs,y.COLORS=Rd,y.CONTROL_HEIGHT=Hd,y.CardGridSkeleton=ls,y.CardTable=xs,y.Composer=w0,y.ConfirmDialog=Kr,y.ContentPanel=ys,y.ConversationHeader=md,y.DEFAULT_PAGE_SIZE=Gt,y.DURATION=Zd,y.DocumentPreviewDrawer=di,y.DocumentPreviewPanel=ra,y.DocumentSummaryList=Za,y.EP_FORK_BASE=Xd,y.EP_FORK_DATE=Jd,y.EmptyState=ts,y.ErrorBoundary=ns,y.ExcelPreviewCard=Vi,y.FONT_SIZE=Pd,y.FORM=Gd,y.FieldRow=Ls,y.FilterBar=Es,y.FilterTabs=Jr,y.FormDialog=Qr,y.HintText=Ds,y.ICON_MAP=ht,y.ICON_SIZE=Ud,y.JsonCard=Zs,y.JsonDetailDialog=Qs,y.LAYOUT_HEIGHT=Fd,y.LoadingDots=qs,y.MessageAttachmentList=Ya,y.MessageBubble=Ka,y.MessageList=o0,y.MessageParts=Wa,y.ModelPicker=Td,y.PAGE=jd,y.PAGE_SIZE_OPTIONS=na,y.PAGINATION_LAYOUT=aa,y.PageHeader=ps,y.PageShell=ds,y.PdfPreviewCard=gi,y.ProcessingDrawer=sd,y.RunStatusBar=Qa,y.SCHEMA_UI_VERSION=Qd,y.SHADOWS=Yd,y.SPACING=Od,y.SchemaLitePreview=Js,y.SearchForm=As,y.SectionToggle=Us,y.SessionSidebar=od,y.Skeleton=os,y.StatusTag=as,y.TEXT_COLORS=Dd,y.TableRowActions=Ts,y.Toast=es,y.TruncatedTooltipText=oa,y.UserAvatar=cs,y.Z_INDEX=Kd,y.fileKind=Wt,y.formatSize=mt,y.isImage=Me,y.isOffice=la,y.isPdf=Ye,y.isPreviewable=vs,y.isRegisteredAppIcon=Yr,y.provideToast=Bd,y.renderMarkdown=Ga,y.resolveApiErrorMessage=Id,y.splitTextAndCodeBlocks=ja,y.useChatScroll=Ld,y.useClientPagination=zd,y.useConfirm=Vd,y.useDataLoading=Md,y.useDebounceFn=Ad,y.useMessage=Nd,y.useToast=Sd,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})}));
|