@lilaquadrat/chat 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/src/composables/useChatVisibility.d.ts +12 -0
- package/dist/types/src/composables/useWebSocket.d.ts +5 -5
- package/dist/types/src/libs/chatSession.d.ts +109 -0
- package/dist/types/src/libs/websocketManager.d.ts +12 -1
- package/dist/types/tsconfig.build.tsbuildinfo +1 -1
- package/dist/wc/lilaquadrat-studio-chat.js +610 -204
- package/dist/wc/lilaquadrat-studio-chat.umd.cjs +9 -9
- package/package.json +1 -1
|
@@ -3,41 +3,41 @@
|
|
|
3
3
|
* @vue/shared v3.5.38
|
|
4
4
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
5
5
|
* @license MIT
|
|
6
|
-
**/function t(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const n={},
|
|
6
|
+
**/function t(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const n={},s=[],r=()=>{},o=()=>!1,a=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),i=e=>e.startsWith("onUpdate:"),l=Object.assign,c=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},u=Object.prototype.hasOwnProperty,d=(e,t)=>u.call(e,t),f=Array.isArray,p=e=>"[object Map]"===k(e),h=e=>"[object Set]"===k(e),m=e=>"[object Date]"===k(e),g=e=>"function"==typeof e,v=e=>"string"==typeof e,y=e=>"symbol"==typeof e,b=e=>null!==e&&"object"==typeof e,_=e=>(b(e)||g(e))&&g(e.then)&&g(e.catch),w=Object.prototype.toString,k=e=>w.call(e),x=e=>"[object Object]"===k(e),C=e=>v(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,S=t(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),T=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},M=/-\w/g,O=T(e=>e.replace(M,e=>e.slice(1).toUpperCase())),L=/\B([A-Z])/g,E=T(e=>e.replace(L,"-$1").toLowerCase()),R=T(e=>e.charAt(0).toUpperCase()+e.slice(1)),A=T(e=>e?`on${R(e)}`:""),$=(e,t)=>!Object.is(e,t),P=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},I=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},F=e=>{const t=parseFloat(e);return isNaN(t)?e:t},j=e=>{const t=v(e)?Number(e):NaN;return isNaN(t)?e:t};let N;const D=()=>N||(N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function U(e){if(f(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=v(s)?B(s):U(s);if(r)for(const e in r)t[e]=r[e]}return t}if(v(e)||b(e))return e}const z=/;(?![^(]*\))/g,W=/:([^]+)/,H=/\/\*[^]*?\*\//g;function B(e){const t={};return e.replace(H,"").split(z).forEach(e=>{if(e){const n=e.split(W);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function V(e){let t="";if(v(e))t=e;else if(f(e))for(let n=0;n<e.length;n++){const s=V(e[n]);s&&(t+=s+" ")}else if(b(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const q=t("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Y(e){return!!e||""===e}function J(e,t){if(e===t)return!0;let n=m(e),s=m(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=y(e),s=y(t),n||s)return e===t;if(n=f(e),s=f(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=J(e[s],t[s]);return n}(e,t);if(n=b(e),s=b(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!J(e[n],t[n]))return!1}}return String(e)===String(t)}const Z=e=>!(!e||!0!==e.__v_isRef),K=e=>v(e)?e:null==e?"":f(e)||b(e)&&(e.toString===w||!g(e.toString))?Z(e)?K(e.value):JSON.stringify(e,G,2):String(e),G=(e,t)=>Z(t)?G(e,t.value):p(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],s)=>(e[X(t,s)+" =>"]=n,e),{})}:h(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>X(e))}:y(t)?X(t):!b(t)||f(t)||x(t)?t:String(t),X=(e,t="")=>{var n;return y(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};
|
|
7
7
|
/**
|
|
8
8
|
* @vue/reactivity v3.5.38
|
|
9
9
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
10
10
|
* @license MIT
|
|
11
11
|
**/
|
|
12
|
-
let Q,ee;class te{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Q&&(Q.active?(this.parent=Q,this.index=(Q.scopes||(Q.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=Q;try{return Q=this,e()}finally{Q=t}}}on(){1===++this._on&&(this.prevScope=Q,Q=this)}off(){if(this._on>0&&0===--this._on){if(Q===this)Q=this.prevScope;else{let e=Q;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function ne(e){return new te(e)}function re(){return Q}const se=new WeakSet;class oe{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Q&&(Q.active?Q.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,se.has(this)&&(se.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||ce(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,ke(this),pe(this);const e=ee,t=ye;ee=this,ye=!0;try{return this.fn()}finally{fe(this),ee=e,ye=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)ge(e);this.deps=this.depsTail=void 0,ke(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?se.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){he(this)&&this.run()}get dirty(){return he(this)}}let ae,ie,le=0;function ce(e,t=!1){if(e.flags|=8,t)return e.next=ie,void(ie=e);e.next=ae,ae=e}function ue(){le++}function de(){if(--le>0)return;if(ie){let e=ie;for(ie=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;ae;){let n=ae;for(ae=void 0;n;){const r=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(t){e||(e=t)}n=r}}if(e)throw e}function pe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function fe(e){let t,n=e.depsTail,r=n;for(;r;){const e=r.prevDep;-1===r.version?(r===n&&(n=e),ge(r),ve(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function he(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(me(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function me(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===xe)return;if(e.globalVersion=xe,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!he(e)))return;e.flags|=2;const t=e.dep,n=ee,r=ye;ee=e,ye=!0;try{pe(e);const n=e.fn(e._value);(0===t.version||A(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(s){throw t.version++,s}finally{ee=n,ye=r,fe(e),e.flags&=-3}}function ge(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)ge(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function ve(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ye=!0;const be=[];function _e(){be.push(ye),ye=!1}function we(){const e=be.pop();ye=void 0===e||e}function ke(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=ee;ee=void 0;try{t()}finally{ee=e}}}let xe=0;class Ce{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Se{constructor(e){this.computed=e,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}track(e){if(!ee||!ye||ee===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==ee)t=this.activeLink=new Ce(ee,this),ee.deps?(t.prevDep=ee.depsTail,ee.depsTail.nextDep=t,ee.depsTail=t):ee.deps=ee.depsTail=t,Me(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=ee.depsTail,t.nextDep=void 0,ee.depsTail.nextDep=t,ee.depsTail=t,ee.deps===t&&(ee.deps=e)}return t}trigger(e){this.version++,xe++,this.notify(e)}notify(e){ue();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{de()}}}function Me(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Me(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Te=new WeakMap,Oe=Symbol(""),Le=Symbol(""),Ee=Symbol("");function Re(e,t,n){if(ye&&ee){let t=Te.get(e);t||Te.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Se),r.map=t,r.key=n),r.track()}}function $e(e,t,n,r,s,o){const a=Te.get(e);if(!a)return void xe++;const i=e=>{e&&e.trigger()};if(ue(),"clear"===t)a.forEach(i);else{const s=p(e),o=s&&C(n);if(s&&"length"===n){const e=Number(r);a.forEach((t,n)=>{("length"===n||n===Ee||!y(n)&&n>=e)&&i(t)})}else switch((void 0!==n||a.has(void 0))&&i(a.get(n)),o&&i(a.get(Ee)),t){case"add":s?o&&i(a.get("length")):(i(a.get(Oe)),f(e)&&i(a.get(Le)));break;case"delete":s||(i(a.get(Oe)),f(e)&&i(a.get(Le)));break;case"set":f(e)&&i(a.get(Oe))}}de()}function Ae(e){const t=yt(e);return t===e?t:(Re(t,0,Ee),gt(e)?t:t.map(_t))}function Pe(e){return Re(e=yt(e),0,Ee),e}function Fe(e,t){return mt(e)?wt(ht(e)?_t(t):t):_t(t)}const je={__proto__:null,[Symbol.iterator](){return Ne(this,Symbol.iterator,e=>Fe(this,e))},concat(...e){return Ae(this).concat(...e.map(e=>p(e)?Ae(e):e))},entries(){return Ne(this,"entries",e=>(e[1]=Fe(this,e[1]),e))},every(e,t){return Ie(this,"every",e,t,void 0,arguments)},filter(e,t){return Ie(this,"filter",e,t,e=>e.map(e=>Fe(this,e)),arguments)},find(e,t){return Ie(this,"find",e,t,e=>Fe(this,e),arguments)},findIndex(e,t){return Ie(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ie(this,"findLast",e,t,e=>Fe(this,e),arguments)},findLastIndex(e,t){return Ie(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ie(this,"forEach",e,t,void 0,arguments)},includes(...e){return ze(this,"includes",e)},indexOf(...e){return ze(this,"indexOf",e)},join(e){return Ae(this).join(e)},lastIndexOf(...e){return ze(this,"lastIndexOf",e)},map(e,t){return Ie(this,"map",e,t,void 0,arguments)},pop(){return We(this,"pop")},push(...e){return We(this,"push",e)},reduce(e,...t){return Ue(this,"reduce",e,t)},reduceRight(e,...t){return Ue(this,"reduceRight",e,t)},shift(){return We(this,"shift")},some(e,t){return Ie(this,"some",e,t,void 0,arguments)},splice(...e){return We(this,"splice",e)},toReversed(){return Ae(this).toReversed()},toSorted(e){return Ae(this).toSorted(e)},toSpliced(...e){return Ae(this).toSpliced(...e)},unshift(...e){return We(this,"unshift",e)},values(){return Ne(this,"values",e=>Fe(this,e))}};function Ne(e,t,n){const r=Pe(e),s=r[t]();return r===e||gt(e)||(s._next=s.next,s.next=()=>{const e=s._next();return e.done||(e.value=n(e.value)),e}),s}const De=Array.prototype;function Ie(e,t,n,r,s,o){const a=Pe(e),i=a!==e&&!gt(e),l=a[t];if(l!==De[t]){const t=l.apply(e,o);return i?_t(t):t}let c=n;a!==e&&(i?c=function(t,r){return n.call(this,Fe(e,t),r,e)}:n.length>2&&(c=function(t,r){return n.call(this,t,r,e)}));const u=l.call(a,c,r);return i&&s?s(u):u}function Ue(e,t,n,r){const s=Pe(e);let o=n,a=!1;s!==e&&(s!==e&&!gt(e)?(a=0===r.length,o=function(t,r,s){return a&&(a=!1,t=Fe(e,t)),n.call(this,t,Fe(e,r),s,e)}):n.length>3&&(o=function(t,r,s){return n.call(this,t,r,s,e)}));const i=s[t](o,...r);return a?Fe(e,i):i}function ze(e,t,n){const r=yt(e);Re(r,0,Ee);const s=r[t](...n);return-1!==s&&!1!==s||!vt(n[0])?s:(n[0]=yt(n[0]),r[t](...n))}function We(e,t,n=[]){_e(),ue();const r=yt(e)[t].apply(e,n);return de(),we(),r}const He=t("__proto__,__v_isRef,__isVue"),Be=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(y));function Ve(e){y(e)||(e=String(e));const t=yt(this);return Re(t,0,e),t.hasOwnProperty(e)}class Ye{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const r=this._isReadonly,s=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return s;if("__v_raw"===t)return n===(r?s?ct:lt:s?it:at).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=p(e);if(!r){let e;if(o&&(e=je[t]))return e;if("hasOwnProperty"===t)return Ve}const a=Reflect.get(e,t,kt(e)?e:n);if(y(t)?Be.has(t):He(t))return a;if(r||Re(e,0,t),s)return a;if(kt(a)){const e=o&&C(t)?a:a.value;return r&&b(e)?pt(e):e}return b(a)?r?pt(a):ut(a):a}}class qe extends Ye{constructor(e=!1){super(!1,e)}set(e,t,n,r){let s=e[t];const o=p(e)&&C(t);if(!this._isShallow){const e=mt(s);if(gt(n)||mt(n)||(s=yt(s),n=yt(n)),!o&&kt(s)&&!kt(n))return e||(s.value=n),!0}const a=o?Number(t)<e.length:d(e,t),i=Reflect.set(e,t,n,kt(e)?e:r);return e===yt(r)&&(a?A(n,s)&&$e(e,"set",t,n):$e(e,"add",t,n)),i}deleteProperty(e,t){const n=d(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&$e(e,"delete",t,void 0),r}has(e,t){const n=Reflect.has(e,t);return y(t)&&Be.has(t)||Re(e,0,t),n}ownKeys(e){return Re(e,0,p(e)?"length":Oe),Reflect.ownKeys(e)}}class Je extends Ye{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Ze=new qe,Ge=new Je,Ke=new qe(!0),Xe=e=>e,Qe=e=>Reflect.getPrototypeOf(e);function et(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function tt(e,t){const n={get(n){const r=this.__v_raw,s=yt(r),o=yt(n);e||(A(n,o)&&Re(s,0,n),Re(s,0,o));const{has:a}=Qe(s),i=t?Xe:e?wt:_t;return a.call(s,n)?i(r.get(n)):a.call(s,o)?i(r.get(o)):void(r!==s&&r.get(n))},get size(){const t=this.__v_raw;return!e&&Re(yt(t),0,Oe),t.size},has(t){const n=this.__v_raw,r=yt(n),s=yt(t);return e||(A(t,s)&&Re(r,0,t),Re(r,0,s)),t===s?n.has(t):n.has(t)||n.has(s)},forEach(n,r){const s=this,o=s.__v_raw,a=t?Xe:e?wt:_t;return!e&&Re(yt(o),0,Oe),o.forEach((e,t)=>n.call(r,a(e),a(t),s))}};l(n,e?{add:et("add"),set:et("set"),delete:et("delete"),clear:et("clear")}:{add(e){const n=yt(this),r=Qe(n),s=yt(e),o=t||gt(e)||mt(e)?e:s;return r.has.call(n,o)||A(e,o)&&r.has.call(n,e)||A(s,o)&&r.has.call(n,s)||(n.add(o),$e(n,"add",o,o)),this},set(e,n){t||gt(n)||mt(n)||(n=yt(n));const r=yt(this),{has:s,get:o}=Qe(r);let a=s.call(r,e);a||(e=yt(e),a=s.call(r,e));const i=o.call(r,e);return r.set(e,n),a?A(n,i)&&$e(r,"set",e,n):$e(r,"add",e,n),this},delete(e){const t=yt(this),{has:n,get:r}=Qe(t);let s=n.call(t,e);s||(e=yt(e),s=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return s&&$e(t,"delete",e,void 0),o},clear(){const e=yt(this),t=0!==e.size,n=e.clear();return t&&$e(e,"clear",void 0,void 0),n}});return["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=function(e,t,n){return function(...r){const s=this.__v_raw,o=yt(s),a=f(o),i="entries"===e||e===Symbol.iterator&&a,c="keys"===e&&a,u=s[e](...r),d=n?Xe:t?wt:_t;return!t&&Re(o,0,c?Le:Oe),l(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:i?[d(e[0]),d(e[1])]:d(e),done:t}}})}}(r,e,t)}),n}function nt(e,t){const n=tt(e,t);return(t,r,s)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(d(n,r)&&r in t?n:t,r,s)}const rt={get:nt(!1,!1)},st={get:nt(!1,!0)},ot={get:nt(!0,!1)},at=new WeakMap,it=new WeakMap,lt=new WeakMap,ct=new WeakMap;function ut(e){return mt(e)?e:ft(e,!1,Ze,rt,at)}function dt(e){return ft(e,!1,Ke,st,it)}function pt(e){return ft(e,!0,Ge,ot,lt)}function ft(e,t,n,r,s){if(!b(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;if(e.__v_skip||!Object.isExtensible(e))return e;const o=s.get(e);if(o)return o;const a=function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(k(e).slice(8,-1));if(0===a)return e;const i=new Proxy(e,2===a?r:n);return s.set(e,i),i}function ht(e){return mt(e)?ht(e.__v_raw):!(!e||!e.__v_isReactive)}function mt(e){return!(!e||!e.__v_isReadonly)}function gt(e){return!(!e||!e.__v_isShallow)}function vt(e){return!!e&&!!e.__v_raw}function yt(e){const t=e&&e.__v_raw;return t?yt(t):e}function bt(e){return!d(e,"__v_skip")&&Object.isExtensible(e)&&F(e,"__v_skip",!0),e}const _t=e=>b(e)?ut(e):e,wt=e=>b(e)?pt(e):e;function kt(e){return!!e&&!0===e.__v_isRef}function xt(e){return St(e,!1)}function Ct(e){return St(e,!0)}function St(e,t){return kt(e)?e:new Mt(e,t)}class Mt{constructor(e,t){this.dep=new Se,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:yt(e),this._value=t?e:_t(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||gt(e)||mt(e);A(e=n?e:yt(e),t)&&(this._rawValue=e,this._value=n?e:_t(e),this.dep.trigger())}}function Tt(e){return kt(e)?e.value:e}const Ot={get:(e,t,n)=>"__v_raw"===t?e:Tt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return kt(s)&&!kt(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Lt(e){return ht(e)?e:new Proxy(e,Ot)}function Et(e){const t=p(e)?new Array(e.length):{};for(const n in e)t[n]=$t(e,n);return t}class Rt{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=y(t)?t:String(t),this._raw=yt(e);let r=!0,s=e;if(!p(e)||y(this._key)||!C(this._key))do{r=!vt(s)||gt(s)}while(r&&(s=s.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=Tt(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&kt(this._raw[this._key])){const t=this._object[this._key];if(kt(t))return void(t.value=e)}this._object[this._key]=e}get dep(){return function(e,t){const n=Te.get(e);return n&&n.get(t)}(this._raw,this._key)}}function $t(e,t,n){return new Rt(e,t,n)}class At{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Se(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=xe-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&ee!==this)return ce(this,!0),!0}get value(){const e=this.dep.track();return me(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Pt(e,t,n=!1){let r,s;g(e)?r=e:(r=e.get,s=e.set);return new At(r,s,n)}const Ft={},jt=new WeakMap;let Nt;function Dt(e,t,r=n){const{immediate:o,deep:a,once:i,scheduler:l,augmentJob:u,call:d}=r,f=e=>a?e:gt(e)||!1===a||0===a?It(e,1):It(e);let h,m,v,y,b=!1,_=!1;if(kt(e)?(m=()=>e.value,b=gt(e)):ht(e)?(m=()=>f(e),b=!0):p(e)?(_=!0,b=e.some(e=>ht(e)||gt(e)),m=()=>e.map(e=>kt(e)?e.value:ht(e)?f(e):g(e)?d?d(e,2):e():void 0)):m=g(e)?t?d?()=>d(e,2):e:()=>{if(v){_e();try{v()}finally{we()}}const t=Nt;Nt=h;try{return d?d(e,3,[y]):e(y)}finally{Nt=t}}:s,t&&a){const e=m,t=!0===a?1/0:a;m=()=>It(e(),t)}const w=re(),k=()=>{h.stop(),w&&w.active&&c(w.effects,h)};if(i&&t){const e=t;t=(...t)=>{const n=e(...t);return k(),n}}let x=_?new Array(e.length).fill(Ft):Ft;const C=e=>{if(1&h.flags&&(h.dirty||e))if(t){const n=h.run();if(e||a||b||(_?n.some((e,t)=>A(e,x[t])):A(n,x))){v&&v();const e=Nt;Nt=h;try{const e=[n,x===Ft?void 0:_&&x[0]===Ft?[]:x,y];x=n,d?d(t,3,e):t(...e)}finally{Nt=e}}}else h.run()};return u&&u(C),h=new oe(m),h.scheduler=l?()=>l(C,!1):C,y=e=>function(e,t=!1,n=Nt){if(n){let t=jt.get(n);t||jt.set(n,t=[]),t.push(e)}}(e,!1,h),v=h.onStop=()=>{const e=jt.get(h);if(e){if(d)d(e,4);else for(const t of e)t();jt.delete(h)}},t?o?C(!0):x=h.run():l?l(C.bind(null,!0),!0):h.run(),k.pause=h.pause.bind(h),k.resume=h.resume.bind(h),k.stop=k,k}function It(e,t=1/0,n){if(t<=0||!b(e)||e.__v_skip)return e;if(((n=n||new Map).get(e)||0)>=t)return e;if(n.set(e,t),t--,kt(e))It(e.value,t,n);else if(p(e))for(let r=0;r<e.length;r++)It(e[r],t,n);else if(h(e)||f(e))e.forEach(e=>{It(e,t,n)});else if(x(e)){for(const r in e)It(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&It(e[r],t,n)}return e}
|
|
12
|
+
let Q,ee;class te{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Q&&(Q.active?(this.parent=Q,this.index=(Q.scopes||(Q.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=Q;try{return Q=this,e()}finally{Q=t}}}on(){1===++this._on&&(this.prevScope=Q,Q=this)}off(){if(this._on>0&&0===--this._on){if(Q===this)Q=this.prevScope;else{let e=Q;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function ne(e){return new te(e)}function se(){return Q}const re=new WeakSet;class oe{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Q&&(Q.active?Q.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,re.has(this)&&(re.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||ce(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,ke(this),fe(this);const e=ee,t=ye;ee=this,ye=!0;try{return this.fn()}finally{pe(this),ee=e,ye=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)ge(e);this.deps=this.depsTail=void 0,ke(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?re.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){he(this)&&this.run()}get dirty(){return he(this)}}let ae,ie,le=0;function ce(e,t=!1){if(e.flags|=8,t)return e.next=ie,void(ie=e);e.next=ae,ae=e}function ue(){le++}function de(){if(--le>0)return;if(ie){let e=ie;for(ie=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;ae;){let n=ae;for(ae=void 0;n;){const s=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(t){e||(e=t)}n=s}}if(e)throw e}function fe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function pe(e){let t,n=e.depsTail,s=n;for(;s;){const e=s.prevDep;-1===s.version?(s===n&&(n=e),ge(s),ve(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=e}e.deps=t,e.depsTail=n}function he(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(me(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function me(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===xe)return;if(e.globalVersion=xe,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!he(e)))return;e.flags|=2;const t=e.dep,n=ee,s=ye;ee=e,ye=!0;try{fe(e);const n=e.fn(e._value);(0===t.version||$(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(r){throw t.version++,r}finally{ee=n,ye=s,pe(e),e.flags&=-3}}function ge(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),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)ge(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function ve(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ye=!0;const be=[];function _e(){be.push(ye),ye=!1}function we(){const e=be.pop();ye=void 0===e||e}function ke(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=ee;ee=void 0;try{t()}finally{ee=e}}}let xe=0;class Ce{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Se{constructor(e){this.computed=e,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}track(e){if(!ee||!ye||ee===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==ee)t=this.activeLink=new Ce(ee,this),ee.deps?(t.prevDep=ee.depsTail,ee.depsTail.nextDep=t,ee.depsTail=t):ee.deps=ee.depsTail=t,Te(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=ee.depsTail,t.nextDep=void 0,ee.depsTail.nextDep=t,ee.depsTail=t,ee.deps===t&&(ee.deps=e)}return t}trigger(e){this.version++,xe++,this.notify(e)}notify(e){ue();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{de()}}}function Te(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Te(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Me=new WeakMap,Oe=Symbol(""),Le=Symbol(""),Ee=Symbol("");function Re(e,t,n){if(ye&&ee){let t=Me.get(e);t||Me.set(e,t=new Map);let s=t.get(n);s||(t.set(n,s=new Se),s.map=t,s.key=n),s.track()}}function Ae(e,t,n,s,r,o){const a=Me.get(e);if(!a)return void xe++;const i=e=>{e&&e.trigger()};if(ue(),"clear"===t)a.forEach(i);else{const r=f(e),o=r&&C(n);if(r&&"length"===n){const e=Number(s);a.forEach((t,n)=>{("length"===n||n===Ee||!y(n)&&n>=e)&&i(t)})}else switch((void 0!==n||a.has(void 0))&&i(a.get(n)),o&&i(a.get(Ee)),t){case"add":r?o&&i(a.get("length")):(i(a.get(Oe)),p(e)&&i(a.get(Le)));break;case"delete":r||(i(a.get(Oe)),p(e)&&i(a.get(Le)));break;case"set":p(e)&&i(a.get(Oe))}}de()}function $e(e){const t=yt(e);return t===e?t:(Re(t,0,Ee),gt(e)?t:t.map(_t))}function Pe(e){return Re(e=yt(e),0,Ee),e}function Ie(e,t){return mt(e)?wt(ht(e)?_t(t):t):_t(t)}const Fe={__proto__:null,[Symbol.iterator](){return je(this,Symbol.iterator,e=>Ie(this,e))},concat(...e){return $e(this).concat(...e.map(e=>f(e)?$e(e):e))},entries(){return je(this,"entries",e=>(e[1]=Ie(this,e[1]),e))},every(e,t){return De(this,"every",e,t,void 0,arguments)},filter(e,t){return De(this,"filter",e,t,e=>e.map(e=>Ie(this,e)),arguments)},find(e,t){return De(this,"find",e,t,e=>Ie(this,e),arguments)},findIndex(e,t){return De(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return De(this,"findLast",e,t,e=>Ie(this,e),arguments)},findLastIndex(e,t){return De(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return De(this,"forEach",e,t,void 0,arguments)},includes(...e){return ze(this,"includes",e)},indexOf(...e){return ze(this,"indexOf",e)},join(e){return $e(this).join(e)},lastIndexOf(...e){return ze(this,"lastIndexOf",e)},map(e,t){return De(this,"map",e,t,void 0,arguments)},pop(){return We(this,"pop")},push(...e){return We(this,"push",e)},reduce(e,...t){return Ue(this,"reduce",e,t)},reduceRight(e,...t){return Ue(this,"reduceRight",e,t)},shift(){return We(this,"shift")},some(e,t){return De(this,"some",e,t,void 0,arguments)},splice(...e){return We(this,"splice",e)},toReversed(){return $e(this).toReversed()},toSorted(e){return $e(this).toSorted(e)},toSpliced(...e){return $e(this).toSpliced(...e)},unshift(...e){return We(this,"unshift",e)},values(){return je(this,"values",e=>Ie(this,e))}};function je(e,t,n){const s=Pe(e),r=s[t]();return s===e||gt(e)||(r._next=r.next,r.next=()=>{const e=r._next();return e.done||(e.value=n(e.value)),e}),r}const Ne=Array.prototype;function De(e,t,n,s,r,o){const a=Pe(e),i=a!==e&&!gt(e),l=a[t];if(l!==Ne[t]){const t=l.apply(e,o);return i?_t(t):t}let c=n;a!==e&&(i?c=function(t,s){return n.call(this,Ie(e,t),s,e)}:n.length>2&&(c=function(t,s){return n.call(this,t,s,e)}));const u=l.call(a,c,s);return i&&r?r(u):u}function Ue(e,t,n,s){const r=Pe(e);let o=n,a=!1;r!==e&&(r!==e&&!gt(e)?(a=0===s.length,o=function(t,s,r){return a&&(a=!1,t=Ie(e,t)),n.call(this,t,Ie(e,s),r,e)}):n.length>3&&(o=function(t,s,r){return n.call(this,t,s,r,e)}));const i=r[t](o,...s);return a?Ie(e,i):i}function ze(e,t,n){const s=yt(e);Re(s,0,Ee);const r=s[t](...n);return-1!==r&&!1!==r||!vt(n[0])?r:(n[0]=yt(n[0]),s[t](...n))}function We(e,t,n=[]){_e(),ue();const s=yt(e)[t].apply(e,n);return de(),we(),s}const He=t("__proto__,__v_isRef,__isVue"),Be=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(y));function Ve(e){y(e)||(e=String(e));const t=yt(this);return Re(t,0,e),t.hasOwnProperty(e)}class qe{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?ct:lt:r?it:at).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=f(e);if(!s){let e;if(o&&(e=Fe[t]))return e;if("hasOwnProperty"===t)return Ve}const a=Reflect.get(e,t,kt(e)?e:n);if(y(t)?Be.has(t):He(t))return a;if(s||Re(e,0,t),r)return a;if(kt(a)){const e=o&&C(t)?a:a.value;return s&&b(e)?ft(e):e}return b(a)?s?ft(a):ut(a):a}}class Ye extends qe{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];const o=f(e)&&C(t);if(!this._isShallow){const e=mt(r);if(gt(n)||mt(n)||(r=yt(r),n=yt(n)),!o&&kt(r)&&!kt(n))return e||(r.value=n),!0}const a=o?Number(t)<e.length:d(e,t),i=Reflect.set(e,t,n,kt(e)?e:s);return e===yt(s)&&(a?$(n,r)&&Ae(e,"set",t,n):Ae(e,"add",t,n)),i}deleteProperty(e,t){const n=d(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&Ae(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return y(t)&&Be.has(t)||Re(e,0,t),n}ownKeys(e){return Re(e,0,f(e)?"length":Oe),Reflect.ownKeys(e)}}class Je extends qe{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Ze=new Ye,Ke=new Je,Ge=new Ye(!0),Xe=e=>e,Qe=e=>Reflect.getPrototypeOf(e);function et(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function tt(e,t){const n={get(n){const s=this.__v_raw,r=yt(s),o=yt(n);e||($(n,o)&&Re(r,0,n),Re(r,0,o));const{has:a}=Qe(r),i=t?Xe:e?wt:_t;return a.call(r,n)?i(s.get(n)):a.call(r,o)?i(s.get(o)):void(s!==r&&s.get(n))},get size(){const t=this.__v_raw;return!e&&Re(yt(t),0,Oe),t.size},has(t){const n=this.__v_raw,s=yt(n),r=yt(t);return e||($(t,r)&&Re(s,0,t),Re(s,0,r)),t===r?n.has(t):n.has(t)||n.has(r)},forEach(n,s){const r=this,o=r.__v_raw,a=t?Xe:e?wt:_t;return!e&&Re(yt(o),0,Oe),o.forEach((e,t)=>n.call(s,a(e),a(t),r))}};l(n,e?{add:et("add"),set:et("set"),delete:et("delete"),clear:et("clear")}:{add(e){const n=yt(this),s=Qe(n),r=yt(e),o=t||gt(e)||mt(e)?e:r;return s.has.call(n,o)||$(e,o)&&s.has.call(n,e)||$(r,o)&&s.has.call(n,r)||(n.add(o),Ae(n,"add",o,o)),this},set(e,n){t||gt(n)||mt(n)||(n=yt(n));const s=yt(this),{has:r,get:o}=Qe(s);let a=r.call(s,e);a||(e=yt(e),a=r.call(s,e));const i=o.call(s,e);return s.set(e,n),a?$(n,i)&&Ae(s,"set",e,n):Ae(s,"add",e,n),this},delete(e){const t=yt(this),{has:n,get:s}=Qe(t);let r=n.call(t,e);r||(e=yt(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&Ae(t,"delete",e,void 0),o},clear(){const e=yt(this),t=0!==e.size,n=e.clear();return t&&Ae(e,"clear",void 0,void 0),n}});return["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=function(e,t,n){return function(...s){const r=this.__v_raw,o=yt(r),a=p(o),i="entries"===e||e===Symbol.iterator&&a,c="keys"===e&&a,u=r[e](...s),d=n?Xe:t?wt:_t;return!t&&Re(o,0,c?Le:Oe),l(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:i?[d(e[0]),d(e[1])]:d(e),done:t}}})}}(s,e,t)}),n}function nt(e,t){const n=tt(e,t);return(t,s,r)=>"__v_isReactive"===s?!e:"__v_isReadonly"===s?e:"__v_raw"===s?t:Reflect.get(d(n,s)&&s in t?n:t,s,r)}const st={get:nt(!1,!1)},rt={get:nt(!1,!0)},ot={get:nt(!0,!1)},at=new WeakMap,it=new WeakMap,lt=new WeakMap,ct=new WeakMap;function ut(e){return mt(e)?e:pt(e,!1,Ze,st,at)}function dt(e){return pt(e,!1,Ge,rt,it)}function ft(e){return pt(e,!0,Ke,ot,lt)}function pt(e,t,n,s,r){if(!b(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;if(e.__v_skip||!Object.isExtensible(e))return e;const o=r.get(e);if(o)return o;const a=function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(k(e).slice(8,-1));if(0===a)return e;const i=new Proxy(e,2===a?s:n);return r.set(e,i),i}function ht(e){return mt(e)?ht(e.__v_raw):!(!e||!e.__v_isReactive)}function mt(e){return!(!e||!e.__v_isReadonly)}function gt(e){return!(!e||!e.__v_isShallow)}function vt(e){return!!e&&!!e.__v_raw}function yt(e){const t=e&&e.__v_raw;return t?yt(t):e}function bt(e){return!d(e,"__v_skip")&&Object.isExtensible(e)&&I(e,"__v_skip",!0),e}const _t=e=>b(e)?ut(e):e,wt=e=>b(e)?ft(e):e;function kt(e){return!!e&&!0===e.__v_isRef}function xt(e){return St(e,!1)}function Ct(e){return St(e,!0)}function St(e,t){return kt(e)?e:new Tt(e,t)}class Tt{constructor(e,t){this.dep=new Se,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:yt(e),this._value=t?e:_t(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||gt(e)||mt(e);$(e=n?e:yt(e),t)&&(this._rawValue=e,this._value=n?e:_t(e),this.dep.trigger())}}function Mt(e){return kt(e)?e.value:e}const Ot={get:(e,t,n)=>"__v_raw"===t?e:Mt(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return kt(r)&&!kt(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Lt(e){return ht(e)?e:new Proxy(e,Ot)}function Et(e){const t=f(e)?new Array(e.length):{};for(const n in e)t[n]=At(e,n);return t}class Rt{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=y(t)?t:String(t),this._raw=yt(e);let s=!0,r=e;if(!f(e)||y(this._key)||!C(this._key))do{s=!vt(r)||gt(r)}while(s&&(r=r.__v_raw));this._shallow=s}get value(){let e=this._object[this._key];return this._shallow&&(e=Mt(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&kt(this._raw[this._key])){const t=this._object[this._key];if(kt(t))return void(t.value=e)}this._object[this._key]=e}get dep(){return function(e,t){const n=Me.get(e);return n&&n.get(t)}(this._raw,this._key)}}function At(e,t,n){return new Rt(e,t,n)}class $t{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Se(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=xe-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&ee!==this)return ce(this,!0),!0}get value(){const e=this.dep.track();return me(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Pt(e,t,n=!1){let s,r;g(e)?s=e:(s=e.get,r=e.set);return new $t(s,r,n)}const It={},Ft=new WeakMap;let jt;function Nt(e,t,s=n){const{immediate:o,deep:a,once:i,scheduler:l,augmentJob:u,call:d}=s,p=e=>a?e:gt(e)||!1===a||0===a?Dt(e,1):Dt(e);let h,m,v,y,b=!1,_=!1;if(kt(e)?(m=()=>e.value,b=gt(e)):ht(e)?(m=()=>p(e),b=!0):f(e)?(_=!0,b=e.some(e=>ht(e)||gt(e)),m=()=>e.map(e=>kt(e)?e.value:ht(e)?p(e):g(e)?d?d(e,2):e():void 0)):m=g(e)?t?d?()=>d(e,2):e:()=>{if(v){_e();try{v()}finally{we()}}const t=jt;jt=h;try{return d?d(e,3,[y]):e(y)}finally{jt=t}}:r,t&&a){const e=m,t=!0===a?1/0:a;m=()=>Dt(e(),t)}const w=se(),k=()=>{h.stop(),w&&w.active&&c(w.effects,h)};if(i&&t){const e=t;t=(...t)=>{const n=e(...t);return k(),n}}let x=_?new Array(e.length).fill(It):It;const C=e=>{if(1&h.flags&&(h.dirty||e))if(t){const n=h.run();if(e||a||b||(_?n.some((e,t)=>$(e,x[t])):$(n,x))){v&&v();const e=jt;jt=h;try{const e=[n,x===It?void 0:_&&x[0]===It?[]:x,y];x=n,d?d(t,3,e):t(...e)}finally{jt=e}}}else h.run()};return u&&u(C),h=new oe(m),h.scheduler=l?()=>l(C,!1):C,y=e=>function(e,t=!1,n=jt){if(n){let t=Ft.get(n);t||Ft.set(n,t=[]),t.push(e)}}(e,!1,h),v=h.onStop=()=>{const e=Ft.get(h);if(e){if(d)d(e,4);else for(const t of e)t();Ft.delete(h)}},t?o?C(!0):x=h.run():l?l(C.bind(null,!0),!0):h.run(),k.pause=h.pause.bind(h),k.resume=h.resume.bind(h),k.stop=k,k}function Dt(e,t=1/0,n){if(t<=0||!b(e)||e.__v_skip)return e;if(((n=n||new Map).get(e)||0)>=t)return e;if(n.set(e,t),t--,kt(e))Dt(e.value,t,n);else if(f(e))for(let s=0;s<e.length;s++)Dt(e[s],t,n);else if(h(e)||p(e))e.forEach(e=>{Dt(e,t,n)});else if(x(e)){for(const s in e)Dt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Dt(e[s],t,n)}return e}
|
|
13
13
|
/**
|
|
14
14
|
* @vue/runtime-core v3.5.38
|
|
15
15
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
16
|
* @license MIT
|
|
17
|
-
**/function Ut(e,t,n,r){try{return r?e(...r):e()}catch(s){Wt(s,t,n)}}function zt(e,t,n,r){if(g(e)){const s=Ut(e,t,n,r);return s&&_(s)&&s.catch(e=>{Wt(e,t,n)}),s}if(p(e)){const s=[];for(let o=0;o<e.length;o++)s.push(zt(e[o],t,n,r));return s}}function Wt(e,t,r,s=!0){t&&t.vnode;const{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||n;if(t){let n=t.parent;const s=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${r}`;for(;n;){const t=n.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,s,a))return;n=n.parent}if(o)return _e(),Ut(o,null,10,[e,s,a]),void we()}!function(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}(e,0,0,s,a)}const Ht=[];let Bt=-1;const Vt=[];let Yt=null,qt=0;const Jt=Promise.resolve();let Zt=null;function Gt(e){const t=Zt||Jt;return e?t.then(this?e.bind(this):e):t}function Kt(e){if(!(1&e.flags)){const t=tn(e),n=Ht[Ht.length-1];!n||!(2&e.flags)&&t>=tn(n)?Ht.push(e):Ht.splice(function(e){let t=Bt+1,n=Ht.length;for(;t<n;){const r=t+n>>>1,s=Ht[r],o=tn(s);o<e||o===e&&2&s.flags?t=r+1:n=r}return t}(t),0,e),e.flags|=1,Xt()}}function Xt(){Zt||(Zt=Jt.then(nn))}function Qt(e,t,n=Bt+1){for(;n<Ht.length;n++){const t=Ht[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;Ht.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function en(e){if(Vt.length){const e=[...new Set(Vt)].sort((e,t)=>tn(e)-tn(t));if(Vt.length=0,Yt)return void Yt.push(...e);for(Yt=e,qt=0;qt<Yt.length;qt++){const e=Yt[qt];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}Yt=null,qt=0}}const tn=e=>null==e.id?2&e.flags?-1:1/0:e.id;function nn(e){try{for(Bt=0;Bt<Ht.length;Bt++){const e=Ht[Bt];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),Ut(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;Bt<Ht.length;Bt++){const e=Ht[Bt];e&&(e.flags&=-2)}Bt=-1,Ht.length=0,en(),Zt=null,(Ht.length||Vt.length)&&nn()}}let rn=null,sn=null;function on(e){const t=rn;return rn=e,sn=e&&e.type.__scopeId||null,t}function an(e,t=rn,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&ns(-1);const s=on(t);let o;try{o=e(...n)}finally{on(s),r._d&&ns(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function ln(e,t){if(null===rn)return e;const r=As(rn),s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[e,a,i,l=n]=t[o];e&&(g(e)&&(e={mounted:e,updated:e}),e.deep&&It(a),s.push({dir:e,instance:r,value:a,oldValue:void 0,arg:i,modifiers:l}))}return e}function cn(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let a=0;a<s.length;a++){const i=s[a];o&&(i.oldValue=o[a].value);let l=i.dir[r];l&&(_e(),zt(l,n,8,[e.el,i,e,t]),we())}}function un(e,t,n=!1){const r=xs();if(r||mr){let s=mr?mr._context.provides:r?null==r.parent||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&g(t)?t.call(r&&r.proxy):t}}const dn=Symbol.for("v-scx");function pn(e,t,n){return fn(e,t,n)}function fn(e,t,r=n){const{immediate:o,deep:a,flush:i,once:c}=r,u=l({},r),d=t&&o||!t&&"post"!==i;let p;if(Ls)if("sync"===i){const e=un(dn);p=e.__watcherHandles||(e.__watcherHandles=[])}else if(!d){const e=()=>{};return e.stop=s,e.resume=s,e.pause=s,e}const f=ks;u.call=(e,t,n)=>zt(e,f,t,n);let h=!1;"post"===i?u.scheduler=e=>{Ir(e,f&&f.suspense)}:"sync"!==i&&(h=!0,u.scheduler=(e,t)=>{t?e():Kt(e)}),u.augmentJob=e=>{t&&(e.flags|=4),h&&(e.flags|=2,f&&(e.id=f.uid,e.i=f))};const m=Dt(e,t,u);return Ls&&(p?p.push(m):d&&m()),m}function hn(e,t,n){const r=this.proxy,s=v(e)?e.includes(".")?mn(r,e):()=>r[e]:e.bind(r,r);let o;g(t)?o=t:(o=t.handler,n=t);const a=Ms(this),i=fn(s,o.bind(r),n);return a(),i}function mn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}const gn=Symbol("_vte"),vn=Symbol("_leaveCb");function yn(e,t){6&e.shapeFlag&&e.component?(e.transition=t,yn(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function bn(e,t){return g(e)?(()=>l({name:e.name},t,{setup:e}))():e}function _n(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function wn(e,t){let n;return!(!(n=Object.getOwnPropertyDescriptor(e,t))||n.configurable)}const kn=new WeakMap;function xn(e,t,r,s,a=!1){if(p(e))return void e.forEach((e,n)=>xn(e,t&&(p(t)?t[n]:t),r,s,a));if(Sn(s)&&!a)return void(512&s.shapeFlag&&s.type.__asyncResolved&&s.component.subTree.component&&xn(e,t,r,s.component.subTree));const i=4&s.shapeFlag?As(s.component):s.el,l=a?null:i,{i:u,r:f}=e,h=t&&t.r,m=u.refs===n?u.refs={}:u.refs,y=u.setupState,b=yt(y),_=y===n?o:e=>!wn(m,e)&&d(b,e),w=(e,t)=>!t||!wn(m,t);if(null!=h&&h!==f)if(Cn(t),v(h))m[h]=null,_(h)&&(y[h]=null);else if(kt(h)){const e=t;w(0,e.k)&&(h.value=null),e.k&&(m[e.k]=null)}if(g(f))Ut(f,u,12,[l,m]);else{const t=v(f),n=kt(f);if(t||n){const s=()=>{if(e.f){const n=t?_(f)?y[f]:m[f]:w()||!e.k?f.value:m[e.k];if(a)p(n)&&c(n,i);else if(p(n))n.includes(i)||n.push(i);else if(t)m[f]=[i],_(f)&&(y[f]=m[f]);else{const t=[i];w(0,e.k)&&(f.value=t),e.k&&(m[e.k]=t)}}else t?(m[f]=l,_(f)&&(y[f]=l)):n&&(w(0,e.k)&&(f.value=l),e.k&&(m[e.k]=l))};if(l){const t=()=>{s(),kn.delete(e)};t.id=-1,kn.set(e,t),Ir(t,r)}else Cn(e),s()}}}function Cn(e){const t=kn.get(e);t&&(t.flags|=8,kn.delete(e))}I().requestIdleCallback,I().cancelIdleCallback;const Sn=e=>!!e.type.__asyncLoader,Mn=e=>e.type.__isKeepAlive;function Tn(e,t){Ln(e,"a",t)}function On(e,t){Ln(e,"da",t)}function Ln(e,t,n=ks){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Rn(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Mn(e.parent.vnode)&&En(r,t,n,e),e=e.parent}}function En(e,t,n,r){const s=Rn(t,e,r,!0);Dn(()=>{c(r[t],s)},n)}function Rn(e,t,n=ks,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{_e();const s=Ms(n),o=zt(t,n,e,r);return s(),we(),o});return r?s.unshift(o):s.push(o),o}}const $n=e=>(t,n=ks)=>{Ls&&"sp"!==e||Rn(e,(...e)=>t(...e),n)},An=$n("bm"),Pn=$n("m"),Fn=$n("bu"),jn=$n("u"),Nn=$n("bum"),Dn=$n("um"),In=$n("sp"),Un=$n("rtg"),zn=$n("rtc");function Wn(e,t=ks){Rn("ec",e,t)}function Hn(e,t){return function(e,t,n=!0,r=!1){const s=rn||ks;if(s){const n=s.type;{const e=Ps(n,!1);if(e&&(e===t||e===O(t)||e===R(O(t))))return n}const o=Vn(s[e]||n[e],t)||Vn(s.appContext[e],t);return!o&&r?n:o}}("components",e,!0,t)||e}const Bn=Symbol.for("v-ndc");function Vn(e,t){return e&&(e[t]||e[O(t)]||e[R(O(t))])}function Yn(e,t,n,r){let s;const o=n,a=p(e);if(a||v(e)){let n=!1,r=!1;a&&ht(e)&&(n=!gt(e),r=mt(e),e=Pe(e)),s=new Array(e.length);for(let a=0,i=e.length;a<i;a++)s[a]=t(n?r?wt(_t(e[a])):_t(e[a]):e[a],a,void 0,o)}else if("number"==typeof e){s=new Array(e);for(let n=0;n<e;n++)s[n]=t(n+1,n,void 0,o)}else if(b(e))if(e[Symbol.iterator])s=Array.from(e,(e,n)=>t(e,n,void 0,o));else{const n=Object.keys(e);s=new Array(n.length);for(let r=0,a=n.length;r<a;r++){const a=n[r];s[r]=t(e[a],a,r,o)}}else s=[];return s}function qn(e,t,n={},r,s){if(rn.ce||rn.parent&&Sn(rn.parent)&&rn.parent.ce){const e=Object.keys(n).length>0;return es(),os(Jr,null,[ds("slot",n,r)],e?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),es();const a=o&&Jn(o(n)),i=n.key||a&&a.key,l=os(Jr,{key:(i&&!y(i)?i:`_${t}`)+""},a||[],a&&1===e._?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function Jn(e){return e.some(e=>!as(e)||e.type!==Gr&&!(e.type===Jr&&!Jn(e.children)))?e:null}const Zn=e=>e?Os(e)?As(e):Zn(e.parent):null,Gn=l(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Zn(e.parent),$root:e=>Zn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>sr(e),$forceUpdate:e=>e.f||(e.f=()=>{Kt(e.update)}),$nextTick:e=>e.n||(e.n=Gt.bind(e.proxy)),$watch:e=>hn.bind(e)}),Kn=(e,t)=>e!==n&&!e.__isScriptSetup&&d(e,t),Xn={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:r,setupState:s,data:o,props:a,accessCache:i,type:l,appContext:c}=e;if("$"!==t[0]){const e=i[t];if(void 0!==e)switch(e){case 1:return s[t];case 2:return o[t];case 4:return r[t];case 3:return a[t]}else{if(Kn(s,t))return i[t]=1,s[t];if(o!==n&&d(o,t))return i[t]=2,o[t];if(d(a,t))return i[t]=3,a[t];if(r!==n&&d(r,t))return i[t]=4,r[t];er&&(i[t]=0)}}const u=Gn[t];let p,f;return u?("$attrs"===t&&Re(e.attrs,0,""),u(e)):(p=l.__cssModules)&&(p=p[t])?p:r!==n&&d(r,t)?(i[t]=4,r[t]):(f=c.config.globalProperties,d(f,t)?f[t]:void 0)},set({_:e},t,r){const{data:s,setupState:o,ctx:a}=e;return Kn(o,t)?(o[t]=r,!0):s!==n&&d(s,t)?(s[t]=r,!0):!d(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=r,!0))},has({_:{data:e,setupState:t,accessCache:r,ctx:s,appContext:o,props:a,type:i}},l){let c;return!!(r[l]||e!==n&&"$"!==l[0]&&d(e,l)||Kn(t,l)||d(a,l)||d(s,l)||d(Gn,l)||d(o.config.globalProperties,l)||(c=i.__cssModules)&&c[l])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:d(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Qn(e){return p(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let er=!0;function tr(e){const t=sr(e),n=e.proxy,r=e.ctx;er=!1,t.beforeCreate&&nr(t.beforeCreate,e,"bc");const{data:o,computed:a,methods:i,watch:l,provide:c,inject:u,created:d,beforeMount:f,mounted:h,beforeUpdate:m,updated:v,activated:y,deactivated:_,beforeDestroy:w,beforeUnmount:k,destroyed:x,unmounted:C,render:S,renderTracked:M,renderTriggered:T,errorCaptured:O,serverPrefetch:L,expose:E,inheritAttrs:R,components:$,directives:A,filters:P}=t;if(u&&function(e,t){p(e)&&(e=lr(e));for(const n in e){const r=e[n];let s;s=b(r)?"default"in r?un(r.from||n,r.default,!0):un(r.from||n):un(r),kt(s)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[n]=s}}(u,r,null),i)for(const s in i){const e=i[s];g(e)&&(r[s]=e.bind(n))}if(o){const t=o.call(n,n);b(t)&&(e.data=ut(t))}if(er=!0,a)for(const p in a){const e=a[p],t=g(e)?e.bind(n,n):g(e.get)?e.get.bind(n,n):s,o=!g(e)&&g(e.set)?e.set.bind(n):s,i=Fs({get:t,set:o});Object.defineProperty(r,p,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(l)for(const s in l)rr(l[s],r,n,s);if(c){const e=g(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{!function(e,t){if(ks){let n=ks.provides;const r=ks.parent&&ks.parent.provides;r===n&&(n=ks.provides=Object.create(r)),n[e]=t}}(t,e[t])})}function F(e,t){p(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(d&&nr(d,e,"c"),F(An,f),F(Pn,h),F(Fn,m),F(jn,v),F(Tn,y),F(On,_),F(Wn,O),F(zn,M),F(Un,T),F(Nn,k),F(Dn,C),F(In,L),p(E))if(E.length){const t=e.exposed||(e.exposed={});E.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===s&&(e.render=S),null!=R&&(e.inheritAttrs=R),$&&(e.components=$),A&&(e.directives=A),L&&_n(e)}function nr(e,t,n){zt(p(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function rr(e,t,n,r){let s=r.includes(".")?mn(n,r):()=>n[r];if(v(e)){const n=t[e];g(n)&&pn(s,n)}else if(g(e))pn(s,e.bind(n));else if(b(e))if(p(e))e.forEach(e=>rr(e,t,n,r));else{const r=g(e.handler)?e.handler.bind(n):t[e.handler];g(r)&&pn(s,r,e)}}function sr(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,i=o.get(t);let l;return i?l=i:s.length||n||r?(l={},s.length&&s.forEach(e=>or(l,e,a,!0)),or(l,t,a)):l=t,b(t)&&o.set(t,l),l}function or(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&or(e,o,n,!0),s&&s.forEach(t=>or(e,t,n,!0));for(const a in t)if(r&&"expose"===a);else{const r=ar[a]||n&&n[a];e[a]=r?r(e[a],t[a]):t[a]}return e}const ar={data:ir,props:dr,emits:dr,methods:ur,computed:ur,beforeCreate:cr,created:cr,beforeMount:cr,mounted:cr,beforeUpdate:cr,updated:cr,beforeDestroy:cr,beforeUnmount:cr,destroyed:cr,unmounted:cr,activated:cr,deactivated:cr,errorCaptured:cr,serverPrefetch:cr,components:ur,directives:ur,watch:function(e,t){if(!e)return t;if(!t)return e;const n=l(Object.create(null),e);for(const r in t)n[r]=cr(e[r],t[r]);return n},provide:ir,inject:function(e,t){return ur(lr(e),lr(t))}};function ir(e,t){return t?e?function(){return l(g(e)?e.call(this,this):e,g(t)?t.call(this,this):t)}:t:e}function lr(e){if(p(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function cr(e,t){return e?[...new Set([].concat(e,t))]:t}function ur(e,t){return e?l(Object.create(null),e,t):t}function dr(e,t){return e?p(e)&&p(t)?[...new Set([...e,...t])]:l(Object.create(null),Qn(e),Qn(null!=t?t:{})):t}function pr(){return{app:null,config:{isNativeTag:o,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 fr=0;function hr(e,t){return function(t,n=null){g(t)||(t=l({},t)),null==n||b(n)||(n=null);const r=pr(),s=new WeakSet,o=[];let a=!1;const i=r.app={_uid:fr++,_component:t,_props:n,_container:null,_context:r,_instance:null,version:Ns,get config(){return r.config},set config(e){},use:(e,...t)=>(s.has(e)||(e&&g(e.install)?(s.add(e),e.install(i,...t)):g(e)&&(s.add(e),e(i,...t))),i),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),i),component:(e,t)=>t?(r.components[e]=t,i):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,i):r.directives[e],mount(s,o,l){if(!a){const o=i._ceVNode||ds(t,n);return o.appContext=r,!0===l?l="svg":!1===l&&(l=void 0),e(o,s,l),a=!0,i._container=s,s.__vue_app__=i,As(o.component)}},onUnmount(e){o.push(e)},unmount(){a&&(zt(o,i._instance,16),e(null,i._container),delete i._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,i),runWithContext(e){const t=mr;mr=i;try{return e()}finally{mr=t}}};return i}}let mr=null;function gr(e,t,...r){if(e.isUnmounted)return;const s=e.vnode.props||n;let o=r;const a=t.startsWith("update:"),i=a&&((e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${O(t)}Modifiers`]||e[`${E(t)}Modifiers`])(s,t.slice(7));let l;i&&(i.trim&&(o=r.map(e=>v(e)?e.trim():e)),i.number&&(o=r.map(j)));let c=s[l=$(t)]||s[l=$(O(t))];!c&&a&&(c=s[l=$(E(t))]),c&&zt(c,e,6,o);const u=s[l+"Once"];if(u){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,zt(u,e,6,o)}}const vr=new WeakMap;function yr(e,t,n=!1){const r=n?vr:t.emitsCache,s=r.get(e);if(void 0!==s)return s;const o=e.emits;let a={},i=!1;if(!g(e)){const r=e=>{const n=yr(e,t,!0);n&&(i=!0,l(a,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return o||i?(p(o)?o.forEach(e=>a[e]=null):l(a,o),b(e)&&r.set(e,a),a):(b(e)&&r.set(e,null),null)}function br(e,t){return!(!e||!a(t))&&(t=t.slice(2).replace(/Once$/,""),d(e,t[0].toLowerCase()+t.slice(1))||d(e,E(t))||d(e,t))}function _r(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:a,attrs:l,emit:c,render:u,renderCache:d,props:p,data:f,setupState:h,ctx:m,inheritAttrs:g}=e,v=on(e);let y,b;try{if(4&n.shapeFlag){const e=s||r,t=e;y=ms(u.call(t,e,d,p,h,f,m)),b=l}else{const e=t;0,y=ms(e.length>1?e(p,{attrs:l,slots:a,emit:c}):e(p,null)),b=t.props?l:wr(l)}}catch(w){Xr.length=0,Wt(w,e,1),y=ds(Gr)}let _=y;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=_;e.length&&7&t&&(o&&e.some(i)&&(b=kr(b,o)),_=ps(_,b,!1,!0))}return n.dirs&&(_=ps(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&yn(_,n.transition),y=_,on(v),y}const wr=e=>{let t;for(const n in e)("class"===n||"style"===n||a(n))&&((t||(t={}))[n]=e[n]);return t},kr=(e,t)=>{const n={};for(const r in e)i(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function xr(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(Cr(t,e,o)&&!br(n,o))return!0}return!1}function Cr(e,t,n){const r=e[n],s=t[n];return"style"===n&&b(r)&&b(s)?!J(r,s):r!==s}const Sr={},Mr=()=>Object.create(Sr),Tr=e=>Object.getPrototypeOf(e)===Sr;function Or(e,t,r,s){const[o,a]=e.propsOptions;let i,l=!1;if(t)for(let n in t){if(S(n))continue;const c=t[n];let u;o&&d(o,u=O(n))?a&&a.includes(u)?(i||(i={}))[u]=c:r[u]=c:br(e.emitsOptions,n)||n in s&&c===s[n]||(s[n]=c,l=!0)}if(a){const t=yt(r),s=i||n;for(let n=0;n<a.length;n++){const i=a[n];r[i]=Lr(o,t,i,s[i],e,!d(s,i))}}return l}function Lr(e,t,n,r,s,o){const a=e[n];if(null!=a){const e=d(a,"default");if(e&&void 0===r){const e=a.default;if(a.type!==Function&&!a.skipFactory&&g(e)){const{propsDefaults:o}=s;if(n in o)r=o[n];else{const a=Ms(s);r=o[n]=e.call(null,t),a()}}else r=e;s.ce&&s.ce._setProp(n,r)}a[0]&&(o&&!e?r=!1:!a[1]||""!==r&&r!==E(n)||(r=!0))}return r}const Er=new WeakMap;function Rr(e,t,s=!1){const o=s?Er:t.propsCache,a=o.get(e);if(a)return a;const i=e.props,c={},u=[];let f=!1;if(!g(e)){const n=e=>{f=!0;const[n,r]=Rr(e,t,!0);l(c,n),r&&u.push(...r)};!s&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}if(!i&&!f)return b(e)&&o.set(e,r),r;if(p(i))for(let r=0;r<i.length;r++){const e=O(i[r]);$r(e)&&(c[e]=n)}else if(i)for(const n in i){const e=O(n);if($r(e)){const t=i[n],r=c[e]=p(t)||g(t)?{type:t}:l({},t),s=r.type;let o=!1,a=!0;if(p(s))for(let e=0;e<s.length;++e){const t=s[e],n=g(t)&&t.name;if("Boolean"===n){o=!0;break}"String"===n&&(a=!1)}else o=g(s)&&"Boolean"===s.name;r[0]=o,r[1]=a,(o||d(r,"default"))&&u.push(e)}}const h=[c,u];return b(e)&&o.set(e,h),h}function $r(e){return"$"!==e[0]&&!S(e)}const Ar=e=>"_"===e||"_ctx"===e||"$stable"===e,Pr=e=>p(e)?e.map(ms):[ms(e)],Fr=(e,t,n)=>{if(t._n)return t;const r=an((...e)=>Pr(t(...e)),n);return r._c=!1,r},jr=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Ar(s))continue;const n=e[s];if(g(n))t[s]=Fr(0,n,r);else if(null!=n){const e=Pr(n);t[s]=()=>e}}},Nr=(e,t)=>{const n=Pr(t);e.slots.default=()=>n},Dr=(e,t,n)=>{for(const r in t)!n&&Ar(r)||(e[r]=t[r])},Ir=function(e,t){t&&t.pendingBranch?p(e)?t.effects.push(...e):t.effects.push(e):(p(n=e)?Vt.push(...n):Yt&&-1===n.id?Yt.splice(qt+1,0,n):1&n.flags||(Vt.push(n),n.flags|=1),Xt());var n};function Ur(e){return function(e){I().__VUE__=!0;const{insert:t,remove:o,patchProp:a,createElement:i,createText:l,createComment:c,setText:u,setElementText:p,parentNode:f,nextSibling:h,setScopeId:m=s,insertStaticContent:g}=e,v=(e,t,n,r=null,s=null,o=null,a=void 0,i=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!is(e,t)&&(r=X(e),q(e,s,o,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Zr:y(e,t,n,r);break;case Gr:b(e,t,n,r);break;case Kr:null==e&&w(t,n,r,a);break;case Jr:j(e,t,n,r,s,o,a,i,l);break;default:1&d?C(e,t,n,r,s,o,a,i,l):6&d?N(e,t,n,r,s,o,a,i,l):(64&d||128&d)&&c.process(e,t,n,r,s,o,a,i,l,ne)}null!=u&&s?xn(u,e&&e.ref,o,t||e,!t):null==u&&e&&null!=e.ref&&xn(e.ref,null,o,e,!0)},y=(e,n,r,s)=>{if(null==e)t(n.el=l(n.children),r,s);else{const t=n.el=e.el;n.children!==e.children&&u(t,n.children)}},b=(e,n,r,s)=>{null==e?t(n.el=c(n.children||""),r,s):n.el=e.el},w=(e,t,n,r)=>{[e.el,e.anchor]=g(e.children,t,n,r,e.el,e.anchor)},k=({el:e,anchor:n},r,s)=>{let o;for(;e&&e!==n;)o=h(e),t(e,r,s),e=o;t(n,r,s)},x=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),o(e),e=n;o(t)},C=(e,t,n,r,s,o,a,i,l)=>{if("svg"===t.type?a="svg":"math"===t.type&&(a="mathml"),null==e)M(t,n,r,s,o,a,i,l);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),R(e,t,s,o,a,i,l)}finally{n&&n._endPatch()}}},M=(e,n,r,s,o,l,c,u)=>{let d,f;const{props:h,shapeFlag:m,transition:g,dirs:v}=e;if(d=e.el=i(e.type,l,h&&h.is,h),8&m?p(d,e.children):16&m&&L(e.children,d,null,s,o,zr(e,l),c,u),v&&cn(e,null,s,"created"),T(d,e,e.scopeId,c,s),h){for(const e in h)"value"===e||S(e)||a(d,e,null,h[e],l,s);"value"in h&&a(d,"value",null,h.value,l),(f=h.onVnodeBeforeMount)&&bs(f,s,e)}v&&cn(e,null,s,"beforeMount");const y=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(o,g);y&&g.beforeEnter(d),t(d,n,r),((f=h&&h.onVnodeMounted)||y||v)&&Ir(()=>{try{f&&bs(f,s,e),y&&g.enter(d),v&&cn(e,null,s,"mounted")}finally{}},o)},T=(e,t,n,r,s)=>{if(n&&m(e,n),r)for(let o=0;o<r.length;o++)m(e,r[o]);if(s){let n=s.subTree;if(t===n||qr(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=s.vnode;T(e,t,t.scopeId,t.slotScopeIds,s.parent)}}},L=(e,t,n,r,s,o,a,i,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=i?gs(e[c]):ms(e[c]);v(null,l,t,n,r,s,o,a,i)}},R=(e,t,r,s,o,i,l)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=16&e.patchFlag;const h=e.props||n,m=t.props||n;let g;if(r&&Wr(r,!1),(g=m.onVnodeBeforeUpdate)&&bs(g,r,t,e),f&&cn(t,e,r,"beforeUpdate"),r&&Wr(r,!0),(h.innerHTML&&null==m.innerHTML||h.textContent&&null==m.textContent)&&p(c,""),d?$(e.dynamicChildren,d,c,r,s,zr(t,o),i):l||H(e,t,c,null,r,s,zr(t,o),i,!1),u>0){if(16&u)A(c,h,m,r,o);else if(2&u&&h.class!==m.class&&a(c,"class",null,m.class,o),4&u&&a(c,"style",h.style,m.style,o),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t],s=h[n],i=m[n];i===s&&"value"!==n||a(c,n,s,i,o,r)}}1&u&&e.children!==t.children&&p(c,t.children)}else l||null!=d||A(c,h,m,r,o);((g=m.onVnodeUpdated)||f)&&Ir(()=>{g&&bs(g,r,t,e),f&&cn(t,e,r,"updated")},s)},$=(e,t,n,r,s,o,a)=>{for(let i=0;i<t.length;i++){const l=e[i],c=t[i],u=l.el&&(l.type===Jr||!is(l,c)||198&l.shapeFlag)?f(l.el):n;v(l,c,u,null,r,s,o,a,!0)}},A=(e,t,r,s,o)=>{if(t!==r){if(t!==n)for(const n in t)S(n)||n in r||a(e,n,t[n],null,o,s);for(const n in r){if(S(n))continue;const i=r[n],l=t[n];i!==l&&"value"!==n&&a(e,n,l,i,o,s)}"value"in r&&a(e,"value",t.value,r.value,o)}},j=(e,n,r,s,o,a,i,c,u)=>{const d=n.el=e?e.el:l(""),p=n.anchor=e?e.anchor:l("");let{patchFlag:f,dynamicChildren:h,slotScopeIds:m}=n;m&&(c=c?c.concat(m):m),null==e?(t(d,r,s),t(p,r,s),L(n.children||[],r,p,o,a,i,c,u)):f>0&&64&f&&h&&e.dynamicChildren&&e.dynamicChildren.length===h.length?($(e.dynamicChildren,h,r,o,a,i,c),(null!=n.key||o&&n===o.subTree)&&Hr(e,n,!0)):H(e,n,r,p,o,a,i,c,u)},N=(e,t,n,r,s,o,a,i,l)=>{t.slotScopeIds=i,null==e?512&t.shapeFlag?s.ctx.activate(t,n,r,a,l):D(t,n,r,s,o,a,l):U(e,t,l)},D=(e,t,r,s,o,a,i)=>{const l=e.component=function(e,t,r){const s=e.type,o=(t?t.appContext:e.appContext)||_s,a={uid:ws++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new te(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Rr(s,o),emitsOptions:yr(s,o),emit:null,emitted:null,propsDefaults:n,inheritAttrs:s.inheritAttrs,ctx:n,data:n,props:n,attrs:n,slots:n,refs:n,setupState:n,setupContext:null,suspense:r,suspenseId:r?r.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};a.ctx={_:a},a.root=t?t.root:a,a.emit=gr.bind(null,a),e.ce&&e.ce(a);return a}(e,s,o);if(Mn(e)&&(l.ctx.renderer=ne),function(e,t=!1,n=!1){t&&Ss(t);const{props:r,children:s}=e.vnode,o=Os(e);(function(e,t,n,r=!1){const s={},o=Mr();e.propsDefaults=Object.create(null),Or(e,t,s,o);for(const a in e.propsOptions[0])a in s||(s[a]=void 0);n?e.props=r?s:dt(s):e.type.props?e.props=s:e.props=o,e.attrs=o})(e,r,o,t),((e,t,n)=>{const r=e.slots=Mr();if(32&e.vnode.shapeFlag){const e=t._;e?(Dr(r,t,n),n&&F(r,"_",e,!0)):jr(t,r)}else t&&Nr(e,t)})(e,s,n||t);const a=o?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Xn);const{setup:r}=n;if(r){_e();const n=e.setupContext=r.length>1?function(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,$s),slots:e.slots,emit:e.emit,expose:t}}(e):null,s=Ms(e),o=Ut(r,e,0,[e.props,n]),a=_(o);if(we(),s(),!a&&!e.sp||Sn(e)||_n(e),a){if(o.then(Ts,Ts),t)return o.then(t=>{Es(e,t)}).catch(t=>{Wt(t,e,0)});e.asyncDep=o}else Es(e,o)}else Rs(e)}(e,t):void 0;t&&Ss(!1)}(l,!1,i),l.asyncDep){if(o&&o.registerDep(l,z,i),!e.el){const n=l.subTree=ds(Gr);b(null,n,t,r),e.placeholder=n.el}}else z(l,e,t,r,o,a,i)},U=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:s,component:o}=e,{props:a,children:i,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!s&&!i||i&&i.$stable)||r!==a&&(r?!a||xr(r,a,c):!!a);if(1024&l)return!0;if(16&l)return r?xr(r,a,c):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(Cr(a,r,n)&&!br(c,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void W(r,t,n);r.next=t,r.update()}else t.el=e.el,r.vnode=t},z=(e,t,n,r,s,o,a)=>{const i=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:i,vnode:l}=e;{const n=Br(e);if(n)return t&&(t.el=l.el,W(e,t,a)),void n.asyncDep.then(()=>{Ir(()=>{e.isUnmounted||c()},s)})}let u,d=t;Wr(e,!1),t?(t.el=l.el,W(e,t,a)):t=l,n&&P(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&bs(u,i,t,l),Wr(e,!0);const p=_r(e),h=e.subTree;e.subTree=p,v(h,p,f(h.el),X(h),e,s,o),t.el=p.el,null===d&&function({vnode:e,parent:t,suspense:n},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n!==e)break;(e=t.vnode).el=r,t=t.parent}n&&n.activeBranch===e&&(n.vnode.el=r)}(e,p.el),r&&Ir(r,s),(u=t.props&&t.props.onVnodeUpdated)&&Ir(()=>bs(u,i,t,l),s)}else{let a;const{el:i,props:l}=t,{bm:c,m:u,parent:d,root:p,type:f}=e,h=Sn(t);Wr(e,!1),c&&P(c),!h&&(a=l&&l.onVnodeBeforeMount)&&bs(a,d,t),Wr(e,!0);{p.ce&&p.ce._hasShadowRoot()&&p.ce._injectChildStyle(f,e.parent?e.parent.type:void 0);const a=e.subTree=_r(e);v(null,a,n,r,e,s,o),t.el=a.el}if(u&&Ir(u,s),!h&&(a=l&&l.onVnodeMounted)){const e=t;Ir(()=>bs(a,d,e),s)}(256&t.shapeFlag||d&&Sn(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&Ir(e.a,s),e.isMounted=!0,t=n=r=null}};e.scope.on();const l=e.effect=new oe(i);e.scope.off();const c=e.update=l.run.bind(l),u=e.job=l.runIfDirty.bind(l);u.i=e,u.id=e.uid,l.scheduler=()=>Kt(u),Wr(e,!0),c()},W=(e,t,r)=>{t.component=e;const s=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:a}}=e,i=yt(s),[l]=e.propsOptions;let c=!1;if(!(r||a>0)||16&a){let r;Or(e,t,s,o)&&(c=!0);for(const o in i)t&&(d(t,o)||(r=E(o))!==o&&d(t,r))||(l?!n||void 0===n[o]&&void 0===n[r]||(s[o]=Lr(l,i,o,void 0,e,!0)):delete s[o]);if(o!==i)for(const e in o)t&&d(t,e)||(delete o[e],c=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let a=n[r];if(br(e.emitsOptions,a))continue;const u=t[a];if(l)if(d(o,a))u!==o[a]&&(o[a]=u,c=!0);else{const t=O(a);s[t]=Lr(l,i,t,u,e,!1)}else u!==o[a]&&(o[a]=u,c=!0)}}c&&$e(e.attrs,"set","")}(e,t.props,s,r),((e,t,r)=>{const{vnode:s,slots:o}=e;let a=!0,i=n;if(32&s.shapeFlag){const e=t._;e?r&&1===e?a=!1:Dr(o,t,r):(a=!t.$stable,jr(t,o)),i=t}else t&&(Nr(e,t),i={default:1});if(a)for(const n in o)Ar(n)||null!=i[n]||delete o[n]})(e,t.children,r),_e(),Qt(e),we()},H=(e,t,n,r,s,o,a,i,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:h}=t;if(f>0){if(128&f)return void V(c,d,n,r,s,o,a,i,l);if(256&f)return void B(c,d,n,r,s,o,a,i,l)}8&h?(16&u&&K(c,s,o),d!==c&&p(n,d)):16&u?16&h?V(c,d,n,r,s,o,a,i,l):K(c,s,o,!0):(8&u&&p(n,""),16&h&&L(d,n,r,s,o,a,i,l))},B=(e,t,n,s,o,a,i,l,c)=>{t=t||r;const u=(e=e||r).length,d=t.length,p=Math.min(u,d);let f;for(f=0;f<p;f++){const r=t[f]=c?gs(t[f]):ms(t[f]);v(e[f],r,n,null,o,a,i,l,c)}u>d?K(e,o,a,!0,!1,p):L(t,n,s,o,a,i,l,c,p)},V=(e,t,n,s,o,a,i,l,c)=>{let u=0;const d=t.length;let p=e.length-1,f=d-1;for(;u<=p&&u<=f;){const r=e[u],s=t[u]=c?gs(t[u]):ms(t[u]);if(!is(r,s))break;v(r,s,n,null,o,a,i,l,c),u++}for(;u<=p&&u<=f;){const r=e[p],s=t[f]=c?gs(t[f]):ms(t[f]);if(!is(r,s))break;v(r,s,n,null,o,a,i,l,c),p--,f--}if(u>p){if(u<=f){const e=f+1,r=e<d?t[e].el:s;for(;u<=f;)v(null,t[u]=c?gs(t[u]):ms(t[u]),n,r,o,a,i,l,c),u++}}else if(u>f)for(;u<=p;)q(e[u],o,a,!0),u++;else{const h=u,m=u,g=new Map;for(u=m;u<=f;u++){const e=t[u]=c?gs(t[u]):ms(t[u]);null!=e.key&&g.set(e.key,u)}let y,b=0;const _=f-m+1;let w=!1,k=0;const x=new Array(_);for(u=0;u<_;u++)x[u]=0;for(u=h;u<=p;u++){const r=e[u];if(b>=_){q(r,o,a,!0);continue}let s;if(null!=r.key)s=g.get(r.key);else for(y=m;y<=f;y++)if(0===x[y-m]&&is(r,t[y])){s=y;break}void 0===s?q(r,o,a,!0):(x[s-m]=u+1,s>=k?k=s:w=!0,v(r,t[s],n,null,o,a,i,l,c),b++)}const C=w?function(e){const t=e.slice(),n=[0];let r,s,o,a,i;const l=e.length;for(r=0;r<l;r++){const l=e[r];if(0!==l){if(s=n[n.length-1],e[s]<l){t[r]=s,n.push(r);continue}for(o=0,a=n.length-1;o<a;)i=o+a>>1,e[n[i]]<l?o=i+1:a=i;l<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}o=n.length,a=n[o-1];for(;o-- >0;)n[o]=a,a=t[a];return n}(x):r;for(y=C.length-1,u=_-1;u>=0;u--){const e=m+u,r=t[e],p=t[e+1],f=e+1<d?p.el||Yr(p):s;0===x[u]?v(null,r,n,f,o,a,i,l,c):w&&(y<0||u!==C[y]?Y(r,n,f,2):y--)}}},Y=(e,n,r,s,a=null)=>{const{el:i,type:l,transition:c,children:u,shapeFlag:d}=e;if(6&d)return void Y(e.component.subTree,n,r,s);if(128&d)return void e.suspense.move(n,r,s);if(64&d)return void l.move(e,n,r,ne);if(l===Jr){t(i,n,r);for(let e=0;e<u.length;e++)Y(u[e],n,r,s);return void t(e.anchor,n,r)}if(l===Kr)return void k(e,n,r);if(2!==s&&1&d&&c)if(0===s)c.persisted&&!i[vn]?t(i,n,r):(c.beforeEnter(i),t(i,n,r),Ir(()=>c.enter(i),a));else{const{leave:s,delayLeave:a,afterLeave:l}=c,u=()=>{e.ctx.isUnmounted?o(i):t(i,n,r)},d=()=>{const e=i._isLeaving||!!i[vn];i._isLeaving&&i[vn](!0),c.persisted&&!e?u():s(i,()=>{u(),l&&l()})};a?a(i,u,d):d()}else t(i,n,r)},q=(e,t,n,r=!1,s=!1)=>{const{type:o,props:a,ref:i,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p,cacheIndex:f,memo:h}=e;if(-2===d&&(s=!1),null!=i&&(_e(),xn(i,null,n,e,!0),we()),null!=f&&(t.renderCache[f]=void 0),256&u)return void t.ctx.deactivate(e);const m=1&u&&p,g=!Sn(e);let v;if(g&&(v=a&&a.onVnodeBeforeUnmount)&&bs(v,t,e),6&u)G(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);m&&cn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,ne,r):c&&!c.hasOnce&&(o!==Jr||d>0&&64&d)?K(c,t,n,!1,!0):(o===Jr&&384&d||!s&&16&u)&&K(l,t,n),r&&J(e)}const y=null!=h&&null==f;(g&&(v=a&&a.onVnodeUnmounted)||m||y)&&Ir(()=>{v&&bs(v,t,e),m&&cn(e,null,t,"unmounted"),y&&(e.el=null)},n)},J=e=>{const{type:t,el:n,anchor:r,transition:s}=e;if(t===Jr)return void Z(n,r);if(t===Kr)return void x(e);const a=()=>{o(n),s&&!s.persisted&&s.afterLeave&&s.afterLeave()};if(1&e.shapeFlag&&s&&!s.persisted){const{leave:t,delayLeave:r}=s,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},Z=(e,t)=>{let n;for(;e!==t;)n=h(e),o(e),e=n;o(t)},G=(e,t,n)=>{const{bum:r,scope:s,job:o,subTree:a,um:i,m:l,a:c}=e;Vr(l),Vr(c),r&&P(r),s.stop(),o&&(o.flags|=8,q(a,e,t,n)),i&&Ir(i,t),Ir(()=>{e.isUnmounted=!0},t)},K=(e,t,n,r=!1,s=!1,o=0)=>{for(let a=o;a<e.length;a++)q(e[a],t,n,r,s)},X=e=>{if(6&e.shapeFlag)return X(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=h(e.anchor||e.el),n=t&&t[gn];return n?h(n):t};let Q=!1;const ee=(e,t,n)=>{let r;null==e?t._vnode&&(q(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Q||(Q=!0,Qt(r),en(),Q=!1)},ne={p:v,um:q,m:Y,r:J,mt:D,mc:L,pc:H,pbc:$,n:X,o:e};let re;return{render:ee,hydrate:re,createApp:hr(ee)}}(e)}function zr({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Wr({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Hr(e,t,n=!1){const r=e.children,s=t.children;if(p(r)&&p(s))for(let o=0;o<r.length;o++){const e=r[o];let t=s[o];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=s[o]=gs(s[o]),t.el=e.el),n||-2===t.patchFlag||Hr(e,t)),t.type===Zr&&(-1===t.patchFlag&&(t=s[o]=gs(t)),t.el=e.el),t.type!==Gr||t.el||(t.el=e.el)}}function Br(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Br(t)}function Vr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Yr(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Yr(t.subTree):null}const qr=e=>e.__isSuspense;const Jr=Symbol.for("v-fgt"),Zr=Symbol.for("v-txt"),Gr=Symbol.for("v-cmt"),Kr=Symbol.for("v-stc"),Xr=[];let Qr=null;function es(e=!1){Xr.push(Qr=e?null:[])}let ts=1;function ns(e,t=!1){ts+=e,e<0&&Qr&&t&&(Qr.hasOnce=!0)}function rs(e){return e.dynamicChildren=ts>0?Qr||r:null,Xr.pop(),Qr=Xr[Xr.length-1]||null,ts>0&&Qr&&Qr.push(e),e}function ss(e,t,n,r,s,o){return rs(us(e,t,n,r,s,o,!0))}function os(e,t,n,r,s){return rs(ds(e,t,n,r,s,!0))}function as(e){return!!e&&!0===e.__v_isVNode}function is(e,t){return e.type===t.type&&e.key===t.key}const ls=({key:e})=>null!=e?e:null,cs=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?v(e)||kt(e)||g(e)?{i:rn,r:e,k:t,f:!!n}:e:null);function us(e,t=null,n=null,r=0,s=null,o=(e===Jr?0:1),a=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ls(t),ref:t&&cs(t),scopeId:sn,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:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:rn};return i?(vs(l,n),128&o&&e.normalize(l)):n&&(l.shapeFlag|=v(n)?8:16),ts>0&&!a&&Qr&&(l.patchFlag>0||6&o)&&32!==l.patchFlag&&Qr.push(l),l}const ds=function(e,t=null,n=null,r=0,s=null,o=!1){e&&e!==Bn||(e=Gr);if(as(e)){const r=ps(e,t,!0);return n&&vs(r,n),ts>0&&!o&&Qr&&(6&r.shapeFlag?Qr[Qr.indexOf(e)]=r:Qr.push(r)),r.patchFlag=-2,r}a=e,g(a)&&"__vccOpts"in a&&(e=e.__vccOpts);var a;if(t){t=function(e){return e?vt(e)||Tr(e)?l({},e):e:null}(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=V(e)),b(n)&&(vt(n)&&!p(n)&&(n=l({},n)),t.style=U(n))}const i=v(e)?1:qr(e)?128:(e=>e.__isTeleport)(e)?64:b(e)?4:g(e)?2:0;return us(e,t,n,r,s,i,o,!0)};function ps(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:a,children:i,transition:l}=e,c=t?ys(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ls(c),ref:t&&t.ref?n&&o?p(o)?o.concat(cs(t)):[o,cs(t)]:cs(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Jr?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ps(e.ssContent),ssFallback:e.ssFallback&&ps(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&yn(u,l.clone(u)),u}function fs(e=" ",t=0){return ds(Zr,null,e,t)}function hs(e="",t=!1){return t?(es(),os(Gr,null,e)):ds(Gr,null,e)}function ms(e){return null==e||"boolean"==typeof e?ds(Gr):p(e)?ds(Jr,null,e.slice()):as(e)?gs(e):ds(Zr,null,String(e))}function gs(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:ps(e)}function vs(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(p(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),vs(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Tr(t)?3===r&&rn&&(1===rn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=rn}}else g(t)?(t={default:t,_ctx:rn},n=32):(t=String(t),64&r?(n=16,t=[fs(t)]):n=8);e.children=t,e.shapeFlag|=n}function ys(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=V([t.class,r.class]));else if("style"===e)t.style=U([t.style,r.style]);else if(a(e)){const n=t[e],s=r[e];!s||n===s||p(n)&&n.includes(s)?null!=s||null!=n||i(e)||(t[e]=s):t[e]=n?[].concat(n,s):s}else""!==e&&(t[e]=r[e])}return t}function bs(e,t,n,r=null){zt(e,t,7,[n,r])}const _s=pr();let ws=0;let ks=null;const xs=()=>ks||rn;let Cs,Ss;{const e=I(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Cs=t("__VUE_INSTANCE_SETTERS__",e=>ks=e),Ss=t("__VUE_SSR_SETTERS__",e=>Ls=e)}const Ms=e=>{const t=ks;return Cs(e),e.scope.on(),()=>{e.scope.off(),Cs(t)}},Ts=()=>{ks&&ks.scope.off(),Cs(null)};function Os(e){return 4&e.vnode.shapeFlag}let Ls=!1;function Es(e,t,n){g(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=Lt(t)),Rs(e)}function Rs(e,t,n){const r=e.type;e.render||(e.render=r.render||s);{const t=Ms(e);_e();try{tr(e)}finally{we(),t()}}}const $s={get:(e,t)=>(Re(e,0,""),e[t])};function As(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Lt(bt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Gn?Gn[n](e):void 0,has:(e,t)=>t in e||t in Gn})):e.proxy}function Ps(e,t=!0){return g(e)?e.displayName||e.name:e.name||t&&e.__name}const Fs=(e,t)=>Pt(e,0,Ls);function js(e,t,n){try{ns(-1);const r=arguments.length;return 2===r?b(t)&&!p(t)?as(t)?ds(e,null,[t]):ds(e,t):ds(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&as(n)&&(n=[n]),ds(e,t,n))}finally{ns(1)}}const Ns="3.5.38";
|
|
17
|
+
**/function Ut(e,t,n,s){try{return s?e(...s):e()}catch(r){Wt(r,t,n)}}function zt(e,t,n,s){if(g(e)){const r=Ut(e,t,n,s);return r&&_(r)&&r.catch(e=>{Wt(e,t,n)}),r}if(f(e)){const r=[];for(let o=0;o<e.length;o++)r.push(zt(e[o],t,n,s));return r}}function Wt(e,t,s,r=!0){t&&t.vnode;const{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||n;if(t){let n=t.parent;const r=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${s}`;for(;n;){const t=n.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,a))return;n=n.parent}if(o)return _e(),Ut(o,null,10,[e,r,a]),void we()}!function(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}(e,0,0,r,a)}const Ht=[];let Bt=-1;const Vt=[];let qt=null,Yt=0;const Jt=Promise.resolve();let Zt=null;function Kt(e){const t=Zt||Jt;return e?t.then(this?e.bind(this):e):t}function Gt(e){if(!(1&e.flags)){const t=tn(e),n=Ht[Ht.length-1];!n||!(2&e.flags)&&t>=tn(n)?Ht.push(e):Ht.splice(function(e){let t=Bt+1,n=Ht.length;for(;t<n;){const s=t+n>>>1,r=Ht[s],o=tn(r);o<e||o===e&&2&r.flags?t=s+1:n=s}return t}(t),0,e),e.flags|=1,Xt()}}function Xt(){Zt||(Zt=Jt.then(nn))}function Qt(e,t,n=Bt+1){for(;n<Ht.length;n++){const t=Ht[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;Ht.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function en(e){if(Vt.length){const e=[...new Set(Vt)].sort((e,t)=>tn(e)-tn(t));if(Vt.length=0,qt)return void qt.push(...e);for(qt=e,Yt=0;Yt<qt.length;Yt++){const e=qt[Yt];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}qt=null,Yt=0}}const tn=e=>null==e.id?2&e.flags?-1:1/0:e.id;function nn(e){try{for(Bt=0;Bt<Ht.length;Bt++){const e=Ht[Bt];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),Ut(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;Bt<Ht.length;Bt++){const e=Ht[Bt];e&&(e.flags&=-2)}Bt=-1,Ht.length=0,en(),Zt=null,(Ht.length||Vt.length)&&nn()}}let sn=null,rn=null;function on(e){const t=sn;return sn=e,rn=e&&e.type.__scopeId||null,t}function an(e,t=sn,n){if(!t)return e;if(e._n)return e;const s=(...n)=>{s._d&&nr(-1);const r=on(t);let o;try{o=e(...n)}finally{on(r),s._d&&nr(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function ln(e,t){if(null===sn)return e;const s=$r(sn),r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[e,a,i,l=n]=t[o];e&&(g(e)&&(e={mounted:e,updated:e}),e.deep&&Dt(a),r.push({dir:e,instance:s,value:a,oldValue:void 0,arg:i,modifiers:l}))}return e}function cn(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let a=0;a<r.length;a++){const i=r[a];o&&(i.oldValue=o[a].value);let l=i.dir[s];l&&(_e(),zt(l,n,8,[e.el,i,e,t]),we())}}function un(e,t,n=!1){const s=xr();if(s||ms){let r=ms?ms._context.provides:s?null==s.parent||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&&g(t)?t.call(s&&s.proxy):t}}const dn=Symbol.for("v-scx");function fn(e,t,n){return pn(e,t,n)}function pn(e,t,s=n){const{immediate:o,deep:a,flush:i,once:c}=s,u=l({},s),d=t&&o||!t&&"post"!==i;let f;if(Lr)if("sync"===i){const e=un(dn);f=e.__watcherHandles||(e.__watcherHandles=[])}else if(!d){const e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}const p=kr;u.call=(e,t,n)=>zt(e,p,t,n);let h=!1;"post"===i?u.scheduler=e=>{Ds(e,p&&p.suspense)}:"sync"!==i&&(h=!0,u.scheduler=(e,t)=>{t?e():Gt(e)}),u.augmentJob=e=>{t&&(e.flags|=4),h&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};const m=Nt(e,t,u);return Lr&&(f?f.push(m):d&&m()),m}function hn(e,t,n){const s=this.proxy,r=v(e)?e.includes(".")?mn(s,e):()=>s[e]:e.bind(s,s);let o;g(t)?o=t:(o=t.handler,n=t);const a=Tr(this),i=pn(r,o.bind(s),n);return a(),i}function mn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}const gn=Symbol("_vte"),vn=Symbol("_leaveCb");function yn(e,t){6&e.shapeFlag&&e.component?(e.transition=t,yn(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function bn(e,t){return g(e)?(()=>l({name:e.name},t,{setup:e}))():e}function _n(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function wn(e,t){let n;return!(!(n=Object.getOwnPropertyDescriptor(e,t))||n.configurable)}const kn=new WeakMap;function xn(e,t,s,r,a=!1){if(f(e))return void e.forEach((e,n)=>xn(e,t&&(f(t)?t[n]:t),s,r,a));if(Sn(r)&&!a)return void(512&r.shapeFlag&&r.type.__asyncResolved&&r.component.subTree.component&&xn(e,t,s,r.component.subTree));const i=4&r.shapeFlag?$r(r.component):r.el,l=a?null:i,{i:u,r:p}=e,h=t&&t.r,m=u.refs===n?u.refs={}:u.refs,y=u.setupState,b=yt(y),_=y===n?o:e=>!wn(m,e)&&d(b,e),w=(e,t)=>!t||!wn(m,t);if(null!=h&&h!==p)if(Cn(t),v(h))m[h]=null,_(h)&&(y[h]=null);else if(kt(h)){const e=t;w(0,e.k)&&(h.value=null),e.k&&(m[e.k]=null)}if(g(p))Ut(p,u,12,[l,m]);else{const t=v(p),n=kt(p);if(t||n){const r=()=>{if(e.f){const n=t?_(p)?y[p]:m[p]:w()||!e.k?p.value:m[e.k];if(a)f(n)&&c(n,i);else if(f(n))n.includes(i)||n.push(i);else if(t)m[p]=[i],_(p)&&(y[p]=m[p]);else{const t=[i];w(0,e.k)&&(p.value=t),e.k&&(m[e.k]=t)}}else t?(m[p]=l,_(p)&&(y[p]=l)):n&&(w(0,e.k)&&(p.value=l),e.k&&(m[e.k]=l))};if(l){const t=()=>{r(),kn.delete(e)};t.id=-1,kn.set(e,t),Ds(t,s)}else Cn(e),r()}}}function Cn(e){const t=kn.get(e);t&&(t.flags|=8,kn.delete(e))}D().requestIdleCallback,D().cancelIdleCallback;const Sn=e=>!!e.type.__asyncLoader,Tn=e=>e.type.__isKeepAlive;function Mn(e,t){Ln(e,"a",t)}function On(e,t){Ln(e,"da",t)}function Ln(e,t,n=kr){const s=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Rn(t,s,n),n){let e=n.parent;for(;e&&e.parent;)Tn(e.parent.vnode)&&En(s,t,n,e),e=e.parent}}function En(e,t,n,s){const r=Rn(t,e,s,!0);Nn(()=>{c(s[t],r)},n)}function Rn(e,t,n=kr,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...s)=>{_e();const r=Tr(n),o=zt(t,n,e,s);return r(),we(),o});return s?r.unshift(o):r.push(o),o}}const An=e=>(t,n=kr)=>{Lr&&"sp"!==e||Rn(e,(...e)=>t(...e),n)},$n=An("bm"),Pn=An("m"),In=An("bu"),Fn=An("u"),jn=An("bum"),Nn=An("um"),Dn=An("sp"),Un=An("rtg"),zn=An("rtc");function Wn(e,t=kr){Rn("ec",e,t)}function Hn(e,t){return function(e,t,n=!0,s=!1){const r=sn||kr;if(r){const n=r.type;{const e=Pr(n,!1);if(e&&(e===t||e===O(t)||e===R(O(t))))return n}const o=Vn(r[e]||n[e],t)||Vn(r.appContext[e],t);return!o&&s?n:o}}("components",e,!0,t)||e}const Bn=Symbol.for("v-ndc");function Vn(e,t){return e&&(e[t]||e[O(t)]||e[R(O(t))])}function qn(e,t,n,s){let r;const o=n,a=f(e);if(a||v(e)){let n=!1,s=!1;a&&ht(e)&&(n=!gt(e),s=mt(e),e=Pe(e)),r=new Array(e.length);for(let a=0,i=e.length;a<i;a++)r[a]=t(n?s?wt(_t(e[a])):_t(e[a]):e[a],a,void 0,o)}else if("number"==typeof e){r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,o)}else if(b(e))if(e[Symbol.iterator])r=Array.from(e,(e,n)=>t(e,n,void 0,o));else{const n=Object.keys(e);r=new Array(n.length);for(let s=0,a=n.length;s<a;s++){const a=n[s];r[s]=t(e[a],a,s,o)}}else r=[];return r}function Yn(e,t,n={},s,r){if(sn.ce||sn.parent&&Sn(sn.parent)&&sn.parent.ce){const e=Object.keys(n).length>0;return er(),or(Js,null,[dr("slot",n,s)],e?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),er();const a=o&&Jn(o(n)),i=n.key||a&&a.key,l=or(Js,{key:(i&&!y(i)?i:`_${t}`)+""},a||[],a&&1===e._?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function Jn(e){return e.some(e=>!ar(e)||e.type!==Ks&&!(e.type===Js&&!Jn(e.children)))?e:null}const Zn=e=>e?Or(e)?$r(e):Zn(e.parent):null,Kn=l(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Zn(e.parent),$root:e=>Zn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>rs(e),$forceUpdate:e=>e.f||(e.f=()=>{Gt(e.update)}),$nextTick:e=>e.n||(e.n=Kt.bind(e.proxy)),$watch:e=>hn.bind(e)}),Gn=(e,t)=>e!==n&&!e.__isScriptSetup&&d(e,t),Xn={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:s,setupState:r,data:o,props:a,accessCache:i,type:l,appContext:c}=e;if("$"!==t[0]){const e=i[t];if(void 0!==e)switch(e){case 1:return r[t];case 2:return o[t];case 4:return s[t];case 3:return a[t]}else{if(Gn(r,t))return i[t]=1,r[t];if(o!==n&&d(o,t))return i[t]=2,o[t];if(d(a,t))return i[t]=3,a[t];if(s!==n&&d(s,t))return i[t]=4,s[t];es&&(i[t]=0)}}const u=Kn[t];let f,p;return u?("$attrs"===t&&Re(e.attrs,0,""),u(e)):(f=l.__cssModules)&&(f=f[t])?f:s!==n&&d(s,t)?(i[t]=4,s[t]):(p=c.config.globalProperties,d(p,t)?p[t]:void 0)},set({_:e},t,s){const{data:r,setupState:o,ctx:a}=e;return Gn(o,t)?(o[t]=s,!0):r!==n&&d(r,t)?(r[t]=s,!0):!d(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=s,!0))},has({_:{data:e,setupState:t,accessCache:s,ctx:r,appContext:o,props:a,type:i}},l){let c;return!!(s[l]||e!==n&&"$"!==l[0]&&d(e,l)||Gn(t,l)||d(a,l)||d(r,l)||d(Kn,l)||d(o.config.globalProperties,l)||(c=i.__cssModules)&&c[l])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:d(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Qn(e){return f(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let es=!0;function ts(e){const t=rs(e),n=e.proxy,s=e.ctx;es=!1,t.beforeCreate&&ns(t.beforeCreate,e,"bc");const{data:o,computed:a,methods:i,watch:l,provide:c,inject:u,created:d,beforeMount:p,mounted:h,beforeUpdate:m,updated:v,activated:y,deactivated:_,beforeDestroy:w,beforeUnmount:k,destroyed:x,unmounted:C,render:S,renderTracked:T,renderTriggered:M,errorCaptured:O,serverPrefetch:L,expose:E,inheritAttrs:R,components:A,directives:$,filters:P}=t;if(u&&function(e,t){f(e)&&(e=ls(e));for(const n in e){const s=e[n];let r;r=b(s)?"default"in s?un(s.from||n,s.default,!0):un(s.from||n):un(s),kt(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,s,null),i)for(const r in i){const e=i[r];g(e)&&(s[r]=e.bind(n))}if(o){const t=o.call(n,n);b(t)&&(e.data=ut(t))}if(es=!0,a)for(const f in a){const e=a[f],t=g(e)?e.bind(n,n):g(e.get)?e.get.bind(n,n):r,o=!g(e)&&g(e.set)?e.set.bind(n):r,i=Ir({get:t,set:o});Object.defineProperty(s,f,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(l)for(const r in l)ss(l[r],s,n,r);if(c){const e=g(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{!function(e,t){if(kr){let n=kr.provides;const s=kr.parent&&kr.parent.provides;s===n&&(n=kr.provides=Object.create(s)),n[e]=t}}(t,e[t])})}function I(e,t){f(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(d&&ns(d,e,"c"),I($n,p),I(Pn,h),I(In,m),I(Fn,v),I(Mn,y),I(On,_),I(Wn,O),I(zn,T),I(Un,M),I(jn,k),I(Nn,C),I(Dn,L),f(E))if(E.length){const t=e.exposed||(e.exposed={});E.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===r&&(e.render=S),null!=R&&(e.inheritAttrs=R),A&&(e.components=A),$&&(e.directives=$),L&&_n(e)}function ns(e,t,n){zt(f(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function ss(e,t,n,s){let r=s.includes(".")?mn(n,s):()=>n[s];if(v(e)){const n=t[e];g(n)&&fn(r,n)}else if(g(e))fn(r,e.bind(n));else if(b(e))if(f(e))e.forEach(e=>ss(e,t,n,s));else{const s=g(e.handler)?e.handler.bind(n):t[e.handler];g(s)&&fn(r,s,e)}}function rs(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,i=o.get(t);let l;return i?l=i:r.length||n||s?(l={},r.length&&r.forEach(e=>os(l,e,a,!0)),os(l,t,a)):l=t,b(t)&&o.set(t,l),l}function os(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&os(e,o,n,!0),r&&r.forEach(t=>os(e,t,n,!0));for(const a in t)if(s&&"expose"===a);else{const s=as[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const as={data:is,props:ds,emits:ds,methods:us,computed:us,beforeCreate:cs,created:cs,beforeMount:cs,mounted:cs,beforeUpdate:cs,updated:cs,beforeDestroy:cs,beforeUnmount:cs,destroyed:cs,unmounted:cs,activated:cs,deactivated:cs,errorCaptured:cs,serverPrefetch:cs,components:us,directives:us,watch:function(e,t){if(!e)return t;if(!t)return e;const n=l(Object.create(null),e);for(const s in t)n[s]=cs(e[s],t[s]);return n},provide:is,inject:function(e,t){return us(ls(e),ls(t))}};function is(e,t){return t?e?function(){return l(g(e)?e.call(this,this):e,g(t)?t.call(this,this):t)}:t:e}function ls(e){if(f(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function cs(e,t){return e?[...new Set([].concat(e,t))]:t}function us(e,t){return e?l(Object.create(null),e,t):t}function ds(e,t){return e?f(e)&&f(t)?[...new Set([...e,...t])]:l(Object.create(null),Qn(e),Qn(null!=t?t:{})):t}function fs(){return{app:null,config:{isNativeTag:o,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 ps=0;function hs(e,t){return function(t,n=null){g(t)||(t=l({},t)),null==n||b(n)||(n=null);const s=fs(),r=new WeakSet,o=[];let a=!1;const i=s.app={_uid:ps++,_component:t,_props:n,_container:null,_context:s,_instance:null,version:jr,get config(){return s.config},set config(e){},use:(e,...t)=>(r.has(e)||(e&&g(e.install)?(r.add(e),e.install(i,...t)):g(e)&&(r.add(e),e(i,...t))),i),mixin:e=>(s.mixins.includes(e)||s.mixins.push(e),i),component:(e,t)=>t?(s.components[e]=t,i):s.components[e],directive:(e,t)=>t?(s.directives[e]=t,i):s.directives[e],mount(r,o,l){if(!a){const o=i._ceVNode||dr(t,n);return o.appContext=s,!0===l?l="svg":!1===l&&(l=void 0),e(o,r,l),a=!0,i._container=r,r.__vue_app__=i,$r(o.component)}},onUnmount(e){o.push(e)},unmount(){a&&(zt(o,i._instance,16),e(null,i._container),delete i._container.__vue_app__)},provide:(e,t)=>(s.provides[e]=t,i),runWithContext(e){const t=ms;ms=i;try{return e()}finally{ms=t}}};return i}}let ms=null;function gs(e,t,...s){if(e.isUnmounted)return;const r=e.vnode.props||n;let o=s;const a=t.startsWith("update:"),i=a&&((e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${O(t)}Modifiers`]||e[`${E(t)}Modifiers`])(r,t.slice(7));let l;i&&(i.trim&&(o=s.map(e=>v(e)?e.trim():e)),i.number&&(o=s.map(F)));let c=r[l=A(t)]||r[l=A(O(t))];!c&&a&&(c=r[l=A(E(t))]),c&&zt(c,e,6,o);const u=r[l+"Once"];if(u){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,zt(u,e,6,o)}}const vs=new WeakMap;function ys(e,t,n=!1){const s=n?vs:t.emitsCache,r=s.get(e);if(void 0!==r)return r;const o=e.emits;let a={},i=!1;if(!g(e)){const s=e=>{const n=ys(e,t,!0);n&&(i=!0,l(a,n))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return o||i?(f(o)?o.forEach(e=>a[e]=null):l(a,o),b(e)&&s.set(e,a),a):(b(e)&&s.set(e,null),null)}function bs(e,t){return!(!e||!a(t))&&(t=t.slice(2).replace(/Once$/,""),d(e,t[0].toLowerCase()+t.slice(1))||d(e,E(t))||d(e,t))}function _s(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:a,attrs:l,emit:c,render:u,renderCache:d,props:f,data:p,setupState:h,ctx:m,inheritAttrs:g}=e,v=on(e);let y,b;try{if(4&n.shapeFlag){const e=r||s,t=e;y=mr(u.call(t,e,d,f,h,p,m)),b=l}else{const e=t;0,y=mr(e.length>1?e(f,{attrs:l,slots:a,emit:c}):e(f,null)),b=t.props?l:ws(l)}}catch(w){Xs.length=0,Wt(w,e,1),y=dr(Ks)}let _=y;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=_;e.length&&7&t&&(o&&e.some(i)&&(b=ks(b,o)),_=fr(_,b,!1,!0))}return n.dirs&&(_=fr(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&yn(_,n.transition),y=_,on(v),y}const ws=e=>{let t;for(const n in e)("class"===n||"style"===n||a(n))&&((t||(t={}))[n]=e[n]);return t},ks=(e,t)=>{const n={};for(const s in e)i(s)&&s.slice(9)in t||(n[s]=e[s]);return n};function xs(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 o=s[r];if(Cs(t,e,o)&&!bs(n,o))return!0}return!1}function Cs(e,t,n){const s=e[n],r=t[n];return"style"===n&&b(s)&&b(r)?!J(s,r):s!==r}const Ss={},Ts=()=>Object.create(Ss),Ms=e=>Object.getPrototypeOf(e)===Ss;function Os(e,t,s,r){const[o,a]=e.propsOptions;let i,l=!1;if(t)for(let n in t){if(S(n))continue;const c=t[n];let u;o&&d(o,u=O(n))?a&&a.includes(u)?(i||(i={}))[u]=c:s[u]=c:bs(e.emitsOptions,n)||n in r&&c===r[n]||(r[n]=c,l=!0)}if(a){const t=yt(s),r=i||n;for(let n=0;n<a.length;n++){const i=a[n];s[i]=Ls(o,t,i,r[i],e,!d(r,i))}}return l}function Ls(e,t,n,s,r,o){const a=e[n];if(null!=a){const e=d(a,"default");if(e&&void 0===s){const e=a.default;if(a.type!==Function&&!a.skipFactory&&g(e)){const{propsDefaults:o}=r;if(n in o)s=o[n];else{const a=Tr(r);s=o[n]=e.call(null,t),a()}}else s=e;r.ce&&r.ce._setProp(n,s)}a[0]&&(o&&!e?s=!1:!a[1]||""!==s&&s!==E(n)||(s=!0))}return s}const Es=new WeakMap;function Rs(e,t,r=!1){const o=r?Es:t.propsCache,a=o.get(e);if(a)return a;const i=e.props,c={},u=[];let p=!1;if(!g(e)){const n=e=>{p=!0;const[n,s]=Rs(e,t,!0);l(c,n),s&&u.push(...s)};!r&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}if(!i&&!p)return b(e)&&o.set(e,s),s;if(f(i))for(let s=0;s<i.length;s++){const e=O(i[s]);As(e)&&(c[e]=n)}else if(i)for(const n in i){const e=O(n);if(As(e)){const t=i[n],s=c[e]=f(t)||g(t)?{type:t}:l({},t),r=s.type;let o=!1,a=!0;if(f(r))for(let e=0;e<r.length;++e){const t=r[e],n=g(t)&&t.name;if("Boolean"===n){o=!0;break}"String"===n&&(a=!1)}else o=g(r)&&"Boolean"===r.name;s[0]=o,s[1]=a,(o||d(s,"default"))&&u.push(e)}}const h=[c,u];return b(e)&&o.set(e,h),h}function As(e){return"$"!==e[0]&&!S(e)}const $s=e=>"_"===e||"_ctx"===e||"$stable"===e,Ps=e=>f(e)?e.map(mr):[mr(e)],Is=(e,t,n)=>{if(t._n)return t;const s=an((...e)=>Ps(t(...e)),n);return s._c=!1,s},Fs=(e,t,n)=>{const s=e._ctx;for(const r in e){if($s(r))continue;const n=e[r];if(g(n))t[r]=Is(0,n,s);else if(null!=n){const e=Ps(n);t[r]=()=>e}}},js=(e,t)=>{const n=Ps(t);e.slots.default=()=>n},Ns=(e,t,n)=>{for(const s in t)!n&&$s(s)||(e[s]=t[s])},Ds=function(e,t){t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):(f(n=e)?Vt.push(...n):qt&&-1===n.id?qt.splice(Yt+1,0,n):1&n.flags||(Vt.push(n),n.flags|=1),Xt());var n};function Us(e){return function(e){D().__VUE__=!0;const{insert:t,remove:o,patchProp:a,createElement:i,createText:l,createComment:c,setText:u,setElementText:f,parentNode:p,nextSibling:h,setScopeId:m=r,insertStaticContent:g}=e,v=(e,t,n,s=null,r=null,o=null,a=void 0,i=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!ir(e,t)&&(s=X(e),Y(e,r,o,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Zs:y(e,t,n,s);break;case Ks:b(e,t,n,s);break;case Gs:null==e&&w(t,n,s,a);break;case Js:F(e,t,n,s,r,o,a,i,l);break;default:1&d?C(e,t,n,s,r,o,a,i,l):6&d?j(e,t,n,s,r,o,a,i,l):(64&d||128&d)&&c.process(e,t,n,s,r,o,a,i,l,ne)}null!=u&&r?xn(u,e&&e.ref,o,t||e,!t):null==u&&e&&null!=e.ref&&xn(e.ref,null,o,e,!0)},y=(e,n,s,r)=>{if(null==e)t(n.el=l(n.children),s,r);else{const t=n.el=e.el;n.children!==e.children&&u(t,n.children)}},b=(e,n,s,r)=>{null==e?t(n.el=c(n.children||""),s,r):n.el=e.el},w=(e,t,n,s)=>{[e.el,e.anchor]=g(e.children,t,n,s,e.el,e.anchor)},k=({el:e,anchor:n},s,r)=>{let o;for(;e&&e!==n;)o=h(e),t(e,s,r),e=o;t(n,s,r)},x=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),o(e),e=n;o(t)},C=(e,t,n,s,r,o,a,i,l)=>{if("svg"===t.type?a="svg":"math"===t.type&&(a="mathml"),null==e)T(t,n,s,r,o,a,i,l);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),R(e,t,r,o,a,i,l)}finally{n&&n._endPatch()}}},T=(e,n,s,r,o,l,c,u)=>{let d,p;const{props:h,shapeFlag:m,transition:g,dirs:v}=e;if(d=e.el=i(e.type,l,h&&h.is,h),8&m?f(d,e.children):16&m&&L(e.children,d,null,r,o,zs(e,l),c,u),v&&cn(e,null,r,"created"),M(d,e,e.scopeId,c,r),h){for(const e in h)"value"===e||S(e)||a(d,e,null,h[e],l,r);"value"in h&&a(d,"value",null,h.value,l),(p=h.onVnodeBeforeMount)&&br(p,r,e)}v&&cn(e,null,r,"beforeMount");const y=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(o,g);y&&g.beforeEnter(d),t(d,n,s),((p=h&&h.onVnodeMounted)||y||v)&&Ds(()=>{try{p&&br(p,r,e),y&&g.enter(d),v&&cn(e,null,r,"mounted")}finally{}},o)},M=(e,t,n,s,r)=>{if(n&&m(e,n),s)for(let o=0;o<s.length;o++)m(e,s[o]);if(r){let n=r.subTree;if(t===n||Ys(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=r.vnode;M(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},L=(e,t,n,s,r,o,a,i,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=i?gr(e[c]):mr(e[c]);v(null,l,t,n,s,r,o,a,i)}},R=(e,t,s,r,o,i,l)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||n,m=t.props||n;let g;if(s&&Ws(s,!1),(g=m.onVnodeBeforeUpdate)&&br(g,s,t,e),p&&cn(t,e,s,"beforeUpdate"),s&&Ws(s,!0),(h.innerHTML&&null==m.innerHTML||h.textContent&&null==m.textContent)&&f(c,""),d?A(e.dynamicChildren,d,c,s,r,zs(t,o),i):l||H(e,t,c,null,s,r,zs(t,o),i,!1),u>0){if(16&u)$(c,h,m,s,o);else if(2&u&&h.class!==m.class&&a(c,"class",null,m.class,o),4&u&&a(c,"style",h.style,m.style,o),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t],r=h[n],i=m[n];i===r&&"value"!==n||a(c,n,r,i,o,s)}}1&u&&e.children!==t.children&&f(c,t.children)}else l||null!=d||$(c,h,m,s,o);((g=m.onVnodeUpdated)||p)&&Ds(()=>{g&&br(g,s,t,e),p&&cn(t,e,s,"updated")},r)},A=(e,t,n,s,r,o,a)=>{for(let i=0;i<t.length;i++){const l=e[i],c=t[i],u=l.el&&(l.type===Js||!ir(l,c)||198&l.shapeFlag)?p(l.el):n;v(l,c,u,null,s,r,o,a,!0)}},$=(e,t,s,r,o)=>{if(t!==s){if(t!==n)for(const n in t)S(n)||n in s||a(e,n,t[n],null,o,r);for(const n in s){if(S(n))continue;const i=s[n],l=t[n];i!==l&&"value"!==n&&a(e,n,l,i,o,r)}"value"in s&&a(e,"value",t.value,s.value,o)}},F=(e,n,s,r,o,a,i,c,u)=>{const d=n.el=e?e.el:l(""),f=n.anchor=e?e.anchor:l("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:m}=n;m&&(c=c?c.concat(m):m),null==e?(t(d,s,r),t(f,s,r),L(n.children||[],s,f,o,a,i,c,u)):p>0&&64&p&&h&&e.dynamicChildren&&e.dynamicChildren.length===h.length?(A(e.dynamicChildren,h,s,o,a,i,c),(null!=n.key||o&&n===o.subTree)&&Hs(e,n,!0)):H(e,n,s,f,o,a,i,c,u)},j=(e,t,n,s,r,o,a,i,l)=>{t.slotScopeIds=i,null==e?512&t.shapeFlag?r.ctx.activate(t,n,s,a,l):N(t,n,s,r,o,a,l):U(e,t,l)},N=(e,t,s,r,o,a,i)=>{const l=e.component=function(e,t,s){const r=e.type,o=(t?t.appContext:e.appContext)||_r,a={uid:wr++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new te(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Rs(r,o),emitsOptions:ys(r,o),emit:null,emitted:null,propsDefaults:n,inheritAttrs:r.inheritAttrs,ctx:n,data:n,props:n,attrs:n,slots:n,refs:n,setupState:n,setupContext:null,suspense:s,suspenseId:s?s.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};a.ctx={_:a},a.root=t?t.root:a,a.emit=gs.bind(null,a),e.ce&&e.ce(a);return a}(e,r,o);if(Tn(e)&&(l.ctx.renderer=ne),function(e,t=!1,n=!1){t&&Sr(t);const{props:s,children:r}=e.vnode,o=Or(e);(function(e,t,n,s=!1){const r={},o=Ts();e.propsDefaults=Object.create(null),Os(e,t,r,o);for(const a in e.propsOptions[0])a in r||(r[a]=void 0);n?e.props=s?r:dt(r):e.type.props?e.props=r:e.props=o,e.attrs=o})(e,s,o,t),((e,t,n)=>{const s=e.slots=Ts();if(32&e.vnode.shapeFlag){const e=t._;e?(Ns(s,t,n),n&&I(s,"_",e,!0)):Fs(t,s)}else t&&js(e,t)})(e,r,n||t);const a=o?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Xn);const{setup:s}=n;if(s){_e();const n=e.setupContext=s.length>1?function(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,Ar),slots:e.slots,emit:e.emit,expose:t}}(e):null,r=Tr(e),o=Ut(s,e,0,[e.props,n]),a=_(o);if(we(),r(),!a&&!e.sp||Sn(e)||_n(e),a){if(o.then(Mr,Mr),t)return o.then(t=>{Er(e,t)}).catch(t=>{Wt(t,e,0)});e.asyncDep=o}else Er(e,o)}else Rr(e)}(e,t):void 0;t&&Sr(!1)}(l,!1,i),l.asyncDep){if(o&&o.registerDep(l,z,i),!e.el){const n=l.subTree=dr(Ks);b(null,n,t,s),e.placeholder=n.el}}else z(l,e,t,s,o,a,i)},U=(e,t,n)=>{const s=t.component=e.component;if(function(e,t,n){const{props:s,children:r,component:o}=e,{props:a,children:i,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!i||i&&i.$stable)||s!==a&&(s?!a||xs(s,a,c):!!a);if(1024&l)return!0;if(16&l)return s?xs(s,a,c):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(Cs(a,s,n)&&!bs(c,n))return!0}}return!1}(e,t,n)){if(s.asyncDep&&!s.asyncResolved)return void W(s,t,n);s.next=t,s.update()}else t.el=e.el,s.vnode=t},z=(e,t,n,s,r,o,a)=>{const i=()=>{if(e.isMounted){let{next:t,bu:n,u:s,parent:i,vnode:l}=e;{const n=Bs(e);if(n)return t&&(t.el=l.el,W(e,t,a)),void n.asyncDep.then(()=>{Ds(()=>{e.isUnmounted||c()},r)})}let u,d=t;Ws(e,!1),t?(t.el=l.el,W(e,t,a)):t=l,n&&P(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&br(u,i,t,l),Ws(e,!0);const f=_s(e),h=e.subTree;e.subTree=f,v(h,f,p(h.el),X(h),e,r,o),t.el=f.el,null===d&&function({vnode:e,parent:t,suspense:n},s){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=s,e=n),n!==e)break;(e=t.vnode).el=s,t=t.parent}n&&n.activeBranch===e&&(n.vnode.el=s)}(e,f.el),s&&Ds(s,r),(u=t.props&&t.props.onVnodeUpdated)&&Ds(()=>br(u,i,t,l),r)}else{let a;const{el:i,props:l}=t,{bm:c,m:u,parent:d,root:f,type:p}=e,h=Sn(t);Ws(e,!1),c&&P(c),!h&&(a=l&&l.onVnodeBeforeMount)&&br(a,d,t),Ws(e,!0);{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);const a=e.subTree=_s(e);v(null,a,n,s,e,r,o),t.el=a.el}if(u&&Ds(u,r),!h&&(a=l&&l.onVnodeMounted)){const e=t;Ds(()=>br(a,d,e),r)}(256&t.shapeFlag||d&&Sn(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&Ds(e.a,r),e.isMounted=!0,t=n=s=null}};e.scope.on();const l=e.effect=new oe(i);e.scope.off();const c=e.update=l.run.bind(l),u=e.job=l.runIfDirty.bind(l);u.i=e,u.id=e.uid,l.scheduler=()=>Gt(u),Ws(e,!0),c()},W=(e,t,s)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:a}}=e,i=yt(r),[l]=e.propsOptions;let c=!1;if(!(s||a>0)||16&a){let s;Os(e,t,r,o)&&(c=!0);for(const o in i)t&&(d(t,o)||(s=E(o))!==o&&d(t,s))||(l?!n||void 0===n[o]&&void 0===n[s]||(r[o]=Ls(l,i,o,void 0,e,!0)):delete r[o]);if(o!==i)for(const e in o)t&&d(t,e)||(delete o[e],c=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let s=0;s<n.length;s++){let a=n[s];if(bs(e.emitsOptions,a))continue;const u=t[a];if(l)if(d(o,a))u!==o[a]&&(o[a]=u,c=!0);else{const t=O(a);r[t]=Ls(l,i,t,u,e,!1)}else u!==o[a]&&(o[a]=u,c=!0)}}c&&Ae(e.attrs,"set","")}(e,t.props,r,s),((e,t,s)=>{const{vnode:r,slots:o}=e;let a=!0,i=n;if(32&r.shapeFlag){const e=t._;e?s&&1===e?a=!1:Ns(o,t,s):(a=!t.$stable,Fs(t,o)),i=t}else t&&(js(e,t),i={default:1});if(a)for(const n in o)$s(n)||null!=i[n]||delete o[n]})(e,t.children,s),_e(),Qt(e),we()},H=(e,t,n,s,r,o,a,i,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void V(c,d,n,s,r,o,a,i,l);if(256&p)return void B(c,d,n,s,r,o,a,i,l)}8&h?(16&u&&G(c,r,o),d!==c&&f(n,d)):16&u?16&h?V(c,d,n,s,r,o,a,i,l):G(c,r,o,!0):(8&u&&f(n,""),16&h&&L(d,n,s,r,o,a,i,l))},B=(e,t,n,r,o,a,i,l,c)=>{t=t||s;const u=(e=e||s).length,d=t.length,f=Math.min(u,d);let p;for(p=0;p<f;p++){const s=t[p]=c?gr(t[p]):mr(t[p]);v(e[p],s,n,null,o,a,i,l,c)}u>d?G(e,o,a,!0,!1,f):L(t,n,r,o,a,i,l,c,f)},V=(e,t,n,r,o,a,i,l,c)=>{let u=0;const d=t.length;let f=e.length-1,p=d-1;for(;u<=f&&u<=p;){const s=e[u],r=t[u]=c?gr(t[u]):mr(t[u]);if(!ir(s,r))break;v(s,r,n,null,o,a,i,l,c),u++}for(;u<=f&&u<=p;){const s=e[f],r=t[p]=c?gr(t[p]):mr(t[p]);if(!ir(s,r))break;v(s,r,n,null,o,a,i,l,c),f--,p--}if(u>f){if(u<=p){const e=p+1,s=e<d?t[e].el:r;for(;u<=p;)v(null,t[u]=c?gr(t[u]):mr(t[u]),n,s,o,a,i,l,c),u++}}else if(u>p)for(;u<=f;)Y(e[u],o,a,!0),u++;else{const h=u,m=u,g=new Map;for(u=m;u<=p;u++){const e=t[u]=c?gr(t[u]):mr(t[u]);null!=e.key&&g.set(e.key,u)}let y,b=0;const _=p-m+1;let w=!1,k=0;const x=new Array(_);for(u=0;u<_;u++)x[u]=0;for(u=h;u<=f;u++){const s=e[u];if(b>=_){Y(s,o,a,!0);continue}let r;if(null!=s.key)r=g.get(s.key);else for(y=m;y<=p;y++)if(0===x[y-m]&&ir(s,t[y])){r=y;break}void 0===r?Y(s,o,a,!0):(x[r-m]=u+1,r>=k?k=r:w=!0,v(s,t[r],n,null,o,a,i,l,c),b++)}const C=w?function(e){const t=e.slice(),n=[0];let s,r,o,a,i;const l=e.length;for(s=0;s<l;s++){const l=e[s];if(0!==l){if(r=n[n.length-1],e[r]<l){t[s]=r,n.push(s);continue}for(o=0,a=n.length-1;o<a;)i=o+a>>1,e[n[i]]<l?o=i+1:a=i;l<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}o=n.length,a=n[o-1];for(;o-- >0;)n[o]=a,a=t[a];return n}(x):s;for(y=C.length-1,u=_-1;u>=0;u--){const e=m+u,s=t[e],f=t[e+1],p=e+1<d?f.el||qs(f):r;0===x[u]?v(null,s,n,p,o,a,i,l,c):w&&(y<0||u!==C[y]?q(s,n,p,2):y--)}}},q=(e,n,s,r,a=null)=>{const{el:i,type:l,transition:c,children:u,shapeFlag:d}=e;if(6&d)return void q(e.component.subTree,n,s,r);if(128&d)return void e.suspense.move(n,s,r);if(64&d)return void l.move(e,n,s,ne);if(l===Js){t(i,n,s);for(let e=0;e<u.length;e++)q(u[e],n,s,r);return void t(e.anchor,n,s)}if(l===Gs)return void k(e,n,s);if(2!==r&&1&d&&c)if(0===r)c.persisted&&!i[vn]?t(i,n,s):(c.beforeEnter(i),t(i,n,s),Ds(()=>c.enter(i),a));else{const{leave:r,delayLeave:a,afterLeave:l}=c,u=()=>{e.ctx.isUnmounted?o(i):t(i,n,s)},d=()=>{const e=i._isLeaving||!!i[vn];i._isLeaving&&i[vn](!0),c.persisted&&!e?u():r(i,()=>{u(),l&&l()})};a?a(i,u,d):d()}else t(i,n,s)},Y=(e,t,n,s=!1,r=!1)=>{const{type:o,props:a,ref:i,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:h}=e;if(-2===d&&(r=!1),null!=i&&(_e(),xn(i,null,n,e,!0),we()),null!=p&&(t.renderCache[p]=void 0),256&u)return void t.ctx.deactivate(e);const m=1&u&&f,g=!Sn(e);let v;if(g&&(v=a&&a.onVnodeBeforeUnmount)&&br(v,t,e),6&u)K(e.component,n,s);else{if(128&u)return void e.suspense.unmount(n,s);m&&cn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,ne,s):c&&!c.hasOnce&&(o!==Js||d>0&&64&d)?G(c,t,n,!1,!0):(o===Js&&384&d||!r&&16&u)&&G(l,t,n),s&&J(e)}const y=null!=h&&null==p;(g&&(v=a&&a.onVnodeUnmounted)||m||y)&&Ds(()=>{v&&br(v,t,e),m&&cn(e,null,t,"unmounted"),y&&(e.el=null)},n)},J=e=>{const{type:t,el:n,anchor:s,transition:r}=e;if(t===Js)return void Z(n,s);if(t===Gs)return void x(e);const a=()=>{o(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:s}=r,o=()=>t(n,a);s?s(e.el,a,o):o()}else a()},Z=(e,t)=>{let n;for(;e!==t;)n=h(e),o(e),e=n;o(t)},K=(e,t,n)=>{const{bum:s,scope:r,job:o,subTree:a,um:i,m:l,a:c}=e;Vs(l),Vs(c),s&&P(s),r.stop(),o&&(o.flags|=8,Y(a,e,t,n)),i&&Ds(i,t),Ds(()=>{e.isUnmounted=!0},t)},G=(e,t,n,s=!1,r=!1,o=0)=>{for(let a=o;a<e.length;a++)Y(e[a],t,n,s,r)},X=e=>{if(6&e.shapeFlag)return X(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=h(e.anchor||e.el),n=t&&t[gn];return n?h(n):t};let Q=!1;const ee=(e,t,n)=>{let s;null==e?t._vnode&&(Y(t._vnode,null,null,!0),s=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Q||(Q=!0,Qt(s),en(),Q=!1)},ne={p:v,um:Y,m:q,r:J,mt:N,mc:L,pc:H,pbc:A,n:X,o:e};let se;return{render:ee,hydrate:se,createApp:hs(ee)}}(e)}function zs({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ws({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Hs(e,t,n=!1){const s=e.children,r=t.children;if(f(s)&&f(r))for(let o=0;o<s.length;o++){const e=s[o];let t=r[o];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=r[o]=gr(r[o]),t.el=e.el),n||-2===t.patchFlag||Hs(e,t)),t.type===Zs&&(-1===t.patchFlag&&(t=r[o]=gr(t)),t.el=e.el),t.type!==Ks||t.el||(t.el=e.el)}}function Bs(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Bs(t)}function Vs(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function qs(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?qs(t.subTree):null}const Ys=e=>e.__isSuspense;const Js=Symbol.for("v-fgt"),Zs=Symbol.for("v-txt"),Ks=Symbol.for("v-cmt"),Gs=Symbol.for("v-stc"),Xs=[];let Qs=null;function er(e=!1){Xs.push(Qs=e?null:[])}let tr=1;function nr(e,t=!1){tr+=e,e<0&&Qs&&t&&(Qs.hasOnce=!0)}function sr(e){return e.dynamicChildren=tr>0?Qs||s:null,Xs.pop(),Qs=Xs[Xs.length-1]||null,tr>0&&Qs&&Qs.push(e),e}function rr(e,t,n,s,r,o){return sr(ur(e,t,n,s,r,o,!0))}function or(e,t,n,s,r){return sr(dr(e,t,n,s,r,!0))}function ar(e){return!!e&&!0===e.__v_isVNode}function ir(e,t){return e.type===t.type&&e.key===t.key}const lr=({key:e})=>null!=e?e:null,cr=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?v(e)||kt(e)||g(e)?{i:sn,r:e,k:t,f:!!n}:e:null);function ur(e,t=null,n=null,s=0,r=null,o=(e===Js?0:1),a=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&lr(t),ref:t&&cr(t),scopeId:rn,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:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:sn};return i?(vr(l,n),128&o&&e.normalize(l)):n&&(l.shapeFlag|=v(n)?8:16),tr>0&&!a&&Qs&&(l.patchFlag>0||6&o)&&32!==l.patchFlag&&Qs.push(l),l}const dr=function(e,t=null,n=null,s=0,r=null,o=!1){e&&e!==Bn||(e=Ks);if(ar(e)){const s=fr(e,t,!0);return n&&vr(s,n),tr>0&&!o&&Qs&&(6&s.shapeFlag?Qs[Qs.indexOf(e)]=s:Qs.push(s)),s.patchFlag=-2,s}a=e,g(a)&&"__vccOpts"in a&&(e=e.__vccOpts);var a;if(t){t=function(e){return e?vt(e)||Ms(e)?l({},e):e:null}(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=V(e)),b(n)&&(vt(n)&&!f(n)&&(n=l({},n)),t.style=U(n))}const i=v(e)?1:Ys(e)?128:(e=>e.__isTeleport)(e)?64:b(e)?4:g(e)?2:0;return ur(e,t,n,s,r,i,o,!0)};function fr(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:a,children:i,transition:l}=e,c=t?yr(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&lr(c),ref:t&&t.ref?n&&o?f(o)?o.concat(cr(t)):[o,cr(t)]:cr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Js?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&fr(e.ssContent),ssFallback:e.ssFallback&&fr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&yn(u,l.clone(u)),u}function pr(e=" ",t=0){return dr(Zs,null,e,t)}function hr(e="",t=!1){return t?(er(),or(Ks,null,e)):dr(Ks,null,e)}function mr(e){return null==e||"boolean"==typeof e?dr(Ks):f(e)?dr(Js,null,e.slice()):ar(e)?gr(e):dr(Zs,null,String(e))}function gr(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:fr(e)}function vr(e,t){let n=0;const{shapeFlag:s}=e;if(null==t)t=null;else if(f(t))n=16;else if("object"==typeof t){if(65&s){const n=t.default;return void(n&&(n._c&&(n._d=!1),vr(e,n()),n._c&&(n._d=!0)))}{n=32;const s=t._;s||Ms(t)?3===s&&sn&&(1===sn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=sn}}else g(t)?(t={default:t,_ctx:sn},n=32):(t=String(t),64&s?(n=16,t=[pr(t)]):n=8);e.children=t,e.shapeFlag|=n}function yr(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const e in s)if("class"===e)t.class!==s.class&&(t.class=V([t.class,s.class]));else if("style"===e)t.style=U([t.style,s.style]);else if(a(e)){const n=t[e],r=s[e];!r||n===r||f(n)&&n.includes(r)?null!=r||null!=n||i(e)||(t[e]=r):t[e]=n?[].concat(n,r):r}else""!==e&&(t[e]=s[e])}return t}function br(e,t,n,s=null){zt(e,t,7,[n,s])}const _r=fs();let wr=0;let kr=null;const xr=()=>kr||sn;let Cr,Sr;{const e=D(),t=(t,n)=>{let s;return(s=e[t])||(s=e[t]=[]),s.push(n),e=>{s.length>1?s.forEach(t=>t(e)):s[0](e)}};Cr=t("__VUE_INSTANCE_SETTERS__",e=>kr=e),Sr=t("__VUE_SSR_SETTERS__",e=>Lr=e)}const Tr=e=>{const t=kr;return Cr(e),e.scope.on(),()=>{e.scope.off(),Cr(t)}},Mr=()=>{kr&&kr.scope.off(),Cr(null)};function Or(e){return 4&e.vnode.shapeFlag}let Lr=!1;function Er(e,t,n){g(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=Lt(t)),Rr(e)}function Rr(e,t,n){const s=e.type;e.render||(e.render=s.render||r);{const t=Tr(e);_e();try{ts(e)}finally{we(),t()}}}const Ar={get:(e,t)=>(Re(e,0,""),e[t])};function $r(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Lt(bt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Kn?Kn[n](e):void 0,has:(e,t)=>t in e||t in Kn})):e.proxy}function Pr(e,t=!0){return g(e)?e.displayName||e.name:e.name||t&&e.__name}const Ir=(e,t)=>Pt(e,0,Lr);function Fr(e,t,n){try{nr(-1);const s=arguments.length;return 2===s?b(t)&&!f(t)?ar(t)?dr(e,null,[t]):dr(e,t):dr(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):3===s&&ar(n)&&(n=[n]),dr(e,t,n))}finally{nr(1)}}const jr="3.5.38";
|
|
18
18
|
/**
|
|
19
19
|
* @vue/runtime-dom v3.5.38
|
|
20
20
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
21
21
|
* @license MIT
|
|
22
|
-
**/let Ds;const Is="undefined"!=typeof window&&window.trustedTypes;if(Is)try{Ds=Is.createPolicy("vue",{createHTML:e=>e})}catch(Pp){}const Us=Ds?e=>Ds.createHTML(e):e=>e,zs="undefined"!=typeof document?document:null,Ws=zs&&zs.createElement("template"),Hs={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s="svg"===t?zs.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?zs.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?zs.createElement(e,{is:n}):zs.createElement(e);return"select"===e&&r&&null!=r.multiple&&s.setAttribute("multiple",r.multiple),s},createText:e=>zs.createTextNode(e),createComment:e=>zs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>zs.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const a=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),s!==o&&(s=s.nextSibling););else{Ws.innerHTML=Us("svg"===r?`<svg>${e}</svg>`:"mathml"===r?`<math>${e}</math>`:e);const s=Ws.content;if("svg"===r||"mathml"===r){const e=s.firstChild;for(;e.firstChild;)s.appendChild(e.firstChild);s.removeChild(e)}t.insertBefore(s,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Bs=Symbol("_vtc");const Vs=Symbol("_vod"),Ys=Symbol("_vsh"),qs=Symbol(""),Js=/(?:^|;)\s*display\s*:/;const Zs=/\s*!important$/;function Gs(e,t,n){if(p(n))n.forEach(n=>Gs(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=Xs[t];if(n)return n;let r=O(t);if("filter"!==r&&r in e)return Xs[t]=r;r=R(r);for(let s=0;s<Ks.length;s++){const n=Ks[s]+r;if(n in e)return Xs[t]=n}return t}(e,t);Zs.test(n)?e.setProperty(E(r),n.replace(Zs,""),"important"):e[r]=n}}const Ks=["Webkit","Moz","ms"],Xs={};function Qs(e,t,n,r){return"TEXTAREA"===e.tagName&&("width"===t||"height"===t)&&v(r)&&n===r}const eo="http://www.w3.org/1999/xlink";function to(e,t,n,r,s,o=Y(t)){r&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(eo,t.slice(6,t.length)):e.setAttributeNS(eo,t,n):null==n||o&&!q(n)?e.removeAttribute(t):e.setAttribute(t,o?"":y(n)?String(n):n)}function no(e,t,n,r,s){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?Us(n):n));const o=e.tagName;if("value"===t&&"PROGRESS"!==o&&!o.includes("-")){const r="OPTION"===o?e.getAttribute("value")||"":e.value,s=null==n?"checkbox"===e.type?"on":"":String(n);return r===s&&"_value"in e||(e.value=s),null==n&&e.removeAttribute(t),void(e._value=n)}let a=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=q(n):null==n&&"string"===r?(n="",a=!0):"number"===r&&(n=0,a=!0)}try{e[t]=n}catch(Pp){}a&&e.removeAttribute(s||t)}function ro(e,t,n,r){e.addEventListener(t,n,r)}const so=Symbol("_vei");function oo(e,t,n,r,s=null){const o=e[so]||(e[so]={}),a=o[t];if(r&&a)a.value=r;else{const[n,i]=function(e){let t;if(ao.test(e)){let n;for(t={};n=e.match(ao);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):E(e.slice(2));return[n,t]}(t);if(r){const a=o[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();const r=n.value;if(p(r)){const n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};const s=r.slice(),o=[e];for(let r=0;r<s.length&&!e._stopped;r++){const e=s[r];e&&zt(e,t,5,o)}}else zt(r,t,5,[e])};return n.value=e,n.attached=co(),n}(r,s);ro(e,n,a,i)}else a&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,a,i),o[t]=void 0)}}const ao=/(?:Once|Passive|Capture)$/;let io=0;const lo=Promise.resolve(),co=()=>io||(lo.then(()=>io=0),io=Date.now());const uo=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const po={};function fo(e,t,n){let r=bn(e,t);x(r)&&(r=l({},r,t));class s extends mo{constructor(e){super(r,e,n)}}return s.def=r,s}const ho="undefined"!=typeof HTMLElement?HTMLElement:class{};class mo extends ho{constructor(e,t={},n=Oo){super(),this._def=e,this._props=t,this._createApp=n,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&&n!==Oo?this._root=this.shadowRoot:!1!==e.shadowRoot?(this.attachShadow(l({},e.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 e=this;for(;e=e&&(e.assignedSlot||e.parentNode||e.host);)if(e instanceof mo){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Gt(()=>{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(e){for(const t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:r}=e;let s;if(n&&!p(n))for(const o in n){const e=n[o];(e===Number||e&&e.type===Number)&&(o in this._props&&(this._props[o]=N(this._props[o])),(s||(s=Object.create(null)))[O(o)]=!0)}this._numberProps=s,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const t=this._instance&&this._instance.exposed;if(t)for(const n in t)d(this,n)||Object.defineProperty(this,n,{get:()=>Tt(t[n])})}_resolveProps(e){const{props:t}=e,n=p(t)?t:Object.keys(t||{});for(const r of Object.keys(this))"_"!==r[0]&&n.includes(r)&&this._setProp(r,this[r]);for(const r of n.map(O))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(e){this._setProp(r,e,!0,!this._patching)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const t=this.hasAttribute(e);let n=t?this.getAttribute(e):po;const r=O(e);t&&this._numberProps&&this._numberProps[r]&&(n=N(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===po?delete this._props[e]:(this._props[e]=t,"key"===e&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){const n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),!0===t?this.setAttribute(E(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(E(e),t+""):t||this.removeAttribute(E(e)),n&&n.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),To(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const t=ds(this._def,l(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,x(t[0])?l({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),E(e)!==e&&t(E(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}const r=this._nonce,s=this.shadowRoot,o=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(s);let a=null;for(let i=e.length-1;i>=0;i--){const l=document.createElement("style");r&&l.setAttribute("nonce",r),l.textContent=e[i],s.insertBefore(l,a||o),a=l,0===i&&(n||this._styleAnchors.set(this._def,l),t&&this._styleAnchors.set(t,l))}}_getStyleAnchor(e){if(!e)return null;const t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){const e=this._slots={};let t;for(;t=this.firstChild;){const n=1===t.nodeType&&t.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){const e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){const r=e[n],s=r.getAttribute("name")||"default",o=this._slots[s],a=r.parentNode;if(o)for(const e of o){if(t&&1===e.nodeType){const n=t+"-s",r=document.createTreeWalker(e,1);let s;for(e.setAttribute(n,"");s=r.nextNode();)s.setAttribute(n,"")}a.insertBefore(e,r)}else for(;r.firstChild;)a.insertBefore(r.firstChild,r);a.removeChild(r)}}_getSlots(){const e=[this];this._teleportTargets&&e.push(...this._teleportTargets);const t=new Set;for(const n of e){const e=n.querySelectorAll("slot");for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return!1!==this._def.shadowRoot}_removeChildStyle(e){}}const go=e=>{const t=e.props["onUpdate:modelValue"]||!1;return p(t)?e=>P(t,e):t};function vo(e){e.target.composing=!0}function yo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const bo=Symbol("_assign");function _o(e,t,n){return t&&(e=e.trim()),n&&(e=j(e)),e}const wo={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[bo]=go(s);const o=r||s.props&&"number"===s.props.type;ro(e,t?"change":"input",t=>{t.target.composing||e[bo](_o(e.value,n,o))}),(n||o)&&ro(e,"change",()=>{e.value=_o(e.value,n,o)}),t||(ro(e,"compositionstart",vo),ro(e,"compositionend",yo),ro(e,"change",yo))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:o}},a){if(e[bo]=go(a),e.composing)return;const i=null==t?"":t;if((!o&&"number"!==e.type||/^0\d/.test(e.value)?e.value:j(e.value))===i)return;const l=e.getRootNode();if((l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&"range"!==e.type){if(r&&t===n)return;if(s&&e.value.trim()===i)return}e.value=i}},ko={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},xo=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;const r=E(n.key);return t.some(e=>e===r||ko[e]===r)?e(n):void 0})},Co=l({patchProp:(e,t,n,r,s,o)=>{const l="svg"===s;"class"===t?function(e,t,n){const r=e[Bs];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,l):"style"===t?function(e,t,n){const r=e.style,s=v(n);let o=!1;if(n&&!s){if(t)if(v(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Gs(r,t,"")}else for(const e in t)null==n[e]&&Gs(r,e,"");for(const s in n){"display"===s&&(o=!0);const a=n[s];null!=a?Qs(e,s,!v(t)&&t?t[s]:void 0,a)||Gs(r,s,a):Gs(r,s,"")}}else if(s){if(t!==n){const e=r[qs];e&&(n+=";"+e),r.cssText=n,o=Js.test(n)}}else t&&e.removeAttribute("style");Vs in e&&(e[Vs]=o?r.display:"",e[Ys]&&(r.display="none"))}(e,n,r):a(t)?i(t)||oo(e,t,0,r,o):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&uo(t)&&g(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(uo(t)&&v(n))return!1;return t in e}(e,t,r,l))?(no(e,t,r),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||to(e,t,r,l,0,"value"!==t)):e._isVueCE&&(function(e,t){const n=e._def.props;if(!n)return!1;const r=O(t);return Array.isArray(n)?n.some(e=>O(e)===r):Object.keys(n).some(e=>O(e)===r)}(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!v(r)))?no(e,O(t),r,0,t):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),to(e,t,r,l))}},Hs);let So;function Mo(){return So||(So=Ur(Co))}const To=(...e)=>{Mo().render(...e)},Oo=(...e)=>{const t=Mo().createApp(...e),{mount:n}=t;return t.mount=e=>{const r=function(e){if(v(e)){return document.querySelector(e)}return e}
|
|
22
|
+
**/let Nr;const Dr="undefined"!=typeof window&&window.trustedTypes;if(Dr)try{Nr=Dr.createPolicy("vue",{createHTML:e=>e})}catch(Df){}const Ur=Nr?e=>Nr.createHTML(e):e=>e,zr="undefined"!=typeof document?document:null,Wr=zr&&zr.createElement("template"),Hr={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="svg"===t?zr.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?zr.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?zr.createElement(e,{is:n}):zr.createElement(e);return"select"===e&&s&&null!=s.multiple&&r.setAttribute("multiple",s.multiple),r},createText:e=>zr.createTextNode(e),createComment:e=>zr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>zr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const a=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==o&&(r=r.nextSibling););else{Wr.innerHTML=Ur("svg"===s?`<svg>${e}</svg>`:"mathml"===s?`<math>${e}</math>`:e);const r=Wr.content;if("svg"===s||"mathml"===s){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Br=Symbol("_vtc");const Vr=Symbol("_vod"),qr=Symbol("_vsh"),Yr=Symbol(""),Jr=/(?:^|;)\s*display\s*:/;const Zr=/\s*!important$/;function Kr(e,t,n){if(f(n))n.forEach(n=>Kr(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=function(e,t){const n=Xr[t];if(n)return n;let s=O(t);if("filter"!==s&&s in e)return Xr[t]=s;s=R(s);for(let r=0;r<Gr.length;r++){const n=Gr[r]+s;if(n in e)return Xr[t]=n}return t}(e,t);Zr.test(n)?e.setProperty(E(s),n.replace(Zr,""),"important"):e[s]=n}}const Gr=["Webkit","Moz","ms"],Xr={};function Qr(e,t,n,s){return"TEXTAREA"===e.tagName&&("width"===t||"height"===t)&&v(s)&&n===s}const eo="http://www.w3.org/1999/xlink";function to(e,t,n,s,r,o=q(t)){s&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(eo,t.slice(6,t.length)):e.setAttributeNS(eo,t,n):null==n||o&&!Y(n)?e.removeAttribute(t):e.setAttribute(t,o?"":y(n)?String(n):n)}function no(e,t,n,s,r){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?Ur(n):n));const o=e.tagName;if("value"===t&&"PROGRESS"!==o&&!o.includes("-")){const s="OPTION"===o?e.getAttribute("value")||"":e.value,r=null==n?"checkbox"===e.type?"on":"":String(n);return s===r&&"_value"in e||(e.value=r),null==n&&e.removeAttribute(t),void(e._value=n)}let a=!1;if(""===n||null==n){const s=typeof e[t];"boolean"===s?n=Y(n):null==n&&"string"===s?(n="",a=!0):"number"===s&&(n=0,a=!0)}try{e[t]=n}catch(Df){}a&&e.removeAttribute(r||t)}function so(e,t,n,s){e.addEventListener(t,n,s)}const ro=Symbol("_vei");function oo(e,t,n,s,r=null){const o=e[ro]||(e[ro]={}),a=o[t];if(s&&a)a.value=s;else{const[n,i]=function(e){let t;if(ao.test(e)){let n;for(t={};n=e.match(ao);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):E(e.slice(2));return[n,t]}(t);if(s){const a=o[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();const s=n.value;if(f(s)){const n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};const r=s.slice(),o=[e];for(let s=0;s<r.length&&!e._stopped;s++){const e=r[s];e&&zt(e,t,5,o)}}else zt(s,t,5,[e])};return n.value=e,n.attached=co(),n}(s,r);so(e,n,a,i)}else a&&(!function(e,t,n,s){e.removeEventListener(t,n,s)}(e,n,a,i),o[t]=void 0)}}const ao=/(?:Once|Passive|Capture)$/;let io=0;const lo=Promise.resolve(),co=()=>io||(lo.then(()=>io=0),io=Date.now());const uo=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const fo={};function po(e,t,n){let s=bn(e,t);x(s)&&(s=l({},s,t));class r extends mo{constructor(e){super(s,e,n)}}return r.def=s,r}const ho="undefined"!=typeof HTMLElement?HTMLElement:class{};class mo extends ho{constructor(e,t={},n=Oo){super(),this._def=e,this._props=t,this._createApp=n,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&&n!==Oo?this._root=this.shadowRoot:!1!==e.shadowRoot?(this.attachShadow(l({},e.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 e=this;for(;e=e&&(e.assignedSlot||e.parentNode||e.host);)if(e instanceof mo){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Kt(()=>{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(e){for(const t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:s}=e;let r;if(n&&!f(n))for(const o in n){const e=n[o];(e===Number||e&&e.type===Number)&&(o in this._props&&(this._props[o]=j(this._props[o])),(r||(r=Object.create(null)))[O(o)]=!0)}this._numberProps=r,this._resolveProps(e),this.shadowRoot&&this._applyStyles(s),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const t=this._instance&&this._instance.exposed;if(t)for(const n in t)d(this,n)||Object.defineProperty(this,n,{get:()=>Mt(t[n])})}_resolveProps(e){const{props:t}=e,n=f(t)?t:Object.keys(t||{});for(const s of Object.keys(this))"_"!==s[0]&&n.includes(s)&&this._setProp(s,this[s]);for(const s of n.map(O))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(e){this._setProp(s,e,!0,!this._patching)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const t=this.hasAttribute(e);let n=t?this.getAttribute(e):fo;const s=O(e);t&&this._numberProps&&this._numberProps[s]&&(n=j(n)),this._setProp(s,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,s=!1){if(t!==this._props[e]&&(this._dirty=!0,t===fo?delete this._props[e]:(this._props[e]=t,"key"===e&&this._app&&(this._app._ceVNode.key=t)),s&&this._instance&&this._update(),n)){const n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),!0===t?this.setAttribute(E(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(E(e),t+""):t||this.removeAttribute(E(e)),n&&n.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),Mo(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const t=dr(this._def,l(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,x(t[0])?l({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),E(e)!==e&&t(E(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}const s=this._nonce,r=this.shadowRoot,o=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(r);let a=null;for(let i=e.length-1;i>=0;i--){const l=document.createElement("style");s&&l.setAttribute("nonce",s),l.textContent=e[i],r.insertBefore(l,a||o),a=l,0===i&&(n||this._styleAnchors.set(this._def,l),t&&this._styleAnchors.set(t,l))}}_getStyleAnchor(e){if(!e)return null;const t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){const e=this._slots={};let t;for(;t=this.firstChild;){const n=1===t.nodeType&&t.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){const e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){const s=e[n],r=s.getAttribute("name")||"default",o=this._slots[r],a=s.parentNode;if(o)for(const e of o){if(t&&1===e.nodeType){const n=t+"-s",s=document.createTreeWalker(e,1);let r;for(e.setAttribute(n,"");r=s.nextNode();)r.setAttribute(n,"")}a.insertBefore(e,s)}else for(;s.firstChild;)a.insertBefore(s.firstChild,s);a.removeChild(s)}}_getSlots(){const e=[this];this._teleportTargets&&e.push(...this._teleportTargets);const t=new Set;for(const n of e){const e=n.querySelectorAll("slot");for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return!1!==this._def.shadowRoot}_removeChildStyle(e){}}const go=e=>{const t=e.props["onUpdate:modelValue"]||!1;return f(t)?e=>P(t,e):t};function vo(e){e.target.composing=!0}function yo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const bo=Symbol("_assign");function _o(e,t,n){return t&&(e=e.trim()),n&&(e=F(e)),e}const wo={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[bo]=go(r);const o=s||r.props&&"number"===r.props.type;so(e,t?"change":"input",t=>{t.target.composing||e[bo](_o(e.value,n,o))}),(n||o)&&so(e,"change",()=>{e.value=_o(e.value,n,o)}),t||(so(e,"compositionstart",vo),so(e,"compositionend",yo),so(e,"change",yo))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},a){if(e[bo]=go(a),e.composing)return;const i=null==t?"":t;if((!o&&"number"!==e.type||/^0\d/.test(e.value)?e.value:F(e.value))===i)return;const l=e.getRootNode();if((l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&"range"!==e.type){if(s&&t===n)return;if(r&&e.value.trim()===i)return}e.value=i}},ko={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},xo=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=n=>{if(!("key"in n))return;const s=E(n.key);return t.some(e=>e===s||ko[e]===s)?e(n):void 0})},Co=l({patchProp:(e,t,n,s,r,o)=>{const l="svg"===r;"class"===t?function(e,t,n){const s=e[Br];s&&(t=(t?[t,...s]:[...s]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,s,l):"style"===t?function(e,t,n){const s=e.style,r=v(n);let o=!1;if(n&&!r){if(t)if(v(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Kr(s,t,"")}else for(const e in t)null==n[e]&&Kr(s,e,"");for(const r in n){"display"===r&&(o=!0);const a=n[r];null!=a?Qr(e,r,!v(t)&&t?t[r]:void 0,a)||Kr(s,r,a):Kr(s,r,"")}}else if(r){if(t!==n){const e=s[Yr];e&&(n+=";"+e),s.cssText=n,o=Jr.test(n)}}else t&&e.removeAttribute("style");Vr in e&&(e[Vr]=o?s.display:"",e[qr]&&(s.display="none"))}(e,n,s):a(t)?i(t)||oo(e,t,0,s,o):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,s){if(s)return"innerHTML"===t||"textContent"===t||!!(t in e&&uo(t)&&g(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(uo(t)&&v(n))return!1;return t in e}(e,t,s,l))?(no(e,t,s),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||to(e,t,s,l,0,"value"!==t)):e._isVueCE&&(function(e,t){const n=e._def.props;if(!n)return!1;const s=O(t);return Array.isArray(n)?n.some(e=>O(e)===s):Object.keys(n).some(e=>O(e)===s)}(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!v(s)))?no(e,O(t),s,0,t):("true-value"===t?e._trueValue=s:"false-value"===t&&(e._falseValue=s),to(e,t,s,l))}},Hr);let So;function To(){return So||(So=Us(Co))}const Mo=(...e)=>{To().render(...e)},Oo=(...e)=>{const t=To().createApp(...e),{mount:n}=t;return t.mount=e=>{const s=function(e){if(v(e)){return document.querySelector(e)}return e}
|
|
23
23
|
/*!
|
|
24
24
|
* pinia v3.0.3
|
|
25
25
|
* (c) 2025 Eduardo San Martin Morote
|
|
26
26
|
* @license MIT
|
|
27
|
-
*/(e);if(!
|
|
28
|
-
/*! #__NO_SIDE_EFFECTS__ */function
|
|
27
|
+
*/(e);if(!s)return;const r=t._component;g(r)||r.render||r.template||(r.template=s.innerHTML),1===s.nodeType&&(s.textContent="");const o=n(s,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t};let Lo;const Eo=e=>Lo=e,Ro=Symbol();function Ao(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var $o,Po;(Po=$o||($o={})).direct="direct",Po.patchObject="patch object",Po.patchFunction="patch function";const Io=()=>{};function Fo(e,t,n,s=Io){e.push(t);const r=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),s())};var o;return!n&&se()&&(o=r,Q&&Q.cleanups.push(o)),r}function jo(e,...t){e.slice().forEach(e=>{e(...t)})}const No=e=>e(),Do=Symbol(),Uo=Symbol();function zo(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];Ao(r)&&Ao(s)&&e.hasOwnProperty(n)&&!kt(s)&&!ht(s)?e[n]=zo(r,s):e[n]=s}return e}const Wo=Symbol();function Ho(e){return!Ao(e)||!Object.prototype.hasOwnProperty.call(e,Wo)}const{assign:Bo}=Object;function Vo(e){return!(!kt(e)||!e.effect)}function qo(e,t,n={},s,r,o){let a;const i=Bo({actions:{}},n),l={deep:!0};let c,u,d,f=[],p=[];const h=s.state.value[e];let m;function g(t){let n;c=u=!1,"function"==typeof t?(t(s.state.value[e]),n={type:$o.patchFunction,storeId:e,events:d}):(zo(s.state.value[e],t),n={type:$o.patchObject,payload:t,storeId:e,events:d});const r=m=Symbol();Kt().then(()=>{m===r&&(c=!0)}),u=!0,jo(f,n,s.state.value[e])}o||h||(s.state.value[e]={});const v=o?function(){const{state:e}=n,t=e?e():{};this.$patch(e=>{Bo(e,t)})}:Io;const y=(t,n="")=>{if(Do in t)return t[Uo]=n,t;const r=function(){Eo(s);const n=Array.from(arguments),o=[],a=[];let i;jo(p,{args:n,name:r[Uo],store:b,after:function(e){o.push(e)},onError:function(e){a.push(e)}});try{i=t.apply(this&&this.$id===e?this:b,n)}catch(l){throw jo(a,l),l}return i instanceof Promise?i.then(e=>(jo(o,e),e)).catch(e=>(jo(a,e),Promise.reject(e))):(jo(o,i),i)};return r[Do]=!0,r[Uo]=n,r},b=ut({_p:s,$id:e,$onAction:Fo.bind(null,p),$patch:g,$reset:v,$subscribe(t,n={}){const r=Fo(f,t,n.detached,()=>o()),o=a.run(()=>fn(()=>s.state.value[e],s=>{("sync"===n.flush?u:c)&&t({storeId:e,type:$o.direct,events:d},s)},Bo({},l,n)));return r},$dispose:function(){a.stop(),f=[],p=[],s._s.delete(e)}});s._s.set(e,b);const _=(s._a&&s._a.runWithContext||No)(()=>s._e.run(()=>(a=ne()).run(()=>t({action:y}))));for(const w in _){const t=_[w];if(kt(t)&&!Vo(t)||ht(t))o||(h&&Ho(t)&&(kt(t)?t.value=h[w]:zo(t,h[w])),s.state.value[e][w]=t);else if("function"==typeof t){const e=y(t,w);_[w]=e,i.actions[w]=t}}return Bo(b,_),Bo(yt(b),_),Object.defineProperty(b,"$state",{get:()=>s.state.value[e],set:e=>{g(t=>{Bo(t,e)})}}),s._p.forEach(e=>{Bo(b,a.run(()=>e({store:b,app:s._a,pinia:s,options:i})))}),h&&o&&n.hydrate&&n.hydrate(b.$state,h),c=!0,u=!0,b}
|
|
28
|
+
/*! #__NO_SIDE_EFFECTS__ */function Yo(e,t,n){let s;const r="function"==typeof t;function o(n,o){const a=!(!xr()&&!ms);(n=n||(a?un(Ro,null):null))&&Eo(n),(n=Lo)._s.has(e)||(r?qo(e,t,s,n):function(e,t,n){const{state:s,actions:r,getters:o}=t,a=n.state.value[e];let i;i=qo(e,function(){a||(n.state.value[e]=s?s():{});const t=Et(n.state.value[e]);return Bo(t,r,Object.keys(o||{}).reduce((t,s)=>(t[s]=bt(Ir(()=>{Eo(n);const t=n._s.get(e);return o[s].call(t,t)})),t),{}))},t,n,0,!0)}(e,s,n));return n._s.get(e)}return s=r?n:t,o.$id=e,o}function Jo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zo,Ko={exports:{}};function Go(){return Zo||(Zo=1,Ko.exports=function(){var e=1e3,t=6e4,n=36e5,s="millisecond",r="second",o="minute",a="hour",i="day",l="week",c="month",u="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var s=String(e);return!s||s.length>=t?e:""+Array(t+1-s.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),s=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+v(s,2,"0")+":"+v(r,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var s=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(s,c),o=n-r<0,a=t.clone().add(s+(o?-1:1),c);return+(-(s+(n-r)/(o?r-a:a-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:i,D:f,h:a,m:o,s:r,ms:s,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",_={};_[b]=g;var w="$isDayjsObject",k=function(e){return e instanceof T||!(!e||!e[w])},x=function e(t,n,s){var r;if(!t)return b;if("string"==typeof t){var o=t.toLowerCase();_[o]&&(r=o),n&&(_[o]=n,r=o);var a=t.split("-");if(!r&&a.length>1)return e(a[0])}else{var i=t.name;_[i]=t,r=i}return!s&&r&&(b=r),r||!s&&b},C=function(e,t){if(k(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new T(n)},S=y;S.l=x,S.i=k,S.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function g(e){this.$L=x(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var s=t.match(h);if(s){var r=s[2]-1||0,o=(s[7]||"0").substring(0,3);return n?new Date(Date.UTC(s[1],r,s[3]||1,s[4]||0,s[5]||0,s[6]||0,o)):new Date(s[1],r,s[3]||1,s[4]||0,s[5]||0,s[6]||0,o)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return S},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return C(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<C(e)},v.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,s=!!S.u(t)||t,u=S.p(e),p=function(e,t){var r=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return s?r:r.endOf(i)},h=function(e,t){return S.w(n.toDate()[e].apply(n.toDate("s"),(s?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return s?p(1,0):p(31,11);case c:return s?p(1,g):p(0,g+1);case l:var b=this.$locale().weekStart||0,_=(m<b?m+7:m)-b;return p(s?v-_:v+(6-_),g);case i:case f:return h(y+"Hours",0);case a:return h(y+"Minutes",1);case o:return h(y+"Seconds",2);case r:return h(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=S.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[i]=u+"Date",n[f]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[o]=u+"Minutes",n[r]=u+"Seconds",n[s]=u+"Milliseconds",n)[l],h=l===i?this.$D+(t-this.$W):t;if(l===c||l===d){var m=this.clone().set(f,1);m.$d[p](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[S.p(e)]()},v.add=function(s,u){var f,p=this;s=Number(s);var h=S.p(u),m=function(e){var t=C(p);return S.w(t.date(t.date()+Math.round(e*s)),p)};if(h===c)return this.set(c,this.$M+s);if(h===d)return this.set(d,this.$y+s);if(h===i)return m(1);if(h===l)return m(7);var g=(f={},f[o]=t,f[a]=n,f[r]=e,f)[h]||1,v=this.$d.getTime()+s*g;return S.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var s=e||"YYYY-MM-DDTHH:mm:ssZ",r=S.z(this),o=this.$H,a=this.$m,i=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,r,o){return e&&(e[n]||e(t,s))||r[n].slice(0,o)},f=function(e){return S.s(o%12||12,e,"0")},h=u||function(e,t,n){var s=e<12?"AM":"PM";return n?s.toLowerCase():s};return s.replace(m,function(e,s){return s||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return S.s(t.$y,4,"0");case"M":return i+1;case"MM":return S.s(i+1,2,"0");case"MMM":return d(n.monthsShort,i,c,3);case"MMMM":return d(c,i);case"D":return t.$D;case"DD":return S.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return S.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(o,a,!0);case"A":return h(o,a,!1);case"m":return String(a);case"mm":return S.s(a,2,"0");case"s":return String(t.$s);case"ss":return S.s(t.$s,2,"0");case"SSS":return S.s(t.$ms,3,"0");case"Z":return r}return null}(e)||r.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(s,f,p){var h,m=this,g=S.p(f),v=C(s),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,_=function(){return S.m(m,v)};switch(g){case d:h=_()/12;break;case c:h=_();break;case u:h=_()/3;break;case l:h=(b-y)/6048e5;break;case i:h=(b-y)/864e5;break;case a:h=b/n;break;case o:h=b/t;break;case r:h=b/e;break;default:h=b}return p?h:S.a(h)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return _[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),s=x(e,t,!0);return s&&(n.$L=s),n},v.clone=function(){return S.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),M=T.prototype;return C.prototype=M,[["$ms",s],["$s",r],["$m",o],["$H",a],["$W",i],["$M",c],["$y",d],["$D",f]].forEach(function(e){M[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),C.extend=function(e,t){return e.$i||(e(t,T,C),e.$i=!0),C},C.locale=x,C.isDayjs=k,C.unix=function(e){return C(1e3*e)},C.en=_[b],C.Ls=_,C.p={},C}()),Ko.exports}const Xo=Jo(Go());var Qo,ea={exports:{}};var ta=(Qo||(Qo=1,ea.exports=function(e,t,n){e=e||{};var s=t.prototype,r={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(e,t,n,r){return s.fromToBase(e,t,n,r)}n.en.relativeTime=r,s.fromToBase=function(t,s,o,a,i){for(var l,c,u,d=o.$locale().relativeTime||r,f=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],p=f.length,h=0;h<p;h+=1){var m=f[h];m.d&&(l=a?n(t).diff(o,m.d,!0):o.diff(t,m.d,!0));var g=(e.rounding||Math.round)(Math.abs(l));if(u=l>0,g<=m.r||!m.r){g<=1&&h>0&&(m=f[h-1]);var v=d[m.l];i&&(g=i(""+g)),c="string"==typeof v?v.replace("%d",g):v(g,s,m.l,u);break}}if(s)return c;var y=u?d.future:d.past;return"function"==typeof y?y(c):y.replace("%s",c)},s.to=function(e,t){return o(e,t,this,!0)},s.from=function(e,t){return o(e,t,this)};var a=function(e){return e.$u?n.utc():n()};s.toNow=function(e){return this.to(a(this),e)},s.fromNow=function(e){return this.from(a(this),e)}}),ea.exports);const na=Jo(ta);
|
|
29
29
|
/*!
|
|
30
30
|
* shared v11.1.11
|
|
31
31
|
* (c) 2025 kazuya kawaguchi
|
|
32
32
|
* Released under the MIT License.
|
|
33
|
-
*/function
|
|
33
|
+
*/function sa(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const ra="undefined"!=typeof window,oa=(e,t=!1)=>t?Symbol.for(e):Symbol(e),aa=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ia=e=>"number"==typeof e&&isFinite(e),la=e=>"[object RegExp]"===Sa(e),ca=e=>Ta(e)&&0===Object.keys(e).length,ua=Object.assign,da=Object.create,fa=(e=null)=>da(e);let pa;const ha=()=>pa||(pa="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:fa());function ma(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function ga(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}const va=Object.prototype.hasOwnProperty;function ya(e,t){return va.call(e,t)}const ba=Array.isArray,_a=e=>"function"==typeof e,wa=e=>"string"==typeof e,ka=e=>"boolean"==typeof e,xa=e=>null!==e&&"object"==typeof e,Ca=Object.prototype.toString,Sa=e=>Ca.call(e),Ta=e=>"[object Object]"===Sa(e);function Ma(e,t=""){return e.reduce((e,n,s)=>0===s?e+n:e+t+n,"")}const Oa=e=>!xa(e)||ba(e);function La(e,t){if(Oa(e)||Oa(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:e,des:t}=n.pop();Object.keys(e).forEach(s=>{"__proto__"!==s&&(xa(e[s])&&!xa(t[s])&&(t[s]=Array.isArray(e[s])?[]:fa()),Oa(t[s])||Oa(e[s])?t[s]=e[s]:n.push({src:e[s],des:t[s]}))})}}
|
|
34
34
|
/*!
|
|
35
35
|
* message-compiler v11.1.11
|
|
36
36
|
* (c) 2025 kazuya kawaguchi
|
|
37
37
|
* Released under the MIT License.
|
|
38
|
-
*/function Ea(e,t,n){return{start:e,end:t}}const Ra=1,$a=2,Aa=3,Pa=4,Fa=5,ja=6,Na=7,Da=8,Ia=9,Ua=10,za=11,Wa=12,Ha=13,Ba=14;function Va(e,t,n={}){const{domain:r,messages:s,args:o}=n,a=new SyntaxError(String(e));return a.code=e,t&&(a.location=t),a.domain=r,a}function Ya(e){throw e}const qa=" ",Ja="\n",Za=String.fromCharCode(8232),Ga=String.fromCharCode(8233);function Ka(e){const t=e;let n=0,r=1,s=1,o=0;const a=e=>"\r"===t[e]&&t[e+1]===Ja,i=e=>t[e]===Ga,l=e=>t[e]===Za,c=e=>a(e)||(e=>t[e]===Ja)(e)||i(e)||l(e),u=e=>a(e)||i(e)||l(e)?Ja:t[e];function d(){return o=0,c(n)&&(r++,s=0),a(n)&&n++,n++,s++,t[n]}return{index:()=>n,line:()=>r,column:()=>s,peekOffset:()=>o,charAt:u,currentChar:()=>u(n),currentPeek:()=>u(n+o),next:d,peek:function(){return a(n+o)&&o++,o++,t[n+o]},reset:function(){n=0,r=1,s=1,o=0},resetPeek:function(e=0){o=e},skipToPeek:function(){const e=n+o;for(;e!==n;)d();o=0}}}const Xa=void 0;function Qa(e,t={}){const n=!1!==t.location,r=Ka(e),s=()=>r.index(),o=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},a=o(),i=s(),l={currentType:13,offset:i,startLoc:a,endLoc:a,lastType:13,lastOffset:i,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function d(e,t,r,...s){const o=c();if(t.column+=r,t.offset+=r,u){const r=Va(e,n?Ea(o.startLoc,t):null,{domain:"tokenizer",args:s});u(r)}}function p(e,t,r){e.endLoc=o(),e.currentType=t;const s={type:t};return n&&(s.loc=Ea(e.startLoc,e.endLoc)),null!=r&&(s.value=r),s}const f=e=>p(e,13);function h(e,t){return e.currentChar()===t?(e.next(),t):(d(Ra,o(),0,t),"")}function m(e){let t="";for(;e.currentPeek()===qa||e.currentPeek()===Ja;)t+=e.currentPeek(),e.peek();return t}function g(e){const t=m(e);return e.skipToPeek(),t}function v(e){if(e===Xa)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function y(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=function(e){if(e===Xa)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function b(e){m(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function _(e,t=!0){const n=(t=!1,r="")=>{const s=e.currentPeek();return"{"===s?t:"@"!==s&&s?"|"===s?!(r===qa||r===Ja):s===qa?(e.peek(),n(!0,qa)):s!==Ja||(e.peek(),n(!0,Ja)):t},r=n();return t&&e.resetPeek(),r}function w(e,t){const n=e.currentChar();return n===Xa?Xa:t(n)?(e.next(),n):null}function k(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function x(e){return w(e,k)}function C(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t||45===t}function S(e){return w(e,C)}function M(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function T(e){return w(e,M)}function O(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function L(e){return w(e,O)}function E(e){let t="",n="";for(;t=T(e);)n+=t;return n}function R(e){return"'"!==e&&e!==Ja}function $(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return A(e,t,4);case"U":return A(e,t,6);default:return d(Pa,o(),0,t),""}}function A(e,t,n){h(e,t);let r="";for(let s=0;s<n;s++){const n=L(e);if(!n){d(Fa,o(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function P(e){return"{"!==e&&"}"!==e&&e!==qa&&e!==Ja}function F(e){g(e);const t=h(e,"|");return g(e),t}function j(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&d(Ia,o(),0),e.next(),n=p(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&d(Da,o(),0),e.next(),n=p(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&d(Na,o(),0),n=N(e,t)||f(t),t.braceNest=0,n;default:{let r=!0,s=!0,a=!0;if(b(e))return t.braceNest>0&&d(Na,o(),0),n=p(t,1,F(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(4===t.currentType||5===t.currentType||6===t.currentType))return d(Na,o(),0),t.braceNest=0,D(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=v(e.currentPeek());return e.resetPeek(),r}(e,t))return n=p(t,4,function(e){g(e);let t="",n="";for(;t=S(e);)n+=t;return e.currentChar()===Xa&&d(Na,o(),0),n}(e)),g(e),n;if(s=y(e,t))return n=p(t,5,function(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${E(e)}`):t+=E(e),e.currentChar()===Xa&&d(Na,o(),0),t}(e)),g(e),n;if(a=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=p(t,6,function(e){g(e),h(e,"'");let t="",n="";for(;t=w(e,R);)n+="\\"===t?$(e):t;const r=e.currentChar();return r===Ja||r===Xa?(d(Aa,o(),0),r===Ja&&(e.next(),h(e,"'")),n):(h(e,"'"),n)}(e)),g(e),n;if(!r&&!s&&!a)return n=p(t,12,function(e){g(e);let t="",n="";for(;t=w(e,P);)n+=t;return n}(e)),d($a,o(),0,n.value),g(e),n;break}}return n}function N(e,t){const{currentType:n}=t;let r=null;const s=e.currentChar();switch(7!==n&&8!==n&&11!==n&&9!==n||s!==Ja&&s!==qa||d(Ua,o(),0),s){case"@":return e.next(),r=p(t,7,"@"),t.inLinked=!0,r;case".":return g(e),e.next(),p(t,8,".");case":":return g(e),e.next(),p(t,9,":");default:return b(e)?(r=p(t,1,F(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(7!==n)return!1;m(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(7!==n&&11!==n)return!1;m(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(g(e),N(e,t)):function(e,t){const{currentType:n}=t;if(8!==n)return!1;m(e);const r=v(e.currentPeek());return e.resetPeek(),r}(e,t)?(g(e),p(t,11,function(e){let t="",n="";for(;t=x(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(9!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?v(e.peek()):!("@"===t||"|"===t||":"===t||"."===t||t===qa||!t)&&(t===Ja?(e.peek(),r()):_(e,!1))},s=r();return e.resetPeek(),s}(e,t)?(g(e),"{"===s?j(e,t)||r:p(t,10,function(e){const t=n=>{const r=e.currentChar();return"{"!==r&&"@"!==r&&"|"!==r&&"("!==r&&")"!==r&&r?r===qa?n:(n+=r,e.next(),t(n)):n};return t("")}(e))):(7===n&&d(Ua,o(),0),t.braceNest=0,t.inLinked=!1,D(e,t))}}function D(e,t){let n={type:13};if(t.braceNest>0)return j(e,t)||f(t);if(t.inLinked)return N(e,t)||f(t);switch(e.currentChar()){case"{":return j(e,t)||f(t);case"}":return d(ja,o(),0),e.next(),p(t,3,"}");case"@":return N(e,t)||f(t);default:if(b(e))return n=p(t,1,F(e)),t.braceNest=0,t.inLinked=!1,n;if(_(e))return p(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if(n===qa||n===Ja)if(_(e))t+=n,e.next();else{if(b(e))break;t+=n,e.next()}else t+=n,e.next()}return t}(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:a}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=a,l.offset=s(),l.startLoc=o(),r.currentChar()===Xa?p(l,13):D(r,l)},currentOffset:s,currentPosition:o,context:c}}const ei=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function ti(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function ni(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,r,s,o,...a){const i=e.currentPosition();if(i.offset+=o,i.column+=o,n){const e=Va(r,t?Ea(s,i):null,{domain:"parser",args:a});n(e)}}function s(e,n,r){const s={type:e};return t&&(s.start=n,s.end=n,s.loc={start:r,end:r}),s}function o(e,n,r,s){t&&(e.end=n,e.loc&&(e.loc.end=r))}function a(e,t){const n=e.context(),r=s(3,n.offset,n.startLoc);return r.value=t,o(r,e.currentOffset(),e.currentPosition()),r}function i(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:a}=n,i=s(5,r,a);return i.index=parseInt(t,10),e.nextToken(),o(i,e.currentOffset(),e.currentPosition()),i}function l(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:a}=n,i=s(4,r,a);return i.key=t,e.nextToken(),o(i,e.currentOffset(),e.currentPosition()),i}function c(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:a}=n,i=s(9,r,a);return i.value=t.replace(ei,ti),e.nextToken(),o(i,e.currentOffset(),e.currentPosition()),i}function u(e){const t=e.context(),n=s(6,t.offset,t.startLoc);let a=e.nextToken();if(8===a.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:a,lastStartLoc:i}=n,l=s(8,a,i);return 11!==t.type?(r(e,Wa,n.lastStartLoc,0),l.value="",o(l,a,i),{nextConsumeToken:t,node:l}):(null==t.value&&r(e,Ba,n.lastStartLoc,0,ri(t)),l.value=t.value||"",o(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);n.modifier=t.node,a=t.nextConsumeToken||e.nextToken()}switch(9!==a.type&&r(e,Ba,t.lastStartLoc,0,ri(a)),a=e.nextToken(),2===a.type&&(a=e.nextToken()),a.type){case 10:null==a.value&&r(e,Ba,t.lastStartLoc,0,ri(a)),n.key=function(e,t){const n=e.context(),r=s(7,n.offset,n.startLoc);return r.value=t,o(r,e.currentOffset(),e.currentPosition()),r}(e,a.value||"");break;case 4:null==a.value&&r(e,Ba,t.lastStartLoc,0,ri(a)),n.key=l(e,a.value||"");break;case 5:null==a.value&&r(e,Ba,t.lastStartLoc,0,ri(a)),n.key=i(e,a.value||"");break;case 6:null==a.value&&r(e,Ba,t.lastStartLoc,0,ri(a)),n.key=c(e,a.value||"");break;default:{r(e,Ha,t.lastStartLoc,0);const i=e.context(),l=s(7,i.offset,i.startLoc);return l.value="",o(l,i.offset,i.startLoc),n.key=l,o(n,i.offset,i.startLoc),{nextConsumeToken:a,node:n}}}return o(n,e.currentOffset(),e.currentPosition()),{node:n}}function d(e){const t=e.context(),n=s(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let d=null;do{const s=d||e.nextToken();switch(d=null,s.type){case 0:null==s.value&&r(e,Ba,t.lastStartLoc,0,ri(s)),n.items.push(a(e,s.value||""));break;case 5:null==s.value&&r(e,Ba,t.lastStartLoc,0,ri(s)),n.items.push(i(e,s.value||""));break;case 4:null==s.value&&r(e,Ba,t.lastStartLoc,0,ri(s)),n.items.push(l(e,s.value||""));break;case 6:null==s.value&&r(e,Ba,t.lastStartLoc,0,ri(s)),n.items.push(c(e,s.value||""));break;case 7:{const t=u(e);n.items.push(t.node),d=t.nextConsumeToken||null;break}}}while(13!==t.currentType&&1!==t.currentType);return o(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function p(e){const t=e.context(),{offset:n,startLoc:a}=t,i=d(e);return 13===t.currentType?i:function(e,t,n,a){const i=e.context();let l=0===a.items.length;const c=s(1,t,n);c.cases=[],c.cases.push(a);do{const t=d(e);l||(l=0===t.items.length),c.cases.push(t)}while(13!==i.currentType);return l&&r(e,za,n,0),o(c,e.currentOffset(),e.currentPosition()),c}(e,n,a,i)}return{parse:function(n){const a=Qa(n,ua({},e)),i=a.context(),l=s(0,i.offset,i.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=p(a),e.onCacheKey&&(l.cacheKey=e.onCacheKey(n)),13!==i.currentType&&r(a,Ba,i.lastStartLoc,0,n[i.offset]||""),o(l,a.currentOffset(),a.currentPosition()),l}}}function ri(e){if(13===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function si(e,t){for(let n=0;n<e.length;n++)oi(e[n],t)}function oi(e,t){switch(e.type){case 1:si(e.cases,t),t.helper("plural");break;case 2:si(e.items,t);break;case 6:oi(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function ai(e,t={}){const n=function(e){const t={ast:e,helpers:new Set};return{context:()=>t,helper:e=>(t.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&oi(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function ii(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(3!==r.type&&9!==r.type)break;if(null==r.value)break;t.push(r.value)}if(t.length===e.items.length){e.static=Ta(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];3!==n.type&&9!==n.type||delete n.value}}}}function li(e){switch(e.t=e.type,e.type){case 0:{const t=e;li(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let e=0;e<n.length;e++)li(n[e]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let e=0;e<n.length;e++)li(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;li(t.key),t.k=t.key,delete t.key,t.modifier&&(li(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function ci(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?ci(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const s=t.cases.length;for(let n=0;n<s&&(ci(e,t.cases[n]),n!==s-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}(e,t);break;case 2:!function(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const s=t.items.length;for(let o=0;o<s&&(ci(e,t.items[o]),o!==s-1);o++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),ci(e,t.key),t.modifier?(e.push(", "),ci(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}(e,t);break;case 8:case 7:case 9:case 3:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t)}}function ui(e,t={}){const n=ua({},t),r=!!n.jit,s=!!n.minify,o=null==n.optimize||n.optimize,a=ni(n).parse(e);return r?(o&&function(e){const t=e.body;2===t.type?ii(t):t.cases.forEach(e=>ii(e))}(a),s&&li(a),{ast:a,code:""}):(ai(a,n),((e,t={})=>{const n=wa(t.mode)?t.mode:"normal",r=wa(t.filename)?t.filename:"message.intl";t.sourceMap;const s=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",o=t.needIndent?t.needIndent:"arrow"!==n,a=e.helpers||[],i=function(e,t){const{filename:n,breakLineCode:r,needIndent:s}=t,o=!1!==t.location,a={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:s,indentLevel:0};function i(e,t){a.code+=e}function l(e,t=!0){const n=t?r:"";i(s?n+" ".repeat(e):n)}return o&&e.loc&&(a.source=e.loc.source),{context:()=>a,push:i,indent:function(e=!0){const t=++a.indentLevel;e&&l(t)},deindent:function(e=!0){const t=--a.indentLevel;e&&l(t)},newline:function(){l(a.indentLevel)},helper:e=>`_${e}`,needIndent:()=>a.needIndent}}(e,{filename:r,breakLineCode:s,needIndent:o});i.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(o),a.length>0&&(i.push(`const { ${Ta(a.map(e=>`${e}: _${e}`),", ")} } = ctx`),i.newline()),i.push("return "),ci(i,e),i.deindent(o),i.push("}"),delete e.helpers;const{code:l,map:c}=i.context();return{ast:e,code:l,map:c?c.toJSON():void 0}})(a,n))}
|
|
38
|
+
*/function Ea(e,t,n){return{start:e,end:t}}const Ra=1,Aa=2,$a=3,Pa=4,Ia=5,Fa=6,ja=7,Na=8,Da=9,Ua=10,za=11,Wa=12,Ha=13,Ba=14;function Va(e,t,n={}){const{domain:s,messages:r,args:o}=n,a=new SyntaxError(String(e));return a.code=e,t&&(a.location=t),a.domain=s,a}function qa(e){throw e}const Ya=" ",Ja="\n",Za=String.fromCharCode(8232),Ka=String.fromCharCode(8233);function Ga(e){const t=e;let n=0,s=1,r=1,o=0;const a=e=>"\r"===t[e]&&t[e+1]===Ja,i=e=>t[e]===Ka,l=e=>t[e]===Za,c=e=>a(e)||(e=>t[e]===Ja)(e)||i(e)||l(e),u=e=>a(e)||i(e)||l(e)?Ja:t[e];function d(){return o=0,c(n)&&(s++,r=0),a(n)&&n++,n++,r++,t[n]}return{index:()=>n,line:()=>s,column:()=>r,peekOffset:()=>o,charAt:u,currentChar:()=>u(n),currentPeek:()=>u(n+o),next:d,peek:function(){return a(n+o)&&o++,o++,t[n+o]},reset:function(){n=0,s=1,r=1,o=0},resetPeek:function(e=0){o=e},skipToPeek:function(){const e=n+o;for(;e!==n;)d();o=0}}}const Xa=void 0;function Qa(e,t={}){const n=!1!==t.location,s=Ga(e),r=()=>s.index(),o=()=>{return e=s.line(),t=s.column(),n=s.index(),{line:e,column:t,offset:n};var e,t,n},a=o(),i=r(),l={currentType:13,offset:i,startLoc:a,endLoc:a,lastType:13,lastOffset:i,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function d(e,t,s,...r){const o=c();if(t.column+=s,t.offset+=s,u){const s=Va(e,n?Ea(o.startLoc,t):null,{domain:"tokenizer",args:r});u(s)}}function f(e,t,s){e.endLoc=o(),e.currentType=t;const r={type:t};return n&&(r.loc=Ea(e.startLoc,e.endLoc)),null!=s&&(r.value=s),r}const p=e=>f(e,13);function h(e,t){return e.currentChar()===t?(e.next(),t):(d(Ra,o(),0,t),"")}function m(e){let t="";for(;e.currentPeek()===Ya||e.currentPeek()===Ja;)t+=e.currentPeek(),e.peek();return t}function g(e){const t=m(e);return e.skipToPeek(),t}function v(e){if(e===Xa)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function y(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const s=function(e){if(e===Xa)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),s}function b(e){m(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function _(e,t=!0){const n=(t=!1,s="")=>{const r=e.currentPeek();return"{"===r?t:"@"!==r&&r?"|"===r?!(s===Ya||s===Ja):r===Ya?(e.peek(),n(!0,Ya)):r!==Ja||(e.peek(),n(!0,Ja)):t},s=n();return t&&e.resetPeek(),s}function w(e,t){const n=e.currentChar();return n===Xa?Xa:t(n)?(e.next(),n):null}function k(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function x(e){return w(e,k)}function C(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t||45===t}function S(e){return w(e,C)}function T(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function M(e){return w(e,T)}function O(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function L(e){return w(e,O)}function E(e){let t="",n="";for(;t=M(e);)n+=t;return n}function R(e){return"'"!==e&&e!==Ja}function A(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return $(e,t,4);case"U":return $(e,t,6);default:return d(Pa,o(),0,t),""}}function $(e,t,n){h(e,t);let s="";for(let r=0;r<n;r++){const n=L(e);if(!n){d(Ia,o(),0,`\\${t}${s}${e.currentChar()}`);break}s+=n}return`\\${t}${s}`}function P(e){return"{"!==e&&"}"!==e&&e!==Ya&&e!==Ja}function I(e){g(e);const t=h(e,"|");return g(e),t}function F(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&d(Da,o(),0),e.next(),n=f(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&d(Na,o(),0),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&d(ja,o(),0),n=j(e,t)||p(t),t.braceNest=0,n;default:{let s=!0,r=!0,a=!0;if(b(e))return t.braceNest>0&&d(ja,o(),0),n=f(t,1,I(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(4===t.currentType||5===t.currentType||6===t.currentType))return d(ja,o(),0),t.braceNest=0,N(e,t);if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const s=v(e.currentPeek());return e.resetPeek(),s}(e,t))return n=f(t,4,function(e){g(e);let t="",n="";for(;t=S(e);)n+=t;return e.currentChar()===Xa&&d(ja,o(),0),n}(e)),g(e),n;if(r=y(e,t))return n=f(t,5,function(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${E(e)}`):t+=E(e),e.currentChar()===Xa&&d(ja,o(),0),t}(e)),g(e),n;if(a=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const s="'"===e.currentPeek();return e.resetPeek(),s}(e,t))return n=f(t,6,function(e){g(e),h(e,"'");let t="",n="";for(;t=w(e,R);)n+="\\"===t?A(e):t;const s=e.currentChar();return s===Ja||s===Xa?(d($a,o(),0),s===Ja&&(e.next(),h(e,"'")),n):(h(e,"'"),n)}(e)),g(e),n;if(!s&&!r&&!a)return n=f(t,12,function(e){g(e);let t="",n="";for(;t=w(e,P);)n+=t;return n}(e)),d(Aa,o(),0,n.value),g(e),n;break}}return n}function j(e,t){const{currentType:n}=t;let s=null;const r=e.currentChar();switch(7!==n&&8!==n&&11!==n&&9!==n||r!==Ja&&r!==Ya||d(Ua,o(),0),r){case"@":return e.next(),s=f(t,7,"@"),t.inLinked=!0,s;case".":return g(e),e.next(),f(t,8,".");case":":return g(e),e.next(),f(t,9,":");default:return b(e)?(s=f(t,1,I(e)),t.braceNest=0,t.inLinked=!1,s):function(e,t){const{currentType:n}=t;if(7!==n)return!1;m(e);const s="."===e.currentPeek();return e.resetPeek(),s}(e,t)||function(e,t){const{currentType:n}=t;if(7!==n&&11!==n)return!1;m(e);const s=":"===e.currentPeek();return e.resetPeek(),s}(e,t)?(g(e),j(e,t)):function(e,t){const{currentType:n}=t;if(8!==n)return!1;m(e);const s=v(e.currentPeek());return e.resetPeek(),s}(e,t)?(g(e),f(t,11,function(e){let t="",n="";for(;t=x(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(9!==n)return!1;const s=()=>{const t=e.currentPeek();return"{"===t?v(e.peek()):!("@"===t||"|"===t||":"===t||"."===t||t===Ya||!t)&&(t===Ja?(e.peek(),s()):_(e,!1))},r=s();return e.resetPeek(),r}(e,t)?(g(e),"{"===r?F(e,t)||s:f(t,10,function(e){const t=n=>{const s=e.currentChar();return"{"!==s&&"@"!==s&&"|"!==s&&"("!==s&&")"!==s&&s?s===Ya?n:(n+=s,e.next(),t(n)):n};return t("")}(e))):(7===n&&d(Ua,o(),0),t.braceNest=0,t.inLinked=!1,N(e,t))}}function N(e,t){let n={type:13};if(t.braceNest>0)return F(e,t)||p(t);if(t.inLinked)return j(e,t)||p(t);switch(e.currentChar()){case"{":return F(e,t)||p(t);case"}":return d(Fa,o(),0),e.next(),f(t,3,"}");case"@":return j(e,t)||p(t);default:if(b(e))return n=f(t,1,I(e)),t.braceNest=0,t.inLinked=!1,n;if(_(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if(n===Ya||n===Ja)if(_(e))t+=n,e.next();else{if(b(e))break;t+=n,e.next()}else t+=n,e.next()}return t}(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:a}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=a,l.offset=r(),l.startLoc=o(),s.currentChar()===Xa?f(l,13):N(s,l)},currentOffset:r,currentPosition:o,context:c}}const ei=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function ti(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function ni(e={}){const t=!1!==e.location,{onError:n}=e;function s(e,s,r,o,...a){const i=e.currentPosition();if(i.offset+=o,i.column+=o,n){const e=Va(s,t?Ea(r,i):null,{domain:"parser",args:a});n(e)}}function r(e,n,s){const r={type:e};return t&&(r.start=n,r.end=n,r.loc={start:s,end:s}),r}function o(e,n,s,r){t&&(e.end=n,e.loc&&(e.loc.end=s))}function a(e,t){const n=e.context(),s=r(3,n.offset,n.startLoc);return s.value=t,o(s,e.currentOffset(),e.currentPosition()),s}function i(e,t){const n=e.context(),{lastOffset:s,lastStartLoc:a}=n,i=r(5,s,a);return i.index=parseInt(t,10),e.nextToken(),o(i,e.currentOffset(),e.currentPosition()),i}function l(e,t){const n=e.context(),{lastOffset:s,lastStartLoc:a}=n,i=r(4,s,a);return i.key=t,e.nextToken(),o(i,e.currentOffset(),e.currentPosition()),i}function c(e,t){const n=e.context(),{lastOffset:s,lastStartLoc:a}=n,i=r(9,s,a);return i.value=t.replace(ei,ti),e.nextToken(),o(i,e.currentOffset(),e.currentPosition()),i}function u(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let a=e.nextToken();if(8===a.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:a,lastStartLoc:i}=n,l=r(8,a,i);return 11!==t.type?(s(e,Wa,n.lastStartLoc,0),l.value="",o(l,a,i),{nextConsumeToken:t,node:l}):(null==t.value&&s(e,Ba,n.lastStartLoc,0,si(t)),l.value=t.value||"",o(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);n.modifier=t.node,a=t.nextConsumeToken||e.nextToken()}switch(9!==a.type&&s(e,Ba,t.lastStartLoc,0,si(a)),a=e.nextToken(),2===a.type&&(a=e.nextToken()),a.type){case 10:null==a.value&&s(e,Ba,t.lastStartLoc,0,si(a)),n.key=function(e,t){const n=e.context(),s=r(7,n.offset,n.startLoc);return s.value=t,o(s,e.currentOffset(),e.currentPosition()),s}(e,a.value||"");break;case 4:null==a.value&&s(e,Ba,t.lastStartLoc,0,si(a)),n.key=l(e,a.value||"");break;case 5:null==a.value&&s(e,Ba,t.lastStartLoc,0,si(a)),n.key=i(e,a.value||"");break;case 6:null==a.value&&s(e,Ba,t.lastStartLoc,0,si(a)),n.key=c(e,a.value||"");break;default:{s(e,Ha,t.lastStartLoc,0);const i=e.context(),l=r(7,i.offset,i.startLoc);return l.value="",o(l,i.offset,i.startLoc),n.key=l,o(n,i.offset,i.startLoc),{nextConsumeToken:a,node:n}}}return o(n,e.currentOffset(),e.currentPosition()),{node:n}}function d(e){const t=e.context(),n=r(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let d=null;do{const r=d||e.nextToken();switch(d=null,r.type){case 0:null==r.value&&s(e,Ba,t.lastStartLoc,0,si(r)),n.items.push(a(e,r.value||""));break;case 5:null==r.value&&s(e,Ba,t.lastStartLoc,0,si(r)),n.items.push(i(e,r.value||""));break;case 4:null==r.value&&s(e,Ba,t.lastStartLoc,0,si(r)),n.items.push(l(e,r.value||""));break;case 6:null==r.value&&s(e,Ba,t.lastStartLoc,0,si(r)),n.items.push(c(e,r.value||""));break;case 7:{const t=u(e);n.items.push(t.node),d=t.nextConsumeToken||null;break}}}while(13!==t.currentType&&1!==t.currentType);return o(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function f(e){const t=e.context(),{offset:n,startLoc:a}=t,i=d(e);return 13===t.currentType?i:function(e,t,n,a){const i=e.context();let l=0===a.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(a);do{const t=d(e);l||(l=0===t.items.length),c.cases.push(t)}while(13!==i.currentType);return l&&s(e,za,n,0),o(c,e.currentOffset(),e.currentPosition()),c}(e,n,a,i)}return{parse:function(n){const a=Qa(n,ua({},e)),i=a.context(),l=r(0,i.offset,i.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=f(a),e.onCacheKey&&(l.cacheKey=e.onCacheKey(n)),13!==i.currentType&&s(a,Ba,i.lastStartLoc,0,n[i.offset]||""),o(l,a.currentOffset(),a.currentPosition()),l}}}function si(e){if(13===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function ri(e,t){for(let n=0;n<e.length;n++)oi(e[n],t)}function oi(e,t){switch(e.type){case 1:ri(e.cases,t),t.helper("plural");break;case 2:ri(e.items,t);break;case 6:oi(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function ai(e,t={}){const n=function(e){const t={ast:e,helpers:new Set};return{context:()=>t,helper:e=>(t.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&oi(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function ii(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(3!==s.type&&9!==s.type)break;if(null==s.value)break;t.push(s.value)}if(t.length===e.items.length){e.static=Ma(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];3!==n.type&&9!==n.type||delete n.value}}}}function li(e){switch(e.t=e.type,e.type){case 0:{const t=e;li(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let e=0;e<n.length;e++)li(n[e]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let e=0;e<n.length;e++)li(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;li(t.key),t.k=t.key,delete t.key,t.modifier&&(li(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function ci(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?ci(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const r=t.cases.length;for(let n=0;n<r&&(ci(e,t.cases[n]),n!==r-1);n++)e.push(", ");e.deindent(s()),e.push("])")}}(e,t);break;case 2:!function(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const r=t.items.length;for(let o=0;o<r&&(ci(e,t.items[o]),o!==r-1);o++)e.push(", ");e.deindent(s()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),ci(e,t.key),t.modifier?(e.push(", "),ci(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}(e,t);break;case 8:case 7:case 9:case 3:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t)}}function ui(e,t={}){const n=ua({},t),s=!!n.jit,r=!!n.minify,o=null==n.optimize||n.optimize,a=ni(n).parse(e);return s?(o&&function(e){const t=e.body;2===t.type?ii(t):t.cases.forEach(e=>ii(e))}(a),r&&li(a),{ast:a,code:""}):(ai(a,n),((e,t={})=>{const n=wa(t.mode)?t.mode:"normal",s=wa(t.filename)?t.filename:"message.intl";t.sourceMap;const r=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",o=t.needIndent?t.needIndent:"arrow"!==n,a=e.helpers||[],i=function(e,t){const{filename:n,breakLineCode:s,needIndent:r}=t,o=!1!==t.location,a={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:r,indentLevel:0};function i(e,t){a.code+=e}function l(e,t=!0){const n=t?s:"";i(r?n+" ".repeat(e):n)}return o&&e.loc&&(a.source=e.loc.source),{context:()=>a,push:i,indent:function(e=!0){const t=++a.indentLevel;e&&l(t)},deindent:function(e=!0){const t=--a.indentLevel;e&&l(t)},newline:function(){l(a.indentLevel)},helper:e=>`_${e}`,needIndent:()=>a.needIndent}}(e,{filename:s,breakLineCode:r,needIndent:o});i.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(o),a.length>0&&(i.push(`const { ${Ma(a.map(e=>`${e}: _${e}`),", ")} } = ctx`),i.newline()),i.push("return "),ci(i,e),i.deindent(o),i.push("}"),delete e.helpers;const{code:l,map:c}=i.context();return{ast:e,code:l,map:c?c.toJSON():void 0}})(a,n))}
|
|
39
39
|
/*!
|
|
40
40
|
* core-base v11.1.11
|
|
41
41
|
* (c) 2025 kazuya kawaguchi
|
|
42
42
|
* Released under the MIT License.
|
|
43
|
-
*/function di(e){return xa(e)&&0===vi(e)&&(ya(e,"b")||ya(e,"body"))}const pi=["b","body"];const fi=["c","cases"];const hi=["s","static"];const mi=["i","items"];const gi=["t","type"];function vi(e){return ki(e,gi)}const yi=["v","value"];function bi(e,t){const n=ki(e,yi);if(null!=n)return n;throw Ci(t)}const _i=["m","modifier"];const wi=["k","key"];function ki(e,t,n){for(let r=0;r<t.length;r++){const n=t[r];if(ya(e,n)&&null!=e[n])return e[n]}return n}const xi=[...pi,...fi,...hi,...mi,...wi,..._i,...yi,...gi];function Ci(e){return new Error(`unhandled node type: ${e}`)}function Si(e){return t=>function(e,t){const n=(r=t,ki(r,pi));var r;if(null==n)throw Ci(0);if(1===vi(n)){const t=function(e){return ki(e,fi,[])}(n);return e.plural(t.reduce((t,n)=>[...t,Mi(e,n)],[]))}return Mi(e,n)}(t,e)}function Mi(e,t){const n=function(e){return ki(e,hi)}(t);if(null!=n)return"text"===e.type?n:e.normalize([n]);{const n=function(e){return ki(e,mi,[])}(t).reduce((t,n)=>[...t,Ti(e,n)],[]);return e.normalize(n)}}function Ti(e,t){const n=vi(t);switch(n){case 3:case 9:case 7:case 8:return bi(t,n);case 4:{const r=t;if(ya(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(ya(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Ci(n)}case 5:{const r=t;if(ya(r,"i")&&ia(r.i))return e.interpolate(e.list(r.i));if(ya(r,"index")&&ia(r.index))return e.interpolate(e.list(r.index));throw Ci(n)}case 6:{const n=t,r=function(e){return ki(e,_i)}(n),s=function(e){const t=ki(e,wi);if(t)return t;throw Ci(6)}(n);return e.linked(Ti(e,s),r?Ti(e,r):void 0,e.type)}default:throw new Error(`unhandled node on format message part: ${n}`)}}const Oi=e=>e;let Li=pa();let Ei=null;const Ri=$i("function:translate");function $i(e){return t=>Ei&&Ei.emit(e,t)}const Ai=17,Pi=18,Fi=19,ji=21,Ni=22,Di=23;function Ii(e){return Va(e,null,void 0)}function Ui(e,t){return null!=t.locale?Wi(t.locale):Wi(e.locale)}let zi;function Wi(e){if(wa(e))return e;if(_a(e)){if(e.resolvedOnce&&null!=zi)return zi;if("Function"===e.constructor.name){const n=e();if(xa(t=n)&&_a(t.then)&&_a(t.catch))throw Ii(ji);return zi=n}throw Ii(Ni)}throw Ii(Di);var t}function Hi(e,t,n){return[...new Set([n,...ba(t)?t:xa(t)?Object.keys(t):wa(t)?[t]:[n]])]}function Bi(e,t,n){const r=wa(n)?n:el,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let o=s.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;ba(e);)e=Vi(o,e,t);const a=ba(t)||!Ma(t)?t:t.default?t.default:null;e=wa(a)?[a]:a,ba(e)&&Vi(o,e,!1),s.__localeChainCache.set(r,o)}return o}function Vi(e,t,n){let r=!0;for(let s=0;s<t.length&&ka(r);s++){const o=t[s];wa(o)&&(r=Yi(e,t[s],n))}return r}function Yi(e,t,n){let r;const s=t.split("-");do{r=qi(e,s.join("-"),n),s.splice(-1,1)}while(s.length&&!0===r);return r}function qi(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const s=t.replace(/!/g,"");e.push(s),(ba(n)||Ma(n))&&n[s]&&(r=n[s])}return r}const Ji=[];Ji[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ji[1]={w:[1],".":[2],"[":[4],o:[7]},Ji[2]={w:[2],i:[3,0],0:[3,0]},Ji[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ji[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ji[5]={"'":[4,0],o:8,l:[5,0]},Ji[6]={'"':[4,0],o:8,l:[6,0]};const Zi=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Gi(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Ki(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,Zi.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}const Xi=new Map;function Qi(e,t){return xa(e)?e[t]:null}const el="en-US",tl=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let nl,rl,sl;let ol=null;const al=()=>ol;let il=null;const ll=e=>{il=e};let cl=0;function ul(e={}){const t=_a(e.onWarn)?e.onWarn:ra,n=wa(e.version)?e.version:"11.1.11",r=wa(e.locale)||_a(e.locale)?e.locale:el,s=_a(r)?el:r,o=ba(e.fallbackLocale)||Ma(e.fallbackLocale)||wa(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:s,a=Ma(e.messages)?e.messages:dl(s),i=Ma(e.datetimeFormats)?e.datetimeFormats:dl(s),l=Ma(e.numberFormats)?e.numberFormats:dl(s),c=ua(pa(),e.modifiers,{upper:(e,t)=>"text"===t&&wa(e)?e.toUpperCase():"vnode"===t&&xa(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&wa(e)?e.toLowerCase():"vnode"===t&&xa(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&wa(e)?tl(e):"vnode"===t&&xa(e)&&"__v_isVNode"in e?tl(e.children):e}),u=e.pluralRules||pa(),d=_a(e.missing)?e.missing:null,p=!ka(e.missingWarn)&&!la(e.missingWarn)||e.missingWarn,f=!ka(e.fallbackWarn)&&!la(e.fallbackWarn)||e.fallbackWarn,h=!!e.fallbackFormat,m=!!e.unresolving,g=_a(e.postTranslation)?e.postTranslation:null,v=Ma(e.processor)?e.processor:null,y=!ka(e.warnHtmlMessage)||e.warnHtmlMessage,b=!!e.escapeParameter,_=_a(e.messageCompiler)?e.messageCompiler:nl,w=_a(e.messageResolver)?e.messageResolver:rl||Qi,k=_a(e.localeFallbacker)?e.localeFallbacker:sl||Hi,x=xa(e.fallbackContext)?e.fallbackContext:void 0,C=e,S=xa(C.__datetimeFormatters)?C.__datetimeFormatters:new Map,M=xa(C.__numberFormatters)?C.__numberFormatters:new Map,T=xa(C.__meta)?C.__meta:{};cl++;const O={version:n,cid:cl,locale:r,fallbackLocale:o,messages:a,modifiers:c,pluralRules:u,missing:d,missingWarn:p,fallbackWarn:f,fallbackFormat:h,unresolving:m,postTranslation:g,processor:v,warnHtmlMessage:y,escapeParameter:b,messageCompiler:_,messageResolver:w,localeFallbacker:k,fallbackContext:x,onWarn:t,__meta:T};return O.datetimeFormats=i,O.numberFormats=l,O.__datetimeFormatters=S,O.__numberFormatters=M,__INTLIFY_PROD_DEVTOOLS__&&function(e,t,n){Ei&&Ei.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}(O,n,T),O}const dl=e=>({[e]:pa()});function pl(e,t,n,r,s){const{missing:o,onWarn:a}=e;if(null!==o){const r=o(e,n,t,s);return wa(r)?r:t}return t}function fl(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function hl(e,t){return e!==t&&e.split("-")[0]===t.split("-")[0]}function ml(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let r=n+1;r<t.length;r++)if(hl(e,t[r]))return!0;return!1}function gl(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:a}=e,{__datetimeFormatters:i}=e,[l,c,u,d]=yl(...t);ka(u.missingWarn)?u.missingWarn:e.missingWarn;ka(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,f=Ui(e,u),h=a(e,s,f);if(!wa(l)||""===l)return new Intl.DateTimeFormat(f,d).format(c);let m,g={},v=null;for(let _=0;_<h.length&&(m=h[_],g=n[m]||{},v=g[l],!Ma(v));_++)pl(e,l,m,0,"datetime format");if(!Ma(v)||!wa(m))return r?-1:l;let y=`${m}__${l}`;ca(d)||(y=`${y}__${JSON.stringify(d)}`);let b=i.get(y);return b||(b=new Intl.DateTimeFormat(m,ua({},v,d)),i.set(y,b)),p?b.formatToParts(c):b.format(c)}const vl=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function yl(...e){const[t,n,r,s]=e,o=pa();let a,i=pa();if(wa(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Ii(Fi);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();a=new Date(n);try{a.toISOString()}catch{throw Ii(Fi)}}else if("[object Date]"===Sa(t)){if(isNaN(t.getTime()))throw Ii(Pi);a=t}else{if(!ia(t))throw Ii(Ai);a=t}return wa(n)?o.key=n:Ma(n)&&Object.keys(n).forEach(e=>{vl.includes(e)?i[e]=n[e]:o[e]=n[e]}),wa(r)?o.locale=r:Ma(r)&&(i=r),Ma(s)&&(i=s),[o.key||"",a,o,i]}function bl(e,t,n){const r=e;for(const s in n){const e=`${t}__${s}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function _l(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:a}=e,{__numberFormatters:i}=e,[l,c,u,d]=kl(...t);ka(u.missingWarn)?u.missingWarn:e.missingWarn;ka(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,f=Ui(e,u),h=a(e,s,f);if(!wa(l)||""===l)return new Intl.NumberFormat(f,d).format(c);let m,g={},v=null;for(let _=0;_<h.length&&(m=h[_],g=n[m]||{},v=g[l],!Ma(v));_++)pl(e,l,m,0,"number format");if(!Ma(v)||!wa(m))return r?-1:l;let y=`${m}__${l}`;ca(d)||(y=`${y}__${JSON.stringify(d)}`);let b=i.get(y);return b||(b=new Intl.NumberFormat(m,ua({},v,d)),i.set(y,b)),p?b.formatToParts(c):b.format(c)}const wl=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function kl(...e){const[t,n,r,s]=e,o=pa();let a=pa();if(!ia(t))throw Ii(Ai);const i=t;return wa(n)?o.key=n:Ma(n)&&Object.keys(n).forEach(e=>{wl.includes(e)?a[e]=n[e]:o[e]=n[e]}),wa(r)?o.locale=r:Ma(r)&&(a=r),Ma(s)&&(a=s),[o.key||"",i,o,a]}function xl(e,t,n){const r=e;for(const s in n){const e=`${t}__${s}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}const Cl=e=>e,Sl=e=>"",Ml=e=>0===e.length?"":Ta(e),Tl=e=>null==e?"":ba(e)||Ma(e)&&e.toString===Ca?JSON.stringify(e,null,2):String(e);function Ol(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function Ll(e={}){const t=e.locale,n=function(e){const t=ia(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ia(e.named.count)||ia(e.named.n))?ia(e.named.count)?e.named.count:ia(e.named.n)?e.named.n:t:t}(e),r=xa(e.pluralRules)&&wa(t)&&_a(e.pluralRules[t])?e.pluralRules[t]:Ol,s=xa(e.pluralRules)&&wa(t)&&_a(e.pluralRules[t])?Ol:void 0,o=e.list||[],a=e.named||pa();ia(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,a);function i(t,n){const r=_a(e.messages)?e.messages(t,!!n):!!xa(e.messages)&&e.messages[t];return r||(e.parent?e.parent.message(t):Sl)}const l=Ma(e.processor)&&_a(e.processor.normalize)?e.processor.normalize:Ml,c=Ma(e.processor)&&_a(e.processor.interpolate)?e.processor.interpolate:Tl,u={list:e=>o[e],named:e=>a[e],plural:e=>e[r(n,e.length,s)],linked:(t,...n)=>{const[r,s]=n;let o="text",a="";1===n.length?xa(r)?(a=r.modifier||a,o=r.type||o):wa(r)&&(a=r||a):2===n.length&&(wa(r)&&(a=r||a),wa(s)&&(o=s||o));const l=i(t,!0)(u),c="vnode"===o&&ba(l)&&a?l[0]:l;return a?(d=a,e.modifiers?e.modifiers[d]:Cl)(c,o):c;var d},message:i,type:Ma(e.processor)&&wa(e.processor.type)?e.processor.type:"text",interpolate:c,normalize:l,values:ua(pa(),o,a)};return u}const El=()=>"",Rl=e=>_a(e);function $l(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:o,fallbackLocale:a,messages:i}=e,[l,c]=Fl(...t),u=ka(c.missingWarn)?c.missingWarn:e.missingWarn,d=ka(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,p=ka(c.escapeParameter)?c.escapeParameter:e.escapeParameter,f=!!c.resolvedMessage,h=wa(c.default)||ka(c.default)?ka(c.default)?o?l:()=>l:c.default:n?o?l:()=>l:null,m=n||null!=h&&(wa(h)||_a(h)),g=Ui(e,c);p&&function(e){ba(e.list)?e.list=e.list.map(e=>wa(e)?ma(e):e):xa(e.named)&&Object.keys(e.named).forEach(t=>{wa(e.named[t])&&(e.named[t]=ma(e.named[t]))})}(c);let[v,y,b]=f?[l,g,i[g]||pa()]:Al(e,l,g,a,d,u),_=v,w=l;if(f||wa(_)||di(_)||Rl(_)||m&&(_=h,w=_),!(f||(wa(_)||di(_)||Rl(_))&&wa(y)))return s?-1:l;let k=!1;const x=Rl(_)?_:Pl(e,l,y,_,w,()=>{k=!0});if(k)return _;const C=function(e,t,n,r){const{modifiers:s,pluralRules:o,messageResolver:a,fallbackLocale:i,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,d=(r,s)=>{let o=a(n,r);if(null==o&&(u||s)){const[,,n]=Al(u||e,r,t,i,l,c);o=a(n,r)}if(wa(o)||di(o)){let n=!1;const s=Pl(e,r,t,o,r,()=>{n=!0});return n?El:s}return Rl(o)?o:El},p={locale:t,modifiers:s,pluralRules:o,messages:d};e.processor&&(p.processor=e.processor);r.list&&(p.list=r.list);r.named&&(p.named=r.named);ia(r.plural)&&(p.pluralIndex=r.plural);return p}(e,y,b,c),S=function(e,t,n){const r=t(n);return r}(0,x,Ll(C));let M=r?r(S,l):S;var T;if(p&&wa(M)&&(T=(T=(T=M).replace(/(\w+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${ga(n)}"`)).replace(/(\w+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${ga(n)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(T)&&(T=T.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(e=>{T=T.replace(e,"$1javascript:")}),M=T),__INTLIFY_PROD_DEVTOOLS__){const t={timestamp:Date.now(),key:wa(l)?l:Rl(_)?_.key:"",locale:y||(Rl(_)?_.locale:""),format:wa(_)?_:Rl(_)?_.source:"",message:M};t.meta=ua({},e.__meta,al()||{}),Ri(t)}return M}function Al(e,t,n,r,s,o){const{messages:a,onWarn:i,messageResolver:l,localeFallbacker:c}=e,u=c(e,r,n);let d,p=pa(),f=null;for(let h=0;h<u.length&&(d=u[h],p=a[d]||pa(),null===(f=l(p,t))&&(f=p[t]),!(wa(f)||di(f)||Rl(f)));h++)if(!ml(d,u)){const n=pl(e,t,d,0,"translate");n!==t&&(f=n)}return[f,d,p]}function Pl(e,t,n,r,s,o){const{messageCompiler:a,warnHtmlMessage:i}=e;if(Rl(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==a){const e=()=>r;return e.locale=n,e.key=t,e}const l=a(r,function(e,t,n,r,s,o){return{locale:t,key:n,warnHtmlMessage:s,onError:e=>{throw o&&o(e),e},onCacheKey:e=>((e,t,n)=>aa({l:e,k:t,s:n}))(t,n,e)}}(0,n,s,0,i,o));return l.locale=n,l.key=t,l.source=r,l}function Fl(...e){const[t,n,r]=e,s=pa();if(!(wa(t)||ia(t)||Rl(t)||di(t)))throw Ii(Ai);const o=ia(t)?String(t):(Rl(t),t);return ia(n)?s.plural=n:wa(n)?s.default=n:Ma(n)&&!ca(n)?s.named=n:ba(n)&&(s.list=n),ia(r)?s.plural=r:wa(r)?s.default=r:Ma(r)&&ua(s,r),[o,s]}"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(ha().__INTLIFY_PROD_DEVTOOLS__=!1),"boolean"!=typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(ha().__INTLIFY_DROP_MESSAGE_COMPILER__=!1);const jl=24,Nl=25,Dl=26,Il=27,Ul=28,zl=29,Wl=31,Hl=32;function Bl(e,...t){return Va(e,null,void 0)}const Vl=oa("__translateVNode"),Yl=oa("__datetimeParts"),ql=oa("__numberParts"),Jl=oa("__setPluralRules"),Zl=oa("__injectWithOption"),Gl=oa("__dispose");function Kl(e){if(!xa(e))return e;if(di(e))return e;for(const t in e)if(ya(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let s=e,o=!1;for(let e=0;e<r;e++){if("__proto__"===n[e])throw new Error(`unsafe key: ${n[e]}`);if(n[e]in s||(s[n[e]]=pa()),!xa(s[n[e]])){o=!0;break}s=s[n[e]]}if(o||(di(s)?xi.includes(n[r])||delete e[t]:(s[n[r]]=e[t],delete e[t])),!di(s)){const e=s[n[r]];xa(e)&&Kl(e)}}else xa(e[t])&&Kl(e[t]);return e}function Xl(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:o}=t,a=Ma(n)?n:ba(r)?pa():{[e]:pa()};if(ba(r)&&r.forEach(e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(a[t]=a[t]||pa(),La(n,a[t])):La(n,a)}else wa(e)&&La(JSON.parse(e),a)}),null==s&&o)for(const i in a)ya(a,i)&&Kl(a[i]);return a}function Ql(e){return e.type}function ec(e,t,n){let r=xa(t.messages)?t.messages:pa();"__i18nGlobal"in n&&(r=Xl(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);if(s.length&&s.forEach(t=>{e.mergeLocaleMessage(t,r[t])}),xa(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach(n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])})}if(xa(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach(n=>{e.mergeNumberFormat(n,t.numberFormats[n])})}}function tc(e){return ds(Zr,null,e,0)}const nc=()=>[],rc=()=>!1;let sc=0;function oc(e){return(t,n,r,s)=>e(n,r,xs()||void 0,s)}function ac(e={}){const{__root:t,__injectWithOption:n}=e,r=void 0===t,s=e.flatJson,o=sa?xt:Ct;let a=!ka(e.inheritLocale)||e.inheritLocale;const i=o(t&&a?t.locale.value:wa(e.locale)?e.locale:el),l=o(t&&a?t.fallbackLocale.value:wa(e.fallbackLocale)||ba(e.fallbackLocale)||Ma(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:i.value),c=o(Xl(i.value,e)),u=o(Ma(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),d=o(Ma(e.numberFormats)?e.numberFormats:{[i.value]:{}});let p=t?t.missingWarn:!ka(e.missingWarn)&&!la(e.missingWarn)||e.missingWarn,f=t?t.fallbackWarn:!ka(e.fallbackWarn)&&!la(e.fallbackWarn)||e.fallbackWarn,h=t?t.fallbackRoot:!ka(e.fallbackRoot)||e.fallbackRoot,m=!!e.fallbackFormat,g=_a(e.missing)?e.missing:null,v=_a(e.missing)?oc(e.missing):null,y=_a(e.postTranslation)?e.postTranslation:null,b=t?t.warnHtmlMessage:!ka(e.warnHtmlMessage)||e.warnHtmlMessage,_=!!e.escapeParameter;const w=t?t.modifiers:Ma(e.modifiers)?e.modifiers:{};let k,x=e.pluralRules||t&&t.pluralRules;k=(()=>{r&&ll(null);const t={version:"11.1.11",locale:i.value,fallbackLocale:l.value,messages:c.value,modifiers:w,pluralRules:x,missing:null===v?void 0:v,missingWarn:p,fallbackWarn:f,fallbackFormat:m,unresolving:!0,postTranslation:null===y?void 0:y,warnHtmlMessage:b,escapeParameter:_,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=u.value,t.numberFormats=d.value,t.__datetimeFormatters=Ma(k)?k.__datetimeFormatters:void 0,t.__numberFormatters=Ma(k)?k.__numberFormatters:void 0;const n=ul(t);return r&&ll(n),n})(),fl(k,i.value,l.value);const C=Fs({get:()=>i.value,set:e=>{k.locale=e,i.value=e}}),S=Fs({get:()=>l.value,set:e=>{k.fallbackLocale=e,l.value=e,fl(k,i.value,e)}}),M=Fs(()=>c.value),T=Fs(()=>u.value),O=Fs(()=>d.value);const L=(e,n,s,o,a,p)=>{let f;i.value,l.value,c.value,u.value,d.value;try{__INTLIFY_PROD_DEVTOOLS__,r||(k.fallbackContext=t?il:void 0),f=e(k)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(k.fallbackContext=void 0)}if("translate exists"!==s&&ia(f)&&-1===f||"translate exists"===s&&!f){const[e,r]=n();return t&&h?o(t):a(e)}if(p(f))return f;throw Bl(jl)};function E(...e){return L(t=>Reflect.apply($l,null,[t,...e]),()=>Fl(...e),"translate",t=>Reflect.apply(t.t,t,[...e]),e=>e,e=>wa(e))}const R={normalize:function(e){return e.map(e=>wa(e)||ia(e)||ka(e)?tc(String(e)):e)},interpolate:e=>e,type:"vnode"};function $(e){return c.value[e]||{}}sc++,t&&sa&&(pn(t.locale,e=>{a&&(i.value=e,k.locale=e,fl(k,i.value,l.value))}),pn(t.fallbackLocale,e=>{a&&(l.value=e,k.fallbackLocale=e,fl(k,i.value,l.value))}));const A={id:sc,locale:C,fallbackLocale:S,get inheritLocale(){return a},set inheritLocale(e){a=e,e&&t&&(i.value=t.locale.value,l.value=t.fallbackLocale.value,fl(k,i.value,l.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:M,get modifiers(){return w},get pluralRules(){return x||{}},get isGlobal(){return r},get missingWarn(){return p},set missingWarn(e){p=e,k.missingWarn=p},get fallbackWarn(){return f},set fallbackWarn(e){f=e,k.fallbackWarn=f},get fallbackRoot(){return h},set fallbackRoot(e){h=e},get fallbackFormat(){return m},set fallbackFormat(e){m=e,k.fallbackFormat=m},get warnHtmlMessage(){return b},set warnHtmlMessage(e){b=e,k.warnHtmlMessage=e},get escapeParameter(){return _},set escapeParameter(e){_=e,k.escapeParameter=e},t:E,getLocaleMessage:$,setLocaleMessage:function(e,t){if(s){const n={[e]:t};for(const e in n)ya(n,e)&&Kl(n[e]);t=n[e]}c.value[e]=t,k.messages=c.value},mergeLocaleMessage:function(e,t){c.value[e]=c.value[e]||{};const n={[e]:t};if(s)for(const r in n)ya(n,r)&&Kl(n[r]);La(t=n[e],c.value[e]),k.messages=c.value},getPostTranslationHandler:function(){return _a(y)?y:null},setPostTranslationHandler:function(e){y=e,k.postTranslation=e},getMissingHandler:function(){return g},setMissingHandler:function(e){null!==e&&(v=oc(e)),g=e,k.missing=v},[Jl]:function(e){x=e,k.pluralRules=x}};return A.datetimeFormats=T,A.numberFormats=O,A.rt=function(...e){const[t,n,r]=e;if(r&&!xa(r))throw Bl(Nl);return E(t,n,ua({resolvedMessage:!0},r||{}))},A.te=function(e,t){return L(()=>{if(!e)return!1;const n=$(wa(t)?t:i.value),r=k.messageResolver(n,e);return di(r)||Rl(r)||wa(r)},()=>[e],"translate exists",n=>Reflect.apply(n.te,n,[e,t]),rc,e=>ka(e))},A.tm=function(e){const n=function(e){let t=null;const n=Bi(k,l.value,i.value);for(let r=0;r<n.length;r++){const s=c.value[n[r]]||{},o=k.messageResolver(s,e);if(null!=o){t=o;break}}return t}(e);return null!=n?n:t&&t.tm(e)||{}},A.d=function(...e){return L(t=>Reflect.apply(gl,null,[t,...e]),()=>yl(...e),"datetime format",t=>Reflect.apply(t.d,t,[...e]),()=>"",e=>wa(e)||ba(e))},A.n=function(...e){return L(t=>Reflect.apply(_l,null,[t,...e]),()=>kl(...e),"number format",t=>Reflect.apply(t.n,t,[...e]),()=>"",e=>wa(e)||ba(e))},A.getDateTimeFormat=function(e){return u.value[e]||{}},A.setDateTimeFormat=function(e,t){u.value[e]=t,k.datetimeFormats=u.value,bl(k,e,t)},A.mergeDateTimeFormat=function(e,t){u.value[e]=ua(u.value[e]||{},t),k.datetimeFormats=u.value,bl(k,e,t)},A.getNumberFormat=function(e){return d.value[e]||{}},A.setNumberFormat=function(e,t){d.value[e]=t,k.numberFormats=d.value,xl(k,e,t)},A.mergeNumberFormat=function(e,t){d.value[e]=ua(d.value[e]||{},t),k.numberFormats=d.value,xl(k,e,t)},A[Zl]=n,A[Vl]=function(...e){return L(t=>{let n;const r=t;try{r.processor=R,n=Reflect.apply($l,null,[r,...e])}finally{r.processor=null}return n},()=>Fl(...e),"translate",t=>t[Vl](...e),e=>[tc(e)],e=>ba(e))},A[Yl]=function(...e){return L(t=>Reflect.apply(gl,null,[t,...e]),()=>yl(...e),"datetime format",t=>t[Yl](...e),nc,e=>wa(e)||ba(e))},A[ql]=function(...e){return L(t=>Reflect.apply(_l,null,[t,...e]),()=>kl(...e),"number format",t=>t[ql](...e),nc,e=>wa(e)||ba(e))},A}function ic(e={}){const t=ac(function(e){const t=wa(e.locale)?e.locale:el,n=wa(e.fallbackLocale)||ba(e.fallbackLocale)||Ma(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=_a(e.missing)?e.missing:void 0,s=!ka(e.silentTranslationWarn)&&!la(e.silentTranslationWarn)||!e.silentTranslationWarn,o=!ka(e.silentFallbackWarn)&&!la(e.silentFallbackWarn)||!e.silentFallbackWarn,a=!ka(e.fallbackRoot)||e.fallbackRoot,i=!!e.formatFallbackMessages,l=Ma(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=_a(e.postTranslation)?e.postTranslation:void 0,d=!wa(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,p=!!e.escapeParameterHtml,f=!ka(e.sync)||e.sync;let h=e.messages;if(Ma(e.sharedMessages)){const t=e.sharedMessages;h=Object.keys(t).reduce((e,n)=>{const r=e[n]||(e[n]={});return ua(r,t[n]),e},h||{})}const{__i18n:m,__root:g,__injectWithOption:v}=e,y=e.datetimeFormats,b=e.numberFormats;return{locale:t,fallbackLocale:n,messages:h,flatJson:e.flatJson,datetimeFormats:y,numberFormats:b,missing:r,missingWarn:s,fallbackWarn:o,fallbackRoot:a,fallbackFormat:i,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:f,__i18n:m,__root:g,__injectWithOption:v}}(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return ka(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=ka(e)?!e:e},get silentFallbackWarn(){return ka(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=ka(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t:(...e)=>Reflect.apply(t.t,t,[...e]),rt:(...e)=>Reflect.apply(t.rt,t,[...e]),te:(e,n)=>t.te(e,n),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)}};return r.__extender=n,r}function lc(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Jl](t.pluralizationRules||e.pluralizationRules);const n=Xl(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(t=>e.mergeLocaleMessage(t,n[t])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}const cc={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function uc(){return Jr}const dc=bn({name:"i18n-t",props:ua({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ia(e)||!isNaN(e)}},cc),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||yc({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(e=>"_"!==e[0]),a=pa();e.locale&&(a.locale=e.locale),void 0!==e.plural&&(a.plural=wa(e.plural)?+e.plural:e.plural);const i=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce((e,t)=>[...e,...t.type===Jr?t.children:[t]],[]);return t.reduce((t,n)=>{const r=e[n];return r&&(t[n]=r()),t},pa())}(t,o),l=s[Vl](e.keypath,i,a),c=ua(pa(),r);return js(wa(e.tag)||xa(e.tag)?e.tag:uc(),c,l)}}});function pc(e,t,n,r){const{slots:s,attrs:o}=t;return()=>{const t={part:!0};let a=pa();e.locale&&(t.locale=e.locale),wa(e.format)?t.key=e.format:xa(e.format)&&(wa(e.format.key)&&(t.key=e.format.key),a=Object.keys(e.format).reduce((t,r)=>n.includes(r)?ua(pa(),t,{[r]:e.format[r]}):t,pa()));const i=r(e.value,t,a);let l=[t.key];ba(i)?l=i.map((e,t)=>{const n=s[e.type],r=n?n({[e.type]:e.value,index:t,parts:i}):[e.value];var o;return ba(o=r)&&!wa(o[0])&&(r[0].key=`${e.type}-${t}`),r}):wa(i)&&(l=[i]);const c=ua(pa(),o);return js(wa(e.tag)||xa(e.tag)?e.tag:uc(),c,l)}}const fc=bn({name:"i18n-n",props:ua({value:{type:Number,required:!0},format:{type:[String,Object]}},cc),setup(e,t){const n=e.i18n||yc({useScope:e.scope,__useComponent:!0});return pc(e,t,wl,(...e)=>n[ql](...e))}});function hc(e){if(wa(e))return{path:e};if(Ma(e)){if(!("path"in e))throw Bl(Ul);return e}throw Bl(zl)}function mc(e){const{path:t,locale:n,args:r,choice:s,plural:o}=e,a={},i=r||{};return wa(n)&&(a.locale=n),ia(s)&&(a.plural=s),ia(o)&&(a.plural=o),[t,i,a]}function gc(e,t,...n){const r=Ma(n[0])?n[0]:{};(!ka(r.globalInstall)||r.globalInstall)&&([dc.name,"I18nT"].forEach(t=>e.component(t,dc)),[fc.name,"I18nN"].forEach(t=>e.component(t,fc)),[wc.name,"I18nD"].forEach(t=>e.component(t,wc))),e.directive("t",function(e){const t=t=>{const{instance:n,value:r}=t;if(!n||!n.$)throw Bl(Hl);const s=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}(e,n.$),o=hc(r);return[Reflect.apply(s.t,s,[...mc(o)]),s]};return{created:(n,r)=>{const[s,o]=t(r);sa&&e.global===o&&(n.__i18nWatcher=pn(o.locale,()=>{r.instance&&r.instance.$forceUpdate()})),n.__composer=o,n.textContent=s},unmounted:e=>{sa&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){const n=e.__composer,r=hc(t);e.textContent=Reflect.apply(n.t,n,[...mc(r)])}},getSSRProps:e=>{const[n]=t(e);return{textContent:n}}}}(t))}const vc=oa("global-vue-i18n");function yc(e={}){const t=xs();if(null==t)throw Bl(Dl);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Bl(Il);const n=function(e){const t=un(e.isCE?vc:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Bl(e.isCE?Wl:Hl);return t}(t),r=function(e){return"composition"===e.mode?e.global:e.global.__composer}(n),s=Ql(t),o=function(e,t){return ca(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,s);if("global"===o)return ec(r,e,s),r;if("parent"===o){let s=function(e,t,n=!1){let r=null;const s=t.root;let o=function(e,t=!1){if(null==e)return null;return t&&e.vnode.ctx||e.parent}(t,n);for(;null!=o;){const t=e;if("composition"===e.mode)r=t.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const e=t.__getInstance(o);null!=e&&(r=e.__composer,n&&r&&!r[Zl]&&(r=null))}if(null!=r)break;if(s===o)break;o=o.parent}return r}(n,t,e.__useComponent);return null==s&&(s=r),s}const a=n;let i=a.__getInstance(t);if(null==i){const n=ua({},e);"__i18n"in s&&(n.__i18n=s.__i18n),r&&(n.__root=r),i=ac(n),a.__composerExtend&&(i[Gl]=a.__composerExtend(i)),function(e,t,n){Pn(()=>{},t),Dn(()=>{const r=n;e.__deleteInstance(t);const s=r[Gl];s&&(s(),delete r[Gl])},t)}(a,t,i),a.__setInstance(t,i)}return i}const bc=["locale","fallbackLocale","availableLocales"],_c=["t","rt","d","n","tm","te"];const wc=bn({name:"i18n-d",props:ua({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},cc),setup(e,t){const n=e.i18n||yc({useScope:e.scope,__useComponent:!0});return pc(e,t,vl,(...e)=>n[Yl](...e))}});var kc,xc;if("boolean"!=typeof __VUE_I18N_FULL_INSTALL__&&(ha().__VUE_I18N_FULL_INSTALL__=!0),"boolean"!=typeof __VUE_I18N_LEGACY_API__&&(ha().__VUE_I18N_LEGACY_API__=!0),"boolean"!=typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(ha().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(ha().__INTLIFY_PROD_DEVTOOLS__=!1),nl=function(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&wa(e)){!ka(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||Oi)(e),r=Li[n];if(r)return r;const{ast:s,detectError:o}=function(e,t={}){let n=!1;const r=t.onError||Ya;return t.onError=e=>{n=!0,r(e)},{...ui(e,t),detectError:n}}(e,{...t,location:!1,jit:!0}),a=Si(s);return o?a:Li[n]=a}{const t=e.cacheKey;if(t){const n=Li[t];return n||(Li[t]=Si(e))}return Si(e)}},kc=function(e,t){if(!xa(e))return null;let n=Xi.get(t);if(n||(n=function(e){const t=[];let n,r,s,o,a,i,l,c=-1,u=0,d=0;const p=[];function f(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,s="\\"+t,p[0](),!0}for(p[0]=()=>{void 0===r?r=s:r+=s},p[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},p[2]=()=>{p[0](),d++},p[3]=()=>{if(d>0)d--,u=4,p[0]();else{if(d=0,void 0===r)return!1;if(r=Ki(r),!1===r)return!1;p[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!f()){if(o=Gi(n),l=Ji[u],a=l[o]||l.l||8,8===a)return;if(u=a[0],void 0!==a[1]&&(i=p[a[1]],i&&(s=n,!1===i())))return;if(7===u)return t}}(t),n&&Xi.set(t,n)),!n)return null;const r=n.length;let s=e,o=0;for(;o<r;){const e=n[o];if(xi.includes(e)&&di(s))return null;const t=s[e];if(void 0===t)return null;if(_a(s))return null;s=t,o++}return s},rl=kc,sl=Bi,__INTLIFY_PROD_DEVTOOLS__){const e=ha();e.__INTLIFY__=!0,xc=e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__,Ei=xc}const Cc={status:{connected:"Connected",disconnected:"Disconnected"},actions:{retry:"Retry"},"new chat":"New Chat",conversations:"Conversations","contact support":"Contact Support",support:"Support",options:"Options",mute:"Mute",delete:"Delete",leave:"Leave","leave now":"Leave now?","select contacts":"select contacts","conversation options":"Conversation options",system:{renamed:'{user} renamed "{from}" to "{to}"',created:"{user} created this conversation",left:"{user} left",participants:{addedAndRemoved:"{user} added {added} and removed {removed}",added:"{user} added {added}",removed:"{user} removed {removed}"}}},Sc=Object.freeze(Object.defineProperty({__proto__:null,default:Cc},Symbol.toStringTag,{value:"Module"})),Mc="en",Tc=["en","de"],Oc=Object.assign({"../locales/de.ts":()=>Promise.resolve().then(()=>am),"../locales/en.ts":()=>Promise.resolve().then(()=>Sc)});const Lc=function(){if("undefined"==typeof navigator)return Mc;const e=[...navigator.languages||[],navigator.language].filter(Boolean);for(const t of e){const e=t.toLowerCase().split("-")[0];if(Tc.includes(e))return e}return Mc}(),Ec=function(e={}){const t=__VUE_I18N_LEGACY_API__&&ka(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=!ka(e.globalInjection)||e.globalInjection,r=new Map,[s,o]=function(e,t){const n=ne(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>ic(e)):n.run(()=>ac(e));if(null==r)throw Bl(Hl);return[n,r]}(e,t),a=oa(""),i={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(e,...r){if(e.__VUE_I18N_SYMBOL__=a,e.provide(e.__VUE_I18N_SYMBOL__,i),Ma(r[0])){const e=r[0];i.__composerExtend=e.__composerExtend,i.__vueI18nExtend=e.__vueI18nExtend}let s=null;!t&&n&&(s=function(e,t){const n=Object.create(null);bc.forEach(e=>{const r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw Bl(Hl);const s=kt(r.value)?{get:()=>r.value.value,set(e){r.value.value=e}}:{get:()=>r.get&&r.get()};Object.defineProperty(n,e,s)}),e.config.globalProperties.$i18n=n,_c.forEach(n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw Bl(Hl);Object.defineProperty(e.config.globalProperties,`$${n}`,r)});const r=()=>{delete e.config.globalProperties.$i18n,_c.forEach(t=>{delete e.config.globalProperties[`$${t}`]})};return r}(e,i.global)),__VUE_I18N_FULL_INSTALL__&&gc(e,i,...r),__VUE_I18N_LEGACY_API__&&t&&e.mixin(function(e,t,n){return{beforeCreate(){const r=xs();if(!r)throw Bl(Hl);const s=this.$options;if(s.i18n){const r=s.i18n;if(s.__i18n&&(r.__i18n=s.__i18n),r.__root=t,this===this.$root)this.$i18n=lc(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=ic(r);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=lc(e,s);else{this.$i18n=ic({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&ec(t,s,s),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const e=xs();if(!e)throw Bl(Hl);const t=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n}}}(o,o.__composer,i));const l=e.unmount;e.unmount=()=>{s&&s(),i.dispose(),l()}},get global(){return o},dispose(){s.stop()},__instances:r,__getInstance:function(e){return r.get(e)||null},__setInstance:function(e,t){r.set(e,t)},__deleteInstance:function(e){r.delete(e)}};return i}({legacy:!1,locale:Lc,fallbackLocale:Mc,messages:{[Mc]:Cc}});function Rc(e,t){return function(){return e.apply(t,arguments)}}"undefined"!=typeof window&&async function(e){let t=e;const n=Ec.global;if(!n.availableLocales.includes(t))try{const e=Oc[`../locales/${t}.ts`];if(!e)throw new Error(`No locale module for ${t}`);const r=(await e()).default;n.setLocaleMessage(t,r)}catch(Pp){if(t!==Mc){const e=(await Promise.resolve().then(()=>Sc)).default;n.setLocaleMessage(Mc,e),t=Mc}}n.locale.value=t}(Lc);const{toString:$c}=Object.prototype,{getPrototypeOf:Ac}=Object,{iterator:Pc,toStringTag:Fc}=Symbol,jc=(e=>t=>{const n=$c.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Nc=e=>(e=e.toLowerCase(),t=>jc(t)===e),Dc=e=>t=>typeof t===e,{isArray:Ic}=Array,Uc=Dc("undefined");const zc=Nc("ArrayBuffer");const Wc=Dc("string"),Hc=Dc("function"),Bc=Dc("number"),Vc=e=>null!==e&&"object"==typeof e,Yc=e=>{if("object"!==jc(e))return!1;const t=Ac(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Fc in e||Pc in e)},qc=Nc("Date"),Jc=Nc("File"),Zc=Nc("Blob"),Gc=Nc("FileList"),Kc=Nc("URLSearchParams"),[Xc,Qc,eu,tu]=["ReadableStream","Request","Response","Headers"].map(Nc);function nu(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,s;if("object"!=typeof e&&(e=[e]),Ic(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let a;for(r=0;r<o;r++)a=s[r],t.call(null,e[a],a,e)}}function ru(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,s=n.length;for(;s-- >0;)if(r=n[s],t===r.toLowerCase())return r;return null}const su="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ou=e=>!Uc(e)&&e!==su;const au=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Ac(Uint8Array)),iu=Nc("HTMLFormElement"),lu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cu=Nc("RegExp"),uu=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};nu(n,(n,s)=>{let o;!1!==(o=t(n,s,e))&&(r[s]=o||n)}),Object.defineProperties(e,r)};const du=Nc("AsyncFunction"),pu=(fu="function"==typeof setImmediate,hu=Hc(su.postMessage),fu?setImmediate:hu?(mu=`axios@${Math.random()}`,gu=[],su.addEventListener("message",({source:e,data:t})=>{e===su&&t===mu&&gu.length&&gu.shift()()},!1),e=>{gu.push(e),su.postMessage(mu,"*")}):e=>setTimeout(e));var fu,hu,mu,gu;const vu="undefined"!=typeof queueMicrotask?queueMicrotask.bind(su):"undefined"!=typeof process&&process.nextTick||pu,yu={isArray:Ic,isArrayBuffer:zc,isBuffer:function(e){return null!==e&&!Uc(e)&&null!==e.constructor&&!Uc(e.constructor)&&Hc(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Hc(e.append)&&("formdata"===(t=jc(e))||"object"===t&&Hc(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&zc(e.buffer),t},isString:Wc,isNumber:Bc,isBoolean:e=>!0===e||!1===e,isObject:Vc,isPlainObject:Yc,isReadableStream:Xc,isRequest:Qc,isResponse:eu,isHeaders:tu,isUndefined:Uc,isDate:qc,isFile:Jc,isBlob:Zc,isRegExp:cu,isFunction:Hc,isStream:e=>Vc(e)&&Hc(e.pipe),isURLSearchParams:Kc,isTypedArray:au,isFileList:Gc,forEach:nu,merge:function e(){const{caseless:t}=ou(this)&&this||{},n={},r=(r,s)=>{const o=t&&ru(n,s)||s;Yc(n[o])&&Yc(r)?n[o]=e(n[o],r):Yc(r)?n[o]=e({},r):Ic(r)?n[o]=r.slice():n[o]=r};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&nu(arguments[s],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(nu(t,(t,r)=>{n&&Hc(t)?e[r]=Rc(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let s,o,a;const i={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)a=s[o],r&&!r(a,e,t)||i[a]||(t[a]=e[a],i[a]=!0);e=!1!==n&&Ac(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:jc,kindOfTest:Nc,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Ic(e))return e;let t=e.length;if(!Bc(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Pc]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:iu,hasOwnProperty:lu,hasOwnProp:lu,reduceDescriptors:uu,freezeMethods:e=>{uu(e,(t,n)=>{if(Hc(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Hc(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return Ic(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:ru,global:su,isContextDefined:ou,isSpecCompliantForm:function(e){return!!(e&&Hc(e.append)&&"FormData"===e[Fc]&&e[Pc])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Vc(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const s=Ic(e)?[]:{};return nu(e,(e,t)=>{const o=n(e,r+1);!Uc(o)&&(s[t]=o)}),t[r]=void 0,s}}return e};return n(e,0)},isAsyncFn:du,isThenable:e=>e&&(Vc(e)||Hc(e))&&Hc(e.then)&&Hc(e.catch),setImmediate:pu,asap:vu,isIterable:e=>null!=e&&Hc(e[Pc])};function bu(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}yu.inherits(bu,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:yu.toJSONObject(this.config),code:this.code,status:this.status}}});const _u=bu.prototype,wu={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{wu[e]={value:e}}),Object.defineProperties(bu,wu),Object.defineProperty(_u,"isAxiosError",{value:!0}),bu.from=(e,t,n,r,s,o)=>{const a=Object.create(_u);return yu.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),bu.call(a,e.message,t,n,r,s),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};function ku(e){return yu.isPlainObject(e)||yu.isArray(e)}function xu(e){return yu.endsWith(e,"[]")?e.slice(0,-2):e}function Cu(e,t,n){return e?e.concat(t).map(function(e,t){return e=xu(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Su=yu.toFlatObject(yu,{},null,function(e){return/^is[A-Z]/.test(e)});function Mu(e,t,n){if(!yu.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=yu.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!yu.isUndefined(t[e])})).metaTokens,s=n.visitor||c,o=n.dots,a=n.indexes,i=(n.Blob||"undefined"!=typeof Blob&&Blob)&&yu.isSpecCompliantForm(t);if(!yu.isFunction(s))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(yu.isDate(e))return e.toISOString();if(yu.isBoolean(e))return e.toString();if(!i&&yu.isBlob(e))throw new bu("Blob is not supported. Use a Buffer instead.");return yu.isArrayBuffer(e)||yu.isTypedArray(e)?i&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,s){let i=e;if(e&&!s&&"object"==typeof e)if(yu.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(yu.isArray(e)&&function(e){return yu.isArray(e)&&!e.some(ku)}(e)||(yu.isFileList(e)||yu.endsWith(n,"[]"))&&(i=yu.toArray(e)))return n=xu(n),i.forEach(function(e,r){!yu.isUndefined(e)&&null!==e&&t.append(!0===a?Cu([n],r,o):null===a?n:n+"[]",l(e))}),!1;return!!ku(e)||(t.append(Cu(s,n,o),l(e)),!1)}const u=[],d=Object.assign(Su,{defaultVisitor:c,convertValue:l,isVisitable:ku});if(!yu.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!yu.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),yu.forEach(n,function(n,o){!0===(!(yu.isUndefined(n)||null===n)&&s.call(t,n,yu.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])}),u.pop()}}(e),t}function Tu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Ou(e,t){this._pairs=[],e&&Mu(e,this,t)}const Lu=Ou.prototype;function Eu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ru(e,t,n){if(!t)return e;const r=n&&n.encode||Eu;yu.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(o=s?s(t,n):yu.isURLSearchParams(t)?t.toString():new Ou(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}Lu.append=function(e,t){this._pairs.push([e,t])},Lu.toString=function(e){const t=e?function(t){return e.call(this,t,Tu)}:Tu;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class $u{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){yu.forEach(this.handlers,function(t){null!==t&&e(t)})}}const Au={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pu={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ou,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Fu="undefined"!=typeof window&&"undefined"!=typeof document,ju="object"==typeof navigator&&navigator||void 0,Nu=Fu&&(!ju||["ReactNative","NativeScript","NS"].indexOf(ju.product)<0),Du="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Iu=Fu&&window.location.href||"http://localhost",Uu={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Fu,hasStandardBrowserEnv:Nu,hasStandardBrowserWebWorkerEnv:Du,navigator:ju,origin:Iu},Symbol.toStringTag,{value:"Module"})),...Pu};function zu(e){function t(e,n,r,s){let o=e[s++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),i=s>=e.length;if(o=!o&&yu.isArray(r)?r.length:o,i)return yu.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a;r[o]&&yu.isObject(r[o])||(r[o]=[]);return t(e,n,r[o],s)&&yu.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}(r[o])),!a}if(yu.isFormData(e)&&yu.isFunction(e.entries)){const n={};return yu.forEachEntry(e,(e,r)=>{t(function(e){return yu.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const Wu={transitional:Au,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,s=yu.isObject(e);s&&yu.isHTMLForm(e)&&(e=new FormData(e));if(yu.isFormData(e))return r?JSON.stringify(zu(e)):e;if(yu.isArrayBuffer(e)||yu.isBuffer(e)||yu.isStream(e)||yu.isFile(e)||yu.isBlob(e)||yu.isReadableStream(e))return e;if(yu.isArrayBufferView(e))return e.buffer;if(yu.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Mu(e,new Uu.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Uu.isNode&&yu.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=yu.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Mu(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||r?(t.setContentType("application/json",!1),function(e,t,n){if(yu.isString(e))try{return(t||JSON.parse)(e),yu.trim(e)}catch(Pp){if("SyntaxError"!==Pp.name)throw Pp}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Wu.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(yu.isResponse(e)||yu.isReadableStream(e))return e;if(e&&yu.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(Pp){if(n){if("SyntaxError"===Pp.name)throw bu.from(Pp,bu.ERR_BAD_RESPONSE,this,null,this.response);throw Pp}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Uu.classes.FormData,Blob:Uu.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};yu.forEach(["delete","get","head","post","put","patch"],e=>{Wu.headers[e]={}});const Hu=yu.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Bu=Symbol("internals");function Vu(e){return e&&String(e).trim().toLowerCase()}function Yu(e){return!1===e||null==e?e:yu.isArray(e)?e.map(Yu):String(e)}function qu(e,t,n,r,s){return yu.isFunction(r)?r.call(this,t,n):(s&&(t=n),yu.isString(t)?yu.isString(r)?-1!==t.indexOf(r):yu.isRegExp(r)?r.test(t):void 0:void 0)}let Ju=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function s(e,t,n){const s=Vu(t);if(!s)throw new Error("header name must be a non-empty string");const o=yu.findKey(r,s);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=Yu(e))}const o=(e,t)=>yu.forEach(e,(e,n)=>s(e,n,t));if(yu.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(yu.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,s;return e&&e.split("\n").forEach(function(e){s=e.indexOf(":"),n=e.substring(0,s).trim().toLowerCase(),r=e.substring(s+1).trim(),!n||t[n]&&Hu[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(yu.isObject(e)&&yu.isIterable(e)){let n,r,s={};for(const t of e){if(!yu.isArray(t))throw TypeError("Object iterator must return a key-value pair");s[r=t[0]]=(n=s[r])?yu.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(s,t)}else null!=e&&s(t,e,n);return this}get(e,t){if(e=Vu(e)){const n=yu.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(yu.isFunction(t))return t.call(this,e,n);if(yu.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Vu(e)){const n=yu.findKey(this,e);return!(!n||void 0===this[n]||t&&!qu(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function s(e){if(e=Vu(e)){const s=yu.findKey(n,e);!s||t&&!qu(0,n[s],s,t)||(delete n[s],r=!0)}}return yu.isArray(e)?e.forEach(s):s(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const s=t[n];e&&!qu(0,this[s],s,e,!0)||(delete this[s],r=!0)}return r}normalize(e){const t=this,n={};return yu.forEach(this,(r,s)=>{const o=yu.findKey(n,s);if(o)return t[o]=Yu(r),void delete t[s];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(s):String(s).trim();a!==s&&delete t[s],t[a]=Yu(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return yu.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&yu.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Bu]=this[Bu]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Vu(e);t[r]||(!function(e,t){const n=yu.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,s){return this[r].call(this,t,e,n,s)},configurable:!0})})}(n,e),t[r]=!0)}return yu.isArray(e)?e.forEach(r):r(e),this}};function Zu(e,t){const n=this||Wu,r=t||n,s=Ju.from(r.headers);let o=r.data;return yu.forEach(e,function(e){o=e.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Gu(e){return!(!e||!e.__CANCEL__)}function Ku(e,t,n){bu.call(this,null==e?"canceled":e,bu.ERR_CANCELED,t,n),this.name="CanceledError"}function Xu(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new bu("Request failed with status code "+n.status,[bu.ERR_BAD_REQUEST,bu.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Ju.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),yu.reduceDescriptors(Ju.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),yu.freezeMethods(Ju),yu.inherits(Ku,bu,{__CANCEL__:!0});const Qu=(e,t,n=3)=>{let r=0;const s=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s,o=0,a=0;return t=void 0!==t?t:1e3,function(i){const l=Date.now(),c=r[a];s||(s=l),n[o]=i,r[o]=l;let u=a,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-s<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,s=0,o=1e3/t;const a=(t,o=Date.now())=>{s=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),i=t-s;i>=o?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},o-i)))},()=>n&&a(n)]}(n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,i=o-r,l=s(i);r=o;e({loaded:o,total:a,progress:a?o/a:void 0,bytes:i,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},ed=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},td=e=>(...t)=>yu.asap(()=>e(...t)),nd=Uu.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Uu.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Uu.origin),Uu.navigator&&/(msie|trident)/i.test(Uu.navigator.userAgent)):()=>!0,rd=Uu.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const a=[e+"="+encodeURIComponent(t)];yu.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),yu.isString(r)&&a.push("path="+r),yu.isString(s)&&a.push("domain="+s),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function sd(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const od=e=>e instanceof Ju?{...e}:e;function ad(e,t){t=t||{};const n={};function r(e,t,n,r){return yu.isPlainObject(e)&&yu.isPlainObject(t)?yu.merge.call({caseless:r},e,t):yu.isPlainObject(t)?yu.merge({},t):yu.isArray(t)?t.slice():t}function s(e,t,n,s){return yu.isUndefined(t)?yu.isUndefined(e)?void 0:r(void 0,e,0,s):r(e,t,0,s)}function o(e,t){if(!yu.isUndefined(t))return r(void 0,t)}function a(e,t){return yu.isUndefined(t)?yu.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function i(n,s,o){return o in t?r(n,s):o in e?r(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:i,headers:(e,t,n)=>s(od(e),od(t),0,!0)};return yu.forEach(Object.keys(Object.assign({},e,t)),function(r){const o=l[r]||s,a=o(e[r],t[r],r);yu.isUndefined(a)&&o!==i||(n[r]=a)}),n}const id=e=>{const t=ad({},e);let n,{data:r,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:l}=t;if(t.headers=i=Ju.from(i),t.url=Ru(sd(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),yu.isFormData(r))if(Uu.hasStandardBrowserEnv||Uu.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(!1!==(n=i.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}if(Uu.hasStandardBrowserEnv&&(s&&yu.isFunction(s)&&(s=s(t)),s||!1!==s&&nd(t.url))){const e=o&&a&&rd.read(a);e&&i.set(o,e)}return t},ld="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=id(e);let s=r.data;const o=Ju.from(r.headers).normalize();let a,i,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Ju.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Xu(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new bu("Request aborted",bu.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new bu("Network Error",bu.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const s=r.transitional||Au;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new bu(t,s.clarifyTimeoutError?bu.ETIMEDOUT:bu.ECONNABORTED,e,m)),m=null},void 0===s&&o.setContentType(null),"setRequestHeader"in m&&yu.forEach(o.toJSON(),function(e,t){m.setRequestHeader(t,e)}),yu.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),f&&([l,u]=Qu(f,!0),m.addEventListener("progress",l)),p&&m.upload&&([i,c]=Qu(p),m.upload.addEventListener("progress",i),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Ku(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===Uu.protocols.indexOf(v)?n(new bu("Unsupported protocol "+v+":",bu.ERR_BAD_REQUEST,e)):m.send(s||null)})},cd=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const s=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof bu?t:new Ku(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,s(new bu(`timeout ${t} of ms exceeded`,bu.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(s):e.removeEventListener("abort",s)}),e=null)};e.forEach(e=>e.addEventListener("abort",s));const{signal:i}=r;return i.unsubscribe=()=>yu.asap(a),i}},ud=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,s=0;for(;s<n;)r=s+t,yield e.slice(s,r),s=r},dd=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},pd=(e,t,n,r)=>{const s=async function*(e,t){for await(const n of dd(e))yield*ud(n,t)}(e,t);let o,a=0,i=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await s.next();if(t)return i(),void e.close();let o=r.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw i(t),t}},cancel:e=>(i(e),s.return())},{highWaterMark:2})},fd="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,hd=fd&&"function"==typeof ReadableStream,md=fd&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),gd=(e,...t)=>{try{return!!e(...t)}catch(Pp){return!1}},vd=hd&&gd(()=>{let e=!1;const t=new Request(Uu.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),yd=hd&&gd(()=>yu.isReadableStream(new Response("").body)),bd={stream:yd&&(e=>e.body)};var _d;fd&&(_d=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!bd[e]&&(bd[e]=yu.isFunction(_d[e])?t=>t[e]():(t,n)=>{throw new bu(`Response type '${e}' is not supported`,bu.ERR_NOT_SUPPORT,n)})}));const wd=async(e,t)=>{const n=yu.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(yu.isBlob(e))return e.size;if(yu.isSpecCompliantForm(e)){const t=new Request(Uu.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return yu.isArrayBufferView(e)||yu.isArrayBuffer(e)?e.byteLength:(yu.isURLSearchParams(e)&&(e+=""),yu.isString(e)?(await md(e)).byteLength:void 0)})(t):n},kd={http:null,xhr:ld,fetch:fd&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:a,onDownloadProgress:i,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=id(e);c=c?(c+"").toLowerCase():"text";let f,h=cd([s,o&&o.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&vd&&"get"!==n&&"head"!==n&&0!==(g=await wd(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(yu.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=ed(g,Qu(td(l)));r=pd(n.body,65536,e,t)}}yu.isString(d)||(d=d?"include":"omit");const s="credentials"in Request.prototype;f=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:s?d:void 0});let o=await fetch(f,p);const a=yd&&("stream"===c||"response"===c);if(yd&&(i||a&&m)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=o[t]});const t=yu.toFiniteNumber(o.headers.get("content-length")),[n,r]=i&&ed(t,Qu(td(i),!0))||[];o=new Response(pd(o.body,65536,n,()=>{r&&r(),m&&m()}),e)}c=c||"text";let v=await bd[yu.findKey(bd,c)||"text"](o,e);return!a&&m&&m(),await new Promise((t,n)=>{Xu(t,n,{data:v,headers:Ju.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:f})})}catch(v){if(m&&m(),v&&"TypeError"===v.name&&/Load failed|fetch/i.test(v.message))throw Object.assign(new bu("Network Error",bu.ERR_NETWORK,e,f),{cause:v.cause||v});throw bu.from(v,v&&v.code,e,f)}})};yu.forEach(kd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Pp){}Object.defineProperty(e,"adapterName",{value:t})}});const xd=e=>`- ${e}`,Cd=e=>yu.isFunction(e)||null===e||!1===e,Sd=e=>{e=yu.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){let t;if(n=e[o],r=n,!Cd(n)&&(r=kd[(t=String(n)).toLowerCase()],void 0===r))throw new bu(`Unknown adapter '${t}'`);if(r)break;s[t||"#"+o]=r}if(!r){const e=Object.entries(s).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new bu("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(xd).join("\n"):" "+xd(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Md(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ku(null,e)}function Td(e){Md(e),e.headers=Ju.from(e.headers),e.data=Zu.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Sd(e.adapter||Wu.adapter)(e).then(function(t){return Md(e),t.data=Zu.call(e,e.transformResponse,t),t.headers=Ju.from(t.headers),t},function(t){return Gu(t)||(Md(e),t&&t.response&&(t.response.data=Zu.call(e,e.transformResponse,t.response),t.response.headers=Ju.from(t.response.headers))),Promise.reject(t)})}const Od="1.10.0",Ld={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ld[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ed={};Ld.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Od+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,s,o)=>{if(!1===e)throw new bu(r(s," has been removed"+(t?" in "+t:"")),bu.ERR_DEPRECATED);return t&&!Ed[s]&&(Ed[s]=!0,console.warn(r(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,s,o)}},Ld.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const Rd={assertOptions:function(e,t,n){if("object"!=typeof e)throw new bu("options must be an object",bu.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new bu("option "+o+" must be "+n,bu.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new bu("Unknown option "+o,bu.ERR_BAD_OPTION)}},validators:Ld},$d=Rd.validators;let Ad=class{constructor(e){this.defaults=e||{},this.interceptors={request:new $u,response:new $u}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(Pp){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ad(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:s}=t;void 0!==n&&Rd.assertOptions(n,{silentJSONParsing:$d.transitional($d.boolean),forcedJSONParsing:$d.transitional($d.boolean),clarifyTimeoutError:$d.transitional($d.boolean)},!1),null!=r&&(yu.isFunction(r)?t.paramsSerializer={serialize:r}:Rd.assertOptions(r,{encode:$d.function,serialize:$d.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Rd.assertOptions(t,{baseUrl:$d.spelling("baseURL"),withXsrfToken:$d.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=s&&yu.merge(s.common,s[t.method]);s&&yu.forEach(["delete","get","head","post","put","patch","common"],e=>{delete s[e]}),t.headers=Ju.concat(o,s);const a=[];let i=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!i){const e=[Td.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let p=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(f){t.call(this,f);break}}try{c=Td.call(this,p)}catch(f){return Promise.reject(f)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Ru(sd((e=ad(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};yu.forEach(["delete","get","head","options"],function(e){Ad.prototype[e]=function(t,n){return this.request(ad(n||{},{method:e,url:t,data:(n||{}).data}))}}),yu.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,s){return this.request(ad(s||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Ad.prototype[e]=t(),Ad.prototype[e+"Form"]=t(!0)});const Pd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Pd).forEach(([e,t])=>{Pd[t]=e});const Fd=function e(t){const n=new Ad(t),r=Rc(Ad.prototype.request,n);return yu.extend(r,Ad.prototype,n,{allOwnKeys:!0}),yu.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ad(t,n))},r}(Wu);Fd.Axios=Ad,Fd.CanceledError=Ku,Fd.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,s){n.reason||(n.reason=new Ku(e,r,s),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},Fd.isCancel=Gu,Fd.VERSION=Od,Fd.toFormData=Mu,Fd.AxiosError=bu,Fd.Cancel=Fd.CanceledError,Fd.all=function(e){return Promise.all(e)},Fd.spread=function(e){return function(t){return e.apply(null,t)}},Fd.isAxiosError=function(e){return yu.isObject(e)&&!0===e.isAxiosError},Fd.mergeConfig=ad,Fd.AxiosHeaders=Ju,Fd.formToJSON=e=>zu(yu.isHTMLForm(e)?new FormData(e):e),Fd.getAdapter=Sd,Fd.HttpStatusCode=Pd,Fd.default=Fd;const{Axios:jd,AxiosError:Nd,CanceledError:Dd,isCancel:Id,CancelToken:Ud,VERSION:zd,all:Wd,Cancel:Hd,isAxiosError:Bd,spread:Vd,toFormData:Yd,AxiosHeaders:qd,HttpStatusCode:Jd,formToJSON:Zd,getAdapter:Gd,mergeConfig:Kd}=Fd,Xd=e=>JSON.parse(JSON.stringify(e)),Qd={plugins:"background-color: #3f2d56; color: #FFF",startup:"background-color: #5A8C99; color: #FFF",auth:"background-color: #5A8C99; color: #FFF",websocket:"background-color: #5A8C99; color: #FFF"},ep=new Proxy({},{get:function(e,t,n){return(e,n)=>((e,t,n)=>{const r=n?`color: ${n}`:Qd[e.toLowerCase()]||"color: #FFF";console.log(`%c[CHAT]%c%c[${e.toUpperCase()}]%c ${t}`,"background-color: #3f2d56;","padding: 5px",r,"color: inherit")})(t.toString(),e,n)}});let tp={};class np{endpoints={live:{api:"http://api.lilaquadrat.de",media:"http://media.lilaquadrat.de"},next:{api:"http://next-api.lilaquadrat.de",media:"http://next-media.lilaquadrat.de"}};customEndpoints={api:"",media:""};authToken;mode="next";company;project;app;universalModel;options;constructor(e,t){this.authToken=t.authToken,this.customEndpoints=t.customEndpoints,this.mode=t.customEndpoints?"custom":t.mode||"live",this.app=e}getUrl(e,t,n){const r=t.filter(e=>e),s=[];let o;return o="custom"===this.mode?this.customEndpoints[e]:this.endpoints[this.mode][e],s.push(o),s.push(...r),s.filter(e=>e).join("/")}getHeaders(){const e={"studio-app":this.app};return this.authToken&&(e.Authorization=`bearer ${this.authToken}`),e}static getCacheKeyMock(e){const t=new URL(e);return t.pathname+t.search}static getCacheKey(e){let t=e;return t=t.replace(/:|\/|\?|=|&/gi,"-"),t}static getCache(){return tp}static handleCall(e,t){if("GET"===e.method&&!t?.bypassCache){const n=np.cache(Fd.getUri(e),void 0,t);if(n)return Promise.resolve(n)}return Fd.request(e).then(n=>("GET"===e.method&&np.cache(Fd.getUri(e),n,t),n)).then(e=>({data:e.data,status:e.status}))}static cache(e,t,n){const r=n?.id?n.id:np.getCacheKey(e);if(ep.cache(r),t){const e=n?.id?n.id:r;return void(tp[e]={data:t.data,status:t.status,action:n?.action,group:n?.group,cacheLifetime:n?.cacheLifetime?Date.now()+(n?.cacheLifetime||0):null,cacheTime:Date.now()})}const s=tp[r];if(!s)return null;if(s.cacheLifetime&&s.cacheLifetime<Date.now())return delete tp[r],null;const o=Xd(s);return delete o?.action,delete o?.group,delete o?.id,o.isCache=!0,o}static flushCache(e,t){e||t?Object.keys(tp).forEach(n=>{let r=!1;const s=tp[n];e&&t?s.group===e&&s.action===t&&(r=!0):e?s.group===e&&(r=!0):t&&s.action===t&&(r=!0),r&&delete tp[n]}):tp={}}static flushId(e){delete tp[e]}conversations={list:()=>np.handleCall({method:"GET",url:this.getUrl("api",["conversations","list"]),headers:this.getHeaders()},{group:"conversations",action:"list"}),activate:()=>np.handleCall({method:"POST",url:this.getUrl("api",["hosting",this.company,this.project,"activate"]),headers:this.getHeaders(),params:{}}),create:e=>np.handleCall({method:"POST",url:this.getUrl("api",["conversations"]),headers:this.getHeaders(),data:e}),rename:(e,t)=>np.handleCall({method:"PUT",url:this.getUrl("api",["conversations",e,"name"]),headers:this.getHeaders(),data:{name:t}}),participants:(e,t,n)=>np.handleCall({method:"PUT",url:this.getUrl("api",["conversations",e,"participants"]),headers:this.getHeaders(),data:{add:t,remove:n}}),leave:e=>np.handleCall({method:"POST",url:this.getUrl("api",["conversations",e,"leave"]),headers:this.getHeaders()}),listParticipants:e=>np.handleCall({method:"GET",url:this.getUrl("api",["conversations",e,"participants"]),headers:this.getHeaders()},{bypassCache:!0}),rights:(e,t,n)=>np.handleCall({method:"PUT",url:this.getUrl("api",["conversations",e,"rights"]),headers:this.getHeaders(),data:{user:t,rights:n}}),block:(e,t,n)=>np.handleCall({method:"PUT",url:this.getUrl("api",["conversations",e,"block"]),headers:this.getHeaders(),data:{user:t,block:n}})};contacts={list:e=>np.handleCall({method:"GET",url:this.getUrl("api",["contacts"]),headers:this.getHeaders(),params:e?{search:e}:void 0},{group:"contacts",action:"list"}),single:e=>np.handleCall({method:"GET",url:this.getUrl("api",["contacts",e]),headers:this.getHeaders()}),block:e=>np.handleCall({method:"POST",url:this.getUrl("api",["contacts",e,"block"]),headers:this.getHeaders()}),unblock:e=>np.handleCall({method:"DELETE",url:this.getUrl("api",["contacts",e,"block"]),headers:this.getHeaders()})};messages={list:(e,t)=>np.handleCall({method:"GET",url:this.getUrl("api",["messages",e]),headers:this.getHeaders(),params:{beforeId:t}},{group:"messages",action:"list",id:e})};health={health:()=>np.handleCall({method:"GET",url:this.getUrl("api",["health"]),headers:this.getHeaders()})}}const rp=qo("user",()=>({user:xt()})),sp=qo("main",()=>{const e=xt("conversations"),t=xt("chat"),n=xt("disconnected"),r=xt(!1),s=xt(["chat"]),o=Fs(()=>s.value.includes("chat")),a=Fs(()=>s.value.includes("support")),i=Fs(()=>a.value&&!o.value),l=xt("full");return{leftTarget:e,mainTarget:t,state:n,fullscreen:r,features:s,hasChat:o,hasSupport:a,isSupportOnly:i,viewMode:l,setViewMode:function(e){l.value=e},supportParticipants:xt([]),wsUrl:xt("ws://localhost:3001"),apiUrl:xt("http://localhost:3000"),mediaUrl:xt("http://localhost:3000"),authToken:xt("devToken"),unreadCallback:xt(),closeCallback:xt(),showConversations:function(){e.value="conversations"},showNewChat:function(){},showEditChat:function(){e.value="contacts-edit"},hideLeft:function(){e.value=void 0}}}),op=[];for(let im=0;im<256;++im)op.push((im+256).toString(16).slice(1));let ap;const ip=new Uint8Array(16);const lp={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function cp(e,t,n){if(lp.randomUUID&&!e)return lp.randomUUID();const r=(e=e||{}).random??e.rng?.()??function(){if(!ap){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ap=crypto.getRandomValues.bind(crypto)}return ap(ip)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(e,t=0){return(op[e[t+0]]+op[e[t+1]]+op[e[t+2]]+op[e[t+3]]+"-"+op[e[t+4]]+op[e[t+5]]+"-"+op[e[t+6]]+op[e[t+7]]+"-"+op[e[t+8]]+op[e[t+9]]+"-"+op[e[t+10]]+op[e[t+11]]+op[e[t+12]]+op[e[t+13]]+op[e[t+14]]+op[e[t+15]]).toLowerCase()}(r)}function up(e){return"string"==typeof e?e:e?.id}function dp(e=[]){return e.map(up)}const pp=qo("usersCache",()=>{const e=xt({}),t=new Map;function n(t){t?.id&&(e.value[t.id]={...e.value[t.id],...t})}return{entries:e,ingest:function(e=[]){e.forEach(e=>{"string"!=typeof e&&e?.id&&n(e)})},setOne:n,get:function(t){return e.value[t]},name:function(t){const n=e.value[t];return n?"string"==typeof(r=n)?r:r?[r.prename,r.lastname].filter(Boolean).join(" ").trim()||r.name||r.id:"":t;var r},ensure:async function(r=[]){const s=[...new Set(r)].filter(n=>n&&!e.value[n]&&!t.has(n));if(!s.length)return;const o=new np("chat",function(){const e=sp();return{authToken:e.authToken,customEndpoints:{api:e.apiUrl,media:e.mediaUrl}}}()),a=(async()=>{try{(await Promise.allSettled(s.map(e=>o.contacts.single(e)))).forEach(e=>{"fulfilled"===e.status&&n(e.value?.data)})}catch(e){console.warn("[studio-chat] could not resolve users",e)}})();s.forEach(e=>t.set(e,a)),await a,s.forEach(e=>t.delete(e))}}}),fp=qo("conversations",()=>{const e=xt([]),t=xt(),n=Fs(()=>e.value.filter(e=>e.unread)),r=Fs(()=>n.value.reduce((e,t)=>e+(t.unreadCount||0),0)),s=Fs(()=>n.value.length),o=xt({}),a=new Map;function i(){const e=sp();return{authToken:e.authToken,customEndpoints:{api:e.apiUrl,media:e.mediaUrl}}}async function l(){const t=new np("chat",i());((await t.conversations.list()).data||[]).forEach(t=>{const n=e.value.find(e=>e._id===t._id||e.id===t.id&&t.id);n?(n.unreadCount=t.unreadCount,n.unread=t.unread,n.lastMessage=t.lastMessage,n.messagesCount=t.messagesCount,n.participant={...n.participant,...t.participant}):e.value.push(t),pp().ingest(t.participants)}),m()}function c(){return np.flushCache("conversations","list"),np.flushCache("messages","list"),l()}async function u(e,t){const n=new np("chat",i());return(await n.messages.list(e,t)).data}function d(t,n,r="chat"){const s=cp();return e.value.push({id:s,isNew:!0,participants:t,creator:n,operationMode:r}),s}async function p(n){const r=e.value.find(e=>e._id===n||e.id===n);t.value=r||null}function f(e,t){const n=h(t);if(!n)return;n.messages||(n.messages=[]);const r=e.filter(e=>!n.messages.some(t=>t.id===e.id));n.messages.push(...r),n.messages.sort((e,t)=>t.id-e.id)}function h(t){return e.value.find(e=>e._id===t||e.id===t)}function m(){e.value.forEach(e=>{g(e._id)})}function g(e){const t=h(e);if(!t)return;const n=t.participant?.lastReadId;t.unreadCount=n?(t.lastMessage?.id??n)-n:t.messagesCount||0,t.unread=t.unreadCount>0}return{getAllConversations:l,refreshConversations:c,handleReconnect:async function(){await c();const e=t.value;if(e&&!e.isNew&&e._id){f(await u(e._id),e._id)}},conversations:e,unreadConversations:n,totalUnreadCount:r,totalUnreadConversations:s,typing:o,setTyping:function e(t,n,r){const s=`${t}:${n}`,i=a.get(s);i&&clearTimeout(i);const l=o.value[t]||[];r?(l.includes(n)||(o.value[t]=[...l,n]),a.set(s,setTimeout(()=>e(t,n,!1),7e3))):(o.value[t]=l.filter(e=>e!==n),a.delete(s))},loadParticipants:async function(e){const t=new np("chat",i()),n=await t.conversations.listParticipants(e),r=h(e);return r&&(r.participantDocs=n.data||[]),n.data||[]},setRights:function(e,t,n){return new np("chat",i()).conversations.rights(e,t,n)},blockUser:function(e,t,n){return new np("chat",i()).conversations.block(e,t,n)},updateParticipantRights:function(e,t,n){const r=h(e);if(!r)return;const s=r.participantDocs?.find(e=>e.user===t);s&&(s.rights=n),r.participant&&rp().user===t&&(r.participant.rights=n)},create:async function(e){const t=new np("chat",i());return await t.conversations.create({participants:e})},createNew:d,startSupport:function(){const t=rp().user;if(!t)return;const n=e.value.find(e=>"support"===e.operationMode);if(n){const e=n._id||n.id;return p(e),e}const r=sp().supportParticipants.filter(e=>e!==t),s=d([t,...r],t,"support");return p(s),s},activateConversation:p,activeConversation:t,convertTempToConversation:function(t){const n=h(t.id);n?(n._id=t._id,n.isNew=!1,n.name=t.name,n.participant=t.participant,n.lastMessage=t.lastMessage,n.messages=[],t.participants&&(n.participants=t.participants),pp().ingest(t.participants),g(t._id)):function(t){const n={_id:t._id,participants:t.participants,lastMessage:t.lastMessage,participant:t.participant,messages:[],messagesCount:t.messagesCount||0,oldestMessageId:t.oldestMessageId,operationMode:t.operationMode||"chat"};e.value.push(n),pp().ingest(n.participants)}(t)},getMessagesFromApi:u,addMessagesToConversation:f,getMessagesForConversation:function(e){const t=h(e);if(!t)return[];const n=Xd(t);return n.messages?.reverse()||[]},updateLastMessage:function(t,n){const r=e.value.find(e=>e._id===t||e.id===t);r&&(r.lastMessage=n)},updateUnread:g,updateAllUnread:m,increaseMessageCount:function(e){const t=h(e);t&&t.messagesCount++},increaseMessageCountSystem:function(e){const t=h(e);t&&t.messagesCountSystem++},setLastReadId:function(e,t){const n=h(e);n&&(n.participant.lastReadId=t)},getConversation:h,addParticipant:function(e,t){const n=h(e);n&&(n.participants.some(e=>up(e)===t)||n.participants.push(t))},removeParticipant:function(e,t){const n=h(e);if(!n)return;const r=n.participants.findIndex(e=>up(e)===t);-1!==r&&n.participants.splice(r,1)},setParticipants:function(e,t){const n=h(e);n&&(n.participants=t,pp().ingest(t))},toggleParticipant:function(e,t){const n=h(e);if(!n)return;const r=n.participants.findIndex(e=>up(e)===t);-1===r?n.participants.push(t):n.participants.splice(r,1)},getConversationViaParticipantsAndName:function(t,n,r){const s=dp(t);return e.value.find(e=>{if(r?.excludeTemp&&e.isTemp)return!1;if(r?.exclude&&r.exclude.includes(e._id||e.id))return!1;if(e.name!==n)return!1;const t=dp(e.participants);return t.length===s.length&&t.every(e=>s.includes(e))})},cleanConversations:function(){const t=new Map;e.value=e.value.filter(e=>{if(e.participants.length<=1)return!1;const n=dp(e.participants).sort().join(",");return e.isNew?!t.has(n)&&(t.set(n,1),!0):!t.has(n)})},abandonConversation:function(t){const n=e.value.findIndex(e=>e._id===t||e.id===t);-1!==n&&e.value.splice(n,1)},inactivateConversation:function(){t.value=null},rename:async function(e,t){const n=h(e);if(n?.isNew)return n.name=t,Promise.resolve();{const n=new np("chat",i());return await n.conversations.rename(e,t)}},conversationRenamed:function(e,t){const n=h(e);n&&(n.name=t)},executeParticipantsEdit:function(e,t,n){return new np("chat",i()).conversations.participants(e,t,n)},updateConversationParticipant:function(e,t){const n=h(e);n&&(n.participant.state=t)},leave:function(e){return new np("chat",i()).conversations.leave(e)}}}),hp={class:"conversations-module"},mp=["onClick"],gp={class:"time"},vp={key:3,class:"lastMessage"},yp={key:4,class:"unread"},bp={key:5,class:"draft"},_p=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},wp=_p(bn({__name:"conversations.module",setup(e){const t=fp(),n=sp(),r=rp();pn(()=>r.user,e=>{e&&(t.cleanConversations(),t.getAllConversations())},{immediate:!0});const s=Fs(()=>Xd(t.conversations).sort((e,t)=>Xo(e.lastMessage?.history.created).isBefore(Xo(t.lastMessage?.history.created))?1:-1).map(e=>({...e,isActive:o.value?._id===e._id&&e._id||o.value?.id===e.id&&e.id}))),o=Fs(()=>t.activeConversation);function a(e){t.activateConversation(e),n.hideLeft()}let i=!1;return pn(s,e=>{if(i||!e.length||o.value)return;const t=e.find(e=>!e.isNew);t&&(i=!0,a(t._id||t.id))}),(e,t)=>{const n=Hn("participants-partial");return es(),ss("section",hp,[(es(!0),ss(Jr,null,Yn(s.value,t=>(es(),ss("article",{key:t._id,class:V(["single-conversation",{active:t.isActive,unread:t.unread,support:"support"===t.operationMode}]),role:"button",onClick:e=>a(t._id||t.id)},["support"===t.operationMode?(es(),ss(Jr,{key:0},[fs(G(e.$t("support")),1)],64)):t.name?(es(),ss(Jr,{key:1},[fs(G(t.name),1)],64)):(es(),os(n,{key:2,participants:t.participants,"remove-user":""},null,8,["participants"])),us("span",gp,G(Tt(Xo)(t.lastMessage?.history.created).fromNow()),1),t.lastMessage?(es(),ss("p",vp,G(t.lastMessage.message),1)):hs("",!0),t.unread?(es(),ss("span",yp,G(t.unreadCount),1)):hs("",!0),t.isNew?(es(),ss("span",bp,"draft")):hs("",!0)],10,mp))),128))])}}}),[["styles",[".conversations-module[data-v-31a1e26e]{display:grid;grid-auto-rows:max-content}.conversations-module .single-conversation[data-v-31a1e26e]{padding:20px;gap:5px;cursor:pointer;display:grid;grid-template-columns:1fr 1fr}.conversations-module .single-conversation .time[data-v-31a1e26e]{justify-self:end}.conversations-module .single-conversation .lastMessage[data-v-31a1e26e]{grid-column:1 / 3;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.conversations-module .single-conversation[data-v-31a1e26e]:hover{background-color:var(--scm-color-surface)}.conversations-module .single-conversation.active[data-v-31a1e26e]{background-color:color-mix(in srgb,var(--scm-color-surface) 85%,var(--scm-color-muted))}.conversations-module .single-conversation.support[data-v-31a1e26e]{font-weight:600;border-left:3px solid var(--scm-color-primary)}"]],["__scopeId","data-v-31a1e26e"]]),kp=bn({__name:"chats.module",setup(e){const t=fp(),n=Fs(()=>t.activeConversation);return(e,t)=>{const r=Hn("chat-module");return n.value?(es(),os(r,function(e){if(!e)return null;let{class:t,style:n}=e;return t&&!v(t)&&(e.class=V(t)),n&&(e.style=U(n)),e}(ys({key:0},n.value)),null,16)):hs("",!0)}}});class xp{static instance=null;socket=null;currentOptions=null;retryCount=0;retryDelay=1e3;retryTimeoutId=null;refCount=0;onConnectionChange;heartbeatIntervalId=null;lastActivity=0;constructor(){}static getInstance(){return xp.instance||(xp.instance=new xp),xp.instance}get isConnected(){return this.socket?.readyState===WebSocket.OPEN}get options(){return this.currentOptions}acquire(){this.refCount++}release(){this.refCount=Math.max(0,this.refCount-1),0===this.refCount&&this._teardownSocket("no-consumers")}connect(e){const{url:t,maxRetries:n=50,maxRetryDelay:r=3e4,onMessage:s,onOpen:o,onClose:a,onError:i,heartbeatIntervalMs:l=3e4,inactivityTimeoutMs:c=6e4,buildPingMessage:u}=e;if(this.currentOptions={...e,maxRetries:n,maxRetryDelay:r,heartbeatIntervalMs:l,inactivityTimeoutMs:c,buildPingMessage:u},this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING))return void ep.websocket("WS already connecting/open; reusing existing socket");this.retryTimeoutId&&(clearTimeout(this.retryTimeoutId),this.retryTimeoutId=null);const d=new WebSocket(t);this.socket=d,d.onopen=()=>{this.retryCount=0,this.lastActivity=Date.now(),ep.websocket(`connected (readyState ${d.readyState})`),this.onConnectionChange?.(!0),o?.(),this.startHeartbeat()},d.onmessage=e=>{this.lastActivity=Date.now(),s?.(e.data)},d.onerror=e=>{console.error("WebSocket error:",e),i?.(e)},d.onclose=e=>{this.stopHeartbeat();const t=1006!==e.code||d.readyState===WebSocket.CLOSED;ep.websocket(`disconnected (code ${e.code}, clean ${e.wasClean}, everOpened ${t})`),this.onConnectionChange?.(!1),a?.(e),this.refCount>0&&this.attemptReconnect()}}startHeartbeat(){this.stopHeartbeat();const e=this.currentOptions?.heartbeatIntervalMs??3e4;e<=0||(this.heartbeatIntervalId=setInterval(()=>{const t=Date.now(),n=this.currentOptions?.inactivityTimeoutMs??6e4,r=this.socket;if(r&&0!==this.refCount){if(r.readyState===WebSocket.CLOSED)return ep.websocket("watchdog: detected CLOSED without onclose, triggering reconnect"),this.onConnectionChange?.(!1),this.stopHeartbeat(),void(this.refCount>0&&this.attemptReconnect());if(t-this.lastActivity>n)return ep.websocket("watchdog: inactivity threshold exceeded; forcing reconnect"),void this.reconnect();if(r.readyState===WebSocket.OPEN)try{const s=this.currentOptions?.buildPingMessage;if(t-this.lastActivity>Math.min(.5*n,e)){const e=s?s():{type:"ping",ts:t};r.send(JSON.stringify(e))}}catch{}}else this.stopHeartbeat()},e))}stopHeartbeat(){this.heartbeatIntervalId&&(clearInterval(this.heartbeatIntervalId),this.heartbeatIntervalId=null)}attemptReconnect(){if(!this.currentOptions)return;const{maxRetries:e}=this.currentOptions;if(this.retryCount<e){this.retryCount++;const t=this.calculateRetryDelay();ep.websocket(`Attempting to reconnect (${this.retryCount}/${e}) in ${t}ms`),this.retryTimeoutId=setTimeout(()=>{this.currentOptions&&this.refCount>0&&this.connect(this.currentOptions)},t)}else ep.websocket("Max retry attempts reached")}calculateRetryDelay(){const e=(Math.floor(4001*Math.random())+1e3)*Math.max(1,this.retryCount),t=this.options?.maxRetryDelay??3e4;return Math.min(e,t)}reconnect(){this.currentOptions&&(this.retryTimeoutId&&(clearTimeout(this.retryTimeoutId),this.retryTimeoutId=null),this.retryCount=0,this._teardownSocket("manual-reconnect"),this.connect(this.currentOptions))}disconnect(){this._teardownSocket("manual-disconnect"),this.onConnectionChange?.(!1)}_teardownSocket(e){this.stopHeartbeat(),this.retryTimeoutId&&(clearTimeout(this.retryTimeoutId),this.retryTimeoutId=null);const t=this.socket;if(this.socket=null,t&&t.readyState===WebSocket.OPEN)t.close(1e3,e);else if(t&&t.readyState===WebSocket.CONNECTING)try{t.close()}catch{}}send(e){if(this.socket&&this.isConnected)try{return this.socket.send(JSON.stringify(e)),this.lastActivity=Date.now(),!0}catch{return!1}return!1}}function Cp(){const e=xp.getInstance(),t=sp();e.acquire(),e.onConnectionChange=e=>{t.state=e?"connected":"disconnected"};return Dn(()=>{e.release()}),{connect:t=>e.connect(t),disconnect:()=>e.disconnect(),reconnect:()=>e.reconnect(),conversationStart:(t,n,r,s,o)=>e.send({type:"conversation:start",message:t,participants:n,name:r,id:s,operationMode:o}),conversationLastRead:(t,n)=>e.send({type:"conversation:lastRead",conversation:t,lastReadId:n}),messageAdd:(t,n)=>e.send({type:"message:add",message:t,conversation:n}),authenticate:t=>e.send({type:"authenticate",token:t}),conversationTyping:(t,n)=>e.send({type:"conversation:typing",conversation:t,typing:n})}}const Sp={"conversation:new":e=>{const t=fp();t.convertTempToConversation(e),np.flushId(e._id),e.id&&e.id===t.activeConversation.id&&sp().showConversations()},"conversation:renamed":e=>{fp().conversationRenamed(e.conversation,e.names.to)},"conversation:participants":e=>{fp().setParticipants(e.conversation,e.participants)},"conversation:left":e=>{const t=rp(),n=fp();n.removeParticipant(e.conversation,e.user),t.user===e.user&&n.updateConversationParticipant(e.conversation,"left")},"conversation:removed":e=>{const t=fp();t.activeConversation?._id===e.conversation&&(t.inactivateConversation(),sp().showConversations()),t.abandonConversation(e.conversation)},"conversation:rights":e=>{fp().updateParticipantRights(e.conversation,e.user,e.rights)},"conversation:typing":e=>{fp().setTyping(e.conversation,e.user,e.typing)},message:e=>{const t=fp(),n=rp();t.addMessagesToConversation([e],e.conversation),n.user===e.user&&t.setLastReadId(e.conversation,e.id),"user"===e.origin&&(t.updateLastMessage(e.conversation,e),t.increaseMessageCount(e.conversation),t.updateUnread(e.conversation)),t.increaseMessageCountSystem(e.conversation)}};let Mp=null;async function Tp(){if(Mp)return await Mp()}function Op(e,t,n,r){e.forEach(e=>{const t=function(e,t){return`${e}-${t}`}(e.name,n);r.component(t,e.component)})}const Lp=qo("calls",()=>{const e=xt({});return{calls:e,addCall:function(){const t=cp();return e.value[t]="pending",t},updateCall:function(t,n){e.value[t]=n}}});var Ep,Rp={exports:{}};var $p,Ap,Pp,Fp=(Ep||(Ep=1,Rp.exports=($p="minute",Ap=/[+-]\d\d(?::?\d\d)?/g,Pp=/([+-]|\d\d)/g,function(e,t,n){var r=t.prototype;n.utc=function(e){return new t({date:e,utc:!0,args:arguments})},r.utc=function(e){var t=n(this.toDate(),{locale:this.$L,utc:!0});return e?t.add(this.utcOffset(),$p):t},r.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var s=r.parse;r.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var o=r.init;r.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else o.call(this)};var a=r.utcOffset;r.utcOffset=function(e,t){var n=this.$utils().u;if(n(e))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;if("string"==typeof e&&null===(e=function(e){void 0===e&&(e="");var t=e.match(Ap);if(!t)return null;var n=(""+t[0]).match(Pp)||["-",0,0],r=n[0],s=60*+n[1]+ +n[2];return 0===s?0:"+"===r?s:-s}(e)))return this;var r=Math.abs(e)<=16?60*e:e,s=this;if(t)return s.$offset=r,s.$u=0===e,s;if(0!==e){var o=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(r+o,$p)).$offset=r,s.$x.$localOffset=o}else s=this.utc();return s};var i=r.format;r.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return i.call(this,t)},r.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},r.isUTC=function(){return!!this.$u},r.toISOString=function(){return this.toDate().toISOString()},r.toString=function(){return this.toDate().toUTCString()};var l=r.toDate;r.toDate=function(e){return"s"===e&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var c=r.diff;r.diff=function(e,t,r){if(e&&this.$u===e.$u)return c.call(this,e,t,r);var s=this.local(),o=n(e).local();return c.call(s,o,t,r)}})),Rp.exports);const jp=Jo(Fp);var Np,Dp={exports:{}};var Ip=(Np||(Np=1,Dp.exports=function(){var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,s){var o,a=function(e,n,r){void 0===r&&(r={});var s=new Date(e);return function(e,n){void 0===n&&(n={});var r=n.timeZoneName||"short",s=e+"|"+r,o=t[s];return o||(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),t[s]=o),o}(n,r).formatToParts(s)},i=function(t,n){for(var r=a(t,n),o=[],i=0;i<r.length;i+=1){var l=r[i],c=l.type,u=l.value,d=e[c];d>=0&&(o[d]=parseInt(u,10))}var p=o[3],f=24===p?0:p,h=o[0]+"-"+o[1]+"-"+o[2]+" "+f+":"+o[4]+":"+o[5]+":000",m=+t;return(s.utc(h).valueOf()-(m-=m%1e3))/6e4},l=r.prototype;l.tz=function(e,t){void 0===e&&(e=o);var n,r=this.utcOffset(),a=this.toDate(),i=a.toLocaleString("en-US",{timeZone:e}),l=Math.round((a-new Date(i))/1e3/60),c=15*-Math.round(a.getTimezoneOffset()/15)-l;if(Number(c)){if(n=s(i,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(c,!0),t){var u=n.utcOffset();n=n.add(r-u,"minute")}}else n=this.utcOffset(0,t);return n.$x.$timezone=e,n},l.offsetName=function(e){var t=this.$x.$timezone||s.tz.guess(),n=a(this.valueOf(),t,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return n&&n.value};var c=l.startOf;l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var n=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(n,e,t).tz(this.$x.$timezone,!0)},s.tz=function(e,t,n){var r=n&&t,a=n||t||o,l=i(+s(),a);if("string"!=typeof e)return s(e).tz(a);var c=function(e,t,n){var r=e-60*t*1e3,s=i(r,n);if(t===s)return[r,t];var o=i(r-=60*(s-t)*1e3,n);return s===o?[r,s]:[e-60*Math.min(s,o)*1e3,Math.max(s,o)]}(s.utc(e,r).valueOf(),l,a),u=c[0],d=c[1],p=s(u).utcOffset(d);return p.$x.$timezone=a,p},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(e){o=e}}}()),Dp.exports);const Up=Jo(Ip);var zp,Wp={exports:{}};var Hp=(zp||(zp=1,Wp.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,r){var s=n.prototype,o=s.format;r.en.formats=e,s.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n,r=this.$locale().formats,s=(n=void 0===r?{}:r,t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,r,s){var o=s&&s.toUpperCase();return r||n[s]||e[s]||n[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})}));return o.call(this,s)}}}()),Wp.exports);const Bp=Jo(Hp);var Vp,Yp={exports:{}};Vp||(Vp=1,Yp.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function s(e,t,n){var s=r[n];return Array.isArray(s)&&(s=s[t?0:1]),s.replace("%d",e)}var o={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s}};return n.default.locale(o,null,!0),o}(Ko()));var qp,Jp={exports:{}};qp||(qp=1,Jp.exports={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}}),Xo.extend(jp),Xo.extend(Up),Xo.extend(Bp);const Zp=navigator.language||navigator.languages?.[0]||"en";Xo.locale(Zp);const Gp=Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC";function Kp(e,t){const n=[...e].sort((e,t)=>new Date(e.history.created).getTime()-new Date(t.history.created).getTime()),r={};return n.forEach(e=>{const n=function(e,t="ll"){return Xo(e).tz(Gp).format(t)}(e.history.created),s=function(e,t="HH:mm"){return Xo(e).tz(Gp).format(t)}(e.history.created),o=e.origin,a=e.user;e.isUser=e.user===t,r[n]||(r[n]={date:n,userTimeGroups:[]});const i=r[n].userTimeGroups,l=i[i.length-1];if(!l||"system"===l.origin||"system"===o||l.user!==a||l.origin!==o||l.time!==s){const t={user:a,origin:o,time:s,isUser:e.isUser,messages:[e]};i.push(t)}else l.messages.push(e)}),Object.values(r)}const Xp={class:"chat-messages"},Qp={class:"date-separator"},ef={class:"message-content"},tf=["id"],nf={key:2,class:"typing-indicator"},rf=_p(bn({__name:"chat.module",props:{_id:{type:String},id:{type:String},isNew:{type:Boolean},participants:{type:Array},name:{type:String},operationMode:{type:String}},setup(e){const{traceable:t}=(()=>{const{addCall:e,updateCall:t}=Lp();return{traceable:async function(n,r,s={time:3e3}){const o=e();r&&(r.value=o);const a=s.time>0?new Promise(e=>setTimeout(e,s.time)):Promise.resolve(),i=await Promise.allSettled([a,n]);if("rejected"===i[1].status)throw t(o,"rejected"),i[1].reason;return t(o,"resolved"),i[1].value}}})(),{conversationStart:n,messageAdd:r,conversationLastRead:s,conversationTyping:o}=Cp(),{user:a}=rp(),i=fp(),l=pp(),c=e,u=Fs(()=>i.getMessagesForConversation(c._id||"")),d=Fs(()=>i.getConversation(c._id||c.id)),p=xt(""),f=xt(),h=xt(!0),m=xt(!0),g=xt(!1),v=xt(!1),y=xt(null),b=sp();let _=null,w=null,k=0;function x(){g.value=f.value&&f.value.scrollHeight>f.value.clientHeight}function C(){x()}const S=Fs(()=>"support"===c.operationMode);async function M(){const e=await t(i.getMessagesFromApi(c._id,P.value),void 0,{time:1e3});i.addMessagesToConversation(e,c._id)}async function T(){if(!c.isNew&&c._id&&!d.value?.messagesLoaded){d.value&&(d.value.messagesLoaded=!0);try{const e=await t(i.getMessagesFromApi(c._id),void 0,{time:0});i.addMessagesToConversation(e,c._id),O()}catch(e){throw d.value&&(d.value.messagesLoaded=!1),e}}}function O(){d.value?.participant?.lastReadId<d.value?.lastMessage?.id&&(s(c._id,d.value.lastMessage.id),i.setLastReadId(c._id,d.value.lastMessage.id),i.updateUnread(c._id))}function L(){_&&clearTimeout(_),_=setTimeout(()=>{if(f.value){const{scrollTop:e,scrollHeight:t,clientHeight:n}=f.value,r=Math.max(10*n/100,1);m.value=e<=r,h.value=e+n>=t-r}},100)}function E(){b.showConversations(),i.abandonConversation(c.id),i.inactivateConversation()}function R(){if(!c._id)return;const e=Date.now();e-k>3e3&&(k=e,o(c._id,!0)),w&&clearTimeout(w),w=setTimeout($,4e3)}function $(){w&&(clearTimeout(w),w=null),k&&(k=0,c._id&&o(c._id,!1))}pn(()=>c._id,()=>{T(),h.value=!0},{immediate:!0}),pn(()=>m.value,async()=>{if(m.value&&P.value>F.value){const e=`message-${P.value}`;await M(),Gt(()=>f.value.scrollTop=document.getElementById(e)?.offsetTop||0)}}),pn(u,async()=>{u.value.length?(await Gt(),O(),x(),P.value>F.value&&(g.value||await M()),h.value&&f.value&&(f.value.scrollTop=f.value.scrollHeight,h.value=!0)):T()},{deep:!0}),pn(()=>[c.participants,c.name],()=>{if(c.participants?.length<=1||!c.isNew)return v.value=!1,!1;const e=i.getConversationViaParticipantsAndName(c.participants,c.name,{exclude:[c.id]});e?.isNew||(e?._id?(v.value=!0,y.value=e._id):v.value=!1)},{deep:!0}),pn(u,e=>{l.ensure((e||[]).map(e=>e.user))},{immediate:!0});const A=Fs(()=>Kp(u.value,a)),P=Fs(()=>u.value[0]?.id),F=Fs(()=>{const e=i.getConversation(c._id);return e?.oldestMessageId}),j=Fs(()=>d.value?.isNew||"active"===d.value?.participant?.state&&d.value?.participant?.rights?.includes("write")),N=Fs(()=>(i.typing[c._id||""]||[]).filter(e=>e!==a)),D=Fs(()=>N.value.map(e=>l.name(e)));return Pn(()=>{x(),window.addEventListener("resize",C)}),Nn(()=>{_&&clearTimeout(_),window.removeEventListener("resize",C),$()}),(t,s)=>{const o=Hn("chat-header-partial"),a=Hn("button-partial"),l=Hn("notice-partial"),u=Hn("contacts-module"),h=Hn("user-avatar-partial"),m=Hn("system-message-partial"),g=Hn("chat-input-partial");return es(),ss("section",{class:V(["chat-module",{isNew:e.isNew}])},[ds(o,{conversation:c._id||c.id},null,8,["conversation"]),ds(l,{type:"notice"},{default:an(()=>[e.isNew&&!S.value?(es(),os(a,{key:0,variant:"danger",size:"sm",onClick:E},{default:an(()=>[...s[3]||(s[3]=[fs(" Abandon draft ",-1)])]),_:1})):hs("",!0),v.value?(es(),ss(Jr,{key:1},[s[5]||(s[5]=us("p",null,"chat already exists",-1)),ds(a,{variant:"primary",size:"sm",onClick:s[0]||(s[0]=e=>{return t=y.value,i.abandonConversation(c.id),i.activateConversation(t),void b.showConversations();var t})},{default:an(()=>[...s[4]||(s[4]=[fs(" jump to chat ",-1)])]),_:1})],64)):hs("",!0)]),_:1}),e.isNew?(es(),os(u,{key:0})):hs("",!0),e.isNew?hs("",!0):(es(),ss("section",{key:1,ref_key:"chatMessagesRef",ref:f,class:"chat-messages-scroll-container",onScroll:L},[us("div",Xp,[(es(!0),ss(Jr,null,Yn(A.value,e=>(es(),ss("div",{key:e.date,class:"messages-group"},[us("div",Qp,G(e.date),1),(es(!0),ss(Jr,null,Yn(e.userTimeGroups,(e,t)=>(es(),ss("div",{key:t,class:V([[{isUser:e.isUser},e.origin],"message"])},[us("header",null,[e.isUser||"user"!==e.origin?hs("",!0):(es(),os(h,{key:0,"user-id":e.user},null,8,["user-id"])),us("time",null,G(e.time),1)]),us("div",ef,[(es(!0),ss(Jr,null,Yn(e.messages,e=>(es(),ss("p",{id:`message-${e.id}`,key:e.id},["system"===e.origin?(es(),os(m,ys({key:0,ref_for:!0},e),null,16)):hs("",!0),"user"===e.origin?(es(),ss(Jr,{key:1},[fs(G(e.message),1)],64)):hs("",!0)],8,tf))),128))])],2))),128))]))),128))])],544)),N.value.length?(es(),ss("div",nf,G(D.value.join(", "))+" "+G(N.value.length>1?"are":"is")+" writing… ",1)):hs("",!0),j.value?(es(),os(g,{key:3,modelValue:p.value,"onUpdate:modelValue":s[1]||(s[1]=e=>p.value=e),disabled:!!v.value,placeholder:"Message",onSubmit:s[2]||(s[2]=e=>function(e){const t=e.trim().replace(/\n{3,}/g,"\n\n").replace(/[^\S\n]{2,}/g," ");t&&!v.value&&(c.isNew&&c.participants&&c.id?n(t,dp(c.participants),d.value?.name,c.id,c.operationMode):r(t,c._id),$(),p.value="")}(p.value)),onTyping:R},null,8,["modelValue","disabled"])):hs("",!0)],2)}}}),[["styles",[".chat-module[data-v-5c5c2e96]{display:grid;height:100%;grid-template-rows:max-content 1fr max-content;overflow:hidden}.chat-module.isNew[data-v-5c5c2e96]{grid-template-rows:max-content 1fr max-content}.chat-module .notice-partial[data-v-5c5c2e96]{position:absolute;align-self:center;justify-self:center;z-index:100}.chat-module .chat-messages-scroll-container[data-v-5c5c2e96]{overflow-y:auto;position:relative;padding-bottom:50px;display:grid}.chat-module .chat-messages-scroll-container .chat-messages[data-v-5c5c2e96]{display:grid;grid-auto-rows:max-content;align-content:end}.chat-module .chat-messages-scroll-container .chat-messages .messages-group[data-v-5c5c2e96]{display:grid;gap:20px;margin:0 20px;grid-auto-rows:max-content;align-content:end}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message[data-v-5c5c2e96]{display:grid;grid-template-rows:auto auto;gap:10px;justify-self:start}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message.system[data-v-5c5c2e96]{width:100%;text-align:center;align-content:center;justify-content:center}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message.system header[data-v-5c5c2e96]{justify-content:center;grid-template-columns:1fr}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message.system header time[data-v-5c5c2e96]{text-align:center;color:var(--scm-color-muted);font-size:.75em}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message.system .message-content p[data-v-5c5c2e96]{background-color:transparent;padding:0;color:var(--scm-color-muted);font-size:.75em;white-space:pre-wrap}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message header[data-v-5c5c2e96]{display:grid;grid-template-columns:max-content max-content;gap:10px;width:100%;font-size:.875em}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message header time[data-v-5c5c2e96]{text-align:right}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message .message-content[data-v-5c5c2e96]{display:grid;gap:4px}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message .message-content p[data-v-5c5c2e96]{padding:10px;border-radius:5px;background-color:var(--scm-color-primary);color:#fff;justify-self:start;white-space:pre-wrap;font-size:1em}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message.isUser[data-v-5c5c2e96]{justify-self:end}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message.isUser p[data-v-5c5c2e96]{justify-self:end;background-color:var(--scm-color-own);color:#fff}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message.isUser header[data-v-5c5c2e96]{grid-template-columns:1fr}.chat-module .typing-indicator[data-v-5c5c2e96]{padding:4px 20px;font-size:.75em;color:var(--scm-color-muted);font-style:italic}.chat-module .date-separator[data-v-5c5c2e96]{text-align:center;padding:20px 0;font-size:.875em;font-weight:700}"]],["__scopeId","data-v-5c5c2e96"]]);const sf=qo("contacts",()=>{const e=rp(),t=xt([]);return{contacts:Fs(()=>t.value.filter(t=>t.id!==e.user)),users:t,loadUsers:async function(e){const n=new np("chat",function(){const e=sp();return{authToken:e.authToken,customEndpoints:{api:e.apiUrl,media:e.mediaUrl}}}()),r=await n.contacts.list(e);return t.value=r.data,pp().ingest(r.data),t.value}}}),of={class:"contacts-module"},af={key:0,class:"controls"},lf={key:1,class:"rights-panel"},cf={class:"who"},uf={class:"rights"},df=["checked","onChange"],pf=["onClick","onKeydown"],ff={key:0,class:"selected-indicator"},hf=_p(bn({__name:"contacts.module",setup(e){const t=sp(),n=sf(),r=fp(),s=xt([]),o=Fs(()=>r.activeConversation);function a(){const e=r.activeConversation;e&&(s.value=dp(Xd(e.participants)))}An(()=>{n.loadUsers(),a(),i.value&&h()}),pn(()=>o.value?.participants,()=>a()),pn(()=>o.value?._id,()=>{i.value&&h()});const i=Fs(()=>"contacts-edit"===t.leftTarget),l=Fs(()=>{if(o.value.isNew){const e=r.activeConversation;return Xd(n.contacts).map(t=>({id:t.id,name:t.name,inConversation:!!e&&dp(e.participants).includes(t.id)}))}if("contacts-edit"===t.leftTarget){return Xd(n.contacts).map(e=>({id:e.id,name:e.name,inConversation:s.value.includes(e.id)}))}return n.contacts});function c(e){if("contacts-edit"===t.leftTarget){const t=s.value.indexOf(e.id);-1===t?s.value.push(e.id):s.value.splice(t,1)}else r.toggleParticipant(r.activeConversation?.id,e.id)}function u(){s.value=[],t.showConversations()}async function d(){const e=dp(r.activeConversation.participants),n=e.filter(e=>!s.value.includes(e)),o=s.value.filter(t=>!e.includes(t));await r.executeParticipantsEdit(r.activeConversation?._id,o,n),t.showConversations()}const p=["read","write","rename","participants","block"],f=Fs(()=>o.value?.participantDocs||[]);function h(){const e=o.value?._id;e&&r.loadParticipants(e)}function m(e,t){return e.rights?.includes(t)||!1}function g(e){return"blocked"===e.state}return(e,t)=>{const n=Hn("button-partial"),s=Hn("user-avatar-partial");return es(),ss("article",of,[i.value?(es(),ss("section",af,[ds(n,{variant:"primary",size:"sm",onClick:d},{default:an(()=>[...t[0]||(t[0]=[fs(" save edits ",-1)])]),_:1}),ds(n,{variant:"secondary",size:"sm","aria-label":"Cancel edits",onClick:u},{default:an(()=>[...t[1]||(t[1]=[fs(" x ",-1)])]),_:1})])):hs("",!0),i.value?(es(),ss("section",lf,[t[3]||(t[3]=us("h4",null,"participant rights",-1)),us("ul",null,[(es(!0),ss(Jr,null,Yn(f.value,e=>(es(),ss("li",{key:e.user,class:"participant-rights"},[us("span",cf,[ds(s,{"user-id":e.user},null,8,["user-id"]),t[2]||(t[2]=fs()),us("em",null,"("+G(e.state)+")",1)]),us("span",uf,[(es(),ss(Jr,null,Yn(p,t=>us("label",{key:t,class:"right-toggle"},[us("input",{type:"checkbox",checked:m(e,t),onChange:n=>function(e,t){const n=new Set(e.rights||[]);n.has(t)?n.delete(t):n.add(t),r.setRights(o.value._id,e.user,[...n])}(e,t)},null,40,df),fs(" "+G(t),1)])),64))]),ds(n,{size:"sm",variant:g(e)?"secondary":"danger",onClick:t=>async function(e){await r.blockUser(o.value._id,e.user,!g(e)),h()}(e)},{default:an(()=>[fs(G(g(e)?"unblock":"block"),1)]),_:2},1032,["variant","onClick"])]))),128))])])):hs("",!0),us("ul",null,[(es(!0),ss(Jr,null,Yn(l.value,e=>(es(),ss("li",{key:e.id,class:V(["single-contact",{selected:e.inConversation}]),role:"button",tabindex:"0",onClick:t=>c(e),onKeydown:t=>function(e,t){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),c(t))}(t,e)},[ds(s,{"user-id":e.id},null,8,["user-id"]),e.inConversation?(es(),ss("span",ff,"✓")):hs("",!0)],42,pf))),128))])])}}}),[["styles",[".contacts-module[data-v-045be51e]{height:100%;overflow:scroll}.contacts-module .controls[data-v-045be51e]{display:grid;grid-template-columns:1fr 1fr}.contacts-module .rights-panel[data-v-045be51e]{padding:10px 20px;border-bottom:1px solid var(--scm-color-surface)}.contacts-module .rights-panel h4[data-v-045be51e]{margin-bottom:10px}.contacts-module .rights-panel .participant-rights[data-v-045be51e]{display:grid;gap:5px;padding:10px 0}.contacts-module .rights-panel .participant-rights .rights[data-v-045be51e]{display:flex;flex-wrap:wrap;gap:10px}.contacts-module .rights-panel .participant-rights .rights .right-toggle[data-v-045be51e]{cursor:pointer;font-size:.8125em}.contacts-module .rights-panel .participant-rights .who em[data-v-045be51e]{color:var(--scm-color-muted)}.contacts-module .single-contact[data-v-045be51e]{padding:20px;cursor:pointer;display:flex;justify-content:space-between;align-items:center}.contacts-module .single-contact[data-v-045be51e]:hover{background-color:var(--scm-color-surface)}.contacts-module .single-contact.selected[data-v-045be51e]{background-color:color-mix(in srgb,var(--scm-color-primary) 15%,transparent)}.contacts-module .single-contact .selected-indicator[data-v-045be51e]{color:var(--scm-color-primary);font-weight:700}"]],["__scopeId","data-v-045be51e"]]),mf={class:"participants-partial"},gf=_p(bn({__name:"participants.partial",props:{participants:{type:Array},removeUser:{type:Boolean},isNew:{type:Boolean}},setup(e){const t=rp(),n=e,r=Fs(()=>n.removeUser?n.participants.filter(e=>up(e)!==t.user):n.participants);return(t,n)=>{const s=Hn("user-avatar-partial");return es(),ss("section",mf,[e.isNew&&!r.value.length?(es(),ss(Jr,{key:0},[fs(G(t.$t("select contacts")),1)],64)):(es(!0),ss(Jr,{key:1},Yn(r.value,(e,t)=>(es(),ss(Jr,{key:Tt(up)(e)},[ds(s,{"user-id":Tt(up)(e)},null,8,["user-id"]),t<r.value.length-1?(es(),ss(Jr,{key:0},[fs(G(", "))],64)):hs("",!0)],64))),128))])}}}),[["styles",[""]],["__scopeId","data-v-f06a1cdf"]]),vf={class:"actions"},yf={class:"left"},bf={class:"right"},_f=_p(bn({__name:"actions.partial",setup(e){const t=sp(),n=fp(),r=rp(),s=Fs(()=>t.hasChat),o=Fs(()=>s.value||n.conversations.length>1),a=()=>{const e=n.createNew([r.user],r.user);n.activateConversation(e),t.showNewChat()};function i(){t.showConversations()}function l(){"contacts-edit"!==t.leftTarget&&"contacts-new"!==t.leftTarget?t.closeCallback?.():t.showConversations()}return(e,t)=>{const n=Hn("button-partial");return es(),ss("section",vf,[us("section",yf,[o.value?(es(),os(n,{key:0,icon:"chat",variant:"secondary","aria-label":"Conversations",onClick:i})):hs("",!0),s.value?(es(),os(n,{key:1,icon:"add","aria-label":"New chat",onClick:a})):hs("",!0)]),us("section",bf,[ds(n,{icon:"close",variant:"ghost",onClick:l})])])}}}),[["styles",[".actions[data-v-b803cf6d]{display:grid;grid-template-columns:max-content 1fr max-content;width:100%;grid-column:1/3}.actions .left[data-v-b803cf6d]{grid-column:1/2;display:flex}.actions .right[data-v-b803cf6d]{grid-column:3/4}"]],["__scopeId","data-v-b803cf6d"]]),wf={class:"background-container"},kf={key:0},xf=_p(bn({__name:"chat-header.partial",props:{conversation:{type:String}},setup(e){const t=fp(),n=sp(),r=pp(),s=rp(),o=e,a=xt(),i=xt("dm"),l=xt(!1),c=Fs(()=>t.getConversation(o.conversation)),u=Fs(()=>"support"===c.value?.operationMode);return pn(c,()=>function(){if(!c.value)return;const e=[];1===c.value.participants.length?i.value="select":i.value=c.value.participants.length>2?"group":"dm";if(l.value=c.value.isNew,c.value.name?.length)e.push(c.value.name);else{if(l.value&&"select"!==i.value&&e.push("New"),"group"===i.value&&e.push("Group Chat"),"dm"===i.value){const t=c.value.participants.map(up).find(e=>e!==s.user);t?(e.push("Chat with"),e.push(r.name(t))):e.push("Chat with")}"select"===i.value&&e.push("select participants")}a.value=e.join(" ")}(),{immediate:!0,deep:!0}),(t,r)=>{const s=Hn("name-edit-partial"),o=Hn("participants-partial"),i=Hn("button-partial"),d=Hn("chat-actions-partial");return es(),ss("header",{class:V(["chat-header",{isSupport:u.value}])},[us("section",wf,[us("h3",null,[u.value?hs("",!0):(es(),os(s,{key:0,conversation:e.conversation},{default:an(()=>[fs(G(a.value),1)]),_:1},8,["conversation"])),u.value?(es(),ss(Jr,{key:1},[fs(G(t.$t("support")),1)],64)):hs("",!0)]),!u.value&&c.value?(es(),ss("h4",kf,[ds(o,{participants:c.value.participants,"remove-user":"","is-new":l.value},null,8,["participants","is-new"]),l.value?hs("",!0):(es(),os(i,{key:0,size:"sm",variant:"ghost","aria-label":"Toggle edit mode",onClick:r[0]||(r[0]=e=>{"contacts-edit"===n.leftTarget?n.showConversations():n.showEditChat()})},{default:an(()=>[...r[1]||(r[1]=[fs(" edit ",-1)])]),_:1}))])):hs("",!0),u.value||l.value?hs("",!0):(es(),os(d,{key:1,conversation:e.conversation},null,8,["conversation"]))])],2)}}}),[["styles",[".chat-header[data-v-beb2ed7a]{display:grid;padding:10px 20px}.chat-header .background-container[data-v-beb2ed7a]{display:grid;grid-template-columns:5fr 1fr;grid-template-rows:1fr 1fr;align-items:center;justify-items:start;padding:0 10px;background-color:var(--scm-color-surface);border-radius:5px}.chat-header .background-container h3[data-v-beb2ed7a],.chat-header .background-container h4[data-v-beb2ed7a]{grid-column:1 / 2}.chat-header .background-container h3[data-v-beb2ed7a]{grid-row:1}.chat-header .background-container h4[data-v-beb2ed7a]{display:grid;grid-row:2}.chat-header .background-container .chat-actions-partial[data-v-beb2ed7a]{justify-self:end;grid-row:1}"]],["__scopeId","data-v-beb2ed7a"]]),Cf=bn({__name:"name-edit.partial",props:{conversation:{type:String}},setup(e){const t=fp(),n=e,r=xt(""),s=xt(!1),o=xt(),a=xt(null);function i(){const e=t.getConversation(n.conversation);e&&(r.value=e.name||"")}async function l(){s.value=!s.value,a.value=null,s.value?(await Gt(),o.value?.focus()):i()}async function c(){try{await t.rename(n.conversation,r.value),s.value=!1}catch(Pp){const t=Pp?.response?.data?.message||"Unknown error";console.error("Error renaming conversation:",t),a.value=t}}return pn(()=>n.conversation,()=>i(),{immediate:!0}),(e,t)=>{const n=Hn("button-partial");return es(),ss(Jr,null,[s.value?hs("",!0):(es(),ss(Jr,{key:0},[qn(e.$slots,"default"),t[2]||(t[2]=fs()),ds(n,{size:"sm",variant:"ghost","aria-label":"Edit conversation name",onClick:l},{default:an(()=>[...t[1]||(t[1]=[fs(" Edit ",-1)])]),_:1})],64)),s.value?(es(),ss(Jr,{key:1},[ln(us("input",{ref_key:"inputRef",ref:o,"onUpdate:modelValue":t[0]||(t[0]=e=>r.value=e),placeholder:"conversation name",type:"text",onKeydown:xo(c,["enter"])},null,544),[[wo,r.value]]),fs(" "+G(a.value)+" ",1),ds(n,{size:"sm",disabled:!r.value?.length,onClick:c},{default:an(()=>[...t[3]||(t[3]=[fs(" Save ",-1)])]),_:1},8,["disabled"]),ds(n,{size:"sm",variant:"secondary","aria-label":"Cancel editing",onClick:l},{default:an(()=>[...t[4]||(t[4]=[fs(" X ",-1)])]),_:1})],64)):hs("",!0)],64)}}}),Sf={class:"notice-partial"},Mf=_p(bn({__name:"notice.partial",props:{type:{type:String}},setup:e=>(e,t)=>(es(),ss("section",Sf,[qn(e.$slots,"default",{},void 0,!0)]))}),[["styles",[".notice-partial[data-v-2ad9f6c8]{display:grid}"]],["__scopeId","data-v-2ad9f6c8"]]),Tf=bn({inheritAttrs:!1,__name:"system-message.partial",props:{_id:{type:String},id:{type:Number},user:{type:String},action:{type:String},actionData:{type:Object},origin:{type:String}},setup(e){const t=pp(),n=e,r=Fs(()=>{const e={action:`system.${n.action}`,data:{user:t.name(n.user),...n.actionData}};return"participants"===n.action&&(e.data.added.length&&(e.data.added=e.data.added.join(", ")),e.data.removed.length&&(e.data.removed=e.data.removed.join(", ")),n.actionData.added?.length&&n.actionData.removed?.length&&(e.action="system.participants.addedAndRemoved"),n.actionData.added?.length&&!n.actionData.removed?.length&&(e.action="system.participants.added"),!n.actionData.added?.length&&n.actionData.removed?.length&&(e.action="system.participants.removed")),e});return(e,t)=>G(e.$t(r.value.action,r.value.data))}}),Of={class:"chat-actions-partial"},Lf={class:"options-container"},Ef=_p(bn({__name:"chat-actions.partial",props:{conversation:{type:String}},setup(e){const t=e,n=xt(!1),r=xt(null),s=xt();function o(){n.value=!n.value}function a(){s.value=void 0}return(e,i)=>{const l=Hn("button-partial"),c=Hn("overlay-container-partial"),u=Hn("dialog-partial");return es(),ss("section",Of,[ds(l,{ref_key:"attachTo",ref:r,size:"sm",variant:"ghost","aria-label":e.$t("conversation options"),onClick:o},{default:an(()=>[fs(G(e.$t("options")),1)]),_:1},8,["aria-label"]),n.value?(es(),os(c,{key:0,anchor:r.value,onClose:o},{default:an(()=>[us("section",Lf,[us("ul",null,[us("li",null,G(e.$t("mute")),1),us("li",null,G(e.$t("delete")),1),us("li",null,[ds(l,{onClick:i[0]||(i[0]=e=>{return t="leave",s.value=t,void(n.value=!1);var t})},{default:an(()=>[fs(G(e.$t("leave")),1)]),_:1})])])])]),_:1},8,["anchor"])):hs("",!0),"leave"===s.value?(es(),os(c,{key:1,anchor:r.value,onClose:a},{default:an(()=>[ds(u,{onAccept:i[1]||(i[1]=e=>async function(){const e=fp();a(),await e.leave(t.conversation),n.value=!1}()),onDecline:a},{default:an(()=>[fs(G(e.$t("leave now")),1)]),_:1})]),_:1},8,["anchor"])):hs("",!0)])}}}),[["styles",[".chat-actions-partial[data-v-871e6a65]{display:grid}.options-container[data-v-871e6a65]{width:max-content;min-width:200px;background-color:var(--scm-color-surface);box-shadow:0 0 5px var(--scm-color-muted)}"]],["__scopeId","data-v-871e6a65"]]),Rf=bn({__name:"overlay-container.partial",props:{background:{type:String},anchor:{type:null},pad:{type:Number},autoPosition:{type:Boolean},align:{type:String},offsetX:{type:Number},offsetY:{type:Number}},emits:["close","mounted"],setup(e,{emit:t}){const n=e,r=t,s=xt(null),o=xt(null),a=Fs(()=>n.background||"mobile"),i=xt({});function l(e){s.value===e.target&&r("close")}function c(){const e=function(e){if(!e)return null;if(e instanceof HTMLElement)return e;const t=e.$el;return t instanceof HTMLElement?t:null}(n.anchor);if(!e||!o.value)return;const t=function(){if(!o.value)return null;const e=o.value.getRootNode();return e instanceof ShadowRoot&&e.host instanceof HTMLElement?e.host.getBoundingClientRect():null}(),r=e.getBoundingClientRect(),s=o.value,a="number"==typeof n.pad?n.pad:8,l=s.offsetWidth,c=s.offsetHeight,u=t?t.width:window.innerWidth,d=t?t.height:window.innerHeight,p=t?t.left:0,f=t?t.top:0,h={left:r.left-p,right:r.right-p,top:r.top-f,bottom:r.bottom-f};let m=h.right-l>=a?h.right-l:h.left+l<=u-a?h.left:h.right>=u-h.left?Math.max(a,h.right-l):Math.min(h.left,Math.max(a,u-a-l)),g=function(){const e=d-h.bottom,t=h.top;if(e>=c+a)return h.bottom;if(t>=c+a)return h.top-c;if(e>=t)return Math.max(a,Math.min(h.bottom,d-a-c));{const e=h.top-c;return Math.max(a,Math.min(e,d-a-c))}}();m+=n.offsetX||0,g+=n.offsetY||0,m<a&&(m=a),m+l>u-a&&(m=Math.max(a,u-a-l)),g<a&&(g=a),g+c>d-a&&(g=Math.max(a,d-a-c)),i.value={position:"fixed",top:`${g}px`,left:`${m}px`}}return Pn(()=>{Gt(()=>{r("mounted"),c(),(n.autoPosition??n.anchor)&&n.anchor&&window.addEventListener("resize",c)})}),Dn(()=>{(n.autoPosition??n.anchor)&&n.anchor&&window.removeEventListener("resize",c)}),pn(()=>n.anchor,()=>{Gt(()=>c())}),(e,t)=>(es(),ss("section",{ref_key:"backgroundRef",ref:s,class:V(["overlay-background",[a.value]]),onKeypress:l,onClick:l},[us("div",{ref_key:"contentRef",ref:o,class:"content-container",style:U(i.value)},[qn(e.$slots,"default")],4)],34))}}),$f=_p(Rf,[["styles",[".overlay-background{position:fixed;top:0;left:0;display:grid;width:100%;height:100%;background-color:#00000080;z-index:1000}.overlay-background.none,.overlay-background.tablet{background-color:transparent}@media only screen and (min-width: 600px) and (max-width: 1023px){.overlay-background.tablet{background-color:#00000080}}.overlay-background.desktop{background-color:transparent}@media only screen and (min-width: 600px) and (max-width: 1023px),only screen and (min-width: 1024px){.overlay-background.desktop{background-color:#00000080}}.overlay-background .content-container{z-index:1100;position:absolute}"]]]),Af=["type","disabled","aria-busy","aria-label"],Pf={key:0,class:"scm-btn__spinner","aria-hidden":"true"},Ff={key:2,class:"scm-btn__content"},jf=_p(bn({__name:"button.partial",props:{variant:{type:String},size:{type:String},type:{type:String},loading:{type:Boolean},block:{type:Boolean},disabled:{type:Boolean},ariaLabel:{type:String},icon:{type:String}},emits:["click"],setup(e,{emit:t}){const n=e,r=t,s=Fs(()=>n.type||"button"),o=Fs(()=>n.disabled||n.loading),a=Fs(()=>{const e="scm-btn";return[e,`${e}--${n.variant||"primary"}`,`${e}--${n.size||"md"}`,n.block?`${e}--block`:"",n.loading?`${e}--loading`:"",n.icon?`${e}--icon`:""].filter(Boolean).join(" ")});function i(e){o.value?e.preventDefault():r("click",e)}return(t,r)=>{const l=Hn("icons-partial");return es(),ss("button",{type:s.value,disabled:o.value,"aria-busy":n.loading||void 0,"aria-label":e.ariaLabel,class:V(a.value),onClick:i},[n.loading?(es(),ss("span",Pf)):n.icon?(es(),os(l,{key:1,type:n.icon},null,8,["type"])):(es(),ss("span",Ff,[qn(t.$slots,"default",{},void 0,!0)]))],10,Af)}}}),[["styles",[".scm-btn[data-v-a79bdb66]{--scm-btn-bg: var(--scm-color-primary);--scm-btn-color: white;--scm-btn-radius: 0;--scm-btn-padding-y: 4px;--scm-btn-padding-x: 10px;--scm-btn-font-size: .875em;--scm-btn-height: 40px;--scm-btn-line-height: 42px;--scm-btn-transition: .12s ease-in-out;appearance:none;border:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;background-color:var(--scm-btn-bg);color:var(--scm-btn-color);font:inherit;padding:var(--scm-btn-padding-y) var(--scm-btn-padding-x);font-size:var(--scm-btn-font-size);border-radius:var(--scm-btn-radius);height:var(--scm-btn-height);line-height:var(--scm-btn-line-height);transition:background-color var(--scm-btn-transition),opacity var(--scm-btn-transition),box-shadow var(--scm-btn-transition);text-decoration:none;white-space:nowrap}.scm-btn[data-v-a79bdb66]:hover:not(:disabled){background-color:color-mix(in srgb,var(--scm-btn-bg) 85%,#000)}.scm-btn[data-v-a79bdb66]:active:not(:disabled){background-color:color-mix(in srgb,var(--scm-btn-bg) 70%,#000)}.scm-btn[data-v-a79bdb66]:focus-visible{outline:2px solid var(--scm-color-primary);outline-offset:2px}.scm-btn[data-v-a79bdb66]:disabled{opacity:.55;cursor:not-allowed}.scm-btn--secondary[data-v-a79bdb66]{--scm-btn-bg: var(--scm-color-surface);--scm-btn-color: var(--scm-color-muted)}.scm-btn--ghost[data-v-a79bdb66]{--scm-btn-bg: transparent;--scm-btn-color: var(--scm-color-primary)}.scm-btn--danger[data-v-a79bdb66]{--scm-btn-bg: var(--scm-color-danger);--scm-btn-color: white}.scm-btn--sm[data-v-a79bdb66]{--scm-btn-padding-y: 2px;--scm-btn-padding-x: 8px;--scm-btn-font-size: .75em}.scm-btn--lg[data-v-a79bdb66]{--scm-btn-padding-y: 8px;--scm-btn-padding-x: 16px;--scm-btn-font-size: 1em}.scm-btn--block[data-v-a79bdb66]{width:100%;display:inline-flex}.scm-btn__spinner[data-v-a79bdb66]{width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:scm-spin-a79bdb66 .6s linear infinite}.scm-btn--icon[data-v-a79bdb66]{--scm-btn-padding-x: 8px;width:var(--scm-btn-height)}.scm-btn--icon[data-v-a79bdb66] .icon-partial svg{stroke:currentColor}.scm-btn--icon[data-v-a79bdb66] .icon-partial svg.useFill{fill:currentColor}@keyframes scm-spin-a79bdb66{to{transform:rotate(360deg)}}"]],["__scopeId","data-v-a79bdb66"]]),Nf={class:"dialog-partial"},Df=_p(bn({__name:"dialog.partial",emits:["accept","decline"],setup(e,{emit:t}){const n=t;function r(){n("accept")}function s(){n("decline")}return(e,t)=>{const n=Hn("button-partial");return es(),ss("section",Nf,[qn(e.$slots,"default",{},void 0,!0),ds(n,{onClick:r},{default:an(()=>[...t[0]||(t[0]=[fs(" accept ",-1)])]),_:1}),ds(n,{onClick:s},{default:an(()=>[...t[1]||(t[1]=[fs(" decline ",-1)])]),_:1})])}}}),[["styles",[".dialog-partial[data-v-ae4dfdf7]{padding:20px;background-color:var(--scm-color-surface);box-shadow:0 0 5px var(--scm-color-muted)}"]],["__scopeId","data-v-ae4dfdf7"]]),If={class:"chat-input"},Uf={class:"background-container"},zf=["value","placeholder"],Wf=_p(bn({__name:"chat-input.partial",props:{modelValue:{type:String},disabled:{type:Boolean},placeholder:{type:String}},emits:["update:modelValue","submit","typing"],setup(e,{emit:t}){const n=e,r=t,s=xt(null);function o(){const e=s.value;e&&(e.style.height="auto",e.style.height=`${e.scrollHeight}px`)}function a(e){const t=e.target;r("update:modelValue",t.value),r("typing"),Gt(o)}function i(e){"Enter"!==e.key||e.shiftKey||n.disabled||(e.preventDefault(),r("submit"))}return pn(()=>n.modelValue,()=>Gt(o)),(t,n)=>{const o=Hn("button-partial");return es(),ss("div",If,[us("section",Uf,[us("textarea",{ref_key:"textareaRef",ref:s,value:e.modelValue,placeholder:e.placeholder,rows:"1",onInput:a,onKeydown:i},null,40,zf),ds(o,{icon:"send",variant:"ghost",disabled:e.disabled,"aria-label":"Send message",onClick:n[0]||(n[0]=e=>r("submit"))},null,8,["disabled"])])])}}}),[["styles",[".chat-input[data-v-b6ae32fa]{padding:20px}.chat-input .background-container[data-v-b6ae32fa]{border-radius:5px;display:grid;grid-template-columns:1fr max-content;grid-template-rows:max-content;background-color:var(--scm-color-surface)}.chat-input .background-container textarea[data-v-b6ae32fa]{border:0;padding:10px;background-color:var(--scm-color-surface);outline:none;font-size:1em}.chat-input .background-container button[data-v-b6ae32fa]{align-self:end}"]],["__scopeId","data-v-b6ae32fa"]]),Hf=bn({__name:"user-name.partial",props:{userId:{type:String}},setup(e){const t=e,n=pp();return Pn(()=>{n.ensure([t.userId])}),(e,r)=>G(Tt(n).name(t.userId))}}),Bf={class:"user-avatar"},Vf=_p(bn({__name:"user-avatar.partial",props:{userId:{type:String}},setup(e){const t=e,n=pp(),r=Fs(()=>n.name(t.userId)),s=Fs(()=>{const e=r.value.split(/\s+/).filter(Boolean);return e.length>=2?(e[0][0]+e[1][0]).toUpperCase():(e[0]?.[0]||"?").toUpperCase()}),o=Fs(()=>{let e=0;for(let n=0;n<t.userId.length;n++)e=t.userId.charCodeAt(n)+((e<<5)-e);return Math.abs(e)%360});return Pn(()=>{n.ensure([t.userId])}),(t,n)=>(es(),ss("span",Bf,[us("span",{class:"user-avatar__circle",style:U({backgroundColor:`hsl(${o.value}, 45%, 60%)`})},G(s.value),5),ds(Hf,{"user-id":e.userId},null,8,["user-id"])]))}}),[["styles",[".user-avatar[data-v-1fc1d2df]{display:inline-flex;align-items:center;gap:6px}.user-avatar__circle[data-v-1fc1d2df]{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;font-size:.625em;font-weight:600;color:#fff;flex-shrink:0;line-height:1}"]],["__scopeId","data-v-1fc1d2df"]]),Yf={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},qf={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Jf={key:2,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},Zf={key:3,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Gf={key:4,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},Kf={key:5,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},Xf={key:6,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},Qf={key:7,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},eh={key:8,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},th={key:9,class:"useFill",viewBox:"0 0 24 24",style:{isolation:"isolate"},xmlns:"http://www.w3.org/2000/svg"},nh={key:10,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 useStroke",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},rh={key:11,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 useStroke",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},sh={key:12,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},oh={key:13,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},ah={key:14,class:"upload",viewBox:"0 0 24 24",fill:"none","stroke-width":"2",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"},ih={key:15,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},lh={key:16,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},ch={key:17,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},uh={key:18,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},dh={key:19,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},ph={key:20,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},fh={key:21,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},hh={key:22,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},mh={key:23,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},gh={key:24,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},vh={key:25,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},yh={key:26,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 useStroke",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},bh={key:27,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},_h={key:28,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},wh={key:29,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},kh={key:30,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},xh={key:31,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},Ch={key:32,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},Sh={key:33,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},Mh={key:34,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},Th={key:35,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},Oh={key:36,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},Lh={key:37,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},Eh={key:38,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},Rh={key:39,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},$h={key:40,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},Ah={key:41,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},Ph={key:42,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},Fh={key:43,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},jh={key:44,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},Nh={key:45,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},Dh={key:46,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},Ih={key:47,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},Uh={key:48,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},zh={key:49,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},Wh={key:50,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},Hh={key:51,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},Bh={key:52,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},Vh=bn({__name:"icons.partial",props:{type:{type:String},colorScheme:{type:String},size:{type:String},rotate:{type:Number},animate:{type:Boolean}},setup(e){const t=e,n=Fs(()=>t.rotate?`rotate${t.rotate}`:null);return(t,r)=>(es(),ss("span",{class:V(["icon-partial",[e.type,e.colorScheme||"colorScheme1",e.size||"medium",n.value,{animate:e.animate}]])},["arrow-right"===e.type?(es(),ss("svg",Yf,[...r[0]||(r[0]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 5l7 7-7 7"},null,-1)])])):hs("",!0),"arrow-left"===e.type?(es(),ss("svg",qf,[...r[1]||(r[1]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 19l-7-7 7-7"},null,-1)])])):hs("",!0),"arrow-down"===e.type?(es(),ss("svg",Jf,[...r[2]||(r[2]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"},null,-1)])])):hs("",!0),"notifications"===e.type?(es(),ss("svg",Zf,[...r[3]||(r[3]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"},null,-1)])])):hs("",!0),"arrow-right-long"===e.type?(es(),ss("svg",Gf,[...r[4]||(r[4]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.25 8.25 21 12m0 0-3.75 3.75M21 12H3"},null,-1)])])):hs("",!0),"chevron-down"===e.type?(es(),ss("svg",Kf,[...r[5]||(r[5]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"},null,-1)])])):hs("",!0),"chevron-up"===e.type?(es(),ss("svg",Xf,[...r[6]||(r[6]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 15.75 7.5-7.5 7.5 7.5"},null,-1)])])):hs("",!0),"chevron-right"===e.type?(es(),ss("svg",Qf,[...r[7]||(r[7]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"},null,-1)])])):hs("",!0),"chevron-left"===e.type?(es(),ss("svg",eh,[...r[8]||(r[8]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"},null,-1)])])):hs("",!0),"editor-add"===e.type?(es(),ss("svg",th,[...r[9]||(r[9]=[us("g",{width:"24",height:"24",transform:"matrix(0.92, 0, 0, 0.92, 0.480769, 0.352584)"},[us("path",{d:" M 25 12.498 C 24.999 12.245 24.868 12.01 24.652 11.877 L 22.111 10.31 L 24.655 8.727 C 24.869 8.594 25 8.359 25 8.107 C 25 7.854 24.871 7.619 24.656 7.485 L 12.889 0.112 C 12.651 -0.037 12.349 -0.037 12.111 0.112 L 0.344 7.485 C 0.13 7.619 0 7.854 0 8.107 C 0 8.359 0.131 8.594 0.345 8.727 L 2.871 10.299 L 0.344 11.879 C 0.13 12.013 0 12.248 0 12.501 C 0 12.754 0.131 12.988 0.345 13.122 L 2.871 14.694 L 0.344 16.273 C 0.13 16.407 0 16.642 0 16.894 C 0 17.147 0.13 17.381 0.344 17.515 L 12.111 24.888 C 12.23 24.963 12.365 25 12.5 25 C 12.635 25 12.77 24.963 12.889 24.888 L 24.656 17.515 C 24.871 17.381 25.001 17.145 25 16.892 C 24.999 16.639 24.867 16.404 24.652 16.271 L 22.111 14.705 L 24.655 13.122 C 24.87 12.988 25.001 12.752 25 12.498 Z M 2.115 8.103 L 12.5 1.597 L 22.885 8.103 C 22.785 8.166 12.798 14.382 12.5 14.567 L 2.115 8.103 Z M 22.88 16.9 L 12.5 23.403 L 2.113 16.895 L 4.256 15.556 L 12.113 20.446 C 12.231 20.52 12.366 20.557 12.5 20.557 C 12.634 20.557 12.769 20.52 12.887 20.446 L 20.722 15.569 L 22.88 16.9 Z M 12.5 18.962 L 2.116 12.499 L 4.256 11.161 L 12.113 16.052 C 12.231 16.125 12.366 16.162 12.5 16.162 C 12.634 16.162 12.769 16.125 12.887 16.052 L 20.722 11.175 L 22.877 12.503 C 22.817 12.54 12.775 18.79 12.5 18.962 Z "}),us("path",{d:"M 12.099 3.875 L 12.901 3.875 C 13.025 3.875 13.125 3.975 13.125 4.099 L 13.125 10.813 C 13.125 10.936 13.025 11.036 12.901 11.036 L 12.099 11.036 C 11.975 11.036 11.875 10.936 11.875 10.813 L 11.875 4.099 C 11.875 3.975 11.975 3.875 12.099 3.875 Z"}),us("path",{d:"M 8.919 7.857 L 8.919 7.054 C 8.919 6.931 9.019 6.831 9.143 6.831 L 15.857 6.831 C 15.981 6.831 16.081 6.931 16.081 7.054 L 16.081 7.857 C 16.081 7.981 15.981 8.081 15.857 8.081 L 9.143 8.081 C 9.019 8.081 8.919 7.981 8.919 7.857 Z"})],-1)])])):hs("",!0),"settings"===e.type?(es(),ss("svg",nh,[...r[10]||(r[10]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"},null,-1),us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"},null,-1)])])):hs("",!0),"logout"===e.type?(es(),ss("svg",rh,[...r[11]||(r[11]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"},null,-1)])])):hs("",!0),"logo"===e.type?(es(),ss("svg",sh,[...r[12]||(r[12]=[us("path",{style:{fill:"#3f2d56"},d:"M25,25V475H475V25ZM228.44,317.1q-17.94,13.42-47,13.42-39.6,0-66.66-21.78l18.7-26.18q20.46,16.06,47.74,16.06,13.63,0,21.67-4.62t8-12.54q0-7.47-7.48-11.66t-23.76-5.94q-31.47-3.51-46.09-14.74T119,217q0-21.33,17.49-34.43t45.65-13.09q33.87,0,58.3,17.6l-16.94,25.3a68.24,68.24,0,0,0-39.82-12.54q-13.42,0-21.45,4.4t-8,11.88q0,7.26,6.93,11.22t23.21,5.94q62,7.26,62,48.4Q246.37,303.69,228.44,317.1ZM385.19,204.46H338.11V327H302V204.46H255.17V173h130Z"},null,-1)])])):hs("",!0),"warning"===e.type?(es(),ss("svg",oh,[...r[13]||(r[13]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"},null,-1)])])):hs("",!0),"upload"===e.type?(es(),ss("svg",ah,[...r[14]||(r[14]=[us("path",{class:"arrow-up","stroke-linecap":"round","stroke-linejoin":"round",d:"M 7.5 7.5 L 12 3 M 12 3 L 16.5 7.5 M 12 3 L 12 16.5"},null,-1),us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M 3.064 16.521 L 3.064 18.771 C 3.064 20.013 4.072 21.021 5.314 21.021 L 18.814 21.021 C 20.057 21.021 21.064 20.013 21.064 18.771 L 21.064 16.521"},null,-1)])])):hs("",!0),"download"===e.type?(es(),ss("svg",ih,[...r[15]||(r[15]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3"},null,-1)])])):hs("",!0),"checked"===e.type?(es(),ss("svg",lh,[...r[16]||(r[16]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 13l4 4L19 7"},null,-1)])])):hs("",!0),"link"===e.type?(es(),ss("svg",ch,[...r[17]||(r[17]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"},null,-1)])])):hs("",!0),"folder"===e.type?(es(),ss("svg",uh,[...r[18]||(r[18]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1)])])):hs("",!0),"close"===e.type?(es(),ss("svg",dh,[...r[19]||(r[19]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"},null,-1)])])):hs("",!0),"add"===e.type?(es(),ss("svg",ph,[...r[20]||(r[20]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4v16m8-8H4"},null,-1)])])):hs("",!0),"info"===e.type?(es(),ss("svg",fh,[...r[21]||(r[21]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)])])):hs("",!0),"history"===e.type?(es(),ss("svg",hh,[...r[22]||(r[22]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)])])):hs("",!0),"partner"===e.type?(es(),ss("svg",mh,[...r[23]||(r[23]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z"},null,-1)])])):hs("",!0),"file"===e.type?(es(),ss("svg",gh,[...r[24]||(r[24]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"},null,-1)])])):hs("",!0),"publish"===e.type?(es(),ss("svg",vh,[...r[25]||(r[25]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.684 13.342C8.886 12.938 9 12.482 9 12c0-.482-.114-.938-.316-1.342m0 2.684a3 3 0 110-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 105.367-2.684 3 3 0 00-5.367 2.684zm0 9.316a3 3 0 105.368 2.684 3 3 0 00-5.368-2.684z"},null,-1)])])):hs("",!0),"menu"===e.type?(es(),ss("svg",yh,[...r[26]||(r[26]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 6h16M4 12h8m-8 6h16"},null,-1)])])):hs("",!0),"endpoints"===e.type?(es(),ss("svg",bh,[...r[27]||(r[27]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"},null,-1)])])):hs("",!0),"arrow-up"===e.type?(es(),ss("svg",_h,[...r[28]||(r[28]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 15.75l7.5-7.5 7.5 7.5"},null,-1)])])):hs("",!0),"lightbulb"===e.type?(es(),ss("svg",wh,[...r[29]||(r[29]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"},null,-1)])])):hs("",!0),"computer"===e.type?(es(),ss("svg",kh,[...r[30]||(r[30]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 17.25v1.007a3 3 0 01-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0115 18.257V17.25m6-12V15a2.25 2.25 0 01-2.25 2.25H5.25A2.25 2.25 0 013 15V5.25m18 0A2.25 2.25 0 0018.75 3H5.25A2.25 2.25 0 003 5.25m18 0V12a2.25 2.25 0 01-2.25 2.25H5.25A2.25 2.25 0 013 12V5.25"},null,-1)])])):hs("",!0),"tags"===e.type?(es(),ss("svg",xh,[...r[31]||(r[31]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.568 3H5.25A2.25 2.25 0 003 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.095 18.095 0 005.223-5.223c.542-.827.369-1.908-.33-2.607L11.16 3.66A2.25 2.25 0 009.568 3z"},null,-1),us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 6h.008v.008H6V6z"},null,-1)])])):hs("",!0),"home"===e.type?(es(),ss("svg",Ch,[...r[32]||(r[32]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"},null,-1)])])):hs("",!0),"server"===e.type?(es(),ss("svg",Sh,[...r[33]||(r[33]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 14.25h13.5m-13.5 0a3 3 0 01-3-3m3 3a3 3 0 100 6h13.5a3 3 0 100-6m-16.5-3a3 3 0 013-3h13.5a3 3 0 013 3m-19.5 0a4.5 4.5 0 01.9-2.7L5.737 5.1a3.375 3.375 0 012.7-1.35h7.126c1.062 0 2.062.5 2.7 1.35l2.587 3.45a4.5 4.5 0 01.9 2.7m0 0a3 3 0 01-3 3m0 3h.008v.008h-.008v-.008zm0-6h.008v.008h-.008v-.008zm-3 6h.008v.008h-.008v-.008zm0-6h.008v.008h-.008v-.008z"},null,-1)])])):hs("",!0),"play"===e.type?(es(),ss("svg",Mh,[...r[34]||(r[34]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.348a1.125 1.125 0 010 1.971l-11.54 6.347a1.125 1.125 0 01-1.667-.985V5.653z"},null,-1)])])):hs("",!0),"pause"===e.type?(es(),ss("svg",Th,[...r[35]||(r[35]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"},null,-1)])])):hs("",!0),"stop"===e.type?(es(),ss("svg",Oh,[...r[36]||(r[36]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 7.5A2.25 2.25 0 017.5 5.25h9a2.25 2.25 0 012.25 2.25v9a2.25 2.25 0 01-2.25 2.25h-9a2.25 2.25 0 01-2.25-2.25v-9z"},null,-1)])])):hs("",!0),"replay"===e.type?(es(),ss("svg",Lh,[...r[37]||(r[37]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"},null,-1)])])):hs("",!0),"statistics"===e.type?(es(),ss("svg",Eh,[...r[38]||(r[38]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 013 19.875v-6.75zM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 01-1.125-1.125V8.625zM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 01-1.125-1.125V4.125z"},null,-1)])])):hs("",!0),"edit"===e.type?(es(),ss("svg",Rh,[...r[39]||(r[39]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"},null,-1)])])):hs("",!0),"clock"===e.type?(es(),ss("svg",$h,[...r[40]||(r[40]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)])])):hs("",!0),"filter"===e.type?(es(),ss("svg",Ah,[...r[41]||(r[41]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 01-.659 1.591l-5.432 5.432a2.25 2.25 0 00-.659 1.591v2.927a2.25 2.25 0 01-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 00-.659-1.591L3.659 7.409A2.25 2.25 0 013 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0112 3z"},null,-1)])])):hs("",!0),"star"===e.type?(es(),ss("svg",Ph,[...r[42]||(r[42]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z"},null,-1)])])):hs("",!0),"hide"===e.type?(es(),ss("svg",Fh,[...r[43]||(r[43]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88"},null,-1)])])):hs("",!0),"test"===e.type?(es(),ss("svg",jh,[...r[44]||(r[44]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.75 3.104v5.714a2.25 2.25 0 0 1-.659 1.591L5 14.5M9.75 3.104c-.251.023-.501.05-.75.082m.75-.082a24.301 24.301 0 0 1 4.5 0m0 0v5.714c0 .597.237 1.17.659 1.591L19.8 15.3M14.25 3.104c.251.023.501.05.75.082M19.8 15.3l-1.57.393A9.065 9.065 0 0 1 12 15a9.065 9.065 0 0 0-6.23-.693L5 14.5m14.8.8 1.402 1.402c1.232 1.232.65 3.318-1.067 3.611A48.309 48.309 0 0 1 12 21c-2.773 0-5.491-.235-8.135-.687-1.718-.293-2.3-2.379-1.067-3.61L5 14.5"},null,-1)])])):hs("",!0),"clipboard"===e.type?(es(),ss("svg",Nh,[...r[45]||(r[45]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"},null,-1)])])):hs("",!0),"structure"===e.type?(es(),ss("svg",Dh,[...r[46]||(r[46]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 7.5-9-5.25L3 7.5m18 0-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"},null,-1)])])):hs("",!0),"qrcode"===e.type?(es(),ss("svg",Ih,[...r[47]||(r[47]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 3.75 9.375v-4.5ZM3.75 14.625c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5a1.125 1.125 0 0 1-1.125-1.125v-4.5ZM13.5 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 13.5 9.375v-4.5Z"},null,-1),us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.75 6.75h.75v.75h-.75v-.75ZM6.75 16.5h.75v.75h-.75v-.75ZM16.5 6.75h.75v.75h-.75v-.75ZM13.5 13.5h.75v.75h-.75v-.75ZM13.5 19.5h.75v.75h-.75v-.75ZM19.5 13.5h.75v.75h-.75v-.75ZM19.5 19.5h.75v.75h-.75v-.75ZM16.5 16.5h.75v.75h-.75v-.75Z"},null,-1)])])):hs("",!0),"magic"===e.type?(es(),ss("svg",Uh,[...r[48]||(r[48]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"},null,-1)])])):hs("",!0),"fastforward"===e.type?(es(),ss("svg",zh,[...r[49]||(r[49]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 8.689c0-.864.933-1.406 1.683-.977l7.108 4.061a1.125 1.125 0 0 1 0 1.954l-7.108 4.061A1.125 1.125 0 0 1 3 16.811V8.69ZM12.75 8.689c0-.864.933-1.406 1.683-.977l7.108 4.061a1.125 1.125 0 0 1 0 1.954l-7.108 4.061a1.125 1.125 0 0 1-1.683-.977V8.69Z"},null,-1)])])):hs("",!0),"archive"===e.type?(es(),ss("svg",Wh,[...r[50]||(r[50]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z"},null,-1)])])):hs("",!0),"send"===e.type?(es(),ss("svg",Hh,[...r[51]||(r[51]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5"},null,-1)])])):hs("",!0),"chat"===e.type?(es(),ss("svg",Bh,[...r[52]||(r[52]=[us("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.625 9.75a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 0 1 .778-.332 48.294 48.294 0 0 0 5.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"},null,-1)])])):hs("",!0)],2))}}),Yh={class:"connection-status"},qh={class:"status"};function Jh(e,t){var n;e.getUsers&&e.getUsers,e.getToken&&(n=e.getToken,Mp=n);const r=sp(t);if(r.features=function(e){if(e.features?.length)return[...new Set(e.features)];switch(e.mode){case"support":return["support"];case"both":return["chat","support"];default:return["chat"]}}(e),r.supportParticipants=e.support?.participants||[],e.wsUrl&&(r.wsUrl=e.wsUrl),e.apiUrl&&(r.apiUrl=e.apiUrl),e.mediaUrl&&(r.mediaUrl=e.mediaUrl),e.token&&(r.authToken=e.token),e.unread&&(r.unreadCallback=e.unread),e.close&&(r.closeCallback=e.close),e.userId&&(rp(t).user=e.userId),e.user){const n=e.user.id||e.userId;n&&pp(t).setOne({...e.user,id:n})}}const Zh=[{name:"chat",component:rf},{name:"conversations",component:wp},{name:"chats",component:kp},{name:"contacts",component:hf}],Gh=[{name:"participants",component:gf},{name:"actions",component:_f},{name:"chat-header",component:xf},{name:"chat-actions",component:Ef},{name:"name-edit",component:Cf},{name:"notice",component:Mf},{name:"system-message",component:Tf},{name:"overlay-container",component:$f},{name:"button",component:jf},{name:"dialog",component:Df},{name:"chat-input",component:Wf},{name:"user-avatar",component:Vf},{name:"user-name",component:Hf},{name:"icons",component:_p(Vh,[["styles",[".icon-partial[data-v-4a547a78]{display:grid;align-self:center;justify-content:center}.icon-partial svg[data-v-4a547a78]{align-self:center;justify-self:center;stroke-width:1.5}.icon-partial.rotate90 svg[data-v-4a547a78]{transform:rotate(90deg)}.icon-partial.rotate180 svg[data-v-4a547a78]{transform:rotate(180deg)}.icon-partial.animate svg[data-v-4a547a78]{transition:transform .2s ease,fill .2s ease,stroke .2s ease}@keyframes upAndDown-4a547a78{0%{transform:translateY(0)}to{transform:translateY(-20px)}}.icon-partial.animate .upload .arrow-up[data-v-4a547a78]{animation:upAndDown-4a547a78 1s infinite ease-in-out}.icon-partial.big[data-v-4a547a78]{width:30px;height:30px}.icon-partial.big svg[data-v-4a547a78]{width:30px;height:30px}.icon-partial.larger[data-v-4a547a78]{width:26px;height:26px}.icon-partial.larger svg[data-v-4a547a78]{width:26px;height:26px}.icon-partial.large[data-v-4a547a78]{width:24px;height:24px}.icon-partial.large svg[data-v-4a547a78]{width:24px;height:24px}.icon-partial.xl[data-v-4a547a78]{width:60px;height:60px}.icon-partial.xl svg[data-v-4a547a78]{width:60px;height:60px}.icon-partial.medium[data-v-4a547a78]{width:20px;height:20px}.icon-partial.medium svg[data-v-4a547a78]{width:20px;height:20px}.icon-partial.small[data-v-4a547a78]{width:16px;height:16px}.icon-partial.small svg[data-v-4a547a78]{width:16px;height:16px}.icon-partial.smaller[data-v-4a547a78]{width:10px;height:10px}.icon-partial.smaller svg[data-v-4a547a78]{width:10px;height:10px}.icon-partial.colorScheme1 svg[data-v-4a547a78]{stroke:var(--scm-icon-color-1, #333)}.icon-partial.colorScheme1 svg.useFill[data-v-4a547a78]{fill:var(--scm-icon-color-1, #333);stroke-width:0}.icon-partial.colorScheme2 svg[data-v-4a547a78]{stroke:var(--scm-icon-color-2, #666)}.icon-partial.colorScheme2 svg.useFill[data-v-4a547a78]{fill:var(--scm-icon-color-2, #666);stroke-width:0}.icon-partial.colorScheme4 svg[data-v-4a547a78]{stroke:var(--scm-icon-color-1, #333)}.icon-partial.colorScheme4 svg.useFill[data-v-4a547a78]{fill:var(--scm-icon-color-1, #333);stroke-width:0}.icon-partial.white svg[data-v-4a547a78]{stroke:#fff}.icon-partial.white svg.useFill[data-v-4a547a78]{fill:#fff;stroke-width:0}.icon-partial.grey svg[data-v-4a547a78]{stroke:var(--scm-color-muted, #999)}.icon-partial.grey svg.useFill[data-v-4a547a78]{fill:var(--scm-color-muted, #999);stroke-width:0}.icon-partial.aiColor svg[data-v-4a547a78]{stroke:var(--scm-icon-ai-color, #8b5cf6)}.icon-partial.aiColor svg.useFill[data-v-4a547a78]{fill:var(--scm-icon-ai-color, #8b5cf6);stroke-width:0}.icon-partial.red svg[data-v-4a547a78]{stroke:var(--scm-color-danger, #e53935)}.icon-partial.red svg.useFill[data-v-4a547a78]{fill:var(--scm-color-danger, #e53935);stroke-width:0}.icon-partial.green svg[data-v-4a547a78]{stroke:#43a047}.icon-partial.green svg.useFill[data-v-4a547a78]{fill:#43a047;stroke-width:0}"]],["__scopeId","data-v-4a547a78"]])},{name:"connection-status",component:_p(bn({__name:"connection-status.partial",setup(e){const t=sp(),n=Fs(()=>t.state);return(e,t)=>(es(),ss("section",Yh,[us("div",qh,G(e.$t(`status.${n.value}`)),1)]))}}),[["styles",[".connection-status[data-v-a483f86f]{position:absolute;top:10px;right:10px;pointer-events:none}"]],["__scopeId","data-v-a483f86f"]])}];const Kh=[{name:"mobile",query:"(max-width: 599px)"},{name:"tablet",query:"(min-width: 600px) and (max-width: 1023px)"},{name:"desktop",query:"(min-width: 1024px)"}];const Xh=new class{timeout;debounceTime=50;resizedEvent=new Event("resized");mediaEvent=new Event("media");media=xt("mobile");resized=xt(0);widthChanged=xt(0);realHeight=xt(0);realWidth=xt(0);triggerStart=xt(!0);installed=!1;mediaQueries=[];widthTarget=null;resizeObserver;onResize=()=>this.debounce();get safeWindow(){return"undefined"==typeof window?null:window}init(e){!this.installed&&this.safeWindow&&(this.installed=!0,e&&"undefined"!=typeof document&&(this.widthTarget=document.querySelector(e),this.widthTarget||ep.plugins(`resize: selector "${e}" matched no element, falling back to window width`)),this.realHeight.value=this.safeWindow.innerHeight,this.realWidth.value=this.measureWidth(),this.resized.value=this.now(),this.mediaQueries=Kh.map(e=>({breakpoint:e,mql:this.safeWindow.matchMedia(e.query)})),this.getMediaQuery(),this.safeWindow.addEventListener("resize",this.onResize),this.widthTarget&&"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver(()=>this.debounce()),this.resizeObserver.observe(this.widthTarget)))}destroy(){clearTimeout(this.timeout),this.safeWindow?.removeEventListener("resize",this.onResize),this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.widthTarget=null,this.installed=!1}measureWidth(){return this.widthTarget?this.widthTarget.getBoundingClientRect().width:this.safeWindow?.innerWidth??0}now(){return this.safeWindow?this.safeWindow.performance.now():0}trigger(e){if(this.getMediaQuery(),this.safeWindow){const e=this.measureWidth();this.realHeight.value=this.safeWindow.innerHeight,this.realWidth.value!==e&&(this.realWidth.value=e,this.widthChanged.value=this.now())}this.resized.value=this.now(),this.safeWindow?.dispatchEvent(this.resizedEvent),e||(this.triggerStart.value=!0)}getMediaQuery(){const e=this.mediaQueries.find(({mql:e})=>e.matches);e&&this.media.value!==e.breakpoint.name&&(this.media.value=e.breakpoint.name,this.safeWindow?.dispatchEvent(this.mediaEvent))}debounce(){this.triggerStart.value&&(this.triggerStart.value=!1,this.trigger(!0)),clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.trigger()},this.debounceTime)}},Qh={install:(e,t)=>{Xh.init(t?.selector),ep.plugins("resize installed")}};function em(){return{realHeight:Xh.realHeight,realWidth:Xh.realWidth,media:Xh.media,resized:Xh.resized,widthChanged:Xh.widthChanged,plugin:Xh}}const tm={class:"header"},nm={key:0,class:"main-left-target"},rm=bn({__name:"App",props:{config:{type:Object}},setup(e){const t=e,n=sp(),r=rp(),s=fp(),{connect:o,authenticate:a}=Cp(),i=em().realWidth,l=Fs(()=>n.viewMode),c=Fs(()=>n.leftTarget);pn(em().widthChanged,()=>{console.log("width changed",i.value,i.value<=650),i.value<=650&&n.setViewMode("compact")},{immediate:!0}),pn([()=>s.totalUnreadCount,()=>s.totalUnreadConversations],()=>{n.unreadCallback?.({unreadMessages:s.totalUnreadCount,unreadConversations:s.totalUnreadConversations})});let u=!1;pn(()=>n.state,e=>{"connected"===e&&u&&s.handleReconnect().catch(e=>{}),u="disconnected"===e});let d=!1,p=!1;return pn(()=>t.config,async function(){if(!d&&!p&&t.config){p=!0;try{console.log(104,t.config),t.config&&Jh(t.config);const e=await Tp()??t.config?.token??n.authToken;e&&(n.authToken=e);const i=new URLSearchParams(window.location.search).get("user")||void 0,l=function(e){if(e)try{return JSON.parse(atob(e.split(".")[1]||"")).sub}catch{return}}(e)??t.config?.userId??r.user??i;if(!l)return void(t.config&&console.warn("[studio-chat] config has no usable identity (getToken/token sub or userId)"));d=!0,r.user=l,t.config?.user&&pp().setOne({...t.config.user,id:l}),o({url:n.wsUrl,maxRetries:50,maxRetryDelay:3e4,onOpen:async()=>a(await Tp()??n.authToken??l),onMessage:e=>function(e){const t=e.type;if(!t)return;const n=Sp[t];n&&n(e)}(JSON.parse(e))}),n.isSupportOnly&&async function(){try{await s.getAllConversations()}catch(e){console.warn("[studio-chat] could not load conversations",e)}s.startSupport(),n.hideLeft()}()}finally{p=!1}}},{immediate:!0}),(e,t)=>{const r=Hn("actions-partial"),s=Hn("contacts-module");return es(),ss("div",{class:V(["studio-chat-root",[l.value,c.value]])},[us("section",tm,[ds(r)]),Tt(n).leftTarget?(es(),ss("section",nm,["conversations"===Tt(n).leftTarget?(es(),os(wp,{key:0})):hs("",!0),"contacts-new"===Tt(n).leftTarget||"contacts-edit"===Tt(n).leftTarget?(es(),os(s,{key:1})):hs("",!0)])):hs("",!0),"chat"===Tt(n).mainTarget?(es(),os(kp,{key:1})):hs("",!0),t[0]||(t[0]=us("div",{class:"util"},null,-1))],2)}}}),sm=_p(rm,[["styles",["[data-v-1bdc8ab0]:host{display:block;height:100%}[data-v-1bdc8ab0]:host,.studio-chat-root[data-v-1bdc8ab0]{--scm-font-size: 16px;--scm-color-primary: #008cff;--scm-color-own: #ff009d;--scm-color-surface: #f6f6f6;--scm-color-muted: #757474;--scm-color-danger: #e53935;font-size:var(--scm-font-size)}#app[data-v-1bdc8ab0]{height:100vh}.studio-chat-root[data-v-1bdc8ab0]{display:grid;grid-template-rows:40px 1fr;grid-template-columns:minmax(200px,400px) 1fr;height:100%}.studio-chat-root .header[data-v-1bdc8ab0]{display:grid;background-color:var(--scm-color-surface);grid-template-columns:max-content 1fr;padding:0 20px;align-content:center}.studio-chat-root .conversations-module[data-v-1bdc8ab0]{grid-column:1}.studio-chat-root .chats-module[data-v-1bdc8ab0]{grid-column:2}.studio-chat-root.support-no-sidebar[data-v-1bdc8ab0]{grid-template-columns:1fr}.studio-chat-root.support-no-sidebar .chats-module[data-v-1bdc8ab0]{grid-column:1}.studio-chat-root.compact[data-v-1bdc8ab0]{grid-template-columns:1fr}.studio-chat-root.compact .chats-module[data-v-1bdc8ab0]{grid-column:1}.studio-chat-root.compact .main-left-target[data-v-1bdc8ab0]{width:100%;position:absolute;top:40px;left:0;transform:translate(-100%);transition:transform .3s ease-in-out;background-color:#fff;z-index:100;height:calc(100% - 40px)}.studio-chat-root.compact.conversations .main-left-target[data-v-1bdc8ab0],.studio-chat-root.compact.contacts-new .main-left-target[data-v-1bdc8ab0],.studio-chat-root.compact.contacts-edit .main-left-target[data-v-1bdc8ab0]{transform:translate(0)}[data-v-1bdc8ab0]{-moz-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;background-repeat:no-repeat;list-style-type:none;text-decoration:none}"]],["__scopeId","data-v-1bdc8ab0"]]);Xo.extend(na);const om=fo(sm,{shadowRoot:!0,configureApp(e){const t=function(){const e=ne(!0),t=e.run(()=>xt({}));let n=[],r=[];const s=bt({install(e){Eo(s),s._a=e,e.provide(Ro,s),e.config.globalProperties.$pinia=s,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}();t.use(({store:e})=>{e.$subscribe((t,n)=>{console.log(`[pinia] ${e.$id}`,JSON.parse(JSON.stringify(n)))},{detached:!0})}),e.use(Qh,{selector:"lilaquadrat-studio-chat"}),e.use(t),e.use(Ec),function(e){Op(Zh,0,"module",e),Op(Gh,0,"partial",e)}(e)}});customElements.get("lilaquadrat-studio-chat")||customElements.define("lilaquadrat-studio-chat",om);const am=Object.freeze(Object.defineProperty({__proto__:null,default:{status:{connected:"Verbunden",disconnected:"Getrennt"},actions:{retry:"Wiederholen"},"new chat":"Neuer Chat",conversations:"Unterhaltungen","contact support":"Support kontaktieren",support:"Support",options:"Optionen",mute:"Stumm schalten",delete:"Löschen",leave:"Verlassen","leave now":"Jetzt verlassen?","select contacts":"Kontakte auswählen","conversation options":"Konversationsoptionen",system:{renamed:'{user} hat "{from}" in "{to}" umbenannt',created:"{user} hat diese Unterhaltung erstellt",left:"{user} hat die Unterhaltung verlassen",participants:{addedAndRemoved:"{user} hat {added} hinzugefügt und {removed} entfernt",added:"{user} hat {added} hinzugefügt",removed:"{user} hat {removed} entfernt"}}}},Symbol.toStringTag,{value:"Module"}));e.LilaquadratStudioChat=om,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
|
|
43
|
+
*/function di(e){return xa(e)&&0===vi(e)&&(ya(e,"b")||ya(e,"body"))}const fi=["b","body"];const pi=["c","cases"];const hi=["s","static"];const mi=["i","items"];const gi=["t","type"];function vi(e){return ki(e,gi)}const yi=["v","value"];function bi(e,t){const n=ki(e,yi);if(null!=n)return n;throw Ci(t)}const _i=["m","modifier"];const wi=["k","key"];function ki(e,t,n){for(let s=0;s<t.length;s++){const n=t[s];if(ya(e,n)&&null!=e[n])return e[n]}return n}const xi=[...fi,...pi,...hi,...mi,...wi,..._i,...yi,...gi];function Ci(e){return new Error(`unhandled node type: ${e}`)}function Si(e){return t=>function(e,t){const n=(s=t,ki(s,fi));var s;if(null==n)throw Ci(0);if(1===vi(n)){const t=function(e){return ki(e,pi,[])}(n);return e.plural(t.reduce((t,n)=>[...t,Ti(e,n)],[]))}return Ti(e,n)}(t,e)}function Ti(e,t){const n=function(e){return ki(e,hi)}(t);if(null!=n)return"text"===e.type?n:e.normalize([n]);{const n=function(e){return ki(e,mi,[])}(t).reduce((t,n)=>[...t,Mi(e,n)],[]);return e.normalize(n)}}function Mi(e,t){const n=vi(t);switch(n){case 3:case 9:case 7:case 8:return bi(t,n);case 4:{const s=t;if(ya(s,"k")&&s.k)return e.interpolate(e.named(s.k));if(ya(s,"key")&&s.key)return e.interpolate(e.named(s.key));throw Ci(n)}case 5:{const s=t;if(ya(s,"i")&&ia(s.i))return e.interpolate(e.list(s.i));if(ya(s,"index")&&ia(s.index))return e.interpolate(e.list(s.index));throw Ci(n)}case 6:{const n=t,s=function(e){return ki(e,_i)}(n),r=function(e){const t=ki(e,wi);if(t)return t;throw Ci(6)}(n);return e.linked(Mi(e,r),s?Mi(e,s):void 0,e.type)}default:throw new Error(`unhandled node on format message part: ${n}`)}}const Oi=e=>e;let Li=fa();let Ei=null;const Ri=Ai("function:translate");function Ai(e){return t=>Ei&&Ei.emit(e,t)}const $i=17,Pi=18,Ii=19,Fi=21,ji=22,Ni=23;function Di(e){return Va(e,null,void 0)}function Ui(e,t){return null!=t.locale?Wi(t.locale):Wi(e.locale)}let zi;function Wi(e){if(wa(e))return e;if(_a(e)){if(e.resolvedOnce&&null!=zi)return zi;if("Function"===e.constructor.name){const n=e();if(xa(t=n)&&_a(t.then)&&_a(t.catch))throw Di(Fi);return zi=n}throw Di(ji)}throw Di(Ni);var t}function Hi(e,t,n){return[...new Set([n,...ba(t)?t:xa(t)?Object.keys(t):wa(t)?[t]:[n]])]}function Bi(e,t,n){const s=wa(n)?n:el,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(s);if(!o){o=[];let e=[n];for(;ba(e);)e=Vi(o,e,t);const a=ba(t)||!Ta(t)?t:t.default?t.default:null;e=wa(a)?[a]:a,ba(e)&&Vi(o,e,!1),r.__localeChainCache.set(s,o)}return o}function Vi(e,t,n){let s=!0;for(let r=0;r<t.length&&ka(s);r++){const o=t[r];wa(o)&&(s=qi(e,t[r],n))}return s}function qi(e,t,n){let s;const r=t.split("-");do{s=Yi(e,r.join("-"),n),r.splice(-1,1)}while(r.length&&!0===s);return s}function Yi(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s="!"!==t[t.length-1];const r=t.replace(/!/g,"");e.push(r),(ba(n)||Ta(n))&&n[r]&&(s=n[r])}return s}const Ji=[];Ji[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ji[1]={w:[1],".":[2],"[":[4],o:[7]},Ji[2]={w:[2],i:[3,0],0:[3,0]},Ji[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ji[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ji[5]={"'":[4,0],o:8,l:[5,0]},Ji[6]={'"':[4,0],o:8,l:[6,0]};const Zi=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ki(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Gi(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,Zi.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}const Xi=new Map;function Qi(e,t){return xa(e)?e[t]:null}const el="en-US",tl=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let nl,sl,rl;let ol=null;const al=()=>ol;let il=null;const ll=e=>{il=e};let cl=0;function ul(e={}){const t=_a(e.onWarn)?e.onWarn:sa,n=wa(e.version)?e.version:"11.1.11",s=wa(e.locale)||_a(e.locale)?e.locale:el,r=_a(s)?el:s,o=ba(e.fallbackLocale)||Ta(e.fallbackLocale)||wa(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:r,a=Ta(e.messages)?e.messages:dl(r),i=Ta(e.datetimeFormats)?e.datetimeFormats:dl(r),l=Ta(e.numberFormats)?e.numberFormats:dl(r),c=ua(fa(),e.modifiers,{upper:(e,t)=>"text"===t&&wa(e)?e.toUpperCase():"vnode"===t&&xa(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&wa(e)?e.toLowerCase():"vnode"===t&&xa(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&wa(e)?tl(e):"vnode"===t&&xa(e)&&"__v_isVNode"in e?tl(e.children):e}),u=e.pluralRules||fa(),d=_a(e.missing)?e.missing:null,f=!ka(e.missingWarn)&&!la(e.missingWarn)||e.missingWarn,p=!ka(e.fallbackWarn)&&!la(e.fallbackWarn)||e.fallbackWarn,h=!!e.fallbackFormat,m=!!e.unresolving,g=_a(e.postTranslation)?e.postTranslation:null,v=Ta(e.processor)?e.processor:null,y=!ka(e.warnHtmlMessage)||e.warnHtmlMessage,b=!!e.escapeParameter,_=_a(e.messageCompiler)?e.messageCompiler:nl,w=_a(e.messageResolver)?e.messageResolver:sl||Qi,k=_a(e.localeFallbacker)?e.localeFallbacker:rl||Hi,x=xa(e.fallbackContext)?e.fallbackContext:void 0,C=e,S=xa(C.__datetimeFormatters)?C.__datetimeFormatters:new Map,T=xa(C.__numberFormatters)?C.__numberFormatters:new Map,M=xa(C.__meta)?C.__meta:{};cl++;const O={version:n,cid:cl,locale:s,fallbackLocale:o,messages:a,modifiers:c,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:p,fallbackFormat:h,unresolving:m,postTranslation:g,processor:v,warnHtmlMessage:y,escapeParameter:b,messageCompiler:_,messageResolver:w,localeFallbacker:k,fallbackContext:x,onWarn:t,__meta:M};return O.datetimeFormats=i,O.numberFormats=l,O.__datetimeFormatters=S,O.__numberFormatters=T,__INTLIFY_PROD_DEVTOOLS__&&function(e,t,n){Ei&&Ei.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}(O,n,M),O}const dl=e=>({[e]:fa()});function fl(e,t,n,s,r){const{missing:o,onWarn:a}=e;if(null!==o){const s=o(e,n,t,r);return wa(s)?s:t}return t}function pl(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function hl(e,t){return e!==t&&e.split("-")[0]===t.split("-")[0]}function ml(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let s=n+1;s<t.length;s++)if(hl(e,t[s]))return!0;return!1}function gl(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:r,onWarn:o,localeFallbacker:a}=e,{__datetimeFormatters:i}=e,[l,c,u,d]=yl(...t);ka(u.missingWarn)?u.missingWarn:e.missingWarn;ka(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,p=Ui(e,u),h=a(e,r,p);if(!wa(l)||""===l)return new Intl.DateTimeFormat(p,d).format(c);let m,g={},v=null;for(let _=0;_<h.length&&(m=h[_],g=n[m]||{},v=g[l],!Ta(v));_++)fl(e,l,m,0,"datetime format");if(!Ta(v)||!wa(m))return s?-1:l;let y=`${m}__${l}`;ca(d)||(y=`${y}__${JSON.stringify(d)}`);let b=i.get(y);return b||(b=new Intl.DateTimeFormat(m,ua({},v,d)),i.set(y,b)),f?b.formatToParts(c):b.format(c)}const vl=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function yl(...e){const[t,n,s,r]=e,o=fa();let a,i=fa();if(wa(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Di(Ii);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();a=new Date(n);try{a.toISOString()}catch{throw Di(Ii)}}else if("[object Date]"===Sa(t)){if(isNaN(t.getTime()))throw Di(Pi);a=t}else{if(!ia(t))throw Di($i);a=t}return wa(n)?o.key=n:Ta(n)&&Object.keys(n).forEach(e=>{vl.includes(e)?i[e]=n[e]:o[e]=n[e]}),wa(s)?o.locale=s:Ta(s)&&(i=s),Ta(r)&&(i=r),[o.key||"",a,o,i]}function bl(e,t,n){const s=e;for(const r in n){const e=`${t}__${r}`;s.__datetimeFormatters.has(e)&&s.__datetimeFormatters.delete(e)}}function _l(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:r,onWarn:o,localeFallbacker:a}=e,{__numberFormatters:i}=e,[l,c,u,d]=kl(...t);ka(u.missingWarn)?u.missingWarn:e.missingWarn;ka(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,p=Ui(e,u),h=a(e,r,p);if(!wa(l)||""===l)return new Intl.NumberFormat(p,d).format(c);let m,g={},v=null;for(let _=0;_<h.length&&(m=h[_],g=n[m]||{},v=g[l],!Ta(v));_++)fl(e,l,m,0,"number format");if(!Ta(v)||!wa(m))return s?-1:l;let y=`${m}__${l}`;ca(d)||(y=`${y}__${JSON.stringify(d)}`);let b=i.get(y);return b||(b=new Intl.NumberFormat(m,ua({},v,d)),i.set(y,b)),f?b.formatToParts(c):b.format(c)}const wl=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function kl(...e){const[t,n,s,r]=e,o=fa();let a=fa();if(!ia(t))throw Di($i);const i=t;return wa(n)?o.key=n:Ta(n)&&Object.keys(n).forEach(e=>{wl.includes(e)?a[e]=n[e]:o[e]=n[e]}),wa(s)?o.locale=s:Ta(s)&&(a=s),Ta(r)&&(a=r),[o.key||"",i,o,a]}function xl(e,t,n){const s=e;for(const r in n){const e=`${t}__${r}`;s.__numberFormatters.has(e)&&s.__numberFormatters.delete(e)}}const Cl=e=>e,Sl=e=>"",Tl=e=>0===e.length?"":Ma(e),Ml=e=>null==e?"":ba(e)||Ta(e)&&e.toString===Ca?JSON.stringify(e,null,2):String(e);function Ol(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function Ll(e={}){const t=e.locale,n=function(e){const t=ia(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ia(e.named.count)||ia(e.named.n))?ia(e.named.count)?e.named.count:ia(e.named.n)?e.named.n:t:t}(e),s=xa(e.pluralRules)&&wa(t)&&_a(e.pluralRules[t])?e.pluralRules[t]:Ol,r=xa(e.pluralRules)&&wa(t)&&_a(e.pluralRules[t])?Ol:void 0,o=e.list||[],a=e.named||fa();ia(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,a);function i(t,n){const s=_a(e.messages)?e.messages(t,!!n):!!xa(e.messages)&&e.messages[t];return s||(e.parent?e.parent.message(t):Sl)}const l=Ta(e.processor)&&_a(e.processor.normalize)?e.processor.normalize:Tl,c=Ta(e.processor)&&_a(e.processor.interpolate)?e.processor.interpolate:Ml,u={list:e=>o[e],named:e=>a[e],plural:e=>e[s(n,e.length,r)],linked:(t,...n)=>{const[s,r]=n;let o="text",a="";1===n.length?xa(s)?(a=s.modifier||a,o=s.type||o):wa(s)&&(a=s||a):2===n.length&&(wa(s)&&(a=s||a),wa(r)&&(o=r||o));const l=i(t,!0)(u),c="vnode"===o&&ba(l)&&a?l[0]:l;return a?(d=a,e.modifiers?e.modifiers[d]:Cl)(c,o):c;var d},message:i,type:Ta(e.processor)&&wa(e.processor.type)?e.processor.type:"text",interpolate:c,normalize:l,values:ua(fa(),o,a)};return u}const El=()=>"",Rl=e=>_a(e);function Al(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:r,messageCompiler:o,fallbackLocale:a,messages:i}=e,[l,c]=Il(...t),u=ka(c.missingWarn)?c.missingWarn:e.missingWarn,d=ka(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=ka(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,h=wa(c.default)||ka(c.default)?ka(c.default)?o?l:()=>l:c.default:n?o?l:()=>l:null,m=n||null!=h&&(wa(h)||_a(h)),g=Ui(e,c);f&&function(e){ba(e.list)?e.list=e.list.map(e=>wa(e)?ma(e):e):xa(e.named)&&Object.keys(e.named).forEach(t=>{wa(e.named[t])&&(e.named[t]=ma(e.named[t]))})}(c);let[v,y,b]=p?[l,g,i[g]||fa()]:$l(e,l,g,a,d,u),_=v,w=l;if(p||wa(_)||di(_)||Rl(_)||m&&(_=h,w=_),!(p||(wa(_)||di(_)||Rl(_))&&wa(y)))return r?-1:l;let k=!1;const x=Rl(_)?_:Pl(e,l,y,_,w,()=>{k=!0});if(k)return _;const C=function(e,t,n,s){const{modifiers:r,pluralRules:o,messageResolver:a,fallbackLocale:i,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,d=(s,r)=>{let o=a(n,s);if(null==o&&(u||r)){const[,,n]=$l(u||e,s,t,i,l,c);o=a(n,s)}if(wa(o)||di(o)){let n=!1;const r=Pl(e,s,t,o,s,()=>{n=!0});return n?El:r}return Rl(o)?o:El},f={locale:t,modifiers:r,pluralRules:o,messages:d};e.processor&&(f.processor=e.processor);s.list&&(f.list=s.list);s.named&&(f.named=s.named);ia(s.plural)&&(f.pluralIndex=s.plural);return f}(e,y,b,c),S=function(e,t,n){const s=t(n);return s}(0,x,Ll(C));let T=s?s(S,l):S;var M;if(f&&wa(T)&&(M=(M=(M=T).replace(/(\w+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${ga(n)}"`)).replace(/(\w+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${ga(n)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(M)&&(M=M.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(e=>{M=M.replace(e,"$1javascript:")}),T=M),__INTLIFY_PROD_DEVTOOLS__){const t={timestamp:Date.now(),key:wa(l)?l:Rl(_)?_.key:"",locale:y||(Rl(_)?_.locale:""),format:wa(_)?_:Rl(_)?_.source:"",message:T};t.meta=ua({},e.__meta,al()||{}),Ri(t)}return T}function $l(e,t,n,s,r,o){const{messages:a,onWarn:i,messageResolver:l,localeFallbacker:c}=e,u=c(e,s,n);let d,f=fa(),p=null;for(let h=0;h<u.length&&(d=u[h],f=a[d]||fa(),null===(p=l(f,t))&&(p=f[t]),!(wa(p)||di(p)||Rl(p)));h++)if(!ml(d,u)){const n=fl(e,t,d,0,"translate");n!==t&&(p=n)}return[p,d,f]}function Pl(e,t,n,s,r,o){const{messageCompiler:a,warnHtmlMessage:i}=e;if(Rl(s)){const e=s;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==a){const e=()=>s;return e.locale=n,e.key=t,e}const l=a(s,function(e,t,n,s,r,o){return{locale:t,key:n,warnHtmlMessage:r,onError:e=>{throw o&&o(e),e},onCacheKey:e=>((e,t,n)=>aa({l:e,k:t,s:n}))(t,n,e)}}(0,n,r,0,i,o));return l.locale=n,l.key=t,l.source=s,l}function Il(...e){const[t,n,s]=e,r=fa();if(!(wa(t)||ia(t)||Rl(t)||di(t)))throw Di($i);const o=ia(t)?String(t):(Rl(t),t);return ia(n)?r.plural=n:wa(n)?r.default=n:Ta(n)&&!ca(n)?r.named=n:ba(n)&&(r.list=n),ia(s)?r.plural=s:wa(s)?r.default=s:Ta(s)&&ua(r,s),[o,r]}"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(ha().__INTLIFY_PROD_DEVTOOLS__=!1),"boolean"!=typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(ha().__INTLIFY_DROP_MESSAGE_COMPILER__=!1);const Fl=24,jl=25,Nl=26,Dl=27,Ul=28,zl=29,Wl=31,Hl=32;function Bl(e,...t){return Va(e,null,void 0)}const Vl=oa("__translateVNode"),ql=oa("__datetimeParts"),Yl=oa("__numberParts"),Jl=oa("__setPluralRules"),Zl=oa("__injectWithOption"),Kl=oa("__dispose");function Gl(e){if(!xa(e))return e;if(di(e))return e;for(const t in e)if(ya(e,t))if(t.includes(".")){const n=t.split("."),s=n.length-1;let r=e,o=!1;for(let e=0;e<s;e++){if("__proto__"===n[e])throw new Error(`unsafe key: ${n[e]}`);if(n[e]in r||(r[n[e]]=fa()),!xa(r[n[e]])){o=!0;break}r=r[n[e]]}if(o||(di(r)?xi.includes(n[s])||delete e[t]:(r[n[s]]=e[t],delete e[t])),!di(r)){const e=r[n[s]];xa(e)&&Gl(e)}}else xa(e[t])&&Gl(e[t]);return e}function Xl(e,t){const{messages:n,__i18n:s,messageResolver:r,flatJson:o}=t,a=Ta(n)?n:ba(s)?fa():{[e]:fa()};if(ba(s)&&s.forEach(e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(a[t]=a[t]||fa(),La(n,a[t])):La(n,a)}else wa(e)&&La(JSON.parse(e),a)}),null==r&&o)for(const i in a)ya(a,i)&&Gl(a[i]);return a}function Ql(e){return e.type}function ec(e,t,n){let s=xa(t.messages)?t.messages:fa();"__i18nGlobal"in n&&(s=Xl(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const r=Object.keys(s);if(r.length&&r.forEach(t=>{e.mergeLocaleMessage(t,s[t])}),xa(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach(n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])})}if(xa(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach(n=>{e.mergeNumberFormat(n,t.numberFormats[n])})}}function tc(e){return dr(Zs,null,e,0)}const nc=()=>[],sc=()=>!1;let rc=0;function oc(e){return(t,n,s,r)=>e(n,s,xr()||void 0,r)}function ac(e={}){const{__root:t,__injectWithOption:n}=e,s=void 0===t,r=e.flatJson,o=ra?xt:Ct;let a=!ka(e.inheritLocale)||e.inheritLocale;const i=o(t&&a?t.locale.value:wa(e.locale)?e.locale:el),l=o(t&&a?t.fallbackLocale.value:wa(e.fallbackLocale)||ba(e.fallbackLocale)||Ta(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:i.value),c=o(Xl(i.value,e)),u=o(Ta(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),d=o(Ta(e.numberFormats)?e.numberFormats:{[i.value]:{}});let f=t?t.missingWarn:!ka(e.missingWarn)&&!la(e.missingWarn)||e.missingWarn,p=t?t.fallbackWarn:!ka(e.fallbackWarn)&&!la(e.fallbackWarn)||e.fallbackWarn,h=t?t.fallbackRoot:!ka(e.fallbackRoot)||e.fallbackRoot,m=!!e.fallbackFormat,g=_a(e.missing)?e.missing:null,v=_a(e.missing)?oc(e.missing):null,y=_a(e.postTranslation)?e.postTranslation:null,b=t?t.warnHtmlMessage:!ka(e.warnHtmlMessage)||e.warnHtmlMessage,_=!!e.escapeParameter;const w=t?t.modifiers:Ta(e.modifiers)?e.modifiers:{};let k,x=e.pluralRules||t&&t.pluralRules;k=(()=>{s&&ll(null);const t={version:"11.1.11",locale:i.value,fallbackLocale:l.value,messages:c.value,modifiers:w,pluralRules:x,missing:null===v?void 0:v,missingWarn:f,fallbackWarn:p,fallbackFormat:m,unresolving:!0,postTranslation:null===y?void 0:y,warnHtmlMessage:b,escapeParameter:_,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=u.value,t.numberFormats=d.value,t.__datetimeFormatters=Ta(k)?k.__datetimeFormatters:void 0,t.__numberFormatters=Ta(k)?k.__numberFormatters:void 0;const n=ul(t);return s&&ll(n),n})(),pl(k,i.value,l.value);const C=Ir({get:()=>i.value,set:e=>{k.locale=e,i.value=e}}),S=Ir({get:()=>l.value,set:e=>{k.fallbackLocale=e,l.value=e,pl(k,i.value,e)}}),T=Ir(()=>c.value),M=Ir(()=>u.value),O=Ir(()=>d.value);const L=(e,n,r,o,a,f)=>{let p;i.value,l.value,c.value,u.value,d.value;try{__INTLIFY_PROD_DEVTOOLS__,s||(k.fallbackContext=t?il:void 0),p=e(k)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(k.fallbackContext=void 0)}if("translate exists"!==r&&ia(p)&&-1===p||"translate exists"===r&&!p){const[e,s]=n();return t&&h?o(t):a(e)}if(f(p))return p;throw Bl(Fl)};function E(...e){return L(t=>Reflect.apply(Al,null,[t,...e]),()=>Il(...e),"translate",t=>Reflect.apply(t.t,t,[...e]),e=>e,e=>wa(e))}const R={normalize:function(e){return e.map(e=>wa(e)||ia(e)||ka(e)?tc(String(e)):e)},interpolate:e=>e,type:"vnode"};function A(e){return c.value[e]||{}}rc++,t&&ra&&(fn(t.locale,e=>{a&&(i.value=e,k.locale=e,pl(k,i.value,l.value))}),fn(t.fallbackLocale,e=>{a&&(l.value=e,k.fallbackLocale=e,pl(k,i.value,l.value))}));const $={id:rc,locale:C,fallbackLocale:S,get inheritLocale(){return a},set inheritLocale(e){a=e,e&&t&&(i.value=t.locale.value,l.value=t.fallbackLocale.value,pl(k,i.value,l.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:T,get modifiers(){return w},get pluralRules(){return x||{}},get isGlobal(){return s},get missingWarn(){return f},set missingWarn(e){f=e,k.missingWarn=f},get fallbackWarn(){return p},set fallbackWarn(e){p=e,k.fallbackWarn=p},get fallbackRoot(){return h},set fallbackRoot(e){h=e},get fallbackFormat(){return m},set fallbackFormat(e){m=e,k.fallbackFormat=m},get warnHtmlMessage(){return b},set warnHtmlMessage(e){b=e,k.warnHtmlMessage=e},get escapeParameter(){return _},set escapeParameter(e){_=e,k.escapeParameter=e},t:E,getLocaleMessage:A,setLocaleMessage:function(e,t){if(r){const n={[e]:t};for(const e in n)ya(n,e)&&Gl(n[e]);t=n[e]}c.value[e]=t,k.messages=c.value},mergeLocaleMessage:function(e,t){c.value[e]=c.value[e]||{};const n={[e]:t};if(r)for(const s in n)ya(n,s)&&Gl(n[s]);La(t=n[e],c.value[e]),k.messages=c.value},getPostTranslationHandler:function(){return _a(y)?y:null},setPostTranslationHandler:function(e){y=e,k.postTranslation=e},getMissingHandler:function(){return g},setMissingHandler:function(e){null!==e&&(v=oc(e)),g=e,k.missing=v},[Jl]:function(e){x=e,k.pluralRules=x}};return $.datetimeFormats=M,$.numberFormats=O,$.rt=function(...e){const[t,n,s]=e;if(s&&!xa(s))throw Bl(jl);return E(t,n,ua({resolvedMessage:!0},s||{}))},$.te=function(e,t){return L(()=>{if(!e)return!1;const n=A(wa(t)?t:i.value),s=k.messageResolver(n,e);return di(s)||Rl(s)||wa(s)},()=>[e],"translate exists",n=>Reflect.apply(n.te,n,[e,t]),sc,e=>ka(e))},$.tm=function(e){const n=function(e){let t=null;const n=Bi(k,l.value,i.value);for(let s=0;s<n.length;s++){const r=c.value[n[s]]||{},o=k.messageResolver(r,e);if(null!=o){t=o;break}}return t}(e);return null!=n?n:t&&t.tm(e)||{}},$.d=function(...e){return L(t=>Reflect.apply(gl,null,[t,...e]),()=>yl(...e),"datetime format",t=>Reflect.apply(t.d,t,[...e]),()=>"",e=>wa(e)||ba(e))},$.n=function(...e){return L(t=>Reflect.apply(_l,null,[t,...e]),()=>kl(...e),"number format",t=>Reflect.apply(t.n,t,[...e]),()=>"",e=>wa(e)||ba(e))},$.getDateTimeFormat=function(e){return u.value[e]||{}},$.setDateTimeFormat=function(e,t){u.value[e]=t,k.datetimeFormats=u.value,bl(k,e,t)},$.mergeDateTimeFormat=function(e,t){u.value[e]=ua(u.value[e]||{},t),k.datetimeFormats=u.value,bl(k,e,t)},$.getNumberFormat=function(e){return d.value[e]||{}},$.setNumberFormat=function(e,t){d.value[e]=t,k.numberFormats=d.value,xl(k,e,t)},$.mergeNumberFormat=function(e,t){d.value[e]=ua(d.value[e]||{},t),k.numberFormats=d.value,xl(k,e,t)},$[Zl]=n,$[Vl]=function(...e){return L(t=>{let n;const s=t;try{s.processor=R,n=Reflect.apply(Al,null,[s,...e])}finally{s.processor=null}return n},()=>Il(...e),"translate",t=>t[Vl](...e),e=>[tc(e)],e=>ba(e))},$[ql]=function(...e){return L(t=>Reflect.apply(gl,null,[t,...e]),()=>yl(...e),"datetime format",t=>t[ql](...e),nc,e=>wa(e)||ba(e))},$[Yl]=function(...e){return L(t=>Reflect.apply(_l,null,[t,...e]),()=>kl(...e),"number format",t=>t[Yl](...e),nc,e=>wa(e)||ba(e))},$}function ic(e={}){const t=ac(function(e){const t=wa(e.locale)?e.locale:el,n=wa(e.fallbackLocale)||ba(e.fallbackLocale)||Ta(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,s=_a(e.missing)?e.missing:void 0,r=!ka(e.silentTranslationWarn)&&!la(e.silentTranslationWarn)||!e.silentTranslationWarn,o=!ka(e.silentFallbackWarn)&&!la(e.silentFallbackWarn)||!e.silentFallbackWarn,a=!ka(e.fallbackRoot)||e.fallbackRoot,i=!!e.formatFallbackMessages,l=Ta(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=_a(e.postTranslation)?e.postTranslation:void 0,d=!wa(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,f=!!e.escapeParameterHtml,p=!ka(e.sync)||e.sync;let h=e.messages;if(Ta(e.sharedMessages)){const t=e.sharedMessages;h=Object.keys(t).reduce((e,n)=>{const s=e[n]||(e[n]={});return ua(s,t[n]),e},h||{})}const{__i18n:m,__root:g,__injectWithOption:v}=e,y=e.datetimeFormats,b=e.numberFormats;return{locale:t,fallbackLocale:n,messages:h,flatJson:e.flatJson,datetimeFormats:y,numberFormats:b,missing:s,missingWarn:r,fallbackWarn:o,fallbackRoot:a,fallbackFormat:i,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:p,__i18n:m,__root:g,__injectWithOption:v}}(e)),{__extender:n}=e,s={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return ka(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=ka(e)?!e:e},get silentFallbackWarn(){return ka(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=ka(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t:(...e)=>Reflect.apply(t.t,t,[...e]),rt:(...e)=>Reflect.apply(t.rt,t,[...e]),te:(e,n)=>t.te(e,n),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)}};return s.__extender=n,s}function lc(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Jl](t.pluralizationRules||e.pluralizationRules);const n=Xl(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(t=>e.mergeLocaleMessage(t,n[t])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}const cc={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function uc(){return Js}const dc=bn({name:"i18n-t",props:ua({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ia(e)||!isNaN(e)}},cc),setup(e,t){const{slots:n,attrs:s}=t,r=e.i18n||yc({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(e=>"_"!==e[0]),a=fa();e.locale&&(a.locale=e.locale),void 0!==e.plural&&(a.plural=wa(e.plural)?+e.plural:e.plural);const i=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce((e,t)=>[...e,...t.type===Js?t.children:[t]],[]);return t.reduce((t,n)=>{const s=e[n];return s&&(t[n]=s()),t},fa())}(t,o),l=r[Vl](e.keypath,i,a),c=ua(fa(),s);return Fr(wa(e.tag)||xa(e.tag)?e.tag:uc(),c,l)}}});function fc(e,t,n,s){const{slots:r,attrs:o}=t;return()=>{const t={part:!0};let a=fa();e.locale&&(t.locale=e.locale),wa(e.format)?t.key=e.format:xa(e.format)&&(wa(e.format.key)&&(t.key=e.format.key),a=Object.keys(e.format).reduce((t,s)=>n.includes(s)?ua(fa(),t,{[s]:e.format[s]}):t,fa()));const i=s(e.value,t,a);let l=[t.key];ba(i)?l=i.map((e,t)=>{const n=r[e.type],s=n?n({[e.type]:e.value,index:t,parts:i}):[e.value];var o;return ba(o=s)&&!wa(o[0])&&(s[0].key=`${e.type}-${t}`),s}):wa(i)&&(l=[i]);const c=ua(fa(),o);return Fr(wa(e.tag)||xa(e.tag)?e.tag:uc(),c,l)}}const pc=bn({name:"i18n-n",props:ua({value:{type:Number,required:!0},format:{type:[String,Object]}},cc),setup(e,t){const n=e.i18n||yc({useScope:e.scope,__useComponent:!0});return fc(e,t,wl,(...e)=>n[Yl](...e))}});function hc(e){if(wa(e))return{path:e};if(Ta(e)){if(!("path"in e))throw Bl(Ul);return e}throw Bl(zl)}function mc(e){const{path:t,locale:n,args:s,choice:r,plural:o}=e,a={},i=s||{};return wa(n)&&(a.locale=n),ia(r)&&(a.plural=r),ia(o)&&(a.plural=o),[t,i,a]}function gc(e,t,...n){const s=Ta(n[0])?n[0]:{};(!ka(s.globalInstall)||s.globalInstall)&&([dc.name,"I18nT"].forEach(t=>e.component(t,dc)),[pc.name,"I18nN"].forEach(t=>e.component(t,pc)),[wc.name,"I18nD"].forEach(t=>e.component(t,wc))),e.directive("t",function(e){const t=t=>{const{instance:n,value:s}=t;if(!n||!n.$)throw Bl(Hl);const r=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return null!=s?s.__composer:e.global.__composer}}(e,n.$),o=hc(s);return[Reflect.apply(r.t,r,[...mc(o)]),r]};return{created:(n,s)=>{const[r,o]=t(s);ra&&e.global===o&&(n.__i18nWatcher=fn(o.locale,()=>{s.instance&&s.instance.$forceUpdate()})),n.__composer=o,n.textContent=r},unmounted:e=>{ra&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){const n=e.__composer,s=hc(t);e.textContent=Reflect.apply(n.t,n,[...mc(s)])}},getSSRProps:e=>{const[n]=t(e);return{textContent:n}}}}(t))}const vc=oa("global-vue-i18n");function yc(e={}){const t=xr();if(null==t)throw Bl(Nl);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Bl(Dl);const n=function(e){const t=un(e.isCE?vc:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Bl(e.isCE?Wl:Hl);return t}(t),s=function(e){return"composition"===e.mode?e.global:e.global.__composer}(n),r=Ql(t),o=function(e,t){return ca(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,r);if("global"===o)return ec(s,e,r),s;if("parent"===o){let r=function(e,t,n=!1){let s=null;const r=t.root;let o=function(e,t=!1){if(null==e)return null;return t&&e.vnode.ctx||e.parent}(t,n);for(;null!=o;){const t=e;if("composition"===e.mode)s=t.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const e=t.__getInstance(o);null!=e&&(s=e.__composer,n&&s&&!s[Zl]&&(s=null))}if(null!=s)break;if(r===o)break;o=o.parent}return s}(n,t,e.__useComponent);return null==r&&(r=s),r}const a=n;let i=a.__getInstance(t);if(null==i){const n=ua({},e);"__i18n"in r&&(n.__i18n=r.__i18n),s&&(n.__root=s),i=ac(n),a.__composerExtend&&(i[Kl]=a.__composerExtend(i)),function(e,t,n){Pn(()=>{},t),Nn(()=>{const s=n;e.__deleteInstance(t);const r=s[Kl];r&&(r(),delete s[Kl])},t)}(a,t,i),a.__setInstance(t,i)}return i}const bc=["locale","fallbackLocale","availableLocales"],_c=["t","rt","d","n","tm","te"];const wc=bn({name:"i18n-d",props:ua({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},cc),setup(e,t){const n=e.i18n||yc({useScope:e.scope,__useComponent:!0});return fc(e,t,vl,(...e)=>n[ql](...e))}});var kc,xc;if("boolean"!=typeof __VUE_I18N_FULL_INSTALL__&&(ha().__VUE_I18N_FULL_INSTALL__=!0),"boolean"!=typeof __VUE_I18N_LEGACY_API__&&(ha().__VUE_I18N_LEGACY_API__=!0),"boolean"!=typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(ha().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(ha().__INTLIFY_PROD_DEVTOOLS__=!1),nl=function(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&wa(e)){!ka(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||Oi)(e),s=Li[n];if(s)return s;const{ast:r,detectError:o}=function(e,t={}){let n=!1;const s=t.onError||qa;return t.onError=e=>{n=!0,s(e)},{...ui(e,t),detectError:n}}(e,{...t,location:!1,jit:!0}),a=Si(r);return o?a:Li[n]=a}{const t=e.cacheKey;if(t){const n=Li[t];return n||(Li[t]=Si(e))}return Si(e)}},kc=function(e,t){if(!xa(e))return null;let n=Xi.get(t);if(n||(n=function(e){const t=[];let n,s,r,o,a,i,l,c=-1,u=0,d=0;const f=[];function p(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,r="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===s?s=r:s+=r},f[1]=()=>{void 0!==s&&(t.push(s),s=void 0)},f[2]=()=>{f[0](),d++},f[3]=()=>{if(d>0)d--,u=4,f[0]();else{if(d=0,void 0===s)return!1;if(s=Gi(s),!1===s)return!1;f[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!p()){if(o=Ki(n),l=Ji[u],a=l[o]||l.l||8,8===a)return;if(u=a[0],void 0!==a[1]&&(i=f[a[1]],i&&(r=n,!1===i())))return;if(7===u)return t}}(t),n&&Xi.set(t,n)),!n)return null;const s=n.length;let r=e,o=0;for(;o<s;){const e=n[o];if(xi.includes(e)&&di(r))return null;const t=r[e];if(void 0===t)return null;if(_a(r))return null;r=t,o++}return r},sl=kc,rl=Bi,__INTLIFY_PROD_DEVTOOLS__){const e=ha();e.__INTLIFY__=!0,xc=e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__,Ei=xc}const Cc={status:{connected:"Connected",disconnected:"Disconnected"},actions:{retry:"Retry"},"new chat":"New Chat",conversations:"Conversations","contact support":"Contact Support",support:"Support",options:"Options",mute:"Mute",delete:"Delete",leave:"Leave","leave now":"Leave now?","select contacts":"select contacts","conversation options":"Conversation options",system:{renamed:'{user} renamed "{from}" to "{to}"',created:"{user} created this conversation",left:"{user} left",participants:{addedAndRemoved:"{user} added {added} and removed {removed}",added:"{user} added {added}",removed:"{user} removed {removed}"}}},Sc=Object.freeze(Object.defineProperty({__proto__:null,default:Cc},Symbol.toStringTag,{value:"Module"})),Tc="en",Mc=["en","de"],Oc=Object.assign({"../locales/de.ts":()=>Promise.resolve().then(()=>dm),"../locales/en.ts":()=>Promise.resolve().then(()=>Sc)});const Lc=function(){if("undefined"==typeof navigator)return Tc;const e=[...navigator.languages||[],navigator.language].filter(Boolean);for(const t of e){const e=t.toLowerCase().split("-")[0];if(Mc.includes(e))return e}return Tc}(),Ec=function(e={}){const t=__VUE_I18N_LEGACY_API__&&ka(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=!ka(e.globalInjection)||e.globalInjection,s=new Map,[r,o]=function(e,t){const n=ne(),s=__VUE_I18N_LEGACY_API__&&t?n.run(()=>ic(e)):n.run(()=>ac(e));if(null==s)throw Bl(Hl);return[n,s]}(e,t),a=oa(""),i={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(e,...s){if(e.__VUE_I18N_SYMBOL__=a,e.provide(e.__VUE_I18N_SYMBOL__,i),Ta(s[0])){const e=s[0];i.__composerExtend=e.__composerExtend,i.__vueI18nExtend=e.__vueI18nExtend}let r=null;!t&&n&&(r=function(e,t){const n=Object.create(null);bc.forEach(e=>{const s=Object.getOwnPropertyDescriptor(t,e);if(!s)throw Bl(Hl);const r=kt(s.value)?{get:()=>s.value.value,set(e){s.value.value=e}}:{get:()=>s.get&&s.get()};Object.defineProperty(n,e,r)}),e.config.globalProperties.$i18n=n,_c.forEach(n=>{const s=Object.getOwnPropertyDescriptor(t,n);if(!s||!s.value)throw Bl(Hl);Object.defineProperty(e.config.globalProperties,`$${n}`,s)});const s=()=>{delete e.config.globalProperties.$i18n,_c.forEach(t=>{delete e.config.globalProperties[`$${t}`]})};return s}(e,i.global)),__VUE_I18N_FULL_INSTALL__&&gc(e,i,...s),__VUE_I18N_LEGACY_API__&&t&&e.mixin(function(e,t,n){return{beforeCreate(){const s=xr();if(!s)throw Bl(Hl);const r=this.$options;if(r.i18n){const s=r.i18n;if(r.__i18n&&(s.__i18n=r.__i18n),s.__root=t,this===this.$root)this.$i18n=lc(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=ic(s);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=lc(e,r);else{this.$i18n=ic({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&ec(t,r,r),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const e=xr();if(!e)throw Bl(Hl);const t=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n}}}(o,o.__composer,i));const l=e.unmount;e.unmount=()=>{r&&r(),i.dispose(),l()}},get global(){return o},dispose(){r.stop()},__instances:s,__getInstance:function(e){return s.get(e)||null},__setInstance:function(e,t){s.set(e,t)},__deleteInstance:function(e){s.delete(e)}};return i}({legacy:!1,locale:Lc,fallbackLocale:Tc,messages:{[Tc]:Cc}});function Rc(e,t){return function(){return e.apply(t,arguments)}}"undefined"!=typeof window&&async function(e){let t=e;const n=Ec.global;if(!n.availableLocales.includes(t))try{const e=Oc[`../locales/${t}.ts`];if(!e)throw new Error(`No locale module for ${t}`);const s=(await e()).default;n.setLocaleMessage(t,s)}catch(Df){if(t!==Tc){const e=(await Promise.resolve().then(()=>Sc)).default;n.setLocaleMessage(Tc,e),t=Tc}}n.locale.value=t}(Lc);const{toString:Ac}=Object.prototype,{getPrototypeOf:$c}=Object,{iterator:Pc,toStringTag:Ic}=Symbol,Fc=(e=>t=>{const n=Ac.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),jc=e=>(e=e.toLowerCase(),t=>Fc(t)===e),Nc=e=>t=>typeof t===e,{isArray:Dc}=Array,Uc=Nc("undefined");const zc=jc("ArrayBuffer");const Wc=Nc("string"),Hc=Nc("function"),Bc=Nc("number"),Vc=e=>null!==e&&"object"==typeof e,qc=e=>{if("object"!==Fc(e))return!1;const t=$c(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Ic in e||Pc in e)},Yc=jc("Date"),Jc=jc("File"),Zc=jc("Blob"),Kc=jc("FileList"),Gc=jc("URLSearchParams"),[Xc,Qc,eu,tu]=["ReadableStream","Request","Response","Headers"].map(jc);function nu(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let s,r;if("object"!=typeof e&&(e=[e]),Dc(e))for(s=0,r=e.length;s<r;s++)t.call(null,e[s],s,e);else{const r=n?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length;let a;for(s=0;s<o;s++)a=r[s],t.call(null,e[a],a,e)}}function su(e,t){t=t.toLowerCase();const n=Object.keys(e);let s,r=n.length;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const ru="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ou=e=>!Uc(e)&&e!==ru;const au=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&$c(Uint8Array)),iu=jc("HTMLFormElement"),lu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cu=jc("RegExp"),uu=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};nu(n,(n,r)=>{let o;!1!==(o=t(n,r,e))&&(s[r]=o||n)}),Object.defineProperties(e,s)};const du=jc("AsyncFunction"),fu=(pu="function"==typeof setImmediate,hu=Hc(ru.postMessage),pu?setImmediate:hu?(mu=`axios@${Math.random()}`,gu=[],ru.addEventListener("message",({source:e,data:t})=>{e===ru&&t===mu&&gu.length&&gu.shift()()},!1),e=>{gu.push(e),ru.postMessage(mu,"*")}):e=>setTimeout(e));var pu,hu,mu,gu;const vu="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ru):"undefined"!=typeof process&&process.nextTick||fu,yu={isArray:Dc,isArrayBuffer:zc,isBuffer:function(e){return null!==e&&!Uc(e)&&null!==e.constructor&&!Uc(e.constructor)&&Hc(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Hc(e.append)&&("formdata"===(t=Fc(e))||"object"===t&&Hc(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&zc(e.buffer),t},isString:Wc,isNumber:Bc,isBoolean:e=>!0===e||!1===e,isObject:Vc,isPlainObject:qc,isReadableStream:Xc,isRequest:Qc,isResponse:eu,isHeaders:tu,isUndefined:Uc,isDate:Yc,isFile:Jc,isBlob:Zc,isRegExp:cu,isFunction:Hc,isStream:e=>Vc(e)&&Hc(e.pipe),isURLSearchParams:Gc,isTypedArray:au,isFileList:Kc,forEach:nu,merge:function e(){const{caseless:t}=ou(this)&&this||{},n={},s=(s,r)=>{const o=t&&su(n,r)||r;qc(n[o])&&qc(s)?n[o]=e(n[o],s):qc(s)?n[o]=e({},s):Dc(s)?n[o]=s.slice():n[o]=s};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&nu(arguments[r],s);return n},extend:(e,t,n,{allOwnKeys:s}={})=>(nu(t,(t,s)=>{n&&Hc(t)?e[s]=Rc(t,n):e[s]=t},{allOwnKeys:s}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,s)=>{let r,o,a;const i={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)a=r[o],s&&!s(a,e,t)||i[a]||(t[a]=e[a],i[a]=!0);e=!1!==n&&$c(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Fc,kindOfTest:jc,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return-1!==s&&s===n},toArray:e=>{if(!e)return null;if(Dc(e))return e;let t=e.length;if(!Bc(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Pc]).call(e);let s;for(;(s=n.next())&&!s.done;){const n=s.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const s=[];for(;null!==(n=e.exec(t));)s.push(n);return s},isHTMLForm:iu,hasOwnProperty:lu,hasOwnProp:lu,reduceDescriptors:uu,freezeMethods:e=>{uu(e,(t,n)=>{if(Hc(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const s=e[n];Hc(s)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},s=e=>{e.forEach(e=>{n[e]=!0})};return Dc(e)?s(e):s(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:su,global:ru,isContextDefined:ou,isSpecCompliantForm:function(e){return!!(e&&Hc(e.append)&&"FormData"===e[Ic]&&e[Pc])},toJSONObject:e=>{const t=new Array(10),n=(e,s)=>{if(Vc(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[s]=e;const r=Dc(e)?[]:{};return nu(e,(e,t)=>{const o=n(e,s+1);!Uc(o)&&(r[t]=o)}),t[s]=void 0,r}}return e};return n(e,0)},isAsyncFn:du,isThenable:e=>e&&(Vc(e)||Hc(e))&&Hc(e.then)&&Hc(e.catch),setImmediate:fu,asap:vu,isIterable:e=>null!=e&&Hc(e[Pc])};function bu(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r,this.status=r.status?r.status:null)}yu.inherits(bu,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:yu.toJSONObject(this.config),code:this.code,status:this.status}}});const _u=bu.prototype,wu={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{wu[e]={value:e}}),Object.defineProperties(bu,wu),Object.defineProperty(_u,"isAxiosError",{value:!0}),bu.from=(e,t,n,s,r,o)=>{const a=Object.create(_u);return yu.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),bu.call(a,e.message,t,n,s,r),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};function ku(e){return yu.isPlainObject(e)||yu.isArray(e)}function xu(e){return yu.endsWith(e,"[]")?e.slice(0,-2):e}function Cu(e,t,n){return e?e.concat(t).map(function(e,t){return e=xu(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Su=yu.toFlatObject(yu,{},null,function(e){return/^is[A-Z]/.test(e)});function Tu(e,t,n){if(!yu.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const s=(n=yu.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!yu.isUndefined(t[e])})).metaTokens,r=n.visitor||c,o=n.dots,a=n.indexes,i=(n.Blob||"undefined"!=typeof Blob&&Blob)&&yu.isSpecCompliantForm(t);if(!yu.isFunction(r))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(yu.isDate(e))return e.toISOString();if(yu.isBoolean(e))return e.toString();if(!i&&yu.isBlob(e))throw new bu("Blob is not supported. Use a Buffer instead.");return yu.isArrayBuffer(e)||yu.isTypedArray(e)?i&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,r){let i=e;if(e&&!r&&"object"==typeof e)if(yu.endsWith(n,"{}"))n=s?n:n.slice(0,-2),e=JSON.stringify(e);else if(yu.isArray(e)&&function(e){return yu.isArray(e)&&!e.some(ku)}(e)||(yu.isFileList(e)||yu.endsWith(n,"[]"))&&(i=yu.toArray(e)))return n=xu(n),i.forEach(function(e,s){!yu.isUndefined(e)&&null!==e&&t.append(!0===a?Cu([n],s,o):null===a?n:n+"[]",l(e))}),!1;return!!ku(e)||(t.append(Cu(r,n,o),l(e)),!1)}const u=[],d=Object.assign(Su,{defaultVisitor:c,convertValue:l,isVisitable:ku});if(!yu.isObject(e))throw new TypeError("data must be an object");return function e(n,s){if(!yu.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+s.join("."));u.push(n),yu.forEach(n,function(n,o){!0===(!(yu.isUndefined(n)||null===n)&&r.call(t,n,yu.isString(o)?o.trim():o,s,d))&&e(n,s?s.concat(o):[o])}),u.pop()}}(e),t}function Mu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Ou(e,t){this._pairs=[],e&&Tu(e,this,t)}const Lu=Ou.prototype;function Eu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ru(e,t,n){if(!t)return e;const s=n&&n.encode||Eu;yu.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let o;if(o=r?r(t,n):yu.isURLSearchParams(t)?t.toString():new Ou(t,n).toString(s),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}Lu.append=function(e,t){this._pairs.push([e,t])},Lu.toString=function(e){const t=e?function(t){return e.call(this,t,Mu)}:Mu;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class Au{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){yu.forEach(this.handlers,function(t){null!==t&&e(t)})}}const $u={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pu={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ou,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Iu="undefined"!=typeof window&&"undefined"!=typeof document,Fu="object"==typeof navigator&&navigator||void 0,ju=Iu&&(!Fu||["ReactNative","NativeScript","NS"].indexOf(Fu.product)<0),Nu="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Du=Iu&&window.location.href||"http://localhost",Uu={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Iu,hasStandardBrowserEnv:ju,hasStandardBrowserWebWorkerEnv:Nu,navigator:Fu,origin:Du},Symbol.toStringTag,{value:"Module"})),...Pu};function zu(e){function t(e,n,s,r){let o=e[r++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),i=r>=e.length;if(o=!o&&yu.isArray(s)?s.length:o,i)return yu.hasOwnProp(s,o)?s[o]=[s[o],n]:s[o]=n,!a;s[o]&&yu.isObject(s[o])||(s[o]=[]);return t(e,n,s[o],r)&&yu.isArray(s[o])&&(s[o]=function(e){const t={},n=Object.keys(e);let s;const r=n.length;let o;for(s=0;s<r;s++)o=n[s],t[o]=e[o];return t}(s[o])),!a}if(yu.isFormData(e)&&yu.isFunction(e.entries)){const n={};return yu.forEachEntry(e,(e,s)=>{t(function(e){return yu.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),s,n,0)}),n}return null}const Wu={transitional:$u,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",s=n.indexOf("application/json")>-1,r=yu.isObject(e);r&&yu.isHTMLForm(e)&&(e=new FormData(e));if(yu.isFormData(e))return s?JSON.stringify(zu(e)):e;if(yu.isArrayBuffer(e)||yu.isBuffer(e)||yu.isStream(e)||yu.isFile(e)||yu.isBlob(e)||yu.isReadableStream(e))return e;if(yu.isArrayBufferView(e))return e.buffer;if(yu.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Tu(e,new Uu.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,s){return Uu.isNode&&yu.isBuffer(e)?(this.append(t,e.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=yu.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Tu(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||s?(t.setContentType("application/json",!1),function(e,t,n){if(yu.isString(e))try{return(t||JSON.parse)(e),yu.trim(e)}catch(Df){if("SyntaxError"!==Df.name)throw Df}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Wu.transitional,n=t&&t.forcedJSONParsing,s="json"===this.responseType;if(yu.isResponse(e)||yu.isReadableStream(e))return e;if(e&&yu.isString(e)&&(n&&!this.responseType||s)){const n=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(Df){if(n){if("SyntaxError"===Df.name)throw bu.from(Df,bu.ERR_BAD_RESPONSE,this,null,this.response);throw Df}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Uu.classes.FormData,Blob:Uu.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};yu.forEach(["delete","get","head","post","put","patch"],e=>{Wu.headers[e]={}});const Hu=yu.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Bu=Symbol("internals");function Vu(e){return e&&String(e).trim().toLowerCase()}function qu(e){return!1===e||null==e?e:yu.isArray(e)?e.map(qu):String(e)}function Yu(e,t,n,s,r){return yu.isFunction(s)?s.call(this,t,n):(r&&(t=n),yu.isString(t)?yu.isString(s)?-1!==t.indexOf(s):yu.isRegExp(s)?s.test(t):void 0:void 0)}let Ju=class{constructor(e){e&&this.set(e)}set(e,t,n){const s=this;function r(e,t,n){const r=Vu(t);if(!r)throw new Error("header name must be a non-empty string");const o=yu.findKey(s,r);(!o||void 0===s[o]||!0===n||void 0===n&&!1!==s[o])&&(s[o||t]=qu(e))}const o=(e,t)=>yu.forEach(e,(e,n)=>r(e,n,t));if(yu.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(yu.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,s,r;return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),s=e.substring(r+1).trim(),!n||t[n]&&Hu[n]||("set-cookie"===n?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t})(e),t);else if(yu.isObject(e)&&yu.isIterable(e)){let n,s,r={};for(const t of e){if(!yu.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[s=t[0]]=(n=r[s])?yu.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(r,t)}else null!=e&&r(t,e,n);return this}get(e,t){if(e=Vu(e)){const n=yu.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}(e);if(yu.isFunction(t))return t.call(this,e,n);if(yu.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Vu(e)){const n=yu.findKey(this,e);return!(!n||void 0===this[n]||t&&!Yu(0,this[n],n,t))}return!1}delete(e,t){const n=this;let s=!1;function r(e){if(e=Vu(e)){const r=yu.findKey(n,e);!r||t&&!Yu(0,n[r],r,t)||(delete n[r],s=!0)}}return yu.isArray(e)?e.forEach(r):r(e),s}clear(e){const t=Object.keys(this);let n=t.length,s=!1;for(;n--;){const r=t[n];e&&!Yu(0,this[r],r,e,!0)||(delete this[r],s=!0)}return s}normalize(e){const t=this,n={};return yu.forEach(this,(s,r)=>{const o=yu.findKey(n,r);if(o)return t[o]=qu(s),void delete t[r];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(r):String(r).trim();a!==r&&delete t[r],t[a]=qu(s),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return yu.forEach(this,(n,s)=>{null!=n&&!1!==n&&(t[s]=e&&yu.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Bu]=this[Bu]={accessors:{}}).accessors,n=this.prototype;function s(e){const s=Vu(e);t[s]||(!function(e,t){const n=yu.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(e,n,r){return this[s].call(this,t,e,n,r)},configurable:!0})})}(n,e),t[s]=!0)}return yu.isArray(e)?e.forEach(s):s(e),this}};function Zu(e,t){const n=this||Wu,s=t||n,r=Ju.from(s.headers);let o=s.data;return yu.forEach(e,function(e){o=e.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function Ku(e){return!(!e||!e.__CANCEL__)}function Gu(e,t,n){bu.call(this,null==e?"canceled":e,bu.ERR_CANCELED,t,n),this.name="CanceledError"}function Xu(e,t,n){const s=n.config.validateStatus;n.status&&s&&!s(n.status)?t(new bu("Request failed with status code "+n.status,[bu.ERR_BAD_REQUEST,bu.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Ju.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),yu.reduceDescriptors(Ju.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),yu.freezeMethods(Ju),yu.inherits(Gu,bu,{__CANCEL__:!0});const Qu=(e,t,n=3)=>{let s=0;const r=function(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r,o=0,a=0;return t=void 0!==t?t:1e3,function(i){const l=Date.now(),c=s[a];r||(r=l),n[o]=i,s[o]=l;let u=a,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-r<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,s,r=0,o=1e3/t;const a=(t,o=Date.now())=>{r=o,n=null,s&&(clearTimeout(s),s=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),i=t-r;i>=o?a(e,t):(n=e,s||(s=setTimeout(()=>{s=null,a(n)},o-i)))},()=>n&&a(n)]}(n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,i=o-s,l=r(i);s=o;e({loaded:o,total:a,progress:a?o/a:void 0,bytes:i,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},ed=(e,t)=>{const n=null!=e;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},td=e=>(...t)=>yu.asap(()=>e(...t)),nd=Uu.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Uu.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Uu.origin),Uu.navigator&&/(msie|trident)/i.test(Uu.navigator.userAgent)):()=>!0,sd=Uu.hasStandardBrowserEnv?{write(e,t,n,s,r,o){const a=[e+"="+encodeURIComponent(t)];yu.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),yu.isString(s)&&a.push("path="+s),yu.isString(r)&&a.push("domain="+r),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function rd(e,t,n){let s=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(s||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const od=e=>e instanceof Ju?{...e}:e;function ad(e,t){t=t||{};const n={};function s(e,t,n,s){return yu.isPlainObject(e)&&yu.isPlainObject(t)?yu.merge.call({caseless:s},e,t):yu.isPlainObject(t)?yu.merge({},t):yu.isArray(t)?t.slice():t}function r(e,t,n,r){return yu.isUndefined(t)?yu.isUndefined(e)?void 0:s(void 0,e,0,r):s(e,t,0,r)}function o(e,t){if(!yu.isUndefined(t))return s(void 0,t)}function a(e,t){return yu.isUndefined(t)?yu.isUndefined(e)?void 0:s(void 0,e):s(void 0,t)}function i(n,r,o){return o in t?s(n,r):o in e?s(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:i,headers:(e,t,n)=>r(od(e),od(t),0,!0)};return yu.forEach(Object.keys(Object.assign({},e,t)),function(s){const o=l[s]||r,a=o(e[s],t[s],s);yu.isUndefined(a)&&o!==i||(n[s]=a)}),n}const id=e=>{const t=ad({},e);let n,{data:s,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:l}=t;if(t.headers=i=Ju.from(i),t.url=Ru(rd(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),yu.isFormData(s))if(Uu.hasStandardBrowserEnv||Uu.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(!1!==(n=i.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}if(Uu.hasStandardBrowserEnv&&(r&&yu.isFunction(r)&&(r=r(t)),r||!1!==r&&nd(t.url))){const e=o&&a&&sd.read(a);e&&i.set(o,e)}return t},ld="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const s=id(e);let r=s.data;const o=Ju.from(s.headers).normalize();let a,i,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=s;function h(){c&&c(),u&&u(),s.cancelToken&&s.cancelToken.unsubscribe(a),s.signal&&s.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const s=Ju.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Xu(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:s,config:e,request:m}),m=null}m.open(s.method.toUpperCase(),s.url,!0),m.timeout=s.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new bu("Request aborted",bu.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new bu("Network Error",bu.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const r=s.transitional||$u;s.timeoutErrorMessage&&(t=s.timeoutErrorMessage),n(new bu(t,r.clarifyTimeoutError?bu.ETIMEDOUT:bu.ECONNABORTED,e,m)),m=null},void 0===r&&o.setContentType(null),"setRequestHeader"in m&&yu.forEach(o.toJSON(),function(e,t){m.setRequestHeader(t,e)}),yu.isUndefined(s.withCredentials)||(m.withCredentials=!!s.withCredentials),d&&"json"!==d&&(m.responseType=s.responseType),p&&([l,u]=Qu(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([i,c]=Qu(f),m.upload.addEventListener("progress",i),m.upload.addEventListener("loadend",c)),(s.cancelToken||s.signal)&&(a=t=>{m&&(n(!t||t.type?new Gu(null,e,m):t),m.abort(),m=null)},s.cancelToken&&s.cancelToken.subscribe(a),s.signal&&(s.signal.aborted?a():s.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(s.url);v&&-1===Uu.protocols.indexOf(v)?n(new bu("Unsupported protocol "+v+":",bu.ERR_BAD_REQUEST,e)):m.send(r||null)})},cd=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,s=new AbortController;const r=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;s.abort(t instanceof bu?t:new Gu(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,r(new bu(`timeout ${t} of ms exceeded`,bu.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r));const{signal:i}=s;return i.unsubscribe=()=>yu.asap(a),i}},ud=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let s,r=0;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},dd=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},fd=(e,t,n,s)=>{const r=async function*(e,t){for await(const n of dd(e))yield*ud(n,t)}(e,t);let o,a=0,i=e=>{o||(o=!0,s&&s(e))};return new ReadableStream({async pull(e){try{const{done:t,value:s}=await r.next();if(t)return i(),void e.close();let o=s.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(s))}catch(t){throw i(t),t}},cancel:e=>(i(e),r.return())},{highWaterMark:2})},pd="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,hd=pd&&"function"==typeof ReadableStream,md=pd&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),gd=(e,...t)=>{try{return!!e(...t)}catch(Df){return!1}},vd=hd&&gd(()=>{let e=!1;const t=new Request(Uu.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),yd=hd&&gd(()=>yu.isReadableStream(new Response("").body)),bd={stream:yd&&(e=>e.body)};var _d;pd&&(_d=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!bd[e]&&(bd[e]=yu.isFunction(_d[e])?t=>t[e]():(t,n)=>{throw new bu(`Response type '${e}' is not supported`,bu.ERR_NOT_SUPPORT,n)})}));const wd=async(e,t)=>{const n=yu.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(yu.isBlob(e))return e.size;if(yu.isSpecCompliantForm(e)){const t=new Request(Uu.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return yu.isArrayBufferView(e)||yu.isArrayBuffer(e)?e.byteLength:(yu.isURLSearchParams(e)&&(e+=""),yu.isString(e)?(await md(e)).byteLength:void 0)})(t):n},kd={http:null,xhr:ld,fetch:pd&&(async e=>{let{url:t,method:n,data:s,signal:r,cancelToken:o,timeout:a,onDownloadProgress:i,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=id(e);c=c?(c+"").toLowerCase():"text";let p,h=cd([r,o&&o.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&vd&&"get"!==n&&"head"!==n&&0!==(g=await wd(u,s))){let e,n=new Request(t,{method:"POST",body:s,duplex:"half"});if(yu.isFormData(s)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=ed(g,Qu(td(l)));s=fd(n.body,65536,e,t)}}yu.isString(d)||(d=d?"include":"omit");const r="credentials"in Request.prototype;p=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:s,duplex:"half",credentials:r?d:void 0});let o=await fetch(p,f);const a=yd&&("stream"===c||"response"===c);if(yd&&(i||a&&m)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=o[t]});const t=yu.toFiniteNumber(o.headers.get("content-length")),[n,s]=i&&ed(t,Qu(td(i),!0))||[];o=new Response(fd(o.body,65536,n,()=>{s&&s(),m&&m()}),e)}c=c||"text";let v=await bd[yu.findKey(bd,c)||"text"](o,e);return!a&&m&&m(),await new Promise((t,n)=>{Xu(t,n,{data:v,headers:Ju.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:p})})}catch(v){if(m&&m(),v&&"TypeError"===v.name&&/Load failed|fetch/i.test(v.message))throw Object.assign(new bu("Network Error",bu.ERR_NETWORK,e,p),{cause:v.cause||v});throw bu.from(v,v&&v.code,e,p)}})};yu.forEach(kd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Df){}Object.defineProperty(e,"adapterName",{value:t})}});const xd=e=>`- ${e}`,Cd=e=>yu.isFunction(e)||null===e||!1===e,Sd=e=>{e=yu.isArray(e)?e:[e];const{length:t}=e;let n,s;const r={};for(let o=0;o<t;o++){let t;if(n=e[o],s=n,!Cd(n)&&(s=kd[(t=String(n)).toLowerCase()],void 0===s))throw new bu(`Unknown adapter '${t}'`);if(s)break;r[t||"#"+o]=s}if(!s){const e=Object.entries(r).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new bu("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(xd).join("\n"):" "+xd(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return s};function Td(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gu(null,e)}function Md(e){Td(e),e.headers=Ju.from(e.headers),e.data=Zu.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Sd(e.adapter||Wu.adapter)(e).then(function(t){return Td(e),t.data=Zu.call(e,e.transformResponse,t),t.headers=Ju.from(t.headers),t},function(t){return Ku(t)||(Td(e),t&&t.response&&(t.response.data=Zu.call(e,e.transformResponse,t.response),t.response.headers=Ju.from(t.response.headers))),Promise.reject(t)})}const Od="1.10.0",Ld={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ld[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ed={};Ld.transitional=function(e,t,n){function s(e,t){return"[Axios v"+Od+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,o)=>{if(!1===e)throw new bu(s(r," has been removed"+(t?" in "+t:"")),bu.ERR_DEPRECATED);return t&&!Ed[r]&&(Ed[r]=!0,console.warn(s(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}},Ld.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const Rd={assertOptions:function(e,t,n){if("object"!=typeof e)throw new bu("options must be an object",bu.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new bu("option "+o+" must be "+n,bu.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new bu("Unknown option "+o,bu.ERR_BAD_OPTION)}},validators:Ld},Ad=Rd.validators;let $d=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Au,response:new Au}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(Df){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ad(this.defaults,t);const{transitional:n,paramsSerializer:s,headers:r}=t;void 0!==n&&Rd.assertOptions(n,{silentJSONParsing:Ad.transitional(Ad.boolean),forcedJSONParsing:Ad.transitional(Ad.boolean),clarifyTimeoutError:Ad.transitional(Ad.boolean)},!1),null!=s&&(yu.isFunction(s)?t.paramsSerializer={serialize:s}:Rd.assertOptions(s,{encode:Ad.function,serialize:Ad.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Rd.assertOptions(t,{baseUrl:Ad.spelling("baseURL"),withXsrfToken:Ad.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=r&&yu.merge(r.common,r[t.method]);r&&yu.forEach(["delete","get","head","post","put","patch","common"],e=>{delete r[e]}),t.headers=Ju.concat(o,r);const a=[];let i=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!i){const e=[Md.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{c=Md.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Ru(rd((e=ad(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};yu.forEach(["delete","get","head","options"],function(e){$d.prototype[e]=function(t,n){return this.request(ad(n||{},{method:e,url:t,data:(n||{}).data}))}}),yu.forEach(["post","put","patch"],function(e){function t(t){return function(n,s,r){return this.request(ad(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:s}))}}$d.prototype[e]=t(),$d.prototype[e+"Form"]=t(!0)});const Pd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Pd).forEach(([e,t])=>{Pd[t]=e});const Id=function e(t){const n=new $d(t),s=Rc($d.prototype.request,n);return yu.extend(s,$d.prototype,n,{allOwnKeys:!0}),yu.extend(s,n,null,{allOwnKeys:!0}),s.create=function(n){return e(ad(t,n))},s}(Wu);Id.Axios=$d,Id.CanceledError=Gu,Id.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const s=new Promise(e=>{n.subscribe(e),t=e}).then(e);return s.cancel=function(){n.unsubscribe(t)},s},e(function(e,s,r){n.reason||(n.reason=new Gu(e,s,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},Id.isCancel=Ku,Id.VERSION=Od,Id.toFormData=Tu,Id.AxiosError=bu,Id.Cancel=Id.CanceledError,Id.all=function(e){return Promise.all(e)},Id.spread=function(e){return function(t){return e.apply(null,t)}},Id.isAxiosError=function(e){return yu.isObject(e)&&!0===e.isAxiosError},Id.mergeConfig=ad,Id.AxiosHeaders=Ju,Id.formToJSON=e=>zu(yu.isHTMLForm(e)?new FormData(e):e),Id.getAdapter=Sd,Id.HttpStatusCode=Pd,Id.default=Id;const{Axios:Fd,AxiosError:jd,CanceledError:Nd,isCancel:Dd,CancelToken:Ud,VERSION:zd,all:Wd,Cancel:Hd,isAxiosError:Bd,spread:Vd,toFormData:qd,AxiosHeaders:Yd,HttpStatusCode:Jd,formToJSON:Zd,getAdapter:Kd,mergeConfig:Gd}=Id,Xd=e=>JSON.parse(JSON.stringify(e)),Qd={plugins:"background-color: #3f2d56; color: #FFF",startup:"background-color: #5A8C99; color: #FFF",auth:"background-color: #5A8C99; color: #FFF",websocket:"background-color: #5A8C99; color: #FFF",session:"background-color: #7a5a99; color: #FFF"},ef=new Proxy({},{get:function(e,t,n){return(e,n)=>((e,t,n)=>{const s=n?`color: ${n}`:Qd[e.toLowerCase()]||"color: #FFF";console.log(`%c[CHAT]%c%c[${e.toUpperCase()}]%c ${t}`,"background-color: #3f2d56;","padding: 5px",s,"color: inherit")})(t.toString(),e,n)}});let tf={};class nf{endpoints={live:{api:"http://api.lilaquadrat.de",media:"http://media.lilaquadrat.de"},next:{api:"http://next-api.lilaquadrat.de",media:"http://next-media.lilaquadrat.de"}};customEndpoints={api:"",media:""};authToken;mode="next";company;project;app;universalModel;options;constructor(e,t){this.authToken=t.authToken,this.customEndpoints=t.customEndpoints,this.mode=t.customEndpoints?"custom":t.mode||"live",this.app=e}getUrl(e,t,n){const s=t.filter(e=>e),r=[];let o;return o="custom"===this.mode?this.customEndpoints[e]:this.endpoints[this.mode][e],r.push(o),r.push(...s),r.filter(e=>e).join("/")}getHeaders(){const e={"studio-app":this.app};return this.authToken&&(e.Authorization=`bearer ${this.authToken}`),e}static getCacheKeyMock(e){const t=new URL(e);return t.pathname+t.search}static getCacheKey(e){let t=e;return t=t.replace(/:|\/|\?|=|&/gi,"-"),t}static getCache(){return tf}static handleCall(e,t){if("GET"===e.method&&!t?.bypassCache){const n=nf.cache(Id.getUri(e),void 0,t);if(n)return Promise.resolve(n)}return Id.request(e).then(n=>("GET"===e.method&&nf.cache(Id.getUri(e),n,t),n)).then(e=>({data:e.data,status:e.status}))}static cache(e,t,n){const s=n?.id?n.id:nf.getCacheKey(e);if(ef.cache(s),t){const e=n?.id?n.id:s;return void(tf[e]={data:t.data,status:t.status,action:n?.action,group:n?.group,cacheLifetime:n?.cacheLifetime?Date.now()+(n?.cacheLifetime||0):null,cacheTime:Date.now()})}const r=tf[s];if(!r)return null;if(r.cacheLifetime&&r.cacheLifetime<Date.now())return delete tf[s],null;const o=Xd(r);return delete o?.action,delete o?.group,delete o?.id,o.isCache=!0,o}static flushCache(e,t){e||t?Object.keys(tf).forEach(n=>{let s=!1;const r=tf[n];e&&t?r.group===e&&r.action===t&&(s=!0):e?r.group===e&&(s=!0):t&&r.action===t&&(s=!0),s&&delete tf[n]}):tf={}}static flushId(e){delete tf[e]}conversations={list:()=>nf.handleCall({method:"GET",url:this.getUrl("api",["conversations","list"]),headers:this.getHeaders()},{group:"conversations",action:"list"}),activate:()=>nf.handleCall({method:"POST",url:this.getUrl("api",["hosting",this.company,this.project,"activate"]),headers:this.getHeaders(),params:{}}),create:e=>nf.handleCall({method:"POST",url:this.getUrl("api",["conversations"]),headers:this.getHeaders(),data:e}),rename:(e,t)=>nf.handleCall({method:"PUT",url:this.getUrl("api",["conversations",e,"name"]),headers:this.getHeaders(),data:{name:t}}),participants:(e,t,n)=>nf.handleCall({method:"PUT",url:this.getUrl("api",["conversations",e,"participants"]),headers:this.getHeaders(),data:{add:t,remove:n}}),leave:e=>nf.handleCall({method:"POST",url:this.getUrl("api",["conversations",e,"leave"]),headers:this.getHeaders()}),listParticipants:e=>nf.handleCall({method:"GET",url:this.getUrl("api",["conversations",e,"participants"]),headers:this.getHeaders()},{bypassCache:!0}),rights:(e,t,n)=>nf.handleCall({method:"PUT",url:this.getUrl("api",["conversations",e,"rights"]),headers:this.getHeaders(),data:{user:t,rights:n}}),block:(e,t,n)=>nf.handleCall({method:"PUT",url:this.getUrl("api",["conversations",e,"block"]),headers:this.getHeaders(),data:{user:t,block:n}})};contacts={list:e=>nf.handleCall({method:"GET",url:this.getUrl("api",["contacts"]),headers:this.getHeaders(),params:e?{search:e}:void 0},{group:"contacts",action:"list"}),single:e=>nf.handleCall({method:"GET",url:this.getUrl("api",["contacts",e]),headers:this.getHeaders()}),block:e=>nf.handleCall({method:"POST",url:this.getUrl("api",["contacts",e,"block"]),headers:this.getHeaders()}),unblock:e=>nf.handleCall({method:"DELETE",url:this.getUrl("api",["contacts",e,"block"]),headers:this.getHeaders()})};messages={list:(e,t)=>nf.handleCall({method:"GET",url:this.getUrl("api",["messages",e]),headers:this.getHeaders(),params:{beforeId:t}},{group:"messages",action:"list",id:e})};health={health:()=>nf.handleCall({method:"GET",url:this.getUrl("api",["health"]),headers:this.getHeaders()})}}const sf=Yo("user",()=>({user:xt()})),rf=Yo("main",()=>{const e=xt("conversations");fn(e,e=>{try{e?localStorage.setItem("studio-chat:left-target",e):localStorage.removeItem("studio-chat:left-target")}catch{}});const t=xt("chat"),n=xt("disconnected"),s=xt(!1),r=xt(["chat"]),o=Ir(()=>r.value.includes("chat")),a=Ir(()=>r.value.includes("support")),i=Ir(()=>a.value&&!o.value),l=xt("full");return{leftTarget:e,mainTarget:t,state:n,fullscreen:s,features:r,hasChat:o,hasSupport:a,isSupportOnly:i,viewMode:l,setViewMode:function(e){l.value=e},supportParticipants:xt([]),wsUrl:xt("ws://localhost:3001"),apiUrl:xt("http://localhost:3000"),mediaUrl:xt("http://localhost:3000"),authToken:xt("devToken"),unreadCallback:xt(),closeCallback:xt(),showConversations:function(){e.value="conversations"},showNewChat:function(){},showEditChat:function(){e.value="contacts-edit"},hideLeft:function(){e.value=void 0}}}),of=[];for(let fm=0;fm<256;++fm)of.push((fm+256).toString(16).slice(1));let af;const lf=new Uint8Array(16);const cf={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function uf(e,t,n){if(cf.randomUUID&&!e)return cf.randomUUID();const s=(e=e||{}).random??e.rng?.()??function(){if(!af){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");af=crypto.getRandomValues.bind(crypto)}return af(lf)}();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=15&s[6]|64,s[8]=63&s[8]|128,function(e,t=0){return(of[e[t+0]]+of[e[t+1]]+of[e[t+2]]+of[e[t+3]]+"-"+of[e[t+4]]+of[e[t+5]]+"-"+of[e[t+6]]+of[e[t+7]]+"-"+of[e[t+8]]+of[e[t+9]]+"-"+of[e[t+10]]+of[e[t+11]]+of[e[t+12]]+of[e[t+13]]+of[e[t+14]]+of[e[t+15]]).toLowerCase()}(s)}function df(e){return"string"==typeof e?e:e?.id}function ff(e=[]){return e.map(df)}const pf=Yo("usersCache",()=>{const e=xt({}),t=new Map;function n(t){t?.id&&(e.value[t.id]={...e.value[t.id],...t})}return{entries:e,ingest:function(e=[]){e.forEach(e=>{"string"!=typeof e&&e?.id&&n(e)})},setOne:n,get:function(t){return e.value[t]},name:function(t){const n=e.value[t];return n?"string"==typeof(s=n)?s:s?[s.prename,s.lastname].filter(Boolean).join(" ").trim()||s.name||s.id:"":t;var s},ensure:async function(s=[]){const r=[...new Set(s)].filter(n=>n&&!e.value[n]&&!t.has(n));if(!r.length)return;const o=new nf("chat",function(){const e=rf();return{authToken:e.authToken,customEndpoints:{api:e.apiUrl,media:e.mediaUrl}}}()),a=(async()=>{try{(await Promise.allSettled(r.map(e=>o.contacts.single(e)))).forEach(e=>{"fulfilled"===e.status&&n(e.value?.data)})}catch(e){console.warn("[studio-chat] could not resolve users",e)}})();r.forEach(e=>t.set(e,a)),await a,r.forEach(e=>t.delete(e))}}}),hf=Yo("conversations",()=>{const e=xt([]),t=xt();fn(t,e=>{try{const t=e?._id??e?.id;t?localStorage.setItem("studio-chat:active-conversation",t):localStorage.removeItem("studio-chat:active-conversation")}catch{}});const n=Ir(()=>e.value.filter(e=>e.unread)),s=Ir(()=>n.value.reduce((e,t)=>e+(t.unreadCount||0),0)),r=Ir(()=>n.value.length),o=xt({}),a=new Map;function i(){const e=rf();return{authToken:e.authToken,customEndpoints:{api:e.apiUrl,media:e.mediaUrl}}}async function l(){const t=new nf("chat",i());((await t.conversations.list()).data||[]).forEach(t=>{const n=e.value.find(e=>e._id===t._id||e.id===t.id&&t.id);n?(n.unreadCount=t.unreadCount,n.unread=t.unread,n.lastMessage=t.lastMessage,n.messagesCount=t.messagesCount,n.participant={...n.participant,...t.participant}):e.value.push(t),pf().ingest(t.participants)}),m()}function c(){return nf.flushCache("conversations","list"),nf.flushCache("messages","list"),l()}async function u(e,t){const n=new nf("chat",i());return(await n.messages.list(e,t)).data}function d(t,n,s="chat"){const r=uf();return e.value.push({id:r,isNew:!0,participants:t,creator:n,operationMode:s}),r}async function f(n){const s=e.value.find(e=>e._id===n||e.id===n);t.value=s||null}function p(e,t){const n=h(t);if(!n)return;n.messages||(n.messages=[]);const s=e.filter(e=>!n.messages.some(t=>t.id===e.id));n.messages.push(...s),n.messages.sort((e,t)=>t.id-e.id)}function h(t){return e.value.find(e=>e._id===t||e.id===t)}function m(){e.value.forEach(e=>{g(e._id)})}function g(e){const t=h(e);if(!t)return;const n=t.participant?.lastReadId;t.unreadCount=n?(t.lastMessage?.id??n)-n:t.messagesCount||0,t.unread=t.unreadCount>0}return{getAllConversations:l,refreshConversations:c,handleReconnect:async function(){await c();const e=t.value;if(e&&!e.isNew&&e._id){p(await u(e._id),e._id)}},conversations:e,unreadConversations:n,totalUnreadCount:s,totalUnreadConversations:r,typing:o,setTyping:function e(t,n,s){const r=`${t}:${n}`,i=a.get(r);i&&clearTimeout(i);const l=o.value[t]||[];s?(l.includes(n)||(o.value[t]=[...l,n]),a.set(r,setTimeout(()=>e(t,n,!1),7e3))):(o.value[t]=l.filter(e=>e!==n),a.delete(r))},loadParticipants:async function(e){const t=new nf("chat",i()),n=await t.conversations.listParticipants(e),s=h(e);return s&&(s.participantDocs=n.data||[]),n.data||[]},setRights:function(e,t,n){return new nf("chat",i()).conversations.rights(e,t,n)},blockUser:function(e,t,n){return new nf("chat",i()).conversations.block(e,t,n)},updateParticipantRights:function(e,t,n){const s=h(e);if(!s)return;const r=s.participantDocs?.find(e=>e.user===t);r&&(r.rights=n),s.participant&&sf().user===t&&(s.participant.rights=n)},create:async function(e){const t=new nf("chat",i());return await t.conversations.create({participants:e})},createNew:d,startSupport:function(){const t=sf().user;if(!t)return;const n=e.value.find(e=>"support"===e.operationMode);if(n){const e=n._id||n.id;return f(e),e}const s=rf().supportParticipants.filter(e=>e!==t),r=d([t,...s],t,"support");return f(r),r},activateConversation:f,activeConversation:t,convertTempToConversation:function(t){const n=h(t.id);n?(n._id=t._id,n.isNew=!1,n.name=t.name,n.participant=t.participant,n.lastMessage=t.lastMessage,n.messages=[],t.participants&&(n.participants=t.participants),pf().ingest(t.participants),g(t._id)):function(t){const n={_id:t._id,participants:t.participants,lastMessage:t.lastMessage,participant:t.participant,messages:[],messagesCount:t.messagesCount||0,oldestMessageId:t.oldestMessageId,operationMode:t.operationMode||"chat"};e.value.push(n),pf().ingest(n.participants)}(t)},getMessagesFromApi:u,addMessagesToConversation:p,getMessagesForConversation:function(e){const t=h(e);if(!t)return[];const n=Xd(t);return n.messages?.reverse()||[]},updateLastMessage:function(t,n){const s=e.value.find(e=>e._id===t||e.id===t);s&&(s.lastMessage=n)},updateUnread:g,updateAllUnread:m,increaseMessageCount:function(e){const t=h(e);t&&t.messagesCount++},increaseMessageCountSystem:function(e){const t=h(e);t&&t.messagesCountSystem++},setLastReadId:function(e,t){const n=h(e);n&&(n.participant.lastReadId=t)},getConversation:h,addParticipant:function(e,t){const n=h(e);n&&(n.participants.some(e=>df(e)===t)||n.participants.push(t))},removeParticipant:function(e,t){const n=h(e);if(!n)return;const s=n.participants.findIndex(e=>df(e)===t);-1!==s&&n.participants.splice(s,1)},setParticipants:function(e,t){const n=h(e);n&&(n.participants=t,pf().ingest(t))},toggleParticipant:function(e,t){const n=h(e);if(!n)return;const s=n.participants.findIndex(e=>df(e)===t);-1===s?n.participants.push(t):n.participants.splice(s,1)},getConversationViaParticipantsAndName:function(t,n,s){const r=ff(t);return e.value.find(e=>{if(s?.excludeTemp&&e.isTemp)return!1;if(s?.exclude&&s.exclude.includes(e._id||e.id))return!1;if(e.name!==n)return!1;const t=ff(e.participants);return t.length===r.length&&t.every(e=>r.includes(e))})},cleanConversations:function(){const t=new Map;e.value=e.value.filter(e=>{if(e.participants.length<=1)return!1;const n=ff(e.participants).sort().join(",");return e.isNew?!t.has(n)&&(t.set(n,1),!0):!t.has(n)})},abandonConversation:function(t){const n=e.value.findIndex(e=>e._id===t||e.id===t);-1!==n&&e.value.splice(n,1)},inactivateConversation:function(){t.value=null},rename:async function(e,t){const n=h(e);if(n?.isNew)return n.name=t,Promise.resolve();{const n=new nf("chat",i());return await n.conversations.rename(e,t)}},conversationRenamed:function(e,t){const n=h(e);n&&(n.name=t)},executeParticipantsEdit:function(e,t,n){return new nf("chat",i()).conversations.participants(e,t,n)},updateConversationParticipant:function(e,t){const n=h(e);n&&(n.participant.state=t)},leave:function(e){return new nf("chat",i()).conversations.leave(e)}}}),mf={class:"conversations-module"},gf=["onClick"],vf={class:"time"},yf={class:"message-unread-container"},bf={key:0,class:"lastMessage"},_f={key:1,class:"unread"},wf={key:3,class:"draft"},kf=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},xf=kf(bn({__name:"conversations.module",setup(e){const t=hf(),n=rf(),s=sf();fn(()=>s.user,e=>{e&&(console.log("set user"),t.cleanConversations(),t.getAllConversations())},{immediate:!0});const r=Ir(()=>Xd(t.conversations).sort((e,t)=>Xo(e.lastMessage?.history.created).isBefore(Xo(t.lastMessage?.history.created))?1:-1).map(e=>({...e,isActive:o.value?._id===e._id&&e._id||o.value?.id===e.id&&e.id}))),o=Ir(()=>t.activeConversation);function a(e){t.activateConversation(e),n.hideLeft()}let i=!1;return fn(r,e=>{if(i||!e.length||o.value)return;const t=e.find(e=>!e.isNew);t&&(i=!0,a(t._id||t.id))}),(e,t)=>{const n=Hn("participants-partial");return er(),rr("section",mf,[(er(!0),rr(Js,null,qn(r.value,t=>(er(),rr("article",{key:t._id,class:V(["single-conversation",{active:t.isActive,unread:t.unread,support:"support"===t.operationMode}]),role:"button",onClick:e=>a(t._id||t.id)},["support"===t.operationMode?(er(),rr(Js,{key:0},[pr(K(e.$t("support")),1)],64)):t.name?(er(),rr(Js,{key:1},[pr(K(t.name),1)],64)):(er(),or(n,{key:2,participants:t.participants,"remove-user":""},null,8,["participants"])),ur("span",vf,K(Mt(Xo)(t.lastMessage?.history.created).fromNow()),1),ur("section",yf,[t.lastMessage?(er(),rr("p",bf,K(t.lastMessage.message),1)):hr("",!0),t.unread?(er(),rr("span",_f,K(t.unreadCount),1)):hr("",!0)]),t.isNew?(er(),rr("span",wf,"draft")):hr("",!0)],10,gf))),128))])}}}),[["styles",[".conversations-module[data-v-c7853fe0]{display:grid;grid-auto-rows:max-content}.conversations-module .single-conversation[data-v-c7853fe0]{padding:20px;gap:5px;cursor:pointer;display:grid;grid-template-columns:1fr 1fr}.conversations-module .single-conversation .time[data-v-c7853fe0]{justify-self:end}.conversations-module .single-conversation .message-unread-container[data-v-c7853fe0]{display:grid;grid-column:1 / 3;grid-template-columns:5fr 1fr}.conversations-module .single-conversation .message-unread-container .lastMessage[data-v-c7853fe0]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.conversations-module .single-conversation .message-unread-container .unread[data-v-c7853fe0]{align-self:center;justify-self:end;padding:0 4px;border-radius:8px;background-color:var(--scm-color-own);color:#fff;font-size:.8rem}.conversations-module .single-conversation[data-v-c7853fe0]:hover{background-color:var(--scm-color-surface)}.conversations-module .single-conversation.active[data-v-c7853fe0]{background-color:color-mix(in srgb,var(--scm-color-surface) 85%,var(--scm-color-muted))}.conversations-module .single-conversation.support[data-v-c7853fe0]{font-weight:600;border-left:3px solid var(--scm-color-primary)}"]],["__scopeId","data-v-c7853fe0"]]),Cf=bn({__name:"chats.module",setup(e){const t=hf(),n=Ir(()=>t.activeConversation);return(e,t)=>{const s=Hn("chat-module");return n.value?(er(),or(s,function(e){if(!e)return null;let{class:t,style:n}=e;return t&&!v(t)&&(e.class=V(t)),n&&(e.style=U(n)),e}(yr({key:0},n.value)),null,16)):hr("",!0)}}});class Sf{static instance=null;socket=null;currentOptions=null;retryCount=0;retryDelay=1e3;retryTimeoutId=null;connectTimeoutId=null;refCount=0;onConnectionChange;heartbeatIntervalId=null;lastActivity=0;recoveryListenersInstalled=!1;constructor(){}static getInstance(){return Sf.instance||(Sf.instance=new Sf),Sf.instance}get isConnected(){return this.socket?.readyState===WebSocket.OPEN}get options(){return this.currentOptions}acquire(){this.refCount++}release(){this.refCount=Math.max(0,this.refCount-1),0===this.refCount&&this._teardownSocket("no-consumers")}connect(e){const{url:t,maxRetries:n=50,maxRetryDelay:s=3e4,heartbeatIntervalMs:r=3e4,inactivityTimeoutMs:o=6e4,connectTimeoutMs:a=1e4,buildPingMessage:i}=e;if(this.currentOptions={...e,maxRetries:n,maxRetryDelay:s,heartbeatIntervalMs:r,inactivityTimeoutMs:o,connectTimeoutMs:a,buildPingMessage:i},this.installRecoveryListeners(),this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING))return void ef.websocket("WS already connecting/open; reusing existing socket");this.retryTimeoutId&&(clearTimeout(this.retryTimeoutId),this.retryTimeoutId=null),this.socket&&this.detachHandlers(this.socket);const l=new WebSocket(t);this.socket=l,this.clearConnectTimeout(),this.connectTimeoutId=setTimeout(()=>{if(l.readyState===WebSocket.CONNECTING){ef.websocket("connect timeout: handshake not completed, aborting socket");try{l.close()}catch{}}},a),l.onopen=()=>{this.clearConnectTimeout(),this.retryCount=0,this.lastActivity=Date.now(),ef.websocket(`connected (readyState ${l.readyState})`),this.onConnectionChange?.(!0),this.currentOptions?.onOpen?.(),this.startHeartbeat()},l.onmessage=e=>{this.lastActivity=Date.now(),this.currentOptions?.onMessage?.(e.data)},l.onerror=e=>{console.error("WebSocket error:",e),this.currentOptions?.onError?.(e)},l.onclose=e=>{this.clearConnectTimeout(),this.stopHeartbeat();const t=1006!==e.code||l.readyState===WebSocket.CLOSED;ef.websocket(`disconnected (code ${e.code}, clean ${e.wasClean}, everOpened ${t})`),this.onConnectionChange?.(!1),this.currentOptions?.onClose?.(e),this.refCount>0&&this.attemptReconnect()}}detachHandlers(e){e.onopen=null,e.onmessage=null,e.onerror=null,e.onclose=null}clearConnectTimeout(){this.connectTimeoutId&&(clearTimeout(this.connectTimeoutId),this.connectTimeoutId=null)}installRecoveryListeners(){this.recoveryListenersInstalled||"undefined"==typeof window||(this.recoveryListenersInstalled=!0,window.addEventListener("online",()=>this.recover("online")),document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&this.recover("visible")}))}recover(e){0!==this.refCount&&this.currentOptions&&(!this.socket||this.socket.readyState!==WebSocket.OPEN&&this.socket.readyState!==WebSocket.CONNECTING)&&(ef.websocket(`recovery (${e}): socket not open, reconnecting`),this.reconnect())}startHeartbeat(){this.stopHeartbeat();const e=this.currentOptions?.heartbeatIntervalMs??3e4;e<=0||(this.heartbeatIntervalId=setInterval(()=>{const t=Date.now(),n=this.currentOptions?.inactivityTimeoutMs??6e4,s=this.socket;if(s&&0!==this.refCount){if(s.readyState===WebSocket.CLOSED)return ef.websocket("watchdog: detected CLOSED without onclose, triggering reconnect"),this.onConnectionChange?.(!1),this.stopHeartbeat(),void(this.refCount>0&&this.attemptReconnect());if(t-this.lastActivity>n)return ef.websocket("watchdog: inactivity threshold exceeded; forcing reconnect"),void this.reconnect();if(s.readyState===WebSocket.OPEN)try{const r=this.currentOptions?.buildPingMessage;if(t-this.lastActivity>Math.min(.5*n,e)){const e=r?r():{type:"ping",ts:t};s.send(JSON.stringify(e))}}catch{}}else this.stopHeartbeat()},e))}stopHeartbeat(){this.heartbeatIntervalId&&(clearInterval(this.heartbeatIntervalId),this.heartbeatIntervalId=null)}attemptReconnect(){if(!this.currentOptions)return;const{maxRetries:e}=this.currentOptions;if(this.retryCount<e){this.retryCount++;const t=this.calculateRetryDelay();ef.websocket(`Attempting to reconnect (${this.retryCount}/${e}) in ${t}ms`),this.retryTimeoutId=setTimeout(()=>{this.currentOptions&&this.refCount>0&&this.connect(this.currentOptions)},t)}else ef.websocket("Max retry attempts reached")}calculateRetryDelay(){const e=(Math.floor(4001*Math.random())+1e3)*Math.max(1,this.retryCount),t=this.options?.maxRetryDelay??3e4;return Math.min(e,t)}reconnect(){this.currentOptions&&(this.retryTimeoutId&&(clearTimeout(this.retryTimeoutId),this.retryTimeoutId=null),this.retryCount=0,this._teardownSocket("manual-reconnect"),this.connect(this.currentOptions))}disconnect(){this._teardownSocket("manual-disconnect"),this.onConnectionChange?.(!1)}_teardownSocket(e){this.stopHeartbeat(),this.clearConnectTimeout(),this.retryTimeoutId&&(clearTimeout(this.retryTimeoutId),this.retryTimeoutId=null);const t=this.socket;if(this.socket=null,t)if(this.detachHandlers(t),t.readyState===WebSocket.OPEN)t.close(1e3,e);else if(t.readyState===WebSocket.CONNECTING)try{t.close()}catch{}}send(e){if(this.socket&&this.isConnected)try{return this.socket.send(JSON.stringify(e)),!0}catch{return!1}return!1}}let Tf=null;async function Mf(){if(Tf)return await Tf()}const Of="session:probe";const Lf=new class{transport;options=null;state="disconnected";everReady=!1;lostSinceReady=!1;reauthAttempts=0;lastAuthSentAt=0;reauthTimerId=null;queue=[];pending=[];probeIntervalId=null;constructor(e){this.transport=e}get sessionState(){return this.state}start(e){this.options=e,this.installProbe(),this.setState("connecting"),this.transport.connect({url:e.url,maxRetries:1/0,maxRetryDelay:3e4,onOpen:()=>this.handleOpen(),onMessage:e=>this.handleFrame(e),onClose:()=>this.handleClose()}),this.transport.isConnected&&"connecting"===this.state&&this.handleOpen()}send(e,t={}){const n={payload:e,...t};return"ready"===this.state&&this.transport.isConnected?this.dispatch(n):!!n.queue&&(this.enqueue(n),!0)}destroy(){this.clearReauthTimer(),this.probeIntervalId&&(clearInterval(this.probeIntervalId),this.probeIntervalId=null),"undefined"!=typeof window&&(window.removeEventListener("online",this.probeNow),document.removeEventListener("visibilitychange",this.onVisibilityChange)),this.queue=[],this.pending=[],this.setState("disconnected")}handleOpen(){this.clearReauthTimer(),this.reauthAttempts=0,this.setState("authenticating"),this.authenticate()}handleClose(){this.clearReauthTimer(),this.everReady&&(this.lostSinceReady=!0),this.setState("connecting")}async authenticate(){let e;this.lastAuthSentAt=Date.now();try{e=await Mf()}catch(t){ef.session(`token resolution failed: ${t instanceof Error?t.message:t}`)}if(e??=this.options?.fallbackToken?.(),!e)return ef.session("no auth token available; retrying"),void this.scheduleReauth(2e3);this.transport.send({type:"authenticate",token:e})&&this.setReady()}setReady(){const e=this.everReady&&this.lostSinceReady;this.everReady=!0,this.lostSinceReady=!1,this.setState("ready"),e&&(this.requeuePending(),this.options?.onSessionRestored?.()),this.flushQueue()}setState(e){this.state!==e&&(this.state=e,ef.session(`state → ${e}`),this.options?.onStateChange?.(e))}handleFrame(e){let t;try{t=JSON.parse(e)}catch{return void ef.session("unparseable frame received; ignored")}if(t&&"string"==typeof t.type&&"pong"!==t.type&&"welcome"!==t.type){if("authenticated"===t.type)return this.reauthAttempts=0,void("ready"!==this.state&&this.setReady());if("session:alive"!==t.type)if("error"!==t.type){this.reauthAttempts=0,this.confirmEcho(t);try{this.options?.onMessage?.(t)}catch(n){ef.session(`message handler failed: ${n instanceof Error?n.message:n}`)}}else this.handleError(t);else this.reauthAttempts=0}}handleError(e){const t=String(e.error??""),n="string"==typeof e.messageType?e.messageType:void 0;"UNKNOWN_CLIENT"!==t?"AUTH_FAILED"!==t?n!==Of?(n&&this.settleRejected(n),ef.session(`server error ${t}${n?` (${n})`:""}`),this.options?.onMessage?.(e)):this.reauthAttempts=0:this.handleAuthFailed():this.handleSessionLost(n??"unknown")}handleSessionLost(e){if(this.lostSinceReady=!0,"ready"===this.state&&this.setState("authenticating"),"authenticating"!==this.state)return;if(this.reauthAttempts>=3)return ef.session("re-authentication keeps failing; forcing reconnect"),void this.hardReconnect();ef.session(`session lost (${e}); re-authenticating`),this.reauthAttempts++;const t=2e3-(Date.now()-this.lastAuthSentAt);t>0?this.scheduleReauth(t):this.authenticate()}handleAuthFailed(){if(this.lostSinceReady=!0,"ready"===this.state&&this.setState("authenticating"),this.reauthAttempts++,this.reauthAttempts>3)return ef.session("authentication failing repeatedly; forcing reconnect"),void this.hardReconnect();ef.session(`authentication failed (attempt ${this.reauthAttempts}); retrying with a fresh token`),this.scheduleReauth(2e3*this.reauthAttempts)}hardReconnect(){this.clearReauthTimer(),this.reauthAttempts=0,this.setState("connecting"),this.transport.reconnect()}scheduleReauth(e){this.reauthTimerId||(this.reauthTimerId=setTimeout(()=>{this.reauthTimerId=null,"authenticating"===this.state&&this.transport.isConnected&&this.authenticate()},e))}clearReauthTimer(){this.reauthTimerId&&(clearTimeout(this.reauthTimerId),this.reauthTimerId=null)}confirmEcho(e){if("message"===e.type){const t=this.options?.ownUserId?.();if(!t||e.user!==t)return;const n=this.pending.findIndex(t=>{return"message:add"===t.payload.type&&t.payload.conversation===e.conversation&&(n=t.payload.message,s=e.message,"string"==typeof n&&"string"==typeof s&&(n===s||n.slice(0,1e4)===s));var n,s});return void(-1!==n&&this.pending.splice(n,1))}if("conversation:new"===e.type&&e.id){const t=this.pending.findIndex(t=>"conversation:start"===t.payload.type&&t.payload.id===e.id);-1!==t&&this.pending.splice(t,1)}}settleRejected(e){const t=this.pending.findIndex(t=>t.payload.type===e);-1!==t&&this.pending.splice(t,1)}dispatch(e){return this.transport.send(e.payload)?(e.track&&(this.pending.push({...e,sentAt:Date.now()}),this.pending.length>50&&this.pending.splice(0,this.pending.length-50)),!0):(e.queue&&this.queue.unshift(e),!1)}enqueue(e){e.replaceKey&&(this.queue=this.queue.filter(t=>t.replaceKey!==e.replaceKey)),this.queue.push(e),this.queue.length>100&&(this.queue.splice(0,this.queue.length-100),ef.session("outbound queue overflow; oldest entries dropped"))}requeuePending(){if(!this.pending.length)return;const e=Date.now(),t=this.pending.filter(t=>e-(t.sentAt??e)<3e5),n=this.pending.length-t.length;n&&ef.session(`${n} unconfirmed frame(s) too old to resend; dropped`),this.pending=[],this.queue=[...t,...this.queue]}flushQueue(){if("ready"!==this.state||!this.queue.length)return;const e=this.queue;this.queue=[],ef.session(`flushing ${e.length} queued frame(s)`);for(let t=0;t<e.length;t++)if(!this.dispatch(e[t]))return void this.queue.push(...e.slice(t+1).filter(e=>e.queue))}installProbe(){this.probeIntervalId||"undefined"==typeof window||(this.probeIntervalId=setInterval(()=>this.probe(),45e3),window.addEventListener("online",this.probeNow),document.addEventListener("visibilitychange",this.onVisibilityChange))}probeNow=()=>this.probe();onVisibilityChange=()=>{"visible"===document.visibilityState&&this.probe()};probe(){"ready"===this.state&&this.transport.isConnected&&("undefined"!=typeof document&&"visible"!==document.visibilityState||this.transport.send({type:Of}))}}(Sf.getInstance());function Ef(){const e=Sf.getInstance();e.acquire();return Nn(()=>{e.release()}),{conversationStart:(e,t,n,s,r)=>Lf.send({type:"conversation:start",message:e,participants:t,name:n,id:s,operationMode:r},{queue:!0,track:!0}),conversationLastRead:(e,t)=>Lf.send({type:"conversation:lastRead",conversation:e,lastReadId:t},{queue:!0,replaceKey:`lastRead:${e}`}),messageAdd:(e,t)=>Lf.send({type:"message:add",message:e,conversation:t},{queue:!0,track:!0}),conversationTyping:(e,t)=>Lf.send({type:"conversation:typing",conversation:e,typing:t})}}const Rf={"conversation:new":e=>{const t=hf();t.convertTempToConversation(e),nf.flushId(e._id),e.id&&e.id===t.activeConversation.id&&rf().showConversations()},"conversation:renamed":e=>{hf().conversationRenamed(e.conversation,e.names.to)},"conversation:participants":e=>{hf().setParticipants(e.conversation,e.participants)},"conversation:left":e=>{const t=sf(),n=hf();n.removeParticipant(e.conversation,e.user),t.user===e.user&&n.updateConversationParticipant(e.conversation,"left")},"conversation:removed":e=>{const t=hf();t.activeConversation?._id===e.conversation&&(t.inactivateConversation(),rf().showConversations()),t.abandonConversation(e.conversation)},"conversation:rights":e=>{hf().updateParticipantRights(e.conversation,e.user,e.rights)},"conversation:typing":e=>{hf().setTyping(e.conversation,e.user,e.typing)},message:e=>{const t=hf(),n=sf();t.addMessagesToConversation([e],e.conversation),n.user===e.user&&t.setLastReadId(e.conversation,e.id),"user"===e.origin&&(t.updateLastMessage(e.conversation,e),t.increaseMessageCount(e.conversation),t.updateUnread(e.conversation)),t.increaseMessageCountSystem(e.conversation)}};function Af(e){const t=e.type;if(!t)return;const n=Rf[t];n&&n(e)}function $f(e,t,n,s){e.forEach(e=>{const t=function(e,t){return`${e}-${t}`}(e.name,n);s.component(t,e.component)})}const Pf=Yo("calls",()=>{const e=xt({});return{calls:e,addCall:function(){const t=uf();return e.value[t]="pending",t},updateCall:function(t,n){e.value[t]=n}}});var If,Ff={exports:{}};var jf,Nf,Df,Uf=(If||(If=1,Ff.exports=(jf="minute",Nf=/[+-]\d\d(?::?\d\d)?/g,Df=/([+-]|\d\d)/g,function(e,t,n){var s=t.prototype;n.utc=function(e){return new t({date:e,utc:!0,args:arguments})},s.utc=function(e){var t=n(this.toDate(),{locale:this.$L,utc:!0});return e?t.add(this.utcOffset(),jf):t},s.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var r=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),r.call(this,e)};var o=s.init;s.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else o.call(this)};var a=s.utcOffset;s.utcOffset=function(e,t){var n=this.$utils().u;if(n(e))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;if("string"==typeof e&&null===(e=function(e){void 0===e&&(e="");var t=e.match(Nf);if(!t)return null;var n=(""+t[0]).match(Df)||["-",0,0],s=n[0],r=60*+n[1]+ +n[2];return 0===r?0:"+"===s?r:-r}(e)))return this;var s=Math.abs(e)<=16?60*e:e,r=this;if(t)return r.$offset=s,r.$u=0===e,r;if(0!==e){var o=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(r=this.local().add(s+o,jf)).$offset=s,r.$x.$localOffset=o}else r=this.utc();return r};var i=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return i.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var l=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var c=s.diff;s.diff=function(e,t,s){if(e&&this.$u===e.$u)return c.call(this,e,t,s);var r=this.local(),o=n(e).local();return c.call(r,o,t,s)}})),Ff.exports);const zf=Jo(Uf);var Wf,Hf={exports:{}};var Bf=(Wf||(Wf=1,Hf.exports=function(){var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,s,r){var o,a=function(e,n,s){void 0===s&&(s={});var r=new Date(e);return function(e,n){void 0===n&&(n={});var s=n.timeZoneName||"short",r=e+"|"+s,o=t[r];return o||(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:s}),t[r]=o),o}(n,s).formatToParts(r)},i=function(t,n){for(var s=a(t,n),o=[],i=0;i<s.length;i+=1){var l=s[i],c=l.type,u=l.value,d=e[c];d>=0&&(o[d]=parseInt(u,10))}var f=o[3],p=24===f?0:f,h=o[0]+"-"+o[1]+"-"+o[2]+" "+p+":"+o[4]+":"+o[5]+":000",m=+t;return(r.utc(h).valueOf()-(m-=m%1e3))/6e4},l=s.prototype;l.tz=function(e,t){void 0===e&&(e=o);var n,s=this.utcOffset(),a=this.toDate(),i=a.toLocaleString("en-US",{timeZone:e}),l=Math.round((a-new Date(i))/1e3/60),c=15*-Math.round(a.getTimezoneOffset()/15)-l;if(Number(c)){if(n=r(i,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(c,!0),t){var u=n.utcOffset();n=n.add(s-u,"minute")}}else n=this.utcOffset(0,t);return n.$x.$timezone=e,n},l.offsetName=function(e){var t=this.$x.$timezone||r.tz.guess(),n=a(this.valueOf(),t,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return n&&n.value};var c=l.startOf;l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var n=r(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(n,e,t).tz(this.$x.$timezone,!0)},r.tz=function(e,t,n){var s=n&&t,a=n||t||o,l=i(+r(),a);if("string"!=typeof e)return r(e).tz(a);var c=function(e,t,n){var s=e-60*t*1e3,r=i(s,n);if(t===r)return[s,t];var o=i(s-=60*(r-t)*1e3,n);return r===o?[s,r]:[e-60*Math.min(r,o)*1e3,Math.max(r,o)]}(r.utc(e,s).valueOf(),l,a),u=c[0],d=c[1],f=r(u).utcOffset(d);return f.$x.$timezone=a,f},r.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},r.tz.setDefault=function(e){o=e}}}()),Hf.exports);const Vf=Jo(Bf);var qf,Yf={exports:{}};var Jf=(qf||(qf=1,Yf.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,s){var r=n.prototype,o=r.format;s.en.formats=e,r.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n,s=this.$locale().formats,r=(n=void 0===s?{}:s,t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,s,r){var o=r&&r.toUpperCase();return s||n[r]||e[r]||n[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})}));return o.call(this,r)}}}()),Yf.exports);const Zf=Jo(Jf);var Kf,Gf={exports:{}};Kf||(Kf=1,Gf.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),s={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function r(e,t,n){var r=s[n];return Array.isArray(r)&&(r=r[t?0:1]),r.replace("%d",e)}var o={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r}};return n.default.locale(o,null,!0),o}(Go()));var Xf,Qf={exports:{}};Xf||(Xf=1,Qf.exports={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}}),Xo.extend(zf),Xo.extend(Vf),Xo.extend(Zf);const ep=navigator.language||navigator.languages?.[0]||"en";Xo.locale(ep);const tp=Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC";function np(e,t){const n=[...e].sort((e,t)=>new Date(e.history.created).getTime()-new Date(t.history.created).getTime()),s={};return n.forEach(e=>{const n=function(e,t="ll"){return Xo(e).tz(tp).format(t)}(e.history.created),r=function(e,t="HH:mm"){return Xo(e).tz(tp).format(t)}(e.history.created),o=e.origin,a=e.user;e.isUser=e.user===t,s[n]||(s[n]={date:n,userTimeGroups:[]});const i=s[n].userTimeGroups,l=i[i.length-1];if(!l||"system"===l.origin||"system"===o||l.user!==a||l.origin!==o||l.time!==r){const t={user:a,origin:o,time:r,isUser:e.isUser,messages:[e]};i.push(t)}else l.messages.push(e)}),Object.values(s)}const sp={class:"chat-messages"},rp={class:"date-separator"},op={class:"message-content"},ap=["id"],ip={key:2,class:"typing-indicator"},lp=kf(bn({__name:"chat.module",props:{_id:{type:String},id:{type:String},isNew:{type:Boolean},participants:{type:Array},name:{type:String},operationMode:{type:String}},setup(e){const{traceable:t}=(()=>{const{addCall:e,updateCall:t}=Pf();return{traceable:async function(n,s,r={time:3e3}){const o=e();s&&(s.value=o);const a=r.time>0?new Promise(e=>setTimeout(e,r.time)):Promise.resolve(),i=await Promise.allSettled([a,n]);if("rejected"===i[1].status)throw t(o,"rejected"),i[1].reason;return t(o,"resolved"),i[1].value}}})(),{conversationStart:n,messageAdd:s,conversationLastRead:r,conversationTyping:o}=Ef(),{user:a}=sf(),i=hf(),l=pf(),c=e,u=Ir(()=>i.getMessagesForConversation(c._id||"")),d=Ir(()=>i.getConversation(c._id||c.id)),f=xt(""),p=xt(),h=xt(!0),m=xt(!0),g=xt(!1),v=xt(!1),y=xt(null),b=rf(),{chatVisible:_}=function(e){const t=rf(),n=xt(!1),s=xt("undefined"==typeof document||"visible"===document.visibilityState),r=Ir(()=>"compact"===t.viewMode&&!!t.leftTarget),o=Ir(()=>n.value&&s.value&&!r.value);let a;function i(){s.value="visible"===document.visibilityState}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",i),fn(e,e=>{a?.disconnect(),a=void 0,e&&"undefined"!=typeof IntersectionObserver?(a=new IntersectionObserver(([e])=>{n.value=e.isIntersecting}),a.observe(e)):n.value=!!e},{immediate:!0}),jn(()=>{a?.disconnect(),"undefined"!=typeof document&&document.removeEventListener("visibilitychange",i)}),{chatVisible:o}}(p);let w=null,k=null,x=0;function C(){g.value=p.value&&p.value.scrollHeight>p.value.clientHeight}function S(){C()}const T=Ir(()=>"support"===c.operationMode);async function M(){const e=await t(i.getMessagesFromApi(c._id,I.value),void 0,{time:1e3});i.addMessagesToConversation(e,c._id)}async function O(){if(!c.isNew&&c._id&&!d.value?.messagesLoaded){d.value&&(d.value.messagesLoaded=!0);try{const e=await t(i.getMessagesFromApi(c._id),void 0,{time:0});i.addMessagesToConversation(e,c._id),L()}catch(e){throw d.value&&(d.value.messagesLoaded=!1),e}}}function L(){_.value&&d.value?.participant?.lastReadId<d.value?.lastMessage?.id&&(r(c._id,d.value.lastMessage.id),i.setLastReadId(c._id,d.value.lastMessage.id),i.updateUnread(c._id))}function E(){w&&clearTimeout(w),w=setTimeout(()=>{if(p.value){const{scrollTop:e,scrollHeight:t,clientHeight:n}=p.value,s=Math.max(10*n/100,1);m.value=e<=s,h.value=e+n>=t-s}},100)}function R(){b.showConversations(),i.abandonConversation(c.id),i.inactivateConversation()}function A(){if(!c._id)return;const e=Date.now();e-x>3e3&&(x=e,o(c._id,!0)),k&&clearTimeout(k),k=setTimeout($,4e3)}function $(){k&&(clearTimeout(k),k=null),x&&(x=0,c._id&&o(c._id,!1))}fn(()=>c._id,()=>{O(),h.value=!0},{immediate:!0}),fn(()=>m.value,async()=>{if(m.value&&I.value>F.value){const e=`message-${I.value}`;await M(),Kt(()=>p.value.scrollTop=document.getElementById(e)?.offsetTop||0)}}),fn(u,async()=>{u.value.length?(await Kt(),L(),C(),I.value>F.value&&(g.value||await M()),h.value&&p.value&&(p.value.scrollTop=p.value.scrollHeight,h.value=!0)):O()},{deep:!0}),fn(()=>[c.participants,c.name],()=>{if(c.participants?.length<=1||!c.isNew)return v.value=!1,!1;const e=i.getConversationViaParticipantsAndName(c.participants,c.name,{exclude:[c.id]});e?.isNew||(e?._id?(v.value=!0,y.value=e._id):v.value=!1)},{deep:!0}),fn(u,e=>{l.ensure((e||[]).map(e=>e.user))},{immediate:!0}),fn(_,e=>{e&&L()});const P=Ir(()=>np(u.value,a)),I=Ir(()=>u.value[0]?.id),F=Ir(()=>{const e=i.getConversation(c._id);return e?.oldestMessageId}),j=Ir(()=>d.value?.isNew||"active"===d.value?.participant?.state&&d.value?.participant?.rights?.includes("write")),N=Ir(()=>(i.typing[c._id||""]||[]).filter(e=>e!==a)),D=Ir(()=>N.value.map(e=>l.name(e)));return Pn(()=>{C(),window.addEventListener("resize",S)}),jn(()=>{w&&clearTimeout(w),window.removeEventListener("resize",S),$()}),(t,r)=>{const o=Hn("chat-header-partial"),a=Hn("button-partial"),l=Hn("notice-partial"),u=Hn("contacts-module"),h=Hn("user-avatar-partial"),m=Hn("system-message-partial"),g=Hn("chat-input-partial");return er(),rr("section",{class:V(["chat-module",{isNew:e.isNew}])},[dr(o,{conversation:c._id||c.id},null,8,["conversation"]),dr(l,{type:"notice"},{default:an(()=>[e.isNew&&!T.value?(er(),or(a,{key:0,variant:"danger",size:"sm",onClick:R},{default:an(()=>[...r[3]||(r[3]=[pr(" Abandon draft ",-1)])]),_:1})):hr("",!0),v.value?(er(),rr(Js,{key:1},[r[5]||(r[5]=ur("p",null,"chat already exists",-1)),dr(a,{variant:"primary",size:"sm",onClick:r[0]||(r[0]=e=>{return t=y.value,i.abandonConversation(c.id),i.activateConversation(t),void b.showConversations();var t})},{default:an(()=>[...r[4]||(r[4]=[pr(" jump to chat ",-1)])]),_:1})],64)):hr("",!0)]),_:1}),e.isNew?(er(),or(u,{key:0})):hr("",!0),e.isNew?hr("",!0):(er(),rr("section",{key:1,ref_key:"chatMessagesRef",ref:p,class:"chat-messages-scroll-container",onScroll:E},[ur("div",sp,[(er(!0),rr(Js,null,qn(P.value,e=>(er(),rr("div",{key:e.date,class:"messages-group"},[ur("div",rp,K(e.date),1),(er(!0),rr(Js,null,qn(e.userTimeGroups,(e,t)=>(er(),rr("div",{key:t,class:V([[{isUser:e.isUser},e.origin],"message"])},[ur("header",null,[e.isUser||"user"!==e.origin?hr("",!0):(er(),or(h,{key:0,"user-id":e.user},null,8,["user-id"])),ur("time",null,K(e.time),1)]),ur("div",op,[(er(!0),rr(Js,null,qn(e.messages,e=>(er(),rr("p",{id:`message-${e.id}`,key:e.id},["system"===e.origin?(er(),or(m,yr({key:0,ref_for:!0},e),null,16)):hr("",!0),"user"===e.origin?(er(),rr(Js,{key:1},[pr(K(e.message),1)],64)):hr("",!0)],8,ap))),128))])],2))),128))]))),128))])],544)),N.value.length?(er(),rr("div",ip,K(D.value.join(", "))+" "+K(N.value.length>1?"are":"is")+" writing… ",1)):hr("",!0),j.value?(er(),or(g,{key:3,modelValue:f.value,"onUpdate:modelValue":r[1]||(r[1]=e=>f.value=e),disabled:!!v.value,placeholder:"Message",onSubmit:r[2]||(r[2]=e=>function(e){const t=e.trim().replace(/\n{3,}/g,"\n\n").replace(/[^\S\n]{2,}/g," ");t&&!v.value&&(c.isNew&&c.participants&&c.id?n(t,ff(c.participants),d.value?.name,c.id,c.operationMode):s(t,c._id),$(),f.value="")}(f.value)),onTyping:A},null,8,["modelValue","disabled"])):hr("",!0)],2)}}}),[["styles",[".chat-module[data-v-6c9f82e3]{display:grid;height:100%;grid-template-rows:max-content 1fr max-content;overflow:hidden}.chat-module.isNew[data-v-6c9f82e3]{grid-template-rows:max-content 1fr max-content}.chat-module .notice-partial[data-v-6c9f82e3]{position:absolute;align-self:center;justify-self:center;z-index:100}.chat-module .chat-messages-scroll-container[data-v-6c9f82e3]{overflow-y:auto;position:relative;padding-bottom:50px;display:grid}.chat-module .chat-messages-scroll-container .chat-messages[data-v-6c9f82e3]{display:grid;grid-auto-rows:max-content;align-content:end}.chat-module .chat-messages-scroll-container .chat-messages .messages-group[data-v-6c9f82e3]{display:grid;gap:20px;margin:0 20px;grid-auto-rows:max-content;align-content:end}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message[data-v-6c9f82e3]{display:grid;grid-template-rows:auto auto;gap:10px;justify-self:start}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message.system[data-v-6c9f82e3]{width:100%;text-align:center;align-content:center;justify-content:center}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message.system header[data-v-6c9f82e3]{justify-content:center;grid-template-columns:1fr}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message.system header time[data-v-6c9f82e3]{text-align:center;color:var(--scm-color-muted);font-size:.75em}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message.system .message-content p[data-v-6c9f82e3]{background-color:transparent;padding:0;color:var(--scm-color-muted);font-size:.75em;white-space:pre-wrap}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message header[data-v-6c9f82e3]{display:grid;grid-template-columns:max-content max-content;gap:10px;width:100%;font-size:.875em}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message header time[data-v-6c9f82e3]{text-align:right}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message .message-content[data-v-6c9f82e3]{display:grid;gap:4px}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message .message-content p[data-v-6c9f82e3]{padding:10px;border-radius:5px;background-color:var(--scm-color-primary);color:#fff;justify-self:start;white-space:pre-wrap;font-size:1em}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message.isUser[data-v-6c9f82e3]{justify-self:end}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message.isUser p[data-v-6c9f82e3]{justify-self:end;background-color:var(--scm-color-own);color:#fff}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message.isUser header[data-v-6c9f82e3]{grid-template-columns:1fr}.chat-module .typing-indicator[data-v-6c9f82e3]{padding:4px 20px;font-size:.75em;color:var(--scm-color-muted);font-style:italic}.chat-module .date-separator[data-v-6c9f82e3]{text-align:center;padding:20px 0;font-size:.875em;font-weight:700}"]],["__scopeId","data-v-6c9f82e3"]]);const cp=Yo("contacts",()=>{const e=sf(),t=xt([]);return{contacts:Ir(()=>t.value.filter(t=>t.id!==e.user)),users:t,loadUsers:async function(e){const n=new nf("chat",function(){const e=rf();return{authToken:e.authToken,customEndpoints:{api:e.apiUrl,media:e.mediaUrl}}}()),s=await n.contacts.list(e);return t.value=s.data,pf().ingest(s.data),t.value}}}),up={class:"contacts-module"},dp={key:0,class:"controls"},fp={key:1,class:"rights-panel"},pp={class:"who"},hp={class:"rights"},mp=["checked","onChange"],gp=["onClick","onKeydown"],vp={key:0,class:"selected-indicator"},yp=kf(bn({__name:"contacts.module",setup(e){const t=rf(),n=cp(),s=hf(),r=xt([]),o=Ir(()=>s.activeConversation);function a(){const e=s.activeConversation;e&&(r.value=ff(Xd(e.participants)))}$n(()=>{n.loadUsers(),a(),i.value&&h()}),fn(()=>o.value?.participants,()=>a()),fn(()=>o.value?._id,()=>{i.value&&h()});const i=Ir(()=>"contacts-edit"===t.leftTarget),l=Ir(()=>{if(o.value.isNew){const e=s.activeConversation;return Xd(n.contacts).map(t=>({id:t.id,name:t.name,inConversation:!!e&&ff(e.participants).includes(t.id)}))}if("contacts-edit"===t.leftTarget){return Xd(n.contacts).map(e=>({id:e.id,name:e.name,inConversation:r.value.includes(e.id)}))}return n.contacts});function c(e){if("contacts-edit"===t.leftTarget){const t=r.value.indexOf(e.id);-1===t?r.value.push(e.id):r.value.splice(t,1)}else s.toggleParticipant(s.activeConversation?.id,e.id)}function u(){r.value=[],t.showConversations()}async function d(){const e=ff(s.activeConversation.participants),n=e.filter(e=>!r.value.includes(e)),o=r.value.filter(t=>!e.includes(t));await s.executeParticipantsEdit(s.activeConversation?._id,o,n),t.showConversations()}const f=["read","write","rename","participants","block"],p=Ir(()=>o.value?.participantDocs||[]);function h(){const e=o.value?._id;e&&s.loadParticipants(e)}function m(e,t){return e.rights?.includes(t)||!1}function g(e){return"blocked"===e.state}return(e,t)=>{const n=Hn("button-partial"),r=Hn("user-avatar-partial");return er(),rr("article",up,[i.value?(er(),rr("section",dp,[dr(n,{variant:"primary",size:"sm",onClick:d},{default:an(()=>[...t[0]||(t[0]=[pr(" save edits ",-1)])]),_:1}),dr(n,{variant:"secondary",size:"sm","aria-label":"Cancel edits",onClick:u},{default:an(()=>[...t[1]||(t[1]=[pr(" x ",-1)])]),_:1})])):hr("",!0),i.value?(er(),rr("section",fp,[t[3]||(t[3]=ur("h4",null,"participant rights",-1)),ur("ul",null,[(er(!0),rr(Js,null,qn(p.value,e=>(er(),rr("li",{key:e.user,class:"participant-rights"},[ur("span",pp,[dr(r,{"user-id":e.user},null,8,["user-id"]),t[2]||(t[2]=pr()),ur("em",null,"("+K(e.state)+")",1)]),ur("span",hp,[(er(),rr(Js,null,qn(f,t=>ur("label",{key:t,class:"right-toggle"},[ur("input",{type:"checkbox",checked:m(e,t),onChange:n=>function(e,t){const n=new Set(e.rights||[]);n.has(t)?n.delete(t):n.add(t),s.setRights(o.value._id,e.user,[...n])}(e,t)},null,40,mp),pr(" "+K(t),1)])),64))]),dr(n,{size:"sm",variant:g(e)?"secondary":"danger",onClick:t=>async function(e){await s.blockUser(o.value._id,e.user,!g(e)),h()}(e)},{default:an(()=>[pr(K(g(e)?"unblock":"block"),1)]),_:2},1032,["variant","onClick"])]))),128))])])):hr("",!0),ur("ul",null,[(er(!0),rr(Js,null,qn(l.value,e=>(er(),rr("li",{key:e.id,class:V(["single-contact",{selected:e.inConversation}]),role:"button",tabindex:"0",onClick:t=>c(e),onKeydown:t=>function(e,t){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),c(t))}(t,e)},[dr(r,{"user-id":e.id},null,8,["user-id"]),e.inConversation?(er(),rr("span",vp,"✓")):hr("",!0)],42,gp))),128))])])}}}),[["styles",[".contacts-module[data-v-045be51e]{height:100%;overflow:scroll}.contacts-module .controls[data-v-045be51e]{display:grid;grid-template-columns:1fr 1fr}.contacts-module .rights-panel[data-v-045be51e]{padding:10px 20px;border-bottom:1px solid var(--scm-color-surface)}.contacts-module .rights-panel h4[data-v-045be51e]{margin-bottom:10px}.contacts-module .rights-panel .participant-rights[data-v-045be51e]{display:grid;gap:5px;padding:10px 0}.contacts-module .rights-panel .participant-rights .rights[data-v-045be51e]{display:flex;flex-wrap:wrap;gap:10px}.contacts-module .rights-panel .participant-rights .rights .right-toggle[data-v-045be51e]{cursor:pointer;font-size:.8125em}.contacts-module .rights-panel .participant-rights .who em[data-v-045be51e]{color:var(--scm-color-muted)}.contacts-module .single-contact[data-v-045be51e]{padding:20px;cursor:pointer;display:flex;justify-content:space-between;align-items:center}.contacts-module .single-contact[data-v-045be51e]:hover{background-color:var(--scm-color-surface)}.contacts-module .single-contact.selected[data-v-045be51e]{background-color:color-mix(in srgb,var(--scm-color-primary) 15%,transparent)}.contacts-module .single-contact .selected-indicator[data-v-045be51e]{color:var(--scm-color-primary);font-weight:700}"]],["__scopeId","data-v-045be51e"]]),bp=bn({__name:"user-name.partial",props:{userId:{type:String}},setup(e){const t=e,n=pf();return Pn(()=>{n.ensure([t.userId])}),(e,s)=>K(Mt(n).name(t.userId))}}),_p=kf(bn({__name:"participants.partial",props:{participants:{type:Array},removeUser:{type:Boolean},isNew:{type:Boolean},inline:{type:Boolean}},setup(e){const t=sf(),n=e,s=Ir(()=>n.removeUser?n.participants.filter(e=>df(e)!==t.user):n.participants);return(t,n)=>{const r=Hn("user-avatar-partial");return er(),rr("section",{class:V(["participants-partial",{"participants-partial--inline":e.inline}])},[e.isNew&&!s.value.length?(er(),rr(Js,{key:0},[pr(K(t.$t("select contacts")),1)],64)):(er(!0),rr(Js,{key:1},qn(s.value,(t,n)=>(er(),rr(Js,{key:Mt(df)(t)},[e.inline?(er(),or(bp,{key:0,"user-id":Mt(df)(t)},null,8,["user-id"])):(er(),or(r,{key:1,"user-id":Mt(df)(t)},null,8,["user-id"])),n<s.value.length-1?(er(),rr(Js,{key:2},[pr(K(", "))],64)):hr("",!0)],64))),128))],2)}}}),[["styles",[".participants-partial--inline[data-v-ee2866aa]{font-size:inherit}"]],["__scopeId","data-v-ee2866aa"]]),wp={class:"actions"},kp={class:"left"},xp={class:"right"},Cp=kf(bn({__name:"actions.partial",setup(e){const t=rf(),n=hf(),s=sf(),r=Ir(()=>t.hasChat),o=()=>{const e=n.createNew([s.user],s.user);n.activateConversation(e),t.hideLeft()};function a(){"contacts-edit"!==t.leftTarget&&"contacts-new"!==t.leftTarget?t.closeCallback?.():t.showConversations()}return(e,t)=>{const n=Hn("conversations-button-partial"),s=Hn("button-partial");return er(),rr("section",wp,[ur("section",kp,[dr(n),r.value?(er(),or(s,{key:0,icon:"add","aria-label":"New chat",onClick:o})):hr("",!0)]),ur("section",xp,[dr(s,{icon:"close",variant:"ghost",onClick:a})])])}}}),[["styles",[".actions[data-v-e7780b44]{display:grid;grid-template-columns:max-content 1fr max-content;width:100%;grid-column:1/3}.actions .left[data-v-e7780b44]{grid-column:1/2;display:flex}.actions .right[data-v-e7780b44]{grid-column:3/4}"]],["__scopeId","data-v-e7780b44"]]),Sp={class:"background-container"},Tp={key:0},Mp=kf(bn({__name:"chat-header.partial",props:{conversation:{type:String}},setup(e){const t=hf(),n=rf(),s=pf(),r=sf(),o=e,a=xt(),i=xt("dm"),l=xt(!1),c=Ir(()=>t.getConversation(o.conversation)),u=Ir(()=>"support"===c.value?.operationMode);return fn(c,()=>function(){if(!c.value)return;const e=[];1===c.value.participants.length?i.value="select":i.value=c.value.participants.length>2?"group":"dm";if(l.value=c.value.isNew,c.value.name?.length)e.push(c.value.name);else{if(l.value&&"select"!==i.value&&e.push("New"),"group"===i.value&&e.push("Group Chat"),"dm"===i.value){const t=c.value.participants.map(df).find(e=>e!==r.user);t?(e.push("Chat with"),e.push(s.name(t))):e.push("Chat with")}"select"===i.value&&e.push("select participants")}a.value=e.join(" ")}(),{immediate:!0,deep:!0}),(t,s)=>{const r=Hn("name-edit-partial"),o=Hn("participants-partial"),i=Hn("button-partial"),d=Hn("chat-actions-partial");return er(),rr("header",{class:V(["chat-header",{isSupport:u.value}])},[ur("section",Sp,[ur("h3",null,[u.value?hr("",!0):(er(),or(r,{key:0,conversation:e.conversation},{default:an(()=>[pr(K(a.value),1)]),_:1},8,["conversation"])),u.value?(er(),rr(Js,{key:1},[pr(K(t.$t("support")),1)],64)):hr("",!0)]),!u.value&&c.value?(er(),rr("h4",Tp,[dr(o,{participants:c.value.participants,inline:"","remove-user":"","is-new":l.value},null,8,["participants","is-new"]),l.value?hr("",!0):(er(),or(i,{key:0,size:"sm",variant:"ghost",icon:"edit","aria-label":"Toggle edit mode",onClick:s[0]||(s[0]=e=>{"contacts-edit"===n.leftTarget?n.showConversations():n.showEditChat()})}))])):hr("",!0),u.value||l.value?hr("",!0):(er(),or(d,{key:1,conversation:e.conversation},null,8,["conversation"]))])],2)}}}),[["styles",[".chat-header[data-v-dd11b73a]{display:grid;padding:10px 20px}.chat-header .background-container[data-v-dd11b73a]{display:grid;grid-template-columns:5fr 1fr;grid-template-rows:max-content;align-content:start;padding:0 10px;background-color:var(--scm-color-surface);border-radius:5px}.chat-header .background-container h3[data-v-dd11b73a],.chat-header .background-container h4[data-v-dd11b73a]{margin:0;grid-column:1 / 2}.chat-header .background-container h3[data-v-dd11b73a]{grid-row:1;font-family:Open Sans;letter-spacing:-.1px}.chat-header .background-container h4[data-v-dd11b73a]{display:grid;grid-row:2}.chat-header .background-container .chat-actions-partial[data-v-dd11b73a]{justify-self:end;grid-row:1}"]],["__scopeId","data-v-dd11b73a"]]),Op=bn({__name:"name-edit.partial",props:{conversation:{type:String}},setup(e){const t=hf(),n=e,s=xt(""),r=xt(!1),o=xt(),a=xt(null);function i(){const e=t.getConversation(n.conversation);e&&(s.value=e.name||"")}async function l(){r.value=!r.value,a.value=null,r.value?(await Kt(),o.value?.focus()):i()}async function c(){try{await t.rename(n.conversation,s.value),r.value=!1}catch(Df){const t=Df?.response?.data?.message||"Unknown error";console.error("Error renaming conversation:",t),a.value=t}}return fn(()=>n.conversation,()=>i(),{immediate:!0}),(e,t)=>{const n=Hn("button-partial");return er(),rr(Js,null,[r.value?hr("",!0):(er(),rr(Js,{key:0},[Yn(e.$slots,"default"),t[1]||(t[1]=pr()),dr(n,{size:"sm",variant:"ghost",icon:"edit","aria-label":"Edit conversation name",onClick:l})],64)),r.value?(er(),rr(Js,{key:1},[ln(ur("input",{ref_key:"inputRef",ref:o,"onUpdate:modelValue":t[0]||(t[0]=e=>s.value=e),placeholder:"conversation name",type:"text",onKeydown:xo(c,["enter"])},null,544),[[wo,s.value]]),pr(" "+K(a.value)+" ",1),dr(n,{size:"sm",disabled:!s.value?.length,onClick:c},{default:an(()=>[...t[2]||(t[2]=[pr(" Save ",-1)])]),_:1},8,["disabled"]),dr(n,{size:"sm",variant:"secondary","aria-label":"Cancel editing",onClick:l},{default:an(()=>[...t[3]||(t[3]=[pr(" X ",-1)])]),_:1})],64)):hr("",!0)],64)}}}),Lp={class:"notice-partial"},Ep=kf(bn({__name:"notice.partial",props:{type:{type:String}},setup:e=>(e,t)=>(er(),rr("section",Lp,[Yn(e.$slots,"default",{},void 0,!0)]))}),[["styles",[".notice-partial[data-v-2ad9f6c8]{display:grid}"]],["__scopeId","data-v-2ad9f6c8"]]),Rp=bn({inheritAttrs:!1,__name:"system-message.partial",props:{_id:{type:String},id:{type:Number},user:{type:String},action:{type:String},actionData:{type:Object},origin:{type:String}},setup(e){const t=pf(),n=e,s=Ir(()=>{const e={action:`system.${n.action}`,data:{user:t.name(n.user),...n.actionData}};return"participants"===n.action&&(e.data.added.length&&(e.data.added=e.data.added.join(", ")),e.data.removed.length&&(e.data.removed=e.data.removed.join(", ")),n.actionData.added?.length&&n.actionData.removed?.length&&(e.action="system.participants.addedAndRemoved"),n.actionData.added?.length&&!n.actionData.removed?.length&&(e.action="system.participants.added"),!n.actionData.added?.length&&n.actionData.removed?.length&&(e.action="system.participants.removed")),e});return(e,t)=>K(e.$t(s.value.action,s.value.data))}}),Ap={class:"chat-actions-partial"},$p={class:"options-container"},Pp=kf(bn({__name:"chat-actions.partial",props:{conversation:{type:String}},setup(e){const t=e,n=xt(!1),s=xt(null),r=xt();function o(){n.value=!n.value}function a(){r.value=void 0}return(e,i)=>{const l=Hn("button-partial"),c=Hn("overlay-container-partial"),u=Hn("dialog-partial");return er(),rr("section",Ap,[dr(l,{ref_key:"attachTo",ref:s,size:"sm",variant:"ghost","aria-label":e.$t("conversation options"),onClick:o},{default:an(()=>[pr(K(e.$t("options")),1)]),_:1},8,["aria-label"]),n.value?(er(),or(c,{key:0,anchor:s.value,onClose:o},{default:an(()=>[ur("section",$p,[ur("ul",null,[ur("li",null,K(e.$t("mute")),1),ur("li",null,K(e.$t("delete")),1),ur("li",null,[dr(l,{onClick:i[0]||(i[0]=e=>{return t="leave",r.value=t,void(n.value=!1);var t})},{default:an(()=>[pr(K(e.$t("leave")),1)]),_:1})])])])]),_:1},8,["anchor"])):hr("",!0),"leave"===r.value?(er(),or(c,{key:1,anchor:s.value,onClose:a},{default:an(()=>[dr(u,{onAccept:i[1]||(i[1]=e=>async function(){const e=hf();a(),await e.leave(t.conversation),n.value=!1}()),onDecline:a},{default:an(()=>[pr(K(e.$t("leave now")),1)]),_:1})]),_:1},8,["anchor"])):hr("",!0)])}}}),[["styles",[".chat-actions-partial[data-v-871e6a65]{display:grid}.options-container[data-v-871e6a65]{width:max-content;min-width:200px;background-color:var(--scm-color-surface);box-shadow:0 0 5px var(--scm-color-muted)}"]],["__scopeId","data-v-871e6a65"]]),Ip=bn({__name:"overlay-container.partial",props:{background:{type:String},anchor:{type:null},pad:{type:Number},autoPosition:{type:Boolean},align:{type:String},offsetX:{type:Number},offsetY:{type:Number}},emits:["close","mounted"],setup(e,{emit:t}){const n=e,s=t,r=xt(null),o=xt(null),a=Ir(()=>n.background||"mobile"),i=xt({});function l(e){r.value===e.target&&s("close")}function c(){const e=function(e){if(!e)return null;if(e instanceof HTMLElement)return e;const t=e.$el;return t instanceof HTMLElement?t:null}(n.anchor);if(!e||!o.value)return;const t=function(){if(!o.value)return null;const e=o.value.getRootNode();return e instanceof ShadowRoot&&e.host instanceof HTMLElement?e.host.getBoundingClientRect():null}(),s=e.getBoundingClientRect(),r=o.value,a="number"==typeof n.pad?n.pad:8,l=r.offsetWidth,c=r.offsetHeight,u=t?t.width:window.innerWidth,d=t?t.height:window.innerHeight,f=t?t.left:0,p=t?t.top:0,h={left:s.left-f,right:s.right-f,top:s.top-p,bottom:s.bottom-p};let m=h.right-l>=a?h.right-l:h.left+l<=u-a?h.left:h.right>=u-h.left?Math.max(a,h.right-l):Math.min(h.left,Math.max(a,u-a-l)),g=function(){const e=d-h.bottom,t=h.top;if(e>=c+a)return h.bottom;if(t>=c+a)return h.top-c;if(e>=t)return Math.max(a,Math.min(h.bottom,d-a-c));{const e=h.top-c;return Math.max(a,Math.min(e,d-a-c))}}();m+=n.offsetX||0,g+=n.offsetY||0,m<a&&(m=a),m+l>u-a&&(m=Math.max(a,u-a-l)),g<a&&(g=a),g+c>d-a&&(g=Math.max(a,d-a-c)),i.value={position:"fixed",top:`${g}px`,left:`${m}px`}}return Pn(()=>{Kt(()=>{s("mounted"),c(),(n.autoPosition??n.anchor)&&n.anchor&&window.addEventListener("resize",c)})}),Nn(()=>{(n.autoPosition??n.anchor)&&n.anchor&&window.removeEventListener("resize",c)}),fn(()=>n.anchor,()=>{Kt(()=>c())}),(e,t)=>(er(),rr("section",{ref_key:"backgroundRef",ref:r,class:V(["overlay-background",[a.value]]),onKeypress:l,onClick:l},[ur("div",{ref_key:"contentRef",ref:o,class:"content-container",style:U(i.value)},[Yn(e.$slots,"default")],4)],34))}}),Fp=kf(Ip,[["styles",[".overlay-background{position:fixed;top:0;left:0;display:grid;width:100%;height:100%;background-color:#00000080;z-index:1000}.overlay-background.none,.overlay-background.tablet{background-color:transparent}@media only screen and (min-width: 600px) and (max-width: 1023px){.overlay-background.tablet{background-color:#00000080}}.overlay-background.desktop{background-color:transparent}@media only screen and (min-width: 600px) and (max-width: 1023px),only screen and (min-width: 1024px){.overlay-background.desktop{background-color:#00000080}}.overlay-background .content-container{z-index:1100;position:absolute}"]]]),jp=["type","disabled","aria-busy","aria-label"],Np={key:0,class:"scm-btn__spinner","aria-hidden":"true"},Dp={key:2,class:"scm-btn__content"},Up=kf(bn({__name:"button.partial",props:{variant:{type:String},size:{type:String},type:{type:String},loading:{type:Boolean},block:{type:Boolean},disabled:{type:Boolean},ariaLabel:{type:String},icon:{type:String}},emits:["click"],setup(e,{emit:t}){const n=e,s=t,r=Ir(()=>n.type||"button"),o=Ir(()=>n.disabled||n.loading),a=Ir(()=>{const e="scm-btn";return[e,`${e}--${n.variant||"primary"}`,`${e}--${n.size||"md"}`,n.block?`${e}--block`:"",n.loading?`${e}--loading`:"",n.icon?`${e}--icon`:""].filter(Boolean).join(" ")});function i(e){o.value?e.preventDefault():s("click",e)}return(t,s)=>{const l=Hn("icons-partial");return er(),rr("button",{type:r.value,disabled:o.value,"aria-busy":n.loading||void 0,"aria-label":e.ariaLabel,class:V(a.value),onClick:i},[n.loading?(er(),rr("span",Np)):n.icon?(er(),or(l,{key:1,type:n.icon},null,8,["type"])):(er(),rr("span",Dp,[Yn(t.$slots,"default",{},void 0,!0)]))],10,jp)}}}),[["styles",[".scm-btn[data-v-a79bdb66]{--scm-btn-bg: var(--scm-color-primary);--scm-btn-color: white;--scm-btn-radius: 0;--scm-btn-padding-y: 4px;--scm-btn-padding-x: 10px;--scm-btn-font-size: .875em;--scm-btn-height: 40px;--scm-btn-line-height: 42px;--scm-btn-transition: .12s ease-in-out;appearance:none;border:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;background-color:var(--scm-btn-bg);color:var(--scm-btn-color);font:inherit;padding:var(--scm-btn-padding-y) var(--scm-btn-padding-x);font-size:var(--scm-btn-font-size);border-radius:var(--scm-btn-radius);height:var(--scm-btn-height);line-height:var(--scm-btn-line-height);transition:background-color var(--scm-btn-transition),opacity var(--scm-btn-transition),box-shadow var(--scm-btn-transition);text-decoration:none;white-space:nowrap}.scm-btn[data-v-a79bdb66]:hover:not(:disabled){background-color:color-mix(in srgb,var(--scm-btn-bg) 85%,#000)}.scm-btn[data-v-a79bdb66]:active:not(:disabled){background-color:color-mix(in srgb,var(--scm-btn-bg) 70%,#000)}.scm-btn[data-v-a79bdb66]:focus-visible{outline:2px solid var(--scm-color-primary);outline-offset:2px}.scm-btn[data-v-a79bdb66]:disabled{opacity:.55;cursor:not-allowed}.scm-btn--secondary[data-v-a79bdb66]{--scm-btn-bg: var(--scm-color-surface);--scm-btn-color: var(--scm-color-muted)}.scm-btn--ghost[data-v-a79bdb66]{--scm-btn-bg: transparent;--scm-btn-color: var(--scm-color-primary)}.scm-btn--danger[data-v-a79bdb66]{--scm-btn-bg: var(--scm-color-danger);--scm-btn-color: white}.scm-btn--sm[data-v-a79bdb66]{--scm-btn-padding-y: 2px;--scm-btn-padding-x: 8px;--scm-btn-font-size: .75em}.scm-btn--lg[data-v-a79bdb66]{--scm-btn-padding-y: 8px;--scm-btn-padding-x: 16px;--scm-btn-font-size: 1em}.scm-btn--block[data-v-a79bdb66]{width:100%;display:inline-flex}.scm-btn__spinner[data-v-a79bdb66]{width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:scm-spin-a79bdb66 .6s linear infinite}.scm-btn--icon[data-v-a79bdb66]{--scm-btn-padding-x: 8px;width:var(--scm-btn-height)}.scm-btn--icon[data-v-a79bdb66] .icon-partial svg{stroke:currentColor}.scm-btn--icon[data-v-a79bdb66] .icon-partial svg.useFill{fill:currentColor}@keyframes scm-spin-a79bdb66{to{transform:rotate(360deg)}}"]],["__scopeId","data-v-a79bdb66"]]),zp={class:"dialog-partial"},Wp=kf(bn({__name:"dialog.partial",emits:["accept","decline"],setup(e,{emit:t}){const n=t;function s(){n("accept")}function r(){n("decline")}return(e,t)=>{const n=Hn("button-partial");return er(),rr("section",zp,[Yn(e.$slots,"default",{},void 0,!0),dr(n,{onClick:s},{default:an(()=>[...t[0]||(t[0]=[pr(" accept ",-1)])]),_:1}),dr(n,{onClick:r},{default:an(()=>[...t[1]||(t[1]=[pr(" decline ",-1)])]),_:1})])}}}),[["styles",[".dialog-partial[data-v-ae4dfdf7]{padding:20px;background-color:var(--scm-color-surface);box-shadow:0 0 5px var(--scm-color-muted)}"]],["__scopeId","data-v-ae4dfdf7"]]),Hp={class:"chat-input"},Bp={class:"background-container"},Vp=["value","placeholder"],qp=kf(bn({__name:"chat-input.partial",props:{modelValue:{type:String},disabled:{type:Boolean},placeholder:{type:String}},emits:["update:modelValue","submit","typing"],setup(e,{emit:t}){const n=e,s=t,r=xt(null);function o(){const e=r.value;e&&(e.style.height="auto",e.style.height=`${e.scrollHeight}px`)}function a(e){const t=e.target;s("update:modelValue",t.value),s("typing"),Kt(o)}function i(e){"Enter"!==e.key||e.shiftKey||n.disabled||(e.preventDefault(),s("submit"))}return fn(()=>n.modelValue,()=>Kt(o)),(t,n)=>{const o=Hn("button-partial");return er(),rr("div",Hp,[ur("section",Bp,[ur("textarea",{ref_key:"textareaRef",ref:r,value:e.modelValue,placeholder:e.placeholder,rows:"1",onInput:a,onKeydown:i},null,40,Vp),dr(o,{icon:"send",variant:"ghost",disabled:e.disabled,"aria-label":"Send message",onClick:n[0]||(n[0]=e=>s("submit"))},null,8,["disabled"])])])}}}),[["styles",[".chat-input[data-v-b6ae32fa]{padding:20px}.chat-input .background-container[data-v-b6ae32fa]{border-radius:5px;display:grid;grid-template-columns:1fr max-content;grid-template-rows:max-content;background-color:var(--scm-color-surface)}.chat-input .background-container textarea[data-v-b6ae32fa]{border:0;padding:10px;background-color:var(--scm-color-surface);outline:none;font-size:1em}.chat-input .background-container button[data-v-b6ae32fa]{align-self:end}"]],["__scopeId","data-v-b6ae32fa"]]),Yp={class:"user-avatar"},Jp=kf(bn({__name:"user-avatar.partial",props:{userId:{type:String}},setup(e){const t=e,n=pf(),s=Ir(()=>n.name(t.userId)),r=Ir(()=>{const e=s.value.split(/\s+/).filter(Boolean);return e.length>=2?(e[0][0]+e[1][0]).toUpperCase():(e[0]?.[0]||"?").toUpperCase()}),o=Ir(()=>{let e=0;for(let n=0;n<t.userId.length;n++)e=t.userId.charCodeAt(n)+((e<<5)-e);return Math.abs(e)%360});return Pn(()=>{n.ensure([t.userId])}),(t,n)=>(er(),rr("span",Yp,[ur("span",{class:"user-avatar__circle",style:U({backgroundColor:`hsl(${o.value}, 45%, 60%)`})},K(r.value),5),dr(bp,{"user-id":e.userId},null,8,["user-id"])]))}}),[["styles",[".user-avatar[data-v-1fc1d2df]{display:inline-flex;align-items:center;gap:6px}.user-avatar__circle[data-v-1fc1d2df]{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;font-size:.625em;font-weight:600;color:#fff;flex-shrink:0;line-height:1}"]],["__scopeId","data-v-1fc1d2df"]]),Zp={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Kp={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Gp={key:2,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},Xp={key:3,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Qp={key:4,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},eh={key:5,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},th={key:6,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},nh={key:7,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},sh={key:8,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},rh={key:9,class:"useFill",viewBox:"0 0 24 24",style:{isolation:"isolate"},xmlns:"http://www.w3.org/2000/svg"},oh={key:10,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 useStroke",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},ah={key:11,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 useStroke",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},ih={key:12,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},lh={key:13,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},ch={key:14,class:"upload",viewBox:"0 0 24 24",fill:"none","stroke-width":"2",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"},uh={key:15,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},dh={key:16,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},fh={key:17,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},ph={key:18,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},hh={key:19,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},mh={key:20,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},gh={key:21,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},vh={key:22,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},yh={key:23,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},bh={key:24,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},_h={key:25,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},wh={key:26,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 useStroke",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},kh={key:27,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},xh={key:28,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},Ch={key:29,xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Sh={key:30,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},Th={key:31,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},Mh={key:32,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},Oh={key:33,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},Lh={key:34,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},Eh={key:35,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},Rh={key:36,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},Ah={key:37,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},$h={key:38,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},Ph={key:39,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},Ih={key:40,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",class:"w-6 h-6"},Fh={key:41,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},jh={key:42,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},Nh={key:43,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},Dh={key:44,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},Uh={key:45,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},zh={key:46,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},Wh={key:47,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},Hh={key:48,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},Bh={key:49,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},Vh={key:50,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},qh={key:51,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},Yh={key:52,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},Jh=bn({__name:"icons.partial",props:{type:{type:String},colorScheme:{type:String},size:{type:String},rotate:{type:Number},animate:{type:Boolean}},setup(e){const t=e,n=Ir(()=>t.rotate?`rotate${t.rotate}`:null);return(t,s)=>(er(),rr("span",{class:V(["icon-partial",[e.type,e.colorScheme||"colorScheme1",e.size||"medium",n.value,{animate:e.animate}]])},["arrow-right"===e.type?(er(),rr("svg",Zp,[...s[0]||(s[0]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 5l7 7-7 7"},null,-1)])])):hr("",!0),"arrow-left"===e.type?(er(),rr("svg",Kp,[...s[1]||(s[1]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 19l-7-7 7-7"},null,-1)])])):hr("",!0),"arrow-down"===e.type?(er(),rr("svg",Gp,[...s[2]||(s[2]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"},null,-1)])])):hr("",!0),"notifications"===e.type?(er(),rr("svg",Xp,[...s[3]||(s[3]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"},null,-1)])])):hr("",!0),"arrow-right-long"===e.type?(er(),rr("svg",Qp,[...s[4]||(s[4]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.25 8.25 21 12m0 0-3.75 3.75M21 12H3"},null,-1)])])):hr("",!0),"chevron-down"===e.type?(er(),rr("svg",eh,[...s[5]||(s[5]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"},null,-1)])])):hr("",!0),"chevron-up"===e.type?(er(),rr("svg",th,[...s[6]||(s[6]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 15.75 7.5-7.5 7.5 7.5"},null,-1)])])):hr("",!0),"chevron-right"===e.type?(er(),rr("svg",nh,[...s[7]||(s[7]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"},null,-1)])])):hr("",!0),"chevron-left"===e.type?(er(),rr("svg",sh,[...s[8]||(s[8]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"},null,-1)])])):hr("",!0),"editor-add"===e.type?(er(),rr("svg",rh,[...s[9]||(s[9]=[ur("g",{width:"24",height:"24",transform:"matrix(0.92, 0, 0, 0.92, 0.480769, 0.352584)"},[ur("path",{d:" M 25 12.498 C 24.999 12.245 24.868 12.01 24.652 11.877 L 22.111 10.31 L 24.655 8.727 C 24.869 8.594 25 8.359 25 8.107 C 25 7.854 24.871 7.619 24.656 7.485 L 12.889 0.112 C 12.651 -0.037 12.349 -0.037 12.111 0.112 L 0.344 7.485 C 0.13 7.619 0 7.854 0 8.107 C 0 8.359 0.131 8.594 0.345 8.727 L 2.871 10.299 L 0.344 11.879 C 0.13 12.013 0 12.248 0 12.501 C 0 12.754 0.131 12.988 0.345 13.122 L 2.871 14.694 L 0.344 16.273 C 0.13 16.407 0 16.642 0 16.894 C 0 17.147 0.13 17.381 0.344 17.515 L 12.111 24.888 C 12.23 24.963 12.365 25 12.5 25 C 12.635 25 12.77 24.963 12.889 24.888 L 24.656 17.515 C 24.871 17.381 25.001 17.145 25 16.892 C 24.999 16.639 24.867 16.404 24.652 16.271 L 22.111 14.705 L 24.655 13.122 C 24.87 12.988 25.001 12.752 25 12.498 Z M 2.115 8.103 L 12.5 1.597 L 22.885 8.103 C 22.785 8.166 12.798 14.382 12.5 14.567 L 2.115 8.103 Z M 22.88 16.9 L 12.5 23.403 L 2.113 16.895 L 4.256 15.556 L 12.113 20.446 C 12.231 20.52 12.366 20.557 12.5 20.557 C 12.634 20.557 12.769 20.52 12.887 20.446 L 20.722 15.569 L 22.88 16.9 Z M 12.5 18.962 L 2.116 12.499 L 4.256 11.161 L 12.113 16.052 C 12.231 16.125 12.366 16.162 12.5 16.162 C 12.634 16.162 12.769 16.125 12.887 16.052 L 20.722 11.175 L 22.877 12.503 C 22.817 12.54 12.775 18.79 12.5 18.962 Z "}),ur("path",{d:"M 12.099 3.875 L 12.901 3.875 C 13.025 3.875 13.125 3.975 13.125 4.099 L 13.125 10.813 C 13.125 10.936 13.025 11.036 12.901 11.036 L 12.099 11.036 C 11.975 11.036 11.875 10.936 11.875 10.813 L 11.875 4.099 C 11.875 3.975 11.975 3.875 12.099 3.875 Z"}),ur("path",{d:"M 8.919 7.857 L 8.919 7.054 C 8.919 6.931 9.019 6.831 9.143 6.831 L 15.857 6.831 C 15.981 6.831 16.081 6.931 16.081 7.054 L 16.081 7.857 C 16.081 7.981 15.981 8.081 15.857 8.081 L 9.143 8.081 C 9.019 8.081 8.919 7.981 8.919 7.857 Z"})],-1)])])):hr("",!0),"settings"===e.type?(er(),rr("svg",oh,[...s[10]||(s[10]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"},null,-1),ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"},null,-1)])])):hr("",!0),"logout"===e.type?(er(),rr("svg",ah,[...s[11]||(s[11]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"},null,-1)])])):hr("",!0),"logo"===e.type?(er(),rr("svg",ih,[...s[12]||(s[12]=[ur("path",{style:{fill:"#3f2d56"},d:"M25,25V475H475V25ZM228.44,317.1q-17.94,13.42-47,13.42-39.6,0-66.66-21.78l18.7-26.18q20.46,16.06,47.74,16.06,13.63,0,21.67-4.62t8-12.54q0-7.47-7.48-11.66t-23.76-5.94q-31.47-3.51-46.09-14.74T119,217q0-21.33,17.49-34.43t45.65-13.09q33.87,0,58.3,17.6l-16.94,25.3a68.24,68.24,0,0,0-39.82-12.54q-13.42,0-21.45,4.4t-8,11.88q0,7.26,6.93,11.22t23.21,5.94q62,7.26,62,48.4Q246.37,303.69,228.44,317.1ZM385.19,204.46H338.11V327H302V204.46H255.17V173h130Z"},null,-1)])])):hr("",!0),"warning"===e.type?(er(),rr("svg",lh,[...s[13]||(s[13]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"},null,-1)])])):hr("",!0),"upload"===e.type?(er(),rr("svg",ch,[...s[14]||(s[14]=[ur("path",{class:"arrow-up","stroke-linecap":"round","stroke-linejoin":"round",d:"M 7.5 7.5 L 12 3 M 12 3 L 16.5 7.5 M 12 3 L 12 16.5"},null,-1),ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M 3.064 16.521 L 3.064 18.771 C 3.064 20.013 4.072 21.021 5.314 21.021 L 18.814 21.021 C 20.057 21.021 21.064 20.013 21.064 18.771 L 21.064 16.521"},null,-1)])])):hr("",!0),"download"===e.type?(er(),rr("svg",uh,[...s[15]||(s[15]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3"},null,-1)])])):hr("",!0),"checked"===e.type?(er(),rr("svg",dh,[...s[16]||(s[16]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 13l4 4L19 7"},null,-1)])])):hr("",!0),"link"===e.type?(er(),rr("svg",fh,[...s[17]||(s[17]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"},null,-1)])])):hr("",!0),"folder"===e.type?(er(),rr("svg",ph,[...s[18]||(s[18]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1)])])):hr("",!0),"close"===e.type?(er(),rr("svg",hh,[...s[19]||(s[19]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"},null,-1)])])):hr("",!0),"add"===e.type?(er(),rr("svg",mh,[...s[20]||(s[20]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4v16m8-8H4"},null,-1)])])):hr("",!0),"info"===e.type?(er(),rr("svg",gh,[...s[21]||(s[21]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)])])):hr("",!0),"history"===e.type?(er(),rr("svg",vh,[...s[22]||(s[22]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)])])):hr("",!0),"partner"===e.type?(er(),rr("svg",yh,[...s[23]||(s[23]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z"},null,-1)])])):hr("",!0),"file"===e.type?(er(),rr("svg",bh,[...s[24]||(s[24]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"},null,-1)])])):hr("",!0),"publish"===e.type?(er(),rr("svg",_h,[...s[25]||(s[25]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.684 13.342C8.886 12.938 9 12.482 9 12c0-.482-.114-.938-.316-1.342m0 2.684a3 3 0 110-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 105.367-2.684 3 3 0 00-5.367 2.684zm0 9.316a3 3 0 105.368 2.684 3 3 0 00-5.368-2.684z"},null,-1)])])):hr("",!0),"menu"===e.type?(er(),rr("svg",wh,[...s[26]||(s[26]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 6h16M4 12h8m-8 6h16"},null,-1)])])):hr("",!0),"endpoints"===e.type?(er(),rr("svg",kh,[...s[27]||(s[27]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"},null,-1)])])):hr("",!0),"arrow-up"===e.type?(er(),rr("svg",xh,[...s[28]||(s[28]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 15.75l7.5-7.5 7.5 7.5"},null,-1)])])):hr("",!0),"lightbulb"===e.type?(er(),rr("svg",Ch,[...s[29]||(s[29]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"},null,-1)])])):hr("",!0),"computer"===e.type?(er(),rr("svg",Sh,[...s[30]||(s[30]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 17.25v1.007a3 3 0 01-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0115 18.257V17.25m6-12V15a2.25 2.25 0 01-2.25 2.25H5.25A2.25 2.25 0 013 15V5.25m18 0A2.25 2.25 0 0018.75 3H5.25A2.25 2.25 0 003 5.25m18 0V12a2.25 2.25 0 01-2.25 2.25H5.25A2.25 2.25 0 013 12V5.25"},null,-1)])])):hr("",!0),"tags"===e.type?(er(),rr("svg",Th,[...s[31]||(s[31]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.568 3H5.25A2.25 2.25 0 003 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.095 18.095 0 005.223-5.223c.542-.827.369-1.908-.33-2.607L11.16 3.66A2.25 2.25 0 009.568 3z"},null,-1),ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 6h.008v.008H6V6z"},null,-1)])])):hr("",!0),"home"===e.type?(er(),rr("svg",Mh,[...s[32]||(s[32]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"},null,-1)])])):hr("",!0),"server"===e.type?(er(),rr("svg",Oh,[...s[33]||(s[33]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 14.25h13.5m-13.5 0a3 3 0 01-3-3m3 3a3 3 0 100 6h13.5a3 3 0 100-6m-16.5-3a3 3 0 013-3h13.5a3 3 0 013 3m-19.5 0a4.5 4.5 0 01.9-2.7L5.737 5.1a3.375 3.375 0 012.7-1.35h7.126c1.062 0 2.062.5 2.7 1.35l2.587 3.45a4.5 4.5 0 01.9 2.7m0 0a3 3 0 01-3 3m0 3h.008v.008h-.008v-.008zm0-6h.008v.008h-.008v-.008zm-3 6h.008v.008h-.008v-.008zm0-6h.008v.008h-.008v-.008z"},null,-1)])])):hr("",!0),"play"===e.type?(er(),rr("svg",Lh,[...s[34]||(s[34]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.348a1.125 1.125 0 010 1.971l-11.54 6.347a1.125 1.125 0 01-1.667-.985V5.653z"},null,-1)])])):hr("",!0),"pause"===e.type?(er(),rr("svg",Eh,[...s[35]||(s[35]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"},null,-1)])])):hr("",!0),"stop"===e.type?(er(),rr("svg",Rh,[...s[36]||(s[36]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 7.5A2.25 2.25 0 017.5 5.25h9a2.25 2.25 0 012.25 2.25v9a2.25 2.25 0 01-2.25 2.25h-9a2.25 2.25 0 01-2.25-2.25v-9z"},null,-1)])])):hr("",!0),"replay"===e.type?(er(),rr("svg",Ah,[...s[37]||(s[37]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"},null,-1)])])):hr("",!0),"statistics"===e.type?(er(),rr("svg",$h,[...s[38]||(s[38]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 013 19.875v-6.75zM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 01-1.125-1.125V8.625zM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 01-1.125-1.125V4.125z"},null,-1)])])):hr("",!0),"edit"===e.type?(er(),rr("svg",Ph,[...s[39]||(s[39]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"},null,-1)])])):hr("",!0),"clock"===e.type?(er(),rr("svg",Ih,[...s[40]||(s[40]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)])])):hr("",!0),"filter"===e.type?(er(),rr("svg",Fh,[...s[41]||(s[41]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 01-.659 1.591l-5.432 5.432a2.25 2.25 0 00-.659 1.591v2.927a2.25 2.25 0 01-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 00-.659-1.591L3.659 7.409A2.25 2.25 0 013 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0112 3z"},null,-1)])])):hr("",!0),"star"===e.type?(er(),rr("svg",jh,[...s[42]||(s[42]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z"},null,-1)])])):hr("",!0),"hide"===e.type?(er(),rr("svg",Nh,[...s[43]||(s[43]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88"},null,-1)])])):hr("",!0),"test"===e.type?(er(),rr("svg",Dh,[...s[44]||(s[44]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.75 3.104v5.714a2.25 2.25 0 0 1-.659 1.591L5 14.5M9.75 3.104c-.251.023-.501.05-.75.082m.75-.082a24.301 24.301 0 0 1 4.5 0m0 0v5.714c0 .597.237 1.17.659 1.591L19.8 15.3M14.25 3.104c.251.023.501.05.75.082M19.8 15.3l-1.57.393A9.065 9.065 0 0 1 12 15a9.065 9.065 0 0 0-6.23-.693L5 14.5m14.8.8 1.402 1.402c1.232 1.232.65 3.318-1.067 3.611A48.309 48.309 0 0 1 12 21c-2.773 0-5.491-.235-8.135-.687-1.718-.293-2.3-2.379-1.067-3.61L5 14.5"},null,-1)])])):hr("",!0),"clipboard"===e.type?(er(),rr("svg",Uh,[...s[45]||(s[45]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"},null,-1)])])):hr("",!0),"structure"===e.type?(er(),rr("svg",zh,[...s[46]||(s[46]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 7.5-9-5.25L3 7.5m18 0-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"},null,-1)])])):hr("",!0),"qrcode"===e.type?(er(),rr("svg",Wh,[...s[47]||(s[47]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 3.75 9.375v-4.5ZM3.75 14.625c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5a1.125 1.125 0 0 1-1.125-1.125v-4.5ZM13.5 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 13.5 9.375v-4.5Z"},null,-1),ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.75 6.75h.75v.75h-.75v-.75ZM6.75 16.5h.75v.75h-.75v-.75ZM16.5 6.75h.75v.75h-.75v-.75ZM13.5 13.5h.75v.75h-.75v-.75ZM13.5 19.5h.75v.75h-.75v-.75ZM19.5 13.5h.75v.75h-.75v-.75ZM19.5 19.5h.75v.75h-.75v-.75ZM16.5 16.5h.75v.75h-.75v-.75Z"},null,-1)])])):hr("",!0),"magic"===e.type?(er(),rr("svg",Hh,[...s[48]||(s[48]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"},null,-1)])])):hr("",!0),"fastforward"===e.type?(er(),rr("svg",Bh,[...s[49]||(s[49]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 8.689c0-.864.933-1.406 1.683-.977l7.108 4.061a1.125 1.125 0 0 1 0 1.954l-7.108 4.061A1.125 1.125 0 0 1 3 16.811V8.69ZM12.75 8.689c0-.864.933-1.406 1.683-.977l7.108 4.061a1.125 1.125 0 0 1 0 1.954l-7.108 4.061a1.125 1.125 0 0 1-1.683-.977V8.69Z"},null,-1)])])):hr("",!0),"archive"===e.type?(er(),rr("svg",Vh,[...s[50]||(s[50]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z"},null,-1)])])):hr("",!0),"send"===e.type?(er(),rr("svg",qh,[...s[51]||(s[51]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5"},null,-1)])])):hr("",!0),"chat"===e.type?(er(),rr("svg",Yh,[...s[52]||(s[52]=[ur("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.625 9.75a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 0 1 .778-.332 48.294 48.294 0 0 0 5.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"},null,-1)])])):hr("",!0)],2))}}),Zh={class:"connection-status"},Kh={class:"status"},Gh={key:0,class:"conversations-button-partial"},Xh={key:0,class:"unread"};function Qh(e,t){var n;e.getUsers&&e.getUsers,e.getToken&&(n=e.getToken,Tf=n);const s=rf(t);if(s.features=function(e){if(e.features?.length)return[...new Set(e.features)];switch(e.mode){case"support":return["support"];case"both":return["chat","support"];default:return["chat"]}}(e),s.supportParticipants=e.support?.participants||[],e.wsUrl&&(s.wsUrl=e.wsUrl),e.apiUrl&&(s.apiUrl=e.apiUrl),e.mediaUrl&&(s.mediaUrl=e.mediaUrl),e.token&&(s.authToken=e.token),e.unread&&(s.unreadCallback=e.unread),e.close&&(s.closeCallback=e.close),e.userId&&(sf(t).user=e.userId),e.user){const n=e.user.id||e.userId;n&&pf(t).setOne({...e.user,id:n})}}const em=[{name:"chat",component:lp},{name:"conversations",component:xf},{name:"chats",component:Cf},{name:"contacts",component:yp}],tm=[{name:"participants",component:_p},{name:"actions",component:Cp},{name:"chat-header",component:Mp},{name:"chat-actions",component:Pp},{name:"name-edit",component:Op},{name:"notice",component:Ep},{name:"system-message",component:Rp},{name:"overlay-container",component:Fp},{name:"button",component:Up},{name:"dialog",component:Wp},{name:"chat-input",component:qp},{name:"user-avatar",component:Jp},{name:"user-name",component:bp},{name:"icons",component:kf(Jh,[["styles",[".icon-partial[data-v-f8bafd55]{display:grid;align-self:center;justify-content:center}.icon-partial svg[data-v-f8bafd55]{align-self:center;justify-self:center;stroke-width:1.5}.icon-partial.rotate90 svg[data-v-f8bafd55]{transform:rotate(90deg)}.icon-partial.rotate180 svg[data-v-f8bafd55]{transform:rotate(180deg)}.icon-partial.animate svg[data-v-f8bafd55]{transition:transform .2s ease,fill .2s ease,stroke .2s ease}@keyframes upAndDown-f8bafd55{0%{transform:translateY(0)}to{transform:translateY(-20px)}}.icon-partial.animate .upload .arrow-up[data-v-f8bafd55]{animation:upAndDown-f8bafd55 1s infinite ease-in-out}.icon-partial.big[data-v-f8bafd55]{width:30px;height:30px}.icon-partial.big svg[data-v-f8bafd55]{width:30px;height:30px}.icon-partial.larger[data-v-f8bafd55]{width:26px;height:26px}.icon-partial.larger svg[data-v-f8bafd55]{width:26px;height:26px}.icon-partial.large[data-v-f8bafd55]{width:24px;height:24px}.icon-partial.large svg[data-v-f8bafd55]{width:24px;height:24px}.icon-partial.xl[data-v-f8bafd55]{width:60px;height:60px}.icon-partial.xl svg[data-v-f8bafd55]{width:60px;height:60px}.icon-partial.medium[data-v-f8bafd55]{width:20px;height:20px}.icon-partial.medium svg[data-v-f8bafd55]{width:20px;height:20px}.icon-partial.small[data-v-f8bafd55]{width:16px;height:16px}.icon-partial.small svg[data-v-f8bafd55]{width:16px;height:16px}.icon-partial.smaller[data-v-f8bafd55]{width:10px;height:10px}.icon-partial.smaller svg[data-v-f8bafd55]{width:10px;height:10px}.icon-partial.colorScheme1 svg[data-v-f8bafd55]{stroke:var(--scm-icon-color-1, #333)}.icon-partial.colorScheme1 svg.useFill[data-v-f8bafd55]{fill:var(--scm-icon-color-1, #333);stroke-width:0}.icon-partial.colorScheme2 svg[data-v-f8bafd55]{stroke:var(--scm-icon-color-2, #666)}.icon-partial.colorScheme2 svg.useFill[data-v-f8bafd55]{fill:var(--scm-icon-color-2, #666);stroke-width:0}.icon-partial.colorScheme4 svg[data-v-f8bafd55]{stroke:var(--scm-icon-color-1, #333)}.icon-partial.colorScheme4 svg.useFill[data-v-f8bafd55]{fill:var(--scm-icon-color-1, #333);stroke-width:0}.icon-partial.white svg[data-v-f8bafd55]{stroke:#fff}.icon-partial.white svg.useFill[data-v-f8bafd55]{fill:#fff;stroke-width:0}.icon-partial.grey svg[data-v-f8bafd55]{stroke:var(--scm-color-muted, #999)}.icon-partial.grey svg.useFill[data-v-f8bafd55]{fill:var(--scm-color-muted, #999);stroke-width:0}.icon-partial.aiColor svg[data-v-f8bafd55]{stroke:var(--scm-icon-ai-color, #8b5cf6)}.icon-partial.aiColor svg.useFill[data-v-f8bafd55]{fill:var(--scm-icon-ai-color, #8b5cf6);stroke-width:0}.icon-partial.red svg[data-v-f8bafd55]{stroke:var(--scm-color-danger, #e53935)}.icon-partial.red svg.useFill[data-v-f8bafd55]{fill:var(--scm-color-danger, #e53935);stroke-width:0}.icon-partial.green svg[data-v-f8bafd55]{stroke:#43a047}.icon-partial.green svg.useFill[data-v-f8bafd55]{fill:#43a047;stroke-width:0}"]],["__scopeId","data-v-f8bafd55"]])},{name:"connection-status",component:kf(bn({__name:"connection-status.partial",setup(e){const t=rf(),n=Ir(()=>t.state);return(e,t)=>(er(),rr("section",Zh,[ur("div",Kh,K(e.$t(`status.${n.value}`)),1)]))}}),[["styles",[".connection-status[data-v-81fdb902]{background-color:var(--scm-color-danger);color:#fff;padding:0 10px;font-size:.7rem;align-content:center}"]],["__scopeId","data-v-81fdb902"]])},{name:"conversations-button",component:kf(bn({__name:"conversations-button.partial",setup(e){const t=rf(),n=hf(),s=Ir(()=>t.hasChat||n.conversations.length>1),r=Ir(()=>n.totalUnreadCount);function o(){t.showConversations()}return(e,t)=>{const n=Hn("button-partial");return s.value?(er(),rr("section",Gh,[dr(n,{icon:"chat",variant:"secondary","aria-label":"Conversations",onClick:o}),r.value?(er(),rr("span",Xh,K(r.value),1)):hr("",!0)])):hr("",!0)}}}),[["styles",[".conversations-button-partial[data-v-864b2cbd]{position:relative;display:inline-flex}.conversations-button-partial .unread[data-v-864b2cbd]{position:absolute;top:2px;right:2px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background-color:var(--scm-color-own);color:#fff;font-size:.625em;line-height:16px;text-align:center;pointer-events:none}"]],["__scopeId","data-v-864b2cbd"]])}];const nm=[{name:"mobile",query:"(max-width: 599px)"},{name:"tablet",query:"(min-width: 600px) and (max-width: 1023px)"},{name:"desktop",query:"(min-width: 1024px)"}];const sm=new class{timeout;debounceTime=50;resizedEvent=new Event("resized");mediaEvent=new Event("media");media=xt("mobile");resized=xt(0);widthChanged=xt(0);realHeight=xt(0);realWidth=xt(0);triggerStart=xt(!0);installed=!1;mediaQueries=[];widthTarget=null;resizeObserver;onResize=()=>this.debounce();get safeWindow(){return"undefined"==typeof window?null:window}init(e){!this.installed&&this.safeWindow&&(this.installed=!0,e&&"undefined"!=typeof document&&(this.widthTarget=document.querySelector(e),this.widthTarget||ef.plugins(`resize: selector "${e}" matched no element, falling back to window width`)),this.realHeight.value=this.safeWindow.innerHeight,this.realWidth.value=this.measureWidth(),this.resized.value=this.now(),this.mediaQueries=nm.map(e=>({breakpoint:e,mql:this.safeWindow.matchMedia(e.query)})),this.getMediaQuery(),this.safeWindow.addEventListener("resize",this.onResize),this.widthTarget&&"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver(()=>this.debounce()),this.resizeObserver.observe(this.widthTarget)))}destroy(){clearTimeout(this.timeout),this.safeWindow?.removeEventListener("resize",this.onResize),this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.widthTarget=null,this.installed=!1}measureWidth(){return this.widthTarget?this.widthTarget.getBoundingClientRect().width:this.safeWindow?.innerWidth??0}now(){return this.safeWindow?this.safeWindow.performance.now():0}trigger(e){if(this.getMediaQuery(),this.safeWindow){const e=this.measureWidth();this.realHeight.value=this.safeWindow.innerHeight,this.realWidth.value!==e&&(this.realWidth.value=e,this.widthChanged.value=this.now())}this.resized.value=this.now(),this.safeWindow?.dispatchEvent(this.resizedEvent),e||(this.triggerStart.value=!0)}getMediaQuery(){const e=this.mediaQueries.find(({mql:e})=>e.matches);e&&this.media.value!==e.breakpoint.name&&(this.media.value=e.breakpoint.name,this.safeWindow?.dispatchEvent(this.mediaEvent))}debounce(){this.triggerStart.value&&(this.triggerStart.value=!1,this.trigger(!0)),clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.trigger()},this.debounceTime)}},rm={install:(e,t)=>{sm.init(t?.selector),ef.plugins("resize installed")}};function om(){return{realHeight:sm.realHeight,realWidth:sm.realWidth,media:sm.media,resized:sm.resized,widthChanged:sm.widthChanged,plugin:sm}}const am={class:"header"},im={key:0,class:"main-left-target"},lm=bn({__name:"App",props:{config:{type:Object}},setup(e){const t=e,n=rf(),s=sf(),r=hf();Ef();const o=om().realWidth,a=Ir(()=>n.viewMode),i=Ir(()=>n.leftTarget);fn(om().widthChanged,()=>{console.log("width changed",o.value,o.value<=650),o.value<=650&&n.setViewMode("compact")},{immediate:!0}),fn([()=>r.totalUnreadCount,()=>r.totalUnreadConversations],()=>{n.unreadCallback?.({unreadMessages:r.totalUnreadCount,unreadConversations:r.totalUnreadConversations})});let l=!1,c=!1;return fn(()=>t.config,async function(){if(!l&&!c&&t.config){c=!0;try{console.log(104,t.config),t.config&&Qh(t.config);const e=await Mf()??t.config?.token??n.authToken;e&&(n.authToken=e);const o=function(e){if(e)try{return JSON.parse(atob(e.split(".")[1]||"")).sub}catch{return}}(e)??t.config?.userId??s.user;if(!o)return void(t.config&&console.warn("[studio-chat] config has no usable identity (getToken/token sub or userId)"));l=!0,s.user=o,t.config?.user&&pf().setOne({...t.config.user,id:o}),Lf.start({url:n.wsUrl,fallbackToken:()=>n.authToken??o,ownUserId:()=>s.user,onMessage:Af,onStateChange:e=>{n.state="ready"===e?"connected":"disconnected"},onSessionRestored:()=>{r.handleReconnect().catch(()=>{})}}),n.isSupportOnly&&async function(){try{await r.getAllConversations()}catch(e){console.warn("[studio-chat] could not load conversations",e)}r.startSupport(),n.hideLeft()}()}finally{c=!1}}},{immediate:!0}),(e,t)=>{const s=Hn("actions-partial"),r=Hn("connection-status-partial"),o=Hn("contacts-module");return er(),rr("div",{class:V(["studio-chat-root",[a.value,i.value,Mt(n).state]])},[ur("section",am,[dr(s),"disconnected"===Mt(n).state?(er(),or(r,{key:0})):hr("",!0)]),Mt(n).leftTarget?(er(),rr("section",im,["conversations"===Mt(n).leftTarget?(er(),or(xf,{key:0})):hr("",!0),"contacts-new"===Mt(n).leftTarget||"contacts-edit"===Mt(n).leftTarget?(er(),or(o,{key:1})):hr("",!0)])):hr("",!0),"chat"===Mt(n).mainTarget?(er(),or(Cf,{key:1})):hr("",!0),t[0]||(t[0]=ur("div",{class:"util"},null,-1))],2)}}}),cm=kf(lm,[["styles",["[data-v-4f474ef7]:host{display:block;height:100%}[data-v-4f474ef7]:host,.studio-chat-root[data-v-4f474ef7]{--scm-font-size: 16px;--scm-color-primary: #008cff;--scm-color-own: #ff009d;--scm-color-surface: #f6f6f6;--scm-color-muted: #757474;--scm-color-danger: #e53935;font-family:Open Sans,sans-serif;font-size:var(--scm-font-size)}#app[data-v-4f474ef7]{height:100vh}.studio-chat-root[data-v-4f474ef7]{display:grid;grid-template-rows:40px 1fr;grid-template-columns:minmax(200px,400px) 1fr;height:100%}.studio-chat-root .header[data-v-4f474ef7]{display:grid;background-color:var(--scm-color-surface);grid-template-columns:max-content 1fr;align-content:center}.studio-chat-root.disconnected[data-v-4f474ef7]{grid-template-rows:60px 1fr}.studio-chat-root.disconnected .header[data-v-4f474ef7]{grid-template-rows:40px 20px}.studio-chat-root.disconnected .header .connection-status[data-v-4f474ef7]{grid-column:1/3}.studio-chat-root .conversations-module[data-v-4f474ef7]{grid-column:1}.studio-chat-root .chats-module[data-v-4f474ef7]{grid-column:2}.studio-chat-root.support-no-sidebar[data-v-4f474ef7]{grid-template-columns:1fr}.studio-chat-root.support-no-sidebar .chats-module[data-v-4f474ef7]{grid-column:1}.studio-chat-root.compact[data-v-4f474ef7]{grid-template-columns:1fr}.studio-chat-root.compact .chats-module[data-v-4f474ef7]{grid-column:1}.studio-chat-root.compact .main-left-target[data-v-4f474ef7]{width:100%;position:absolute;top:40px;left:0;transform:translate(-100%);transition:transform .3s ease-in-out;background-color:#fff;z-index:100;height:calc(100% - 40px)}.studio-chat-root.compact.conversations .main-left-target[data-v-4f474ef7],.studio-chat-root.compact.contacts-new .main-left-target[data-v-4f474ef7],.studio-chat-root.compact.contacts-edit .main-left-target[data-v-4f474ef7]{transform:translate(0)}.studio-chat-root.compact.disconnected .main-left-target[data-v-4f474ef7]{top:60px;height:calc(100% - 60px)}[data-v-4f474ef7],[data-v-4f474ef7]:before,[data-v-4f474ef7]:after{box-sizing:border-box;margin:0;padding:0;background-repeat:no-repeat}[data-v-4f474ef7]{min-width:0}img[data-v-4f474ef7],picture[data-v-4f474ef7],video[data-v-4f474ef7],canvas[data-v-4f474ef7],svg[data-v-4f474ef7]{display:block;max-width:100%}input[data-v-4f474ef7],button[data-v-4f474ef7],textarea[data-v-4f474ef7],select[data-v-4f474ef7]{font:inherit;color:inherit}a[data-v-4f474ef7]{text-decoration:none;color:inherit}ul[data-v-4f474ef7],ol[data-v-4f474ef7]{list-style:none}p[data-v-4f474ef7],h1[data-v-4f474ef7],h2[data-v-4f474ef7],h3[data-v-4f474ef7],h4[data-v-4f474ef7],h5[data-v-4f474ef7],h6[data-v-4f474ef7]{overflow-wrap:break-word}h1[data-v-4f474ef7],h2[data-v-4f474ef7],h3[data-v-4f474ef7],h4[data-v-4f474ef7],h5[data-v-4f474ef7],h6[data-v-4f474ef7]{font-size:inherit;font-weight:inherit}"]],["__scopeId","data-v-4f474ef7"]]);Xo.extend(na);const um=po(cm,{shadowRoot:!0,configureApp(e){const t=function(){const e=ne(!0),t=e.run(()=>xt({}));let n=[],s=[];const r=bt({install(e){Eo(r),r._a=e,e.provide(Ro,r),e.config.globalProperties.$pinia=r,s.forEach(e=>n.push(e)),s=[]},use(e){return this._a?n.push(e):s.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}();t.use(({store:e})=>{e.$subscribe((t,n)=>{console.log(`[pinia] ${e.$id}`,JSON.parse(JSON.stringify(n)))},{detached:!0})}),e.use(rm,{selector:"lilaquadrat-studio-chat"}),e.use(t),e.use(Ec),function(e){$f(em,0,"module",e),$f(tm,0,"partial",e)}(e)}});customElements.get("lilaquadrat-studio-chat")||customElements.define("lilaquadrat-studio-chat",um);const dm=Object.freeze(Object.defineProperty({__proto__:null,default:{status:{connected:"Verbunden",disconnected:"Getrennt"},actions:{retry:"Wiederholen"},"new chat":"Neuer Chat",conversations:"Unterhaltungen","contact support":"Support kontaktieren",support:"Support",options:"Optionen",mute:"Stumm schalten",delete:"Löschen",leave:"Verlassen","leave now":"Jetzt verlassen?","select contacts":"Kontakte auswählen","conversation options":"Konversationsoptionen",system:{renamed:'{user} hat "{from}" in "{to}" umbenannt',created:"{user} hat diese Unterhaltung erstellt",left:"{user} hat die Unterhaltung verlassen",participants:{addedAndRemoved:"{user} hat {added} hinzugefügt und {removed} entfernt",added:"{user} hat {added} hinzugefügt",removed:"{user} hat {removed} entfernt"}}}},Symbol.toStringTag,{value:"Module"}));e.LilaquadratStudioChat=um,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
|