From 6f14aa6053e86bad24e47d2666fa99521da6a6b8 Mon Sep 17 00:00:00 2001 From: adams549659584 <13760614423@163.com> Date: Fri, 26 May 2023 00:30:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20=E6=92=B0=E5=86=99=E7=9A=84?= =?UTF-8?q?=E8=81=8A=E5=A4=A9=E6=9C=8D=E5=8A=A1=E5=99=A8=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E4=B8=BB=E9=A1=B5=E9=80=89=E6=8B=A9=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/package.json | 2 +- frontend/public/compose.html | 7 +++++++ web/assets/{index-42c5a3ca.js => index-04c94bf5.js} | 4 ++-- web/assets/{index-0d955cfa.js => index-2d8e434e.js} | 2 +- web/compose.html | 7 +++++++ web/index.html | 2 +- web/sw.js | 2 +- 7 files changed, 20 insertions(+), 6 deletions(-) rename web/assets/{index-42c5a3ca.js => index-04c94bf5.js} (99%) rename web/assets/{index-0d955cfa.js => index-2d8e434e.js} (99%) diff --git a/frontend/package.json b/frontend/package.json index 04d993c5c5..04bfffc60f 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "go-proxy-bingai", - "version": "1.8.0", + "version": "1.8.1", "private": true, "scripts": { "dev": "vite", diff --git a/frontend/public/compose.html b/frontend/public/compose.html index d69ab46e31..391b75b370 100644 --- a/frontend/public/compose.html +++ b/frontend/public/compose.html @@ -2685,6 +2685,13 @@ //]]> diff --git a/web/assets/index-42c5a3ca.js b/web/assets/index-04c94bf5.js similarity index 99% rename from web/assets/index-42c5a3ca.js rename to web/assets/index-04c94bf5.js index 09b7293ae6..106c4bd410 100644 --- a/web/assets/index-42c5a3ca.js +++ b/web/assets/index-04c94bf5.js @@ -1,4 +1,4 @@ -import{r as M,w as Te,o as Ge,a as nt,i as Na,c as D,b as Ha,h as ja,d as vn,e as Ie,f as Ua,g as Me,j as Xe,k as ue,m as Ar,l as Dr,p as tr,u as We,n as q,q as _e,s as Fr,t as Wa,v as wt,x as mo,C as Va,y as Ka,z as ee,A as Nr,B as c,D as Hr,L as gn,E as Xt,F as rr,G as or,H as qa,I as Ga,J as jr,K as Xa,M as rt,N as mn,O as Ur,P as Wr,Q as Ct,R as bn,S as Pr,T as bo,U as Ya,V as yo,W as wo,X as Gt,Y as Za,Z as xo,_ as Ja,$ as Qa,a0 as el,a1 as tl,a2 as rl,a3 as ol,a4 as nl,a5 as yn,a6 as Ye,a7 as Be,a8 as S,a9 as B,aa as L,ab as Re,ac as ae,ad as Fe,ae as ve,af as ne,ag as ze,ah as j,ai as il,aj as ft,ak as Rt,al as Co,am as wn,an as So,ao as ko,ap as al,aq as Lt,ar as Je,as as Ve,at as xn,au as Po,av as ll,aw as de,ax as Cn,ay as be,az as le,aA as St,aB as sl,aC as $o,aD as Sn,aE as kn,aF as Pn,aG as bt,aH as dl,aI as cl,aJ as ul,aK as $n,aL as fl,aM as hl,aN as pl,aO as Vr,aP as Et,aQ as Ae,aR as vl,aS as Kr,aT as Yt,aU as zn,aV as gl,aW as ml,aX as zo,aY as bl,aZ as To,a_ as yl,a$ as $r,b0 as Tn,b1 as In,b2 as kt,b3 as wl,b4 as qr,b5 as Gr,b6 as Xr,b7 as Yr,b8 as _n,b9 as ce,ba as Io,bb as xl,bc as Zr,bd as oe,be as Se,bf as Ue,bg as Pe,bh as Y,bi as ye,bj as G,bk as Cl,bl as E,bm as ut,bn as ot,bo as Sl,bp as Rn,bq as kl,br as zr,bs as On,bt as Qe,bu as Jr,bv as Pl,bw as $l}from"./index-0d955cfa.js";let Zt=[];const Mn=new WeakMap;function zl(){Zt.forEach(e=>e(...Mn.get(e))),Zt=[]}function Bn(e,...t){Mn.set(e,t),!Zt.includes(e)&&Zt.push(e)===1&&requestAnimationFrame(zl)}function _o(e,t){let{target:r}=e;for(;r;){if(r.dataset&&r.dataset[t]!==void 0)return!0;r=r.parentElement}return!1}function Tl(e,t="default",r=[]){const n=e.$slots[t];return n===void 0?r:n()}function Il(e){return t=>{t?e.value=t.$el:e.value=null}}const _l=/^(\d|\.)+$/,Ro=/(\d|\.)+/;function qe(e,{c:t=1,offset:r=0,attachPx:o=!0}={}){if(typeof e=="number"){const n=(e+r)*t;return n===0?"0":`${n}px`}else if(typeof e=="string")if(_l.test(e)){const n=(Number(e)+r)*t;return o?n===0?"0":`${n}px`:`${n}`}else{const n=Ro.exec(e);return n?e.replace(Ro,String((Number(n[0])+r)*t)):e}return e}let ur;function Rl(){return ur===void 0&&(ur=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),ur}function Ol(e,t,r){if(!t)return e;const o=M(e.value);let n=null;return Te(e,i=>{n!==null&&window.clearTimeout(n),i===!0?r&&!r.value?o.value=!0:n=window.setTimeout(()=>{o.value=!0},t):o.value=!1}),o}let yt,Ot;const Ml=()=>{var e,t;yt=Na?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Ot=!1,yt!==void 0?yt.then(()=>{Ot=!0}):Ot=!0};Ml();function Bl(e){if(Ot)return;let t=!1;Ge(()=>{Ot||yt==null||yt.then(()=>{t||e()})}),nt(()=>{t=!0})}function nr(e,t){return Te(e,r=>{r!==void 0&&(t.value=r)}),D(()=>e.value===void 0?t.value:e.value)}function Ll(e,t){return D(()=>{for(const r of t)if(e[r]!==void 0)return e[r];return e[t[t.length-1]]})}function El(e={},t){const r=Ha({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:o,keyup:n}=e,i=a=>{switch(a.key){case"Control":r.ctrl=!0;break;case"Meta":r.command=!0,r.win=!0;break;case"Shift":r.shift=!0;break;case"Tab":r.tab=!0;break}o!==void 0&&Object.keys(o).forEach(d=>{if(d!==a.key)return;const u=o[d];if(typeof u=="function")u(a);else{const{stop:f=!1,prevent:h=!1}=u;f&&a.stopPropagation(),h&&a.preventDefault(),u.handler(a)}})},l=a=>{switch(a.key){case"Control":r.ctrl=!1;break;case"Meta":r.command=!1,r.win=!1;break;case"Shift":r.shift=!1;break;case"Tab":r.tab=!1;break}n!==void 0&&Object.keys(n).forEach(d=>{if(d!==a.key)return;const u=n[d];if(typeof u=="function")u(a);else{const{stop:f=!1,prevent:h=!1}=u;f&&a.stopPropagation(),h&&a.preventDefault(),u.handler(a)}})},s=()=>{(t===void 0||t.value)&&(Me("keydown",document,i),Me("keyup",document,l)),t!==void 0&&Te(t,a=>{a?(Me("keydown",document,i),Me("keyup",document,l)):(Ie("keydown",document,i),Ie("keyup",document,l))})};return ja()?(vn(s),nt(()=>{(t===void 0||t.value)&&(Ie("keydown",document,i),Ie("keyup",document,l))})):s(),Ua(r)}const Al=Xe("n-internal-select-menu-body"),Ln="__disabled__";function xt(e){const t=ue(Ar,null),r=ue(Dr,null),o=ue(tr,null),n=ue(Al,null),i=M();if(typeof document<"u"){i.value=document.fullscreenElement;const l=()=>{i.value=document.fullscreenElement};Ge(()=>{Me("fullscreenchange",document,l)}),nt(()=>{Ie("fullscreenchange",document,l)})}return We(()=>{var l;const{to:s}=e;return s!==void 0?s===!1?Ln:s===!0?i.value||"body":s:t!=null&&t.value?(l=t.value.$el)!==null&&l!==void 0?l:t.value:r!=null&&r.value?r.value:o!=null&&o.value?o.value:n!=null&&n.value?n.value:s??(i.value||"body")})}xt.tdkey=Ln;xt.propTo={type:[String,Object,Boolean],default:void 0};let tt=null;function En(){if(tt===null&&(tt=document.getElementById("v-binder-view-measurer"),tt===null)){tt=document.createElement("div"),tt.id="v-binder-view-measurer";const{style:e}=tt;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(tt)}return tt.getBoundingClientRect()}function Dl(e,t){const r=En();return{top:t,left:e,height:0,width:0,right:r.width-e,bottom:r.height-t}}function fr(e){const t=e.getBoundingClientRect(),r=En();return{left:t.left-r.left,top:t.top-r.top,bottom:r.height+r.top-t.bottom,right:r.width+r.left-t.right,width:t.width,height:t.height}}function Fl(e){return e.nodeType===9?null:e.parentNode}function An(e){if(e===null)return null;const t=Fl(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:r,overflowX:o,overflowY:n}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(r+n+o))return t}return An(t)}const Nl=q({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;_e("VBinder",(t=Fr())===null||t===void 0?void 0:t.proxy);const r=ue("VBinder",null),o=M(null),n=x=>{o.value=x,r&&e.syncTargetWithParent&&r.setTargetRef(x)};let i=[];const l=()=>{let x=o.value;for(;x=An(x),x!==null;)i.push(x);for(const P of i)Me("scroll",P,f,!0)},s=()=>{for(const x of i)Ie("scroll",x,f,!0);i=[]},a=new Set,d=x=>{a.size===0&&l(),a.has(x)||a.add(x)},u=x=>{a.has(x)&&a.delete(x),a.size===0&&s()},f=()=>{Bn(h)},h=()=>{a.forEach(x=>x())},p=new Set,v=x=>{p.size===0&&Me("resize",window,w),p.has(x)||p.add(x)},y=x=>{p.has(x)&&p.delete(x),p.size===0&&Ie("resize",window,w)},w=()=>{p.forEach(x=>x())};return nt(()=>{Ie("resize",window,w),s()}),{targetRef:o,setTargetRef:n,addScrollListener:d,removeScrollListener:u,addResizeListener:v,removeResizeListener:y}},render(){return Wa("binder",this.$slots)}}),Dn=Nl,Fn=q({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=ue("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?wt(mo("follower",this.$slots),[[t]]):mo("follower",this.$slots)}}),pt="@@mmoContext",Hl={mounted(e,{value:t}){e[pt]={handler:void 0},typeof t=="function"&&(e[pt].handler=t,Me("mousemoveoutside",e,t))},updated(e,{value:t}){const r=e[pt];typeof t=="function"?r.handler?r.handler!==t&&(Ie("mousemoveoutside",e,r.handler),r.handler=t,Me("mousemoveoutside",e,t)):(e[pt].handler=t,Me("mousemoveoutside",e,t)):r.handler&&(Ie("mousemoveoutside",e,r.handler),r.handler=void 0)},unmounted(e){const{handler:t}=e[pt];t&&Ie("mousemoveoutside",e,t),e[pt].handler=void 0}},jl=Hl,{c:Ht}=Va(),Ul="vueuc-style",jt={top:"bottom",bottom:"top",left:"right",right:"left"},Oo={start:"end",center:"center",end:"start"},hr={top:"height",bottom:"height",left:"width",right:"width"},Wl={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},Vl={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},Kl={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Mo={top:!0,bottom:!1,left:!0,right:!1},Bo={top:"end",bottom:"start",left:"end",right:"start"};function ql(e,t,r,o,n,i){if(!n||i)return{placement:e,top:0,left:0};const[l,s]=e.split("-");let a=s??"center",d={top:0,left:0};const u=(p,v,y)=>{let w=0,x=0;const P=r[p]-t[v]-t[p];return P>0&&o&&(y?x=Mo[v]?P:-P:w=Mo[v]?P:-P),{left:w,top:x}},f=l==="left"||l==="right";if(a!=="center"){const p=Kl[e],v=jt[p],y=hr[p];if(r[y]>t[y]){if(t[p]+t[y]t[v]&&(a=Oo[s])}else{const p=l==="bottom"||l==="top"?"left":"top",v=jt[p],y=hr[p],w=(r[y]-t[y])/2;(t[p]t[v]?(a=Bo[p],d=u(y,p,f)):(a=Bo[v],d=u(y,v,f)))}let h=l;return t[l] *",{pointerEvents:"all"})])]),Nn=q({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=ue("VBinder"),r=We(()=>e.enabled!==void 0?e.enabled:e.show),o=M(null),n=M(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(a),h.includes("resize")&&t.addResizeListener(a)},l=()=>{t.removeScrollListener(a),t.removeResizeListener(a)};Ge(()=>{r.value&&(a(),i())});const s=Ka();Yl.mount({id:"vueuc/binder",head:!0,anchorMetaName:Ul,ssr:s}),nt(()=>{l()}),Bl(()=>{r.value&&a()});const a=()=>{if(!r.value)return;const h=o.value;if(h===null)return;const p=t.targetRef,{x:v,y,overlap:w}=e,x=v!==void 0&&y!==void 0?Dl(v,y):fr(p);h.style.setProperty("--v-target-width",`${Math.round(x.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(x.height)}px`);const{width:P,minWidth:k,placement:b,internalShift:m,flip:R}=e;h.setAttribute("v-placement",b),w?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:$}=h;P==="target"?$.width=`${x.width}px`:P!==void 0?$.width=P:$.width="",k==="target"?$.minWidth=`${x.width}px`:k!==void 0?$.minWidth=k:$.minWidth="";const A=fr(h),z=fr(n.value),{left:_,top:K,placement:F}=ql(b,x,A,m,R,w),O=Gl(F,w),{left:C,top:T,transform:H}=Xl(F,z,x,K,_,w);h.setAttribute("v-placement",F),h.style.setProperty("--v-offset-left",`${Math.round(_)}px`),h.style.setProperty("--v-offset-top",`${Math.round(K)}px`),h.style.transform=`translateX(${C}) translateY(${T}) ${H}`,h.style.setProperty("--v-transform-origin",O),h.style.transformOrigin=O};Te(r,h=>{h?(i(),d()):l()});const d=()=>{Xt().then(a).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{Te(ee(e,h),a)}),["teleportDisabled"].forEach(h=>{Te(ee(e,h),d)}),Te(ee(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(a):t.removeResizeListener(a),h.includes("scroll")?t.addScrollListener(a):t.removeScrollListener(a)});const u=Nr(),f=We(()=>{const{to:h}=e;if(h!==void 0)return h;u.value});return{VBinder:t,mergedEnabled:r,offsetContainerRef:n,followerRef:o,mergedTo:f,syncPosition:a}},render(){return c(gn,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const r=c("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[c("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?wt(r,[[Hr,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):r}})}});var Zl=rr(or,"WeakMap");const Tr=Zl;var Jl=qa(Object.keys,Object);const Ql=Jl;var es=Object.prototype,ts=es.hasOwnProperty;function rs(e){if(!Ga(e))return Ql(e);var t=[];for(var r in Object(e))ts.call(e,r)&&r!="constructor"&&t.push(r);return t}function Qr(e){return jr(e)?Xa(e):rs(e)}var os=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ns=/^\w*$/;function eo(e,t){if(rt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||mn(e)?!0:ns.test(e)||!os.test(e)||t!=null&&e in Object(t)}var is="Expected a function";function to(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(is);var r=function(){var o=arguments,n=t?t.apply(this,o):o[0],i=r.cache;if(i.has(n))return i.get(n);var l=e.apply(this,o);return r.cache=i.set(n,l)||i,l};return r.cache=new(to.Cache||Ur),r}to.Cache=Ur;var as=500;function ls(e){var t=to(e,function(o){return r.size===as&&r.clear(),o}),r=t.cache;return t}var ss=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ds=/\\(\\)?/g,cs=ls(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ss,function(r,o,n,i){t.push(n?i.replace(ds,"$1"):o||r)}),t});const us=cs;function Hn(e,t){return rt(e)?e:eo(e,t)?[e]:us(Wr(e))}var fs=1/0;function ir(e){if(typeof e=="string"||mn(e))return e;var t=e+"";return t=="0"&&1/e==-fs?"-0":t}function jn(e,t){t=Hn(t,e);for(var r=0,o=t.length;e!=null&&rs))return!1;var d=i.get(e),u=i.get(t);if(d&&u)return d==t&&u==e;var f=-1,h=!0,p=r&zd?new Jt:void 0;for(i.set(e,t),i.set(t,e);++f`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},xc=wc;function vr(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,o=e.formats[r]||e.formats[e.defaultWidth];return o}}function It(e){return function(t,r){var o=r!=null&&r.context?String(r.context):"standalone",n;if(o==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,l=r!=null&&r.width?String(r.width):i;n=e.formattingValues[l]||e.formattingValues[i]}else{var s=e.defaultWidth,a=r!=null&&r.width?String(r.width):e.defaultWidth;n=e.values[a]||e.values[s]}var d=e.argumentCallback?e.argumentCallback(t):t;return n[d]}}function _t(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.width,n=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;var l=i[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],a=Array.isArray(s)?Sc(s,function(f){return f.test(l)}):Cc(s,function(f){return f.test(l)}),d;d=e.valueCallback?e.valueCallback(a):a,d=r.valueCallback?r.valueCallback(d):d;var u=t.slice(l.length);return{value:d,rest:u}}}function Cc(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function Sc(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},o=t.match(e.matchPattern);if(!o)return null;var n=o[0],i=t.match(e.parsePattern);if(!i)return null;var l=e.valueCallback?e.valueCallback(i[0]):i[0];l=r.valueCallback?r.valueCallback(l):l;var s=t.slice(n.length);return{value:l,rest:s}}}var Pc={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},$c=function(t,r,o){var n,i=Pc[t];return typeof i=="string"?n=i:r===1?n=i.one:n=i.other.replace("{{count}}",r.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+n:n+" ago":n};const zc=$c;var Tc={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ic={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_c={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Rc={date:vr({formats:Tc,defaultWidth:"full"}),time:vr({formats:Ic,defaultWidth:"full"}),dateTime:vr({formats:_c,defaultWidth:"full"})};const Oc=Rc;var Mc={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Bc=function(t,r,o,n){return Mc[t]};const Lc=Bc;var Ec={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ac={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Dc={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Fc={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Nc={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Hc={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},jc=function(t,r){var o=Number(t),n=o%100;if(n>20||n<10)switch(n%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},Uc={ordinalNumber:jc,era:It({values:Ec,defaultWidth:"wide"}),quarter:It({values:Ac,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:It({values:Dc,defaultWidth:"wide"}),day:It({values:Fc,defaultWidth:"wide"}),dayPeriod:It({values:Nc,defaultWidth:"wide",formattingValues:Hc,defaultFormattingWidth:"wide"})};const Wc=Uc;var Vc=/^(\d+)(th|st|nd|rd)?/i,Kc=/\d+/i,qc={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Gc={any:[/^b/i,/^(a|c)/i]},Xc={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Yc={any:[/1/i,/2/i,/3/i,/4/i]},Zc={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Jc={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Qc={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},eu={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},tu={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ru={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ou={ordinalNumber:kc({matchPattern:Vc,parsePattern:Kc,valueCallback:function(t){return parseInt(t,10)}}),era:_t({matchPatterns:qc,defaultMatchWidth:"wide",parsePatterns:Gc,defaultParseWidth:"any"}),quarter:_t({matchPatterns:Xc,defaultMatchWidth:"wide",parsePatterns:Yc,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:_t({matchPatterns:Zc,defaultMatchWidth:"wide",parsePatterns:Jc,defaultParseWidth:"any"}),day:_t({matchPatterns:Qc,defaultMatchWidth:"wide",parsePatterns:eu,defaultParseWidth:"any"}),dayPeriod:_t({matchPatterns:tu,defaultMatchWidth:"any",parsePatterns:ru,defaultParseWidth:"any"})};const nu=ou;var iu={code:"en-US",formatDistance:zc,formatLong:Oc,formatRelative:Lc,localize:Wc,match:nu,options:{weekStartsOn:0,firstWeekContainsDate:1}};const au=iu,lu={name:"en-US",locale:au},su=lu;function oo(e){const{mergedLocaleRef:t,mergedDateLocaleRef:r}=ue(yn,null)||{},o=D(()=>{var i,l;return(l=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&l!==void 0?l:xc[e]});return{dateLocaleRef:D(()=>{var i;return(i=r==null?void 0:r.value)!==null&&i!==void 0?i:su}),localeRef:o}}const du=q({name:"Add",render(){return c("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),cu=Ye("attach",c("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},c("g",{fill:"currentColor","fill-rule":"nonzero"},c("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),uu=q({name:"ChevronRight",render(){return c("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),ii=q({name:"Eye",render(){return c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),c("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),fu=q({name:"EyeOff",render(){return c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),c("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),c("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),c("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),c("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),hu=Ye("trash",c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),c("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),c("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),c("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),pu=Ye("download",c("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},c("g",{fill:"currentColor","fill-rule":"nonzero"},c("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),vu=q({name:"Empty",render(){return c("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),c("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),gu=Ye("cancel",c("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},c("g",{fill:"currentColor","fill-rule":"nonzero"},c("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),mu=q({name:"ChevronDown",render(){return c("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),bu=Ye("clear",c("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},c("g",{fill:"currentColor","fill-rule":"nonzero"},c("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),yu=Ye("retry",c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),c("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),wu=Ye("rotateClockwise",c("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),c("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),xu=Ye("rotateClockwise",c("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),c("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),Cu=Ye("zoomIn",c("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),c("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),Su=Ye("zoomOut",c("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),c("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),ku=q({name:"ResizeSmall",render(){return c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},c("g",{fill:"none"},c("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}});function Zo(e){return Array.isArray(e)?e:[e]}const Or={STOP:"STOP"};function ai(e,t){const r=t(e);e.children!==void 0&&r!==Or.STOP&&e.children.forEach(o=>ai(o,t))}function Pu(e,t={}){const{preserveGroup:r=!1}=t,o=[],n=r?l=>{l.isLeaf||(o.push(l.key),i(l.children))}:l=>{l.isLeaf||(l.isGroup||o.push(l.key),i(l.children))};function i(l){l.forEach(n)}return i(e),o}function $u(e,t){const{isLeaf:r}=e;return r!==void 0?r:!t(e)}function zu(e){return e.children}function Tu(e){return e.key}function Iu(){return!1}function _u(e,t){const{isLeaf:r}=e;return!(r===!1&&!Array.isArray(t(e)))}function Ru(e){return e.disabled===!0}function Ou(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function gr(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function mr(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function Mu(e,t){const r=new Set(e);return t.forEach(o=>{r.has(o)||r.add(o)}),Array.from(r)}function Bu(e,t){const r=new Set(e);return t.forEach(o=>{r.has(o)&&r.delete(o)}),Array.from(r)}function Lu(e){return(e==null?void 0:e.type)==="group"}class Eu extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function Au(e,t,r,o){return Qt(t.concat(e),r,o,!1)}function Du(e,t){const r=new Set;return e.forEach(o=>{const n=t.treeNodeMap.get(o);if(n!==void 0){let i=n.parent;for(;i!==null&&!(i.disabled||r.has(i.key));)r.add(i.key),i=i.parent}}),r}function Fu(e,t,r,o){const n=Qt(t,r,o,!1),i=Qt(e,r,o,!0),l=Du(e,r),s=[];return n.forEach(a=>{(i.has(a)||l.has(a))&&s.push(a)}),s.forEach(a=>n.delete(a)),n}function br(e,t){const{checkedKeys:r,keysToCheck:o,keysToUncheck:n,indeterminateKeys:i,cascade:l,leafOnly:s,checkStrategy:a,allowNotLoaded:d}=e;if(!l)return o!==void 0?{checkedKeys:Mu(r,o),indeterminateKeys:Array.from(i)}:n!==void 0?{checkedKeys:Bu(r,n),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(r),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:u}=t;let f;n!==void 0?f=Fu(n,r,t,d):o!==void 0?f=Au(o,r,t,d):f=Qt(r,t,d,!1);const h=a==="parent",p=a==="child"||s,v=f,y=new Set,w=Math.max.apply(null,Array.from(u.keys()));for(let x=w;x>=0;x-=1){const P=x===0,k=u.get(x);for(const b of k){if(b.isLeaf)continue;const{key:m,shallowLoaded:R}=b;if(p&&R&&b.children.forEach(_=>{!_.disabled&&!_.isLeaf&&_.shallowLoaded&&v.has(_.key)&&v.delete(_.key)}),b.disabled||!R)continue;let $=!0,A=!1,z=!0;for(const _ of b.children){const K=_.key;if(!_.disabled){if(z&&(z=!1),v.has(K))A=!0;else if(y.has(K)){A=!0,$=!1;break}else if($=!1,A)break}}$&&!z?(h&&b.children.forEach(_=>{!_.disabled&&v.has(_.key)&&v.delete(_.key)}),v.add(m)):A&&y.add(m),P&&p&&v.has(m)&&v.delete(m)}}return{checkedKeys:Array.from(v),indeterminateKeys:Array.from(y)}}function Qt(e,t,r,o){const{treeNodeMap:n,getChildren:i}=t,l=new Set,s=new Set(e);return e.forEach(a=>{const d=n.get(a);d!==void 0&&ai(d,u=>{if(u.disabled)return Or.STOP;const{key:f}=u;if(!l.has(f)&&(l.add(f),s.add(f),Ou(u.rawNode,i))){if(o)return Or.STOP;if(!r)throw new Eu}})}),s}function Nu(e,{includeGroup:t=!1,includeSelf:r=!0},o){var n;const i=o.treeNodeMap;let l=e==null?null:(n=i.get(e))!==null&&n!==void 0?n:null;const s={keyPath:[],treeNodePath:[],treeNode:l};if(l!=null&&l.ignored)return s.treeNode=null,s;for(;l;)!l.ignored&&(t||!l.isGroup)&&s.treeNodePath.push(l),l=l.parent;return s.treeNodePath.reverse(),r||s.treeNodePath.pop(),s.keyPath=s.treeNodePath.map(a=>a.key),s}function Hu(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function ju(e,t){const r=e.siblings,o=r.length,{index:n}=e;return t?r[(n+1)%o]:n===r.length-1?null:r[n+1]}function Jo(e,t,{loop:r=!1,includeDisabled:o=!1}={}){const n=t==="prev"?Uu:ju,i={reverse:t==="prev"};let l=!1,s=null;function a(d){if(d!==null){if(d===e){if(!l)l=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!d.disabled||o)&&!d.ignored&&!d.isGroup){s=d;return}if(d.isGroup){const u=no(d,i);u!==null?s=u:a(n(d,r))}else{const u=n(d,!1);if(u!==null)a(u);else{const f=Wu(d);f!=null&&f.isGroup?a(n(f,r)):r&&a(n(d,!0))}}}}return a(e),s}function Uu(e,t){const r=e.siblings,o=r.length,{index:n}=e;return t?r[(n-1+o)%o]:n===0?null:r[n-1]}function Wu(e){return e.parent}function no(e,t={}){const{reverse:r=!1}=t,{children:o}=e;if(o){const{length:n}=o,i=r?n-1:0,l=r?-1:n,s=r?-1:1;for(let a=i;a!==l;a+=s){const d=o[a];if(!d.disabled&&!d.ignored)if(d.isGroup){const u=no(d,t);if(u!==null)return u}else return d}}return null}const Vu={getChild(){return this.ignored?null:no(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return Jo(this,"next",e)},getPrev(e={}){return Jo(this,"prev",e)}};function Ku(e,t){const r=t?new Set(t):void 0,o=[];function n(i){i.forEach(l=>{o.push(l),!(l.isLeaf||!l.children||l.ignored)&&(l.isGroup||r===void 0||r.has(l.key))&&n(l.children)})}return n(e),o}function qu(e,t){const r=e.key;for(;t;){if(t.key===r)return!0;t=t.parent}return!1}function li(e,t,r,o,n,i=null,l=0){const s=[];return e.forEach((a,d)=>{var u;const f=Object.create(o);if(f.rawNode=a,f.siblings=s,f.level=l,f.index=d,f.isFirstChild=d===0,f.isLastChild=d+1===e.length,f.parent=i,!f.ignored){const h=n(a);Array.isArray(h)&&(f.children=li(h,t,r,o,n,f,l+1))}s.push(f),t.set(f.key,f),r.has(l)||r.set(l,[]),(u=r.get(l))===null||u===void 0||u.push(f)}),s}function Gu(e,t={}){var r;const o=new Map,n=new Map,{getDisabled:i=Ru,getIgnored:l=Iu,getIsGroup:s=Lu,getKey:a=Tu}=t,d=(r=t.getChildren)!==null&&r!==void 0?r:zu,u=t.ignoreEmptyChildren?b=>{const m=d(b);return Array.isArray(m)?m.length?m:null:m}:d,f=Object.assign({get key(){return a(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return s(this.rawNode)},get isLeaf(){return $u(this.rawNode,u)},get shallowLoaded(){return _u(this.rawNode,u)},get ignored(){return l(this.rawNode)},contains(b){return qu(this,b)}},Vu),h=li(e,o,n,f,u);function p(b){if(b==null)return null;const m=o.get(b);return m&&!m.isGroup&&!m.ignored?m:null}function v(b){if(b==null)return null;const m=o.get(b);return m&&!m.ignored?m:null}function y(b,m){const R=v(b);return R?R.getPrev(m):null}function w(b,m){const R=v(b);return R?R.getNext(m):null}function x(b){const m=v(b);return m?m.getParent():null}function P(b){const m=v(b);return m?m.getChild():null}const k={treeNodes:h,treeNodeMap:o,levelTreeNodeMap:n,maxLevel:Math.max(...n.keys()),getChildren:u,getFlattenedNodes(b){return Ku(h,b)},getNode:p,getPrev:y,getNext:w,getParent:x,getChild:P,getFirstAvailableNode(){return Hu(h)},getPath(b,m={}){return Nu(b,m,k)},getCheckedKeys(b,m={}){const{cascade:R=!0,leafOnly:$=!1,checkStrategy:A="all",allowNotLoaded:z=!1}=m;return br({checkedKeys:gr(b),indeterminateKeys:mr(b),cascade:R,leafOnly:$,checkStrategy:A,allowNotLoaded:z},k)},check(b,m,R={}){const{cascade:$=!0,leafOnly:A=!1,checkStrategy:z="all",allowNotLoaded:_=!1}=R;return br({checkedKeys:gr(m),indeterminateKeys:mr(m),keysToCheck:b==null?[]:Zo(b),cascade:$,leafOnly:A,checkStrategy:z,allowNotLoaded:_},k)},uncheck(b,m,R={}){const{cascade:$=!0,leafOnly:A=!1,checkStrategy:z="all",allowNotLoaded:_=!1}=R;return br({checkedKeys:gr(m),indeterminateKeys:mr(m),keysToUncheck:b==null?[]:Zo(b),cascade:$,leafOnly:A,checkStrategy:z,allowNotLoaded:_},k)},getNonLeafKeys(b={}){return Pu(h,b)}};return k}const Xu={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},Yu=e=>{const{textColorDisabled:t,iconColor:r,textColor2:o,fontSizeSmall:n,fontSizeMedium:i,fontSizeLarge:l,fontSizeHuge:s}=e;return Object.assign(Object.assign({},Xu),{fontSizeSmall:n,fontSizeMedium:i,fontSizeLarge:l,fontSizeHuge:s,textColor:t,iconColor:r,extraTextColor:o})},Zu={name:"Empty",common:Be,self:Yu},Ju=Zu,Qu=S("empty",` +import{r as M,w as Te,o as Ge,a as nt,i as Na,c as D,b as Ha,h as ja,d as vn,e as Ie,f as Ua,g as Me,j as Xe,k as ue,m as Ar,l as Dr,p as tr,u as We,n as q,q as _e,s as Fr,t as Wa,v as wt,x as mo,C as Va,y as Ka,z as ee,A as Nr,B as c,D as Hr,L as gn,E as Xt,F as rr,G as or,H as qa,I as Ga,J as jr,K as Xa,M as rt,N as mn,O as Ur,P as Wr,Q as Ct,R as bn,S as Pr,T as bo,U as Ya,V as yo,W as wo,X as Gt,Y as Za,Z as xo,_ as Ja,$ as Qa,a0 as el,a1 as tl,a2 as rl,a3 as ol,a4 as nl,a5 as yn,a6 as Ye,a7 as Be,a8 as S,a9 as B,aa as L,ab as Re,ac as ae,ad as Fe,ae as ve,af as ne,ag as ze,ah as j,ai as il,aj as ft,ak as Rt,al as Co,am as wn,an as So,ao as ko,ap as al,aq as Lt,ar as Je,as as Ve,at as xn,au as Po,av as ll,aw as de,ax as Cn,ay as be,az as le,aA as St,aB as sl,aC as $o,aD as Sn,aE as kn,aF as Pn,aG as bt,aH as dl,aI as cl,aJ as ul,aK as $n,aL as fl,aM as hl,aN as pl,aO as Vr,aP as Et,aQ as Ae,aR as vl,aS as Kr,aT as Yt,aU as zn,aV as gl,aW as ml,aX as zo,aY as bl,aZ as To,a_ as yl,a$ as $r,b0 as Tn,b1 as In,b2 as kt,b3 as wl,b4 as qr,b5 as Gr,b6 as Xr,b7 as Yr,b8 as _n,b9 as ce,ba as Io,bb as xl,bc as Zr,bd as oe,be as Se,bf as Ue,bg as Pe,bh as Y,bi as ye,bj as G,bk as Cl,bl as E,bm as ut,bn as ot,bo as Sl,bp as Rn,bq as kl,br as zr,bs as On,bt as Qe,bu as Jr,bv as Pl,bw as $l}from"./index-2d8e434e.js";let Zt=[];const Mn=new WeakMap;function zl(){Zt.forEach(e=>e(...Mn.get(e))),Zt=[]}function Bn(e,...t){Mn.set(e,t),!Zt.includes(e)&&Zt.push(e)===1&&requestAnimationFrame(zl)}function _o(e,t){let{target:r}=e;for(;r;){if(r.dataset&&r.dataset[t]!==void 0)return!0;r=r.parentElement}return!1}function Tl(e,t="default",r=[]){const n=e.$slots[t];return n===void 0?r:n()}function Il(e){return t=>{t?e.value=t.$el:e.value=null}}const _l=/^(\d|\.)+$/,Ro=/(\d|\.)+/;function qe(e,{c:t=1,offset:r=0,attachPx:o=!0}={}){if(typeof e=="number"){const n=(e+r)*t;return n===0?"0":`${n}px`}else if(typeof e=="string")if(_l.test(e)){const n=(Number(e)+r)*t;return o?n===0?"0":`${n}px`:`${n}`}else{const n=Ro.exec(e);return n?e.replace(Ro,String((Number(n[0])+r)*t)):e}return e}let ur;function Rl(){return ur===void 0&&(ur=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),ur}function Ol(e,t,r){if(!t)return e;const o=M(e.value);let n=null;return Te(e,i=>{n!==null&&window.clearTimeout(n),i===!0?r&&!r.value?o.value=!0:n=window.setTimeout(()=>{o.value=!0},t):o.value=!1}),o}let yt,Ot;const Ml=()=>{var e,t;yt=Na?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Ot=!1,yt!==void 0?yt.then(()=>{Ot=!0}):Ot=!0};Ml();function Bl(e){if(Ot)return;let t=!1;Ge(()=>{Ot||yt==null||yt.then(()=>{t||e()})}),nt(()=>{t=!0})}function nr(e,t){return Te(e,r=>{r!==void 0&&(t.value=r)}),D(()=>e.value===void 0?t.value:e.value)}function Ll(e,t){return D(()=>{for(const r of t)if(e[r]!==void 0)return e[r];return e[t[t.length-1]]})}function El(e={},t){const r=Ha({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:o,keyup:n}=e,i=a=>{switch(a.key){case"Control":r.ctrl=!0;break;case"Meta":r.command=!0,r.win=!0;break;case"Shift":r.shift=!0;break;case"Tab":r.tab=!0;break}o!==void 0&&Object.keys(o).forEach(d=>{if(d!==a.key)return;const u=o[d];if(typeof u=="function")u(a);else{const{stop:f=!1,prevent:h=!1}=u;f&&a.stopPropagation(),h&&a.preventDefault(),u.handler(a)}})},l=a=>{switch(a.key){case"Control":r.ctrl=!1;break;case"Meta":r.command=!1,r.win=!1;break;case"Shift":r.shift=!1;break;case"Tab":r.tab=!1;break}n!==void 0&&Object.keys(n).forEach(d=>{if(d!==a.key)return;const u=n[d];if(typeof u=="function")u(a);else{const{stop:f=!1,prevent:h=!1}=u;f&&a.stopPropagation(),h&&a.preventDefault(),u.handler(a)}})},s=()=>{(t===void 0||t.value)&&(Me("keydown",document,i),Me("keyup",document,l)),t!==void 0&&Te(t,a=>{a?(Me("keydown",document,i),Me("keyup",document,l)):(Ie("keydown",document,i),Ie("keyup",document,l))})};return ja()?(vn(s),nt(()=>{(t===void 0||t.value)&&(Ie("keydown",document,i),Ie("keyup",document,l))})):s(),Ua(r)}const Al=Xe("n-internal-select-menu-body"),Ln="__disabled__";function xt(e){const t=ue(Ar,null),r=ue(Dr,null),o=ue(tr,null),n=ue(Al,null),i=M();if(typeof document<"u"){i.value=document.fullscreenElement;const l=()=>{i.value=document.fullscreenElement};Ge(()=>{Me("fullscreenchange",document,l)}),nt(()=>{Ie("fullscreenchange",document,l)})}return We(()=>{var l;const{to:s}=e;return s!==void 0?s===!1?Ln:s===!0?i.value||"body":s:t!=null&&t.value?(l=t.value.$el)!==null&&l!==void 0?l:t.value:r!=null&&r.value?r.value:o!=null&&o.value?o.value:n!=null&&n.value?n.value:s??(i.value||"body")})}xt.tdkey=Ln;xt.propTo={type:[String,Object,Boolean],default:void 0};let tt=null;function En(){if(tt===null&&(tt=document.getElementById("v-binder-view-measurer"),tt===null)){tt=document.createElement("div"),tt.id="v-binder-view-measurer";const{style:e}=tt;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(tt)}return tt.getBoundingClientRect()}function Dl(e,t){const r=En();return{top:t,left:e,height:0,width:0,right:r.width-e,bottom:r.height-t}}function fr(e){const t=e.getBoundingClientRect(),r=En();return{left:t.left-r.left,top:t.top-r.top,bottom:r.height+r.top-t.bottom,right:r.width+r.left-t.right,width:t.width,height:t.height}}function Fl(e){return e.nodeType===9?null:e.parentNode}function An(e){if(e===null)return null;const t=Fl(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:r,overflowX:o,overflowY:n}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(r+n+o))return t}return An(t)}const Nl=q({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;_e("VBinder",(t=Fr())===null||t===void 0?void 0:t.proxy);const r=ue("VBinder",null),o=M(null),n=x=>{o.value=x,r&&e.syncTargetWithParent&&r.setTargetRef(x)};let i=[];const l=()=>{let x=o.value;for(;x=An(x),x!==null;)i.push(x);for(const P of i)Me("scroll",P,f,!0)},s=()=>{for(const x of i)Ie("scroll",x,f,!0);i=[]},a=new Set,d=x=>{a.size===0&&l(),a.has(x)||a.add(x)},u=x=>{a.has(x)&&a.delete(x),a.size===0&&s()},f=()=>{Bn(h)},h=()=>{a.forEach(x=>x())},p=new Set,v=x=>{p.size===0&&Me("resize",window,w),p.has(x)||p.add(x)},y=x=>{p.has(x)&&p.delete(x),p.size===0&&Ie("resize",window,w)},w=()=>{p.forEach(x=>x())};return nt(()=>{Ie("resize",window,w),s()}),{targetRef:o,setTargetRef:n,addScrollListener:d,removeScrollListener:u,addResizeListener:v,removeResizeListener:y}},render(){return Wa("binder",this.$slots)}}),Dn=Nl,Fn=q({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=ue("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?wt(mo("follower",this.$slots),[[t]]):mo("follower",this.$slots)}}),pt="@@mmoContext",Hl={mounted(e,{value:t}){e[pt]={handler:void 0},typeof t=="function"&&(e[pt].handler=t,Me("mousemoveoutside",e,t))},updated(e,{value:t}){const r=e[pt];typeof t=="function"?r.handler?r.handler!==t&&(Ie("mousemoveoutside",e,r.handler),r.handler=t,Me("mousemoveoutside",e,t)):(e[pt].handler=t,Me("mousemoveoutside",e,t)):r.handler&&(Ie("mousemoveoutside",e,r.handler),r.handler=void 0)},unmounted(e){const{handler:t}=e[pt];t&&Ie("mousemoveoutside",e,t),e[pt].handler=void 0}},jl=Hl,{c:Ht}=Va(),Ul="vueuc-style",jt={top:"bottom",bottom:"top",left:"right",right:"left"},Oo={start:"end",center:"center",end:"start"},hr={top:"height",bottom:"height",left:"width",right:"width"},Wl={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},Vl={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},Kl={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Mo={top:!0,bottom:!1,left:!0,right:!1},Bo={top:"end",bottom:"start",left:"end",right:"start"};function ql(e,t,r,o,n,i){if(!n||i)return{placement:e,top:0,left:0};const[l,s]=e.split("-");let a=s??"center",d={top:0,left:0};const u=(p,v,y)=>{let w=0,x=0;const P=r[p]-t[v]-t[p];return P>0&&o&&(y?x=Mo[v]?P:-P:w=Mo[v]?P:-P),{left:w,top:x}},f=l==="left"||l==="right";if(a!=="center"){const p=Kl[e],v=jt[p],y=hr[p];if(r[y]>t[y]){if(t[p]+t[y]t[v]&&(a=Oo[s])}else{const p=l==="bottom"||l==="top"?"left":"top",v=jt[p],y=hr[p],w=(r[y]-t[y])/2;(t[p]t[v]?(a=Bo[p],d=u(y,p,f)):(a=Bo[v],d=u(y,v,f)))}let h=l;return t[l] *",{pointerEvents:"all"})])]),Nn=q({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=ue("VBinder"),r=We(()=>e.enabled!==void 0?e.enabled:e.show),o=M(null),n=M(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(a),h.includes("resize")&&t.addResizeListener(a)},l=()=>{t.removeScrollListener(a),t.removeResizeListener(a)};Ge(()=>{r.value&&(a(),i())});const s=Ka();Yl.mount({id:"vueuc/binder",head:!0,anchorMetaName:Ul,ssr:s}),nt(()=>{l()}),Bl(()=>{r.value&&a()});const a=()=>{if(!r.value)return;const h=o.value;if(h===null)return;const p=t.targetRef,{x:v,y,overlap:w}=e,x=v!==void 0&&y!==void 0?Dl(v,y):fr(p);h.style.setProperty("--v-target-width",`${Math.round(x.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(x.height)}px`);const{width:P,minWidth:k,placement:b,internalShift:m,flip:R}=e;h.setAttribute("v-placement",b),w?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:$}=h;P==="target"?$.width=`${x.width}px`:P!==void 0?$.width=P:$.width="",k==="target"?$.minWidth=`${x.width}px`:k!==void 0?$.minWidth=k:$.minWidth="";const A=fr(h),z=fr(n.value),{left:_,top:K,placement:F}=ql(b,x,A,m,R,w),O=Gl(F,w),{left:C,top:T,transform:H}=Xl(F,z,x,K,_,w);h.setAttribute("v-placement",F),h.style.setProperty("--v-offset-left",`${Math.round(_)}px`),h.style.setProperty("--v-offset-top",`${Math.round(K)}px`),h.style.transform=`translateX(${C}) translateY(${T}) ${H}`,h.style.setProperty("--v-transform-origin",O),h.style.transformOrigin=O};Te(r,h=>{h?(i(),d()):l()});const d=()=>{Xt().then(a).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{Te(ee(e,h),a)}),["teleportDisabled"].forEach(h=>{Te(ee(e,h),d)}),Te(ee(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(a):t.removeResizeListener(a),h.includes("scroll")?t.addScrollListener(a):t.removeScrollListener(a)});const u=Nr(),f=We(()=>{const{to:h}=e;if(h!==void 0)return h;u.value});return{VBinder:t,mergedEnabled:r,offsetContainerRef:n,followerRef:o,mergedTo:f,syncPosition:a}},render(){return c(gn,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const r=c("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[c("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?wt(r,[[Hr,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):r}})}});var Zl=rr(or,"WeakMap");const Tr=Zl;var Jl=qa(Object.keys,Object);const Ql=Jl;var es=Object.prototype,ts=es.hasOwnProperty;function rs(e){if(!Ga(e))return Ql(e);var t=[];for(var r in Object(e))ts.call(e,r)&&r!="constructor"&&t.push(r);return t}function Qr(e){return jr(e)?Xa(e):rs(e)}var os=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ns=/^\w*$/;function eo(e,t){if(rt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||mn(e)?!0:ns.test(e)||!os.test(e)||t!=null&&e in Object(t)}var is="Expected a function";function to(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(is);var r=function(){var o=arguments,n=t?t.apply(this,o):o[0],i=r.cache;if(i.has(n))return i.get(n);var l=e.apply(this,o);return r.cache=i.set(n,l)||i,l};return r.cache=new(to.Cache||Ur),r}to.Cache=Ur;var as=500;function ls(e){var t=to(e,function(o){return r.size===as&&r.clear(),o}),r=t.cache;return t}var ss=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ds=/\\(\\)?/g,cs=ls(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ss,function(r,o,n,i){t.push(n?i.replace(ds,"$1"):o||r)}),t});const us=cs;function Hn(e,t){return rt(e)?e:eo(e,t)?[e]:us(Wr(e))}var fs=1/0;function ir(e){if(typeof e=="string"||mn(e))return e;var t=e+"";return t=="0"&&1/e==-fs?"-0":t}function jn(e,t){t=Hn(t,e);for(var r=0,o=t.length;e!=null&&rs))return!1;var d=i.get(e),u=i.get(t);if(d&&u)return d==t&&u==e;var f=-1,h=!0,p=r&zd?new Jt:void 0;for(i.set(e,t),i.set(t,e);++f`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},xc=wc;function vr(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,o=e.formats[r]||e.formats[e.defaultWidth];return o}}function It(e){return function(t,r){var o=r!=null&&r.context?String(r.context):"standalone",n;if(o==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,l=r!=null&&r.width?String(r.width):i;n=e.formattingValues[l]||e.formattingValues[i]}else{var s=e.defaultWidth,a=r!=null&&r.width?String(r.width):e.defaultWidth;n=e.values[a]||e.values[s]}var d=e.argumentCallback?e.argumentCallback(t):t;return n[d]}}function _t(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.width,n=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;var l=i[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],a=Array.isArray(s)?Sc(s,function(f){return f.test(l)}):Cc(s,function(f){return f.test(l)}),d;d=e.valueCallback?e.valueCallback(a):a,d=r.valueCallback?r.valueCallback(d):d;var u=t.slice(l.length);return{value:d,rest:u}}}function Cc(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function Sc(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},o=t.match(e.matchPattern);if(!o)return null;var n=o[0],i=t.match(e.parsePattern);if(!i)return null;var l=e.valueCallback?e.valueCallback(i[0]):i[0];l=r.valueCallback?r.valueCallback(l):l;var s=t.slice(n.length);return{value:l,rest:s}}}var Pc={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},$c=function(t,r,o){var n,i=Pc[t];return typeof i=="string"?n=i:r===1?n=i.one:n=i.other.replace("{{count}}",r.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+n:n+" ago":n};const zc=$c;var Tc={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ic={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_c={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Rc={date:vr({formats:Tc,defaultWidth:"full"}),time:vr({formats:Ic,defaultWidth:"full"}),dateTime:vr({formats:_c,defaultWidth:"full"})};const Oc=Rc;var Mc={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Bc=function(t,r,o,n){return Mc[t]};const Lc=Bc;var Ec={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ac={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Dc={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Fc={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Nc={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Hc={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},jc=function(t,r){var o=Number(t),n=o%100;if(n>20||n<10)switch(n%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},Uc={ordinalNumber:jc,era:It({values:Ec,defaultWidth:"wide"}),quarter:It({values:Ac,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:It({values:Dc,defaultWidth:"wide"}),day:It({values:Fc,defaultWidth:"wide"}),dayPeriod:It({values:Nc,defaultWidth:"wide",formattingValues:Hc,defaultFormattingWidth:"wide"})};const Wc=Uc;var Vc=/^(\d+)(th|st|nd|rd)?/i,Kc=/\d+/i,qc={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Gc={any:[/^b/i,/^(a|c)/i]},Xc={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Yc={any:[/1/i,/2/i,/3/i,/4/i]},Zc={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Jc={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Qc={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},eu={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},tu={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ru={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ou={ordinalNumber:kc({matchPattern:Vc,parsePattern:Kc,valueCallback:function(t){return parseInt(t,10)}}),era:_t({matchPatterns:qc,defaultMatchWidth:"wide",parsePatterns:Gc,defaultParseWidth:"any"}),quarter:_t({matchPatterns:Xc,defaultMatchWidth:"wide",parsePatterns:Yc,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:_t({matchPatterns:Zc,defaultMatchWidth:"wide",parsePatterns:Jc,defaultParseWidth:"any"}),day:_t({matchPatterns:Qc,defaultMatchWidth:"wide",parsePatterns:eu,defaultParseWidth:"any"}),dayPeriod:_t({matchPatterns:tu,defaultMatchWidth:"any",parsePatterns:ru,defaultParseWidth:"any"})};const nu=ou;var iu={code:"en-US",formatDistance:zc,formatLong:Oc,formatRelative:Lc,localize:Wc,match:nu,options:{weekStartsOn:0,firstWeekContainsDate:1}};const au=iu,lu={name:"en-US",locale:au},su=lu;function oo(e){const{mergedLocaleRef:t,mergedDateLocaleRef:r}=ue(yn,null)||{},o=D(()=>{var i,l;return(l=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&l!==void 0?l:xc[e]});return{dateLocaleRef:D(()=>{var i;return(i=r==null?void 0:r.value)!==null&&i!==void 0?i:su}),localeRef:o}}const du=q({name:"Add",render(){return c("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),cu=Ye("attach",c("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},c("g",{fill:"currentColor","fill-rule":"nonzero"},c("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),uu=q({name:"ChevronRight",render(){return c("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),ii=q({name:"Eye",render(){return c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),c("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),fu=q({name:"EyeOff",render(){return c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),c("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),c("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),c("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),c("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),hu=Ye("trash",c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),c("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),c("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),c("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),pu=Ye("download",c("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},c("g",{fill:"currentColor","fill-rule":"nonzero"},c("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),vu=q({name:"Empty",render(){return c("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),c("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),gu=Ye("cancel",c("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},c("g",{fill:"currentColor","fill-rule":"nonzero"},c("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),mu=q({name:"ChevronDown",render(){return c("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),bu=Ye("clear",c("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},c("g",{fill:"currentColor","fill-rule":"nonzero"},c("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),yu=Ye("retry",c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),c("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),wu=Ye("rotateClockwise",c("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),c("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),xu=Ye("rotateClockwise",c("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),c("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),Cu=Ye("zoomIn",c("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),c("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),Su=Ye("zoomOut",c("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),c("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),ku=q({name:"ResizeSmall",render(){return c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},c("g",{fill:"none"},c("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}});function Zo(e){return Array.isArray(e)?e:[e]}const Or={STOP:"STOP"};function ai(e,t){const r=t(e);e.children!==void 0&&r!==Or.STOP&&e.children.forEach(o=>ai(o,t))}function Pu(e,t={}){const{preserveGroup:r=!1}=t,o=[],n=r?l=>{l.isLeaf||(o.push(l.key),i(l.children))}:l=>{l.isLeaf||(l.isGroup||o.push(l.key),i(l.children))};function i(l){l.forEach(n)}return i(e),o}function $u(e,t){const{isLeaf:r}=e;return r!==void 0?r:!t(e)}function zu(e){return e.children}function Tu(e){return e.key}function Iu(){return!1}function _u(e,t){const{isLeaf:r}=e;return!(r===!1&&!Array.isArray(t(e)))}function Ru(e){return e.disabled===!0}function Ou(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function gr(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function mr(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function Mu(e,t){const r=new Set(e);return t.forEach(o=>{r.has(o)||r.add(o)}),Array.from(r)}function Bu(e,t){const r=new Set(e);return t.forEach(o=>{r.has(o)&&r.delete(o)}),Array.from(r)}function Lu(e){return(e==null?void 0:e.type)==="group"}class Eu extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function Au(e,t,r,o){return Qt(t.concat(e),r,o,!1)}function Du(e,t){const r=new Set;return e.forEach(o=>{const n=t.treeNodeMap.get(o);if(n!==void 0){let i=n.parent;for(;i!==null&&!(i.disabled||r.has(i.key));)r.add(i.key),i=i.parent}}),r}function Fu(e,t,r,o){const n=Qt(t,r,o,!1),i=Qt(e,r,o,!0),l=Du(e,r),s=[];return n.forEach(a=>{(i.has(a)||l.has(a))&&s.push(a)}),s.forEach(a=>n.delete(a)),n}function br(e,t){const{checkedKeys:r,keysToCheck:o,keysToUncheck:n,indeterminateKeys:i,cascade:l,leafOnly:s,checkStrategy:a,allowNotLoaded:d}=e;if(!l)return o!==void 0?{checkedKeys:Mu(r,o),indeterminateKeys:Array.from(i)}:n!==void 0?{checkedKeys:Bu(r,n),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(r),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:u}=t;let f;n!==void 0?f=Fu(n,r,t,d):o!==void 0?f=Au(o,r,t,d):f=Qt(r,t,d,!1);const h=a==="parent",p=a==="child"||s,v=f,y=new Set,w=Math.max.apply(null,Array.from(u.keys()));for(let x=w;x>=0;x-=1){const P=x===0,k=u.get(x);for(const b of k){if(b.isLeaf)continue;const{key:m,shallowLoaded:R}=b;if(p&&R&&b.children.forEach(_=>{!_.disabled&&!_.isLeaf&&_.shallowLoaded&&v.has(_.key)&&v.delete(_.key)}),b.disabled||!R)continue;let $=!0,A=!1,z=!0;for(const _ of b.children){const K=_.key;if(!_.disabled){if(z&&(z=!1),v.has(K))A=!0;else if(y.has(K)){A=!0,$=!1;break}else if($=!1,A)break}}$&&!z?(h&&b.children.forEach(_=>{!_.disabled&&v.has(_.key)&&v.delete(_.key)}),v.add(m)):A&&y.add(m),P&&p&&v.has(m)&&v.delete(m)}}return{checkedKeys:Array.from(v),indeterminateKeys:Array.from(y)}}function Qt(e,t,r,o){const{treeNodeMap:n,getChildren:i}=t,l=new Set,s=new Set(e);return e.forEach(a=>{const d=n.get(a);d!==void 0&&ai(d,u=>{if(u.disabled)return Or.STOP;const{key:f}=u;if(!l.has(f)&&(l.add(f),s.add(f),Ou(u.rawNode,i))){if(o)return Or.STOP;if(!r)throw new Eu}})}),s}function Nu(e,{includeGroup:t=!1,includeSelf:r=!0},o){var n;const i=o.treeNodeMap;let l=e==null?null:(n=i.get(e))!==null&&n!==void 0?n:null;const s={keyPath:[],treeNodePath:[],treeNode:l};if(l!=null&&l.ignored)return s.treeNode=null,s;for(;l;)!l.ignored&&(t||!l.isGroup)&&s.treeNodePath.push(l),l=l.parent;return s.treeNodePath.reverse(),r||s.treeNodePath.pop(),s.keyPath=s.treeNodePath.map(a=>a.key),s}function Hu(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function ju(e,t){const r=e.siblings,o=r.length,{index:n}=e;return t?r[(n+1)%o]:n===r.length-1?null:r[n+1]}function Jo(e,t,{loop:r=!1,includeDisabled:o=!1}={}){const n=t==="prev"?Uu:ju,i={reverse:t==="prev"};let l=!1,s=null;function a(d){if(d!==null){if(d===e){if(!l)l=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!d.disabled||o)&&!d.ignored&&!d.isGroup){s=d;return}if(d.isGroup){const u=no(d,i);u!==null?s=u:a(n(d,r))}else{const u=n(d,!1);if(u!==null)a(u);else{const f=Wu(d);f!=null&&f.isGroup?a(n(f,r)):r&&a(n(d,!0))}}}}return a(e),s}function Uu(e,t){const r=e.siblings,o=r.length,{index:n}=e;return t?r[(n-1+o)%o]:n===0?null:r[n-1]}function Wu(e){return e.parent}function no(e,t={}){const{reverse:r=!1}=t,{children:o}=e;if(o){const{length:n}=o,i=r?n-1:0,l=r?-1:n,s=r?-1:1;for(let a=i;a!==l;a+=s){const d=o[a];if(!d.disabled&&!d.ignored)if(d.isGroup){const u=no(d,t);if(u!==null)return u}else return d}}return null}const Vu={getChild(){return this.ignored?null:no(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return Jo(this,"next",e)},getPrev(e={}){return Jo(this,"prev",e)}};function Ku(e,t){const r=t?new Set(t):void 0,o=[];function n(i){i.forEach(l=>{o.push(l),!(l.isLeaf||!l.children||l.ignored)&&(l.isGroup||r===void 0||r.has(l.key))&&n(l.children)})}return n(e),o}function qu(e,t){const r=e.key;for(;t;){if(t.key===r)return!0;t=t.parent}return!1}function li(e,t,r,o,n,i=null,l=0){const s=[];return e.forEach((a,d)=>{var u;const f=Object.create(o);if(f.rawNode=a,f.siblings=s,f.level=l,f.index=d,f.isFirstChild=d===0,f.isLastChild=d+1===e.length,f.parent=i,!f.ignored){const h=n(a);Array.isArray(h)&&(f.children=li(h,t,r,o,n,f,l+1))}s.push(f),t.set(f.key,f),r.has(l)||r.set(l,[]),(u=r.get(l))===null||u===void 0||u.push(f)}),s}function Gu(e,t={}){var r;const o=new Map,n=new Map,{getDisabled:i=Ru,getIgnored:l=Iu,getIsGroup:s=Lu,getKey:a=Tu}=t,d=(r=t.getChildren)!==null&&r!==void 0?r:zu,u=t.ignoreEmptyChildren?b=>{const m=d(b);return Array.isArray(m)?m.length?m:null:m}:d,f=Object.assign({get key(){return a(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return s(this.rawNode)},get isLeaf(){return $u(this.rawNode,u)},get shallowLoaded(){return _u(this.rawNode,u)},get ignored(){return l(this.rawNode)},contains(b){return qu(this,b)}},Vu),h=li(e,o,n,f,u);function p(b){if(b==null)return null;const m=o.get(b);return m&&!m.isGroup&&!m.ignored?m:null}function v(b){if(b==null)return null;const m=o.get(b);return m&&!m.ignored?m:null}function y(b,m){const R=v(b);return R?R.getPrev(m):null}function w(b,m){const R=v(b);return R?R.getNext(m):null}function x(b){const m=v(b);return m?m.getParent():null}function P(b){const m=v(b);return m?m.getChild():null}const k={treeNodes:h,treeNodeMap:o,levelTreeNodeMap:n,maxLevel:Math.max(...n.keys()),getChildren:u,getFlattenedNodes(b){return Ku(h,b)},getNode:p,getPrev:y,getNext:w,getParent:x,getChild:P,getFirstAvailableNode(){return Hu(h)},getPath(b,m={}){return Nu(b,m,k)},getCheckedKeys(b,m={}){const{cascade:R=!0,leafOnly:$=!1,checkStrategy:A="all",allowNotLoaded:z=!1}=m;return br({checkedKeys:gr(b),indeterminateKeys:mr(b),cascade:R,leafOnly:$,checkStrategy:A,allowNotLoaded:z},k)},check(b,m,R={}){const{cascade:$=!0,leafOnly:A=!1,checkStrategy:z="all",allowNotLoaded:_=!1}=R;return br({checkedKeys:gr(m),indeterminateKeys:mr(m),keysToCheck:b==null?[]:Zo(b),cascade:$,leafOnly:A,checkStrategy:z,allowNotLoaded:_},k)},uncheck(b,m,R={}){const{cascade:$=!0,leafOnly:A=!1,checkStrategy:z="all",allowNotLoaded:_=!1}=R;return br({checkedKeys:gr(m),indeterminateKeys:mr(m),keysToUncheck:b==null?[]:Zo(b),cascade:$,leafOnly:A,checkStrategy:z,allowNotLoaded:_},k)},getNonLeafKeys(b={}){return Pu(h,b)}};return k}const Xu={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},Yu=e=>{const{textColorDisabled:t,iconColor:r,textColor2:o,fontSizeSmall:n,fontSizeMedium:i,fontSizeLarge:l,fontSizeHuge:s}=e;return Object.assign(Object.assign({},Xu),{fontSizeSmall:n,fontSizeMedium:i,fontSizeLarge:l,fontSizeHuge:s,textColor:t,iconColor:r,extraTextColor:o})},Zu={name:"Empty",common:Be,self:Yu},Ju=Zu,Qu=S("empty",` display: flex; flex-direction: column; align-items: center; @@ -1247,7 +1247,7 @@ import{r as M,w as Te,o as Ge,a as nt,i as Na,c as D,b as Ha,h as ja,d as vn,e a width: 0; height: 0; opacity: 0; - `)]);var sn=globalThis&&globalThis.__awaiter||function(e,t,r,o){function n(i){return i instanceof r?i:new r(function(l){l(i)})}return new(r||(r=Promise))(function(i,l){function s(u){try{d(o.next(u))}catch(f){l(f)}}function a(u){try{d(o.throw(u))}catch(f){l(f)}}function d(u){u.done?i(u.value):n(u.value).then(s,a)}d((o=o.apply(e,t||[])).next())})};function zp(e,t,r){const{doChange:o,xhrMap:n}=e;let i=0;function l(a){var d;let u=Object.assign({},t,{status:"error",percentage:i});n.delete(t.id),u=Bt(((d=e.onError)===null||d===void 0?void 0:d.call(e,{file:u,event:a}))||u),o(u,a)}function s(a){var d;if(e.isErrorState){if(e.isErrorState(r)){l(a);return}}else if(r.status<200||r.status>=300){l(a);return}let u=Object.assign({},t,{status:"finished",percentage:i});n.delete(t.id),u=Bt(((d=e.onFinish)===null||d===void 0?void 0:d.call(e,{file:u,event:a}))||u),o(u,a)}return{handleXHRLoad:s,handleXHRError:l,handleXHRAbort(a){const d=Object.assign({},t,{status:"removed",file:null,percentage:i});n.delete(t.id),o(d,a)},handleXHRProgress(a){const d=Object.assign({},t,{status:"uploading"});if(a.lengthComputable){const u=Math.ceil(a.loaded/a.total*100);d.percentage=u,i=u}o(d,a)}}}function Tp(e){const{inst:t,file:r,data:o,headers:n,withCredentials:i,action:l,customRequest:s}=e,{doChange:a}=e.inst;let d=0;s({file:r,data:o,headers:n,withCredentials:i,action:l,onProgress(u){const f=Object.assign({},r,{status:"uploading"}),h=u.percent;f.percentage=h,d=h,a(f)},onFinish(){var u;let f=Object.assign({},r,{status:"finished",percentage:d});f=Bt(((u=t.onFinish)===null||u===void 0?void 0:u.call(t,{file:f}))||f),a(f)},onError(){var u;let f=Object.assign({},r,{status:"error",percentage:d});f=Bt(((u=t.onError)===null||u===void 0?void 0:u.call(t,{file:f}))||f),a(f)}})}function Ip(e,t,r){const o=zp(e,t,r);r.onabort=o.handleXHRAbort,r.onerror=o.handleXHRError,r.onload=o.handleXHRLoad,r.upload&&(r.upload.onprogress=o.handleXHRProgress)}function Ii(e,t){return typeof e=="function"?e({file:t}):e||{}}function _p(e,t,r){const o=Ii(t,r);o&&Object.keys(o).forEach(n=>{e.setRequestHeader(n,o[n])})}function Rp(e,t,r){const o=Ii(t,r);o&&Object.keys(o).forEach(n=>{e.append(n,o[n])})}function Op(e,t,r,{method:o,action:n,withCredentials:i,responseType:l,headers:s,data:a}){const d=new XMLHttpRequest;d.responseType=l,e.xhrMap.set(r.id,d),d.withCredentials=i;const u=new FormData;if(Rp(u,a,r),u.append(t,r.file),Ip(e,r,d),n!==void 0){d.open(o.toUpperCase(),n),_p(d,s,r),d.send(u);const f=Object.assign({},r,{status:"uploading"});e.doChange(f)}}const Mp=Object.assign(Object.assign({},ae.props),{name:{type:String,default:"file"},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:"POST"},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:""},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:"text"},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>pp?zi(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerStyle:[String,Object],renderIcon:Object}),Bp=q({name:"Upload",props:Mp,setup(e){e.abstract&&e.listType==="image-card"&&kt("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=Re(e),o=ae("Upload","-upload",$p,Mh,e,t),n=$n(e),i=D(()=>{const{max:z}=e;return z!==void 0?p.value.length>=z:!1}),l=M(e.defaultFileList),s=ee(e,"fileList"),a=M(null),d={value:!1},u=M(!1),f=new Map,h=nr(s,l),p=D(()=>h.value.map(Bt));function v(){var z;(z=a.value)===null||z===void 0||z.click()}function y(z){const _=z.target;P(_.files?Array.from(_.files).map(K=>({file:K,entry:null,source:"input"})):null,z),_.value=""}function w(z){const{"onUpdate:fileList":_,onUpdateFileList:K}=e;_&&be(_,z),K&&be(K,z),l.value=z}const x=D(()=>e.multiple||e.directory);function P(z,_){if(!z||z.length===0)return;const{onBeforeUpload:K}=e;z=x.value?z:[z[0]];const{max:F,accept:O}=e;z=z.filter(({file:T,source:H})=>H==="dnd"&&(O!=null&&O.trim())?bp(T.name,T.type,O):!0),F&&(z=z.slice(0,F-p.value.length));const C=$r();Promise.all(z.map(({file:T,entry:H})=>sn(this,void 0,void 0,function*(){var N;const X={id:$r(),batchId:C,name:T.name,status:"pending",percentage:0,file:T,url:null,type:T.type,thumbnailUrl:null,fullPath:(N=H==null?void 0:H.fullPath)!==null&&N!==void 0?N:`/${T.webkitRelativePath||T.name}`};return!K||(yield K({file:X,fileList:p.value}))!==!1?X:null}))).then(T=>sn(this,void 0,void 0,function*(){let H=Promise.resolve();return T.forEach(N=>{H=H.then(Xt).then(()=>{N&&b(N,_,{append:!0})})}),yield H})).then(()=>{e.defaultUpload&&k()})}function k(z){const{method:_,action:K,withCredentials:F,headers:O,data:C,name:T}=e,H=z!==void 0?p.value.filter(X=>X.id===z):p.value,N=z!==void 0;H.forEach(X=>{const{status:te}=X;(te==="pending"||te==="error"&&N)&&(e.customRequest?Tp({inst:{doChange:b,xhrMap:f,onFinish:e.onFinish,onError:e.onError},file:X,action:K,withCredentials:F,headers:O,data:C,customRequest:e.customRequest}):Op({doChange:b,xhrMap:f,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},T,X,{method:_,action:K,withCredentials:F,responseType:e.responseType,headers:O,data:C}))})}const b=(z,_,K={append:!1,remove:!1})=>{const{append:F,remove:O}=K,C=Array.from(p.value),T=C.findIndex(H=>H.id===z.id);if(F||O||~T){F?C.push(z):O?C.splice(T,1):C.splice(T,1,z);const{onChange:H}=e;H&&H({file:z,fileList:C,event:_}),w(C)}};function m(z){var _;if(z.thumbnailUrl)return z.thumbnailUrl;const{createThumbnailUrl:K}=e;return K?(_=K(z.file,z))!==null&&_!==void 0?_:z.url||"":z.url?z.url:z.file?hp(z.file):""}const R=D(()=>{const{common:{cubicBezierEaseInOut:z},self:{draggerColor:_,draggerBorder:K,draggerBorderHover:F,itemColorHover:O,itemColorHoverError:C,itemTextColorError:T,itemTextColorSuccess:H,itemTextColor:N,itemIconColor:X,itemDisabledOpacity:te,lineHeight:ge,borderRadius:W,fontSize:Q,itemBorderImageCardError:se,itemBorderImageCard:ie}}=o.value;return{"--n-bezier":z,"--n-border-radius":W,"--n-dragger-border":K,"--n-dragger-border-hover":F,"--n-dragger-color":_,"--n-font-size":Q,"--n-item-color-hover":O,"--n-item-color-hover-error":C,"--n-item-disabled-opacity":te,"--n-item-icon-color":X,"--n-item-text-color":N,"--n-item-text-color-error":T,"--n-item-text-color-success":H,"--n-line-height":ge,"--n-item-border-image-card-error":se,"--n-item-border-image-card":ie}}),$=r?Fe("upload",void 0,R,e):void 0;_e($t,{mergedClsPrefixRef:t,mergedThemeRef:o,showCancelButtonRef:ee(e,"showCancelButton"),showDownloadButtonRef:ee(e,"showDownloadButton"),showRemoveButtonRef:ee(e,"showRemoveButton"),showRetryButtonRef:ee(e,"showRetryButton"),onRemoveRef:ee(e,"onRemove"),onDownloadRef:ee(e,"onDownload"),mergedFileListRef:p,triggerStyleRef:ee(e,"triggerStyle"),shouldUseThumbnailUrlRef:ee(e,"shouldUseThumbnailUrl"),renderIconRef:ee(e,"renderIcon"),xhrMap:f,submit:k,doChange:b,showPreviewButtonRef:ee(e,"showPreviewButton"),onPreviewRef:ee(e,"onPreview"),getFileThumbnailUrlResolver:m,listTypeRef:ee(e,"listType"),dragOverRef:u,openOpenFileDialog:v,draggerInsideRef:d,handleFileAddition:P,mergedDisabledRef:n.mergedDisabledRef,maxReachedRef:i,fileListStyleRef:ee(e,"fileListStyle"),abstractRef:ee(e,"abstract"),acceptRef:ee(e,"accept"),cssVarsRef:r?void 0:R,themeClassRef:$==null?void 0:$.themeClass,onRender:$==null?void 0:$.onRender,showTriggerRef:ee(e,"showTrigger"),imageGroupPropsRef:ee(e,"imageGroupProps"),mergedDirectoryDndRef:D(()=>{var z;return(z=e.directoryDnd)!==null&&z!==void 0?z:e.directory})});const A={clear:()=>{l.value=[]},submit:k,openOpenFileDialog:v};return Object.assign({mergedClsPrefix:t,draggerInsideRef:d,inputElRef:a,mergedTheme:o,dragOver:u,mergedMultiple:x,cssVars:r?void 0:R,themeClass:$==null?void 0:$.themeClass,onRender:$==null?void 0:$.onRender,handleFileInputChange:y},A)},render(){var e,t;const{draggerInsideRef:r,mergedClsPrefix:o,$slots:n,directory:i,onRender:l}=this;if(n.default&&!this.abstract){const a=n.default()[0];!((e=a==null?void 0:a.type)===null||e===void 0)&&e[ki]&&(r.value=!0)}const s=c("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:"file",class:`${o}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:i||void 0,directory:i||void 0}));return this.abstract?c(Ve,null,(t=n.default)===null||t===void 0?void 0:t.call(n),c(xl,{to:"body"},s)):(l==null||l(),c("div",{class:[`${o}-upload`,r.value&&`${o}-upload--dragger-inside`,this.dragOver&&`${o}-upload--drag-over`,this.themeClass],style:this.cssVars},s,this.showTrigger&&this.listType!=="image-card"&&c(Ti,null,n),this.showFileList&&c(Pp,null,n)))}}),dn="/web/assets/setting-c6ca7b14.svg",At=Zr("prompt-store",()=>{const e=M([{type:1,name:"ChatGPT 中文调教指南 - 简体",url:"./data/prompts/prompts-zh.json",refer:"https://github.com/PlexPt/awesome-chatgpt-prompts-zh"},{type:1,name:"ChatGPT 中文调教指南 - 繁体",url:"./data/prompts/prompts-zh-TW.json",refer:"https://github.com/PlexPt/awesome-chatgpt-prompts-zh"},{type:1,name:"Awesome ChatGPT Prompts",url:"./data/prompts/prompts.csv",refer:"https://github.com/f/awesome-chatgpt-prompts"},{type:2,name:"",url:"",refer:""}]),t=M(!1),r=M(!1),o=M([]),n=M(""),i=M(0),l=M({isShow:!1,newPrompt:{act:"",prompt:""}}),s=D(()=>{var d;return n.value?(d=o.value)==null?void 0:d.filter(u=>u.act.includes(n.value)||u.prompt.includes(n.value)):o.value});function a(d){if(d instanceof Array&&d.every(u=>u.act&&u.prompt)){if(o.value.length===0)return o.value.push(...d),{result:!0,data:{successCount:d.length}};const u=d.filter(f=>{var h;return(h=o.value)==null?void 0:h.every(p=>f.act!==p.act&&f.prompt!==p.prompt)});return o.value.push(...u),{result:!0,data:{successCount:u.length}}}else return{result:!1,msg:"提示词格式有误"}}return{promptDownloadConfig:e,isShowPromptSotre:t,isShowChatPrompt:r,promptList:o,keyword:n,searchPromptList:s,selectedPromptIndex:i,optPromptConfig:l,addPrompt:a}},{persist:{key:"prompt-store",storage:localStorage,paths:["promptList"]}}),Lp=["href"],Ep={key:1},Ap=q({__name:"ChatNavItem",props:{navConfig:{}},setup(e){return(t,r)=>t.navConfig.url?(oe(),Se("a",{key:0,href:t.navConfig.url,target:"_blank",rel:"noopener noreferrer"},Ue(t.navConfig.label),9,Lp)):(oe(),Se("div",Ep,Ue(t.navConfig.label),1))}}),_i=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),Dp=e=>new Promise((t,r)=>setTimeout(t,e)),Fp={class:"flex justify-center gap-3 px-8"},Np={class:"flex justify-center items-center"},Hp=["src"],jp=ye("p",{class:"text-left"},"提示:形容词+名词+动词+风格,描述得越详细时,效果越好。",-1),cn="骑着摩托的小猫咪,疾驰在路上,动漫场景,详细的细节。",Up=q({__name:"CreateImage",props:{show:{type:Boolean}},emits:["update:show"],setup(e,{emit:t}){const r=e,o=Pt(),n=M(""),i=M(""),l=M(!1),s=D({get:()=>r.show,set:f=>t("update:show",f)}),a=()=>{if(!n.value){o.error("请先输入关键词");return}l.value=!0,i.value=`/images/create?re=1&showselective=1&sude=1&kseed=7500&SFX=2&q=${encodeURIComponent(n.value)}&t=${Date.now()}`},d=()=>{n.value="",i.value=""},u=()=>(n.value=cn,a());return(f,h)=>(oe(),Pe(E(ut),{class:"w-11/12 lg:w-[540px] select-none",show:s.value,"onUpdate:show":h[2]||(h[2]=p=>s.value=p),"on-close":d,preset:"card",title:"图像创建"},{default:Y(()=>[ye("head",Fp,[G(E(et),{class:"flex-1",placeholder:"提示词",value:n.value,"onUpdate:value":h[0]||(h[0]=p=>n.value=p),clearable:!0,onKeyup:Cl(a,["enter"]),maxlength:"100"},null,8,["value","onKeyup"]),G(E(ce),{secondary:"",type:"info",onClick:a,loading:l.value},{default:Y(()=>[de("开始创建")]),_:1},8,["loading"])]),ye("main",Np,[i.value?(oe(),Se("iframe",{key:0,class:"w-[310px] h-[350px] xl:w-[475px] xl:h-[520px] my-4",src:i.value,frameborder:"0",onLoad:h[1]||(h[1]=p=>l.value=!1)},null,40,Hp)):(oe(),Pe(E(io),{key:1,class:"h-[40vh] xl:h-[60vh] flex justify-center items-center",description:"暂未创建"},{extra:Y(()=>[G(E(ce),{secondary:"",type:"info",onClick:u},{default:Y(()=>[de("使用示例创建")]),_:1}),ye("div",{class:"text-[#c2c2c2] px-2 xl:px-10"},[jp,ye("p",{class:"text-left"},"示例:"+Ue(cn))])]),_:1}))])]),_:1},8,["show"]))}}),uo=Zr("chat-store",()=>{const e="/sydney/ChatHub",t=M(!1),r=M(""),o=M([{baseUrl:"https://sydney.bing.com",label:"Bing 官方"},{baseUrl:"https://sydney.vcanbb.chat",label:"Cloudflare"},{baseUrl:location.origin,label:"本站"},{baseUrl:"",label:"自定义",isCus:!0}]),n=3e3,i=async s=>{if(!s.baseUrl)return{isUsable:!1,errorMsg:"链接不可为空"};try{const a=Date.now(),d=new WebSocket(s.baseUrl.replace("http","ws")+e),u=setTimeout(()=>{d.close()},n);return await new Promise((f,h)=>{d.onopen=()=>{clearTimeout(u),f(d.close())},d.onerror=()=>{clearTimeout(u),h(new Error(`聊天服务器 ${s.baseUrl} 连接失败`))},d.onclose=()=>h(new Error(`聊天服务器 ${s.baseUrl} 连接超时`))}),{isUsable:!0,delay:Date.now()-a}}catch(a){return{isUsable:!1,errorMsg:a instanceof Error?a.message:""}}};return{isShowChatServiceSelectModal:t,sydneyConfigs:o,selectedSydneyBaseUrl:r,checkSydneyConfig:i,checkAllSydneyConfig:async()=>{const s=o.value.filter(a=>a.baseUrl).map(async a=>{const d=await i(a);a.isUsable=d.isUsable,a.delay=d.delay});await Promise.all(s)}}},{persist:{key:"chat-store",storage:localStorage,paths:["selectedSydneyBaseUrl","sydneyConfigs"]}});function Wp(e){const t=document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return t?t[2]:null}function Vp(e,t,r=0,o="/",n=""){let i=e+"="+t+";path="+o;if(n&&(i+=";domain="+n),r>0){const l=new Date;l.setTime(l.getTime()+r*60*1e3),i+=";expires="+l.toUTCString()}document.cookie=i}const st={get:Wp,set:Vp};async function Kp(){return fetch("/sysconf",{credentials:"include"}).then(t=>t.json())}const qp={getSysConfig:Kp};var fo=(e=>(e[e.OK=200]="OK",e[e.Unauthorized=401]="Unauthorized",e))(fo||{});const Ri=Zr("user-store",()=>{const t="_U",r="BingAI_Rand_IP",o="BingAI_Auth_Key",n=M(),i=async()=>{const v=await qp.getSysConfig();return v.code===fo.OK&&(n.value={...n.value,...v.data}),v},l=()=>{const v=new Date;return v.setMinutes(v.getMinutes()+CIB.config.sydney.expiryInMinutes),v},s=async(v=0)=>{var w;if(v>=10){console.log(`已重试 ${v} 次,自动创建停止`);return}const y=await fetch("/turing/conversation/create",{credentials:"include"}).then(x=>x.json()).catch(x=>"error");((w=y==null?void 0:y.result)==null?void 0:w.value)==="Success"?(console.log("成功创建会话ID : ",y.conversationId),CIB.manager.conversation.updateId(y.conversationId,l(),y.clientId,y.conversationSignature)):(await Dp(300),v+=1,console.log(`开始第 ${v} 次重试创建会话ID`),st.set(r,"",-1),s(v))},a=()=>st.get(t)||"",d=()=>{a()||(CIB.config.features.enableGetChats=!1,CIB.vm.sidePanel.isVisibleMobile=!1,CIB.vm.sidePanel.isVisibleDesktop=!1,s())},u=v=>{st.set(t,v,7*24*60,"/")},f=v=>{st.set(o,v)},h=async()=>{localStorage.clear(),sessionStorage.clear();const v=await caches.keys();for(const y of v)await caches.open(y).then(async w=>{const x=await w.keys();return await Promise.all(x.map(P=>(console.log("del cache : ",P.url),w.delete(P))))})};return{sysConfig:n,getSysConfig:i,getUserToken:a,checkUserToken:d,saveUserToken:u,resetCache:async()=>{st.set(t,"",-1),st.set(r,"",-1),st.set(o,"",-1),await h()},setAuthKey:f}},{persist:{key:"user-store",storage:localStorage,paths:[]}}),Gp=ye("div",{class:"text-3xl py-2"},"设置用户",-1),Xp=ye("div",{class:"text-xl py-2"},"将删除包括 Cookie 等的所有缓存?",-1),Yp=q({__name:"ChatNav",setup(e){const t=M(!1),r=M(!1),o=M(""),n=Pt(),i=At(),{isShowPromptSotre:l}=ot(i),s=M(!1),a=M(!1),d=uo(),{isShowChatServiceSelectModal:u}=ot(d),f=Ri(),h={github:"github",version:"version",chatService:"chatService",promptStore:"promptStore",setToken:"setToken",compose:"compose",createImage:"createImage",reset:"reset"},p=[{key:h.github,label:"开源地址",url:"https://github.com/adams549659584/go-proxy-bingai"},{key:h.version,label:"版本信息"},{key:h.chatService,label:"服务选择"},{key:h.promptStore,label:"提示词库"},{key:h.setToken,label:"设置用户"},{key:h.compose,label:"撰写文章",url:"/web/compose.html"},{key:h.createImage,label:"图像创建"},{key:h.reset,label:"一键重置"}],v=P=>c(Ap,{navConfig:P}),y=P=>{var k;switch(P){case h.version:n.success("当前版本号为:1.8.0");break;case h.chatService:u.value=!0,d.checkAllSydneyConfig();break;case h.promptStore:l.value=!0;break;case h.setToken:o.value=f.getUserToken(),r.value=!0;break;case h.createImage:!((k=f.sysConfig)!=null&&k.isSysCK)&&!f.getUserToken()&&n.warning("体验画图功能需先登录"),a.value=!0;break;case h.reset:s.value=!0;break}},w=async()=>{s.value=!1,await f.resetCache(),n.success("清理完成"),window.location.reload()},x=()=>{if(!o.value){n.warning("请先填入用户 Cookie");return}f.saveUserToken(o.value),r.value=!1};return(P,k)=>(oe(),Se(Ve,null,[E(_i)()?(oe(),Pe(E(on),{key:0,class:"select-none",show:t.value,options:p,"render-label":v,onSelect:y},{default:Y(()=>[G(E(Lr),{class:"fixed top-6 right-4 cursor-pointer",src:E(dn),alt:"设置菜单","preview-disabled":!0,onClick:k[0]||(k[0]=b=>t.value=!t.value)},null,8,["src"])]),_:1},8,["show"])):(oe(),Pe(E(on),{key:1,class:"select-none",trigger:"hover",options:p,"render-label":v,onSelect:y},{default:Y(()=>[G(E(Lr),{class:"fixed top-6 right-6 cursor-pointer",src:E(dn),alt:"设置菜单","preview-disabled":!0},null,8,["src"])]),_:1})),G(E(ut),{show:r.value,"onUpdate:show":k[3]||(k[3]=b=>r.value=b),preset:"dialog","show-icon":!1},{header:Y(()=>[Gp]),action:Y(()=>[G(E(ce),{size:"large",onClick:k[2]||(k[2]=b=>r.value=!1)},{default:Y(()=>[de("取消")]),_:1}),G(E(ce),{ghost:"",size:"large",type:"info",onClick:x},{default:Y(()=>[de("保存")]),_:1})]),default:Y(()=>[G(E(et),{size:"large",value:o.value,"onUpdate:value":k[1]||(k[1]=b=>o.value=b),type:"text",placeholder:"用户 Cookie ,仅需要 _U 的值"},null,8,["value"])]),_:1},8,["show"]),G(E(ut),{show:s.value,"onUpdate:show":k[5]||(k[5]=b=>s.value=b),preset:"dialog","show-icon":!1},{header:Y(()=>[Xp]),action:Y(()=>[G(E(ce),{size:"large",onClick:k[4]||(k[4]=b=>s.value=!1)},{default:Y(()=>[de("取消")]),_:1}),G(E(ce),{ghost:"",size:"large",type:"error",onClick:w},{default:Y(()=>[de("确定")]),_:1})]),_:1},8,["show"]),G(Up,{show:a.value,"onUpdate:show":k[6]||(k[6]=b=>a.value=b)},null,8,["show"])],64))}});function un(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function qt(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,o=new Array(t);r=300){l(a);return}let u=Object.assign({},t,{status:"finished",percentage:i});n.delete(t.id),u=Bt(((d=e.onFinish)===null||d===void 0?void 0:d.call(e,{file:u,event:a}))||u),o(u,a)}return{handleXHRLoad:s,handleXHRError:l,handleXHRAbort(a){const d=Object.assign({},t,{status:"removed",file:null,percentage:i});n.delete(t.id),o(d,a)},handleXHRProgress(a){const d=Object.assign({},t,{status:"uploading"});if(a.lengthComputable){const u=Math.ceil(a.loaded/a.total*100);d.percentage=u,i=u}o(d,a)}}}function Tp(e){const{inst:t,file:r,data:o,headers:n,withCredentials:i,action:l,customRequest:s}=e,{doChange:a}=e.inst;let d=0;s({file:r,data:o,headers:n,withCredentials:i,action:l,onProgress(u){const f=Object.assign({},r,{status:"uploading"}),h=u.percent;f.percentage=h,d=h,a(f)},onFinish(){var u;let f=Object.assign({},r,{status:"finished",percentage:d});f=Bt(((u=t.onFinish)===null||u===void 0?void 0:u.call(t,{file:f}))||f),a(f)},onError(){var u;let f=Object.assign({},r,{status:"error",percentage:d});f=Bt(((u=t.onError)===null||u===void 0?void 0:u.call(t,{file:f}))||f),a(f)}})}function Ip(e,t,r){const o=zp(e,t,r);r.onabort=o.handleXHRAbort,r.onerror=o.handleXHRError,r.onload=o.handleXHRLoad,r.upload&&(r.upload.onprogress=o.handleXHRProgress)}function Ii(e,t){return typeof e=="function"?e({file:t}):e||{}}function _p(e,t,r){const o=Ii(t,r);o&&Object.keys(o).forEach(n=>{e.setRequestHeader(n,o[n])})}function Rp(e,t,r){const o=Ii(t,r);o&&Object.keys(o).forEach(n=>{e.append(n,o[n])})}function Op(e,t,r,{method:o,action:n,withCredentials:i,responseType:l,headers:s,data:a}){const d=new XMLHttpRequest;d.responseType=l,e.xhrMap.set(r.id,d),d.withCredentials=i;const u=new FormData;if(Rp(u,a,r),u.append(t,r.file),Ip(e,r,d),n!==void 0){d.open(o.toUpperCase(),n),_p(d,s,r),d.send(u);const f=Object.assign({},r,{status:"uploading"});e.doChange(f)}}const Mp=Object.assign(Object.assign({},ae.props),{name:{type:String,default:"file"},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:"POST"},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:""},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:"text"},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>pp?zi(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerStyle:[String,Object],renderIcon:Object}),Bp=q({name:"Upload",props:Mp,setup(e){e.abstract&&e.listType==="image-card"&&kt("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=Re(e),o=ae("Upload","-upload",$p,Mh,e,t),n=$n(e),i=D(()=>{const{max:z}=e;return z!==void 0?p.value.length>=z:!1}),l=M(e.defaultFileList),s=ee(e,"fileList"),a=M(null),d={value:!1},u=M(!1),f=new Map,h=nr(s,l),p=D(()=>h.value.map(Bt));function v(){var z;(z=a.value)===null||z===void 0||z.click()}function y(z){const _=z.target;P(_.files?Array.from(_.files).map(K=>({file:K,entry:null,source:"input"})):null,z),_.value=""}function w(z){const{"onUpdate:fileList":_,onUpdateFileList:K}=e;_&&be(_,z),K&&be(K,z),l.value=z}const x=D(()=>e.multiple||e.directory);function P(z,_){if(!z||z.length===0)return;const{onBeforeUpload:K}=e;z=x.value?z:[z[0]];const{max:F,accept:O}=e;z=z.filter(({file:T,source:H})=>H==="dnd"&&(O!=null&&O.trim())?bp(T.name,T.type,O):!0),F&&(z=z.slice(0,F-p.value.length));const C=$r();Promise.all(z.map(({file:T,entry:H})=>sn(this,void 0,void 0,function*(){var N;const X={id:$r(),batchId:C,name:T.name,status:"pending",percentage:0,file:T,url:null,type:T.type,thumbnailUrl:null,fullPath:(N=H==null?void 0:H.fullPath)!==null&&N!==void 0?N:`/${T.webkitRelativePath||T.name}`};return!K||(yield K({file:X,fileList:p.value}))!==!1?X:null}))).then(T=>sn(this,void 0,void 0,function*(){let H=Promise.resolve();return T.forEach(N=>{H=H.then(Xt).then(()=>{N&&b(N,_,{append:!0})})}),yield H})).then(()=>{e.defaultUpload&&k()})}function k(z){const{method:_,action:K,withCredentials:F,headers:O,data:C,name:T}=e,H=z!==void 0?p.value.filter(X=>X.id===z):p.value,N=z!==void 0;H.forEach(X=>{const{status:te}=X;(te==="pending"||te==="error"&&N)&&(e.customRequest?Tp({inst:{doChange:b,xhrMap:f,onFinish:e.onFinish,onError:e.onError},file:X,action:K,withCredentials:F,headers:O,data:C,customRequest:e.customRequest}):Op({doChange:b,xhrMap:f,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},T,X,{method:_,action:K,withCredentials:F,responseType:e.responseType,headers:O,data:C}))})}const b=(z,_,K={append:!1,remove:!1})=>{const{append:F,remove:O}=K,C=Array.from(p.value),T=C.findIndex(H=>H.id===z.id);if(F||O||~T){F?C.push(z):O?C.splice(T,1):C.splice(T,1,z);const{onChange:H}=e;H&&H({file:z,fileList:C,event:_}),w(C)}};function m(z){var _;if(z.thumbnailUrl)return z.thumbnailUrl;const{createThumbnailUrl:K}=e;return K?(_=K(z.file,z))!==null&&_!==void 0?_:z.url||"":z.url?z.url:z.file?hp(z.file):""}const R=D(()=>{const{common:{cubicBezierEaseInOut:z},self:{draggerColor:_,draggerBorder:K,draggerBorderHover:F,itemColorHover:O,itemColorHoverError:C,itemTextColorError:T,itemTextColorSuccess:H,itemTextColor:N,itemIconColor:X,itemDisabledOpacity:te,lineHeight:ge,borderRadius:W,fontSize:Q,itemBorderImageCardError:se,itemBorderImageCard:ie}}=o.value;return{"--n-bezier":z,"--n-border-radius":W,"--n-dragger-border":K,"--n-dragger-border-hover":F,"--n-dragger-color":_,"--n-font-size":Q,"--n-item-color-hover":O,"--n-item-color-hover-error":C,"--n-item-disabled-opacity":te,"--n-item-icon-color":X,"--n-item-text-color":N,"--n-item-text-color-error":T,"--n-item-text-color-success":H,"--n-line-height":ge,"--n-item-border-image-card-error":se,"--n-item-border-image-card":ie}}),$=r?Fe("upload",void 0,R,e):void 0;_e($t,{mergedClsPrefixRef:t,mergedThemeRef:o,showCancelButtonRef:ee(e,"showCancelButton"),showDownloadButtonRef:ee(e,"showDownloadButton"),showRemoveButtonRef:ee(e,"showRemoveButton"),showRetryButtonRef:ee(e,"showRetryButton"),onRemoveRef:ee(e,"onRemove"),onDownloadRef:ee(e,"onDownload"),mergedFileListRef:p,triggerStyleRef:ee(e,"triggerStyle"),shouldUseThumbnailUrlRef:ee(e,"shouldUseThumbnailUrl"),renderIconRef:ee(e,"renderIcon"),xhrMap:f,submit:k,doChange:b,showPreviewButtonRef:ee(e,"showPreviewButton"),onPreviewRef:ee(e,"onPreview"),getFileThumbnailUrlResolver:m,listTypeRef:ee(e,"listType"),dragOverRef:u,openOpenFileDialog:v,draggerInsideRef:d,handleFileAddition:P,mergedDisabledRef:n.mergedDisabledRef,maxReachedRef:i,fileListStyleRef:ee(e,"fileListStyle"),abstractRef:ee(e,"abstract"),acceptRef:ee(e,"accept"),cssVarsRef:r?void 0:R,themeClassRef:$==null?void 0:$.themeClass,onRender:$==null?void 0:$.onRender,showTriggerRef:ee(e,"showTrigger"),imageGroupPropsRef:ee(e,"imageGroupProps"),mergedDirectoryDndRef:D(()=>{var z;return(z=e.directoryDnd)!==null&&z!==void 0?z:e.directory})});const A={clear:()=>{l.value=[]},submit:k,openOpenFileDialog:v};return Object.assign({mergedClsPrefix:t,draggerInsideRef:d,inputElRef:a,mergedTheme:o,dragOver:u,mergedMultiple:x,cssVars:r?void 0:R,themeClass:$==null?void 0:$.themeClass,onRender:$==null?void 0:$.onRender,handleFileInputChange:y},A)},render(){var e,t;const{draggerInsideRef:r,mergedClsPrefix:o,$slots:n,directory:i,onRender:l}=this;if(n.default&&!this.abstract){const a=n.default()[0];!((e=a==null?void 0:a.type)===null||e===void 0)&&e[ki]&&(r.value=!0)}const s=c("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:"file",class:`${o}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:i||void 0,directory:i||void 0}));return this.abstract?c(Ve,null,(t=n.default)===null||t===void 0?void 0:t.call(n),c(xl,{to:"body"},s)):(l==null||l(),c("div",{class:[`${o}-upload`,r.value&&`${o}-upload--dragger-inside`,this.dragOver&&`${o}-upload--drag-over`,this.themeClass],style:this.cssVars},s,this.showTrigger&&this.listType!=="image-card"&&c(Ti,null,n),this.showFileList&&c(Pp,null,n)))}}),dn="/web/assets/setting-c6ca7b14.svg",At=Zr("prompt-store",()=>{const e=M([{type:1,name:"ChatGPT 中文调教指南 - 简体",url:"./data/prompts/prompts-zh.json",refer:"https://github.com/PlexPt/awesome-chatgpt-prompts-zh"},{type:1,name:"ChatGPT 中文调教指南 - 繁体",url:"./data/prompts/prompts-zh-TW.json",refer:"https://github.com/PlexPt/awesome-chatgpt-prompts-zh"},{type:1,name:"Awesome ChatGPT Prompts",url:"./data/prompts/prompts.csv",refer:"https://github.com/f/awesome-chatgpt-prompts"},{type:2,name:"",url:"",refer:""}]),t=M(!1),r=M(!1),o=M([]),n=M(""),i=M(0),l=M({isShow:!1,newPrompt:{act:"",prompt:""}}),s=D(()=>{var d;return n.value?(d=o.value)==null?void 0:d.filter(u=>u.act.includes(n.value)||u.prompt.includes(n.value)):o.value});function a(d){if(d instanceof Array&&d.every(u=>u.act&&u.prompt)){if(o.value.length===0)return o.value.push(...d),{result:!0,data:{successCount:d.length}};const u=d.filter(f=>{var h;return(h=o.value)==null?void 0:h.every(p=>f.act!==p.act&&f.prompt!==p.prompt)});return o.value.push(...u),{result:!0,data:{successCount:u.length}}}else return{result:!1,msg:"提示词格式有误"}}return{promptDownloadConfig:e,isShowPromptSotre:t,isShowChatPrompt:r,promptList:o,keyword:n,searchPromptList:s,selectedPromptIndex:i,optPromptConfig:l,addPrompt:a}},{persist:{key:"prompt-store",storage:localStorage,paths:["promptList"]}}),Lp=["href"],Ep={key:1},Ap=q({__name:"ChatNavItem",props:{navConfig:{}},setup(e){return(t,r)=>t.navConfig.url?(oe(),Se("a",{key:0,href:t.navConfig.url,target:"_blank",rel:"noopener noreferrer"},Ue(t.navConfig.label),9,Lp)):(oe(),Se("div",Ep,Ue(t.navConfig.label),1))}}),_i=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),Dp=e=>new Promise((t,r)=>setTimeout(t,e)),Fp={class:"flex justify-center gap-3 px-8"},Np={class:"flex justify-center items-center"},Hp=["src"],jp=ye("p",{class:"text-left"},"提示:形容词+名词+动词+风格,描述得越详细时,效果越好。",-1),cn="骑着摩托的小猫咪,疾驰在路上,动漫场景,详细的细节。",Up=q({__name:"CreateImage",props:{show:{type:Boolean}},emits:["update:show"],setup(e,{emit:t}){const r=e,o=Pt(),n=M(""),i=M(""),l=M(!1),s=D({get:()=>r.show,set:f=>t("update:show",f)}),a=()=>{if(!n.value){o.error("请先输入关键词");return}l.value=!0,i.value=`/images/create?re=1&showselective=1&sude=1&kseed=7500&SFX=2&q=${encodeURIComponent(n.value)}&t=${Date.now()}`},d=()=>{n.value="",i.value=""},u=()=>(n.value=cn,a());return(f,h)=>(oe(),Pe(E(ut),{class:"w-11/12 lg:w-[540px] select-none",show:s.value,"onUpdate:show":h[2]||(h[2]=p=>s.value=p),"on-close":d,preset:"card",title:"图像创建"},{default:Y(()=>[ye("head",Fp,[G(E(et),{class:"flex-1",placeholder:"提示词",value:n.value,"onUpdate:value":h[0]||(h[0]=p=>n.value=p),clearable:!0,onKeyup:Cl(a,["enter"]),maxlength:"100"},null,8,["value","onKeyup"]),G(E(ce),{secondary:"",type:"info",onClick:a,loading:l.value},{default:Y(()=>[de("开始创建")]),_:1},8,["loading"])]),ye("main",Np,[i.value?(oe(),Se("iframe",{key:0,class:"w-[310px] h-[350px] xl:w-[475px] xl:h-[520px] my-4",src:i.value,frameborder:"0",onLoad:h[1]||(h[1]=p=>l.value=!1)},null,40,Hp)):(oe(),Pe(E(io),{key:1,class:"h-[40vh] xl:h-[60vh] flex justify-center items-center",description:"暂未创建"},{extra:Y(()=>[G(E(ce),{secondary:"",type:"info",onClick:u},{default:Y(()=>[de("使用示例创建")]),_:1}),ye("div",{class:"text-[#c2c2c2] px-2 xl:px-10"},[jp,ye("p",{class:"text-left"},"示例:"+Ue(cn))])]),_:1}))])]),_:1},8,["show"]))}}),uo=Zr("chat-store",()=>{const e="/sydney/ChatHub",t=M(!1),r=M(""),o=M([{baseUrl:"https://sydney.bing.com",label:"Bing 官方"},{baseUrl:"https://sydney.vcanbb.chat",label:"Cloudflare"},{baseUrl:location.origin,label:"本站"},{baseUrl:"",label:"自定义",isCus:!0}]),n=3e3,i=async s=>{if(!s.baseUrl)return{isUsable:!1,errorMsg:"链接不可为空"};try{const a=Date.now(),d=new WebSocket(s.baseUrl.replace("http","ws")+e),u=setTimeout(()=>{d.close()},n);return await new Promise((f,h)=>{d.onopen=()=>{clearTimeout(u),f(d.close())},d.onerror=()=>{clearTimeout(u),h(new Error(`聊天服务器 ${s.baseUrl} 连接失败`))},d.onclose=()=>h(new Error(`聊天服务器 ${s.baseUrl} 连接超时`))}),{isUsable:!0,delay:Date.now()-a}}catch(a){return{isUsable:!1,errorMsg:a instanceof Error?a.message:""}}};return{isShowChatServiceSelectModal:t,sydneyConfigs:o,selectedSydneyBaseUrl:r,checkSydneyConfig:i,checkAllSydneyConfig:async()=>{const s=o.value.filter(a=>a.baseUrl).map(async a=>{const d=await i(a);a.isUsable=d.isUsable,a.delay=d.delay});await Promise.all(s)}}},{persist:{key:"chat-store",storage:localStorage,paths:["selectedSydneyBaseUrl","sydneyConfigs"]}});function Wp(e){const t=document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return t?t[2]:null}function Vp(e,t,r=0,o="/",n=""){let i=e+"="+t+";path="+o;if(n&&(i+=";domain="+n),r>0){const l=new Date;l.setTime(l.getTime()+r*60*1e3),i+=";expires="+l.toUTCString()}document.cookie=i}const st={get:Wp,set:Vp};async function Kp(){return fetch("/sysconf",{credentials:"include"}).then(t=>t.json())}const qp={getSysConfig:Kp};var fo=(e=>(e[e.OK=200]="OK",e[e.Unauthorized=401]="Unauthorized",e))(fo||{});const Ri=Zr("user-store",()=>{const t="_U",r="BingAI_Rand_IP",o="BingAI_Auth_Key",n=M(),i=async()=>{const v=await qp.getSysConfig();return v.code===fo.OK&&(n.value={...n.value,...v.data}),v},l=()=>{const v=new Date;return v.setMinutes(v.getMinutes()+CIB.config.sydney.expiryInMinutes),v},s=async(v=0)=>{var w;if(v>=10){console.log(`已重试 ${v} 次,自动创建停止`);return}const y=await fetch("/turing/conversation/create",{credentials:"include"}).then(x=>x.json()).catch(x=>"error");((w=y==null?void 0:y.result)==null?void 0:w.value)==="Success"?(console.log("成功创建会话ID : ",y.conversationId),CIB.manager.conversation.updateId(y.conversationId,l(),y.clientId,y.conversationSignature)):(await Dp(300),v+=1,console.log(`开始第 ${v} 次重试创建会话ID`),st.set(r,"",-1),s(v))},a=()=>st.get(t)||"",d=()=>{a()||(CIB.config.features.enableGetChats=!1,CIB.vm.sidePanel.isVisibleMobile=!1,CIB.vm.sidePanel.isVisibleDesktop=!1,s())},u=v=>{st.set(t,v,7*24*60,"/")},f=v=>{st.set(o,v)},h=async()=>{localStorage.clear(),sessionStorage.clear();const v=await caches.keys();for(const y of v)await caches.open(y).then(async w=>{const x=await w.keys();return await Promise.all(x.map(P=>(console.log("del cache : ",P.url),w.delete(P))))})};return{sysConfig:n,getSysConfig:i,getUserToken:a,checkUserToken:d,saveUserToken:u,resetCache:async()=>{st.set(t,"",-1),st.set(r,"",-1),st.set(o,"",-1),await h()},setAuthKey:f}},{persist:{key:"user-store",storage:localStorage,paths:[]}}),Gp=ye("div",{class:"text-3xl py-2"},"设置用户",-1),Xp=ye("div",{class:"text-xl py-2"},"将删除包括 Cookie 等的所有缓存?",-1),Yp=q({__name:"ChatNav",setup(e){const t=M(!1),r=M(!1),o=M(""),n=Pt(),i=At(),{isShowPromptSotre:l}=ot(i),s=M(!1),a=M(!1),d=uo(),{isShowChatServiceSelectModal:u}=ot(d),f=Ri(),h={github:"github",version:"version",chatService:"chatService",promptStore:"promptStore",setToken:"setToken",compose:"compose",createImage:"createImage",reset:"reset"},p=[{key:h.github,label:"开源地址",url:"https://github.com/adams549659584/go-proxy-bingai"},{key:h.version,label:"版本信息"},{key:h.chatService,label:"服务选择"},{key:h.promptStore,label:"提示词库"},{key:h.setToken,label:"设置用户"},{key:h.compose,label:"撰写文章",url:"/web/compose.html"},{key:h.createImage,label:"图像创建"},{key:h.reset,label:"一键重置"}],v=P=>c(Ap,{navConfig:P}),y=P=>{var k;switch(P){case h.version:n.success("当前版本号为:1.8.1");break;case h.chatService:u.value=!0,d.checkAllSydneyConfig();break;case h.promptStore:l.value=!0;break;case h.setToken:o.value=f.getUserToken(),r.value=!0;break;case h.createImage:!((k=f.sysConfig)!=null&&k.isSysCK)&&!f.getUserToken()&&n.warning("体验画图功能需先登录"),a.value=!0;break;case h.reset:s.value=!0;break}},w=async()=>{s.value=!1,await f.resetCache(),n.success("清理完成"),window.location.reload()},x=()=>{if(!o.value){n.warning("请先填入用户 Cookie");return}f.saveUserToken(o.value),r.value=!1};return(P,k)=>(oe(),Se(Ve,null,[E(_i)()?(oe(),Pe(E(on),{key:0,class:"select-none",show:t.value,options:p,"render-label":v,onSelect:y},{default:Y(()=>[G(E(Lr),{class:"fixed top-6 right-4 cursor-pointer",src:E(dn),alt:"设置菜单","preview-disabled":!0,onClick:k[0]||(k[0]=b=>t.value=!t.value)},null,8,["src"])]),_:1},8,["show"])):(oe(),Pe(E(on),{key:1,class:"select-none",trigger:"hover",options:p,"render-label":v,onSelect:y},{default:Y(()=>[G(E(Lr),{class:"fixed top-6 right-6 cursor-pointer",src:E(dn),alt:"设置菜单","preview-disabled":!0},null,8,["src"])]),_:1})),G(E(ut),{show:r.value,"onUpdate:show":k[3]||(k[3]=b=>r.value=b),preset:"dialog","show-icon":!1},{header:Y(()=>[Gp]),action:Y(()=>[G(E(ce),{size:"large",onClick:k[2]||(k[2]=b=>r.value=!1)},{default:Y(()=>[de("取消")]),_:1}),G(E(ce),{ghost:"",size:"large",type:"info",onClick:x},{default:Y(()=>[de("保存")]),_:1})]),default:Y(()=>[G(E(et),{size:"large",value:o.value,"onUpdate:value":k[1]||(k[1]=b=>o.value=b),type:"text",placeholder:"用户 Cookie ,仅需要 _U 的值"},null,8,["value"])]),_:1},8,["show"]),G(E(ut),{show:s.value,"onUpdate:show":k[5]||(k[5]=b=>s.value=b),preset:"dialog","show-icon":!1},{header:Y(()=>[Xp]),action:Y(()=>[G(E(ce),{size:"large",onClick:k[4]||(k[4]=b=>s.value=!1)},{default:Y(()=>[de("取消")]),_:1}),G(E(ce),{ghost:"",size:"large",type:"error",onClick:w},{default:Y(()=>[de("确定")]),_:1})]),_:1},8,["show"]),G(Up,{show:a.value,"onUpdate:show":k[6]||(k[6]=b=>a.value=b)},null,8,["show"])],64))}});function un(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function qt(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,o=new Array(t);rthis.range.start)){var o=Math.max(r-this.param.buffer,0);this.checkRange(o,this.getEndByStart(o))}}},{key:"handleBehind",value:function(){var r=this.getScrollOvers();rr&&(l=n-1)}return o>0?--o:0}},{key:"getIndexOffset",value:function(r){if(!r)return 0;for(var o=0,n=0,i=0;i=H&&o("tobottom")},x=function(C){var T=p(),H=v(),N=y();T<0||T+H>N+1||!N||(f.handleScroll(T),w(T,H,N,C))},P=function(){var C=t.dataKey,T=t.dataSources,H=T===void 0?[]:T;return H.map(function(N){return typeof C=="function"?C(N):N[C]})},k=function(C){a.value=C},b=function(){f=new iv({slotHeaderSize:0,slotFooterSize:0,keeps:t.keeps,estimateSize:t.estimateSize,buffer:Math.round(t.keeps/3),uniqueIds:P()},k),a.value=f.getRange()},m=function(C){if(C>=t.dataSources.length-1)_();else{var T=f.getOffset(C);R(T)}},R=function(C){t.pageMode?(document.body[s]=C,document.documentElement[s]=C):d.value&&(d.value[s]=C)},$=function(){for(var C=[],T=a.value,H=T.start,N=T.end,X=t.dataSources,te=t.dataKey,ge=t.itemClass,W=t.itemTag,Q=t.itemStyle,se=t.extraProps,ie=t.dataComponent,we=t.itemScopedSlots,Ce=H;Ce<=N;Ce++){var re=X[Ce];if(re){var Le=typeof te=="function"?te(re):re[te];typeof Le=="string"||typeof Le=="number"?C.push(G(dv,{index:Ce,tag:W,event:Mt.ITEM,horizontal:l,uniqueKey:Le,source:re,extraProps:se,component:ie,scopedSlots:we,style:Q,class:"".concat(ge).concat(t.itemClassAdd?" "+t.itemClassAdd(Ce):""),onItemResize:A},null)):console.warn("Cannot get the data-key '".concat(te,"' from data-sources."))}else console.warn("Cannot get the index '".concat(Ce,"' from data-sources."))}return C},A=function(C,T){f.saveSize(C,T),o("resized",C,T)},z=function(C,T,H){C===mt.HEADER?f.updateParam("slotHeaderSize",T):C===mt.FOOTER&&f.updateParam("slotFooterSize",T),H&&f.handleSlotSizeChange()},_=function O(){if(u.value){var C=u.value[l?"offsetLeft":"offsetTop"];R(C),setTimeout(function(){p()+v(){o.value=o.value.filter(a=>a.act!==s.act&&a.prompt!==s.prompt),t.success("删除提示词成功")},l=s=>{n.value.isShow=!0,n.value.type="edit",n.value.title="编辑提示词",n.value.tmpPrompt=s,n.value.newPrompt={...s}};return(s,a)=>(oe(),Pe(E(Si),{class:"hover:bg-gray-100 cursor-pointer p-5"},{description:Y(()=>[G(E(er),{type:"info"},{default:Y(()=>[ye("span",cv,Ue(s.source.act),1)]),_:1}),ye("div",uv,[G(E(ce),{secondary:"",type:"info",size:"small",onClick:a[0]||(a[0]=d=>l(s.source))},{default:Y(()=>[de("编辑")]),_:1}),G(E(ce),{secondary:"",class:"ml-2",type:"error",size:"small",onClick:a[1]||(a[1]=d=>i(s.source))},{default:Y(()=>[de("删除")]),_:1})])]),default:Y(()=>[G(E(hi),{tooltip:!1,"line-clamp":2},{default:Y(()=>[de(Ue(s.source.prompt),1)]),_:1})]),_:1}))}}),hv={class:"flex justify-start flex-wrap gap-2 px-5 pb-2"},pv=["href"],vv={class:"flex justify-center gap-5"},gv=["href"],mv=q({__name:"ChatPromptStore",setup(e){const t=Pt(),r=At(),{promptDownloadConfig:o,isShowPromptSotre:n,promptList:i,keyword:l,searchPromptList:s,optPromptConfig:a}=ot(r),d=M(!1),u=M(!1),f=M(!1),h=()=>{a.value.isShow=!0,a.value.type="add",a.value.title="添加提示词",a.value.newPrompt={act:"",prompt:""}},p=()=>{const{type:k,tmpPrompt:b,newPrompt:m}=a.value;if(!m.act)return t.error("提示词标题不能为空");if(!m.prompt)return t.error("提示词描述不能为空");if(k==="add")i.value=[m,...i.value],t.success("添加提示词成功");else if(k==="edit"){if(m.act===(b==null?void 0:b.act)&&m.prompt===(b==null?void 0:b.prompt)){t.warning("提示词未变更"),a.value.isShow=!1;return}const R=i.value.findIndex($=>$.act===(b==null?void 0:b.act)&&$.prompt===(b==null?void 0:b.prompt));R>-1?(i.value[R]=m,t.success("编辑提示词成功")):t.error("编辑提示词出错")}a.value.isShow=!1},v=k=>new Promise((b,m)=>{const R=new FileReader;R.onload=function($){var A;b((A=$.target)==null?void 0:A.result)},R.onerror=m,R.readAsText(k)}),y=async k=>{var b;if(k.file.file){u.value=!0;const m=await v(k.file.file),R=JSON.parse(m),$=r.addPrompt(R);$.result?(t.info(`上传文件含 ${R.length} 条数据`),t.success(`成功导入 ${(b=$.data)==null?void 0:b.successCount} 条有效数据`)):t.error($.msg||"提示词格式有误"),u.value=!1}else t.error("上传文件有误")},w=()=>{if(i.value.length===0)return t.error("暂无可导出的提示词数据");f.value=!0;const k=JSON.stringify(i.value),b=new Blob([k],{type:"application/json"}),m=URL.createObjectURL(b),R=document.createElement("a");R.href=m,R.download="BingAIPrompts.json",R.click(),URL.revokeObjectURL(m),t.success("导出提示词库成功"),f.value=!1},x=()=>{i.value=[],t.success("清空提示词库成功")},P=async k=>{var R;if(!k.url)return t.error("请先输入下载链接");k.isDownloading=!0;let b;if(k.url.endsWith(".json"))b=await fetch(k.url).then($=>$.json());else if(k.url.endsWith(".csv")){const $=await fetch(k.url).then(A=>A.text());console.log($),b=$.split(` `).filter(A=>A).map(A=>{var _;const z=A.split('","');return{act:z[0].slice(1),prompt:(_=z[1])==null?void 0:_.slice(1)}}),b.shift()}else return k.isDownloading=!1,t.error("暂不支持下载此后缀的提示词");k.isDownloading=!1;const m=r.addPrompt(b);m.result?(t.info(`下载文件含 ${b.length} 条数据`),t.success(`成功导入 ${(R=m.data)==null?void 0:R.successCount} 条有效数据`)):t.error(m.msg||"提示词格式有误")};return(k,b)=>(oe(),Se(Ve,null,[G(E(ut),{class:"w-11/12 xl:w-[900px]",show:E(n),"onUpdate:show":b[3]||(b[3]=m=>zr(n)?n.value=m:null),preset:"card",title:"提示词库"},{default:Y(()=>[ye("div",hv,[G(E(et),{class:"basis-full xl:basis-0 xl:min-w-[300px]",placeholder:"搜索提示词",value:E(l),"onUpdate:value":b[0]||(b[0]=m=>zr(l)?l.value=m:null),clearable:!0},null,8,["value"]),G(E(ce),{secondary:"",type:"info",onClick:b[1]||(b[1]=m=>d.value=!0)},{default:Y(()=>[de("下载")]),_:1}),G(E(ce),{secondary:"",type:"info",onClick:h},{default:Y(()=>[de("添加")]),_:1}),G(E(Bp),{class:"w-[56px] xl:w-auto",accept:".json","default-upload":!1,"show-file-list":!1,onChange:y},{default:Y(()=>[G(E(ce),{secondary:"",type:"success",loading:u.value},{default:Y(()=>[de("导入")]),_:1},8,["loading"])]),_:1}),G(E(ce),{secondary:"",type:"success",onClick:w,loading:f.value},{default:Y(()=>[de("导出")]),_:1},8,["loading"]),G(E(ce),{secondary:"",type:"error",onClick:x},{default:Y(()=>[de("清空")]),_:1})]),E(s).length>0?(oe(),Pe(E(Mi),{key:0,class:"h-[40vh] xl:h-[60vh] overflow-y-auto","data-key":"prompt","data-sources":E(s),"data-component":fv,keeps:10},null,8,["data-sources"])):(oe(),Pe(E(io),{key:1,class:"h-[40vh] xl:h-[60vh] flex justify-center items-center",description:"暂无数据"},{extra:Y(()=>[G(E(ce),{secondary:"",type:"info",onClick:b[2]||(b[2]=m=>d.value=!0)},{default:Y(()=>[de("下载提示词")]),_:1})]),_:1}))]),_:1},8,["show"]),G(E(ut),{class:"w-11/12 xl:w-[600px]",show:E(a).isShow,"onUpdate:show":b[6]||(b[6]=m=>E(a).isShow=m),preset:"card",title:E(a).title},{default:Y(()=>[G(E(fh),{vertical:""},{default:Y(()=>[de(" 标题 "),G(E(et),{placeholder:"请输入标题",value:E(a).newPrompt.act,"onUpdate:value":b[4]||(b[4]=m=>E(a).newPrompt.act=m)},null,8,["value"]),de(" 描述 "),G(E(et),{placeholder:"请输入描述",type:"textarea",value:E(a).newPrompt.prompt,"onUpdate:value":b[5]||(b[5]=m=>E(a).newPrompt.prompt=m)},null,8,["value"]),G(E(ce),{block:"",secondary:"",type:"info",onClick:p},{default:Y(()=>[de("保存")]),_:1})]),_:1})]),_:1},8,["show","title"]),G(E(ut),{class:"w-11/12 xl:w-[600px]",show:d.value,"onUpdate:show":b[7]||(b[7]=m=>d.value=m),preset:"card",title:"下载提示词"},{default:Y(()=>[G(E(Uh),{class:"overflow-y-auto rounded-lg",hoverable:"",clickable:""},{default:Y(()=>[(oe(!0),Se(Ve,null,On(E(o),(m,R)=>(oe(),Pe(E(Wh),{key:R},{suffix:Y(()=>[ye("div",vv,[m.type===1?(oe(),Se("a",{key:0,class:"no-underline",href:m.refer,target:"_blank",rel:"noopener noreferrer"},[G(E(ce),{secondary:""},{default:Y(()=>[de("来源")]),_:1})],8,gv)):Qe("",!0),G(E(ce),{secondary:"",type:"info",onClick:$=>P(m),loading:m.isDownloading},{default:Y(()=>[de("下载")]),_:2},1032,["onClick","loading"])])]),default:Y(()=>[m.type===1?(oe(),Se("a",{key:0,class:"no-underline text-blue-500",href:m.url,target:"_blank",rel:"noopener noreferrer"},Ue(m.name),9,pv)):m.type===2?(oe(),Pe(E(et),{key:1,placeholder:"请输入下载链接,支持 json 及 csv ",value:m.url,"onUpdate:value":$=>m.url=$},null,8,["value","onUpdate:value"])):Qe("",!0)]),_:2},1024))),128))]),_:1})]),_:1},8,["show"])],64))}}),bv=`/* 移除顶部背景遮挡 */\r .scroller>.top {\r diff --git a/web/assets/index-0d955cfa.js b/web/assets/index-2d8e434e.js similarity index 99% rename from web/assets/index-0d955cfa.js rename to web/assets/index-2d8e434e.js index 3379adb082..dfd80ba37f 100644 --- a/web/assets/index-0d955cfa.js +++ b/web/assets/index-2d8e434e.js @@ -648,4 +648,4 @@ ${t} * vue-router v4.2.0 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const Rn=typeof window<"u";function Ay(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ye=Object.assign;function ri(e,t){const n={};for(const r in t){const o=t[r];n[r]=ft(o)?o.map(e):e(o)}return n}const gr=()=>{},ft=Array.isArray,ky=/\/$/,By=e=>e.replace(ky,"");function oi(e,t,n="/"){let r,o={},i="",s="";const l=t.indexOf("#");let a=t.indexOf("?");return l=0&&(a=-1),a>-1&&(r=t.slice(0,a),i=t.slice(a+1,l>-1?l:t.length),o=e(i)),l>-1&&(r=r||t.slice(0,l),s=t.slice(l,t.length)),r=Ly(r??t,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:s}}function My(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function pa(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Hy(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Fn(t.matched[r],n.matched[o])&&af(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Fn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function af(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Fy(e[n],t[n]))return!1;return!0}function Fy(e,t){return ft(e)?ga(e,t):ft(t)?ga(t,e):e===t}function ga(e,t){return ft(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Ly(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,s,l;for(s=0;s1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var Ir;(function(e){e.pop="pop",e.push="push"})(Ir||(Ir={}));var vr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(vr||(vr={}));function jy(e){if(!e)if(Rn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),By(e)}const Dy=/^[^#]+#/;function Ny(e,t){return e.replace(Dy,"#")+t}function Wy(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Do=()=>({left:window.pageXOffset,top:window.pageYOffset});function Uy(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Wy(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function va(e,t){return(history.state?history.state.position-t:-1)+e}const ki=new Map;function Ky(e,t){ki.set(e,t)}function Vy(e){const t=ki.get(e);return ki.delete(e),t}let qy=()=>location.protocol+"//"+location.host;function cf(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let l=o.includes(e.slice(i))?e.slice(i).length:1,a=o.slice(l);return a[0]!=="/"&&(a="/"+a),pa(a,"")}return pa(n,e)+r+o}function Gy(e,t,n,r){let o=[],i=[],s=null;const l=({state:d})=>{const v=cf(e,location),p=n.value,w=t.value;let y=0;if(d){if(n.value=v,t.value=d,s&&s===p){s=null;return}y=w?d.position-w.position:0}else r(v);o.forEach(b=>{b(n.value,p,{delta:y,type:Ir.pop,direction:y?y>0?vr.forward:vr.back:vr.unknown})})};function a(){s=n.value}function c(d){o.push(d);const v=()=>{const p=o.indexOf(d);p>-1&&o.splice(p,1)};return i.push(v),v}function u(){const{history:d}=window;d.state&&d.replaceState(ye({},d.state,{scroll:Do()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:a,listen:c,destroy:f}}function ma(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Do():null}}function Xy(e){const{history:t,location:n}=window,r={value:cf(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:qy()+e+a;try{t[u?"replaceState":"pushState"](c,"",d),o.value=c}catch(v){console.error(v),n[u?"replace":"assign"](d)}}function s(a,c){const u=ye({},t.state,ma(o.value.back,a,o.value.forward,!0),c,{position:o.value.position});i(a,u,!0),r.value=a}function l(a,c){const u=ye({},o.value,t.state,{forward:a,scroll:Do()});i(u.current,u,!0);const f=ye({},ma(r.value,a,null),{position:u.position+1},c);i(a,f,!1),r.value=a}return{location:r,state:o,push:l,replace:s}}function Yy(e){e=jy(e);const t=Xy(e),n=Gy(e,t.state,t.location,t.replace);function r(i,s=!0){s||n.pauseListeners(),history.go(i)}const o=ye({location:"",base:e,go:r,createHref:Ny.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Zy(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Yy(e)}function Jy(e){return typeof e=="string"||e&&typeof e=="object"}function uf(e){return typeof e=="string"||typeof e=="symbol"}const Lt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ff=Symbol("");var ba;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ba||(ba={}));function Ln(e,t){return ye(new Error,{type:e,[ff]:!0},t)}function Et(e,t){return e instanceof Error&&ff in e&&(t==null||!!(e.type&t))}const ya="[^/]+?",Qy={sensitive:!1,strict:!1,start:!0,end:!0},ex=/[.+*?^${}()[\]/\\]/g;function tx(e,t){const n=ye({},Qy,t),r=[];let o=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function rx(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const ox={type:0,value:""},ix=/[a-zA-Z0-9_]/;function sx(e){if(!e)return[[]];if(e==="/")return[[ox]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${c}": ${v}`)}let n=0,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let l=0,a,c="",u="";function f(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=a}for(;l{s(S)}:gr}function s(u){if(uf(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(s),f.alias.forEach(s))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(s),u.alias.forEach(s))}}function l(){return n}function a(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!df(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!wa(u)&&r.set(u.record.name,u)}function c(u,f){let d,v={},p,w;if("name"in u&&u.name){if(d=r.get(u.name),!d)throw Ln(1,{location:u});w=d.record.name,v=ye(Ca(f.params,d.keys.filter(S=>!S.optional).map(S=>S.name)),u.params&&Ca(u.params,d.keys.map(S=>S.name))),p=d.stringify(v)}else if("path"in u)p=u.path,d=n.find(S=>S.re.test(p)),d&&(v=d.parse(p),w=d.record.name);else{if(d=f.name?r.get(f.name):n.find(S=>S.re.test(f.path)),!d)throw Ln(1,{location:u,currentLocation:f});w=d.record.name,v=ye({},f.params,u.params),p=d.stringify(v)}const y=[];let b=d;for(;b;)y.unshift(b.record),b=b.parent;return{name:w,path:p,params:v,matched:y,meta:fx(y)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:s,getRoutes:l,getRecordMatcher:o}}function Ca(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function cx(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:ux(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function ux(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function wa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function fx(e){return e.reduce((t,n)=>ye(t,n.meta),{})}function Sa(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function df(e,t){return t.children.some(n=>n===e||df(e,n))}const hf=/#/g,dx=/&/g,hx=/\//g,px=/=/g,gx=/\?/g,pf=/\+/g,vx=/%5B/g,mx=/%5D/g,gf=/%5E/g,bx=/%60/g,vf=/%7B/g,yx=/%7C/g,mf=/%7D/g,xx=/%20/g;function Es(e){return encodeURI(""+e).replace(yx,"|").replace(vx,"[").replace(mx,"]")}function Cx(e){return Es(e).replace(vf,"{").replace(mf,"}").replace(gf,"^")}function Bi(e){return Es(e).replace(pf,"%2B").replace(xx,"+").replace(hf,"%23").replace(dx,"%26").replace(bx,"`").replace(vf,"{").replace(mf,"}").replace(gf,"^")}function wx(e){return Bi(e).replace(px,"%3D")}function Sx(e){return Es(e).replace(hf,"%23").replace(gx,"%3F")}function _x(e){return e==null?"":Sx(e).replace(hx,"%2F")}function yo(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Ex(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;oi&&Bi(i)):[r&&Bi(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function $x(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ft(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const Px=Symbol(""),Ea=Symbol(""),$s=Symbol(""),bf=Symbol(""),Mi=Symbol("");function nr(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Wt(e,t,n,r,o){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((s,l)=>{const a=f=>{f===!1?l(Ln(4,{from:n,to:t})):f instanceof Error?l(f):Jy(f)?l(Ln(2,{from:t,to:f})):(i&&r.enterCallbacks[o]===i&&typeof f=="function"&&i.push(f),s())},c=e.call(r&&r.instances[o],t,n,a);let u=Promise.resolve(c);e.length<3&&(u=u.then(a)),u.catch(f=>l(f))})}function ii(e,t,n,r){const o=[];for(const i of e)for(const s in i.components){let l=i.components[s];if(!(t!=="beforeRouteEnter"&&!i.instances[s]))if(Rx(l)){const c=(l.__vccOpts||l)[t];c&&o.push(Wt(c,n,r,i,s))}else{let a=l();o.push(()=>a.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${i.path}"`));const u=Ay(c)?c.default:c;i.components[s]=u;const d=(u.__vccOpts||u)[t];return d&&Wt(d,n,r,i,s)()}))}}return o}function Rx(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function $a(e){const t=ze($s),n=ze(bf),r=V(()=>t.resolve(Ct(e.to))),o=V(()=>{const{matched:a}=r.value,{length:c}=a,u=a[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(Fn.bind(null,u));if(d>-1)return d;const v=Pa(a[c-2]);return c>1&&Pa(u)===v&&f[f.length-1].path!==v?f.findIndex(Fn.bind(null,a[c-2])):d}),i=V(()=>o.value>-1&&Ix(n.params,r.value.params)),s=V(()=>o.value>-1&&o.value===n.matched.length-1&&af(n.params,r.value.params));function l(a={}){return zx(a)?t[Ct(e.replace)?"replace":"push"](Ct(e.to)).catch(gr):Promise.resolve()}return{route:r,href:V(()=>r.value.href),isActive:i,isExactActive:s,navigate:l}}const Tx=Ee({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:$a,setup(e,{slots:t}){const n=Xt($a(e)),{options:r}=ze($s),o=V(()=>({[Ra(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ra(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:E("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),Ox=Tx;function zx(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ix(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!ft(o)||o.length!==r.length||r.some((i,s)=>i!==o[s]))return!1}return!0}function Pa(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ra=(e,t,n)=>e??t??n,Ax=Ee({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ze(Mi),o=V(()=>e.route||r.value),i=ze(Ea,0),s=V(()=>{let c=Ct(i);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),l=V(()=>o.value.matched[s.value]);qe(Ea,V(()=>s.value+1)),qe(Px,l),qe(Mi,o);const a=se();return ut(()=>[a.value,l.value,e.name],([c,u,f],[d,v,p])=>{u&&(u.instances[f]=c,v&&v!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=v.leaveGuards),u.updateGuards.size||(u.updateGuards=v.updateGuards))),c&&u&&(!v||!Fn(u,v)||!d)&&(u.enterCallbacks[f]||[]).forEach(w=>w(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,f=l.value,d=f&&f.components[u];if(!d)return Ta(n.default,{Component:d,route:c});const v=f.props[u],p=v?v===!0?c.params:typeof v=="function"?v(c):v:null,y=E(d,ye({},p,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(f.instances[u]=null)},ref:a}));return Ta(n.default,{Component:y,route:c})||y}}});function Ta(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const yf=Ax;function kx(e){const t=ax(e.routes,e),n=e.parseQuery||Ex,r=e.stringifyQuery||_a,o=e.history,i=nr(),s=nr(),l=nr(),a=ud(Lt);let c=Lt;Rn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ri.bind(null,R=>""+R),f=ri.bind(null,_x),d=ri.bind(null,yo);function v(R,U){let I,X;return uf(R)?(I=t.getRecordMatcher(R),X=U):X=R,t.addRoute(X,I)}function p(R){const U=t.getRecordMatcher(R);U&&t.removeRoute(U)}function w(){return t.getRoutes().map(R=>R.record)}function y(R){return!!t.getRecordMatcher(R)}function b(R,U){if(U=ye({},U||a.value),typeof R=="string"){const x=oi(n,R,U.path),$=t.resolve({path:x.path},U),O=o.createHref(x.fullPath);return ye(x,$,{params:d($.params),hash:yo(x.hash),redirectedFrom:void 0,href:O})}let I;if("path"in R)I=ye({},R,{path:oi(n,R.path,U.path).path});else{const x=ye({},R.params);for(const $ in x)x[$]==null&&delete x[$];I=ye({},R,{params:f(x)}),U.params=f(U.params)}const X=t.resolve(I,U),pe=R.hash||"";X.params=u(d(X.params));const h=My(r,ye({},R,{hash:Cx(pe),path:X.path})),g=o.createHref(h);return ye({fullPath:h,hash:pe,query:r===_a?$x(R.query):R.query||{}},X,{redirectedFrom:void 0,href:g})}function S(R){return typeof R=="string"?oi(n,R,a.value.path):ye({},R)}function F(R,U){if(c!==R)return Ln(8,{from:U,to:R})}function _(R){return m(R)}function P(R){return _(ye(S(R),{replace:!0}))}function z(R){const U=R.matched[R.matched.length-1];if(U&&U.redirect){const{redirect:I}=U;let X=typeof I=="function"?I(R):I;return typeof X=="string"&&(X=X.includes("?")||X.includes("#")?X=S(X):{path:X},X.params={}),ye({query:R.query,hash:R.hash,params:"path"in X?{}:R.params},X)}}function m(R,U){const I=c=b(R),X=a.value,pe=R.state,h=R.force,g=R.replace===!0,x=z(I);if(x)return m(ye(S(x),{state:typeof x=="object"?ye({},pe,x.state):pe,force:h,replace:g}),U||I);const $=I;$.redirectedFrom=U;let O;return!h&&Hy(r,X,I)&&(O=Ln(16,{to:$,from:X}),Se(X,X,!0,!1)),(O?Promise.resolve(O):j($,X)).catch(B=>Et(B)?Et(B,2)?B:we(B):re(B,$,X)).then(B=>{if(B){if(Et(B,2))return m(ye({replace:g},S(B.to),{state:typeof B.to=="object"?ye({},pe,B.to.state):pe,force:h}),U||$)}else B=k($,X,!0,g,pe);return W($,X,B),B})}function C(R,U){const I=F(R,U);return I?Promise.reject(I):Promise.resolve()}function A(R){const U=ht.values().next().value;return U&&typeof U.runWithContext=="function"?U.runWithContext(R):R()}function j(R,U){let I;const[X,pe,h]=Bx(R,U);I=ii(X.reverse(),"beforeRouteLeave",R,U);for(const x of X)x.leaveGuards.forEach($=>{I.push(Wt($,R,U))});const g=C.bind(null,R,U);return I.push(g),fe(I).then(()=>{I=[];for(const x of i.list())I.push(Wt(x,R,U));return I.push(g),fe(I)}).then(()=>{I=ii(pe,"beforeRouteUpdate",R,U);for(const x of pe)x.updateGuards.forEach($=>{I.push(Wt($,R,U))});return I.push(g),fe(I)}).then(()=>{I=[];for(const x of R.matched)if(x.beforeEnter&&!U.matched.includes(x))if(ft(x.beforeEnter))for(const $ of x.beforeEnter)I.push(Wt($,R,U));else I.push(Wt(x.beforeEnter,R,U));return I.push(g),fe(I)}).then(()=>(R.matched.forEach(x=>x.enterCallbacks={}),I=ii(h,"beforeRouteEnter",R,U),I.push(g),fe(I))).then(()=>{I=[];for(const x of s.list())I.push(Wt(x,R,U));return I.push(g),fe(I)}).catch(x=>Et(x,8)?x:Promise.reject(x))}function W(R,U,I){for(const X of l.list())A(()=>X(R,U,I))}function k(R,U,I,X,pe){const h=F(R,U);if(h)return h;const g=U===Lt,x=Rn?history.state:{};I&&(X||g?o.replace(R.fullPath,ye({scroll:g&&x&&x.scroll},pe)):o.push(R.fullPath,pe)),a.value=R,Se(R,U,I,g),we()}let Q;function te(){Q||(Q=o.listen((R,U,I)=>{if(!Xe.listening)return;const X=b(R),pe=z(X);if(pe){m(ye(pe,{replace:!0}),X).catch(gr);return}c=X;const h=a.value;Rn&&Ky(va(h.fullPath,I.delta),Do()),j(X,h).catch(g=>Et(g,12)?g:Et(g,2)?(m(g.to,X).then(x=>{Et(x,20)&&!I.delta&&I.type===Ir.pop&&o.go(-1,!1)}).catch(gr),Promise.reject()):(I.delta&&o.go(-I.delta,!1),re(g,X,h))).then(g=>{g=g||k(X,h,!1),g&&(I.delta&&!Et(g,8)?o.go(-I.delta,!1):I.type===Ir.pop&&Et(g,20)&&o.go(-1,!1)),W(X,h,g)}).catch(gr)}))}let ne=nr(),oe=nr(),K;function re(R,U,I){we(R);const X=oe.list();return X.length?X.forEach(pe=>pe(R,U,I)):console.error(R),Promise.reject(R)}function Ce(){return K&&a.value!==Lt?Promise.resolve():new Promise((R,U)=>{ne.add([R,U])})}function we(R){return K||(K=!R,te(),ne.list().forEach(([U,I])=>R?I(R):U()),ne.reset()),R}function Se(R,U,I,X){const{scrollBehavior:pe}=e;if(!Rn||!pe)return Promise.resolve();const h=!I&&Vy(va(R.fullPath,0))||(X||!I)&&history.state&&history.state.scroll||null;return Bn().then(()=>pe(R,U,h)).then(g=>g&&Uy(g)).catch(g=>re(g,R,U))}const Te=R=>o.go(R);let rt;const ht=new Set,Xe={currentRoute:a,listening:!0,addRoute:v,removeRoute:p,hasRoute:y,getRoutes:w,resolve:b,options:e,push:_,replace:P,go:Te,back:()=>Te(-1),forward:()=>Te(1),beforeEach:i.add,beforeResolve:s.add,afterEach:l.add,onError:oe.add,isReady:Ce,install(R){const U=this;R.component("RouterLink",Ox),R.component("RouterView",yf),R.config.globalProperties.$router=U,Object.defineProperty(R.config.globalProperties,"$route",{enumerable:!0,get:()=>Ct(a)}),Rn&&!rt&&a.value===Lt&&(rt=!0,_(o.location).catch(pe=>{}));const I={};for(const pe in Lt)I[pe]=V(()=>a.value[pe]);R.provide($s,U),R.provide(bf,Xt(I)),R.provide(Mi,a);const X=R.unmount;ht.add(R),R.unmount=function(){ht.delete(R),ht.size<1&&(c=Lt,Q&&Q(),Q=null,a.value=Lt,rt=!1,K=!1),X()}}};function fe(R){return R.reduce((U,I)=>U.then(()=>A(I)),Promise.resolve())}return Xe}function Bx(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sFn(c,l))?r.push(l):n.push(l));const a=e.matched[s];a&&(t.matched.find(c=>Fn(c,a))||o.push(a))}return[n,r,o]}const Mx=Ee({__name:"App",setup(e){const t={common:{primaryColor:"#2080F0FF",primaryColorHover:"#4098FCFF",primaryColorPressed:"#1060C9FF",primaryColorSuppl:"#4098FCFF"}};return(n,r)=>(is(),ss(Ct(ty),{"theme-overrides":t},{default:ro(()=>[Fe(Ct(xy),null,{default:ro(()=>[Fe(Ct(Iy),null,{default:ro(()=>[Fe(Ct(yf))]),_:1})]),_:1})]),_:1}))}}),Hx="modulepreload",Fx=function(e){return"/web/"+e},Oa={},Lx=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=Fx(i),i in Oa)return;Oa[i]=!0;const s=i.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!r)for(let u=o.length-1;u>=0;u--){const f=o[u];if(f.href===i&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${l}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":Hx,s||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),s)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},jx=kx({history:Zy("/web"),routes:[{path:"/",name:"chat",component:()=>Lx(()=>import("./index-42c5a3ca.js"),["assets/index-42c5a3ca.js","assets/index-0e8bf8a6.css"])}]}),Ps=Xh(Mx);cp(Ps);Ps.use(jx);Ps.mount("#app");export{wu as $,ou as A,E as B,Hp as C,cg as D,Bn as E,ms as F,Un as G,Mm as H,Su as I,ys as J,Bm as K,hg as L,vo as M,tv as N,Vn as O,hb as P,hv as Q,Mr as R,Ou as S,Hn as T,Bo as U,aa as V,$u as W,qn as X,Ru as Y,Kn as Z,xn as _,dt as a,ds as a$,Cu as a0,Ri as a1,xu as a2,c0 as a3,nv as a4,mn as a5,Hr as a6,Xn as a7,xe as a8,G as a9,Lo as aA,ws as aB,bl as aC,bo as aD,Fo as aE,xs as aF,vl as aG,Gu as aH,Qx as aI,L0 as aJ,Dg as aK,O0 as aL,Ll as aM,up as aN,Br as aO,r1 as aP,fs as aQ,hc as aR,go as aS,tn as aT,z0 as aU,wi as aV,Zx as aW,Yx as aX,Qu as aY,Zu as aZ,Ni as a_,D as aa,wn as ab,nt as ac,Gn as ad,Cs as ae,ie as af,_i as ag,de as ah,t1 as ai,Qi as aj,Gt as ak,ig as al,cl as am,us as an,Cp as ao,Hg as ap,as as aq,yt as ar,Me as as,o1 as at,xp as au,It as av,Er as aw,po as ax,un as ay,Vr as az,Xt as b,Zc as b0,Wp as b1,yp as b2,Ey as b3,Ku as b4,Uu as b5,Vu as b6,Ai as b7,qu as b8,ha as b9,H0 as ba,Ec as bb,Gx as bc,is as bd,Kx as be,Dx as bf,ss as bg,ro as bh,Tc as bi,Fe as bj,qx as bk,Ct as bl,vy as bm,Xx as bn,dc as bo,vc as bp,gc as bq,Oe as br,Ux as bs,Vx as bt,Wi as bu,Nx as bv,Wx as bw,V as c,yn as d,Ve as e,Ot as f,it as g,Qc as h,eu as i,Jx as j,ze as k,ng as l,tg as m,Ee as n,Yt as o,rg as p,qe as q,se as r,Ar as s,$l as t,Ei as u,fi as v,ut as w,n1 as x,ko as y,zt as z}; + */const Rn=typeof window<"u";function Ay(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ye=Object.assign;function ri(e,t){const n={};for(const r in t){const o=t[r];n[r]=ft(o)?o.map(e):e(o)}return n}const gr=()=>{},ft=Array.isArray,ky=/\/$/,By=e=>e.replace(ky,"");function oi(e,t,n="/"){let r,o={},i="",s="";const l=t.indexOf("#");let a=t.indexOf("?");return l=0&&(a=-1),a>-1&&(r=t.slice(0,a),i=t.slice(a+1,l>-1?l:t.length),o=e(i)),l>-1&&(r=r||t.slice(0,l),s=t.slice(l,t.length)),r=Ly(r??t,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:s}}function My(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function pa(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Hy(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Fn(t.matched[r],n.matched[o])&&af(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Fn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function af(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Fy(e[n],t[n]))return!1;return!0}function Fy(e,t){return ft(e)?ga(e,t):ft(t)?ga(t,e):e===t}function ga(e,t){return ft(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Ly(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,s,l;for(s=0;s1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var Ir;(function(e){e.pop="pop",e.push="push"})(Ir||(Ir={}));var vr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(vr||(vr={}));function jy(e){if(!e)if(Rn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),By(e)}const Dy=/^[^#]+#/;function Ny(e,t){return e.replace(Dy,"#")+t}function Wy(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Do=()=>({left:window.pageXOffset,top:window.pageYOffset});function Uy(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Wy(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function va(e,t){return(history.state?history.state.position-t:-1)+e}const ki=new Map;function Ky(e,t){ki.set(e,t)}function Vy(e){const t=ki.get(e);return ki.delete(e),t}let qy=()=>location.protocol+"//"+location.host;function cf(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let l=o.includes(e.slice(i))?e.slice(i).length:1,a=o.slice(l);return a[0]!=="/"&&(a="/"+a),pa(a,"")}return pa(n,e)+r+o}function Gy(e,t,n,r){let o=[],i=[],s=null;const l=({state:d})=>{const v=cf(e,location),p=n.value,w=t.value;let y=0;if(d){if(n.value=v,t.value=d,s&&s===p){s=null;return}y=w?d.position-w.position:0}else r(v);o.forEach(b=>{b(n.value,p,{delta:y,type:Ir.pop,direction:y?y>0?vr.forward:vr.back:vr.unknown})})};function a(){s=n.value}function c(d){o.push(d);const v=()=>{const p=o.indexOf(d);p>-1&&o.splice(p,1)};return i.push(v),v}function u(){const{history:d}=window;d.state&&d.replaceState(ye({},d.state,{scroll:Do()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:a,listen:c,destroy:f}}function ma(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Do():null}}function Xy(e){const{history:t,location:n}=window,r={value:cf(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:qy()+e+a;try{t[u?"replaceState":"pushState"](c,"",d),o.value=c}catch(v){console.error(v),n[u?"replace":"assign"](d)}}function s(a,c){const u=ye({},t.state,ma(o.value.back,a,o.value.forward,!0),c,{position:o.value.position});i(a,u,!0),r.value=a}function l(a,c){const u=ye({},o.value,t.state,{forward:a,scroll:Do()});i(u.current,u,!0);const f=ye({},ma(r.value,a,null),{position:u.position+1},c);i(a,f,!1),r.value=a}return{location:r,state:o,push:l,replace:s}}function Yy(e){e=jy(e);const t=Xy(e),n=Gy(e,t.state,t.location,t.replace);function r(i,s=!0){s||n.pauseListeners(),history.go(i)}const o=ye({location:"",base:e,go:r,createHref:Ny.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Zy(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Yy(e)}function Jy(e){return typeof e=="string"||e&&typeof e=="object"}function uf(e){return typeof e=="string"||typeof e=="symbol"}const Lt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ff=Symbol("");var ba;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ba||(ba={}));function Ln(e,t){return ye(new Error,{type:e,[ff]:!0},t)}function Et(e,t){return e instanceof Error&&ff in e&&(t==null||!!(e.type&t))}const ya="[^/]+?",Qy={sensitive:!1,strict:!1,start:!0,end:!0},ex=/[.+*?^${}()[\]/\\]/g;function tx(e,t){const n=ye({},Qy,t),r=[];let o=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function rx(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const ox={type:0,value:""},ix=/[a-zA-Z0-9_]/;function sx(e){if(!e)return[[]];if(e==="/")return[[ox]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${c}": ${v}`)}let n=0,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let l=0,a,c="",u="";function f(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=a}for(;l{s(S)}:gr}function s(u){if(uf(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(s),f.alias.forEach(s))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(s),u.alias.forEach(s))}}function l(){return n}function a(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!df(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!wa(u)&&r.set(u.record.name,u)}function c(u,f){let d,v={},p,w;if("name"in u&&u.name){if(d=r.get(u.name),!d)throw Ln(1,{location:u});w=d.record.name,v=ye(Ca(f.params,d.keys.filter(S=>!S.optional).map(S=>S.name)),u.params&&Ca(u.params,d.keys.map(S=>S.name))),p=d.stringify(v)}else if("path"in u)p=u.path,d=n.find(S=>S.re.test(p)),d&&(v=d.parse(p),w=d.record.name);else{if(d=f.name?r.get(f.name):n.find(S=>S.re.test(f.path)),!d)throw Ln(1,{location:u,currentLocation:f});w=d.record.name,v=ye({},f.params,u.params),p=d.stringify(v)}const y=[];let b=d;for(;b;)y.unshift(b.record),b=b.parent;return{name:w,path:p,params:v,matched:y,meta:fx(y)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:s,getRoutes:l,getRecordMatcher:o}}function Ca(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function cx(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:ux(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function ux(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function wa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function fx(e){return e.reduce((t,n)=>ye(t,n.meta),{})}function Sa(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function df(e,t){return t.children.some(n=>n===e||df(e,n))}const hf=/#/g,dx=/&/g,hx=/\//g,px=/=/g,gx=/\?/g,pf=/\+/g,vx=/%5B/g,mx=/%5D/g,gf=/%5E/g,bx=/%60/g,vf=/%7B/g,yx=/%7C/g,mf=/%7D/g,xx=/%20/g;function Es(e){return encodeURI(""+e).replace(yx,"|").replace(vx,"[").replace(mx,"]")}function Cx(e){return Es(e).replace(vf,"{").replace(mf,"}").replace(gf,"^")}function Bi(e){return Es(e).replace(pf,"%2B").replace(xx,"+").replace(hf,"%23").replace(dx,"%26").replace(bx,"`").replace(vf,"{").replace(mf,"}").replace(gf,"^")}function wx(e){return Bi(e).replace(px,"%3D")}function Sx(e){return Es(e).replace(hf,"%23").replace(gx,"%3F")}function _x(e){return e==null?"":Sx(e).replace(hx,"%2F")}function yo(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Ex(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;oi&&Bi(i)):[r&&Bi(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function $x(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ft(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const Px=Symbol(""),Ea=Symbol(""),$s=Symbol(""),bf=Symbol(""),Mi=Symbol("");function nr(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Wt(e,t,n,r,o){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((s,l)=>{const a=f=>{f===!1?l(Ln(4,{from:n,to:t})):f instanceof Error?l(f):Jy(f)?l(Ln(2,{from:t,to:f})):(i&&r.enterCallbacks[o]===i&&typeof f=="function"&&i.push(f),s())},c=e.call(r&&r.instances[o],t,n,a);let u=Promise.resolve(c);e.length<3&&(u=u.then(a)),u.catch(f=>l(f))})}function ii(e,t,n,r){const o=[];for(const i of e)for(const s in i.components){let l=i.components[s];if(!(t!=="beforeRouteEnter"&&!i.instances[s]))if(Rx(l)){const c=(l.__vccOpts||l)[t];c&&o.push(Wt(c,n,r,i,s))}else{let a=l();o.push(()=>a.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${i.path}"`));const u=Ay(c)?c.default:c;i.components[s]=u;const d=(u.__vccOpts||u)[t];return d&&Wt(d,n,r,i,s)()}))}}return o}function Rx(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function $a(e){const t=ze($s),n=ze(bf),r=V(()=>t.resolve(Ct(e.to))),o=V(()=>{const{matched:a}=r.value,{length:c}=a,u=a[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(Fn.bind(null,u));if(d>-1)return d;const v=Pa(a[c-2]);return c>1&&Pa(u)===v&&f[f.length-1].path!==v?f.findIndex(Fn.bind(null,a[c-2])):d}),i=V(()=>o.value>-1&&Ix(n.params,r.value.params)),s=V(()=>o.value>-1&&o.value===n.matched.length-1&&af(n.params,r.value.params));function l(a={}){return zx(a)?t[Ct(e.replace)?"replace":"push"](Ct(e.to)).catch(gr):Promise.resolve()}return{route:r,href:V(()=>r.value.href),isActive:i,isExactActive:s,navigate:l}}const Tx=Ee({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:$a,setup(e,{slots:t}){const n=Xt($a(e)),{options:r}=ze($s),o=V(()=>({[Ra(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ra(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:E("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),Ox=Tx;function zx(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ix(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!ft(o)||o.length!==r.length||r.some((i,s)=>i!==o[s]))return!1}return!0}function Pa(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ra=(e,t,n)=>e??t??n,Ax=Ee({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ze(Mi),o=V(()=>e.route||r.value),i=ze(Ea,0),s=V(()=>{let c=Ct(i);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),l=V(()=>o.value.matched[s.value]);qe(Ea,V(()=>s.value+1)),qe(Px,l),qe(Mi,o);const a=se();return ut(()=>[a.value,l.value,e.name],([c,u,f],[d,v,p])=>{u&&(u.instances[f]=c,v&&v!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=v.leaveGuards),u.updateGuards.size||(u.updateGuards=v.updateGuards))),c&&u&&(!v||!Fn(u,v)||!d)&&(u.enterCallbacks[f]||[]).forEach(w=>w(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,f=l.value,d=f&&f.components[u];if(!d)return Ta(n.default,{Component:d,route:c});const v=f.props[u],p=v?v===!0?c.params:typeof v=="function"?v(c):v:null,y=E(d,ye({},p,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(f.instances[u]=null)},ref:a}));return Ta(n.default,{Component:y,route:c})||y}}});function Ta(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const yf=Ax;function kx(e){const t=ax(e.routes,e),n=e.parseQuery||Ex,r=e.stringifyQuery||_a,o=e.history,i=nr(),s=nr(),l=nr(),a=ud(Lt);let c=Lt;Rn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ri.bind(null,R=>""+R),f=ri.bind(null,_x),d=ri.bind(null,yo);function v(R,U){let I,X;return uf(R)?(I=t.getRecordMatcher(R),X=U):X=R,t.addRoute(X,I)}function p(R){const U=t.getRecordMatcher(R);U&&t.removeRoute(U)}function w(){return t.getRoutes().map(R=>R.record)}function y(R){return!!t.getRecordMatcher(R)}function b(R,U){if(U=ye({},U||a.value),typeof R=="string"){const x=oi(n,R,U.path),$=t.resolve({path:x.path},U),O=o.createHref(x.fullPath);return ye(x,$,{params:d($.params),hash:yo(x.hash),redirectedFrom:void 0,href:O})}let I;if("path"in R)I=ye({},R,{path:oi(n,R.path,U.path).path});else{const x=ye({},R.params);for(const $ in x)x[$]==null&&delete x[$];I=ye({},R,{params:f(x)}),U.params=f(U.params)}const X=t.resolve(I,U),pe=R.hash||"";X.params=u(d(X.params));const h=My(r,ye({},R,{hash:Cx(pe),path:X.path})),g=o.createHref(h);return ye({fullPath:h,hash:pe,query:r===_a?$x(R.query):R.query||{}},X,{redirectedFrom:void 0,href:g})}function S(R){return typeof R=="string"?oi(n,R,a.value.path):ye({},R)}function F(R,U){if(c!==R)return Ln(8,{from:U,to:R})}function _(R){return m(R)}function P(R){return _(ye(S(R),{replace:!0}))}function z(R){const U=R.matched[R.matched.length-1];if(U&&U.redirect){const{redirect:I}=U;let X=typeof I=="function"?I(R):I;return typeof X=="string"&&(X=X.includes("?")||X.includes("#")?X=S(X):{path:X},X.params={}),ye({query:R.query,hash:R.hash,params:"path"in X?{}:R.params},X)}}function m(R,U){const I=c=b(R),X=a.value,pe=R.state,h=R.force,g=R.replace===!0,x=z(I);if(x)return m(ye(S(x),{state:typeof x=="object"?ye({},pe,x.state):pe,force:h,replace:g}),U||I);const $=I;$.redirectedFrom=U;let O;return!h&&Hy(r,X,I)&&(O=Ln(16,{to:$,from:X}),Se(X,X,!0,!1)),(O?Promise.resolve(O):j($,X)).catch(B=>Et(B)?Et(B,2)?B:we(B):re(B,$,X)).then(B=>{if(B){if(Et(B,2))return m(ye({replace:g},S(B.to),{state:typeof B.to=="object"?ye({},pe,B.to.state):pe,force:h}),U||$)}else B=k($,X,!0,g,pe);return W($,X,B),B})}function C(R,U){const I=F(R,U);return I?Promise.reject(I):Promise.resolve()}function A(R){const U=ht.values().next().value;return U&&typeof U.runWithContext=="function"?U.runWithContext(R):R()}function j(R,U){let I;const[X,pe,h]=Bx(R,U);I=ii(X.reverse(),"beforeRouteLeave",R,U);for(const x of X)x.leaveGuards.forEach($=>{I.push(Wt($,R,U))});const g=C.bind(null,R,U);return I.push(g),fe(I).then(()=>{I=[];for(const x of i.list())I.push(Wt(x,R,U));return I.push(g),fe(I)}).then(()=>{I=ii(pe,"beforeRouteUpdate",R,U);for(const x of pe)x.updateGuards.forEach($=>{I.push(Wt($,R,U))});return I.push(g),fe(I)}).then(()=>{I=[];for(const x of R.matched)if(x.beforeEnter&&!U.matched.includes(x))if(ft(x.beforeEnter))for(const $ of x.beforeEnter)I.push(Wt($,R,U));else I.push(Wt(x.beforeEnter,R,U));return I.push(g),fe(I)}).then(()=>(R.matched.forEach(x=>x.enterCallbacks={}),I=ii(h,"beforeRouteEnter",R,U),I.push(g),fe(I))).then(()=>{I=[];for(const x of s.list())I.push(Wt(x,R,U));return I.push(g),fe(I)}).catch(x=>Et(x,8)?x:Promise.reject(x))}function W(R,U,I){for(const X of l.list())A(()=>X(R,U,I))}function k(R,U,I,X,pe){const h=F(R,U);if(h)return h;const g=U===Lt,x=Rn?history.state:{};I&&(X||g?o.replace(R.fullPath,ye({scroll:g&&x&&x.scroll},pe)):o.push(R.fullPath,pe)),a.value=R,Se(R,U,I,g),we()}let Q;function te(){Q||(Q=o.listen((R,U,I)=>{if(!Xe.listening)return;const X=b(R),pe=z(X);if(pe){m(ye(pe,{replace:!0}),X).catch(gr);return}c=X;const h=a.value;Rn&&Ky(va(h.fullPath,I.delta),Do()),j(X,h).catch(g=>Et(g,12)?g:Et(g,2)?(m(g.to,X).then(x=>{Et(x,20)&&!I.delta&&I.type===Ir.pop&&o.go(-1,!1)}).catch(gr),Promise.reject()):(I.delta&&o.go(-I.delta,!1),re(g,X,h))).then(g=>{g=g||k(X,h,!1),g&&(I.delta&&!Et(g,8)?o.go(-I.delta,!1):I.type===Ir.pop&&Et(g,20)&&o.go(-1,!1)),W(X,h,g)}).catch(gr)}))}let ne=nr(),oe=nr(),K;function re(R,U,I){we(R);const X=oe.list();return X.length?X.forEach(pe=>pe(R,U,I)):console.error(R),Promise.reject(R)}function Ce(){return K&&a.value!==Lt?Promise.resolve():new Promise((R,U)=>{ne.add([R,U])})}function we(R){return K||(K=!R,te(),ne.list().forEach(([U,I])=>R?I(R):U()),ne.reset()),R}function Se(R,U,I,X){const{scrollBehavior:pe}=e;if(!Rn||!pe)return Promise.resolve();const h=!I&&Vy(va(R.fullPath,0))||(X||!I)&&history.state&&history.state.scroll||null;return Bn().then(()=>pe(R,U,h)).then(g=>g&&Uy(g)).catch(g=>re(g,R,U))}const Te=R=>o.go(R);let rt;const ht=new Set,Xe={currentRoute:a,listening:!0,addRoute:v,removeRoute:p,hasRoute:y,getRoutes:w,resolve:b,options:e,push:_,replace:P,go:Te,back:()=>Te(-1),forward:()=>Te(1),beforeEach:i.add,beforeResolve:s.add,afterEach:l.add,onError:oe.add,isReady:Ce,install(R){const U=this;R.component("RouterLink",Ox),R.component("RouterView",yf),R.config.globalProperties.$router=U,Object.defineProperty(R.config.globalProperties,"$route",{enumerable:!0,get:()=>Ct(a)}),Rn&&!rt&&a.value===Lt&&(rt=!0,_(o.location).catch(pe=>{}));const I={};for(const pe in Lt)I[pe]=V(()=>a.value[pe]);R.provide($s,U),R.provide(bf,Xt(I)),R.provide(Mi,a);const X=R.unmount;ht.add(R),R.unmount=function(){ht.delete(R),ht.size<1&&(c=Lt,Q&&Q(),Q=null,a.value=Lt,rt=!1,K=!1),X()}}};function fe(R){return R.reduce((U,I)=>U.then(()=>A(I)),Promise.resolve())}return Xe}function Bx(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sFn(c,l))?r.push(l):n.push(l));const a=e.matched[s];a&&(t.matched.find(c=>Fn(c,a))||o.push(a))}return[n,r,o]}const Mx=Ee({__name:"App",setup(e){const t={common:{primaryColor:"#2080F0FF",primaryColorHover:"#4098FCFF",primaryColorPressed:"#1060C9FF",primaryColorSuppl:"#4098FCFF"}};return(n,r)=>(is(),ss(Ct(ty),{"theme-overrides":t},{default:ro(()=>[Fe(Ct(xy),null,{default:ro(()=>[Fe(Ct(Iy),null,{default:ro(()=>[Fe(Ct(yf))]),_:1})]),_:1})]),_:1}))}}),Hx="modulepreload",Fx=function(e){return"/web/"+e},Oa={},Lx=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=Fx(i),i in Oa)return;Oa[i]=!0;const s=i.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!r)for(let u=o.length-1;u>=0;u--){const f=o[u];if(f.href===i&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${l}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":Hx,s||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),s)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},jx=kx({history:Zy("/web"),routes:[{path:"/",name:"chat",component:()=>Lx(()=>import("./index-04c94bf5.js"),["assets/index-04c94bf5.js","assets/index-0e8bf8a6.css"])}]}),Ps=Xh(Mx);cp(Ps);Ps.use(jx);Ps.mount("#app");export{wu as $,ou as A,E as B,Hp as C,cg as D,Bn as E,ms as F,Un as G,Mm as H,Su as I,ys as J,Bm as K,hg as L,vo as M,tv as N,Vn as O,hb as P,hv as Q,Mr as R,Ou as S,Hn as T,Bo as U,aa as V,$u as W,qn as X,Ru as Y,Kn as Z,xn as _,dt as a,ds as a$,Cu as a0,Ri as a1,xu as a2,c0 as a3,nv as a4,mn as a5,Hr as a6,Xn as a7,xe as a8,G as a9,Lo as aA,ws as aB,bl as aC,bo as aD,Fo as aE,xs as aF,vl as aG,Gu as aH,Qx as aI,L0 as aJ,Dg as aK,O0 as aL,Ll as aM,up as aN,Br as aO,r1 as aP,fs as aQ,hc as aR,go as aS,tn as aT,z0 as aU,wi as aV,Zx as aW,Yx as aX,Qu as aY,Zu as aZ,Ni as a_,D as aa,wn as ab,nt as ac,Gn as ad,Cs as ae,ie as af,_i as ag,de as ah,t1 as ai,Qi as aj,Gt as ak,ig as al,cl as am,us as an,Cp as ao,Hg as ap,as as aq,yt as ar,Me as as,o1 as at,xp as au,It as av,Er as aw,po as ax,un as ay,Vr as az,Xt as b,Zc as b0,Wp as b1,yp as b2,Ey as b3,Ku as b4,Uu as b5,Vu as b6,Ai as b7,qu as b8,ha as b9,H0 as ba,Ec as bb,Gx as bc,is as bd,Kx as be,Dx as bf,ss as bg,ro as bh,Tc as bi,Fe as bj,qx as bk,Ct as bl,vy as bm,Xx as bn,dc as bo,vc as bp,gc as bq,Oe as br,Ux as bs,Vx as bt,Wi as bu,Nx as bv,Wx as bw,V as c,yn as d,Ve as e,Ot as f,it as g,Qc as h,eu as i,Jx as j,ze as k,ng as l,tg as m,Ee as n,Yt as o,rg as p,qe as q,se as r,Ar as s,$l as t,Ei as u,fi as v,ut as w,n1 as x,ko as y,zt as z}; diff --git a/web/compose.html b/web/compose.html index d69ab46e31..391b75b370 100644 --- a/web/compose.html +++ b/web/compose.html @@ -2685,6 +2685,13 @@ //]]> diff --git a/web/index.html b/web/index.html index 8a4a33cca3..d1b7ad5f2c 100644 --- a/web/index.html +++ b/web/index.html @@ -37,7 +37,7 @@ - + diff --git a/web/sw.js b/web/sw.js index 41086fe744..a1bd20ddb8 100644 --- a/web/sw.js +++ b/web/sw.js @@ -1 +1 @@ -if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,c)=>{const a=e||("document"in self?document.currentScript.src:"")||location.href;if(s[a])return;let r={};const o=e=>i(e,a),f={module:{uri:a},exports:r,require:o};s[a]=Promise.all(n.map((e=>f[e]||o(e)))).then((e=>(c(...e),r)))}}define(["./workbox-118fddf1"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index-0d955cfa.js",revision:null},{url:"assets/index-0e8bf8a6.css",revision:null},{url:"assets/index-42c5a3ca.js",revision:null},{url:"assets/index-cdc6de84.css",revision:null},{url:"assets/setting-c6ca7b14.svg",revision:null},{url:"compose.html",revision:"2c3f93033c3f4cef8136ff5a993a087b"},{url:"favicon.ico",revision:"1272c70e1b86b8956598a0349d2f193c"},{url:"img/compose.svg",revision:"4242b76bb8f4da0baf7a75edab0c6754"},{url:"img/logo.svg",revision:"1da58864f14c1a8c28f8587d6dcbc5d0"},{url:"img/pwa/logo-192.png",revision:"be40443731d9d4ead5e9b1f1a6070135"},{url:"img/pwa/logo-512.png",revision:"1217f1c90acb9f231e3135fa44af7efc"},{url:"index.html",revision:"9dd8194203deb4ed671dcb8d3f45ef2a"},{url:"js/bing/chat/amd.js",revision:"faf7881af632ddc1bc816df3c7615d70"},{url:"js/bing/chat/config.js",revision:"f94f111107c88dddc7d1b7ae50289a65"},{url:"js/bing/chat/core.js",revision:"bf59a711c4cc50c15c4721674ee177bd"},{url:"js/bing/chat/global.js",revision:"e1288422c9aa50d42d7461d925166615"},{url:"js/bing/chat/lib.js",revision:"1a0f8f43cc025b7b5995e885fed1a3e6"},{url:"registerSW.js",revision:"bf6c2f29aef95e09b1f72cf59f427a55"},{url:"./img/pwa/logo-192.png",revision:"be40443731d9d4ead5e9b1f1a6070135"},{url:"./img/pwa/logo-512.png",revision:"1217f1c90acb9f231e3135fa44af7efc"},{url:"manifest.webmanifest",revision:"ae4ef030ae5d2d4894669fd82aac028d"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html"))),e.registerRoute(/(.*?)\.(js|css|ts)/,new e.CacheFirst({cacheName:"js-css-cache",plugins:[new e.ExpirationPlugin({maxEntries:100,maxAgeSeconds:604800}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET"),e.registerRoute(/(.*?)\.(png|jpe?g|svg|gif|bmp|psd|tiff|tga|eps|ico)/,new e.CacheFirst({cacheName:"image-cache",plugins:[new e.ExpirationPlugin({maxEntries:100,maxAgeSeconds:604800}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET")})); +if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,c)=>{const a=e||("document"in self?document.currentScript.src:"")||location.href;if(s[a])return;let r={};const o=e=>i(e,a),d={module:{uri:a},exports:r,require:o};s[a]=Promise.all(n.map((e=>d[e]||o(e)))).then((e=>(c(...e),r)))}}define(["./workbox-118fddf1"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index-04c94bf5.js",revision:null},{url:"assets/index-0e8bf8a6.css",revision:null},{url:"assets/index-2d8e434e.js",revision:null},{url:"assets/index-cdc6de84.css",revision:null},{url:"assets/setting-c6ca7b14.svg",revision:null},{url:"compose.html",revision:"17de40a8859877801276aa6f47d99c23"},{url:"favicon.ico",revision:"1272c70e1b86b8956598a0349d2f193c"},{url:"img/compose.svg",revision:"4242b76bb8f4da0baf7a75edab0c6754"},{url:"img/logo.svg",revision:"1da58864f14c1a8c28f8587d6dcbc5d0"},{url:"img/pwa/logo-192.png",revision:"be40443731d9d4ead5e9b1f1a6070135"},{url:"img/pwa/logo-512.png",revision:"1217f1c90acb9f231e3135fa44af7efc"},{url:"index.html",revision:"aabe690de45b46993a85a9db0c35372e"},{url:"js/bing/chat/amd.js",revision:"faf7881af632ddc1bc816df3c7615d70"},{url:"js/bing/chat/config.js",revision:"f94f111107c88dddc7d1b7ae50289a65"},{url:"js/bing/chat/core.js",revision:"bf59a711c4cc50c15c4721674ee177bd"},{url:"js/bing/chat/global.js",revision:"e1288422c9aa50d42d7461d925166615"},{url:"js/bing/chat/lib.js",revision:"1a0f8f43cc025b7b5995e885fed1a3e6"},{url:"registerSW.js",revision:"bf6c2f29aef95e09b1f72cf59f427a55"},{url:"./img/pwa/logo-192.png",revision:"be40443731d9d4ead5e9b1f1a6070135"},{url:"./img/pwa/logo-512.png",revision:"1217f1c90acb9f231e3135fa44af7efc"},{url:"manifest.webmanifest",revision:"ae4ef030ae5d2d4894669fd82aac028d"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html"))),e.registerRoute(/(.*?)\.(js|css|ts)/,new e.CacheFirst({cacheName:"js-css-cache",plugins:[new e.ExpirationPlugin({maxEntries:100,maxAgeSeconds:604800}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET"),e.registerRoute(/(.*?)\.(png|jpe?g|svg|gif|bmp|psd|tiff|tga|eps|ico)/,new e.CacheFirst({cacheName:"image-cache",plugins:[new e.ExpirationPlugin({maxEntries:100,maxAgeSeconds:604800}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET")}));