From e6b8dec171c34579b1be32603a1c4c9e85ac76fa Mon Sep 17 00:00:00 2001 From: adams549659584 <13760614423@163.com> Date: Thu, 1 Jun 2023 23:23:55 +0800 Subject: [PATCH] fix: :bug: fix auth --- .gitignore | 14 ++++++++++++++ api/index.go | 2 +- frontend/package.json | 2 +- frontend/pnpm-lock.yaml | 6 +++++- frontend/src/sw.ts | 14 -------------- web/assets/index-29dab197.css | 1 + .../{index-199bf4d7.js => index-3a8b3b00.js} | 4 ++-- web/assets/index-4b631cfd.css | 1 - .../{index-3378e00b.js => index-63d32cbb.js} | 2 +- web/index.html | 4 ++-- web/sw.js | 4 ++-- 11 files changed, 29 insertions(+), 25 deletions(-) create mode 100644 .gitignore create mode 100644 web/assets/index-29dab197.css rename web/assets/{index-199bf4d7.js => index-3a8b3b00.js} (99%) delete mode 100644 web/assets/index-4b631cfd.css rename web/assets/{index-3378e00b.js => index-63d32cbb.js} (99%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000..a81fae853d --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +# Editor directories and files +.vscode/* +!.vscode/extensions.json +!.vscode/launch.json +.idea +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +.DS_Store + +release diff --git a/api/index.go b/api/index.go index d652c612a5..5411c3562d 100644 --- a/api/index.go +++ b/api/index.go @@ -12,7 +12,7 @@ func Index(w http.ResponseWriter, r *http.Request) { http.Redirect(w, r, common.PROXY_WEB_PAGE_PATH, http.StatusFound) return } - if strings.HasPrefix("/turing", r.URL.Path) { + if strings.HasPrefix(r.URL.Path, "/turing") { if !helper.CheckAuth(r) { helper.UnauthorizedResult(w) return diff --git a/frontend/package.json b/frontend/package.json index 2f01368435..e7b367a82c 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "go-proxy-bingai", - "version": "1.8.6", + "version": "1.8.7", "private": true, "scripts": { "dev": "vite", diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml index bde93fd48b..e4f89e3759 100644 --- a/frontend/pnpm-lock.yaml +++ b/frontend/pnpm-lock.yaml @@ -1,4 +1,8 @@ -lockfileVersion: '6.0' +lockfileVersion: '6.1' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false dependencies: pinia: diff --git a/frontend/src/sw.ts b/frontend/src/sw.ts index a0fffaa247..5a6ece6368 100644 --- a/frontend/src/sw.ts +++ b/frontend/src/sw.ts @@ -24,9 +24,6 @@ registerRoute(new NavigationRoute(createHandlerBoundToURL('./index.html'))); registerRoute( ({ request, url }) => { - if (url.pathname.includes('/sw.js')) { - return false; - } return request.destination === 'style' || request.destination === 'manifest' || request.destination === 'script' || request.destination === 'worker'; }, new StaleWhileRevalidate({ @@ -52,17 +49,6 @@ registerRoute( }) ); -self.addEventListener('activate', async (ev) => { - const cacheKeys = await caches.keys(); - for (const cacheKey of cacheKeys) { - // 删除旧缓存 - if (!cacheKey.startsWith('workbox') && !cacheKey.startsWith(CACHE_NAME_PREFIX)) { - await caches.delete(cacheKey); - console.log(`del cache : `, cacheKey); - } - } -}); - self.addEventListener('install', (ev) => { self.skipWaiting(); }); diff --git a/web/assets/index-29dab197.css b/web/assets/index-29dab197.css new file mode 100644 index 0000000000..2a2db9b488 --- /dev/null +++ b/web/assets/index-29dab197.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.fixed{position:fixed}.absolute{position:absolute}.bottom-\[110px\]{bottom:110px}.left-0{left:0px}.right-4{right:1rem}.right-6{right:1.5rem}.top-0{top:0px}.top-6{top:1.5rem}.z-50{z-index:50}.float-right{float:right}.my-4{margin-top:1rem;margin-bottom:1rem}.ml-2{margin-left:.5rem}.mt-4{margin-top:1rem}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.hidden{display:none}.h-\[130px\]{height:130px}.h-\[350px\]{height:350px}.h-\[40vh\]{height:40vh}.h-screen{height:100vh}.max-h-\[390px\]{max-height:390px}.w-0{width:0px}.w-11\/12{width:91.666667%}.w-\[310px\]{width:310px}.w-\[56px\]{width:56px}.w-full{width:100%}.w-screen{width:100vw}.max-w-\[1060px\]{max-width:1060px}.max-w-\[120px\]{max-width:120px}.max-w-\[310px\]{max-width:310px}.flex-1{flex:1 1 0%}.basis-full{flex-basis:100%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-5{gap:1.25rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.text-ellipsis{text-overflow:ellipsis}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.bg-black\/40{background-color:#0006}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-5{padding:1.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\[14px\]{padding-left:14px;padding-right:14px}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-2{padding-bottom:.5rem}.text-left{text-align:left}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-\[\#c2c2c2\]{--tw-text-opacity: 1;color:rgb(194 194 194 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.cib-serp-main{overflow:hidden}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}@media (min-width: 768px){.md\:w-\[60px\]{width:60px}.md\:px-\[170px\]{padding-left:170px;padding-right:170px}.md\:px-\[34px\]{padding-left:34px;padding-right:34px}}@media (min-width: 1024px){.lg\:block{display:block}.lg\:table-cell{display:table-cell}.lg\:hidden{display:none}.lg\:w-\[400px\]{width:400px}.lg\:w-\[540px\]{width:540px}.lg\:w-\[900px\]{width:900px}}@media (min-width: 1280px){.xl\:h-\[520px\]{height:520px}.xl\:h-\[60vh\]{height:60vh}.xl\:w-\[475px\]{width:475px}.xl\:w-\[600px\]{width:600px}.xl\:w-\[900px\]{width:900px}.xl\:w-auto{width:auto}.xl\:min-w-\[300px\]{min-width:300px}.xl\:max-w-\[650px\]{max-width:650px}.xl\:basis-0{flex-basis:0px}.xl\:px-10{padding-left:2.5rem;padding-right:2.5rem}.xl\:px-\[220px\]{padding-left:220px;padding-right:220px}} diff --git a/web/assets/index-199bf4d7.js b/web/assets/index-3a8b3b00.js similarity index 99% rename from web/assets/index-199bf4d7.js rename to web/assets/index-3a8b3b00.js index 031cadb22d..18ac80cdb1 100644 --- a/web/assets/index-199bf4d7.js +++ b/web/assets/index-3a8b3b00.js @@ -1,4 +1,4 @@ -import{r as O,w as Te,o as et,a as nt,i as Na,c as D,b as Ha,h as ja,d as pn,e as Ie,f as Ua,g as Oe,j as Ge,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 xt,x as go,C as Va,y as Ka,z as ee,A as Nr,B as c,D as Hr,L as vn,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 gn,O as Ur,P as Wr,Q as St,R as mn,S as Pr,T as mo,U as Ya,V as bo,W as yo,X as Gt,Y as Za,Z as wo,_ as Ja,$ as Qa,a0 as el,a1 as tl,a2 as rl,a3 as ol,a4 as nl,a5 as bn,a6 as Xe,a7 as Be,a8 as S,a9 as B,aa as L,ab as Re,ac as ae,ad as Fe,ae as pe,af as ie,ag as ze,ah as j,ai as il,aj as ft,ak as bt,al as xo,am as yn,an as Co,ao as So,ap as al,aq as Lt,ar as Ze,as as Ve,at as wn,au as ko,av as ll,aw as se,ax as xn,ay as me,az as le,aA as kt,aB as sl,aC as Po,aD as Cn,aE as Sn,aF as kn,aG as yt,aH as dl,aI as cl,aJ as ul,aK as Pn,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 $n,aV as gl,aW as ml,aX as $o,aY as bl,aZ as zo,a_ as yl,a$ as $r,b0 as zn,b1 as Tn,b2 as Pt,b3 as wl,b4 as qr,b5 as Gr,b6 as Xr,b7 as Yr,b8 as In,b9 as ce,ba as To,bb as xl,bc as Zr,bd as te,be as Se,bf as Ue,bg as ke,bh as X,bi as be,bj as G,bk as Cl,bl as E,bm as ut,bn as ot,bo as Sl,bp as _n,bq as kl,br as zr,bs as Rn,bt as Je,bu as Mn,bv as Pl,bw as $l}from"./index-3378e00b.js";let Zt=[];const On=new WeakMap;function zl(){Zt.forEach(e=>e(...On.get(e))),Zt=[]}function Bn(e,...t){On.set(e,t),!Zt.includes(e)&&Zt.push(e)===1&&requestAnimationFrame(zl)}function Io(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|\.)+$/,_o=/(\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=_o.exec(e);return n?e.replace(_o,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 Ml(e,t,r){if(!t)return e;const o=O(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 wt,Mt;const Ol=()=>{var e,t;wt=Na?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Mt=!1,wt!==void 0?wt.then(()=>{Mt=!0}):Mt=!0};Ol();function Bl(e){if(Mt)return;let t=!1;et(()=>{Mt||wt==null||wt.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(s=>{if(s!==a.key)return;const u=o[s];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(s=>{if(s!==a.key)return;const u=n[s];if(typeof u=="function")u(a);else{const{stop:f=!1,prevent:h=!1}=u;f&&a.stopPropagation(),h&&a.preventDefault(),u.handler(a)}})},d=()=>{(t===void 0||t.value)&&(Oe("keydown",document,i),Oe("keyup",document,l)),t!==void 0&&Te(t,a=>{a?(Oe("keydown",document,i),Oe("keyup",document,l)):(Ie("keydown",document,i),Ie("keyup",document,l))})};return ja()?(pn(d),nt(()=>{(t===void 0||t.value)&&(Ie("keydown",document,i),Ie("keyup",document,l))})):d(),Ua(r)}const Al=Ge("n-internal-select-menu-body"),Ln="__disabled__";function Ct(e){const t=ue(Ar,null),r=ue(Dr,null),o=ue(tr,null),n=ue(Al,null),i=O();if(typeof document<"u"){i.value=document.fullscreenElement;const l=()=>{i.value=document.fullscreenElement};et(()=>{Oe("fullscreenchange",document,l)}),nt(()=>{Ie("fullscreenchange",document,l)})}return We(()=>{var l;const{to:d}=e;return d!==void 0?d===!1?Ln:d===!0?i.value||"body":d: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:d??(i.value||"body")})}Ct.tdkey=Ln;Ct.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=O(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)Oe("scroll",P,f,!0)},d=()=>{for(const x of i)Ie("scroll",x,f,!0);i=[]},a=new Set,s=x=>{a.size===0&&l(),a.has(x)||a.add(x)},u=x=>{a.has(x)&&a.delete(x),a.size===0&&d()},f=()=>{Bn(h)},h=()=>{a.forEach(x=>x())},p=new Set,v=x=>{p.size===0&&Oe("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),d()}),{targetRef:o,setTargetRef:n,addScrollListener:s,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?xt(go("follower",this.$slots),[[t]]):go("follower",this.$slots)}}),pt="@@mmoContext",Hl={mounted(e,{value:t}){e[pt]={handler:void 0},typeof t=="function"&&(e[pt].handler=t,Oe("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,Oe("mousemoveoutside",e,t)):(e[pt].handler=t,Oe("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"},Ro={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},Oo={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,d]=e.split("-");let a=d??"center",s={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=Ro[d])}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=Oo[p],s=u(y,p,f)):(a=Oo[v],s=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=O(null),n=O(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)};et(()=>{r.value&&(a(),i())});const d=Ka();Yl.mount({id:"vueuc/binder",head:!0,anchorMetaName:Ul,ssr:d}),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:z}=h;P==="target"?z.width=`${x.width}px`:P!==void 0?z.width=P:z.width="",k==="target"?z.minWidth=`${x.width}px`:k!==void 0?z.minWidth=k:z.minWidth="";const A=fr(h),$=fr(n.value),{left:_,top:K,placement:F}=ql(b,x,A,m,R,w),M=Gl(F,w),{left:C,top:T,transform:H}=Xl(F,$,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",M),h.style.transformOrigin=M};Te(r,h=>{h?(i(),s()):l()});const s=()=>{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),s)}),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(vn,{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?xt(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 Jr(e){return jr(e)?Xa(e):rs(e)}var os=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ns=/^\w*$/;function Qr(e,t){if(rt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||gn(e)?!0:ns.test(e)||!os.test(e)||t!=null&&e in Object(t)}var is="Expected a function";function eo(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(eo.Cache||Ur),r}eo.Cache=Ur;var as=500;function ls(e){var t=eo(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:Qr(e,t)?[e]:us(Wr(e))}var fs=1/0;function ir(e){if(typeof e=="string"||gn(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&&rd))return!1;var s=i.get(e),u=i.get(t);if(s&&u)return s==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 _t(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 d=e.defaultWidth,a=r!=null&&r.width?String(r.width):e.defaultWidth;n=e.values[a]||e.values[d]}var s=e.argumentCallback?e.argumentCallback(t):t;return n[s]}}function Rt(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],d=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],a=Array.isArray(d)?Sc(d,function(f){return f.test(l)}):Cc(d,function(f){return f.test(l)}),s;s=e.valueCallback?e.valueCallback(a):a,s=r.valueCallback?r.valueCallback(s):s;var u=t.slice(l.length);return{value:s,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 d=t.slice(n.length);return{value:l,rest:d}}}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 Mc=Rc;var Oc={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 Oc[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:_t({values:Ec,defaultWidth:"wide"}),quarter:_t({values:Ac,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:_t({values:Dc,defaultWidth:"wide"}),day:_t({values:Fc,defaultWidth:"wide"}),dayPeriod:_t({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:Rt({matchPatterns:qc,defaultMatchWidth:"wide",parsePatterns:Gc,defaultParseWidth:"any"}),quarter:Rt({matchPatterns:Xc,defaultMatchWidth:"wide",parsePatterns:Yc,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Rt({matchPatterns:Zc,defaultMatchWidth:"wide",parsePatterns:Jc,defaultParseWidth:"any"}),day:Rt({matchPatterns:Qc,defaultMatchWidth:"wide",parsePatterns:eu,defaultParseWidth:"any"}),dayPeriod:Rt({matchPatterns:tu,defaultMatchWidth:"any",parsePatterns:ru,defaultParseWidth:"any"})};const nu=ou;var iu={code:"en-US",formatDistance:zc,formatLong:Mc,formatRelative:Lc,localize:Wc,match:nu,options:{weekStartsOn:0,firstWeekContainsDate:1}};const au=iu,lu={name:"en-US",locale:au},su=lu;function ro(e){const{mergedLocaleRef:t,mergedDateLocaleRef:r}=ue(bn,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=Xe("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=Xe("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=Xe("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=Xe("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=Xe("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=Xe("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=Xe("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=Xe("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=Xe("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=Xe("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 Yo(e){return Array.isArray(e)?e:[e]}const Mr={STOP:"STOP"};function ai(e,t){const r=t(e);e.children!==void 0&&r!==Mr.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 Mu(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 Ou(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),d=[];return n.forEach(a=>{(i.has(a)||l.has(a))&&d.push(a)}),d.forEach(a=>n.delete(a)),n}function br(e,t){const{checkedKeys:r,keysToCheck:o,keysToUncheck:n,indeterminateKeys:i,cascade:l,leafOnly:d,checkStrategy:a,allowNotLoaded:s}=e;if(!l)return o!==void 0?{checkedKeys:Ou(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,s):o!==void 0?f=Au(o,r,t,s):f=Qt(r,t,s,!1);const h=a==="parent",p=a==="child"||d,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 z=!0,A=!1,$=!0;for(const _ of b.children){const K=_.key;if(!_.disabled){if($&&($=!1),v.has(K))A=!0;else if(y.has(K)){A=!0,z=!1;break}else if(z=!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,d=new Set(e);return e.forEach(a=>{const s=n.get(a);s!==void 0&&ai(s,u=>{if(u.disabled)return Mr.STOP;const{key:f}=u;if(!l.has(f)&&(l.add(f),d.add(f),Mu(u.rawNode,i))){if(o)return Mr.STOP;if(!r)throw new Eu}})}),d}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 d={keyPath:[],treeNodePath:[],treeNode:l};if(l!=null&&l.ignored)return d.treeNode=null,d;for(;l;)!l.ignored&&(t||!l.isGroup)&&d.treeNodePath.push(l),l=l.parent;return d.treeNodePath.reverse(),r||d.treeNodePath.pop(),d.keyPath=d.treeNodePath.map(a=>a.key),d}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 Zo(e,t,{loop:r=!1,includeDisabled:o=!1}={}){const n=t==="prev"?Uu:ju,i={reverse:t==="prev"};let l=!1,d=null;function a(s){if(s!==null){if(s===e){if(!l)l=!0;else if(!e.disabled&&!e.isGroup){d=e;return}}else if((!s.disabled||o)&&!s.ignored&&!s.isGroup){d=s;return}if(s.isGroup){const u=oo(s,i);u!==null?d=u:a(n(s,r))}else{const u=n(s,!1);if(u!==null)a(u);else{const f=Wu(s);f!=null&&f.isGroup?a(n(f,r)):r&&a(n(s,!0))}}}}return a(e),d}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 oo(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,d=r?-1:1;for(let a=i;a!==l;a+=d){const s=o[a];if(!s.disabled&&!s.ignored)if(s.isGroup){const u=oo(s,t);if(u!==null)return u}else return s}}return null}const Vu={getChild(){return this.ignored?null:oo(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return Zo(this,"next",e)},getPrev(e={}){return Zo(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 d=[];return e.forEach((a,s)=>{var u;const f=Object.create(o);if(f.rawNode=a,f.siblings=d,f.level=l,f.index=s,f.isFirstChild=s===0,f.isLastChild=s+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))}d.push(f),t.set(f.key,f),r.has(l)||r.set(l,[]),(u=r.get(l))===null||u===void 0||u.push(f)}),d}function Gu(e,t={}){var r;const o=new Map,n=new Map,{getDisabled:i=Ru,getIgnored:l=Iu,getIsGroup:d=Lu,getKey:a=Tu}=t,s=(r=t.getChildren)!==null&&r!==void 0?r:zu,u=t.ignoreEmptyChildren?b=>{const m=s(b);return Array.isArray(m)?m.length?m:null:m}:s,f=Object.assign({get key(){return a(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return d(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:z=!1,checkStrategy:A="all",allowNotLoaded:$=!1}=m;return br({checkedKeys:gr(b),indeterminateKeys:mr(b),cascade:R,leafOnly:z,checkStrategy:A,allowNotLoaded:$},k)},check(b,m,R={}){const{cascade:z=!0,leafOnly:A=!1,checkStrategy:$="all",allowNotLoaded:_=!1}=R;return br({checkedKeys:gr(m),indeterminateKeys:mr(m),keysToCheck:b==null?[]:Yo(b),cascade:z,leafOnly:A,checkStrategy:$,allowNotLoaded:_},k)},uncheck(b,m,R={}){const{cascade:z=!0,leafOnly:A=!1,checkStrategy:$="all",allowNotLoaded:_=!1}=R;return br({checkedKeys:gr(m),indeterminateKeys:mr(m),keysToUncheck:b==null?[]:Yo(b),cascade:z,leafOnly:A,checkStrategy:$,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:d}=e;return Object.assign(Object.assign({},Xu),{fontSizeSmall:n,fontSizeMedium:i,fontSizeLarge:l,fontSizeHuge:d,textColor:t,iconColor:r,extraTextColor:o})},Zu={name:"Empty",common:Be,self:Yu},Ju=Zu,Qu=S("empty",` +import{r as O,w as Te,o as et,a as nt,i as Na,c as D,b as Ha,h as ja,d as pn,e as Ie,f as Ua,g as Oe,j as Ge,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 xt,x as go,C as Va,y as Ka,z as ee,A as Nr,B as c,D as Hr,L as vn,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 gn,O as Ur,P as Wr,Q as St,R as mn,S as Pr,T as mo,U as Ya,V as bo,W as yo,X as Gt,Y as Za,Z as wo,_ as Ja,$ as Qa,a0 as el,a1 as tl,a2 as rl,a3 as ol,a4 as nl,a5 as bn,a6 as Xe,a7 as Be,a8 as S,a9 as B,aa as L,ab as Re,ac as ae,ad as Fe,ae as pe,af as ie,ag as ze,ah as j,ai as il,aj as ft,ak as bt,al as xo,am as yn,an as Co,ao as So,ap as al,aq as Lt,ar as Ze,as as Ve,at as wn,au as ko,av as ll,aw as se,ax as xn,ay as me,az as le,aA as kt,aB as sl,aC as Po,aD as Cn,aE as Sn,aF as kn,aG as yt,aH as dl,aI as cl,aJ as ul,aK as Pn,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 $n,aV as gl,aW as ml,aX as $o,aY as bl,aZ as zo,a_ as yl,a$ as $r,b0 as zn,b1 as Tn,b2 as Pt,b3 as wl,b4 as qr,b5 as Gr,b6 as Xr,b7 as Yr,b8 as In,b9 as ce,ba as To,bb as xl,bc as Zr,bd as te,be as Se,bf as Ue,bg as ke,bh as X,bi as be,bj as G,bk as Cl,bl as E,bm as ut,bn as ot,bo as Sl,bp as _n,bq as kl,br as zr,bs as Rn,bt as Je,bu as Mn,bv as Pl,bw as $l}from"./index-63d32cbb.js";let Zt=[];const On=new WeakMap;function zl(){Zt.forEach(e=>e(...On.get(e))),Zt=[]}function Bn(e,...t){On.set(e,t),!Zt.includes(e)&&Zt.push(e)===1&&requestAnimationFrame(zl)}function Io(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|\.)+$/,_o=/(\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=_o.exec(e);return n?e.replace(_o,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 Ml(e,t,r){if(!t)return e;const o=O(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 wt,Mt;const Ol=()=>{var e,t;wt=Na?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Mt=!1,wt!==void 0?wt.then(()=>{Mt=!0}):Mt=!0};Ol();function Bl(e){if(Mt)return;let t=!1;et(()=>{Mt||wt==null||wt.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(s=>{if(s!==a.key)return;const u=o[s];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(s=>{if(s!==a.key)return;const u=n[s];if(typeof u=="function")u(a);else{const{stop:f=!1,prevent:h=!1}=u;f&&a.stopPropagation(),h&&a.preventDefault(),u.handler(a)}})},d=()=>{(t===void 0||t.value)&&(Oe("keydown",document,i),Oe("keyup",document,l)),t!==void 0&&Te(t,a=>{a?(Oe("keydown",document,i),Oe("keyup",document,l)):(Ie("keydown",document,i),Ie("keyup",document,l))})};return ja()?(pn(d),nt(()=>{(t===void 0||t.value)&&(Ie("keydown",document,i),Ie("keyup",document,l))})):d(),Ua(r)}const Al=Ge("n-internal-select-menu-body"),Ln="__disabled__";function Ct(e){const t=ue(Ar,null),r=ue(Dr,null),o=ue(tr,null),n=ue(Al,null),i=O();if(typeof document<"u"){i.value=document.fullscreenElement;const l=()=>{i.value=document.fullscreenElement};et(()=>{Oe("fullscreenchange",document,l)}),nt(()=>{Ie("fullscreenchange",document,l)})}return We(()=>{var l;const{to:d}=e;return d!==void 0?d===!1?Ln:d===!0?i.value||"body":d: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:d??(i.value||"body")})}Ct.tdkey=Ln;Ct.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=O(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)Oe("scroll",P,f,!0)},d=()=>{for(const x of i)Ie("scroll",x,f,!0);i=[]},a=new Set,s=x=>{a.size===0&&l(),a.has(x)||a.add(x)},u=x=>{a.has(x)&&a.delete(x),a.size===0&&d()},f=()=>{Bn(h)},h=()=>{a.forEach(x=>x())},p=new Set,v=x=>{p.size===0&&Oe("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),d()}),{targetRef:o,setTargetRef:n,addScrollListener:s,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?xt(go("follower",this.$slots),[[t]]):go("follower",this.$slots)}}),pt="@@mmoContext",Hl={mounted(e,{value:t}){e[pt]={handler:void 0},typeof t=="function"&&(e[pt].handler=t,Oe("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,Oe("mousemoveoutside",e,t)):(e[pt].handler=t,Oe("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"},Ro={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},Oo={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,d]=e.split("-");let a=d??"center",s={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=Ro[d])}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=Oo[p],s=u(y,p,f)):(a=Oo[v],s=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=O(null),n=O(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)};et(()=>{r.value&&(a(),i())});const d=Ka();Yl.mount({id:"vueuc/binder",head:!0,anchorMetaName:Ul,ssr:d}),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:z}=h;P==="target"?z.width=`${x.width}px`:P!==void 0?z.width=P:z.width="",k==="target"?z.minWidth=`${x.width}px`:k!==void 0?z.minWidth=k:z.minWidth="";const A=fr(h),$=fr(n.value),{left:_,top:K,placement:F}=ql(b,x,A,m,R,w),M=Gl(F,w),{left:C,top:T,transform:H}=Xl(F,$,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",M),h.style.transformOrigin=M};Te(r,h=>{h?(i(),s()):l()});const s=()=>{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),s)}),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(vn,{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?xt(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 Jr(e){return jr(e)?Xa(e):rs(e)}var os=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ns=/^\w*$/;function Qr(e,t){if(rt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||gn(e)?!0:ns.test(e)||!os.test(e)||t!=null&&e in Object(t)}var is="Expected a function";function eo(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(eo.Cache||Ur),r}eo.Cache=Ur;var as=500;function ls(e){var t=eo(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:Qr(e,t)?[e]:us(Wr(e))}var fs=1/0;function ir(e){if(typeof e=="string"||gn(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&&rd))return!1;var s=i.get(e),u=i.get(t);if(s&&u)return s==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 _t(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 d=e.defaultWidth,a=r!=null&&r.width?String(r.width):e.defaultWidth;n=e.values[a]||e.values[d]}var s=e.argumentCallback?e.argumentCallback(t):t;return n[s]}}function Rt(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],d=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],a=Array.isArray(d)?Sc(d,function(f){return f.test(l)}):Cc(d,function(f){return f.test(l)}),s;s=e.valueCallback?e.valueCallback(a):a,s=r.valueCallback?r.valueCallback(s):s;var u=t.slice(l.length);return{value:s,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 d=t.slice(n.length);return{value:l,rest:d}}}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 Mc=Rc;var Oc={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 Oc[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:_t({values:Ec,defaultWidth:"wide"}),quarter:_t({values:Ac,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:_t({values:Dc,defaultWidth:"wide"}),day:_t({values:Fc,defaultWidth:"wide"}),dayPeriod:_t({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:Rt({matchPatterns:qc,defaultMatchWidth:"wide",parsePatterns:Gc,defaultParseWidth:"any"}),quarter:Rt({matchPatterns:Xc,defaultMatchWidth:"wide",parsePatterns:Yc,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Rt({matchPatterns:Zc,defaultMatchWidth:"wide",parsePatterns:Jc,defaultParseWidth:"any"}),day:Rt({matchPatterns:Qc,defaultMatchWidth:"wide",parsePatterns:eu,defaultParseWidth:"any"}),dayPeriod:Rt({matchPatterns:tu,defaultMatchWidth:"any",parsePatterns:ru,defaultParseWidth:"any"})};const nu=ou;var iu={code:"en-US",formatDistance:zc,formatLong:Mc,formatRelative:Lc,localize:Wc,match:nu,options:{weekStartsOn:0,firstWeekContainsDate:1}};const au=iu,lu={name:"en-US",locale:au},su=lu;function ro(e){const{mergedLocaleRef:t,mergedDateLocaleRef:r}=ue(bn,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=Xe("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=Xe("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=Xe("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=Xe("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=Xe("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=Xe("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=Xe("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=Xe("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=Xe("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=Xe("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 Yo(e){return Array.isArray(e)?e:[e]}const Mr={STOP:"STOP"};function ai(e,t){const r=t(e);e.children!==void 0&&r!==Mr.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 Mu(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 Ou(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),d=[];return n.forEach(a=>{(i.has(a)||l.has(a))&&d.push(a)}),d.forEach(a=>n.delete(a)),n}function br(e,t){const{checkedKeys:r,keysToCheck:o,keysToUncheck:n,indeterminateKeys:i,cascade:l,leafOnly:d,checkStrategy:a,allowNotLoaded:s}=e;if(!l)return o!==void 0?{checkedKeys:Ou(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,s):o!==void 0?f=Au(o,r,t,s):f=Qt(r,t,s,!1);const h=a==="parent",p=a==="child"||d,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 z=!0,A=!1,$=!0;for(const _ of b.children){const K=_.key;if(!_.disabled){if($&&($=!1),v.has(K))A=!0;else if(y.has(K)){A=!0,z=!1;break}else if(z=!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,d=new Set(e);return e.forEach(a=>{const s=n.get(a);s!==void 0&&ai(s,u=>{if(u.disabled)return Mr.STOP;const{key:f}=u;if(!l.has(f)&&(l.add(f),d.add(f),Mu(u.rawNode,i))){if(o)return Mr.STOP;if(!r)throw new Eu}})}),d}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 d={keyPath:[],treeNodePath:[],treeNode:l};if(l!=null&&l.ignored)return d.treeNode=null,d;for(;l;)!l.ignored&&(t||!l.isGroup)&&d.treeNodePath.push(l),l=l.parent;return d.treeNodePath.reverse(),r||d.treeNodePath.pop(),d.keyPath=d.treeNodePath.map(a=>a.key),d}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 Zo(e,t,{loop:r=!1,includeDisabled:o=!1}={}){const n=t==="prev"?Uu:ju,i={reverse:t==="prev"};let l=!1,d=null;function a(s){if(s!==null){if(s===e){if(!l)l=!0;else if(!e.disabled&&!e.isGroup){d=e;return}}else if((!s.disabled||o)&&!s.ignored&&!s.isGroup){d=s;return}if(s.isGroup){const u=oo(s,i);u!==null?d=u:a(n(s,r))}else{const u=n(s,!1);if(u!==null)a(u);else{const f=Wu(s);f!=null&&f.isGroup?a(n(f,r)):r&&a(n(s,!0))}}}}return a(e),d}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 oo(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,d=r?-1:1;for(let a=i;a!==l;a+=d){const s=o[a];if(!s.disabled&&!s.ignored)if(s.isGroup){const u=oo(s,t);if(u!==null)return u}else return s}}return null}const Vu={getChild(){return this.ignored?null:oo(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return Zo(this,"next",e)},getPrev(e={}){return Zo(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 d=[];return e.forEach((a,s)=>{var u;const f=Object.create(o);if(f.rawNode=a,f.siblings=d,f.level=l,f.index=s,f.isFirstChild=s===0,f.isLastChild=s+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))}d.push(f),t.set(f.key,f),r.has(l)||r.set(l,[]),(u=r.get(l))===null||u===void 0||u.push(f)}),d}function Gu(e,t={}){var r;const o=new Map,n=new Map,{getDisabled:i=Ru,getIgnored:l=Iu,getIsGroup:d=Lu,getKey:a=Tu}=t,s=(r=t.getChildren)!==null&&r!==void 0?r:zu,u=t.ignoreEmptyChildren?b=>{const m=s(b);return Array.isArray(m)?m.length?m:null:m}:s,f=Object.assign({get key(){return a(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return d(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:z=!1,checkStrategy:A="all",allowNotLoaded:$=!1}=m;return br({checkedKeys:gr(b),indeterminateKeys:mr(b),cascade:R,leafOnly:z,checkStrategy:A,allowNotLoaded:$},k)},check(b,m,R={}){const{cascade:z=!0,leafOnly:A=!1,checkStrategy:$="all",allowNotLoaded:_=!1}=R;return br({checkedKeys:gr(m),indeterminateKeys:mr(m),keysToCheck:b==null?[]:Yo(b),cascade:z,leafOnly:A,checkStrategy:$,allowNotLoaded:_},k)},uncheck(b,m,R={}){const{cascade:z=!0,leafOnly:A=!1,checkStrategy:$="all",allowNotLoaded:_=!1}=R;return br({checkedKeys:gr(m),indeterminateKeys:mr(m),keysToUncheck:b==null?[]:Yo(b),cascade:z,leafOnly:A,checkStrategy:$,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:d}=e;return Object.assign(Object.assign({},Xu),{fontSizeSmall:n,fontSizeMedium:i,fontSizeLarge:l,fontSizeHuge:d,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 O,w as Te,o as et,a as nt,i as Na,c as D,b as Ha,h as ja,d as pn,e a width: 0; height: 0; opacity: 0; - `)]);var ln=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 d(u){try{s(o.next(u))}catch(f){l(f)}}function a(u){try{s(o.throw(u))}catch(f){l(f)}}function s(u){u.done?i(u.value):n(u.value).then(d,a)}s((o=o.apply(e,t||[])).next())})};function zp(e,t,r){const{doChange:o,xhrMap:n}=e;let i=0;function l(a){var s;let u=Object.assign({},t,{status:"error",percentage:i});n.delete(t.id),u=Bt(((s=e.onError)===null||s===void 0?void 0:s.call(e,{file:u,event:a}))||u),o(u,a)}function d(a){var s;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(((s=e.onFinish)===null||s===void 0?void 0:s.call(e,{file:u,event:a}))||u),o(u,a)}return{handleXHRLoad:d,handleXHRError:l,handleXHRAbort(a){const s=Object.assign({},t,{status:"removed",file:null,percentage:i});n.delete(t.id),o(s,a)},handleXHRProgress(a){const s=Object.assign({},t,{status:"uploading"});if(a.lengthComputable){const u=Math.ceil(a.loaded/a.total*100);s.percentage=u,i=u}o(s,a)}}}function Tp(e){const{inst:t,file:r,data:o,headers:n,withCredentials:i,action:l,customRequest:d}=e,{doChange:a}=e.inst;let s=0;d({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,s=h,a(f)},onFinish(){var u;let f=Object.assign({},r,{status:"finished",percentage:s});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:s});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 Mp(e,t,r,{method:o,action:n,withCredentials:i,responseType:l,headers:d,data:a}){const s=new XMLHttpRequest;s.responseType=l,e.xhrMap.set(r.id,s),s.withCredentials=i;const u=new FormData;if(Rp(u,a,r),u.append(t,r.file),Ip(e,r,s),n!==void 0){s.open(o.toUpperCase(),n),_p(s,d,r),s.send(u);const f=Object.assign({},r,{status:"uploading"});e.doChange(f)}}const Op=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:Op,setup(e){e.abstract&&e.listType==="image-card"&&Pt("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=Re(e),o=ae("Upload","-upload",$p,Oh,e,t),n=Pn(e),i=D(()=>{const{max:$}=e;return $!==void 0?p.value.length>=$:!1}),l=O(e.defaultFileList),d=ee(e,"fileList"),a=O(null),s={value:!1},u=O(!1),f=new Map,h=nr(d,l),p=D(()=>h.value.map(Bt));function v(){var $;($=a.value)===null||$===void 0||$.click()}function y($){const _=$.target;P(_.files?Array.from(_.files).map(K=>({file:K,entry:null,source:"input"})):null,$),_.value=""}function w($){const{"onUpdate:fileList":_,onUpdateFileList:K}=e;_&&me(_,$),K&&me(K,$),l.value=$}const x=D(()=>e.multiple||e.directory);function P($,_){if(!$||$.length===0)return;const{onBeforeUpload:K}=e;$=x.value?$:[$[0]];const{max:F,accept:M}=e;$=$.filter(({file:T,source:H})=>H==="dnd"&&(M!=null&&M.trim())?bp(T.name,T.type,M):!0),F&&($=$.slice(0,F-p.value.length));const C=$r();Promise.all($.map(({file:T,entry:H})=>ln(this,void 0,void 0,function*(){var N;const Y={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:Y,fileList:p.value}))!==!1?Y:null}))).then(T=>ln(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($){const{method:_,action:K,withCredentials:F,headers:M,data:C,name:T}=e,H=$!==void 0?p.value.filter(Y=>Y.id===$):p.value,N=$!==void 0;H.forEach(Y=>{const{status:re}=Y;(re==="pending"||re==="error"&&N)&&(e.customRequest?Tp({inst:{doChange:b,xhrMap:f,onFinish:e.onFinish,onError:e.onError},file:Y,action:K,withCredentials:F,headers:M,data:C,customRequest:e.customRequest}):Mp({doChange:b,xhrMap:f,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},T,Y,{method:_,action:K,withCredentials:F,responseType:e.responseType,headers:M,data:C}))})}const b=($,_,K={append:!1,remove:!1})=>{const{append:F,remove:M}=K,C=Array.from(p.value),T=C.findIndex(H=>H.id===$.id);if(F||M||~T){F?C.push($):M?C.splice(T,1):C.splice(T,1,$);const{onChange:H}=e;H&&H({file:$,fileList:C,event:_}),w(C)}};function m($){var _;if($.thumbnailUrl)return $.thumbnailUrl;const{createThumbnailUrl:K}=e;return K?(_=K($.file,$))!==null&&_!==void 0?_:$.url||"":$.url?$.url:$.file?hp($.file):""}const R=D(()=>{const{common:{cubicBezierEaseInOut:$},self:{draggerColor:_,draggerBorder:K,draggerBorderHover:F,itemColorHover:M,itemColorHoverError:C,itemTextColorError:T,itemTextColorSuccess:H,itemTextColor:N,itemIconColor:Y,itemDisabledOpacity:re,lineHeight:ve,borderRadius:Ce,fontSize:W,itemBorderImageCardError:oe,itemBorderImageCard:Q}}=o.value;return{"--n-bezier":$,"--n-border-radius":Ce,"--n-dragger-border":K,"--n-dragger-border-hover":F,"--n-dragger-color":_,"--n-font-size":W,"--n-item-color-hover":M,"--n-item-color-hover-error":C,"--n-item-disabled-opacity":re,"--n-item-icon-color":Y,"--n-item-text-color":N,"--n-item-text-color-error":T,"--n-item-text-color-success":H,"--n-line-height":ve,"--n-item-border-image-card-error":oe,"--n-item-border-image-card":Q}}),z=r?Fe("upload",void 0,R,e):void 0;_e(zt,{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:s,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:z==null?void 0:z.themeClass,onRender:z==null?void 0:z.onRender,showTriggerRef:ee(e,"showTrigger"),imageGroupPropsRef:ee(e,"imageGroupProps"),mergedDirectoryDndRef:D(()=>{var $;return($=e.directoryDnd)!==null&&$!==void 0?$:e.directory})});const A={clear:()=>{l.value=[]},submit:k,openOpenFileDialog:v};return Object.assign({mergedClsPrefix:t,draggerInsideRef:s,inputElRef:a,mergedTheme:o,dragOver:u,mergedMultiple:x,cssVars:r?void 0:R,themeClass:z==null?void 0:z.themeClass,onRender:z==null?void 0:z.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 d=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"},d)):(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},d,this.showTrigger&&this.listType!=="image-card"&&c(Ti,null,n),this.showFileList&&c(Pp,null,n)))}}),sn="/web/assets/setting-c6ca7b14.svg",At=Zr("prompt-store",()=>{const e=O([{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=O(!1),r=O(!1),o=O([]),n=O(""),i=O(0),l=O({isShow:!1,newPrompt:{act:"",prompt:""}}),d=D(()=>{var s;return n.value?(s=o.value)==null?void 0:s.filter(u=>u.act.includes(n.value)||u.prompt.includes(n.value)):o.value});function a(s){if(s instanceof Array&&s.every(u=>u.act&&u.prompt)){if(o.value.length===0)return o.value.push(...s),{result:!0,data:{successCount:s.length}};const u=s.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:d,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?(te(),Se("a",{key:0,href:t.navConfig.url,target:"_blank",rel:"noopener noreferrer"},Ue(t.navConfig.label),9,Lp)):(te(),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=be("p",{class:"text-left"},"提示:形容词+名词+动词+风格,描述得越详细时,效果越好。",-1),dn="骑着摩托的小猫咪,疾驰在路上,动漫场景,详细的细节。",Up=q({__name:"CreateImage",props:{show:{type:Boolean}},emits:["update:show"],setup(e,{emit:t}){const r=e,o=$t(),n=O(""),i=O(""),l=O(!1),d=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()}`},s=()=>{n.value="",i.value=""},u=()=>(n.value=dn,a());return(f,h)=>(te(),ke(E(ut),{class:"w-11/12 lg:w-[540px] select-none",show:d.value,"onUpdate:show":h[2]||(h[2]=p=>d.value=p),"on-close":s,preset:"card",title:"图像创建"},{default:X(()=>[be("head",Fp,[G(E(Qe),{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:X(()=>[se("开始创建")]),_:1},8,["loading"])]),be("main",Np,[i.value?(te(),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)):(te(),ke(E(no),{key:1,class:"h-[40vh] xl:h-[60vh] flex justify-center items-center",description:"暂未创建"},{extra:X(()=>[G(E(ce),{secondary:"",type:"info",onClick:u},{default:X(()=>[se("使用示例创建")]),_:1}),be("div",{class:"text-[#c2c2c2] px-2 xl:px-10"},[jp,be("p",{class:"text-left"},"示例:"+Ue(dn))])]),_:1}))])]),_:1},8,["show"]))}}),co=Zr("chat-store",()=>{const e="/sydney/ChatHub",t=O(!1),r=O(""),o=O([{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 d=>{if(!d.baseUrl)return{isUsable:!1,errorMsg:"链接不可为空"};try{const a=Date.now(),s=new WebSocket(d.baseUrl.replace("http","ws")+e),u=setTimeout(()=>{s.close()},n);return await new Promise((f,h)=>{s.onopen=()=>{clearTimeout(u),f(s.close())},s.onerror=()=>{clearTimeout(u),h(new Error(`聊天服务器 ${d.baseUrl} 连接失败`))},s.onclose=()=>h(new Error(`聊天服务器 ${d.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 d=o.value.filter(a=>a.baseUrl).map(async a=>{const s=await i(a);a.isUsable=s.isUsable,a.delay=s.delay});await Promise.all(d)}}},{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 uo=(e=>(e[e.OK=200]="OK",e[e.Unauthorized=401]="Unauthorized",e))(uo||{});const Ri=Zr("user-store",()=>{const t="_U",r="BingAI_Rand_IP",o="BingAI_Auth_Key",n=O(),i=async()=>{const v=await qp.getSysConfig();return v.code===uo.OK&&(n.value={...n.value,...v.data}),v},l=()=>{const v=new Date;return v.setMinutes(v.getMinutes()+CIB.config.sydney.expiryInMinutes),v},d=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),d(v))},a=()=>st.get(t)||"",s=()=>{a()||(CIB.config.features.enableGetChats=!1,CIB.vm.sidePanel.isVisibleMobile=!1,CIB.vm.sidePanel.isVisibleDesktop=!1,d())},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.delete(y),console.log("del cache : ",y)};return{sysConfig:n,getSysConfig:i,getUserToken:a,checkUserToken:s,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=be("div",{class:"text-3xl py-2"},"设置用户",-1),Xp=be("div",{class:"text-xl py-2"},"将删除包括 Cookie 等的所有缓存?",-1),Yp=q({__name:"ChatNav",setup(e){const t=O(!1),r=O(!1),o=O(""),n=$t(),i=At(),{isShowPromptSotre:l}=ot(i),d=O(!1),a=O(!1),s=co(),{isShowChatServiceSelectModal:u}=ot(s),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.6");break;case h.chatService:u.value=!0,s.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:d.value=!0;break}},w=async()=>{d.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)=>(te(),Se(Ve,null,[E(_i)()?(te(),ke(E(rn),{key:0,class:"select-none",show:t.value,options:p,"render-label":v,onSelect:y},{default:X(()=>[G(E(Lr),{class:"fixed top-6 right-4 cursor-pointer z-50",src:E(sn),alt:"设置菜单","preview-disabled":!0,onClick:k[0]||(k[0]=b=>t.value=!t.value)},null,8,["src"])]),_:1},8,["show"])):(te(),ke(E(rn),{key:1,class:"select-none",trigger:"hover",options:p,"render-label":v,onSelect:y},{default:X(()=>[G(E(Lr),{class:"fixed top-6 right-6 cursor-pointer z-50",src:E(sn),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:X(()=>[Gp]),action:X(()=>[G(E(ce),{size:"large",onClick:k[2]||(k[2]=b=>r.value=!1)},{default:X(()=>[se("取消")]),_:1}),G(E(ce),{ghost:"",size:"large",type:"info",onClick:x},{default:X(()=>[se("保存")]),_:1})]),default:X(()=>[G(E(Qe),{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:d.value,"onUpdate:show":k[5]||(k[5]=b=>d.value=b),preset:"dialog","show-icon":!1},{header:X(()=>[Xp]),action:X(()=>[G(E(ce),{size:"large",onClick:k[4]||(k[4]=b=>d.value=!1)},{default:X(()=>[se("取消")]),_:1}),G(E(ce),{ghost:"",size:"large",type:"error",onClick:w},{default:X(()=>[se("确定")]),_:1})]),_:1},8,["show"]),G(Up,{show:a.value,"onUpdate:show":k[6]||(k[6]=b=>a.value=b)},null,8,["show"])],64))}});function cn(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(((s=e.onFinish)===null||s===void 0?void 0:s.call(e,{file:u,event:a}))||u),o(u,a)}return{handleXHRLoad:d,handleXHRError:l,handleXHRAbort(a){const s=Object.assign({},t,{status:"removed",file:null,percentage:i});n.delete(t.id),o(s,a)},handleXHRProgress(a){const s=Object.assign({},t,{status:"uploading"});if(a.lengthComputable){const u=Math.ceil(a.loaded/a.total*100);s.percentage=u,i=u}o(s,a)}}}function Tp(e){const{inst:t,file:r,data:o,headers:n,withCredentials:i,action:l,customRequest:d}=e,{doChange:a}=e.inst;let s=0;d({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,s=h,a(f)},onFinish(){var u;let f=Object.assign({},r,{status:"finished",percentage:s});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:s});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 Mp(e,t,r,{method:o,action:n,withCredentials:i,responseType:l,headers:d,data:a}){const s=new XMLHttpRequest;s.responseType=l,e.xhrMap.set(r.id,s),s.withCredentials=i;const u=new FormData;if(Rp(u,a,r),u.append(t,r.file),Ip(e,r,s),n!==void 0){s.open(o.toUpperCase(),n),_p(s,d,r),s.send(u);const f=Object.assign({},r,{status:"uploading"});e.doChange(f)}}const Op=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:Op,setup(e){e.abstract&&e.listType==="image-card"&&Pt("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=Re(e),o=ae("Upload","-upload",$p,Oh,e,t),n=Pn(e),i=D(()=>{const{max:$}=e;return $!==void 0?p.value.length>=$:!1}),l=O(e.defaultFileList),d=ee(e,"fileList"),a=O(null),s={value:!1},u=O(!1),f=new Map,h=nr(d,l),p=D(()=>h.value.map(Bt));function v(){var $;($=a.value)===null||$===void 0||$.click()}function y($){const _=$.target;P(_.files?Array.from(_.files).map(K=>({file:K,entry:null,source:"input"})):null,$),_.value=""}function w($){const{"onUpdate:fileList":_,onUpdateFileList:K}=e;_&&me(_,$),K&&me(K,$),l.value=$}const x=D(()=>e.multiple||e.directory);function P($,_){if(!$||$.length===0)return;const{onBeforeUpload:K}=e;$=x.value?$:[$[0]];const{max:F,accept:M}=e;$=$.filter(({file:T,source:H})=>H==="dnd"&&(M!=null&&M.trim())?bp(T.name,T.type,M):!0),F&&($=$.slice(0,F-p.value.length));const C=$r();Promise.all($.map(({file:T,entry:H})=>ln(this,void 0,void 0,function*(){var N;const Y={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:Y,fileList:p.value}))!==!1?Y:null}))).then(T=>ln(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($){const{method:_,action:K,withCredentials:F,headers:M,data:C,name:T}=e,H=$!==void 0?p.value.filter(Y=>Y.id===$):p.value,N=$!==void 0;H.forEach(Y=>{const{status:re}=Y;(re==="pending"||re==="error"&&N)&&(e.customRequest?Tp({inst:{doChange:b,xhrMap:f,onFinish:e.onFinish,onError:e.onError},file:Y,action:K,withCredentials:F,headers:M,data:C,customRequest:e.customRequest}):Mp({doChange:b,xhrMap:f,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},T,Y,{method:_,action:K,withCredentials:F,responseType:e.responseType,headers:M,data:C}))})}const b=($,_,K={append:!1,remove:!1})=>{const{append:F,remove:M}=K,C=Array.from(p.value),T=C.findIndex(H=>H.id===$.id);if(F||M||~T){F?C.push($):M?C.splice(T,1):C.splice(T,1,$);const{onChange:H}=e;H&&H({file:$,fileList:C,event:_}),w(C)}};function m($){var _;if($.thumbnailUrl)return $.thumbnailUrl;const{createThumbnailUrl:K}=e;return K?(_=K($.file,$))!==null&&_!==void 0?_:$.url||"":$.url?$.url:$.file?hp($.file):""}const R=D(()=>{const{common:{cubicBezierEaseInOut:$},self:{draggerColor:_,draggerBorder:K,draggerBorderHover:F,itemColorHover:M,itemColorHoverError:C,itemTextColorError:T,itemTextColorSuccess:H,itemTextColor:N,itemIconColor:Y,itemDisabledOpacity:re,lineHeight:ve,borderRadius:Ce,fontSize:W,itemBorderImageCardError:oe,itemBorderImageCard:Q}}=o.value;return{"--n-bezier":$,"--n-border-radius":Ce,"--n-dragger-border":K,"--n-dragger-border-hover":F,"--n-dragger-color":_,"--n-font-size":W,"--n-item-color-hover":M,"--n-item-color-hover-error":C,"--n-item-disabled-opacity":re,"--n-item-icon-color":Y,"--n-item-text-color":N,"--n-item-text-color-error":T,"--n-item-text-color-success":H,"--n-line-height":ve,"--n-item-border-image-card-error":oe,"--n-item-border-image-card":Q}}),z=r?Fe("upload",void 0,R,e):void 0;_e(zt,{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:s,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:z==null?void 0:z.themeClass,onRender:z==null?void 0:z.onRender,showTriggerRef:ee(e,"showTrigger"),imageGroupPropsRef:ee(e,"imageGroupProps"),mergedDirectoryDndRef:D(()=>{var $;return($=e.directoryDnd)!==null&&$!==void 0?$:e.directory})});const A={clear:()=>{l.value=[]},submit:k,openOpenFileDialog:v};return Object.assign({mergedClsPrefix:t,draggerInsideRef:s,inputElRef:a,mergedTheme:o,dragOver:u,mergedMultiple:x,cssVars:r?void 0:R,themeClass:z==null?void 0:z.themeClass,onRender:z==null?void 0:z.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 d=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"},d)):(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},d,this.showTrigger&&this.listType!=="image-card"&&c(Ti,null,n),this.showFileList&&c(Pp,null,n)))}}),sn="/web/assets/setting-c6ca7b14.svg",At=Zr("prompt-store",()=>{const e=O([{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=O(!1),r=O(!1),o=O([]),n=O(""),i=O(0),l=O({isShow:!1,newPrompt:{act:"",prompt:""}}),d=D(()=>{var s;return n.value?(s=o.value)==null?void 0:s.filter(u=>u.act.includes(n.value)||u.prompt.includes(n.value)):o.value});function a(s){if(s instanceof Array&&s.every(u=>u.act&&u.prompt)){if(o.value.length===0)return o.value.push(...s),{result:!0,data:{successCount:s.length}};const u=s.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:d,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?(te(),Se("a",{key:0,href:t.navConfig.url,target:"_blank",rel:"noopener noreferrer"},Ue(t.navConfig.label),9,Lp)):(te(),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=be("p",{class:"text-left"},"提示:形容词+名词+动词+风格,描述得越详细时,效果越好。",-1),dn="骑着摩托的小猫咪,疾驰在路上,动漫场景,详细的细节。",Up=q({__name:"CreateImage",props:{show:{type:Boolean}},emits:["update:show"],setup(e,{emit:t}){const r=e,o=$t(),n=O(""),i=O(""),l=O(!1),d=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()}`},s=()=>{n.value="",i.value=""},u=()=>(n.value=dn,a());return(f,h)=>(te(),ke(E(ut),{class:"w-11/12 lg:w-[540px] select-none",show:d.value,"onUpdate:show":h[2]||(h[2]=p=>d.value=p),"on-close":s,preset:"card",title:"图像创建"},{default:X(()=>[be("head",Fp,[G(E(Qe),{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:X(()=>[se("开始创建")]),_:1},8,["loading"])]),be("main",Np,[i.value?(te(),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)):(te(),ke(E(no),{key:1,class:"h-[40vh] xl:h-[60vh] flex justify-center items-center",description:"暂未创建"},{extra:X(()=>[G(E(ce),{secondary:"",type:"info",onClick:u},{default:X(()=>[se("使用示例创建")]),_:1}),be("div",{class:"text-[#c2c2c2] px-2 xl:px-10"},[jp,be("p",{class:"text-left"},"示例:"+Ue(dn))])]),_:1}))])]),_:1},8,["show"]))}}),co=Zr("chat-store",()=>{const e="/sydney/ChatHub",t=O(!1),r=O(""),o=O([{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 d=>{if(!d.baseUrl)return{isUsable:!1,errorMsg:"链接不可为空"};try{const a=Date.now(),s=new WebSocket(d.baseUrl.replace("http","ws")+e),u=setTimeout(()=>{s.close()},n);return await new Promise((f,h)=>{s.onopen=()=>{clearTimeout(u),f(s.close())},s.onerror=()=>{clearTimeout(u),h(new Error(`聊天服务器 ${d.baseUrl} 连接失败`))},s.onclose=()=>h(new Error(`聊天服务器 ${d.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 d=o.value.filter(a=>a.baseUrl).map(async a=>{const s=await i(a);a.isUsable=s.isUsable,a.delay=s.delay});await Promise.all(d)}}},{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 uo=(e=>(e[e.OK=200]="OK",e[e.Unauthorized=401]="Unauthorized",e))(uo||{});const Ri=Zr("user-store",()=>{const t="_U",r="BingAI_Rand_IP",o="BingAI_Auth_Key",n=O(),i=async()=>{const v=await qp.getSysConfig();return v.code===uo.OK&&(n.value={...n.value,...v.data}),v},l=()=>{const v=new Date;return v.setMinutes(v.getMinutes()+CIB.config.sydney.expiryInMinutes),v},d=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),d(v))},a=()=>st.get(t)||"",s=()=>{a()||(CIB.config.features.enableGetChats=!1,CIB.vm.sidePanel.isVisibleMobile=!1,CIB.vm.sidePanel.isVisibleDesktop=!1,d())},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.delete(y),console.log("del cache : ",y)};return{sysConfig:n,getSysConfig:i,getUserToken:a,checkUserToken:s,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=be("div",{class:"text-3xl py-2"},"设置用户",-1),Xp=be("div",{class:"text-xl py-2"},"将删除包括 Cookie 等的所有缓存?",-1),Yp=q({__name:"ChatNav",setup(e){const t=O(!1),r=O(!1),o=O(""),n=$t(),i=At(),{isShowPromptSotre:l}=ot(i),d=O(!1),a=O(!1),s=co(),{isShowChatServiceSelectModal:u}=ot(s),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.7");break;case h.chatService:u.value=!0,s.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:d.value=!0;break}},w=async()=>{d.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)=>(te(),Se(Ve,null,[E(_i)()?(te(),ke(E(rn),{key:0,class:"select-none",show:t.value,options:p,"render-label":v,onSelect:y},{default:X(()=>[G(E(Lr),{class:"fixed top-6 right-4 cursor-pointer z-50",src:E(sn),alt:"设置菜单","preview-disabled":!0,onClick:k[0]||(k[0]=b=>t.value=!t.value)},null,8,["src"])]),_:1},8,["show"])):(te(),ke(E(rn),{key:1,class:"select-none",trigger:"hover",options:p,"render-label":v,onSelect:y},{default:X(()=>[G(E(Lr),{class:"fixed top-6 right-6 cursor-pointer z-50",src:E(sn),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:X(()=>[Gp]),action:X(()=>[G(E(ce),{size:"large",onClick:k[2]||(k[2]=b=>r.value=!1)},{default:X(()=>[se("取消")]),_:1}),G(E(ce),{ghost:"",size:"large",type:"info",onClick:x},{default:X(()=>[se("保存")]),_:1})]),default:X(()=>[G(E(Qe),{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:d.value,"onUpdate:show":k[5]||(k[5]=b=>d.value=b),preset:"dialog","show-icon":!1},{header:X(()=>[Xp]),action:X(()=>[G(E(ce),{size:"large",onClick:k[4]||(k[4]=b=>d.value=!1)},{default:X(()=>[se("取消")]),_:1}),G(E(ce),{ghost:"",size:"large",type:"error",onClick:w},{default:X(()=>[se("确定")]),_:1})]),_:1},8,["show"]),G(Up,{show:a.value,"onUpdate:show":k[6]||(k[6]=b=>a.value=b)},null,8,["show"])],64))}});function cn(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[d]=C,document.documentElement[d]=C):s.value&&(s.value[d]=C)},z=function(){for(var C=[],T=a.value,H=T.start,N=T.end,Y=t.dataSources,re=t.dataKey,ve=t.itemClass,Ce=t.itemTag,W=t.itemStyle,oe=t.extraProps,Q=t.dataComponent,we=t.itemScopedSlots,ye=H;ye<=N;ye++){var ne=Y[ye];if(ne){var Le=typeof re=="function"?re(ne):ne[re];typeof Le=="string"||typeof Le=="number"?C.push(G(dv,{index:ye,tag:Ce,event:Ot.ITEM,horizontal:l,uniqueKey:Le,source:ne,extraProps:oe,component:Q,scopedSlots:we,style:W,class:"".concat(ve).concat(t.itemClassAdd?" "+t.itemClassAdd(ye):""),onItemResize:A},null)):console.warn("Cannot get the data-key '".concat(re,"' from data-sources."))}else console.warn("Cannot get the index '".concat(ye,"' from data-sources."))}return C},A=function(C,T){f.saveSize(C,T),o("resized",C,T)},$=function(C,T,H){C===mt.HEADER?f.updateParam("slotHeaderSize",T):C===mt.FOOTER&&f.updateParam("slotFooterSize",T),H&&f.handleSlotSizeChange()},_=function M(){if(u.value){var C=u.value[l?"offsetLeft":"offsetTop"];R(C),setTimeout(function(){p()+v(){o.value=o.value.filter(a=>a.act!==d.act&&a.prompt!==d.prompt),t.success("删除提示词成功")},l=d=>{n.value.isShow=!0,n.value.type="edit",n.value.title="编辑提示词",n.value.tmpPrompt=d,n.value.newPrompt={...d}};return(d,a)=>(te(),ke(E(Si),{class:"hover:bg-gray-100 cursor-pointer p-5"},{description:X(()=>[G(E(er),{type:"info"},{default:X(()=>[be("span",cv,Ue(d.source.act),1)]),_:1}),be("div",uv,[G(E(ce),{secondary:"",type:"info",size:"small",onClick:a[0]||(a[0]=s=>l(d.source))},{default:X(()=>[se("编辑")]),_:1}),G(E(ce),{secondary:"",class:"ml-2",type:"error",size:"small",onClick:a[1]||(a[1]=s=>i(d.source))},{default:X(()=>[se("删除")]),_:1})])]),default:X(()=>[G(E(hi),{tooltip:!1,"line-clamp":2},{default:X(()=>[se(Ue(d.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=$t(),r=At(),{promptDownloadConfig:o,isShowPromptSotre:n,promptList:i,keyword:l,searchPromptList:d,optPromptConfig:a}=ot(r),s=O(!1),u=O(!1),f=O(!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(z=>z.act===(b==null?void 0:b.act)&&z.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(z){var A;b((A=z.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),z=r.addPrompt(R);z.result?(t.info(`上传文件含 ${R.length} 条数据`),t.success(`成功导入 ${(b=z.data)==null?void 0:b.successCount} 条有效数据`)):t.error(z.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(z=>z.json());else if(k.url.endsWith(".csv")){const z=await fetch(k.url).then(A=>A.text());console.log(z),b=z.split(` `).filter(A=>A).map(A=>{var _;const $=A.split('","');return{act:$[0].slice(1),prompt:(_=$[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)=>(te(),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:X(()=>[be("div",hv,[G(E(Qe),{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=>s.value=!0)},{default:X(()=>[se("下载")]),_:1}),G(E(ce),{secondary:"",type:"info",onClick:h},{default:X(()=>[se("添加")]),_:1}),G(E(Bp),{class:"w-[56px] xl:w-auto",accept:".json","default-upload":!1,"show-file-list":!1,onChange:y},{default:X(()=>[G(E(ce),{secondary:"",type:"success",loading:u.value},{default:X(()=>[se("导入")]),_:1},8,["loading"])]),_:1}),G(E(ce),{secondary:"",type:"success",onClick:w,loading:f.value},{default:X(()=>[se("导出")]),_:1},8,["loading"]),G(E(ce),{secondary:"",type:"error",onClick:x},{default:X(()=>[se("清空")]),_:1})]),E(d).length>0?(te(),ke(E(Oi),{key:0,class:"h-[40vh] xl:h-[60vh] overflow-y-auto","data-key":"prompt","data-sources":E(d),"data-component":fv,keeps:10},null,8,["data-sources"])):(te(),ke(E(no),{key:1,class:"h-[40vh] xl:h-[60vh] flex justify-center items-center",description:"暂无数据"},{extra:X(()=>[G(E(ce),{secondary:"",type:"info",onClick:b[2]||(b[2]=m=>s.value=!0)},{default:X(()=>[se("下载提示词")]),_: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:X(()=>[G(E(fh),{vertical:""},{default:X(()=>[se(" 标题 "),G(E(Qe),{placeholder:"请输入标题",value:E(a).newPrompt.act,"onUpdate:value":b[4]||(b[4]=m=>E(a).newPrompt.act=m)},null,8,["value"]),se(" 描述 "),G(E(Qe),{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:X(()=>[se("保存")]),_:1})]),_:1})]),_:1},8,["show","title"]),G(E(ut),{class:"w-11/12 xl:w-[600px]",show:s.value,"onUpdate:show":b[7]||(b[7]=m=>s.value=m),preset:"card",title:"下载提示词"},{default:X(()=>[G(E(Uh),{class:"overflow-y-auto rounded-lg",hoverable:"",clickable:""},{default:X(()=>[(te(!0),Se(Ve,null,Rn(E(o),(m,R)=>(te(),ke(E(Wh),{key:R},{suffix:X(()=>[be("div",vv,[m.type===1?(te(),Se("a",{key:0,class:"no-underline",href:m.refer,target:"_blank",rel:"noopener noreferrer"},[G(E(ce),{secondary:""},{default:X(()=>[se("来源")]),_:1})],8,gv)):Je("",!0),G(E(ce),{secondary:"",type:"info",onClick:z=>P(m),loading:m.isDownloading},{default:X(()=>[se("下载")]),_:2},1032,["onClick","loading"])])]),default:X(()=>[m.type===1?(te(),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?(te(),ke(E(Qe),{key:1,placeholder:"请输入下载链接,支持 json 及 csv ",value:m.url,"onUpdate:value":z=>m.url=z},null,8,["value","onUpdate:value"])):Je("",!0)]),_:2},1024))),128))]),_:1})]),_:1},8,["show"])],64))}}),bv=`/* 移除顶部背景遮挡 */\r .scroller>.top {\r diff --git a/web/assets/index-4b631cfd.css b/web/assets/index-4b631cfd.css deleted file mode 100644 index d4a4c74052..0000000000 --- a/web/assets/index-4b631cfd.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.fixed{position:fixed}.absolute{position:absolute}.bottom-\[110px\]{bottom:110px}.left-0{left:0px}.left-6{left:1.5rem}.right-4{right:1rem}.right-6{right:1.5rem}.top-0{top:0px}.top-6{top:1.5rem}.z-50{z-index:50}.float-right{float:right}.my-4{margin-top:1rem;margin-bottom:1rem}.ml-2{margin-left:.5rem}.mt-4{margin-top:1rem}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.hidden{display:none}.h-\[130px\]{height:130px}.h-\[30vh\]{height:30vh}.h-\[350px\]{height:350px}.h-\[40vh\]{height:40vh}.h-screen{height:100vh}.max-h-\[390px\]{max-height:390px}.w-0{width:0px}.w-11\/12{width:91.666667%}.w-\[310px\]{width:310px}.w-\[56px\]{width:56px}.w-full{width:100%}.w-screen{width:100vw}.max-w-\[1060px\]{max-width:1060px}.max-w-\[120px\]{max-width:120px}.max-w-\[310px\]{max-width:310px}.flex-1{flex:1 1 0%}.basis-full{flex-basis:100%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-5{gap:1.25rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.text-ellipsis{text-overflow:ellipsis}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.bg-black\/40{background-color:#0006}.bg-blue-100\/10{background-color:#dbeafe1a}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-5{padding:1.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\[14px\]{padding-left:14px;padding-right:14px}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-2{padding-bottom:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-\[\#c2c2c2\]{--tw-text-opacity: 1;color:rgb(194 194 194 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.cib-serp-main{overflow:hidden}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}@media (min-width: 768px){.md\:w-\[60px\]{width:60px}.md\:px-\[170px\]{padding-left:170px;padding-right:170px}.md\:px-\[34px\]{padding-left:34px;padding-right:34px}}@media (min-width: 1024px){.lg\:block{display:block}.lg\:table-cell{display:table-cell}.lg\:hidden{display:none}.lg\:w-\[400px\]{width:400px}.lg\:w-\[540px\]{width:540px}.lg\:w-\[900px\]{width:900px}}@media (min-width: 1280px){.xl\:h-\[520px\]{height:520px}.xl\:h-\[60vh\]{height:60vh}.xl\:w-\[400px\]{width:400px}.xl\:w-\[475px\]{width:475px}.xl\:w-\[600px\]{width:600px}.xl\:w-\[900px\]{width:900px}.xl\:w-auto{width:auto}.xl\:min-w-\[300px\]{min-width:300px}.xl\:max-w-\[650px\]{max-width:650px}.xl\:basis-0{flex-basis:0px}.xl\:px-10{padding-left:2.5rem;padding-right:2.5rem}.xl\:px-\[220px\]{padding-left:220px;padding-right:220px}} diff --git a/web/assets/index-3378e00b.js b/web/assets/index-63d32cbb.js similarity index 99% rename from web/assets/index-3378e00b.js rename to web/assets/index-63d32cbb.js index bd1a860116..185681cd88 100644 --- a/web/assets/index-3378e00b.js +++ b/web/assets/index-63d32cbb.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-199bf4d7.js"),["assets/index-199bf4d7.js","assets/index-1dc749ba.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-3a8b3b00.js"),["assets/index-3a8b3b00.js","assets/index-1dc749ba.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/index.html b/web/index.html index 3ecb23cdc3..a982e0c6ef 100644 --- a/web/index.html +++ b/web/index.html @@ -40,8 +40,8 @@ - - + + diff --git a/web/sw.js b/web/sw.js index 05e601fb22..6497451181 100644 --- a/web/sw.js +++ b/web/sw.js @@ -1,2 +1,2 @@ -try{self["workbox:core:6.5.4"]&&_()}catch{}const z=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},J=z;class l extends Error{constructor(e,t){const n=J(e,t);super(n),this.name=e,this.details=t}}const d={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},D=s=>[d.prefix,s,d.suffix].filter(e=>e&&e.length>0).join("-"),X=s=>{for(const e of Object.keys(d))s(e)},b={updateDetails:s=>{X(e=>{typeof s[e]=="string"&&(d[e]=s[e])})},getGoogleAnalyticsName:s=>s||D(d.googleAnalytics),getPrecacheName:s=>s||D(d.precache),getPrefix:()=>d.prefix,getRuntimeName:s=>s||D(d.runtime),getSuffix:()=>d.suffix};function v(s,e){const t=e();return s.waitUntil(t),t}try{self["workbox:precaching:6.5.4"]&&_()}catch{}const Y="__WB_REVISION__";function Z(s){if(!s)throw new l("add-to-cache-list-unexpected-type",{entry:s});if(typeof s=="string"){const r=new URL(s,location.href);return{cacheKey:r.href,url:r.href}}const{revision:e,url:t}=s;if(!t)throw new l("add-to-cache-list-unexpected-type",{entry:s});if(!e){const r=new URL(t,location.href);return{cacheKey:r.href,url:r.href}}const n=new URL(t,location.href),a=new URL(t,location.href);return n.searchParams.set(Y,e),{cacheKey:n.href,url:a.href}}class ee{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:n})=>{if(e.type==="install"&&t&&t.originalRequest&&t.originalRequest instanceof Request){const a=t.originalRequest.url;n?this.notUpdatedURLs.push(a):this.updatedURLs.push(a)}return n}}}class te{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:t,params:n})=>{const a=(n==null?void 0:n.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return a?new Request(a,{headers:t.headers}):t},this._precacheController=e}}let w;function se(){if(w===void 0){const s=new Response("");if("body"in s)try{new Response(s.body),w=!0}catch{w=!1}w=!1}return w}async function ne(s,e){let t=null;if(s.url&&(t=new URL(s.url).origin),t!==self.location.origin)throw new l("cross-origin-copy-response",{origin:t});const n=s.clone(),a={headers:new Headers(n.headers),status:n.status,statusText:n.statusText},r=e?e(a):a,i=se()?n.body:await n.blob();return new Response(i,r)}const ae=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function S(s,e){const t=new URL(s);for(const n of e)t.searchParams.delete(n);return t.href}async function re(s,e,t,n){const a=S(e.url,t);if(e.url===a)return s.match(e,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),i=await s.keys(e,r);for(const c of i){const o=S(c.url,t);if(a===o)return s.match(c,n)}}class ie{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}const H=new Set;async function ce(){for(const s of H)await s()}function oe(s){return new Promise(e=>setTimeout(e,s))}try{self["workbox:strategies:6.5.4"]&&_()}catch{}function C(s){return typeof s=="string"?new Request(s):s}class he{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new ie,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const n of this._plugins)this._pluginStateMap.set(n,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let n=C(e);if(n.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const i=await t.preloadResponse;if(i)return i}const a=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const i of this.iterateCallbacks("requestWillFetch"))n=await i({request:n.clone(),event:t})}catch(i){if(i instanceof Error)throw new l("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const r=n.clone();try{let i;i=await fetch(n,n.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))i=await c({event:t,request:r,response:i});return i}catch(i){throw a&&await this.runCallbacks("fetchDidFail",{error:i,event:t,originalRequest:a.clone(),request:r.clone()}),i}}async fetchAndCachePut(e){const t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){const t=C(e);let n;const{cacheName:a,matchOptions:r}=this._strategy,i=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},r),{cacheName:a});n=await caches.match(i,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))n=await o({cacheName:a,matchOptions:r,cachedResponse:n,request:i,event:this.event})||void 0;return n}async cachePut(e,t){const n=C(e);await oe(0);const a=await this.getCacheKey(n,"write");if(!t)throw new l("cache-put-with-no-response",{url:ae(a.url)});const r=await this._ensureResponseSafeToCache(t);if(!r)return!1;const{cacheName:i,matchOptions:c}=this._strategy,o=await self.caches.open(i),h=this.hasCallback("cacheDidUpdate"),m=h?await re(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,h?r.clone():r)}catch(u){if(u instanceof Error)throw u.name==="QuotaExceededError"&&await ce(),u}for(const u of this.iterateCallbacks("cacheDidUpdate"))await u({cacheName:i,oldResponse:m,newResponse:r.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let a=e;for(const r of this.iterateCallbacks("cacheKeyWillBeUsed"))a=C(await r({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[n]=a}return this._cacheKeys[n]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const n=this._pluginStateMap.get(t);yield r=>{const i=Object.assign(Object.assign({},r),{state:n});return t[e](i)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,n=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&t.status!==200&&(t=void 0),t}}class N{constructor(e={}){this.cacheName=b.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,n=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,r=new he(this,{event:t,request:n,params:a}),i=this._getResponse(r,n,t),c=this._awaitComplete(i,r,n,t);return[i,c]}async _getResponse(e,t,n){await e.runCallbacks("handlerWillStart",{event:n,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new l("no-response",{url:t.url})}catch(r){if(r instanceof Error){for(const i of e.iterateCallbacks("handlerDidError"))if(a=await i({error:r,event:n,request:t}),a)break}if(!a)throw r}for(const r of e.iterateCallbacks("handlerWillRespond"))a=await r({event:n,request:t,response:a});return a}async _awaitComplete(e,t,n,a){let r,i;try{r=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:n,response:r}),await t.doneWaiting()}catch(c){c instanceof Error&&(i=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:n,response:r,error:i}),t.destroy(),i)throw i}}class p extends N{constructor(e={}){e.cacheName=b.getPrecacheName(e.cacheName),super(e),this._fallbackToNetwork=e.fallbackToNetwork!==!1,this.plugins.push(p.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const n=await t.cacheMatch(e);return n||(t.event&&t.event.type==="install"?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let n;const a=t.params||{};if(this._fallbackToNetwork){const r=a.integrity,i=e.integrity,c=!i||i===r;n=await t.fetch(new Request(e,{integrity:e.mode!=="no-cors"?i||r:void 0})),r&&c&&e.mode!=="no-cors"&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,n.clone()))}else throw new l("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return n}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const n=await t.fetch(e);if(!await t.cachePut(e,n.clone()))throw new l("bad-precaching-response",{url:e.url,status:n.status});return n}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[n,a]of this.plugins.entries())a!==p.copyRedirectedCacheableResponsesPlugin&&(a===p.defaultPrecacheCacheabilityPlugin&&(e=n),a.cacheWillUpdate&&t++);t===0?this.plugins.push(p.defaultPrecacheCacheabilityPlugin):t>1&&e!==null&&this.plugins.splice(e,1)}}p.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:s}){return!s||s.status>=400?null:s}};p.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:s}){return s.redirected?await ne(s):s}};class le{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:n=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new p({cacheName:b.getPrecacheName(e),plugins:[...t,new te({precacheController:this})],fallbackToNetwork:n}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const t=[];for(const n of e){typeof n=="string"?t.push(n):n&&n.revision===void 0&&t.push(n.url);const{cacheKey:a,url:r}=Z(n),i=typeof n!="string"&&n.revision?"reload":"default";if(this._urlsToCacheKeys.has(r)&&this._urlsToCacheKeys.get(r)!==a)throw new l("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(r),secondEntry:a});if(typeof n!="string"&&n.integrity){if(this._cacheKeysToIntegrities.has(a)&&this._cacheKeysToIntegrities.get(a)!==n.integrity)throw new l("add-to-cache-list-conflicting-integrities",{url:r});this._cacheKeysToIntegrities.set(a,n.integrity)}if(this._urlsToCacheKeys.set(r,a),this._urlsToCacheModes.set(r,i),t.length>0){const c=`Workbox is precaching URLs without revision info: ${t.join(", ")} -This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return v(e,async()=>{const t=new ee;this.strategy.plugins.push(t);for(const[r,i]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(i),o=this._urlsToCacheModes.get(r),h=new Request(r,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:i},request:h,event:e}))}const{updatedURLs:n,notUpdatedURLs:a}=t;return{updatedURLs:n,notUpdatedURLs:a}})}activate(e){return v(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),n=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),r=[];for(const i of n)a.has(i.url)||(await t.delete(i),r.push(i.url));return{deletedURLs:r}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,n=this.getCacheKeyForURL(t);if(n)return(await self.caches.open(this.strategy.cacheName)).match(n)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new l("non-precached-url",{url:e});return n=>(n.request=new Request(e),n.params=Object.assign({cacheKey:t},n.params),this.strategy.handle(n))}}let L;const M=()=>(L||(L=new le),L);try{self["workbox:routing:6.5.4"]&&_()}catch{}const q="GET",x=s=>s&&typeof s=="object"?s:{handle:s};class g{constructor(e,t,n=q){this.handler=x(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=x(e)}}class ue extends g{constructor(e,t,n){const a=({url:r})=>{const i=e.exec(r.href);if(i&&!(r.origin!==location.origin&&i.index!==0))return i.slice(1)};super(a,t,n)}}class de{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const r=new Request(...a);return this.handleRequest({request:r,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:n});let c=i&&i.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let h;try{h=c.handle({url:n,request:e,event:t,params:r})}catch(u){h=Promise.reject(u)}const m=i&&i.catchHandler;return h instanceof Promise&&(this._catchHandler||m)&&(h=h.catch(async u=>{if(m)try{return await m.handle({url:n,request:e,event:t,params:r})}catch(O){O instanceof Error&&(u=O)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw u})),h}findMatchingRoute({url:e,sameOrigin:t,request:n,event:a}){const r=this._routes.get(n.method)||[];for(const i of r){let c;const o=i.match({url:e,sameOrigin:t,request:n,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:i,params:c}}return{}}setDefaultHandler(e,t=q){this._defaultHandlerMap.set(t,x(e))}setCatchHandler(e){this._catchHandler=x(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new l("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new l("unregister-route-route-not-registered")}}let y;const fe=()=>(y||(y=new de,y.addFetchListener(),y.addCacheListener()),y);function E(s,e,t){let n;if(typeof s=="string"){const r=new URL(s,location.href),i=({url:c})=>c.href===r.href;n=new g(i,e,t)}else if(s instanceof RegExp)n=new ue(s,e,t);else if(typeof s=="function")n=new g(s,e,t);else if(s instanceof g)n=s;else throw new l("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return fe().registerRoute(n),n}function pe(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(n=>n.test(t))&&s.searchParams.delete(t);return s}function*ge(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(s,location.href);r.hash="",yield r.href;const i=pe(r,e);if(yield i.href,t&&i.pathname.endsWith("/")){const c=new URL(i.href);c.pathname+=t,yield c.href}if(n){const c=new URL(i.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:r});for(const o of c)yield o.href}}class me extends g{constructor(e,t){const n=({request:a})=>{const r=e.getURLsToCacheKeys();for(const i of ge(a.url,t)){const c=r.get(i);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(n,e.strategy)}}function we(s){const e=M(),t=new me(e,s);E(t)}const ye="-precache-",_e=async(s,e=ye)=>{const n=(await self.caches.keys()).filter(a=>a.includes(e)&&a.includes(self.registration.scope)&&a!==s);return await Promise.all(n.map(a=>self.caches.delete(a))),n};function Re(){self.addEventListener("activate",s=>{const e=b.getPrecacheName();s.waitUntil(_e(e).then(t=>{}))})}function be(s){return M().createHandlerBoundToURL(s)}function Ce(s){M().precache(s)}function xe(s,e){Ce(s),we(e)}class Ee extends g{constructor(e,{allowlist:t=[/./],denylist:n=[]}={}){super(a=>this._match(a),e),this._allowlist=t,this._denylist=n}_match({url:e,request:t}){if(t&&t.mode!=="navigate")return!1;const n=e.pathname+e.search;for(const a of this._denylist)if(a.test(n))return!1;return!!this._allowlist.some(a=>a.test(n))}}class De extends N{async _handle(e,t){let n=await t.cacheMatch(e),a;if(!n)try{n=await t.fetchAndCachePut(e)}catch(r){r instanceof Error&&(a=r)}if(!n)throw new l("no-response",{url:e.url,error:a});return n}}const Le={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class Ue extends N{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(Le)}async _handle(e,t){const n=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(n);let a=await t.cacheMatch(e),r;if(!a)try{a=await n}catch(i){i instanceof Error&&(r=i)}if(!a)throw new l("no-response",{url:e.url,error:r});return a}}try{self["workbox:cacheable-response:6.5.4"]&&_()}catch{}class Te{constructor(e={}){this._statuses=e.statuses,this._headers=e.headers}isResponseCacheable(e){let t=!0;return this._statuses&&(t=this._statuses.includes(e.status)),this._headers&&t&&(t=Object.keys(this._headers).some(n=>e.headers.get(n)===this._headers[n])),t}}class V{constructor(e){this.cacheWillUpdate=async({response:t})=>this._cacheableResponse.isResponseCacheable(t)?t:null,this._cacheableResponse=new Te(e)}}function $(s){s.then(()=>{})}const ke=(s,e)=>e.some(t=>s instanceof t);let W,B;function Pe(){return W||(W=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Ie(){return B||(B=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const G=new WeakMap,P=new WeakMap,Q=new WeakMap,U=new WeakMap,A=new WeakMap;function Ne(s){const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("success",r),s.removeEventListener("error",i)},r=()=>{t(f(s.result)),a()},i=()=>{n(s.error),a()};s.addEventListener("success",r),s.addEventListener("error",i)});return e.then(t=>{t instanceof IDBCursor&&G.set(t,s)}).catch(()=>{}),A.set(e,s),e}function Me(s){if(P.has(s))return;const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("complete",r),s.removeEventListener("error",i),s.removeEventListener("abort",i)},r=()=>{t(),a()},i=()=>{n(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",r),s.addEventListener("error",i),s.addEventListener("abort",i)});P.set(s,e)}let I={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return P.get(s);if(e==="objectStoreNames")return s.objectStoreNames||Q.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return f(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function Ae(s){I=s(I)}function Ke(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const n=s.call(T(this),e,...t);return Q.set(n,e.sort?e.sort():[e]),f(n)}:Ie().includes(s)?function(...e){return s.apply(T(this),e),f(G.get(this))}:function(...e){return f(s.apply(T(this),e))}}function Oe(s){return typeof s=="function"?Ke(s):(s instanceof IDBTransaction&&Me(s),ke(s,Pe())?new Proxy(s,I):s)}function f(s){if(s instanceof IDBRequest)return Ne(s);if(U.has(s))return U.get(s);const e=Oe(s);return e!==s&&(U.set(s,e),A.set(e,s)),e}const T=s=>A.get(s);function ve(s,e,{blocked:t,upgrade:n,blocking:a,terminated:r}={}){const i=indexedDB.open(s,e),c=f(i);return n&&i.addEventListener("upgradeneeded",o=>{n(f(i.result),o.oldVersion,o.newVersion,f(i.transaction),o)}),t&&i.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{r&&o.addEventListener("close",()=>r()),a&&o.addEventListener("versionchange",h=>a(h.oldVersion,h.newVersion,h))}).catch(()=>{}),c}function Se(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",n=>e(n.oldVersion,n)),f(t).then(()=>{})}const We=["get","getKey","getAll","getAllKeys","count"],Be=["put","add","delete","clear"],k=new Map;function j(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(k.get(e))return k.get(e);const t=e.replace(/FromIndex$/,""),n=e!==t,a=Be.includes(t);if(!(t in(n?IDBIndex:IDBObjectStore).prototype)||!(a||We.includes(t)))return;const r=async function(i,...c){const o=this.transaction(i,a?"readwrite":"readonly");let h=o.store;return n&&(h=h.index(c.shift())),(await Promise.all([h[t](...c),a&&o.done]))[0]};return k.set(e,r),r}Ae(s=>({...s,get:(e,t,n)=>j(e,t)||s.get(e,t,n),has:(e,t)=>!!j(e,t)||s.has(e,t)}));try{self["workbox:expiration:6.5.4"]&&_()}catch{}const je="workbox-expiration",R="cache-entries",F=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class Fe{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(R,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&Se(this._cacheName)}async setTimestamp(e,t){e=F(e);const n={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},r=(await this.getDb()).transaction(R,"readwrite",{durability:"relaxed"});await r.store.put(n),await r.done}async getTimestamp(e){const n=await(await this.getDb()).get(R,this._getId(e));return n==null?void 0:n.timestamp}async expireEntries(e,t){const n=await this.getDb();let a=await n.transaction(R).store.index("timestamp").openCursor(null,"prev");const r=[];let i=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp=t?r.push(a.value):i++),a=await a.continue()}const c=[];for(const o of r)await n.delete(R,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+F(e)}async getDb(){return this._db||(this._db=await ve(je,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class He{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new Fe(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),n=await self.caches.open(this._cacheName);for(const a of t)await n.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,$(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),n=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t{if(!r)return null;const i=this._isResponseDateFresh(r),c=this._getCacheExpiration(a);$(c.expireEntries());const o=c.updateTimestamp(n.url);if(t)try{t.waitUntil(o)}catch{}return i?r:null},this.cacheDidUpdate=async({cacheName:t,request:n})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(n.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&qe(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===b.getRuntimeName())throw new l("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new He(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const n=Date.now();return t>=n-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),a=new Date(t).getTime();return isNaN(a)?null:a}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}const K="BingAI";self.addEventListener("message",s=>{s.data&&s.data.type==="SKIP_WAITING"&&self.skipWaiting()});xe([{"revision":null,"url":"assets/index-199bf4d7.js"},{"revision":null,"url":"assets/index-1dc749ba.css"},{"revision":null,"url":"assets/index-3378e00b.js"},{"revision":null,"url":"assets/index-4b631cfd.css"},{"revision":"18bd31f4fcc9ccffa524516977fa131f","url":"compose.html"},{"revision":"afce90fa0dddb4d536c0de6eda4ee39c","url":"index.html"},{"revision":"faf7881af632ddc1bc816df3c7615d70","url":"js/bing/chat/amd.js"},{"revision":"acd5d5c6a92b255ad088d78494b9d5d7","url":"js/bing/chat/config.js"},{"revision":"bf59a711c4cc50c15c4721674ee177bd","url":"js/bing/chat/core.js"},{"revision":"bb997df34f49aaf3f82a2a9434e0a2d5","url":"js/bing/chat/global.js"},{"revision":"1a0f8f43cc025b7b5995e885fed1a3e6","url":"js/bing/chat/lib.js"},{"revision":"bf6c2f29aef95e09b1f72cf59f427a55","url":"registerSW.js"},{"revision":"1da58864f14c1a8c28f8587d6dcbc5d0","url":"img/logo.svg"},{"revision":"be40443731d9d4ead5e9b1f1a6070135","url":"./img/pwa/logo-192.png"},{"revision":"1217f1c90acb9f231e3135fa44af7efc","url":"./img/pwa/logo-512.png"},{"revision":"5e5048c8a928b9d4bd7d262e1f7a5976","url":"manifest.webmanifest"}]);Re();E(new Ee(be("./index.html")));E(({request:s,url:e})=>e.pathname.includes("/sw.js")?!1:s.destination==="style"||s.destination==="manifest"||s.destination==="script"||s.destination==="worker",new Ue({cacheName:`${K}-assets`,plugins:[new V({statuses:[200]})]}));E(({request:s,url:e})=>e.pathname.includes("hm.gif")||e.pathname.includes("/fd/ls/")?!1:s.destination==="image",new De({cacheName:`${K}-images`,plugins:[new V({statuses:[200]}),new Ve({maxEntries:100,maxAgeSeconds:60*60*24*30})]}));self.addEventListener("activate",async s=>{const e=await caches.keys();for(const t of e)!t.startsWith("workbox")&&!t.startsWith(K)&&(await caches.delete(t),console.log("del cache : ",t))});self.addEventListener("install",s=>{self.skipWaiting()}); +try{self["workbox:core:6.5.4"]&&_()}catch{}const z=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},J=z;class l extends Error{constructor(e,t){const n=J(e,t);super(n),this.name=e,this.details=t}}const d={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},D=s=>[d.prefix,s,d.suffix].filter(e=>e&&e.length>0).join("-"),X=s=>{for(const e of Object.keys(d))s(e)},b={updateDetails:s=>{X(e=>{typeof s[e]=="string"&&(d[e]=s[e])})},getGoogleAnalyticsName:s=>s||D(d.googleAnalytics),getPrecacheName:s=>s||D(d.precache),getPrefix:()=>d.prefix,getRuntimeName:s=>s||D(d.runtime),getSuffix:()=>d.suffix};function O(s,e){const t=e();return s.waitUntil(t),t}try{self["workbox:precaching:6.5.4"]&&_()}catch{}const Y="__WB_REVISION__";function Z(s){if(!s)throw new l("add-to-cache-list-unexpected-type",{entry:s});if(typeof s=="string"){const r=new URL(s,location.href);return{cacheKey:r.href,url:r.href}}const{revision:e,url:t}=s;if(!t)throw new l("add-to-cache-list-unexpected-type",{entry:s});if(!e){const r=new URL(t,location.href);return{cacheKey:r.href,url:r.href}}const n=new URL(t,location.href),a=new URL(t,location.href);return n.searchParams.set(Y,e),{cacheKey:n.href,url:a.href}}class ee{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:n})=>{if(e.type==="install"&&t&&t.originalRequest&&t.originalRequest instanceof Request){const a=t.originalRequest.url;n?this.notUpdatedURLs.push(a):this.updatedURLs.push(a)}return n}}}class te{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:t,params:n})=>{const a=(n==null?void 0:n.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return a?new Request(a,{headers:t.headers}):t},this._precacheController=e}}let w;function se(){if(w===void 0){const s=new Response("");if("body"in s)try{new Response(s.body),w=!0}catch{w=!1}w=!1}return w}async function ne(s,e){let t=null;if(s.url&&(t=new URL(s.url).origin),t!==self.location.origin)throw new l("cross-origin-copy-response",{origin:t});const n=s.clone(),a={headers:new Headers(n.headers),status:n.status,statusText:n.statusText},r=e?e(a):a,i=se()?n.body:await n.blob();return new Response(i,r)}const ae=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function S(s,e){const t=new URL(s);for(const n of e)t.searchParams.delete(n);return t.href}async function re(s,e,t,n){const a=S(e.url,t);if(e.url===a)return s.match(e,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),i=await s.keys(e,r);for(const c of i){const o=S(c.url,t);if(a===o)return s.match(c,n)}}class ie{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}const F=new Set;async function ce(){for(const s of F)await s()}function oe(s){return new Promise(e=>setTimeout(e,s))}try{self["workbox:strategies:6.5.4"]&&_()}catch{}function C(s){return typeof s=="string"?new Request(s):s}class he{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new ie,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const n of this._plugins)this._pluginStateMap.set(n,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let n=C(e);if(n.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const i=await t.preloadResponse;if(i)return i}const a=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const i of this.iterateCallbacks("requestWillFetch"))n=await i({request:n.clone(),event:t})}catch(i){if(i instanceof Error)throw new l("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const r=n.clone();try{let i;i=await fetch(n,n.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))i=await c({event:t,request:r,response:i});return i}catch(i){throw a&&await this.runCallbacks("fetchDidFail",{error:i,event:t,originalRequest:a.clone(),request:r.clone()}),i}}async fetchAndCachePut(e){const t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){const t=C(e);let n;const{cacheName:a,matchOptions:r}=this._strategy,i=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},r),{cacheName:a});n=await caches.match(i,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))n=await o({cacheName:a,matchOptions:r,cachedResponse:n,request:i,event:this.event})||void 0;return n}async cachePut(e,t){const n=C(e);await oe(0);const a=await this.getCacheKey(n,"write");if(!t)throw new l("cache-put-with-no-response",{url:ae(a.url)});const r=await this._ensureResponseSafeToCache(t);if(!r)return!1;const{cacheName:i,matchOptions:c}=this._strategy,o=await self.caches.open(i),h=this.hasCallback("cacheDidUpdate"),m=h?await re(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,h?r.clone():r)}catch(u){if(u instanceof Error)throw u.name==="QuotaExceededError"&&await ce(),u}for(const u of this.iterateCallbacks("cacheDidUpdate"))await u({cacheName:i,oldResponse:m,newResponse:r.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let a=e;for(const r of this.iterateCallbacks("cacheKeyWillBeUsed"))a=C(await r({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[n]=a}return this._cacheKeys[n]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const n=this._pluginStateMap.get(t);yield r=>{const i=Object.assign(Object.assign({},r),{state:n});return t[e](i)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,n=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&t.status!==200&&(t=void 0),t}}class N{constructor(e={}){this.cacheName=b.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,n=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,r=new he(this,{event:t,request:n,params:a}),i=this._getResponse(r,n,t),c=this._awaitComplete(i,r,n,t);return[i,c]}async _getResponse(e,t,n){await e.runCallbacks("handlerWillStart",{event:n,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new l("no-response",{url:t.url})}catch(r){if(r instanceof Error){for(const i of e.iterateCallbacks("handlerDidError"))if(a=await i({error:r,event:n,request:t}),a)break}if(!a)throw r}for(const r of e.iterateCallbacks("handlerWillRespond"))a=await r({event:n,request:t,response:a});return a}async _awaitComplete(e,t,n,a){let r,i;try{r=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:n,response:r}),await t.doneWaiting()}catch(c){c instanceof Error&&(i=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:n,response:r,error:i}),t.destroy(),i)throw i}}class p extends N{constructor(e={}){e.cacheName=b.getPrecacheName(e.cacheName),super(e),this._fallbackToNetwork=e.fallbackToNetwork!==!1,this.plugins.push(p.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const n=await t.cacheMatch(e);return n||(t.event&&t.event.type==="install"?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let n;const a=t.params||{};if(this._fallbackToNetwork){const r=a.integrity,i=e.integrity,c=!i||i===r;n=await t.fetch(new Request(e,{integrity:e.mode!=="no-cors"?i||r:void 0})),r&&c&&e.mode!=="no-cors"&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,n.clone()))}else throw new l("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return n}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const n=await t.fetch(e);if(!await t.cachePut(e,n.clone()))throw new l("bad-precaching-response",{url:e.url,status:n.status});return n}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[n,a]of this.plugins.entries())a!==p.copyRedirectedCacheableResponsesPlugin&&(a===p.defaultPrecacheCacheabilityPlugin&&(e=n),a.cacheWillUpdate&&t++);t===0?this.plugins.push(p.defaultPrecacheCacheabilityPlugin):t>1&&e!==null&&this.plugins.splice(e,1)}}p.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:s}){return!s||s.status>=400?null:s}};p.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:s}){return s.redirected?await ne(s):s}};class le{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:n=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new p({cacheName:b.getPrecacheName(e),plugins:[...t,new te({precacheController:this})],fallbackToNetwork:n}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const t=[];for(const n of e){typeof n=="string"?t.push(n):n&&n.revision===void 0&&t.push(n.url);const{cacheKey:a,url:r}=Z(n),i=typeof n!="string"&&n.revision?"reload":"default";if(this._urlsToCacheKeys.has(r)&&this._urlsToCacheKeys.get(r)!==a)throw new l("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(r),secondEntry:a});if(typeof n!="string"&&n.integrity){if(this._cacheKeysToIntegrities.has(a)&&this._cacheKeysToIntegrities.get(a)!==n.integrity)throw new l("add-to-cache-list-conflicting-integrities",{url:r});this._cacheKeysToIntegrities.set(a,n.integrity)}if(this._urlsToCacheKeys.set(r,a),this._urlsToCacheModes.set(r,i),t.length>0){const c=`Workbox is precaching URLs without revision info: ${t.join(", ")} +This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return O(e,async()=>{const t=new ee;this.strategy.plugins.push(t);for(const[r,i]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(i),o=this._urlsToCacheModes.get(r),h=new Request(r,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:i},request:h,event:e}))}const{updatedURLs:n,notUpdatedURLs:a}=t;return{updatedURLs:n,notUpdatedURLs:a}})}activate(e){return O(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),n=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),r=[];for(const i of n)a.has(i.url)||(await t.delete(i),r.push(i.url));return{deletedURLs:r}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,n=this.getCacheKeyForURL(t);if(n)return(await self.caches.open(this.strategy.cacheName)).match(n)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new l("non-precached-url",{url:e});return n=>(n.request=new Request(e),n.params=Object.assign({cacheKey:t},n.params),this.strategy.handle(n))}}let L;const M=()=>(L||(L=new le),L);try{self["workbox:routing:6.5.4"]&&_()}catch{}const H="GET",x=s=>s&&typeof s=="object"?s:{handle:s};class g{constructor(e,t,n=H){this.handler=x(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=x(e)}}class ue extends g{constructor(e,t,n){const a=({url:r})=>{const i=e.exec(r.href);if(i&&!(r.origin!==location.origin&&i.index!==0))return i.slice(1)};super(a,t,n)}}class de{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const r=new Request(...a);return this.handleRequest({request:r,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:n});let c=i&&i.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let h;try{h=c.handle({url:n,request:e,event:t,params:r})}catch(u){h=Promise.reject(u)}const m=i&&i.catchHandler;return h instanceof Promise&&(this._catchHandler||m)&&(h=h.catch(async u=>{if(m)try{return await m.handle({url:n,request:e,event:t,params:r})}catch(K){K instanceof Error&&(u=K)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw u})),h}findMatchingRoute({url:e,sameOrigin:t,request:n,event:a}){const r=this._routes.get(n.method)||[];for(const i of r){let c;const o=i.match({url:e,sameOrigin:t,request:n,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:i,params:c}}return{}}setDefaultHandler(e,t=H){this._defaultHandlerMap.set(t,x(e))}setCatchHandler(e){this._catchHandler=x(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new l("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new l("unregister-route-route-not-registered")}}let y;const fe=()=>(y||(y=new de,y.addFetchListener(),y.addCacheListener()),y);function E(s,e,t){let n;if(typeof s=="string"){const r=new URL(s,location.href),i=({url:c})=>c.href===r.href;n=new g(i,e,t)}else if(s instanceof RegExp)n=new ue(s,e,t);else if(typeof s=="function")n=new g(s,e,t);else if(s instanceof g)n=s;else throw new l("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return fe().registerRoute(n),n}function pe(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(n=>n.test(t))&&s.searchParams.delete(t);return s}function*ge(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(s,location.href);r.hash="",yield r.href;const i=pe(r,e);if(yield i.href,t&&i.pathname.endsWith("/")){const c=new URL(i.href);c.pathname+=t,yield c.href}if(n){const c=new URL(i.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:r});for(const o of c)yield o.href}}class me extends g{constructor(e,t){const n=({request:a})=>{const r=e.getURLsToCacheKeys();for(const i of ge(a.url,t)){const c=r.get(i);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(n,e.strategy)}}function we(s){const e=M(),t=new me(e,s);E(t)}const ye="-precache-",_e=async(s,e=ye)=>{const n=(await self.caches.keys()).filter(a=>a.includes(e)&&a.includes(self.registration.scope)&&a!==s);return await Promise.all(n.map(a=>self.caches.delete(a))),n};function Re(){self.addEventListener("activate",s=>{const e=b.getPrecacheName();s.waitUntil(_e(e).then(t=>{}))})}function be(s){return M().createHandlerBoundToURL(s)}function Ce(s){M().precache(s)}function xe(s,e){Ce(s),we(e)}class Ee extends g{constructor(e,{allowlist:t=[/./],denylist:n=[]}={}){super(a=>this._match(a),e),this._allowlist=t,this._denylist=n}_match({url:e,request:t}){if(t&&t.mode!=="navigate")return!1;const n=e.pathname+e.search;for(const a of this._denylist)if(a.test(n))return!1;return!!this._allowlist.some(a=>a.test(n))}}class De extends N{async _handle(e,t){let n=await t.cacheMatch(e),a;if(!n)try{n=await t.fetchAndCachePut(e)}catch(r){r instanceof Error&&(a=r)}if(!n)throw new l("no-response",{url:e.url,error:a});return n}}const Le={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class Ue extends N{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(Le)}async _handle(e,t){const n=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(n);let a=await t.cacheMatch(e),r;if(!a)try{a=await n}catch(i){i instanceof Error&&(r=i)}if(!a)throw new l("no-response",{url:e.url,error:r});return a}}try{self["workbox:cacheable-response:6.5.4"]&&_()}catch{}class Te{constructor(e={}){this._statuses=e.statuses,this._headers=e.headers}isResponseCacheable(e){let t=!0;return this._statuses&&(t=this._statuses.includes(e.status)),this._headers&&t&&(t=Object.keys(this._headers).some(n=>e.headers.get(n)===this._headers[n])),t}}class q{constructor(e){this.cacheWillUpdate=async({response:t})=>this._cacheableResponse.isResponseCacheable(t)?t:null,this._cacheableResponse=new Te(e)}}function V(s){s.then(()=>{})}const Pe=(s,e)=>e.some(t=>s instanceof t);let v,W;function ke(){return v||(v=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Ie(){return W||(W=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const $=new WeakMap,k=new WeakMap,G=new WeakMap,U=new WeakMap,A=new WeakMap;function Ne(s){const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("success",r),s.removeEventListener("error",i)},r=()=>{t(f(s.result)),a()},i=()=>{n(s.error),a()};s.addEventListener("success",r),s.addEventListener("error",i)});return e.then(t=>{t instanceof IDBCursor&&$.set(t,s)}).catch(()=>{}),A.set(e,s),e}function Me(s){if(k.has(s))return;const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("complete",r),s.removeEventListener("error",i),s.removeEventListener("abort",i)},r=()=>{t(),a()},i=()=>{n(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",r),s.addEventListener("error",i),s.addEventListener("abort",i)});k.set(s,e)}let I={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return k.get(s);if(e==="objectStoreNames")return s.objectStoreNames||G.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return f(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function Ae(s){I=s(I)}function Ke(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const n=s.call(T(this),e,...t);return G.set(n,e.sort?e.sort():[e]),f(n)}:Ie().includes(s)?function(...e){return s.apply(T(this),e),f($.get(this))}:function(...e){return f(s.apply(T(this),e))}}function Oe(s){return typeof s=="function"?Ke(s):(s instanceof IDBTransaction&&Me(s),Pe(s,ke())?new Proxy(s,I):s)}function f(s){if(s instanceof IDBRequest)return Ne(s);if(U.has(s))return U.get(s);const e=Oe(s);return e!==s&&(U.set(s,e),A.set(e,s)),e}const T=s=>A.get(s);function Se(s,e,{blocked:t,upgrade:n,blocking:a,terminated:r}={}){const i=indexedDB.open(s,e),c=f(i);return n&&i.addEventListener("upgradeneeded",o=>{n(f(i.result),o.oldVersion,o.newVersion,f(i.transaction),o)}),t&&i.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{r&&o.addEventListener("close",()=>r()),a&&o.addEventListener("versionchange",h=>a(h.oldVersion,h.newVersion,h))}).catch(()=>{}),c}function ve(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",n=>e(n.oldVersion,n)),f(t).then(()=>{})}const We=["get","getKey","getAll","getAllKeys","count"],Be=["put","add","delete","clear"],P=new Map;function B(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(P.get(e))return P.get(e);const t=e.replace(/FromIndex$/,""),n=e!==t,a=Be.includes(t);if(!(t in(n?IDBIndex:IDBObjectStore).prototype)||!(a||We.includes(t)))return;const r=async function(i,...c){const o=this.transaction(i,a?"readwrite":"readonly");let h=o.store;return n&&(h=h.index(c.shift())),(await Promise.all([h[t](...c),a&&o.done]))[0]};return P.set(e,r),r}Ae(s=>({...s,get:(e,t,n)=>B(e,t)||s.get(e,t,n),has:(e,t)=>!!B(e,t)||s.has(e,t)}));try{self["workbox:expiration:6.5.4"]&&_()}catch{}const je="workbox-expiration",R="cache-entries",j=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class Fe{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(R,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&ve(this._cacheName)}async setTimestamp(e,t){e=j(e);const n={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},r=(await this.getDb()).transaction(R,"readwrite",{durability:"relaxed"});await r.store.put(n),await r.done}async getTimestamp(e){const n=await(await this.getDb()).get(R,this._getId(e));return n==null?void 0:n.timestamp}async expireEntries(e,t){const n=await this.getDb();let a=await n.transaction(R).store.index("timestamp").openCursor(null,"prev");const r=[];let i=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp=t?r.push(a.value):i++),a=await a.continue()}const c=[];for(const o of r)await n.delete(R,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+j(e)}async getDb(){return this._db||(this._db=await Se(je,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class He{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new Fe(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),n=await self.caches.open(this._cacheName);for(const a of t)await n.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,V(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),n=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t{if(!r)return null;const i=this._isResponseDateFresh(r),c=this._getCacheExpiration(a);V(c.expireEntries());const o=c.updateTimestamp(n.url);if(t)try{t.waitUntil(o)}catch{}return i?r:null},this.cacheDidUpdate=async({cacheName:t,request:n})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(n.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&qe(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===b.getRuntimeName())throw new l("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new He(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const n=Date.now();return t>=n-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),a=new Date(t).getTime();return isNaN(a)?null:a}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}const Q="BingAI";self.addEventListener("message",s=>{s.data&&s.data.type==="SKIP_WAITING"&&self.skipWaiting()});xe([{"revision":null,"url":"assets/index-1dc749ba.css"},{"revision":null,"url":"assets/index-29dab197.css"},{"revision":null,"url":"assets/index-3a8b3b00.js"},{"revision":null,"url":"assets/index-63d32cbb.js"},{"revision":"18bd31f4fcc9ccffa524516977fa131f","url":"compose.html"},{"revision":"49bf6841acf39fa6dbe629b1ef454fc4","url":"index.html"},{"revision":"faf7881af632ddc1bc816df3c7615d70","url":"js/bing/chat/amd.js"},{"revision":"acd5d5c6a92b255ad088d78494b9d5d7","url":"js/bing/chat/config.js"},{"revision":"bf59a711c4cc50c15c4721674ee177bd","url":"js/bing/chat/core.js"},{"revision":"bb997df34f49aaf3f82a2a9434e0a2d5","url":"js/bing/chat/global.js"},{"revision":"1a0f8f43cc025b7b5995e885fed1a3e6","url":"js/bing/chat/lib.js"},{"revision":"bf6c2f29aef95e09b1f72cf59f427a55","url":"registerSW.js"},{"revision":"1da58864f14c1a8c28f8587d6dcbc5d0","url":"img/logo.svg"},{"revision":"be40443731d9d4ead5e9b1f1a6070135","url":"./img/pwa/logo-192.png"},{"revision":"1217f1c90acb9f231e3135fa44af7efc","url":"./img/pwa/logo-512.png"},{"revision":"5e5048c8a928b9d4bd7d262e1f7a5976","url":"manifest.webmanifest"}]);Re();E(new Ee(be("./index.html")));E(({request:s,url:e})=>s.destination==="style"||s.destination==="manifest"||s.destination==="script"||s.destination==="worker",new Ue({cacheName:`${Q}-assets`,plugins:[new q({statuses:[200]})]}));E(({request:s,url:e})=>e.pathname.includes("hm.gif")||e.pathname.includes("/fd/ls/")?!1:s.destination==="image",new De({cacheName:`${Q}-images`,plugins:[new q({statuses:[200]}),new Ve({maxEntries:100,maxAgeSeconds:60*60*24*30})]}));self.addEventListener("install",s=>{self.skipWaiting()});