@cleanslice/bridle 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +103 -0
- package/dist/bridle.js +29 -0
- package/dist/bridle.js.map +1 -0
- package/dist/bridle.mjs +8093 -0
- package/dist/bridle.mjs.map +1 -0
- package/dist/client.d.ts +45 -0
- package/dist/index.d.ts +9 -0
- package/dist/types.d.ts +73 -0
- package/package.json +60 -0
package/README.md
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# @cleanslice/bridle
|
|
2
|
+
|
|
3
|
+
Embeddable webchat for [Bridle](https://bridle.cleanslice.org). One Web Component, three integration paths: drop-in `<script>`, npm + bundler, or headless client.
|
|
4
|
+
|
|
5
|
+
## Drop-in script (no build step)
|
|
6
|
+
|
|
7
|
+
```html
|
|
8
|
+
<script
|
|
9
|
+
src="https://bridle.cleanslice.org/sdk/latest.js"
|
|
10
|
+
data-api-url="https://your-hub.example.com"
|
|
11
|
+
data-bot-id="bot-abc-123"
|
|
12
|
+
data-token="<jwt>"
|
|
13
|
+
></script>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
The script auto-mounts a floating chat bubble in the bottom-right corner. If the SDK is served from your hub origin, `data-api-url` can be omitted — it's inferred from the script's URL.
|
|
17
|
+
|
|
18
|
+
### Available `data-*` attributes
|
|
19
|
+
|
|
20
|
+
| Attribute | Default | Description |
|
|
21
|
+
|-----------|---------|-------------|
|
|
22
|
+
| `data-bot-id` | required | Bot identifier registered on the hub |
|
|
23
|
+
| `data-token` | optional | JWT for browser auth (omit for public bots) |
|
|
24
|
+
| `data-api-url` | inferred | Hub origin |
|
|
25
|
+
| `data-mode` | `floating` | `floating` (FAB) or `inline` (mounted inside `data-mount`) |
|
|
26
|
+
| `data-mount` | `<body>` | CSS selector for inline mode |
|
|
27
|
+
| `data-title` | `Agent Chat` | Header text |
|
|
28
|
+
| `data-placeholder` | `Type a message...` | Input placeholder |
|
|
29
|
+
|
|
30
|
+
## Programmatic init
|
|
31
|
+
|
|
32
|
+
```js
|
|
33
|
+
import { init } from '@cleanslice/bridle'
|
|
34
|
+
|
|
35
|
+
const chat = init({
|
|
36
|
+
apiUrl: 'https://your-hub.example.com',
|
|
37
|
+
botId: 'bot-abc-123',
|
|
38
|
+
token: () => fetchJwt(), // string OR async function for refresh
|
|
39
|
+
mount: '#chat', // CSS selector or HTMLElement
|
|
40
|
+
mode: 'inline',
|
|
41
|
+
title: 'Support',
|
|
42
|
+
theme: { '--bridle-primary': '#0070f3' },
|
|
43
|
+
onReady: () => {},
|
|
44
|
+
onMessage: (msg) => console.log(msg.text),
|
|
45
|
+
onError: (err) => console.error(err),
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
chat.sendMessage('Hi!')
|
|
49
|
+
chat.open()
|
|
50
|
+
chat.close()
|
|
51
|
+
chat.destroy()
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Headless client (no UI)
|
|
55
|
+
|
|
56
|
+
```js
|
|
57
|
+
import { BridleClient } from '@cleanslice/bridle'
|
|
58
|
+
|
|
59
|
+
const client = new BridleClient({
|
|
60
|
+
apiUrl: 'https://your-hub.example.com',
|
|
61
|
+
botId: 'bot-abc-123',
|
|
62
|
+
token: 'eyJhbG...',
|
|
63
|
+
})
|
|
64
|
+
|
|
65
|
+
client.on('message', (m) => console.log(m.text))
|
|
66
|
+
client.on('stream', (m) => render(m.text)) // partial text as it streams
|
|
67
|
+
client.on('stream_end', (m) => finalize(m.text))
|
|
68
|
+
|
|
69
|
+
await client.connect()
|
|
70
|
+
client.send('hello')
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Theming
|
|
74
|
+
|
|
75
|
+
Override CSS custom properties on the `<bridle-chat>` element (or via the `theme` option):
|
|
76
|
+
|
|
77
|
+
```css
|
|
78
|
+
bridle-chat {
|
|
79
|
+
--bridle-primary: #0070f3;
|
|
80
|
+
--bridle-primary-fg: #ffffff;
|
|
81
|
+
--bridle-bg: #ffffff;
|
|
82
|
+
--bridle-fg: #111827;
|
|
83
|
+
--bridle-muted: #6b7280;
|
|
84
|
+
--bridle-bubble-bg: #f3f4f6;
|
|
85
|
+
--bridle-border: #e5e7eb;
|
|
86
|
+
--bridle-radius: 14px;
|
|
87
|
+
--bridle-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
|
|
88
|
+
}
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
The element uses Shadow DOM, so host page styles never bleed in and component styles never bleed out.
|
|
92
|
+
|
|
93
|
+
## Development
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
npm install
|
|
97
|
+
npm run dev # Vite watch mode
|
|
98
|
+
npm run build # Outputs dist/bridle.js (IIFE) + dist/bridle.mjs (ESM) + d.ts
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## Bundle size
|
|
102
|
+
|
|
103
|
+
Approx. 80 kB gzipped (Vue runtime + socket.io-client + widget code, all inlined). The IIFE bundle is fully self-contained — embedders pay zero install cost.
|
package/dist/bridle.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
(function(Bt){"use strict";/**
|
|
2
|
+
* @vue/shared v3.5.34
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/function Xe(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const q=process.env.NODE_ENV!=="production"?Object.freeze({}):{},wt=process.env.NODE_ENV!=="production"?Object.freeze([]):[],ne=()=>{},Cr=()=>!1,Ft=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),jt=e=>e.startsWith("onUpdate:"),G=Object.assign,ds=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},pc=Object.prototype.hasOwnProperty,M=(e,t)=>pc.call(e,t),C=Array.isArray,ht=e=>Ut(e)==="[object Map]",Tr=e=>Ut(e)==="[object Set]",Ar=e=>Ut(e)==="[object Date]",V=e=>typeof e=="function",Y=e=>typeof e=="string",xe=e=>typeof e=="symbol",U=e=>e!==null&&typeof e=="object",hs=e=>(U(e)||V(e))&&V(e.then)&&V(e.catch),Vr=Object.prototype.toString,Ut=e=>Vr.call(e),ps=e=>Ut(e).slice(8,-1),En=e=>Ut(e)==="[object Object]",gs=e=>Y(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ht=Xe(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),gc=Xe("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Nn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},_c=/-\w/g,oe=Nn(e=>e.replace(_c,t=>t.slice(1).toUpperCase())),mc=/\B([A-Z])/g,be=Nn(e=>e.replace(mc,"-$1").toLowerCase()),wn=Nn(e=>e.charAt(0).toUpperCase()+e.slice(1)),pt=Nn(e=>e?`on${wn(e)}`:""),$e=(e,t)=>!Object.is(e,t),Ot=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},On=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},_s=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Rr=e=>{const t=Y(e)?Number(e):NaN;return isNaN(t)?e:t};let kr;const qt=()=>kr||(kr=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function ms(e){if(C(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=Y(s)?Ec(s):ms(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(Y(e)||U(e))return e}const yc=/;(?![^(]*\))/g,bc=/:([^]+)/,vc=/\/\*[^]*?\*\//g;function Ec(e){const t={};return e.replace(vc,"").split(yc).forEach(n=>{if(n){const s=n.split(bc);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function xt(e){let t="";if(Y(e))t=e;else if(C(e))for(let n=0;n<e.length;n++){const s=xt(e[n]);s&&(t+=s+" ")}else if(U(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Nc="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",wc="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",Oc="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",xc=Xe(Nc),Sc=Xe(wc),Dc=Xe(Oc),Cc=Xe("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Pr(e){return!!e||e===""}function Tc(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=ys(e[s],t[s]);return n}function ys(e,t){if(e===t)return!0;let n=Ar(e),s=Ar(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=xe(e),s=xe(t),n||s)return e===t;if(n=C(e),s=C(t),n||s)return n&&s?Tc(e,t):!1;if(n=U(e),s=U(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const c=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(c&&!l||!c&&l||!ys(e[o],t[o]))return!1}}return String(e)===String(t)}const Ir=e=>!!(e&&e.__v_isRef===!0),bs=e=>Y(e)?e:e==null?"":C(e)||U(e)&&(e.toString===Vr||!V(e.toString))?Ir(e)?bs(e.value):JSON.stringify(e,Mr,2):String(e),Mr=(e,t)=>Ir(t)?Mr(e,t.value):ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[vs(s,i)+" =>"]=r,n),{})}:Tr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>vs(n))}:xe(t)?vs(t):U(t)&&!C(t)&&!En(t)?String(t):t,vs=(e,t="")=>{var n;return xe(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.5.34
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/function Se(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let ce;class Ac{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&ce&&(ce.active?(this.parent=ce,this.index=(ce.scopes||(ce.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=ce;try{return ce=this,t()}finally{ce=n}}else process.env.NODE_ENV!=="production"&&this._warnOnRun&&Se("cannot run an inactive effect scope.")}on(){++this._on===1&&(this.prevScope=ce,ce=this)}off(){if(this._on>0&&--this._on===0){if(ce===this)ce=this.prevScope;else{let t=ce;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function Vc(){return ce}let K;const Es=new WeakSet;class $r{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ce&&(ce.active?ce.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Es.has(this)&&(Es.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Br(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,qr(this),Fr(this);const t=K,n=De;K=this,De=!0;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&K!==this&&Se("Active effect was not restored correctly - this is likely a Vue internal bug."),jr(this),K=t,De=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)xs(t);this.deps=this.depsTail=void 0,qr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Es.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Os(this)&&this.run()}get dirty(){return Os(this)}}let Lr=0,Kt,Wt;function Br(e,t=!1){if(e.flags|=8,t){e.next=Wt,Wt=e;return}e.next=Kt,Kt=e}function Ns(){Lr++}function ws(){if(--Lr>0)return;if(Wt){let t=Wt;for(Wt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Kt;){let t=Kt;for(Kt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Fr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function jr(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),xs(s),Rc(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Os(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ur(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ur(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===zt)||(e.globalVersion=zt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Os(e))))return;e.flags|=2;const t=e.dep,n=K,s=De;K=e,De=!0;try{Fr(e);const r=e.fn(e._value);(t.version===0||$e(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{K=n,De=s,jr(e),e.flags&=-3}}function xs(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),process.env.NODE_ENV!=="production"&&n.subsHead===e&&(n.subsHead=r),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)xs(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Rc(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let De=!0;const Hr=[];function Ce(){Hr.push(De),De=!1}function Te(){const e=Hr.pop();De=e===void 0?!0:e}function qr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=K;K=void 0;try{t()}finally{K=n}}}let zt=0;class kc{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ss{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!K||!De||K===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==K)n=this.activeLink=new kc(K,this),K.deps?(n.prevDep=K.depsTail,K.depsTail.nextDep=n,K.depsTail=n):K.deps=K.depsTail=n,Kr(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=K.depsTail,n.nextDep=void 0,K.depsTail.nextDep=n,K.depsTail=n,K.deps===n&&(K.deps=s)}return process.env.NODE_ENV!=="production"&&K.onTrack&&K.onTrack(G({effect:K},t)),n}trigger(t){this.version++,zt++,this.notify(t)}notify(t){Ns();try{if(process.env.NODE_ENV!=="production")for(let n=this.subsHead;n;n=n.nextSub)n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(G({effect:n.sub},t));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ws()}}}function Kr(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Kr(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),process.env.NODE_ENV!=="production"&&e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}const Ds=new WeakMap,gt=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),Cs=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),Yt=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function se(e,t,n){if(De&&K){let s=Ds.get(e);s||Ds.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Ss),r.map=s,r.key=n),process.env.NODE_ENV!=="production"?r.track({target:e,type:t,key:n}):r.track()}}function Le(e,t,n,s,r,i){const o=Ds.get(e);if(!o){zt++;return}const c=l=>{l&&(process.env.NODE_ENV!=="production"?l.trigger({target:e,type:t,key:n,newValue:s,oldValue:r,oldTarget:i}):l.trigger())};if(Ns(),t==="clear")o.forEach(c);else{const l=C(e),h=l&&gs(n);if(l&&n==="length"){const f=Number(s);o.forEach((u,g)=>{(g==="length"||g===Yt||!xe(g)&&g>=f)&&c(u)})}else switch((n!==void 0||o.has(void 0))&&c(o.get(n)),h&&c(o.get(Yt)),t){case"add":l?h&&c(o.get("length")):(c(o.get(gt)),ht(e)&&c(o.get(Cs)));break;case"delete":l||(c(o.get(gt)),ht(e)&&c(o.get(Cs)));break;case"set":ht(e)&&c(o.get(gt));break}}ws()}function St(e){const t=P(e);return t===e?t:(se(t,"iterate",Yt),ue(e)?t:t.map(Ve))}function xn(e){return se(e=P(e),"iterate",Yt),e}function Be(e,t){return Ae(e)?Dt(it(e)?Ve(t):t):Ve(t)}const Pc={__proto__:null,[Symbol.iterator](){return Ts(this,Symbol.iterator,e=>Be(this,e))},concat(...e){return St(this).concat(...e.map(t=>C(t)?St(t):t))},entries(){return Ts(this,"entries",e=>(e[1]=Be(this,e[1]),e))},every(e,t){return Qe(this,"every",e,t,void 0,arguments)},filter(e,t){return Qe(this,"filter",e,t,n=>n.map(s=>Be(this,s)),arguments)},find(e,t){return Qe(this,"find",e,t,n=>Be(this,n),arguments)},findIndex(e,t){return Qe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Qe(this,"findLast",e,t,n=>Be(this,n),arguments)},findLastIndex(e,t){return Qe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Qe(this,"forEach",e,t,void 0,arguments)},includes(...e){return As(this,"includes",e)},indexOf(...e){return As(this,"indexOf",e)},join(e){return St(this).join(e)},lastIndexOf(...e){return As(this,"lastIndexOf",e)},map(e,t){return Qe(this,"map",e,t,void 0,arguments)},pop(){return Jt(this,"pop")},push(...e){return Jt(this,"push",e)},reduce(e,...t){return Wr(this,"reduce",e,t)},reduceRight(e,...t){return Wr(this,"reduceRight",e,t)},shift(){return Jt(this,"shift")},some(e,t){return Qe(this,"some",e,t,void 0,arguments)},splice(...e){return Jt(this,"splice",e)},toReversed(){return St(this).toReversed()},toSorted(e){return St(this).toSorted(e)},toSpliced(...e){return St(this).toSpliced(...e)},unshift(...e){return Jt(this,"unshift",e)},values(){return Ts(this,"values",e=>Be(this,e))}};function Ts(e,t,n){const s=xn(e),r=s[t]();return s!==e&&!ue(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=n(i.value)),i}),r}const Ic=Array.prototype;function Qe(e,t,n,s,r,i){const o=xn(e),c=o!==e&&!ue(e),l=o[t];if(l!==Ic[t]){const u=l.apply(e,i);return c?Ve(u):u}let h=n;o!==e&&(c?h=function(u,g){return n.call(this,Be(e,u),g,e)}:n.length>2&&(h=function(u,g){return n.call(this,u,g,e)}));const f=l.call(o,h,s);return c&&r?r(f):f}function Wr(e,t,n,s){const r=xn(e),i=r!==e&&!ue(e);let o=n,c=!1;r!==e&&(i?(c=s.length===0,o=function(h,f,u){return c&&(c=!1,h=Be(e,h)),n.call(this,h,Be(e,f),u,e)}):n.length>3&&(o=function(h,f,u){return n.call(this,h,f,u,e)}));const l=r[t](o,...s);return c?Be(e,l):l}function As(e,t,n){const s=P(e);se(s,"iterate",Yt);const r=s[t](...n);return(r===-1||r===!1)&&An(n[0])?(n[0]=P(n[0]),s[t](...n)):r}function Jt(e,t,n=[]){Ce(),Ns();const s=P(e)[t].apply(e,n);return ws(),Te(),s}const Mc=Xe("__proto__,__v_isRef,__isVue"),zr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(xe));function $c(e){xe(e)||(e=String(e));const t=P(this);return se(t,"has",e),t.hasOwnProperty(e)}class Yr{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?ti:ei:i?Zr:Qr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=C(t);if(!r){let l;if(o&&(l=Pc[n]))return l;if(n==="hasOwnProperty")return $c}const c=Reflect.get(t,n,Q(t)?t:s);if((xe(n)?zr.has(n):Mc(n))||(r||se(t,"get",n),i))return c;if(Q(c)){const l=o&&gs(n)?c:c.value;return r&&U(l)?ks(l):l}return U(c)?r?ks(c):Rs(c):c}}class Jr extends Yr{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];const o=C(t)&&gs(n);if(!this._isShallow){const h=Ae(i);if(!ue(s)&&!Ae(s)&&(i=P(i),s=P(s)),!o&&Q(i)&&!Q(s))return h?(process.env.NODE_ENV!=="production"&&Se(`Set operation on key "${String(n)}" failed: target is readonly.`,t[n]),!0):(i.value=s,!0)}const c=o?Number(n)<t.length:M(t,n),l=Reflect.set(t,n,s,Q(t)?t:r);return t===P(r)&&(c?$e(s,i)&&Le(t,"set",n,s,i):Le(t,"add",n,s)),l}deleteProperty(t,n){const s=M(t,n),r=t[n],i=Reflect.deleteProperty(t,n);return i&&s&&Le(t,"delete",n,void 0,r),i}has(t,n){const s=Reflect.has(t,n);return(!xe(n)||!zr.has(n))&&se(t,"has",n),s}ownKeys(t){return se(t,"iterate",C(t)?"length":gt),Reflect.ownKeys(t)}}class Gr extends Yr{constructor(t=!1){super(!0,t)}set(t,n){return process.env.NODE_ENV!=="production"&&Se(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return process.env.NODE_ENV!=="production"&&Se(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const Lc=new Jr,Bc=new Gr,Fc=new Jr(!0),jc=new Gr(!0),Vs=e=>e,Sn=e=>Reflect.getPrototypeOf(e);function Uc(e,t,n){return function(...s){const r=this.__v_raw,i=P(r),o=ht(i),c=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,h=r[e](...s),f=n?Vs:t?Dt:Ve;return!t&&se(i,"iterate",l?Cs:gt),G(Object.create(h),{next(){const{value:u,done:g}=h.next();return g?{value:u,done:g}:{value:c?[f(u[0]),f(u[1])]:f(u),done:g}}})}}function Dn(e){return function(...t){if(process.env.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";Se(`${wn(e)} operation ${n}failed: target is readonly.`,P(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function Hc(e,t){const n={get(r){const i=this.__v_raw,o=P(i),c=P(r);e||($e(r,c)&&se(o,"get",r),se(o,"get",c));const{has:l}=Sn(o),h=t?Vs:e?Dt:Ve;if(l.call(o,r))return h(i.get(r));if(l.call(o,c))return h(i.get(c));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&se(P(r),"iterate",gt),r.size},has(r){const i=this.__v_raw,o=P(i),c=P(r);return e||($e(r,c)&&se(o,"has",r),se(o,"has",c)),r===c?i.has(r):i.has(r)||i.has(c)},forEach(r,i){const o=this,c=o.__v_raw,l=P(c),h=t?Vs:e?Dt:Ve;return!e&&se(l,"iterate",gt),c.forEach((f,u)=>r.call(i,h(f),h(u),o))}};return G(n,e?{add:Dn("add"),set:Dn("set"),delete:Dn("delete"),clear:Dn("clear")}:{add(r){const i=P(this),o=Sn(i),c=P(r),l=!t&&!ue(r)&&!Ae(r)?c:r;return o.has.call(i,l)||$e(r,l)&&o.has.call(i,r)||$e(c,l)&&o.has.call(i,c)||(i.add(l),Le(i,"add",l,l)),this},set(r,i){!t&&!ue(i)&&!Ae(i)&&(i=P(i));const o=P(this),{has:c,get:l}=Sn(o);let h=c.call(o,r);h?process.env.NODE_ENV!=="production"&&Xr(o,c,r):(r=P(r),h=c.call(o,r));const f=l.call(o,r);return o.set(r,i),h?$e(i,f)&&Le(o,"set",r,i,f):Le(o,"add",r,i),this},delete(r){const i=P(this),{has:o,get:c}=Sn(i);let l=o.call(i,r);l?process.env.NODE_ENV!=="production"&&Xr(i,o,r):(r=P(r),l=o.call(i,r));const h=c?c.call(i,r):void 0,f=i.delete(r);return l&&Le(i,"delete",r,void 0,h),f},clear(){const r=P(this),i=r.size!==0,o=process.env.NODE_ENV!=="production"?ht(r)?new Map(r):new Set(r):void 0,c=r.clear();return i&&Le(r,"clear",void 0,void 0,o),c}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Uc(r,e,t)}),n}function Cn(e,t){const n=Hc(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(M(n,r)&&r in s?n:s,r,i)}const qc={get:Cn(!1,!1)},Kc={get:Cn(!1,!0)},Wc={get:Cn(!0,!1)},zc={get:Cn(!0,!0)};function Xr(e,t,n){const s=P(n);if(s!==n&&t.call(e,s)){const r=ps(e);Se(`Reactive ${r} contains both the raw and reactive versions of the same object${r==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Qr=new WeakMap,Zr=new WeakMap,ei=new WeakMap,ti=new WeakMap;function Yc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Jc(e){return e.__v_skip||!Object.isExtensible(e)?0:Yc(ps(e))}function Rs(e){return Ae(e)?e:Tn(e,!1,Lc,qc,Qr)}function Gc(e){return Tn(e,!1,Fc,Kc,Zr)}function ks(e){return Tn(e,!0,Bc,Wc,ei)}function Fe(e){return Tn(e,!0,jc,zc,ti)}function Tn(e,t,n,s,r){if(!U(e))return process.env.NODE_ENV!=="production"&&Se(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Jc(e);if(i===0)return e;const o=r.get(e);if(o)return o;const c=new Proxy(e,i===2?s:n);return r.set(e,c),c}function it(e){return Ae(e)?it(e.__v_raw):!!(e&&e.__v_isReactive)}function Ae(e){return!!(e&&e.__v_isReadonly)}function ue(e){return!!(e&&e.__v_isShallow)}function An(e){return e?!!e.__v_raw:!1}function P(e){const t=e&&e.__v_raw;return t?P(t):e}function Xc(e){return!M(e,"__v_skip")&&Object.isExtensible(e)&&On(e,"__v_skip",!0),e}const Ve=e=>U(e)?Rs(e):e,Dt=e=>U(e)?ks(e):e;function Q(e){return e?e.__v_isRef===!0:!1}function Ct(e){return Qc(e,!1)}function Qc(e,t){return Q(e)?e:new Zc(e,t)}class Zc{constructor(t,n){this.dep=new Ss,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:P(t),this._value=n?t:Ve(t),this.__v_isShallow=n}get value(){return process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||ue(t)||Ae(t);t=s?t:P(t),$e(t,n)&&(this._rawValue=t,this._value=s?t:Ve(t),process.env.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:n}):this.dep.trigger())}}function ni(e){return Q(e)?e.value:e}const el={get:(e,t,n)=>t==="__v_raw"?e:ni(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Q(r)&&!Q(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function si(e){return it(e)?e:new Proxy(e,el)}class tl{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ss(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=zt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&K!==this)return Br(this,!0),!0;process.env.NODE_ENV}get value(){const t=process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return Ur(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):process.env.NODE_ENV!=="production"&&Se("Write operation failed: computed value is readonly")}}function nl(e,t,n=!1){let s,r;V(e)?s=e:(s=e.get,r=e.set);const i=new tl(s,r,n);return process.env.NODE_ENV,i}const Vn={},Rn=new WeakMap;let _t;function sl(e,t=!1,n=_t){if(n){let s=Rn.get(n);s||Rn.set(n,s=[]),s.push(e)}else process.env.NODE_ENV!=="production"&&!t&&Se("onWatcherCleanup() was called when there was no active watcher to associate with.")}function rl(e,t,n=q){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:c,call:l}=n,h=v=>{(n.onWarn||Se)("Invalid watch source: ",v,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},f=v=>r?v:ue(v)||r===!1||r===0?Ze(v,1):Ze(v);let u,g,O,R,D=!1,X=!1;if(Q(e)?(g=()=>e.value,D=ue(e)):it(e)?(g=()=>f(e),D=!0):C(e)?(X=!0,D=e.some(v=>it(v)||ue(v)),g=()=>e.map(v=>{if(Q(v))return v.value;if(it(v))return f(v);if(V(v))return l?l(v,2):v();process.env.NODE_ENV!=="production"&&h(v)})):V(e)?t?g=l?()=>l(e,2):e:g=()=>{if(O){Ce();try{O()}finally{Te()}}const v=_t;_t=u;try{return l?l(e,3,[R]):e(R)}finally{_t=v}}:(g=ne,process.env.NODE_ENV!=="production"&&h(e)),t&&r){const v=g,F=r===!0?1/0:r;g=()=>Ze(v(),F)}const J=Vc(),I=()=>{u.stop(),J&&J.active&&ds(J.effects,u)};if(i&&t){const v=t;t=(...F)=>{v(...F),I()}}let B=X?new Array(e.length).fill(Vn):Vn;const pe=v=>{if(!(!(u.flags&1)||!u.dirty&&!v))if(t){const F=u.run();if(r||D||(X?F.some((ee,ae)=>$e(ee,B[ae])):$e(F,B))){O&&O();const ee=_t;_t=u;try{const ae=[F,B===Vn?void 0:X&&B[0]===Vn?[]:B,R];B=F,l?l(t,3,ae):t(...ae)}finally{_t=ee}}}else u.run()};return c&&c(pe),u=new $r(g),u.scheduler=o?()=>o(pe,!1):pe,R=v=>sl(v,!1,u),O=u.onStop=()=>{const v=Rn.get(u);if(v){if(l)l(v,4);else for(const F of v)F();Rn.delete(u)}},process.env.NODE_ENV!=="production"&&(u.onTrack=n.onTrack,u.onTrigger=n.onTrigger),t?s?pe(!0):B=u.run():o?o(pe.bind(null,!0),!0):u.run(),I.pause=u.pause.bind(u),I.resume=u.resume.bind(u),I.stop=I,I}function Ze(e,t=1/0,n){if(t<=0||!U(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Q(e))Ze(e.value,t,n);else if(C(e))for(let s=0;s<e.length;s++)Ze(e[s],t,n);else if(Tr(e)||ht(e))e.forEach(s=>{Ze(s,t,n)});else if(En(e)){for(const s in e)Ze(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Ze(e[s],t,n)}return e}/**
|
|
10
|
+
* @vue/runtime-core v3.5.34
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**/const mt=[];function kn(e){mt.push(e)}function Pn(){mt.pop()}let Ps=!1;function N(e,...t){if(Ps)return;Ps=!0,Ce();const n=mt.length?mt[mt.length-1].component:null,s=n&&n.appContext.config.warnHandler,r=il();if(s)Tt(s,n,11,[e+t.map(i=>{var o,c;return(c=(o=i.toString)==null?void 0:o.call(i))!=null?c:JSON.stringify(i)}).join(""),n&&n.proxy,r.map(({vnode:i})=>`at <${dn(n,i.type)}>`).join(`
|
|
14
|
+
`),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(`
|
|
15
|
+
`,...ol(r)),console.warn(...i)}Te(),Ps=!1}function il(){let e=mt[mt.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function ol(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
|
|
16
|
+
`],...cl(n))}),t}function cl({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,r=` at <${dn(e.component,e.type,s)}`,i=">"+n;return e.props?[r,...ll(e.props),i]:[r+i]}function ll(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...ri(s,e[s]))}),n.length>3&&t.push(" ..."),t}function ri(e,t,n){return Y(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Q(t)?(t=ri(e,P(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):V(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=P(t),n?t:[`${e}=`,t])}const Is={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Tt(e,t,n,s){try{return s?e(...s):e()}catch(r){Gt(r,t,n)}}function je(e,t,n,s){if(V(e)){const r=Tt(e,t,n,s);return r&&hs(r)&&r.catch(i=>{Gt(i,t,n)}),r}if(C(e)){const r=[];for(let i=0;i<e.length;i++)r.push(je(e[i],t,n,s));return r}else process.env.NODE_ENV!=="production"&&N(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function Gt(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||q;if(t){let c=t.parent;const l=t.proxy,h=process.env.NODE_ENV!=="production"?Is[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;c;){const f=c.ec;if(f){for(let u=0;u<f.length;u++)if(f[u](e,l,h)===!1)return}c=c.parent}if(i){Ce(),Tt(i,null,10,[e,l,h]),Te();return}}al(e,n,r,s,o)}function al(e,t,n,s=!0,r=!1){if(process.env.NODE_ENV!=="production"){const i=Is[t];if(n&&kn(n),N(`Unhandled error${i?` during execution of ${i}`:""}`),n&&Pn(),s)throw e;console.error(e)}else{if(r)throw e;console.error(e)}}const fe=[];let Ue=-1;const At=[];let ot=null,Vt=0;const ii=Promise.resolve();let In=null;const ul=100;function Ms(e){const t=In||ii;return e?t.then(this?e.bind(this):e):t}function fl(e){let t=Ue+1,n=fe.length;for(;t<n;){const s=t+n>>>1,r=fe[s],i=Xt(r);i<e||i===e&&r.flags&2?t=s+1:n=s}return t}function Mn(e){if(!(e.flags&1)){const t=Xt(e),n=fe[fe.length-1];!n||!(e.flags&2)&&t>=Xt(n)?fe.push(e):fe.splice(fl(t),0,e),e.flags|=1,oi()}}function oi(){In||(In=ii.then(ui))}function ci(e){C(e)?At.push(...e):ot&&e.id===-1?ot.splice(Vt+1,0,e):e.flags&1||(At.push(e),e.flags|=1),oi()}function li(e,t,n=Ue+1){for(process.env.NODE_ENV!=="production"&&(t=t||new Map);n<fe.length;n++){const s=fe[n];if(s&&s.flags&2){if(e&&s.id!==e.uid||process.env.NODE_ENV!=="production"&&$s(t,s))continue;fe.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function ai(e){if(At.length){const t=[...new Set(At)].sort((n,s)=>Xt(n)-Xt(s));if(At.length=0,ot){ot.push(...t);return}for(ot=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),Vt=0;Vt<ot.length;Vt++){const n=ot[Vt];process.env.NODE_ENV!=="production"&&$s(e,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}ot=null,Vt=0}}const Xt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ui(e){process.env.NODE_ENV!=="production"&&(e=e||new Map);const t=process.env.NODE_ENV!=="production"?n=>$s(e,n):ne;try{for(Ue=0;Ue<fe.length;Ue++){const n=fe[Ue];if(n&&!(n.flags&8)){if(process.env.NODE_ENV!=="production"&&t(n))continue;n.flags&4&&(n.flags&=-2),Tt(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2)}}}finally{for(;Ue<fe.length;Ue++){const n=fe[Ue];n&&(n.flags&=-2)}Ue=-1,fe.length=0,ai(e),In=null,(fe.length||At.length)&&ui(e)}}function $s(e,t){const n=e.get(t)||0;if(n>ul){const s=t.i,r=s&&mo(s.type);return Gt(`Maximum recursive updates exceeded${r?` in component <${r}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(t,n+1),!1}let ve=!1;const fi=e=>{try{return ve}finally{ve=e}},$n=new Map;process.env.NODE_ENV!=="production"&&(qt().__VUE_HMR_RUNTIME__={createRecord:Ls(di),rerender:Ls(pl),reload:Ls(gl)});const yt=new Map;function dl(e){const t=e.type.__hmrId;let n=yt.get(t);n||(di(t,e.type),n=yt.get(t)),n.instances.add(e)}function hl(e){yt.get(e.type.__hmrId).instances.delete(e)}function di(e,t){return yt.has(e)?!1:(yt.set(e,{initialDef:Ln(t),instances:new Set}),!0)}function Ln(e){return yo(e)?e.__vccOpts:e}function pl(e,t){const n=yt.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(s=>{t&&(s.render=t,Ln(s.type).render=t),s.renderCache=[],ve=!0,s.job.flags&8||s.update(),ve=!1}))}function gl(e,t){const n=yt.get(e);if(!n)return;t=Ln(t),hi(n.initialDef,t);const s=[...n.instances];for(let r=0;r<s.length;r++){const i=s[r],o=Ln(i.type);let c=$n.get(o);c||(o!==n.initialDef&&hi(o,t),$n.set(o,c=new Set)),c.add(i),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(c.add(i),i.ceReload(t.styles),c.delete(i)):i.parent?Mn(()=>{i.job.flags&8||(ve=!0,i.parent.update(),ve=!1,c.delete(i))}):i.appContext.reload?i.appContext.reload():typeof window!="undefined"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),i.root.ce&&i!==i.root&&i.root.ce._removeChildStyle(o)}ci(()=>{$n.clear()})}function hi(e,t){G(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function Ls(e){return(t,n)=>{try{return e(t,n)}catch(s){console.error(s),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Re,Qt=[],Bs=!1;function Zt(e,...t){Re?Re.emit(e,...t):Bs||Qt.push({event:e,args:t})}function Fs(e,t){var n,s;Re=e,Re?(Re.enabled=!0,Qt.forEach(({event:r,args:i})=>Re.emit(r,...i)),Qt=[]):typeof window!="undefined"&&window.HTMLElement&&!((s=(n=window.navigator)==null?void 0:n.userAgent)!=null&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{Fs(i,t)}),setTimeout(()=>{Re||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Bs=!0,Qt=[])},3e3)):(Bs=!0,Qt=[])}function _l(e,t){Zt("app:init",e,t,{Fragment:ke,Text:on,Comment:Ee,Static:Yn})}function ml(e){Zt("app:unmount",e)}const yl=js("component:added"),pi=js("component:updated"),bl=js("component:removed"),vl=e=>{Re&&typeof Re.cleanupBuffer=="function"&&!Re.cleanupBuffer(e)&&bl(e)};function js(e){return t=>{Zt(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const El=gi("perf:start"),Nl=gi("perf:end");function gi(e){return(t,n,s)=>{Zt(e,t.appContext.app,t.uid,t,n,s)}}function wl(e,t,n){Zt("component:emit",e.appContext.app,e,t,n)}let de=null,_i=null;function Bn(e){const t=de;return de=e,_i=e&&e.type.__scopeId||null,t}function Ol(e,t=de,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&io(-1);const i=Bn(t);let o;try{o=e(...r)}finally{Bn(i),s._d&&io(1)}return process.env.NODE_ENV!=="production"&&pi(t),o};return s._n=!0,s._c=!0,s._d=!0,s}function mi(e){gc(e)&&N("Do not use built-in directive ids as custom directive id: "+e)}function yi(e,t){if(de===null)return process.env.NODE_ENV!=="production"&&N("withDirectives can only be used inside render functions."),e;const n=Zn(de),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,c,l=q]=t[r];i&&(V(i)&&(i={mounted:i,updated:i}),i.deep&&Ze(o),s.push({dir:i,instance:n,value:o,oldValue:void 0,arg:c,modifiers:l}))}return e}function bt(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const c=r[o];i&&(c.oldValue=i[o].value);let l=c.dir[s];l&&(Ce(),je(l,n,8,[e.el,c,e,t]),Te())}}function xl(e,t){if(process.env.NODE_ENV!=="production"&&(!re||re.isMounted)&&N("provide() can only be used inside setup()."),re){let n=re.provides;const s=re.parent&&re.parent.provides;s===n&&(n=re.provides=Object.create(s)),n[e]=t}}function Fn(e,t,n=!1){const s=uo();if(s||Rt){let r=Rt?Rt._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&V(t)?t.call(s&&s.proxy):t;process.env.NODE_ENV!=="production"&&N(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!=="production"&&N("inject() can only be used inside setup() or functional components.")}const Sl=Symbol.for("v-scx"),Dl=()=>{{const e=Fn(Sl);return e||process.env.NODE_ENV!=="production"&&N("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function en(e,t,n){return process.env.NODE_ENV!=="production"&&!V(t)&&N("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),bi(e,t,n)}function bi(e,t,n=q){const{immediate:s,deep:r,flush:i,once:o}=n;process.env.NODE_ENV!=="production"&&!t&&(s!==void 0&&N('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&N('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&N('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const c=G({},n);process.env.NODE_ENV!=="production"&&(c.onWarn=N);const l=t&&s||!t&&i!=="post";let h;if(fn){if(i==="sync"){const O=Dl();h=O.__watcherHandles||(O.__watcherHandles=[])}else if(!l){const O=()=>{};return O.stop=ne,O.resume=ne,O.pause=ne,O}}const f=re;c.call=(O,R,D)=>je(O,f,R,D);let u=!1;i==="post"?c.scheduler=O=>{_e(O,f&&f.suspense)}:i!=="sync"&&(u=!0,c.scheduler=(O,R)=>{R?O():Mn(O)}),c.augmentJob=O=>{t&&(O.flags|=4),u&&(O.flags|=2,f&&(O.id=f.uid,O.i=f))};const g=rl(e,t,c);return fn&&(h?h.push(g):l&&g()),g}function Cl(e,t,n){const s=this.proxy,r=Y(e)?e.includes(".")?vi(s,e):()=>s[e]:e.bind(s,s);let i;V(t)?i=t:(i=t.handler,n=t);const o=un(this),c=bi(r,i.bind(s),n);return o(),c}function vi(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const Tl=Symbol("_vte"),Al=e=>e.__isTeleport,Vl=Symbol("_leaveCb");function Us(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Us(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ei(e,t){return V(e)?G({name:e.name},t,{setup:e}):e}function Ni(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const wi=new WeakSet;function Oi(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const jn=new WeakMap;function tn(e,t,n,s,r=!1){if(C(e)){e.forEach((D,X)=>tn(D,t&&(C(t)?t[X]:t),n,s,r));return}if(nn(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&tn(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?Zn(s.component):s.el,o=r?null:i,{i:c,r:l}=e;if(process.env.NODE_ENV!=="production"&&!c){N("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const h=t&&t.r,f=c.refs===q?c.refs={}:c.refs,u=c.setupState,g=P(u),O=u===q?Cr:D=>process.env.NODE_ENV!=="production"&&(M(g,D)&&!Q(g[D])&&N(`Template ref "${D}" used on a non-ref value. It will not work in the production build.`),wi.has(g[D]))||Oi(f,D)?!1:M(g,D),R=(D,X)=>!(process.env.NODE_ENV!=="production"&&wi.has(D)||X&&Oi(f,X));if(h!=null&&h!==l){if(xi(t),Y(h))f[h]=null,O(h)&&(u[h]=null);else if(Q(h)){const D=t;R(h,D.k)&&(h.value=null),D.k&&(f[D.k]=null)}}if(V(l))Tt(l,c,12,[o,f]);else{const D=Y(l),X=Q(l);if(D||X){const J=()=>{if(e.f){const I=D?O(l)?u[l]:f[l]:R(l)||!e.k?l.value:f[e.k];if(r)C(I)&&ds(I,i);else if(C(I))I.includes(i)||I.push(i);else if(D)f[l]=[i],O(l)&&(u[l]=f[l]);else{const B=[i];R(l,e.k)&&(l.value=B),e.k&&(f[e.k]=B)}}else D?(f[l]=o,O(l)&&(u[l]=o)):X?(R(l,e.k)&&(l.value=o),e.k&&(f[e.k]=o)):process.env.NODE_ENV!=="production"&&N("Invalid template ref type:",l,`(${typeof l})`)};if(o){const I=()=>{J(),jn.delete(e)};I.id=-1,jn.set(e,I),_e(I,n)}else xi(e),J()}else process.env.NODE_ENV!=="production"&&N("Invalid template ref type:",l,`(${typeof l})`)}}function xi(e){const t=jn.get(e);t&&(t.flags|=8,jn.delete(e))}qt().requestIdleCallback,qt().cancelIdleCallback;const nn=e=>!!e.type.__asyncLoader,Hs=e=>e.type.__isKeepAlive;function Rl(e,t){Si(e,"a",t)}function kl(e,t){Si(e,"da",t)}function Si(e,t,n=re){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Un(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Hs(r.parent.vnode)&&Pl(s,t,n,r),r=r.parent}}function Pl(e,t,n,s){const r=Un(t,e,s,!0);Ti(()=>{ds(s[t],r)},n)}function Un(e,t,n=re,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Ce();const c=un(n),l=je(t,n,e,o);return c(),Te(),l});return s?r.unshift(i):r.push(i),i}else if(process.env.NODE_ENV!=="production"){const r=pt(Is[e].replace(/ hook$/,""));N(`${r} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const et=e=>(t,n=re)=>{(!fn||e==="sp")&&Un(e,(...s)=>t(...s),n)},Il=et("bm"),Di=et("m"),Ml=et("bu"),$l=et("u"),Ci=et("bum"),Ti=et("um"),Ll=et("sp"),Bl=et("rtg"),Fl=et("rtc");function jl(e,t=re){Un("ec",e,t)}const Ul=Symbol.for("v-ndc");function Hl(e,t,n,s){let r;const i=n,o=C(e);if(o||Y(e)){const c=o&&it(e);let l=!1,h=!1;c&&(l=!ue(e),h=Ae(e),e=xn(e)),r=new Array(e.length);for(let f=0,u=e.length;f<u;f++)r[f]=t(l?h?Dt(Ve(e[f])):Ve(e[f]):e[f],f,void 0,i)}else if(typeof e=="number")if(process.env.NODE_ENV!=="production"&&(!Number.isInteger(e)||e<0))N(`The v-for range expects a positive integer value but got ${e}.`),r=[];else{r=new Array(e);for(let c=0;c<e;c++)r[c]=t(c+1,c,void 0,i)}else if(U(e))if(e[Symbol.iterator])r=Array.from(e,(c,l)=>t(c,l,void 0,i));else{const c=Object.keys(e);r=new Array(c.length);for(let l=0,h=c.length;l<h;l++){const f=c[l];r[l]=t(e[f],f,l,i)}}else r=[];return r}const qs=e=>e?ho(e)?Zn(e):qs(e.parent):null,vt=G(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>process.env.NODE_ENV!=="production"?Fe(e.props):e.props,$attrs:e=>process.env.NODE_ENV!=="production"?Fe(e.attrs):e.attrs,$slots:e=>process.env.NODE_ENV!=="production"?Fe(e.slots):e.slots,$refs:e=>process.env.NODE_ENV!=="production"?Fe(e.refs):e.refs,$parent:e=>qs(e.parent),$root:e=>qs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Pi(e),$forceUpdate:e=>e.f||(e.f=()=>{Mn(e.update)}),$nextTick:e=>e.n||(e.n=Ms.bind(e.proxy)),$watch:e=>Cl.bind(e)}),Ks=e=>e==="_"||e==="$",Ws=(e,t)=>e!==q&&!e.__isScriptSetup&&M(e,t),Ai={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:c,appContext:l}=e;if(process.env.NODE_ENV!=="production"&&t==="__isVue")return!0;if(t[0]!=="$"){const g=o[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Ws(s,t))return o[t]=1,s[t];if(r!==q&&M(r,t))return o[t]=2,r[t];if(M(i,t))return o[t]=3,i[t];if(n!==q&&M(n,t))return o[t]=4,n[t];zs&&(o[t]=0)}}const h=vt[t];let f,u;if(h)return t==="$attrs"?(se(e.attrs,"get",""),process.env.NODE_ENV!=="production"&&Kn()):process.env.NODE_ENV!=="production"&&t==="$slots"&&se(e,"get",t),h(e);if((f=c.__cssModules)&&(f=f[t]))return f;if(n!==q&&M(n,t))return o[t]=4,n[t];if(u=l.config.globalProperties,M(u,t))return u[t];process.env.NODE_ENV!=="production"&&de&&(!Y(t)||t.indexOf("__v")!==0)&&(r!==q&&Ks(t[0])&&M(r,t)?N(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===de&&N(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return Ws(r,t)?(r[t]=n,!0):process.env.NODE_ENV!=="production"&&r.__isScriptSetup&&M(r,t)?(N(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):s!==q&&M(s,t)?(s[t]=n,!0):M(e.props,t)?(process.env.NODE_ENV!=="production"&&N(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(process.env.NODE_ENV!=="production"&&N(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(i,t,{enumerable:!0,configurable:!0,value:n}):i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:i,type:o}},c){let l;return!!(n[c]||e!==q&&c[0]!=="$"&&M(e,c)||Ws(t,c)||M(i,c)||M(s,c)||M(vt,c)||M(r.config.globalProperties,c)||(l=o.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:M(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};process.env.NODE_ENV!=="production"&&(Ai.ownKeys=e=>(N("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function ql(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(vt).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>vt[n](e),set:ne})}),t}function Kl(e){const{ctx:t,propsOptions:[n]}=e;n&&Object.keys(n).forEach(s=>{Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>e.props[s],set:ne})})}function Wl(e){const{ctx:t,setupState:n}=e;Object.keys(P(n)).forEach(s=>{if(!n.__isScriptSetup){if(Ks(s[0])){N(`setup() return property ${JSON.stringify(s)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>n[s],set:ne})}})}function Vi(e){return C(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function zl(){const e=Object.create(null);return(t,n)=>{e[n]?N(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}let zs=!0;function Yl(e){const t=Pi(e),n=e.proxy,s=e.ctx;zs=!1,t.beforeCreate&&Ri(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:c,provide:l,inject:h,created:f,beforeMount:u,mounted:g,beforeUpdate:O,updated:R,activated:D,deactivated:X,beforeDestroy:J,beforeUnmount:I,destroyed:B,unmounted:pe,render:v,renderTracked:F,renderTriggered:ee,errorCaptured:ae,serverPrefetch:me,expose:rt,inheritAttrs:ut,components:Me,directives:us,filters:ac}=t,ft=process.env.NODE_ENV!=="production"?zl():null;if(process.env.NODE_ENV!=="production"){const[j]=e.propsOptions;if(j)for(const L in j)ft("Props",L)}if(h&&Jl(h,s,ft),o)for(const j in o){const L=o[j];V(L)?(process.env.NODE_ENV!=="production"?Object.defineProperty(s,j,{value:L.bind(n),configurable:!0,enumerable:!0,writable:!0}):s[j]=L.bind(n),process.env.NODE_ENV!=="production"&&ft("Methods",j)):process.env.NODE_ENV!=="production"&&N(`Method "${j}" has type "${typeof L}" in the component definition. Did you reference the function correctly?`)}if(r){process.env.NODE_ENV!=="production"&&!V(r)&&N("The data option must be a function. Plain object usage is no longer supported.");const j=r.call(n,n);if(process.env.NODE_ENV!=="production"&&hs(j)&&N("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!U(j))process.env.NODE_ENV!=="production"&&N("data() should return an object.");else if(e.data=Rs(j),process.env.NODE_ENV!=="production")for(const L in j)ft("Data",L),Ks(L[0])||Object.defineProperty(s,L,{configurable:!0,enumerable:!0,get:()=>j[L],set:ne})}if(zs=!0,i)for(const j in i){const L=i[j],ze=V(L)?L.bind(n,n):V(L.get)?L.get.bind(n,n):ne;process.env.NODE_ENV!=="production"&&ze===ne&&N(`Computed property "${j}" has no getter.`);const xr=!V(L)&&V(L.set)?L.set.bind(n):process.env.NODE_ENV!=="production"?()=>{N(`Write operation failed: computed property "${j}" is readonly.`)}:ne,mn=qa({get:ze,set:xr});Object.defineProperty(s,j,{enumerable:!0,configurable:!0,get:()=>mn.value,set:Lt=>mn.value=Lt}),process.env.NODE_ENV!=="production"&&ft("Computed",j)}if(c)for(const j in c)ki(c[j],s,n,j);if(l){const j=V(l)?l.call(n):l;Reflect.ownKeys(j).forEach(L=>{xl(L,j[L])})}f&&Ri(f,e,"c");function ye(j,L){C(L)?L.forEach(ze=>j(ze.bind(n))):L&&j(L.bind(n))}if(ye(Il,u),ye(Di,g),ye(Ml,O),ye($l,R),ye(Rl,D),ye(kl,X),ye(jl,ae),ye(Fl,F),ye(Bl,ee),ye(Ci,I),ye(Ti,pe),ye(Ll,me),C(rt))if(rt.length){const j=e.exposed||(e.exposed={});rt.forEach(L=>{Object.defineProperty(j,L,{get:()=>n[L],set:ze=>n[L]=ze,enumerable:!0})})}else e.exposed||(e.exposed={});v&&e.render===ne&&(e.render=v),ut!=null&&(e.inheritAttrs=ut),Me&&(e.components=Me),us&&(e.directives=us),me&&Ni(e)}function Jl(e,t,n=ne){C(e)&&(e=Ys(e));for(const s in e){const r=e[s];let i;U(r)?"default"in r?i=Fn(r.from||s,r.default,!0):i=Fn(r.from||s):i=Fn(r),Q(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i,process.env.NODE_ENV!=="production"&&n("Inject",s)}}function Ri(e,t,n){je(C(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function ki(e,t,n,s){let r=s.includes(".")?vi(n,s):()=>n[s];if(Y(e)){const i=t[e];V(i)?en(r,i):process.env.NODE_ENV!=="production"&&N(`Invalid watch handler specified by key "${e}"`,i)}else if(V(e))en(r,e.bind(n));else if(U(e))if(C(e))e.forEach(i=>ki(i,t,n,s));else{const i=V(e.handler)?e.handler.bind(n):t[e.handler];V(i)?en(r,i,e):process.env.NODE_ENV!=="production"&&N(`Invalid watch handler specified by key "${e.handler}"`,i)}else process.env.NODE_ENV!=="production"&&N(`Invalid watch option: "${s}"`,e)}function Pi(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,c=i.get(t);let l;return c?l=c:!r.length&&!n&&!s?l=t:(l={},r.length&&r.forEach(h=>Hn(l,h,o,!0)),Hn(l,t,o)),U(t)&&i.set(t,l),l}function Hn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Hn(e,i,n,!0),r&&r.forEach(o=>Hn(e,o,n,!0));for(const o in t)if(s&&o==="expose")process.env.NODE_ENV!=="production"&&N('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const c=Gl[o]||n&&n[o];e[o]=c?c(e[o],t[o]):t[o]}return e}const Gl={data:Ii,props:Mi,emits:Mi,methods:sn,computed:sn,beforeCreate:he,created:he,beforeMount:he,mounted:he,beforeUpdate:he,updated:he,beforeDestroy:he,beforeUnmount:he,destroyed:he,unmounted:he,activated:he,deactivated:he,errorCaptured:he,serverPrefetch:he,components:sn,directives:sn,watch:Ql,provide:Ii,inject:Xl};function Ii(e,t){return t?e?function(){return G(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function Xl(e,t){return sn(Ys(e),Ys(t))}function Ys(e){if(C(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function he(e,t){return e?[...new Set([].concat(e,t))]:t}function sn(e,t){return e?G(Object.create(null),e,t):t}function Mi(e,t){return e?C(e)&&C(t)?[...new Set([...e,...t])]:G(Object.create(null),Vi(e),Vi(t!=null?t:{})):t}function Ql(e,t){if(!e)return t;if(!t)return e;const n=G(Object.create(null),e);for(const s in t)n[s]=he(e[s],t[s]);return n}function $i(){return{app:null,config:{isNativeTag:Cr,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Zl=0;function ea(e,t){return function(s,r=null){V(s)||(s=G({},s)),r!=null&&!U(r)&&(process.env.NODE_ENV!=="production"&&N("root props passed to app.mount() must be an object."),r=null);const i=$i(),o=new WeakSet,c=[];let l=!1;const h=i.app={_uid:Zl++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:bo,get config(){return i.config},set config(f){process.env.NODE_ENV!=="production"&&N("app.config cannot be replaced. Modify individual options instead.")},use(f,...u){return o.has(f)?process.env.NODE_ENV!=="production"&&N("Plugin has already been applied to target app."):f&&V(f.install)?(o.add(f),f.install(h,...u)):V(f)?(o.add(f),f(h,...u)):process.env.NODE_ENV!=="production"&&N('A plugin must either be a function or an object with an "install" function.'),h},mixin(f){return i.mixins.includes(f)?process.env.NODE_ENV!=="production"&&N("Mixin has already been applied to target app"+(f.name?`: ${f.name}`:"")):i.mixins.push(f),h},component(f,u){return process.env.NODE_ENV!=="production"&&rr(f,i.config),u?(process.env.NODE_ENV!=="production"&&i.components[f]&&N(`Component "${f}" has already been registered in target app.`),i.components[f]=u,h):i.components[f]},directive(f,u){return process.env.NODE_ENV!=="production"&&mi(f),u?(process.env.NODE_ENV!=="production"&&i.directives[f]&&N(`Directive "${f}" has already been registered in target app.`),i.directives[f]=u,h):i.directives[f]},mount(f,u,g){if(l)process.env.NODE_ENV!=="production"&&N("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{process.env.NODE_ENV!=="production"&&f.__vue_app__&&N("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const O=h._ceVNode||He(s,r);return O.appContext=i,g===!0?g="svg":g===!1&&(g=void 0),process.env.NODE_ENV!=="production"&&(i.reload=()=>{const R=lt(O);R.el=null,e(R,f,g)}),e(O,f,g),l=!0,h._container=f,f.__vue_app__=h,process.env.NODE_ENV!=="production"&&(h._instance=O.component,_l(h,bo)),Zn(O.component)}},onUnmount(f){process.env.NODE_ENV!=="production"&&typeof f!="function"&&N(`Expected function as first argument to app.onUnmount(), but got ${typeof f}`),c.push(f)},unmount(){l?(je(c,h._instance,16),e(null,h._container),process.env.NODE_ENV!=="production"&&(h._instance=null,ml(h)),delete h._container.__vue_app__):process.env.NODE_ENV!=="production"&&N("Cannot unmount an app that is not mounted.")},provide(f,u){return process.env.NODE_ENV!=="production"&&f in i.provides&&(M(i.provides,f)?N(`App already provides property with key "${String(f)}". It will be overwritten with the new value.`):N(`App already provides property with key "${String(f)}" inherited from its parent element. It will be overwritten with the new value.`)),i.provides[f]=u,h},runWithContext(f){const u=Rt;Rt=h;try{return f()}finally{Rt=u}}};return h}}let Rt=null;const ta=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${oe(t)}Modifiers`]||e[`${be(t)}Modifiers`];function na(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||q;if(process.env.NODE_ENV!=="production"){const{emitsOptions:f,propsOptions:[u]}=e;if(f)if(!(t in f))(!u||!(pt(oe(t))in u))&&N(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${pt(oe(t))}" prop.`);else{const g=f[t];V(g)&&(g(...n)||N(`Invalid event arguments: event validation failed for event "${t}".`))}}let r=n;const i=t.startsWith("update:"),o=i&&ta(s,t.slice(7));if(o&&(o.trim&&(r=n.map(f=>Y(f)?f.trim():f)),o.number&&(r=n.map(_s))),process.env.NODE_ENV!=="production"&&wl(e,t,r),process.env.NODE_ENV!=="production"){const f=t.toLowerCase();f!==t&&s[pt(f)]&&N(`Event "${f}" is emitted in component ${dn(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${be(t)}" instead of "${t}".`)}let c,l=s[c=pt(t)]||s[c=pt(oe(t))];!l&&i&&(l=s[c=pt(be(t))]),l&&je(l,e,6,r);const h=s[c+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,je(h,e,6,r)}}const sa=new WeakMap;function Li(e,t,n=!1){const s=n?sa:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},c=!1;if(!V(e)){const l=h=>{const f=Li(h,t,!0);f&&(c=!0,G(o,f))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!c?(U(e)&&s.set(e,null),null):(C(i)?i.forEach(l=>o[l]=null):G(o,i),U(e)&&s.set(e,o),o)}function qn(e,t){return!e||!Ft(t)?!1:(t=t.slice(2).replace(/Once$/,""),M(e,t[0].toLowerCase()+t.slice(1))||M(e,be(t))||M(e,t))}let Js=!1;function Kn(){Js=!0}function Bi(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:c,emit:l,render:h,renderCache:f,props:u,data:g,setupState:O,ctx:R,inheritAttrs:D}=e,X=Bn(e);let J,I;process.env.NODE_ENV!=="production"&&(Js=!1);try{if(n.shapeFlag&4){const v=r||s,F=process.env.NODE_ENV!=="production"&&O.__isScriptSetup?new Proxy(v,{get(ee,ae,me){return N(`Property '${String(ae)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(ee,ae,me)}}):v;J=Pe(h.call(F,v,f,process.env.NODE_ENV!=="production"?Fe(u):u,O,g,R)),I=c}else{const v=t;process.env.NODE_ENV!=="production"&&c===u&&Kn(),J=Pe(v.length>1?v(process.env.NODE_ENV!=="production"?Fe(u):u,process.env.NODE_ENV!=="production"?{get attrs(){return Kn(),Fe(c)},slots:o,emit:l}:{attrs:c,slots:o,emit:l}):v(process.env.NODE_ENV!=="production"?Fe(u):u,null)),I=t.props?c:ra(c)}}catch(v){cn.length=0,Gt(v,e,1),J=He(Ee)}let B=J,pe;if(process.env.NODE_ENV!=="production"&&J.patchFlag>0&&J.patchFlag&2048&&([B,pe]=Fi(J)),I&&D!==!1){const v=Object.keys(I),{shapeFlag:F}=B;if(v.length){if(F&7)i&&v.some(jt)&&(I=ia(I,i)),B=lt(B,I,!1,!0);else if(process.env.NODE_ENV!=="production"&&!Js&&B.type!==Ee){const ee=Object.keys(c),ae=[],me=[];for(let rt=0,ut=ee.length;rt<ut;rt++){const Me=ee[rt];Ft(Me)?jt(Me)||ae.push(Me[2].toLowerCase()+Me.slice(3)):me.push(Me)}me.length&&N(`Extraneous non-props attributes (${me.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes.`),ae.length&&N(`Extraneous non-emits event listeners (${ae.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return n.dirs&&(process.env.NODE_ENV!=="production"&&!ji(B)&&N("Runtime directive used on component with non-element root node. The directives will not function as intended."),B=lt(B,null,!1,!0),B.dirs=B.dirs?B.dirs.concat(n.dirs):n.dirs),n.transition&&(process.env.NODE_ENV!=="production"&&!ji(B)&&N("Component inside <Transition> renders non-element root node that cannot be animated."),Us(B,n.transition)),process.env.NODE_ENV!=="production"&&pe?pe(B):J=B,Bn(X),J}const Fi=e=>{const t=e.children,n=e.dynamicChildren,s=Gs(t,!1);if(s){if(process.env.NODE_ENV!=="production"&&s.patchFlag>0&&s.patchFlag&2048)return Fi(s)}else return[e,void 0];const r=t.indexOf(s),i=n?n.indexOf(s):-1,o=c=>{t[r]=c,n&&(i>-1?n[i]=c:c.patchFlag>0&&(e.dynamicChildren=[...n,c]))};return[Pe(s),o]};function Gs(e,t=!0){let n;for(let s=0;s<e.length;s++){const r=e[s];if(Jn(r)){if(r.type!==Ee||r.children==="v-if"){if(n)return;if(n=r,process.env.NODE_ENV!=="production"&&t&&n.patchFlag>0&&n.patchFlag&2048)return Gs(n.children)}}else return}return n}const ra=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ft(n))&&((t||(t={}))[n]=e[n]);return t},ia=(e,t)=>{const n={};for(const s in e)(!jt(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n},ji=e=>e.shapeFlag&7||e.type===Ee;function oa(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:c,patchFlag:l}=t,h=i.emitsOptions;if(process.env.NODE_ENV!=="production"&&(r||c)&&ve||t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Ui(s,o,h):!!o;if(l&8){const f=t.dynamicProps;for(let u=0;u<f.length;u++){const g=f[u];if(Hi(o,s,g)&&!qn(h,g))return!0}}}else return(r||c)&&(!c||!c.$stable)?!0:s===o?!1:s?o?Ui(s,o,h):!0:!!o;return!1}function Ui(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(Hi(t,e,i)&&!qn(n,i))return!0}return!1}function Hi(e,t,n){const s=e[n],r=t[n];return n==="style"&&U(s)&&U(r)?!ys(s,r):s!==r}function ca({vnode:e,parent:t,suspense:n},s){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=s,e=r),r===e)(e=t.vnode).el=s,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=s)}const qi={},Ki=()=>Object.create(qi),Wi=e=>Object.getPrototypeOf(e)===qi;function la(e,t,n,s=!1){const r={},i=Ki();e.propsDefaults=Object.create(null),zi(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);process.env.NODE_ENV!=="production"&&Gi(t||{},r,e),n?e.props=s?r:Gc(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function aa(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function ua(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,c=P(r),[l]=e.propsOptions;let h=!1;if(!(process.env.NODE_ENV!=="production"&&aa(e))&&(s||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let u=0;u<f.length;u++){let g=f[u];if(qn(e.emitsOptions,g))continue;const O=t[g];if(l)if(M(i,g))O!==i[g]&&(i[g]=O,h=!0);else{const R=oe(g);r[R]=Xs(l,c,R,O,e,!1)}else O!==i[g]&&(i[g]=O,h=!0)}}}else{zi(e,t,r,i)&&(h=!0);let f;for(const u in c)(!t||!M(t,u)&&((f=be(u))===u||!M(t,f)))&&(l?n&&(n[u]!==void 0||n[f]!==void 0)&&(r[u]=Xs(l,c,u,void 0,e,!0)):delete r[u]);if(i!==c)for(const u in i)(!t||!M(t,u))&&(delete i[u],h=!0)}h&&Le(e.attrs,"set",""),process.env.NODE_ENV!=="production"&&Gi(t||{},r,e)}function zi(e,t,n,s){const[r,i]=e.propsOptions;let o=!1,c;if(t)for(let l in t){if(Ht(l))continue;const h=t[l];let f;r&&M(r,f=oe(l))?!i||!i.includes(f)?n[f]=h:(c||(c={}))[f]=h:qn(e.emitsOptions,l)||(!(l in s)||h!==s[l])&&(s[l]=h,o=!0)}if(i){const l=P(n),h=c||q;for(let f=0;f<i.length;f++){const u=i[f];n[u]=Xs(r,l,u,h[u],e,!M(h,u))}}return o}function Xs(e,t,n,s,r,i){const o=e[n];if(o!=null){const c=M(o,"default");if(c&&s===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&V(l)){const{propsDefaults:h}=r;if(n in h)s=h[n];else{const f=un(r);s=h[n]=l.call(null,t),f()}}else s=l;r.ce&&r.ce._setProp(n,s)}o[0]&&(i&&!c?s=!1:o[1]&&(s===""||s===be(n))&&(s=!0))}return s}const fa=new WeakMap;function Yi(e,t,n=!1){const s=n?fa:t.propsCache,r=s.get(e);if(r)return r;const i=e.props,o={},c=[];let l=!1;if(!V(e)){const f=u=>{l=!0;const[g,O]=Yi(u,t,!0);G(o,g),O&&c.push(...O)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!i&&!l)return U(e)&&s.set(e,wt),wt;if(C(i))for(let f=0;f<i.length;f++){process.env.NODE_ENV!=="production"&&!Y(i[f])&&N("props must be strings when using array syntax.",i[f]);const u=oe(i[f]);Ji(u)&&(o[u]=q)}else if(i){process.env.NODE_ENV!=="production"&&!U(i)&&N("invalid props options",i);for(const f in i){const u=oe(f);if(Ji(u)){const g=i[f],O=o[u]=C(g)||V(g)?{type:g}:G({},g),R=O.type;let D=!1,X=!0;if(C(R))for(let J=0;J<R.length;++J){const I=R[J],B=V(I)&&I.name;if(B==="Boolean"){D=!0;break}else B==="String"&&(X=!1)}else D=V(R)&&R.name==="Boolean";O[0]=D,O[1]=X,(D||M(O,"default"))&&c.push(u)}}}const h=[o,c];return U(e)&&s.set(e,h),h}function Ji(e){return e[0]!=="$"&&!Ht(e)?!0:(process.env.NODE_ENV!=="production"&&N(`Invalid prop name: "${e}" is a reserved property.`),!1)}function da(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Gi(e,t,n){const s=P(t),r=n.propsOptions[0],i=Object.keys(e).map(o=>oe(o));for(const o in r){let c=r[o];c!=null&&ha(o,s[o],c,process.env.NODE_ENV!=="production"?Fe(s):s,!i.includes(o))}}function ha(e,t,n,s,r){const{type:i,required:o,validator:c,skipCheck:l}=n;if(o&&r){N('Missing required prop: "'+e+'"');return}if(!(t==null&&!o)){if(i!=null&&i!==!0&&!l){let h=!1;const f=C(i)?i:[i],u=[];for(let g=0;g<f.length&&!h;g++){const{valid:O,expectedType:R}=ga(t,f[g]);u.push(R||""),h=O}if(!h){N(_a(e,t,u));return}}c&&!c(t,s)&&N('Invalid prop: custom validator check failed for prop "'+e+'".')}}const pa=Xe("String,Number,Boolean,Function,Symbol,BigInt");function ga(e,t){let n;const s=da(t);if(s==="null")n=e===null;else if(pa(s)){const r=typeof e;n=r===s.toLowerCase(),!n&&r==="object"&&(n=e instanceof t)}else s==="Object"?n=U(e):s==="Array"?n=C(e):n=e instanceof t;return{valid:n,expectedType:s}}function _a(e,t,n){if(n.length===0)return`Prop type [] for prop "${e}" won't match anything. Did you mean to use type Array instead?`;let s=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(wn).join(" | ")}`;const r=n[0],i=ps(t),o=Xi(t,r),c=Xi(t,i);return n.length===1&&Qi(r)&&ma(r,i)&&(s+=` with value ${o}`),s+=`, got ${i} `,Qi(i)&&(s+=`with value ${c}.`),s}function Xi(e,t){return xe(e)?e.toString():t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function Qi(e){return["string","number","boolean"].some(n=>e.toLowerCase()===n)}function ma(...e){return e.every(t=>{const n=t.toLowerCase();return n!=="boolean"&&n!=="symbol"})}const Qs=e=>e==="_"||e==="_ctx"||e==="$stable",Zs=e=>C(e)?e.map(Pe):[Pe(e)],ya=(e,t,n)=>{if(t._n)return t;const s=Ol((...r)=>(process.env.NODE_ENV!=="production"&&re&&!(n===null&&de)&&!(n&&n.root!==re.root)&&N(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Zs(t(...r))),n);return s._c=!1,s},Zi=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Qs(r))continue;const i=e[r];if(V(i))t[r]=ya(r,i,s);else if(i!=null){process.env.NODE_ENV!=="production"&&N(`Non-function value encountered for slot "${r}". Prefer function slots for better performance.`);const o=Zs(i);t[r]=()=>o}}},eo=(e,t)=>{process.env.NODE_ENV!=="production"&&!Hs(e.vnode)&&N("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=Zs(t);e.slots.default=()=>n},er=(e,t,n)=>{for(const s in t)(n||!Qs(s))&&(e[s]=t[s])},ba=(e,t,n)=>{const s=e.slots=Ki();if(e.vnode.shapeFlag&32){const r=t._;r?(er(s,t,n),n&&On(s,"_",r,!0)):Zi(t,s)}else t&&eo(e,t)},va=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=q;if(s.shapeFlag&32){const c=t._;c?process.env.NODE_ENV!=="production"&&ve?(er(r,t,n),Le(e,"set","$slots")):n&&c===1?i=!1:er(r,t,n):(i=!t.$stable,Zi(t,r)),o=t}else t&&(eo(e,t),o={default:1});if(i)for(const c in r)!Qs(c)&&o[c]==null&&delete r[c]};let rn,tt;function kt(e,t){e.appContext.config.performance&&Wn()&&tt.mark(`vue-${t}-${e.uid}`),process.env.NODE_ENV!=="production"&&El(e,t,Wn()?tt.now():Date.now())}function Pt(e,t){if(e.appContext.config.performance&&Wn()){const n=`vue-${t}-${e.uid}`,s=n+":end",r=`<${dn(e,e.type)}> ${t}`;tt.mark(s),tt.measure(r,n,s),tt.clearMeasures(r),tt.clearMarks(n),tt.clearMarks(s)}process.env.NODE_ENV!=="production"&&Nl(e,t,Wn()?tt.now():Date.now())}function Wn(){return rn!==void 0||(typeof window!="undefined"&&window.performance?(rn=!0,tt=window.performance):rn=!1),rn}function Ea(){const e=[];if(process.env.NODE_ENV!=="production"&&e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
|
|
17
|
+
|
|
18
|
+
For more details, see https://link.vuejs.org/feature-flags.`)}}const _e=Sa;function Na(e){return wa(e)}function wa(e,t){Ea();const n=qt();n.__VUE__=!0,process.env.NODE_ENV!=="production"&&Fs(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:s,remove:r,patchProp:i,createElement:o,createText:c,createComment:l,setText:h,setElementText:f,parentNode:u,nextSibling:g,setScopeId:O=ne,insertStaticContent:R}=e,D=(a,d,p,b=null,_=null,m=null,x=void 0,w=null,E=process.env.NODE_ENV!=="production"&&ve?!1:!!d.dynamicChildren)=>{if(a===d)return;a&&!an(a,d)&&(b=fs(a),dt(a,_,m,!0),a=null),d.patchFlag===-2&&(E=!1,d.dynamicChildren=null);const{type:y,ref:A,shapeFlag:S}=d;switch(y){case on:X(a,d,p,b);break;case Ee:J(a,d,p,b);break;case Yn:a==null?I(d,p,b,x):process.env.NODE_ENV!=="production"&&B(a,d,p,x);break;case ke:us(a,d,p,b,_,m,x,w,E);break;default:S&1?F(a,d,p,b,_,m,x,w,E):S&6?ac(a,d,p,b,_,m,x,w,E):S&64||S&128?y.process(a,d,p,b,_,m,x,w,E,bn):process.env.NODE_ENV!=="production"&&N("Invalid VNode type:",y,`(${typeof y})`)}A!=null&&_?tn(A,a&&a.ref,m,d||a,!d):A==null&&a&&a.ref!=null&&tn(a.ref,null,m,a,!0)},X=(a,d,p,b)=>{if(a==null)s(d.el=c(d.children),p,b);else{const _=d.el=a.el;d.children!==a.children&&h(_,d.children)}},J=(a,d,p,b)=>{a==null?s(d.el=l(d.children||""),p,b):d.el=a.el},I=(a,d,p,b)=>{[a.el,a.anchor]=R(a.children,d,p,b,a.el,a.anchor)},B=(a,d,p,b)=>{if(d.children!==a.children){const _=g(a.anchor);v(a),[d.el,d.anchor]=R(d.children,p,_,b)}else d.el=a.el,d.anchor=a.anchor},pe=({el:a,anchor:d},p,b)=>{let _;for(;a&&a!==d;)_=g(a),s(a,p,b),a=_;s(d,p,b)},v=({el:a,anchor:d})=>{let p;for(;a&&a!==d;)p=g(a),r(a),a=p;r(d)},F=(a,d,p,b,_,m,x,w,E)=>{if(d.type==="svg"?x="svg":d.type==="math"&&(x="mathml"),a==null)ee(d,p,b,_,m,x,w,E);else{const y=a.el&&a.el._isVueCE?a.el:null;try{y&&y._beginPatch(),rt(a,d,_,m,x,w,E)}finally{y&&y._endPatch()}}},ee=(a,d,p,b,_,m,x,w)=>{let E,y;const{props:A,shapeFlag:S,transition:T,dirs:k}=a;if(E=a.el=o(a.type,m,A&&A.is,A),S&8?f(E,a.children):S&16&&me(a.children,E,null,b,_,tr(a,m),x,w),k&&bt(a,null,b,"created"),ae(E,a,a.scopeId,x,b),A){for(const W in A)W!=="value"&&!Ht(W)&&i(E,W,null,A[W],m,b);"value"in A&&i(E,"value",null,A.value,m),(y=A.onVnodeBeforeMount)&&qe(y,b,a)}process.env.NODE_ENV!=="production"&&(On(E,"__vnode",a,!0),On(E,"__vueParentComponent",b,!0)),k&&bt(a,null,b,"beforeMount");const H=Oa(_,T);if(H&&T.beforeEnter(E),s(E,d,p),(y=A&&A.onVnodeMounted)||H||k){const W=process.env.NODE_ENV!=="production"&&ve;_e(()=>{let z;process.env.NODE_ENV!=="production"&&(z=fi(W));try{y&&qe(y,b,a),H&&T.enter(E),k&&bt(a,null,b,"mounted")}finally{process.env.NODE_ENV!=="production"&&fi(z)}},_)}},ae=(a,d,p,b,_)=>{if(p&&O(a,p),b)for(let m=0;m<b.length;m++)O(a,b[m]);if(_){let m=_.subTree;if(process.env.NODE_ENV!=="production"&&m.patchFlag>0&&m.patchFlag&2048&&(m=Gs(m.children)||m),d===m||ro(m.type)&&(m.ssContent===d||m.ssFallback===d)){const x=_.vnode;ae(a,x,x.scopeId,x.slotScopeIds,_.parent)}}},me=(a,d,p,b,_,m,x,w,E=0)=>{for(let y=E;y<a.length;y++){const A=a[y]=w?nt(a[y]):Pe(a[y]);D(null,A,d,p,b,_,m,x,w)}},rt=(a,d,p,b,_,m,x)=>{const w=d.el=a.el;process.env.NODE_ENV!=="production"&&(w.__vnode=d);let{patchFlag:E,dynamicChildren:y,dirs:A}=d;E|=a.patchFlag&16;const S=a.props||q,T=d.props||q;let k;if(p&&Et(p,!1),(k=T.onVnodeBeforeUpdate)&&qe(k,p,d,a),A&&bt(d,a,p,"beforeUpdate"),p&&Et(p,!0),process.env.NODE_ENV!=="production"&&ve&&(E=0,x=!1,y=null),(S.innerHTML&&T.innerHTML==null||S.textContent&&T.textContent==null)&&f(w,""),y?(ut(a.dynamicChildren,y,w,p,b,tr(d,_),m),process.env.NODE_ENV!=="production"&&zn(a,d)):x||ze(a,d,w,null,p,b,tr(d,_),m,!1),E>0){if(E&16)Me(w,S,T,p,_);else if(E&2&&S.class!==T.class&&i(w,"class",null,T.class,_),E&4&&i(w,"style",S.style,T.style,_),E&8){const H=d.dynamicProps;for(let W=0;W<H.length;W++){const z=H[W],te=S[z],le=T[z];(le!==te||z==="value")&&i(w,z,te,le,_,p)}}E&1&&a.children!==d.children&&f(w,d.children)}else!x&&y==null&&Me(w,S,T,p,_);((k=T.onVnodeUpdated)||A)&&_e(()=>{k&&qe(k,p,d,a),A&&bt(d,a,p,"updated")},b)},ut=(a,d,p,b,_,m,x)=>{for(let w=0;w<d.length;w++){const E=a[w],y=d[w],A=E.el&&(E.type===ke||!an(E,y)||E.shapeFlag&198)?u(E.el):p;D(E,y,A,null,b,_,m,x,!0)}},Me=(a,d,p,b,_)=>{if(d!==p){if(d!==q)for(const m in d)!Ht(m)&&!(m in p)&&i(a,m,d[m],null,_,b);for(const m in p){if(Ht(m))continue;const x=p[m],w=d[m];x!==w&&m!=="value"&&i(a,m,w,x,_,b)}"value"in p&&i(a,"value",d.value,p.value,_)}},us=(a,d,p,b,_,m,x,w,E)=>{const y=d.el=a?a.el:c(""),A=d.anchor=a?a.anchor:c("");let{patchFlag:S,dynamicChildren:T,slotScopeIds:k}=d;process.env.NODE_ENV!=="production"&&(ve||S&2048)&&(S=0,E=!1,T=null),k&&(w=w?w.concat(k):k),a==null?(s(y,p,b),s(A,p,b),me(d.children||[],p,A,_,m,x,w,E)):S>0&&S&64&&T&&a.dynamicChildren&&a.dynamicChildren.length===T.length?(ut(a.dynamicChildren,T,p,_,m,x,w),process.env.NODE_ENV!=="production"?zn(a,d):(d.key!=null||_&&d===_.subTree)&&zn(a,d,!0)):ze(a,d,p,A,_,m,x,w,E)},ac=(a,d,p,b,_,m,x,w,E)=>{d.slotScopeIds=w,a==null?d.shapeFlag&512?_.ctx.activate(d,p,b,x,E):ft(d,p,b,_,m,x,E):ye(a,d,E)},ft=(a,d,p,b,_,m,x)=>{const w=a.component=Ia(a,b,_);if(process.env.NODE_ENV!=="production"&&w.type.__hmrId&&dl(w),process.env.NODE_ENV!=="production"&&(kn(a),kt(w,"mount")),Hs(a)&&(w.ctx.renderer=bn),process.env.NODE_ENV!=="production"&&kt(w,"init"),$a(w,!1,x),process.env.NODE_ENV!=="production"&&Pt(w,"init"),process.env.NODE_ENV!=="production"&&ve&&(a.el=null),w.asyncDep){if(_&&_.registerDep(w,j,x),!a.el){const E=w.subTree=He(Ee);J(null,E,d,p),a.placeholder=E.el}}else j(w,a,d,p,_,m,x);process.env.NODE_ENV!=="production"&&(Pn(),Pt(w,"mount"))},ye=(a,d,p)=>{const b=d.component=a.component;if(oa(a,d,p))if(b.asyncDep&&!b.asyncResolved){process.env.NODE_ENV!=="production"&&kn(d),L(b,d,p),process.env.NODE_ENV!=="production"&&Pn();return}else b.next=d,b.update();else d.el=a.el,b.vnode=d},j=(a,d,p,b,_,m,x)=>{const w=()=>{if(a.isMounted){let{next:S,bu:T,u:k,parent:H,vnode:W}=a;{const Je=to(a);if(Je){S&&(S.el=W.el,L(a,S,x)),Je.asyncDep.then(()=>{_e(()=>{a.isUnmounted||y()},_)});return}}let z=S,te;process.env.NODE_ENV!=="production"&&kn(S||a.vnode),Et(a,!1),S?(S.el=W.el,L(a,S,x)):S=W,T&&Ot(T),(te=S.props&&S.props.onVnodeBeforeUpdate)&&qe(te,H,S,W),Et(a,!0),process.env.NODE_ENV!=="production"&&kt(a,"render");const le=Bi(a);process.env.NODE_ENV!=="production"&&Pt(a,"render");const Ye=a.subTree;a.subTree=le,process.env.NODE_ENV!=="production"&&kt(a,"patch"),D(Ye,le,u(Ye.el),fs(Ye),a,_,m),process.env.NODE_ENV!=="production"&&Pt(a,"patch"),S.el=le.el,z===null&&ca(a,le.el),k&&_e(k,_),(te=S.props&&S.props.onVnodeUpdated)&&_e(()=>qe(te,H,S,W),_),process.env.NODE_ENV!=="production"&&pi(a),process.env.NODE_ENV!=="production"&&Pn()}else{let S;const{el:T,props:k}=d,{bm:H,m:W,parent:z,root:te,type:le}=a,Ye=nn(d);Et(a,!1),H&&Ot(H),!Ye&&(S=k&&k.onVnodeBeforeMount)&&qe(S,z,d),Et(a,!0);{te.ce&&te.ce._hasShadowRoot()&&te.ce._injectChildStyle(le,a.parent?a.parent.type:void 0),process.env.NODE_ENV!=="production"&&kt(a,"render");const Je=a.subTree=Bi(a);process.env.NODE_ENV!=="production"&&Pt(a,"render"),process.env.NODE_ENV!=="production"&&kt(a,"patch"),D(null,Je,p,b,a,_,m),process.env.NODE_ENV!=="production"&&Pt(a,"patch"),d.el=Je.el}if(W&&_e(W,_),!Ye&&(S=k&&k.onVnodeMounted)){const Je=d;_e(()=>qe(S,z,Je),_)}(d.shapeFlag&256||z&&nn(z.vnode)&&z.vnode.shapeFlag&256)&&a.a&&_e(a.a,_),a.isMounted=!0,process.env.NODE_ENV!=="production"&&yl(a),d=p=b=null}};a.scope.on();const E=a.effect=new $r(w);a.scope.off();const y=a.update=E.run.bind(E),A=a.job=E.runIfDirty.bind(E);A.i=a,A.id=a.uid,E.scheduler=()=>Mn(A),Et(a,!0),process.env.NODE_ENV!=="production"&&(E.onTrack=a.rtc?S=>Ot(a.rtc,S):void 0,E.onTrigger=a.rtg?S=>Ot(a.rtg,S):void 0),y()},L=(a,d,p)=>{d.component=a;const b=a.vnode.props;a.vnode=d,a.next=null,ua(a,d.props,b,p),va(a,d.children,p),Ce(),li(a),Te()},ze=(a,d,p,b,_,m,x,w,E=!1)=>{const y=a&&a.children,A=a?a.shapeFlag:0,S=d.children,{patchFlag:T,shapeFlag:k}=d;if(T>0){if(T&128){mn(y,S,p,b,_,m,x,w,E);return}else if(T&256){xr(y,S,p,b,_,m,x,w,E);return}}k&8?(A&16&&yn(y,_,m),S!==y&&f(p,S)):A&16?k&16?mn(y,S,p,b,_,m,x,w,E):yn(y,_,m,!0):(A&8&&f(p,""),k&16&&me(S,p,b,_,m,x,w,E))},xr=(a,d,p,b,_,m,x,w,E)=>{a=a||wt,d=d||wt;const y=a.length,A=d.length,S=Math.min(y,A);let T;for(T=0;T<S;T++){const k=d[T]=E?nt(d[T]):Pe(d[T]);D(a[T],k,p,null,_,m,x,w,E)}y>A?yn(a,_,m,!0,!1,S):me(d,p,b,_,m,x,w,E,S)},mn=(a,d,p,b,_,m,x,w,E)=>{let y=0;const A=d.length;let S=a.length-1,T=A-1;for(;y<=S&&y<=T;){const k=a[y],H=d[y]=E?nt(d[y]):Pe(d[y]);if(an(k,H))D(k,H,p,null,_,m,x,w,E);else break;y++}for(;y<=S&&y<=T;){const k=a[S],H=d[T]=E?nt(d[T]):Pe(d[T]);if(an(k,H))D(k,H,p,null,_,m,x,w,E);else break;S--,T--}if(y>S){if(y<=T){const k=T+1,H=k<A?d[k].el:b;for(;y<=T;)D(null,d[y]=E?nt(d[y]):Pe(d[y]),p,H,_,m,x,w,E),y++}}else if(y>T)for(;y<=S;)dt(a[y],_,m,!0),y++;else{const k=y,H=y,W=new Map;for(y=H;y<=T;y++){const ge=d[y]=E?nt(d[y]):Pe(d[y]);ge.key!=null&&(process.env.NODE_ENV!=="production"&&W.has(ge.key)&&N("Duplicate keys found during update:",JSON.stringify(ge.key),"Make sure keys are unique."),W.set(ge.key,y))}let z,te=0;const le=T-H+1;let Ye=!1,Je=0;const vn=new Array(le);for(y=0;y<le;y++)vn[y]=0;for(y=k;y<=S;y++){const ge=a[y];if(te>=le){dt(ge,_,m,!0);continue}let Ge;if(ge.key!=null)Ge=W.get(ge.key);else for(z=H;z<=T;z++)if(vn[z-H]===0&&an(ge,d[z])){Ge=z;break}Ge===void 0?dt(ge,_,m,!0):(vn[Ge-H]=y+1,Ge>=Je?Je=Ge:Ye=!0,D(ge,d[Ge],p,null,_,m,x,w,E),te++)}const fc=Ye?xa(vn):wt;for(z=fc.length-1,y=le-1;y>=0;y--){const ge=H+y,Ge=d[ge],dc=d[ge+1],hc=ge+1<A?dc.el||so(dc):b;vn[y]===0?D(null,Ge,p,hc,_,m,x,w,E):Ye&&(z<0||y!==fc[z]?Lt(Ge,p,hc,2):z--)}}},Lt=(a,d,p,b,_=null)=>{const{el:m,type:x,transition:w,children:E,shapeFlag:y}=a;if(y&6){Lt(a.component.subTree,d,p,b);return}if(y&128){a.suspense.move(d,p,b);return}if(y&64){x.move(a,d,p,bn);return}if(x===ke){s(m,d,p);for(let S=0;S<E.length;S++)Lt(E[S],d,p,b);s(a.anchor,d,p);return}if(x===Yn){pe(a,d,p);return}if(b!==2&&y&1&&w)if(b===0)w.beforeEnter(m),s(m,d,p),_e(()=>w.enter(m),_);else{const{leave:S,delayLeave:T,afterLeave:k}=w,H=()=>{a.ctx.isUnmounted?r(m):s(m,d,p)},W=()=>{m._isLeaving&&m[Vl](!0),S(m,()=>{H(),k&&k()})};T?T(m,H,W):W()}else s(m,d,p)},dt=(a,d,p,b=!1,_=!1)=>{const{type:m,props:x,ref:w,children:E,dynamicChildren:y,shapeFlag:A,patchFlag:S,dirs:T,cacheIndex:k,memo:H}=a;if(S===-2&&(_=!1),w!=null&&(Ce(),tn(w,null,p,a,!0),Te()),k!=null&&(d.renderCache[k]=void 0),A&256){d.ctx.deactivate(a);return}const W=A&1&&T,z=!nn(a);let te;if(z&&(te=x&&x.onVnodeBeforeUnmount)&&qe(te,d,a),A&6)jf(a.component,p,b);else{if(A&128){a.suspense.unmount(p,b);return}W&&bt(a,null,d,"beforeUnmount"),A&64?a.type.remove(a,d,p,bn,b):y&&!y.hasOnce&&(m!==ke||S>0&&S&64)?yn(y,d,p,!1,!0):(m===ke&&S&384||!_&&A&16)&&yn(E,d,p),b&&Sr(a)}const le=H!=null&&k==null;(z&&(te=x&&x.onVnodeUnmounted)||W||le)&&_e(()=>{te&&qe(te,d,a),W&&bt(a,null,d,"unmounted"),le&&(a.el=null)},p)},Sr=a=>{const{type:d,el:p,anchor:b,transition:_}=a;if(d===ke){process.env.NODE_ENV!=="production"&&a.patchFlag>0&&a.patchFlag&2048&&_&&!_.persisted?a.children.forEach(x=>{x.type===Ee?r(x.el):Sr(x)}):Ff(p,b);return}if(d===Yn){v(a);return}const m=()=>{r(p),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(a.shapeFlag&1&&_&&!_.persisted){const{leave:x,delayLeave:w}=_,E=()=>x(p,m);w?w(a.el,m,E):E()}else m()},Ff=(a,d)=>{let p;for(;a!==d;)p=g(a),r(a),a=p;r(d)},jf=(a,d,p)=>{process.env.NODE_ENV!=="production"&&a.type.__hmrId&&hl(a);const{bum:b,scope:_,job:m,subTree:x,um:w,m:E,a:y}=a;no(E),no(y),b&&Ot(b),_.stop(),m&&(m.flags|=8,dt(x,a,d,p)),w&&_e(w,d),_e(()=>{a.isUnmounted=!0},d),process.env.NODE_ENV!=="production"&&vl(a)},yn=(a,d,p,b=!1,_=!1,m=0)=>{for(let x=m;x<a.length;x++)dt(a[x],d,p,b,_)},fs=a=>{if(a.shapeFlag&6)return fs(a.component.subTree);if(a.shapeFlag&128)return a.suspense.next();const d=g(a.anchor||a.el),p=d&&d[Tl];return p?g(p):d};let Dr=!1;const uc=(a,d,p)=>{let b;a==null?d._vnode&&(dt(d._vnode,null,null,!0),b=d._vnode.component):D(d._vnode||null,a,d,null,null,null,p),d._vnode=a,Dr||(Dr=!0,li(b),ai(),Dr=!1)},bn={p:D,um:dt,m:Lt,r:Sr,mt:ft,mc:me,pc:ze,pbc:ut,n:fs,o:e};return{render:uc,hydrate:void 0,createApp:ea(uc)}}function tr({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Et({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Oa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function zn(e,t,n=!1){const s=e.children,r=t.children;if(C(s)&&C(r))for(let i=0;i<s.length;i++){const o=s[i];let c=r[i];c.shapeFlag&1&&!c.dynamicChildren&&((c.patchFlag<=0||c.patchFlag===32)&&(c=r[i]=nt(r[i]),c.el=o.el),!n&&c.patchFlag!==-2&&zn(o,c)),c.type===on&&(c.patchFlag===-1&&(c=r[i]=nt(c)),c.el=o.el),c.type===Ee&&!c.el&&(c.el=o.el),process.env.NODE_ENV!=="production"&&c.el&&(c.el.__vnode=c)}}function xa(e){const t=e.slice(),n=[0];let s,r,i,o,c;const l=e.length;for(s=0;s<l;s++){const h=e[s];if(h!==0){if(r=n[n.length-1],e[r]<h){t[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)c=i+o>>1,e[n[c]]<h?i=c+1:o=c;h<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function to(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:to(t)}function no(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function so(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?so(t.subTree):null}const ro=e=>e.__isSuspense;function Sa(e,t){t&&t.pendingBranch?C(e)?t.effects.push(...e):t.effects.push(e):ci(e)}const ke=Symbol.for("v-fgt"),on=Symbol.for("v-txt"),Ee=Symbol.for("v-cmt"),Yn=Symbol.for("v-stc"),cn=[];let Ne=null;function ct(e=!1){cn.push(Ne=e?null:[])}function Da(){cn.pop(),Ne=cn[cn.length-1]||null}let ln=1;function io(e,t=!1){ln+=e,e<0&&Ne&&t&&(Ne.hasOnce=!0)}function oo(e){return e.dynamicChildren=ln>0?Ne||wt:null,Da(),ln>0&&Ne&&Ne.push(e),e}function Nt(e,t,n,s,r,i){return oo(ie(e,t,n,s,r,i,!0))}function Ca(e,t,n,s,r){return oo(He(e,t,n,s,r,!0))}function Jn(e){return e?e.__v_isVNode===!0:!1}function an(e,t){if(process.env.NODE_ENV!=="production"&&t.shapeFlag&6&&e.component){const n=$n.get(t.type);if(n&&n.has(e.component))return e.shapeFlag&=-257,t.shapeFlag&=-513,!1}return e.type===t.type&&e.key===t.key}const Ta=(...e)=>lo(...e),co=({key:e})=>e!=null?e:null,Gn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Y(e)||Q(e)||V(e)?{i:de,r:e,k:t,f:!!n}:e:null);function ie(e,t=null,n=null,s=0,r=null,i=e===ke?0:1,o=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&co(t),ref:t&&Gn(t),scopeId:_i,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:de};return c?(nr(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Y(n)?8:16),process.env.NODE_ENV!=="production"&&l.key!==l.key&&N("VNode created with invalid key (NaN). VNode type:",l.type),ln>0&&!o&&Ne&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Ne.push(l),l}const He=process.env.NODE_ENV!=="production"?Ta:lo;function lo(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Ul)&&(process.env.NODE_ENV!=="production"&&!e&&N(`Invalid vnode type when creating vnode: ${e}.`),e=Ee),Jn(e)){const c=lt(e,t,!0);return n&&nr(c,n),ln>0&&!i&&Ne&&(c.shapeFlag&6?Ne[Ne.indexOf(e)]=c:Ne.push(c)),c.patchFlag=-2,c}if(yo(e)&&(e=e.__vccOpts),t){t=Aa(t);let{class:c,style:l}=t;c&&!Y(c)&&(t.class=xt(c)),U(l)&&(An(l)&&!C(l)&&(l=G({},l)),t.style=ms(l))}const o=Y(e)?1:ro(e)?128:Al(e)?64:U(e)?4:V(e)?2:0;return process.env.NODE_ENV!=="production"&&o&4&&An(e)&&(e=P(e),N("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
19
|
+
Component that was made reactive: `,e)),ie(e,t,n,s,r,o,i,!0)}function Aa(e){return e?An(e)||Wi(e)?G({},e):e:null}function lt(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:c,transition:l}=e,h=t?Ra(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&co(h),ref:t&&t.ref?n&&i?C(i)?i.concat(Gn(t)):[i,Gn(t)]:Gn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&o===-1&&C(c)?c.map(ao):c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ke?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&<(e.ssContent),ssFallback:e.ssFallback&<(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&Us(f,l.clone(f)),f}function ao(e){const t=lt(e);return C(e.children)&&(t.children=e.children.map(ao)),t}function Va(e=" ",t=0){return He(on,null,e,t)}function Xn(e="",t=!1){return t?(ct(),Ca(Ee,null,e)):He(Ee,null,e)}function Pe(e){return e==null||typeof e=="boolean"?He(Ee):C(e)?He(ke,null,e.slice()):Jn(e)?nt(e):He(on,null,String(e))}function nt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:lt(e)}function nr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(C(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),nr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Wi(t)?t._ctx=de:r===3&&de&&(de.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else V(t)?(t={default:t,_ctx:de},n=32):(t=String(t),s&64?(n=16,t=[Va(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ra(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=xt([t.class,s.class]));else if(r==="style")t.style=ms([t.style,s.style]);else if(Ft(r)){const i=t[r],o=s[r];o&&i!==o&&!(C(i)&&i.includes(o))?t[r]=i?[].concat(i,o):o:o==null&&i==null&&!jt(r)&&(t[r]=o)}else r!==""&&(t[r]=s[r])}return t}function qe(e,t,n,s=null){je(e,t,7,[n,s])}const ka=$i();let Pa=0;function Ia(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||ka,i={uid:Pa++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ac(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Yi(s,r),emitsOptions:Li(s,r),emit:null,emitted:null,propsDefaults:q,inheritAttrs:s.inheritAttrs,ctx:q,data:q,props:q,attrs:q,slots:q,refs:q,setupState:q,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return process.env.NODE_ENV!=="production"?i.ctx=ql(i):i.ctx={_:i},i.root=t?t.root:i,i.emit=na.bind(null,i),e.ce&&e.ce(i),i}let re=null;const uo=()=>re||de;let Qn,sr;{const e=qt(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Qn=t("__VUE_INSTANCE_SETTERS__",n=>re=n),sr=t("__VUE_SSR_SETTERS__",n=>fn=n)}const un=e=>{const t=re;return Qn(e),e.scope.on(),()=>{e.scope.off(),Qn(t)}},fo=()=>{re&&re.scope.off(),Qn(null)},Ma=Xe("slot,component");function rr(e,{isNativeTag:t}){(Ma(e)||t(e))&&N("Do not use built-in or reserved HTML elements as component id: "+e)}function ho(e){return e.vnode.shapeFlag&4}let fn=!1;function $a(e,t=!1,n=!1){t&&sr(t);const{props:s,children:r}=e.vnode,i=ho(e);la(e,s,i,t),ba(e,r,n||t);const o=i?La(e,t):void 0;return t&&sr(!1),o}function La(e,t){const n=e.type;if(process.env.NODE_ENV!=="production"){if(n.name&&rr(n.name,e.appContext.config),n.components){const r=Object.keys(n.components);for(let i=0;i<r.length;i++)rr(r[i],e.appContext.config)}if(n.directives){const r=Object.keys(n.directives);for(let i=0;i<r.length;i++)mi(r[i])}n.compilerOptions&&Ba()&&N('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ai),process.env.NODE_ENV!=="production"&&Kl(e);const{setup:s}=n;if(s){Ce();const r=e.setupContext=s.length>1?ja(e):null,i=un(e),o=Tt(s,e,0,[process.env.NODE_ENV!=="production"?Fe(e.props):e.props,r]),c=hs(o);if(Te(),i(),(c||e.sp)&&!nn(e)&&Ni(e),c){if(o.then(fo,fo),t)return o.then(l=>{po(e,l,t)}).catch(l=>{Gt(l,e,0)});if(e.asyncDep=o,process.env.NODE_ENV!=="production"&&!e.suspense){const l=dn(e,n);N(`Component <${l}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else po(e,o,t)}else go(e,t)}function po(e,t,n){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:U(t)?(process.env.NODE_ENV!=="production"&&Jn(t)&&N("setup() should not return VNodes directly - return a render function instead."),process.env.NODE_ENV!=="production"&&(e.devtoolsRawSetupState=t),e.setupState=si(t),process.env.NODE_ENV!=="production"&&Wl(e)):process.env.NODE_ENV!=="production"&&t!==void 0&&N(`setup() should return an object. Received: ${t===null?"null":typeof t}`),go(e,n)}const Ba=()=>!0;function go(e,t,n){const s=e.type;e.render||(e.render=s.render||ne);{const r=un(e);Ce();try{Yl(e)}finally{Te(),r()}}process.env.NODE_ENV!=="production"&&!s.render&&e.render===ne&&!t&&(s.template?N('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):N("Component is missing template or render function: ",s))}const _o=process.env.NODE_ENV!=="production"?{get(e,t){return Kn(),se(e,"get",""),e[t]},set(){return N("setupContext.attrs is readonly."),!1},deleteProperty(){return N("setupContext.attrs is readonly."),!1}}:{get(e,t){return se(e,"get",""),e[t]}};function Fa(e){return new Proxy(e.slots,{get(t,n){return se(e,"get","$slots"),t[n]}})}function ja(e){const t=n=>{if(process.env.NODE_ENV!=="production"&&(e.exposed&&N("expose() should be called only once per setup()."),n!=null)){let s=typeof n;s==="object"&&(C(n)?s="array":Q(n)&&(s="ref")),s!=="object"&&N(`expose() should be passed a plain object, received ${s}.`)}e.exposed=n||{}};if(process.env.NODE_ENV!=="production"){let n,s;return Object.freeze({get attrs(){return n||(n=new Proxy(e.attrs,_o))},get slots(){return s||(s=Fa(e))},get emit(){return(r,...i)=>e.emit(r,...i)},expose:t})}else return{attrs:new Proxy(e.attrs,_o),slots:e.slots,emit:e.emit,expose:t}}function Zn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(si(Xc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in vt)return vt[n](e)},has(t,n){return n in t||n in vt}})):e.proxy}const Ua=/(?:^|[-_])\w/g,Ha=e=>e.replace(Ua,t=>t.toUpperCase()).replace(/[-_]/g,"");function mo(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function dn(e,t,n=!1){let s=mo(t);if(!s&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(s=r[1])}if(!s&&e){const r=i=>{for(const o in i)if(i[o]===t)return o};s=r(e.components)||e.parent&&r(e.parent.type.components)||r(e.appContext.components)}return s?Ha(s):n?"App":"Anonymous"}function yo(e){return V(e)&&"__vccOpts"in e}const qa=(e,t)=>{const n=nl(e,t,fn);if(process.env.NODE_ENV!=="production"){const s=uo();s&&s.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function Ka(){if(process.env.NODE_ENV==="production"||typeof window=="undefined")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},s={style:"color:#eb2f96"},r={__vue_custom_formatter:!0,header(u){if(!U(u))return null;if(u.__isVue)return["div",e,"VueInstance"];if(Q(u)){Ce();const g=u.value;return Te(),["div",{},["span",e,f(u)],"<",c(g),">"]}else{if(it(u))return["div",{},["span",e,ue(u)?"ShallowReactive":"Reactive"],"<",c(u),`>${Ae(u)?" (readonly)":""}`];if(Ae(u))return["div",{},["span",e,ue(u)?"ShallowReadonly":"Readonly"],"<",c(u),">"]}return null},hasBody(u){return u&&u.__isVue},body(u){if(u&&u.__isVue)return["div",{},...i(u.$)]}};function i(u){const g=[];u.type.props&&u.props&&g.push(o("props",P(u.props))),u.setupState!==q&&g.push(o("setup",u.setupState)),u.data!==q&&g.push(o("data",P(u.data)));const O=l(u,"computed");O&&g.push(o("computed",O));const R=l(u,"inject");return R&&g.push(o("injected",R)),g.push(["div",{},["span",{style:s.style+";opacity:0.66"},"$ (internal): "],["object",{object:u}]]),g}function o(u,g){return g=G({},g),Object.keys(g).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},u],["div",{style:"padding-left:1.25em"},...Object.keys(g).map(O=>["div",{},["span",s,O+": "],c(g[O],!1)])]]:["span",{}]}function c(u,g=!0){return typeof u=="number"?["span",t,u]:typeof u=="string"?["span",n,JSON.stringify(u)]:typeof u=="boolean"?["span",s,u]:U(u)?["object",{object:g?P(u):u}]:["span",n,String(u)]}function l(u,g){const O=u.type;if(V(O))return;const R={};for(const D in u.ctx)h(O,D,g)&&(R[D]=u.ctx[D]);return R}function h(u,g,O){const R=u[O];if(C(R)&&R.includes(g)||U(R)&&g in R||u.extends&&h(u.extends,g,O)||u.mixins&&u.mixins.some(D=>h(D,g,O)))return!0}function f(u){return ue(u)?"ShallowRef":u.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}const bo="3.5.34",we=process.env.NODE_ENV!=="production"?N:ne;process.env.NODE_ENV,process.env.NODE_ENV;/**
|
|
20
|
+
* @vue/runtime-dom v3.5.34
|
|
21
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
22
|
+
* @license MIT
|
|
23
|
+
**/let ir;const vo=typeof window!="undefined"&&window.trustedTypes;if(vo)try{ir=vo.createPolicy("vue",{createHTML:e=>e})}catch(e){process.env.NODE_ENV!=="production"&&we(`Error creating trusted types policy: ${e}`)}const Eo=ir?e=>ir.createHTML(e):e=>e,Wa="http://www.w3.org/2000/svg",za="http://www.w3.org/1998/Math/MathML",st=typeof document!="undefined"?document:null,No=st&&st.createElement("template"),Ya={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?st.createElementNS(Wa,e):t==="mathml"?st.createElementNS(za,e):n?st.createElement(e,{is:n}):st.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>st.createTextNode(e),createComment:e=>st.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>st.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{No.innerHTML=Eo(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const c=No.content;if(s==="svg"||s==="mathml"){const l=c.firstChild;for(;l.firstChild;)c.appendChild(l.firstChild);c.removeChild(l)}t.insertBefore(c,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ja=Symbol("_vtc");function Ga(e,t,n){const s=e[Ja];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const es=Symbol("_vod"),wo=Symbol("_vsh"),Xa={name:"show",beforeMount(e,{value:t},{transition:n}){e[es]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):hn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),hn(e,!0),s.enter(e)):s.leave(e,()=>{hn(e,!1)}):hn(e,t))},beforeUnmount(e,{value:t}){hn(e,t)}};function hn(e,t){e.style.display=t?e[es]:"none",e[wo]=!t}const Qa=Symbol(process.env.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),Za=/(?:^|;)\s*display\s*:/;function eu(e,t,n){const s=e.style,r=Y(n);let i=!1;if(n&&!r){if(t)if(Y(t))for(const o of t.split(";")){const c=o.slice(0,o.indexOf(":")).trim();n[c]==null&&pn(s,c,"")}else for(const o in t)n[o]==null&&pn(s,o,"");for(const o in n){o==="display"&&(i=!0);const c=n[o];c!=null?su(e,o,!Y(t)&&t?t[o]:void 0,c)||pn(s,o,c):pn(s,o,"")}}else if(r){if(t!==n){const o=s[Qa];o&&(n+=";"+o),s.cssText=n,i=Za.test(n)}}else t&&e.removeAttribute("style");es in e&&(e[es]=i?s.display:"",e[wo]&&(s.display="none"))}const tu=/[^\\];\s*$/,Oo=/\s*!important$/;function pn(e,t,n){if(C(n))n.forEach(s=>pn(e,t,s));else if(n==null&&(n=""),process.env.NODE_ENV!=="production"&&tu.test(n)&&we(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),t.startsWith("--"))e.setProperty(t,n);else{const s=nu(e,t);Oo.test(n)?e.setProperty(be(s),n.replace(Oo,""),"important"):e[s]=n}}const xo=["Webkit","Moz","ms"],or={};function nu(e,t){const n=or[t];if(n)return n;let s=oe(t);if(s!=="filter"&&s in e)return or[t]=s;s=wn(s);for(let r=0;r<xo.length;r++){const i=xo[r]+s;if(i in e)return or[t]=i}return t}function su(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Y(s)&&n===s}const So="http://www.w3.org/1999/xlink";function Do(e,t,n,s,r,i=Cc(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(So,t.slice(6,t.length)):e.setAttributeNS(So,t,n):n==null||i&&!Pr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":xe(n)?String(n):n)}function Co(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Eo(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const c=i==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(c!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Pr(n):n==null&&c==="string"?(n="",o=!0):c==="number"&&(n=0,o=!0)}try{e[t]=n}catch(c){process.env.NODE_ENV!=="production"&&!o&&we(`Failed setting prop "${t}" on <${i.toLowerCase()}>: value ${n} is invalid.`,c)}o&&e.removeAttribute(r||t)}function It(e,t,n,s){e.addEventListener(t,n,s)}function ru(e,t,n,s){e.removeEventListener(t,n,s)}const To=Symbol("_vei");function iu(e,t,n,s,r=null){const i=e[To]||(e[To]={}),o=i[t];if(s&&o)o.value=process.env.NODE_ENV!=="production"?Vo(s,t):s;else{const[c,l]=ou(t);if(s){const h=i[t]=au(process.env.NODE_ENV!=="production"?Vo(s,t):s,r);It(e,c,h,l)}else o&&(ru(e,c,o,l),i[t]=void 0)}}const Ao=/(?:Once|Passive|Capture)$/;function ou(e){let t;if(Ao.test(e)){t={};let s;for(;s=e.match(Ao);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):be(e.slice(2)),t]}let cr=0;const cu=Promise.resolve(),lu=()=>cr||(cu.then(()=>cr=0),cr=Date.now());function au(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;je(uu(s,n.value),t,5,[s])};return n.value=e,n.attached=lu(),n}function Vo(e,t){return V(e)||C(e)?e:(we(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
|
|
24
|
+
Expected function or array of functions, received type ${typeof e}.`),ne)}function uu(e,t){if(C(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Ro=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,fu=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?Ga(e,s,o):t==="style"?eu(e,n,s):Ft(t)?jt(t)||iu(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):du(e,t,s,o))?(Co(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Do(e,t,s,o,i,t!=="value")):e._isVueCE&&(hu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Y(s)))?Co(e,oe(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Do(e,t,s,o))};function du(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ro(t)&&V(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Ro(t)&&Y(n)?!1:t in e}function hu(e,t){const n=e._def.props;if(!n)return!1;const s=oe(t);return Array.isArray(n)?n.some(r=>oe(r)===s):Object.keys(n).some(r=>oe(r)===s)}const ko={};function pu(e,t,n){let s=Ei(e,t);En(s)&&(s=G({},s,t));class r extends lr{constructor(o){super(s,o,n)}}return r.def=s,r}const gu=typeof HTMLElement!="undefined"?HTMLElement:class{};class lr extends gu{constructor(t,n={},s=Bo){super(),this._def=t,this._props=n,this._createApp=s,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&s!==Bo?this._root=this.shadowRoot:(process.env.NODE_ENV!=="production"&&this.shadowRoot&&we("Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use `defineSSRCustomElement`."),t.shadowRoot!==!1?(this.attachShadow(G({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.assignedSlot||t.parentNode||t.host);)if(t instanceof lr){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,Ms(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const n of t)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let s=0;s<this.attributes.length;s++)this._setAttr(this.attributes[s].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(s,r=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:i,styles:o}=s;let c;if(i&&!C(i))for(const l in i){const h=i[l];(h===Number||h&&h.type===Number)&&(l in this._props&&(this._props[l]=Rr(this._props[l])),(c||(c=Object.create(null)))[oe(l)]=!0)}this._numberProps=c,this._resolveProps(s),this.shadowRoot?this._applyStyles(o):process.env.NODE_ENV!=="production"&&o&&we("Custom element style injection is not supported when using shadowRoot: false"),this._mount(s)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(s=>{s.configureApp=this._def.configureApp,t(this._def=s,!0)}):t(this._def)}_mount(t){process.env.NODE_ENV!=="production"&&!t.name&&(t.name="VueElement"),this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const s in n)M(this,s)?process.env.NODE_ENV!=="production"&&we(`Exposed property "${s}" already exists on custom element.`):Object.defineProperty(this,s,{get:()=>ni(n[s])})}_resolveProps(t){const{props:n}=t,s=C(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&s.includes(r)&&this._setProp(r,this[r]);for(const r of s.map(oe))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let s=n?this.getAttribute(t):ko;const r=oe(t);n&&this._numberProps&&this._numberProps[r]&&(s=Rr(s)),this._setProp(r,s,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,s=!0,r=!1){if(n!==this._props[t]&&(this._dirty=!0,n===ko?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),r&&this._instance&&this._update(),s)){const i=this._ob;i&&(this._processMutations(i.takeRecords()),i.disconnect()),n===!0?this.setAttribute(be(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(be(t),n+""):n||this.removeAttribute(be(t)),i&&i.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),Nu(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=He(this._def,G(t,this._props));return this._instance||(n.ce=s=>{this._instance=s,s.ce=this,s.isCE=!0,process.env.NODE_ENV!=="production"&&(s.ceReload=i=>{this._styles&&(this._styles.forEach(o=>this._root.removeChild(o)),this._styles.length=0),this._styleAnchors.delete(this._def),this._applyStyles(i),this._instance=null,this._update()});const r=(i,o)=>{this.dispatchEvent(new CustomEvent(i,En(o[0])?G({detail:o},o[0]):{detail:o}))};s.emit=(i,...o)=>{r(i,o),be(i)!==i&&r(be(i),o)},this._setParent()}),n}_applyStyles(t,n,s){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce,i=this.shadowRoot,o=s?this._getStyleAnchor(s)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i);let c=null;for(let l=t.length-1;l>=0;l--){const h=document.createElement("style");if(r&&h.setAttribute("nonce",r),h.textContent=t[l],i.insertBefore(h,c||o),c=h,l===0&&(s||this._styleAnchors.set(this._def,h),n&&this._styleAnchors.set(n,h)),process.env.NODE_ENV!=="production")if(n){if(n.__hmrId){this._childStyles||(this._childStyles=new Map);let f=this._childStyles.get(n.__hmrId);f||this._childStyles.set(n.__hmrId,f=[]),f.push(h)}}else(this._styles||(this._styles=[])).push(h)}}_getStyleAnchor(t){if(!t)return null;const n=this._styleAnchors.get(t);return n&&n.parentNode===this.shadowRoot?n:(n&&this._styleAnchors.delete(t),null)}_getRootStyleInsertionAnchor(t){for(let n=0;n<t.childNodes.length;n++){const s=t.childNodes[n];if(!(s instanceof HTMLStyleElement))return s}return null}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const s=n.nodeType===1&&n.getAttribute("slot")||"default";(t[s]||(t[s]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=this._getSlots(),n=this._instance.type.__scopeId;for(let s=0;s<t.length;s++){const r=t[s],i=r.getAttribute("name")||"default",o=this._slots[i],c=r.parentNode;if(o)for(const l of o){if(n&&l.nodeType===1){const h=n+"-s",f=document.createTreeWalker(l,1);l.setAttribute(h,"");let u;for(;u=f.nextNode();)u.setAttribute(h,"")}c.insertBefore(l,r)}else for(;r.firstChild;)c.insertBefore(r.firstChild,r);c.removeChild(r)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const n=new Set;for(const s of t){const r=s.querySelectorAll("slot");for(let i=0;i<r.length;i++)n.add(r[i])}return Array.from(n)}_injectChildStyle(t,n){this._applyStyles(t.styles,t,n)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(t){if(process.env.NODE_ENV!=="production"&&(this._styleChildren.delete(t),this._styleAnchors.delete(t),this._childStyles&&t.__hmrId)){const n=this._childStyles.get(t.__hmrId);n&&(n.forEach(s=>this._root.removeChild(s)),n.length=0)}}}const Po=e=>{const t=e.props["onUpdate:modelValue"]||!1;return C(t)?n=>Ot(t,n):t};function _u(e){e.target.composing=!0}function Io(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ar=Symbol("_assign");function Mo(e,t,n){return t&&(e=e.trim()),n&&(e=_s(e)),e}const mu={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[ar]=Po(r);const i=s||r.props&&r.props.type==="number";It(e,t?"change":"input",o=>{o.target.composing||e[ar](Mo(e.value,n,i))}),(n||i)&&It(e,"change",()=>{e.value=Mo(e.value,n,i)}),t||(It(e,"compositionstart",_u),It(e,"compositionend",Io),It(e,"change",Io))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[ar]=Po(o),e.composing)return;const c=(i||e.type==="number")&&!/^0\d/.test(e.value)?_s(e.value):e.value,l=t==null?"":t;if(c===l)return;const h=e.getRootNode();(h instanceof Document||h instanceof ShadowRoot)&&h.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===l)||(e.value=l)}},yu=["ctrl","shift","alt","meta"],bu={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>yu.some(n=>e[`${n}Key`]&&!t.includes(n))},vu=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o<t.length;o++){const c=bu[t[o]];if(c&&c(r,t))return}return e(r,...i)})},Eu=G({patchProp:fu},Ya);let $o;function Lo(){return $o||($o=Na(Eu))}const Nu=(...e)=>{Lo().render(...e)},Bo=(...e)=>{const t=Lo().createApp(...e);process.env.NODE_ENV!=="production"&&(Ou(t),xu(t));const{mount:n}=t;return t.mount=s=>{const r=Su(s);if(!r)return;const i=t._component;!V(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,wu(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function wu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ou(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>xc(t)||Sc(t)||Dc(t),writable:!1})}function xu(e){{const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){we("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const n=e.config.compilerOptions,s='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';Object.defineProperty(e.config,"compilerOptions",{get(){return we(s),n},set(){we(s)}})}}function Su(e){if(Y(e)){const t=document.querySelector(e);return process.env.NODE_ENV!=="production"&&!t&&we(`Failed to mount app: mount target selector "${e}" returned null.`),t}return process.env.NODE_ENV!=="production"&&window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode==="closed"&&we('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}/**
|
|
25
|
+
* vue v3.5.34
|
|
26
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
27
|
+
* @license MIT
|
|
28
|
+
**/function Du(){Ka()}process.env.NODE_ENV!=="production"&&Du();const Ke=Object.create(null);Ke.open="0",Ke.close="1",Ke.ping="2",Ke.pong="3",Ke.message="4",Ke.upgrade="5",Ke.noop="6";const ts=Object.create(null);Object.keys(Ke).forEach(e=>{ts[Ke[e]]=e});const ur={type:"error",data:"parser error"},Fo=typeof Blob=="function"||typeof Blob!="undefined"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",jo=typeof ArrayBuffer=="function",Uo=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,fr=({type:e,data:t},n,s)=>Fo&&t instanceof Blob?n?s(t):Ho(t,s):jo&&(t instanceof ArrayBuffer||Uo(t))?n?s(t):Ho(new Blob([t]),s):s(Ke[e]+(t||"")),Ho=(e,t)=>{const n=new FileReader;return n.onload=function(){const s=n.result.split(",")[1];t("b"+(s||""))},n.readAsDataURL(e)};function qo(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let dr;function Cu(e,t){if(Fo&&e.data instanceof Blob)return e.data.arrayBuffer().then(qo).then(t);if(jo&&(e.data instanceof ArrayBuffer||Uo(e.data)))return t(qo(e.data));fr(e,!1,n=>{dr||(dr=new TextEncoder),t(dr.encode(n))})}const Ko="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gn=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(let e=0;e<Ko.length;e++)gn[Ko.charCodeAt(e)]=e;const Tu=e=>{let t=e.length*.75,n=e.length,s,r=0,i,o,c,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const h=new ArrayBuffer(t),f=new Uint8Array(h);for(s=0;s<n;s+=4)i=gn[e.charCodeAt(s)],o=gn[e.charCodeAt(s+1)],c=gn[e.charCodeAt(s+2)],l=gn[e.charCodeAt(s+3)],f[r++]=i<<2|o>>4,f[r++]=(o&15)<<4|c>>2,f[r++]=(c&3)<<6|l&63;return h},Au=typeof ArrayBuffer=="function",hr=(e,t)=>{if(typeof e!="string")return{type:"message",data:Wo(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Vu(e.substring(1),t)}:ts[n]?e.length>1?{type:ts[n],data:e.substring(1)}:{type:ts[n]}:ur},Vu=(e,t)=>{if(Au){const n=Tu(e);return Wo(n,t)}else return{base64:!0,data:e}},Wo=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},zo="",Ru=(e,t)=>{const n=e.length,s=new Array(n);let r=0;e.forEach((i,o)=>{fr(i,!1,c=>{s[o]=c,++r===n&&t(s.join(zo))})})},ku=(e,t)=>{const n=e.split(zo),s=[];for(let r=0;r<n.length;r++){const i=hr(n[r],t);if(s.push(i),i.type==="error")break}return s};function Pu(){return new TransformStream({transform(e,t){Cu(e,n=>{const s=n.length;let r;if(s<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,s);else if(s<65536){r=new Uint8Array(3);const i=new DataView(r.buffer);i.setUint8(0,126),i.setUint16(1,s)}else{r=new Uint8Array(9);const i=new DataView(r.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(s))}e.data&&typeof e.data!="string"&&(r[0]|=128),t.enqueue(r),t.enqueue(n)})}})}let pr;function ns(e){return e.reduce((t,n)=>t+n.length,0)}function ss(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let s=0;for(let r=0;r<t;r++)n[r]=e[0][s++],s===e[0].length&&(e.shift(),s=0);return e.length&&s<e[0].length&&(e[0]=e[0].slice(s)),n}function Iu(e,t){pr||(pr=new TextDecoder);const n=[];let s=0,r=-1,i=!1;return new TransformStream({transform(o,c){for(n.push(o);;){if(s===0){if(ns(n)<1)break;const l=ss(n,1);i=(l[0]&128)===128,r=l[0]&127,r<126?s=3:r===126?s=1:s=2}else if(s===1){if(ns(n)<2)break;const l=ss(n,2);r=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),s=3}else if(s===2){if(ns(n)<8)break;const l=ss(n,8),h=new DataView(l.buffer,l.byteOffset,l.length),f=h.getUint32(0);if(f>Math.pow(2,21)-1){c.enqueue(ur);break}r=f*Math.pow(2,32)+h.getUint32(4),s=3}else{if(ns(n)<r)break;const l=ss(n,r);c.enqueue(hr(i?l:pr.decode(l),t)),s=0}if(r===0||r>e){c.enqueue(ur);break}}}})}const Yo=4;function Z(e){if(e)return Mu(e)}function Mu(e){for(var t in Z.prototype)e[t]=Z.prototype[t];return e}Z.prototype.on=Z.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},Z.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},Z.prototype.off=Z.prototype.removeListener=Z.prototype.removeAllListeners=Z.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var s,r=0;r<n.length;r++)if(s=n[r],s===t||s.fn===t){n.splice(r,1);break}return n.length===0&&delete this._callbacks["$"+e],this},Z.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],s=1;s<arguments.length;s++)t[s-1]=arguments[s];if(n){n=n.slice(0);for(var s=0,r=n.length;s<r;++s)n[s].apply(this,t)}return this},Z.prototype.emitReserved=Z.prototype.emit,Z.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},Z.prototype.hasListeners=function(e){return!!this.listeners(e).length};const rs=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Oe=typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")(),$u="arraybuffer";function Hf(){}function Jo(e,...t){return t.reduce((n,s)=>(e.hasOwnProperty(s)&&(n[s]=e[s]),n),{})}const Lu=Oe.setTimeout,Bu=Oe.clearTimeout;function is(e,t){t.useNativeTimers?(e.setTimeoutFn=Lu.bind(Oe),e.clearTimeoutFn=Bu.bind(Oe)):(e.setTimeoutFn=Oe.setTimeout.bind(Oe),e.clearTimeoutFn=Oe.clearTimeout.bind(Oe))}const Fu=1.33;function ju(e){return typeof e=="string"?Uu(e):Math.ceil((e.byteLength||e.size)*Fu)}function Uu(e){let t=0,n=0;for(let s=0,r=e.length;s<r;s++)t=e.charCodeAt(s),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(s++,n+=4);return n}function Go(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Hu(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function qu(e){let t={},n=e.split("&");for(let s=0,r=n.length;s<r;s++){let i=n[s].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}class Ku extends Error{constructor(t,n,s){super(t),this.description=n,this.context=s,this.type="TransportError"}}class gr extends Z{constructor(t){super(),this.writable=!1,is(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,s){return super.emitReserved("error",new Ku(t,n,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=hr(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=Hu(t);return n.length?"?"+n:""}}class Wu extends gr{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||n()})),this.writable||(s++,this.once("drain",function(){--s||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};ku(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Ru(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Go()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let Xo=!1;try{Xo=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch{}const zu=Xo;function Yu(){}class Ju extends Wu{constructor(t){if(super(t),typeof location!="undefined"){const n=location.protocol==="https:";let s=location.port;s||(s=n?"443":"80"),this.xd=typeof location!="undefined"&&t.hostname!==location.hostname||s!==t.port}}doWrite(t,n){const s=this.request({method:"POST",data:t});s.on("success",n),s.on("error",(r,i)=>{this.onError("xhr post error",r,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,s)=>{this.onError("xhr poll error",n,s)}),this.pollXhr=t}}class We extends Z{constructor(t,n,s){super(),this.createRequest=t,is(this,s),this._opts=s,this._method=s.method||"GET",this._uri=n,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var t;const n=Jo(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(n);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let r in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(r)&&s.setRequestHeader(r,this._opts.extraHeaders[r])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var r;s.readyState===3&&((r=this._opts.cookieJar)===null||r===void 0||r.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(r){this.setTimeoutFn(()=>{this._onError(r)},0);return}typeof document!="undefined"&&(this._index=We.requestsCount++,We.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr=="undefined"||this._xhr===null)){if(this._xhr.onreadystatechange=Yu,t)try{this._xhr.abort()}catch{}typeof document!="undefined"&&delete We.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(We.requestsCount=0,We.requests={},typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",Qo);else if(typeof addEventListener=="function"){const e="onpagehide"in Oe?"pagehide":"unload";addEventListener(e,Qo,!1)}}function Qo(){for(let e in We.requests)We.requests.hasOwnProperty(e)&&We.requests[e].abort()}const Gu=function(){const e=Zo({xdomain:!1});return e&&e.responseType!==null}();class Xu extends Ju{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=Gu&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new We(Zo,this.uri(),t)}}function Zo(e){const t=e.xdomain;try{if(typeof XMLHttpRequest!="undefined"&&(!t||zu))return new XMLHttpRequest}catch{}if(!t)try{return new Oe[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const ec=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Qu extends gr{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,s=ec?{}:Jo(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,s)}catch(r){return this.emitReserved("error",r)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const s=t[n],r=n===t.length-1;fr(s,this.supportsBinary,i=>{try{this.doWrite(s,i)}catch{}r&&rs(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws!="undefined"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Go()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const _r=Oe.WebSocket||Oe.MozWebSocket;class Zu extends Qu{createSocket(t,n,s){return ec?new _r(t,n,s):n?new _r(t,n):new _r(t)}doWrite(t,n){this.ws.send(n)}}class ef extends gr{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=Iu(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=t.readable.pipeThrough(n).getReader(),r=Pu();r.readable.pipeTo(t.writable),this._writer=r.writable.getWriter();const i=()=>{s.read().then(({done:c,value:l})=>{c||(this.onPacket(l),i())}).catch(c=>{})};i();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const s=t[n],r=n===t.length-1;this._writer.write(s).then(()=>{r&&rs(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const tf={websocket:Zu,webtransport:ef,polling:Xu},nf=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,sf=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function mr(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),s=e.indexOf("]");n!=-1&&s!=-1&&(e=e.substring(0,n)+e.substring(n,s).replace(/:/g,";")+e.substring(s,e.length));let r=nf.exec(e||""),i={},o=14;for(;o--;)i[sf[o]]=r[o]||"";return n!=-1&&s!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=rf(i,i.path),i.queryKey=of(i,i.query),i}function rf(e,t){const n=/\/{2,9}/g,s=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&s.splice(0,1),t.slice(-1)=="/"&&s.splice(s.length-1,1),s}function of(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,r,i){r&&(n[r]=i)}),n}const yr=typeof addEventListener=="function"&&typeof removeEventListener=="function",os=[];yr&&addEventListener("offline",()=>{os.forEach(e=>e())},!1);class at extends Z{constructor(t,n){if(super(),this.binaryType=$u,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const s=mr(t);n.hostname=s.host,n.secure=s.protocol==="https"||s.protocol==="wss",n.port=s.port,s.query&&(n.query=s.query)}else n.host&&(n.hostname=mr(n.host).host);is(this,n),this.secure=n.secure!=null?n.secure:typeof location!="undefined"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=n.port||(typeof location!="undefined"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(s=>{const r=s.prototype.name;this.transports.push(r),this._transportsByName[r]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=qu(this.opts.query)),yr&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},os.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Yo,n.transport=t,this.id&&(n.sid=this.id);const s=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&at.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",at.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let s=0;s<this.writeBuffer.length;s++){const r=this.writeBuffer[s].data;if(r&&(n+=ju(r)),s>0&&n>this._maxPayload)return this.writeBuffer.slice(0,s);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,rs(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,s){return this._sendPacket("message",t,n,s),this}send(t,n,s){return this._sendPacket("message",t,n,s),this}_sendPacket(t,n,s,r){if(typeof n=="function"&&(r=n,n=void 0),typeof s=="function"&&(r=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const i={type:t,data:n,options:s};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},s=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():t()}):this.upgrading?s():t()),this}_onError(t){if(at.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),yr&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=os.indexOf(this._offlineEventListener);s!==-1&&os.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}at.protocol=Yo;class cf extends at{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),s=!1;at.priorWebsocketSuccess=!1;const r=()=>{s||(n.send([{type:"ping",data:"probe"}]),n.once("packet",u=>{if(!s)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;at.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(f(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const g=new Error("probe error");g.transport=n.name,this.emitReserved("upgradeError",g)}}))};function i(){s||(s=!0,f(),n.close(),n=null)}const o=u=>{const g=new Error("probe error: "+u);g.transport=n.name,i(),this.emitReserved("upgradeError",g)};function c(){o("transport closed")}function l(){o("socket closed")}function h(u){n&&u.name!==n.name&&i()}const f=()=>{n.removeListener("open",r),n.removeListener("error",o),n.removeListener("close",c),this.off("close",l),this.off("upgrading",h)};n.once("open",r),n.once("error",o),n.once("close",c),this.once("close",l),this.once("upgrading",h),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{s||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let s=0;s<t.length;s++)~this.transports.indexOf(t[s])&&n.push(t[s]);return n}}let lf=class extends cf{constructor(t,n={}){const s=typeof t=="object"?t:n;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(r=>tf[r]).filter(r=>!!r)),super(t,s)}};function af(e,t="",n){let s=e;n=n||typeof location!="undefined"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n!="undefined"?e=n.protocol+"//"+e:e="https://"+e),s=mr(e)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const i=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+i+":"+s.port+t,s.href=s.protocol+"://"+i+(n&&n.port===s.port?"":":"+s.port),s}const uf=typeof ArrayBuffer=="function",ff=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,tc=Object.prototype.toString,df=typeof Blob=="function"||typeof Blob!="undefined"&&tc.call(Blob)==="[object BlobConstructor]",hf=typeof File=="function"||typeof File!="undefined"&&tc.call(File)==="[object FileConstructor]";function br(e){return uf&&(e instanceof ArrayBuffer||ff(e))||df&&e instanceof Blob||hf&&e instanceof File}function cs(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,s=e.length;n<s;n++)if(cs(e[n]))return!0;return!1}if(br(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return cs(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&cs(e[n]))return!0;return!1}function pf(e){const t=[],n=e.data,s=e;return s.data=vr(n,t),s.attachments=t.length,{packet:s,buffers:t}}function vr(e,t){if(!e)return e;if(br(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let s=0;s<e.length;s++)n[s]=vr(e[s],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=vr(e[s],t));return n}return e}function gf(e,t){return e.data=Er(e.data,t),delete e.attachments,e}function Er(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Er(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Er(e[n],t));return e}const _f=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var $;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})($||($={}));class mf{constructor(t){this.replacer=t}encode(t){return(t.type===$.EVENT||t.type===$.ACK)&&cs(t)?this.encodeAsBinary({type:t.type===$.EVENT?$.BINARY_EVENT:$.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===$.BINARY_EVENT||t.type===$.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=pf(t),s=this.encodeAsString(n.packet),r=n.buffers;return r.unshift(s),r}}class Nr extends Z{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const s=n.type===$.BINARY_EVENT;s||n.type===$.BINARY_ACK?(n.type=s?$.EVENT:$.ACK,this.reconstructor=new yf(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(br(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const s={type:Number(t.charAt(0))};if($[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===$.BINARY_EVENT||s.type===$.BINARY_ACK){const i=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const o=t.substring(i,n);if(o!=Number(o)||t.charAt(n)!=="-")throw new Error("Illegal attachments");const c=Number(o);if(!bf(c)||c<0)throw new Error("Illegal attachments");if(c>this.opts.maxAttachments)throw new Error("too many attachments");s.attachments=c}if(t.charAt(n+1)==="/"){const i=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););s.nsp=t.substring(i,n)}else s.nsp="/";const r=t.charAt(n+1);if(r!==""&&Number(r)==r){const i=n+1;for(;++n;){const o=t.charAt(n);if(o==null||Number(o)!=o){--n;break}if(n===t.length)break}s.id=Number(t.substring(i,n+1))}if(t.charAt(++n)){const i=this.tryParse(t.substr(n));if(Nr.isPayloadValid(s.type,i))s.data=i;else throw new Error("invalid payload")}return s}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case $.CONNECT:return nc(n);case $.DISCONNECT:return n===void 0;case $.CONNECT_ERROR:return typeof n=="string"||nc(n);case $.EVENT:case $.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&_f.indexOf(n[0])===-1);case $.ACK:case $.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class yf{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=gf(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const bf=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function nc(e){return Object.prototype.toString.call(e)==="[object Object]"}const vf=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Nr,Encoder:mf,get PacketType(){return $}},Symbol.toStringTag,{value:"Module"}));function Ie(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Ef=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class sc extends Z{constructor(t,n,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Ie(t,"open",this.onopen.bind(this)),Ie(t,"packet",this.onpacket.bind(this)),Ie(t,"error",this.onerror.bind(this)),Ie(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var s,r,i;if(Ef.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const o={type:$.EVENT,data:n};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const f=this.ids++,u=n.pop();this._registerAckCallback(f,u),o.id=f}const c=(r=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||r===void 0?void 0:r.writable,l=this.connected&&!(!((i=this.io.engine)===null||i===void 0)&&i._hasPingExpired());return this.flags.volatile&&!c||(l?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(t,n){var s;const r=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(r===void 0){this.acks[t]=n;return}const i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===t&&this.sendBuffer.splice(c,1);n.call(this,new Error("operation has timed out"))},r),o=(...c)=>{this.io.clearTimeoutFn(i),n.apply(this,c)};o.withError=!0,this.acks[t]=o}emitWithAck(t,...n){return new Promise((s,r)=>{const i=(o,c)=>o?r(o):s(c);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((r,...i)=>(this._queue[0],r!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(r)):(this._queue.shift(),n&&n(null,...i)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:$.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(s=>String(s.id)===t)){const s=this.acks[t];delete this.acks[t],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case $.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case $.EVENT:case $.BINARY_EVENT:this.onevent(t);break;case $.ACK:case $.BINARY_ACK:this.onack(t);break;case $.DISCONNECT:this.ondisconnect();break;case $.CONNECT_ERROR:this.destroy();const s=new Error(t.data.message);s.data=t.data.data,this.emitReserved("connect_error",s);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const s of n)s.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let s=!1;return function(...r){s||(s=!0,n.packet({type:$.ACK,id:t,data:r}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:$.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let s=0;s<n.length;s++)if(t===n[s])return n.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let s=0;s<n.length;s++)if(t===n[s])return n.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const s of n)s.apply(this,t.data)}}}function Mt(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Mt.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0},Mt.prototype.reset=function(){this.attempts=0},Mt.prototype.setMin=function(e){this.ms=e},Mt.prototype.setMax=function(e){this.max=e},Mt.prototype.setJitter=function(e){this.jitter=e};class wr extends Z{constructor(t,n){var s;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,is(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((s=n.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Mt({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const r=n.parser||vf;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new lf(this.uri,this.opts);const n=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const r=Ie(n,"open",function(){s.onopen(),t&&t()}),i=c=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",c),t?t(c):this.maybeReconnectOnOpen()},o=Ie(n,"error",i);if(this._timeout!==!1){const c=this._timeout,l=this.setTimeoutFn(()=>{r(),i(new Error("timeout")),n.close()},c);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(r),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Ie(t,"ping",this.onping.bind(this)),Ie(t,"data",this.ondata.bind(this)),Ie(t,"error",this.onerror.bind(this)),Ie(t,"close",this.onclose.bind(this)),Ie(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){rs(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let s=this.nsps[t];return s?this._autoConnect&&!s.active&&s.connect():(s=new sc(this,t,n),this.nsps[t]=s),s}_destroy(t){const n=Object.keys(this.nsps);for(const s of n)if(this.nsps[s].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let s=0;s<n.length;s++)this.engine.write(n[s],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(r=>{r?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",r)):t.onreconnect()}))},n);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const _n={};function ls(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=af(e,t.path||"/socket.io"),s=n.source,r=n.id,i=n.path,o=_n[r]&&i in _n[r].nsps,c=t.forceNew||t["force new connection"]||t.multiplex===!1||o;let l;return c?l=new wr(s,t):(_n[r]||(_n[r]=new wr(s,t)),l=_n[r]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(ls,{Manager:wr,Socket:sc,io:ls,connect:ls});class rc{constructor(t){this.opts=t,this.socket=null,this.listeners=new Map,this.clientId=null}async connect(){var r;if(this.socket)return;const t=typeof this.opts.token=="function"?await this.opts.token():(r=this.opts.token)!=null?r:"",n=this.opts.apiUrl.replace(/\/$/,""),s=ls(`${n}/ws/chat`,{transports:["websocket"],reconnection:!0,reconnectionDelay:2e3,auth:{token:t,botId:this.opts.botId}});s.on("connect",()=>this.fire("open",void 0)),s.on("disconnect",()=>this.fire("close",void 0)),s.on("connect_error",i=>this.fire("error",i)),s.on("welcome",i=>{this.clientId=i.clientId,this.fire("welcome",i)}),s.on("typing",()=>this.fire("typing",void 0)),s.on("message",i=>this.fire("message",Or(i,"assistant"))),s.on("stream",i=>this.fire("stream",Or(i,"assistant",!0))),s.on("stream_end",i=>this.fire("stream_end",Or(i,"assistant",!1))),this.socket=s}send(t,n){if(!this.socket)throw new Error("[bridle] client not connected — call connect() first");const s=t.trim(),r=n!=null?n:s?[{type:"text",text:s}]:[];this.socket.emit("message",{text:s,parts:r})}disconnect(){var t;(t=this.socket)==null||t.disconnect(),this.socket=null}on(t,n){this.listeners.has(t)||this.listeners.set(t,new Set),this.listeners.get(t).add(n)}off(t,n){var s;(s=this.listeners.get(t))==null||s.delete(n)}getClientId(){return this.clientId}fire(t,n){var s;(s=this.listeners.get(t))==null||s.forEach(r=>{try{r(n)}catch(i){console.error(`[bridle] listener for "${t}" threw:`,i)}})}}function Or(e,t,n){var o,c,l,h;const s=e!=null?e:{},r=(o=s.text)!=null?o:"",i=(c=s.parts)!=null?c:r?[{type:"text",text:r}]:[];return{id:(l=s.messageId)!=null?l:Nf(),role:t,text:r,parts:i,ts:(h=s.ts)!=null?h:Date.now(),...n!==void 0?{streaming:n}:{}}}function Nf(){const e=globalThis.crypto;return e!=null&&e.randomUUID?e.randomUUID():"bridle-"+Math.random().toString(36).slice(2)+Date.now().toString(36)}const wf=["aria-label","title"],Of=["aria-label"],xf={class:"bridle__header"},Sf={class:"bridle__title"},Df=["title"],Cf={key:0,class:"bridle__empty"},Tf={class:"bridle__bubble"},Af={key:1,class:"bridle__typing","aria-label":"Agent is typing"},Vf=["placeholder","disabled"],Rf=["disabled"],kf=((e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n})(Ei({__name:"BridleChat.ce",props:{apiUrl:{type:String},botId:{type:String},token:{type:String},title:{default:"Agent Chat",type:String},placeholder:{default:"Type a message...",type:String},mode:{default:"floating",type:String},defaultOpen:{type:[Boolean,String],default:!1}},emits:["ready","message","error","open","close"],setup(e,{expose:t,emit:n}){const s=e,r=n,i=Ct([]),o=Ct(!1),c=Ct(!1),l=Ct(s.mode==="inline"||g(s.defaultOpen)),h=Ct(""),f=Ct(null);let u=null;function g(v){return v===!0||v==="true"||v===""}function O(v){const F=i.value.findIndex(ee=>ee.id===v.id);F>=0?i.value[F]=v:i.value.push(v)}function R(){return new rc({apiUrl:s.apiUrl,botId:s.botId,token:s.token})}async function D(){u==null||u.disconnect(),u=R(),u.on("open",()=>{o.value=!0,r("ready")}),u.on("close",()=>{o.value=!1}),u.on("error",v=>{r("error",v)}),u.on("typing",()=>{c.value=!0}),u.on("message",v=>{c.value=!1,O(v),r("message",v)}),u.on("stream",v=>{c.value=!1,O(v)}),u.on("stream_end",v=>{O(v),r("message",v)}),await u.connect()}function X(){const v=h.value.trim();!v||!u||(O({id:J(),role:"user",text:v,parts:[{type:"text",text:v}],ts:Date.now()}),c.value=!0,u.send(v),h.value="")}function J(){const v=globalThis.crypto;return v!=null&&v.randomUUID?v.randomUUID():"m-"+Math.random().toString(36).slice(2)+Date.now().toString(36)}function I(){l.value=!l.value,r(l.value?"open":"close")}function B(v){const F=v.target;F.style.height="auto",F.style.height=Math.min(F.scrollHeight,120)+"px"}function pe(v){v.key==="Enter"&&!v.shiftKey&&!v.isComposing&&(v.preventDefault(),X())}return en([i,c],async()=>{await Ms(),f.value&&(f.value.scrollTop=f.value.scrollHeight)},{deep:!0}),en(()=>[s.apiUrl,s.botId,s.token],()=>{!s.apiUrl||!s.botId||(i.value=[],D())}),Di(async()=>{!s.apiUrl||!s.botId||await D()}),Ci(()=>{u==null||u.disconnect(),u=null}),t({open:()=>{l.value||I()},close:()=>{l.value&&I()},sendMessage:v=>{h.value=v,X()}}),(v,F)=>(ct(),Nt("div",{class:xt(["bridle",`bridle--${e.mode}`,l.value&&"bridle--open"])},[e.mode==="floating"?(ct(),Nt("button",{key:0,class:"bridle__fab",type:"button","aria-label":e.title,title:e.title,onClick:I},[...F[1]||(F[1]=[ie("svg",{viewBox:"0 0 24 24",width:"22",height:"22","aria-hidden":"true"},[ie("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,wf)):Xn("",!0),yi(ie("div",{class:"bridle__panel",role:"dialog","aria-label":e.title},[ie("header",xf,[ie("span",Sf,bs(e.title),1),ie("span",{class:xt(["bridle__status",o.value?"bridle__status--ok":"bridle__status--bad"]),title:o.value?"Connected":"Disconnected","aria-hidden":"true"},"●",10,Df),e.mode==="floating"?(ct(),Nt("button",{key:0,type:"button",class:"bridle__close","aria-label":"Close",onClick:I},"×")):Xn("",!0)]),ie("div",{ref_key:"scrollEl",ref:f,class:"bridle__messages"},[i.value.length===0?(ct(),Nt("div",Cf," Start a conversation ")):Xn("",!0),(ct(!0),Nt(ke,null,Hl(i.value,ee=>(ct(),Nt("div",{key:ee.id,class:xt(["bridle__msg",`bridle__msg--${ee.role}`])},[ie("div",Tf,bs(ee.text),1)],2))),128)),c.value?(ct(),Nt("div",Af,[...F[2]||(F[2]=[ie("span",null,null,-1),ie("span",null,null,-1),ie("span",null,null,-1)])])):Xn("",!0)],512),ie("form",{class:"bridle__input",onSubmit:vu(X,["prevent"])},[yi(ie("textarea",{"onUpdate:modelValue":F[0]||(F[0]=ee=>h.value=ee),placeholder:e.placeholder,disabled:!o.value,rows:"1",onInput:B,onKeydown:pe},null,40,Vf),[[mu,h.value]]),ie("button",{type:"submit",disabled:!o.value||!h.value.trim()},[...F[3]||(F[3]=[ie("svg",{viewBox:"0 0 24 24",width:"18",height:"18","aria-hidden":"true"},[ie("path",{d:"M5 12h14M13 6l6 6-6 6",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,Rf)],32)],8,Of),[[Xa,l.value]])],2))}}),[["styles",[':host{--bridle-primary: #0070f3;--bridle-primary-fg: #ffffff;--bridle-bg: #ffffff;--bridle-fg: #111827;--bridle-muted: #6b7280;--bridle-bubble-bg: #f3f4f6;--bridle-border: #e5e7eb;--bridle-radius: 14px;--bridle-shadow: 0 12px 32px rgba(0, 0, 0, .16);--bridle-z: 2147483600;--bridle-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;font-family:var(--bridle-font);color-scheme:light}@media (prefers-color-scheme: dark){:host{--bridle-bg: #0f172a;--bridle-fg: #f1f5f9;--bridle-muted: #94a3b8;--bridle-bubble-bg: #1e293b;--bridle-border: #334155;color-scheme:dark}}.bridle--floating{position:fixed;right:20px;bottom:20px;z-index:var(--bridle-z)}.bridle--inline{display:block;width:100%;height:100%}.bridle__fab{width:56px;height:56px;border-radius:50%;border:0;background:var(--bridle-primary);color:var(--bridle-primary-fg);cursor:pointer;box-shadow:var(--bridle-shadow);display:flex;align-items:center;justify-content:center;transition:transform .15s ease}.bridle__fab:hover{transform:scale(1.05)}.bridle__fab:active{transform:scale(.96)}.bridle__panel{position:absolute;bottom:72px;right:0;width:380px;max-width:calc(100vw - 32px);height:560px;max-height:calc(100vh - 100px);background:var(--bridle-bg);color:var(--bridle-fg);border:1px solid var(--bridle-border);border-radius:var(--bridle-radius);box-shadow:var(--bridle-shadow);display:flex;flex-direction:column;overflow:hidden}.bridle--inline .bridle__panel{position:relative;bottom:auto;right:auto;width:100%;height:100%;min-height:480px;max-height:none}.bridle__header{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--bridle-border);font-weight:600;font-size:14px;flex-shrink:0}.bridle__title{flex:1}.bridle__status{font-size:10px;line-height:1}.bridle__status--ok{color:#16a34a}.bridle__status--bad{color:#dc2626}.bridle__close{background:transparent;border:0;font-size:22px;line-height:1;cursor:pointer;color:var(--bridle-muted);padding:0 4px;border-radius:4px}.bridle__close:hover{background:var(--bridle-bubble-bg)}.bridle__messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:8px}.bridle__empty{text-align:center;color:var(--bridle-muted);font-size:13px;margin-top:40px}.bridle__msg{display:flex}.bridle__msg--user{justify-content:flex-end}.bridle__msg--assistant{justify-content:flex-start}.bridle__bubble{max-width:80%;padding:8px 12px;border-radius:14px;background:var(--bridle-bubble-bg);font-size:14px;line-height:1.5;white-space:pre-wrap;word-break:break-word}.bridle__msg--user .bridle__bubble{background:var(--bridle-primary);color:var(--bridle-primary-fg);border-bottom-right-radius:4px}.bridle__msg--assistant .bridle__bubble{border-bottom-left-radius:4px}.bridle__typing{align-self:flex-start;display:inline-flex;gap:4px;padding:10px 14px;background:var(--bridle-bubble-bg);border-radius:14px 14px 14px 4px}.bridle__typing span{width:6px;height:6px;border-radius:50%;background:var(--bridle-muted);animation:bridle-bounce 1.4s infinite ease-in-out}.bridle__typing span:nth-child(2){animation-delay:.15s}.bridle__typing span:nth-child(3){animation-delay:.3s}@keyframes bridle-bounce{0%,60%,to{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}.bridle__input{display:flex;gap:8px;padding:12px;border-top:1px solid var(--bridle-border);align-items:flex-end;flex-shrink:0}.bridle__input textarea{flex:1;resize:none;border:1px solid var(--bridle-border);border-radius:10px;padding:8px 12px;font-family:inherit;font-size:14px;line-height:1.4;background:var(--bridle-bg);color:var(--bridle-fg);outline:none;max-height:120px;overflow-y:auto}.bridle__input textarea:focus{border-color:var(--bridle-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--bridle-primary) 20%,transparent)}.bridle__input textarea:disabled{opacity:.6;cursor:not-allowed}.bridle__input button{flex-shrink:0;background:var(--bridle-primary);color:var(--bridle-primary-fg);border:0;border-radius:10px;width:36px;height:36px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:opacity .15s ease}.bridle__input button:disabled{opacity:.4;cursor:not-allowed}.bridle__input button:not(:disabled):hover{opacity:.9}']]]),$t=typeof document!="undefined"?document.currentScript:null,as="bridle-chat",Pf=pu(kf);function ic(){typeof customElements!="undefined"&&(customElements.get(as)||customElements.define(as,Pf))}function If(){const e=$t!=null?$t:oc();if(e!=null&&e.src)try{return new URL(e.src).origin}catch{return}}function oc(){if(typeof document=="undefined")return;const e=document.querySelectorAll("script[src]");for(const t of Array.from(e))if(/\/bridle(\.[\w.-]+)?\.js(\?.*)?$/.test(t.src))return t}function Mf(e,t){if(t)for(const[n,s]of Object.entries(t))e.style.setProperty(n.startsWith("--")?n:`--${n}`,s)}function cc(e){var i,o;if(typeof document=="undefined")throw new Error("[bridle] init() can only run in a browser");if(!e.botId)throw new Error("[bridle] botId is required");ic();const t=(o=(i=e.apiUrl)!=null?i:If())==null?void 0:o.replace(/\/$/,"");if(!t)throw new Error("[bridle] apiUrl is required (or load the SDK from the same origin as the hub).");const n=document.createElement(as);n.setAttribute("api-url",t),n.setAttribute("bot-id",e.botId),e.mode&&n.setAttribute("mode",e.mode),e.title&&n.setAttribute("title",e.title),e.placeholder&&n.setAttribute("placeholder",e.placeholder),Mf(n,e.theme);const s=c=>{n.setAttribute("token",c)};e.token===void 0?s(""):typeof e.token=="function"?Promise.resolve(e.token()).then(s).catch(c=>{var l;return(l=e.onError)==null?void 0:l.call(e,c instanceof Error?c:new Error(String(c)))}):s(e.token);let r;if(e.mount instanceof HTMLElement)r=e.mount;else if(typeof e.mount=="string"){const c=document.querySelector(e.mount);if(!c)throw new Error(`[bridle] mount target not found: ${e.mount}`);r=c}else r=document.body;return r.appendChild(n),e.onReady&&n.addEventListener("ready",()=>{var c;return(c=e.onReady)==null?void 0:c.call(e)}),e.onMessage&&n.addEventListener("message",c=>{var l;return(l=e.onMessage)==null?void 0:l.call(e,c.detail)}),e.onError&&n.addEventListener("error",c=>{var l;return(l=e.onError)==null?void 0:l.call(e,c.detail)}),{element:n,open:()=>{var c;return(c=n.open)==null?void 0:c.call(n)},close:()=>{var c;return(c=n.close)==null?void 0:c.call(n)},sendMessage:c=>{var l;return(l=n.sendMessage)==null?void 0:l.call(n,c)},destroy:()=>n.remove()}}function $f(){var s,r,i;const e=$t!=null?$t:oc();if(!e)return;const t=e.dataset;if(!t.botId)return;const n=(s=t.apiUrl)!=null?s:new URL(e.src).origin;cc({apiUrl:n,botId:t.botId,token:(r=t.token)!=null?r:"",mount:t.mount,mode:(i=t.mode)!=null?i:"floating",title:t.title,placeholder:t.placeholder})}function lc(){ic();try{$f()}catch(e){console.error("[bridle] auto-mount failed:",e)}}const Lf=as,Bf="0.2.0";typeof window!="undefined"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",lc,{once:!0}):lc()),Bt.BridleClient=rc,Bt.init=cc,Bt.tag=Lf,Bt.version=Bf,Object.defineProperty(Bt,Symbol.toStringTag,{value:"Module"})})(this.Bridle=this.Bridle||{});
|
|
29
|
+
//# sourceMappingURL=bridle.js.map
|