@lilaquadrat/chat 0.1.0 → 0.1.3
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/config/bootstrap.d.ts +7 -0
- package/dist/types/src/stores/conversations.store.d.ts +17 -2
- package/dist/types/src/stores/main.store.d.ts +25 -1
- package/dist/types/tsconfig.build.tsbuildinfo +1 -1
- package/dist/wc/lilaquadrat-studio-chat.js +1274 -223
- package/dist/wc/lilaquadrat-studio-chat.umd.cjs +9 -9
- package/package.json +11 -2
|
@@ -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={},r=[],s=()=>{},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:"),
|
|
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={},r=[],s=()=>{},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),p=Array.isArray,f=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"),M=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},T=/-\w/g,O=M(e=>e.replace(T,e=>e.slice(1).toUpperCase())),L=/\B([A-Z])/g,E=M(e=>e.replace(L,"-$1").toLowerCase()),R=M(e=>e.charAt(0).toUpperCase()+e.slice(1)),$=M(e=>e?`on${R(e)}`:""),A=(e,t)=>!Object.is(e,t),P=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},F=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},j=e=>{const t=parseFloat(e);return isNaN(t)?e:t},N=e=>{const t=v(e)?Number(e):NaN;return isNaN(t)?e:t};let D;const I=()=>D||(D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function U(e){if(p(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=v(r)?B(r):U(r);if(s)for(const e in s)t[e]=s[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(p(e))for(let n=0;n<e.length;n++){const r=V(e[n]);r&&(t+=r+" ")}else if(b(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Y=t("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function q(e){return!!e||""===e}function J(e,t){if(e===t)return!0;let n=m(e),r=m(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=y(e),r=y(t),n||r)return e===t;if(n=p(e),r=p(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=J(e[r],t[r]);return n}(e,t);if(n=b(e),r=b(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),s=t.hasOwnProperty(n);if(r&&!s||!r&&s||!J(e[n],t[n]))return!1}}return String(e)===String(t)}const Z=e=>!(!e||!0!==e.__v_isRef),G=e=>v(e)?e:null==e?"":p(e)||b(e)&&(e.toString===w||!g(e.toString))?Z(e)?G(e.value):JSON.stringify(e,K,2):String(e),K=(e,t)=>Z(t)?K(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[X(t,r)+" =>"]=n,e),{})}:h(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>X(e))}:y(t)?X(t):!b(t)||p(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||le(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?se.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){he(this)&&this.run()}get dirty(){return he(this)}}let ae,ie,ce=0;function le(e,t=!1){if(e.flags|=8,t)return e.next=ie,void(ie=e);e.next=ae,ae=e}function ue(){ce++}function de(){if(--ce>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 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,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{fe(e);const n=e.fn(e._value);(0===t.version||P(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(s){throw t.version++,s}finally{ee=n,ye=r,pe(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 _e=[];function be(){_e.push(ye),ye=!1}function we(){const e=_e.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 Se{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 Ce{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 Se(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 Oe=new WeakMap,Ee=Symbol(""),Me=Symbol(""),Le=Symbol("");function Re(e,t,n){if(ye&&ee){let t=Oe.get(e);t||Oe.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Ce),r.map=t,r.key=n),r.track()}}function $e(e,t,n,r,s,o){const a=Oe.get(e);if(!a)return void xe++;const i=e=>{e&&e.trigger()};if(ue(),"clear"===t)a.forEach(i);else{const s=f(e),o=s&&S(n);if(s&&"length"===n){const e=Number(r);a.forEach((t,n)=>{("length"===n||n===Le||!y(n)&&n>=e)&&i(t)})}else switch((void 0!==n||a.has(void 0))&&i(a.get(n)),o&&i(a.get(Le)),t){case"add":s?o&&i(a.get("length")):(i(a.get(Ee)),p(e)&&i(a.get(Me)));break;case"delete":s||(i(a.get(Ee)),p(e)&&i(a.get(Me)));break;case"set":p(e)&&i(a.get(Ee))}}de()}function Pe(e){const t=yt(e);return t===e?t:(Re(t,0,Le),gt(e)?t:t.map(bt))}function Fe(e){return Re(e=yt(e),0,Le),e}function Ae(e,t){return mt(e)?wt(ht(e)?bt(t):t):bt(t)}const Ne={__proto__:null,[Symbol.iterator](){return De(this,Symbol.iterator,e=>Ae(this,e))},concat(...e){return Pe(this).concat(...e.map(e=>f(e)?Pe(e):e))},entries(){return De(this,"entries",e=>(e[1]=Ae(this,e[1]),e))},every(e,t){return je(this,"every",e,t,void 0,arguments)},filter(e,t){return je(this,"filter",e,t,e=>e.map(e=>Ae(this,e)),arguments)},find(e,t){return je(this,"find",e,t,e=>Ae(this,e),arguments)},findIndex(e,t){return je(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return je(this,"findLast",e,t,e=>Ae(this,e),arguments)},findLastIndex(e,t){return je(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return je(this,"forEach",e,t,void 0,arguments)},includes(...e){return We(this,"includes",e)},indexOf(...e){return We(this,"indexOf",e)},join(e){return Pe(this).join(e)},lastIndexOf(...e){return We(this,"lastIndexOf",e)},map(e,t){return je(this,"map",e,t,void 0,arguments)},pop(){return He(this,"pop")},push(...e){return He(this,"push",e)},reduce(e,...t){return Ue(this,"reduce",e,t)},reduceRight(e,...t){return Ue(this,"reduceRight",e,t)},shift(){return He(this,"shift")},some(e,t){return je(this,"some",e,t,void 0,arguments)},splice(...e){return He(this,"splice",e)},toReversed(){return Pe(this).toReversed()},toSorted(e){return Pe(this).toSorted(e)},toSpliced(...e){return Pe(this).toSpliced(...e)},unshift(...e){return He(this,"unshift",e)},values(){return De(this,"values",e=>Ae(this,e))}};function De(e,t,n){const r=Fe(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 Ie=Array.prototype;function je(e,t,n,r,s,o){const a=Fe(e),i=a!==e&&!gt(e),c=a[t];if(c!==Ie[t]){const t=c.apply(e,o);return i?bt(t):t}let l=n;a!==e&&(i?l=function(t,r){return n.call(this,Ae(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));const u=c.call(a,l,r);return i&&s?s(u):u}function Ue(e,t,n,r){const s=Fe(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=Ae(e,t)),n.call(this,t,Ae(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?Ae(e,i):i}function We(e,t,n){const r=yt(e);Re(r,0,Le);const s=r[t](...n);return-1!==s&&!1!==s||!vt(n[0])?s:(n[0]=yt(n[0]),r[t](...n))}function He(e,t,n=[]){be(),ue();const r=yt(e)[t].apply(e,n);return de(),we(),r}const ze=t("__proto__,__v_isRef,__isVue"),Ve=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(y));function Be(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?lt:ct:s?it:at).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=f(e);if(!r){let e;if(o&&(e=Ne[t]))return e;if("hasOwnProperty"===t)return Be}const a=Reflect.get(e,t,kt(e)?e:n);if(y(t)?Ve.has(t):ze(t))return a;if(r||Re(e,0,t),s)return a;if(kt(a)){const e=o&&S(t)?a:a.value;return r&&_(e)?ft(e):e}return _(a)?r?ft(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=f(e)&&S(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?P(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)&&Ve.has(t)||Re(e,0,t),n}ownKeys(e){return Re(e,0,f(e)?"length":Ee),Reflect.ownKeys(e)}}class Je extends Ye{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Ge=new qe,Ke=new Je,Ze=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||(P(n,o)&&Re(s,0,n),Re(s,0,o));const{has:a}=Qe(s),i=t?Xe:e?wt:bt;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,Ee),t.size},has(t){const n=this.__v_raw,r=yt(n),s=yt(t);return e||(P(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:bt;return!e&&Re(yt(o),0,Ee),o.forEach((e,t)=>n.call(r,a(e),a(t),s))}};c(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)||P(e,o)&&r.has.call(n,e)||P(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?P(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=p(o),i="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,u=s[e](...r),d=n?Xe:t?wt:bt;return!t&&Re(o,0,l?Me:Ee),c(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,ct=new WeakMap,lt=new WeakMap;function ut(e){return mt(e)?e:pt(e,!1,Ge,rt,at)}function dt(e){return pt(e,!1,Ze,st,it)}function ft(e){return pt(e,!0,Ke,ot,ct)}function pt(e,t,n,r,s){if(!_(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 _t(e){return!d(e,"__v_skip")&&Object.isExtensible(e)&&A(e,"__v_skip",!0),e}const bt=e=>_(e)?ut(e):e,wt=e=>_(e)?ft(e):e;function kt(e){return!!e&&!0===e.__v_isRef}function xt(e){return Ct(e,!1)}function St(e){return Ct(e,!0)}function Ct(e,t){return kt(e)?e:new Tt(e,t)}class Tt{constructor(e,t){this.dep=new Ce,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:yt(e),this._value=t?e:bt(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);P(e=n?e:yt(e),t)&&(this._rawValue=e,this._value=n?e:bt(e),this.dep.trigger())}}function Ot(e){return kt(e)?e.value:e}const Et={get:(e,t,n)=>"__v_raw"===t?e:Ot(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 Mt(e){return ht(e)?e:new Proxy(e,Et)}function Lt(e){const t=f(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(!f(e)||y(this._key)||!S(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=Ot(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=Oe.get(e);return n&&n.get(t)}(this._raw,this._key)}}function $t(e,t,n){return new Rt(e,t,n)}class Pt{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ce(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 le(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 Ft(e,t,n=!1){let r,s;g(e)?r=e:(r=e.get,s=e.set);return new Pt(r,s,n)}const At={},Nt=new WeakMap;let Dt;function It(e,t,r=n){const{immediate:o,deep:a,once:i,scheduler:c,augmentJob:u,call:d}=r,p=e=>a?e:gt(e)||!1===a||0===a?jt(e,1):jt(e);let h,m,v,y,_=!1,b=!1;if(kt(e)?(m=()=>e.value,_=gt(e)):ht(e)?(m=()=>p(e),_=!0):f(e)?(b=!0,_=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){be();try{v()}finally{we()}}const t=Dt;Dt=h;try{return d?d(e,3,[y]):e(y)}finally{Dt=t}}:s,t&&a){const e=m,t=!0===a?1/0:a;m=()=>jt(e(),t)}const w=re(),k=()=>{h.stop(),w&&w.active&&l(w.effects,h)};if(i&&t){const e=t;t=(...t)=>{const n=e(...t);return k(),n}}let x=b?new Array(e.length).fill(At):At;const S=e=>{if(1&h.flags&&(h.dirty||e))if(t){const n=h.run();if(e||a||_||(b?n.some((e,t)=>P(e,x[t])):P(n,x))){v&&v();const e=Dt;Dt=h;try{const e=[n,x===At?void 0:b&&x[0]===At?[]:x,y];x=n,d?d(t,3,e):t(...e)}finally{Dt=e}}}else h.run()};return u&&u(S),h=new oe(m),h.scheduler=c?()=>c(S,!1):S,y=e=>function(e,t=!1,n=Dt){if(n){let t=Nt.get(n);t||Nt.set(n,t=[]),t.push(e)}}(e,!1,h),v=h.onStop=()=>{const e=Nt.get(h);if(e){if(d)d(e,4);else for(const t of e)t();Nt.delete(h)}},t?o?S(!0):x=h.run():c?c(S.bind(null,!0),!0):h.run(),k.pause=h.pause.bind(h),k.resume=h.resume.bind(h),k.stop=k,k}function jt(e,t=1/0,n){if(t<=0||!_(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))jt(e.value,t,n);else if(f(e))for(let r=0;r<e.length;r++)jt(e[r],t,n);else if(h(e)||p(e))e.forEach(e=>{jt(e,t,n)});else if(x(e)){for(const r in e)jt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&jt(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 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}
|
|
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){Ht(s,t,n)}}function Wt(e,t,n,r){if(g(e)){const s=Ut(e,t,n,r);return s&&b(s)&&s.catch(e=>{Ht(e,t,n)}),s}if(f(e)){const s=[];for(let o=0;o<e.length;o++)s.push(Wt(e[o],t,n,r));return s}}function Ht(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 be(),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 zt=[];let Vt=-1;const Bt=[];let Yt=null,qt=0;const Jt=Promise.resolve();let Gt=null;function Kt(e){const t=Gt||Jt;return e?t.then(this?e.bind(this):e):t}function Zt(e){if(!(1&e.flags)){const t=tn(e),n=zt[zt.length-1];!n||!(2&e.flags)&&t>=tn(n)?zt.push(e):zt.splice(function(e){let t=Vt+1,n=zt.length;for(;t<n;){const r=t+n>>>1,s=zt[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(){Gt||(Gt=Jt.then(nn))}function Qt(e,t,n=Vt+1){for(;n<zt.length;n++){const t=zt[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;zt.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function en(e){if(Bt.length){const e=[...new Set(Bt)].sort((e,t)=>tn(e)-tn(t));if(Bt.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(Vt=0;Vt<zt.length;Vt++){const e=zt[Vt];!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(;Vt<zt.length;Vt++){const e=zt[Vt];e&&(e.flags&=-2)}Vt=-1,zt.length=0,en(),Gt=null,(zt.length||Bt.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 cn(e,t){if(null===rn)return e;const r=Ps(rn),s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[e,a,i,c=n]=t[o];e&&(g(e)&&(e={mounted:e,updated:e}),e.deep&&jt(a),s.push({dir:e,instance:r,value:a,oldValue:void 0,arg:i,modifiers:c}))}return e}function ln(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 c=i.dir[r];c&&(be(),Wt(c,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 fn(e,t,n){return pn(e,t,n)}function pn(e,t,r=n){const{immediate:o,deep:a,flush:i,once:l}=r,u=c({},r),d=t&&o||!t&&"post"!==i;let f;if(Ms)if("sync"===i){const e=un(dn);f=e.__watcherHandles||(e.__watcherHandles=[])}else if(!d){const e=()=>{};return e.stop=s,e.resume=s,e.pause=s,e}const p=ks;u.call=(e,t,n)=>Wt(e,p,t,n);let h=!1;"post"===i?u.scheduler=e=>{jr(e,p&&p.suspense)}:"sync"!==i&&(h=!0,u.scheduler=(e,t)=>{t?e():Zt(e)}),u.augmentJob=e=>{t&&(e.flags|=4),h&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};const m=It(e,t,u);return Ms&&(f?f.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=Ts(this),i=pn(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 _n(e,t){return g(e)?(()=>c({name:e.name},t,{setup:e}))():e}function bn(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(f(e))return void e.forEach((e,n)=>xn(e,t&&(f(t)?t[n]:t),r,s,a));if(Cn(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?Ps(s.component):s.el,c=a?null:i,{i:u,r:p}=e,h=t&&t.r,m=u.refs===n?u.refs={}:u.refs,y=u.setupState,_=yt(y),b=y===n?o:e=>!wn(m,e)&&d(_,e),w=(e,t)=>!t||!wn(m,t);if(null!=h&&h!==p)if(Sn(t),v(h))m[h]=null,b(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,[c,m]);else{const t=v(p),n=kt(p);if(t||n){const s=()=>{if(e.f){const n=t?b(p)?y[p]:m[p]:w()||!e.k?p.value:m[e.k];if(a)f(n)&&l(n,i);else if(f(n))n.includes(i)||n.push(i);else if(t)m[p]=[i],b(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]=c,b(p)&&(y[p]=c)):n&&(w(0,e.k)&&(p.value=c),e.k&&(m[e.k]=c))};if(c){const t=()=>{s(),kn.delete(e)};t.id=-1,kn.set(e,t),jr(t,r)}else Sn(e),s()}}}function Sn(e){const t=kn.get(e);t&&(t.flags|=8,kn.delete(e))}j().requestIdleCallback,j().cancelIdleCallback;const Cn=e=>!!e.type.__asyncLoader,Tn=e=>e.type.__isKeepAlive;function On(e,t){Mn(e,"a",t)}function En(e,t){Mn(e,"da",t)}function Mn(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;)Tn(e.parent.vnode)&&Ln(r,t,n,e),e=e.parent}}function Ln(e,t,n,r){const s=Rn(t,e,r,!0);In(()=>{l(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)=>{be();const s=Ts(n),o=Wt(t,n,e,r);return s(),we(),o});return r?s.unshift(o):s.push(o),o}}const $n=e=>(t,n=ks)=>{Ms&&"sp"!==e||Rn(e,(...e)=>t(...e),n)},Pn=$n("bm"),Fn=$n("m"),An=$n("bu"),Nn=$n("u"),Dn=$n("bum"),In=$n("um"),jn=$n("sp"),Un=$n("rtg"),Wn=$n("rtc");function Hn(e,t=ks){Rn("ec",e,t)}function zn(e,t){return function(e,t,n=!0,r=!1){const s=rn||ks;if(s){const n=s.type;{const e=Fs(n,!1);if(e&&(e===t||e===E(t)||e===R(E(t))))return n}const o=Bn(s[e]||n[e],t)||Bn(s.appContext[e],t);return!o&&r?n:o}}("components",e,!0,t)||e}const Vn=Symbol.for("v-ndc");function Bn(e,t){return e&&(e[t]||e[E(t)]||e[R(E(t))])}function Yn(e,t,n,r){let s;const o=n,a=f(e);if(a||v(e)){let n=!1,r=!1;a&&ht(e)&&(n=!gt(e),r=mt(e),e=Fe(e)),s=new Array(e.length);for(let a=0,i=e.length;a<i;a++)s[a]=t(n?r?wt(bt(e[a])):bt(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(_(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&&Cn(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,c=os(Jr,{key:(i&&!y(i)?i:`_${t}`)+""},a||[],a&&1===e._?64:-2);return!s&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function Jn(e){return e.some(e=>!as(e)||e.type!==Kr&&!(e.type===Jr&&!Jn(e.children)))?e:null}const Gn=e=>e?Es(e)?Ps(e):Gn(e.parent):null,Kn=c(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=>Gn(e.parent),$root:e=>Gn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>sr(e),$forceUpdate:e=>e.f||(e.f=()=>{Zt(e.update)}),$nextTick:e=>e.n||(e.n=Kt.bind(e.proxy)),$watch:e=>hn.bind(e)}),Zn=(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:c,appContext:l}=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(Zn(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=Kn[t];let f,p;return u?("$attrs"===t&&Re(e.attrs,0,""),u(e)):(f=c.__cssModules)&&(f=f[t])?f:r!==n&&d(r,t)?(i[t]=4,r[t]):(p=l.config.globalProperties,d(p,t)?p[t]:void 0)},set({_:e},t,r){const{data:s,setupState:o,ctx:a}=e;return Zn(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}},c){let l;return!!(r[c]||e!==n&&"$"!==c[0]&&d(e,c)||Zn(t,c)||d(a,c)||d(s,c)||d(Kn,c)||d(o.config.globalProperties,c)||(l=i.__cssModules)&&l[c])},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 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:c,provide:l,inject:u,created:d,beforeMount:p,mounted:h,beforeUpdate:m,updated:v,activated:y,deactivated:b,beforeDestroy:w,beforeUnmount:k,destroyed:x,unmounted:S,render:C,renderTracked:T,renderTriggered:O,errorCaptured:E,serverPrefetch:M,expose:L,inheritAttrs:R,components:$,directives:P,filters:F}=t;if(u&&function(e,t){f(e)&&(e=cr(e));for(const n in e){const r=e[n];let s;s=_(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);_(t)&&(e.data=ut(t))}if(er=!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):s,o=!g(e)&&g(e.set)?e.set.bind(n):s,i=As({get:t,set:o});Object.defineProperty(r,f,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(c)for(const s in c)rr(c[s],r,n,s);if(l){const e=g(l)?l.call(n):l;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 A(e,t){f(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(d&&nr(d,e,"c"),A(Pn,p),A(Fn,h),A(An,m),A(Nn,v),A(On,y),A(En,b),A(Hn,E),A(Wn,T),A(Un,O),A(Dn,k),A(In,S),A(jn,M),f(L))if(L.length){const t=e.exposed||(e.exposed={});L.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===s&&(e.render=C),null!=R&&(e.inheritAttrs=R),$&&(e.components=$),P&&(e.directives=P),M&&bn(e)}function nr(e,t,n){Wt(f(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)&&fn(s,n)}else if(g(e))fn(s,e.bind(n));else if(_(e))if(f(e))e.forEach(e=>rr(e,t,n,r));else{const r=g(e.handler)?e.handler.bind(n):t[e.handler];g(r)&&fn(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 c;return i?c=i:s.length||n||r?(c={},s.length&&s.forEach(e=>or(c,e,a,!0)),or(c,t,a)):c=t,_(t)&&o.set(t,c),c}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:lr,created:lr,beforeMount:lr,mounted:lr,beforeUpdate:lr,updated:lr,beforeDestroy:lr,beforeUnmount:lr,destroyed:lr,unmounted:lr,activated:lr,deactivated:lr,errorCaptured:lr,serverPrefetch:lr,components:ur,directives:ur,watch:function(e,t){if(!e)return t;if(!t)return e;const n=c(Object.create(null),e);for(const r in t)n[r]=lr(e[r],t[r]);return n},provide:ir,inject:function(e,t){return ur(cr(e),cr(t))}};function ir(e,t){return t?e?function(){return c(g(e)?e.call(this,this):e,g(t)?t.call(this,this):t)}:t:e}function cr(e){if(f(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function lr(e,t){return e?[...new Set([].concat(e,t))]:t}function ur(e,t){return e?c(Object.create(null),e,t):t}function dr(e,t){return e?f(e)&&f(t)?[...new Set([...e,...t])]:c(Object.create(null),Qn(e),Qn(null!=t?t:{})):t}function fr(){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 pr=0;function hr(e,t){return function(t,n=null){g(t)||(t=c({},t)),null==n||_(n)||(n=null);const r=fr(),s=new WeakSet,o=[];let a=!1;const i=r.app={_uid:pr++,_component:t,_props:n,_container:null,_context:r,_instance:null,version:Ds,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,c){if(!a){const o=i._ceVNode||ds(t,n);return o.appContext=r,!0===c?c="svg":!1===c&&(c=void 0),e(o,s,c),a=!0,i._container=s,s.__vue_app__=i,Ps(o.component)}},onUnmount(e){o.push(e)},unmount(){a&&(Wt(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[`${E(t)}Modifiers`]||e[`${L(t)}Modifiers`])(s,t.slice(7));let c;i&&(i.trim&&(o=r.map(e=>v(e)?e.trim():e)),i.number&&(o=r.map(N)));let l=s[c=$(t)]||s[c=$(E(t))];!l&&a&&(l=s[c=$(L(t))]),l&&Wt(l,e,6,o);const u=s[c+"Once"];if(u){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,Wt(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,c(a,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return o||i?(f(o)?o.forEach(e=>a[e]=null):c(a,o),_(e)&&r.set(e,a),a):(_(e)&&r.set(e,null),null)}function _r(e,t){return!(!e||!a(t))&&(t=t.slice(2).replace(/Once$/,""),d(e,t[0].toLowerCase()+t.slice(1))||d(e,L(t))||d(e,t))}function br(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:a,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:h,ctx:m,inheritAttrs:g}=e,v=on(e);let y,_;try{if(4&n.shapeFlag){const e=s||r,t=e;y=ms(u.call(t,e,d,f,h,p,m)),_=c}else{const e=t;0,y=ms(e.length>1?e(f,{attrs:c,slots:a,emit:l}):e(f,null)),_=t.props?c:wr(c)}}catch(w){Xr.length=0,Ht(w,e,1),y=ds(Kr)}let b=y;if(_&&!1!==g){const e=Object.keys(_),{shapeFlag:t}=b;e.length&&7&t&&(o&&e.some(i)&&(_=kr(_,o)),b=fs(b,_,!1,!0))}return n.dirs&&(b=fs(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&yn(b,n.transition),y=b,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(Sr(t,e,o)&&!_r(n,o))return!0}return!1}function Sr(e,t,n){const r=e[n],s=t[n];return"style"===n&&_(r)&&_(s)?!J(r,s):r!==s}const Cr={},Tr=()=>Object.create(Cr),Or=e=>Object.getPrototypeOf(e)===Cr;function Er(e,t,r,s){const[o,a]=e.propsOptions;let i,c=!1;if(t)for(let n in t){if(C(n))continue;const l=t[n];let u;o&&d(o,u=E(n))?a&&a.includes(u)?(i||(i={}))[u]=l:r[u]=l:_r(e.emitsOptions,n)||n in s&&l===s[n]||(s[n]=l,c=!0)}if(a){const t=yt(r),s=i||n;for(let n=0;n<a.length;n++){const i=a[n];r[i]=Mr(o,t,i,s[i],e,!d(s,i))}}return c}function Mr(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=Ts(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!==L(n)||(r=!0))}return r}const Lr=new WeakMap;function Rr(e,t,s=!1){const o=s?Lr:t.propsCache,a=o.get(e);if(a)return a;const i=e.props,l={},u=[];let p=!1;if(!g(e)){const n=e=>{p=!0;const[n,r]=Rr(e,t,!0);c(l,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&&!p)return _(e)&&o.set(e,r),r;if(f(i))for(let r=0;r<i.length;r++){const e=E(i[r]);$r(e)&&(l[e]=n)}else if(i)for(const n in i){const e=E(n);if($r(e)){const t=i[n],r=l[e]=f(t)||g(t)?{type:t}:c({},t),s=r.type;let o=!1,a=!0;if(f(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=[l,u];return _(e)&&o.set(e,h),h}function $r(e){return"$"!==e[0]&&!C(e)}const Pr=e=>"_"===e||"_ctx"===e||"$stable"===e,Fr=e=>f(e)?e.map(ms):[ms(e)],Ar=(e,t,n)=>{if(t._n)return t;const r=an((...e)=>Fr(t(...e)),n);return r._c=!1,r},Nr=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Pr(s))continue;const n=e[s];if(g(n))t[s]=Ar(0,n,r);else if(null!=n){const e=Fr(n);t[s]=()=>e}}},Dr=(e,t)=>{const n=Fr(t);e.slots.default=()=>n},Ir=(e,t,n)=>{for(const r in t)!n&&Pr(r)||(e[r]=t[r])},jr=function(e,t){t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):(f(n=e)?Bt.push(...n):Yt&&-1===n.id?Yt.splice(qt+1,0,n):1&n.flags||(Bt.push(n),n.flags|=1),Xt());var n};function Ur(e){return function(e){j().__VUE__=!0;const{insert:t,remove:o,patchProp:a,createElement:i,createText:c,createComment:l,setText:u,setElementText:f,parentNode:p,nextSibling:h,setScopeId:m=s,insertStaticContent:g}=e,v=(e,t,n,r=null,s=null,o=null,a=void 0,i=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!is(e,t)&&(r=X(e),q(e,s,o,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:l,ref:u,shapeFlag:d}=t;switch(l){case Gr:y(e,t,n,r);break;case Kr:_(e,t,n,r);break;case Zr:null==e&&w(t,n,r,a);break;case Jr:N(e,t,n,r,s,o,a,i,c);break;default:1&d?S(e,t,n,r,s,o,a,i,c):6&d?D(e,t,n,r,s,o,a,i,c):(64&d||128&d)&&l.process(e,t,n,r,s,o,a,i,c,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=c(n.children),r,s);else{const t=n.el=e.el;n.children!==e.children&&u(t,n.children)}},_=(e,n,r,s)=>{null==e?t(n.el=l(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)},S=(e,t,n,r,s,o,a,i,c)=>{if("svg"===t.type?a="svg":"math"===t.type&&(a="mathml"),null==e)T(t,n,r,s,o,a,i,c);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),R(e,t,s,o,a,i,c)}finally{n&&n._endPatch()}}},T=(e,n,r,s,o,c,l,u)=>{let d,p;const{props:h,shapeFlag:m,transition:g,dirs:v}=e;if(d=e.el=i(e.type,c,h&&h.is,h),8&m?f(d,e.children):16&m&&M(e.children,d,null,s,o,Wr(e,c),l,u),v&&ln(e,null,s,"created"),O(d,e,e.scopeId,l,s),h){for(const e in h)"value"===e||C(e)||a(d,e,null,h[e],c,s);"value"in h&&a(d,"value",null,h.value,c),(p=h.onVnodeBeforeMount)&&_s(p,s,e)}v&&ln(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),((p=h&&h.onVnodeMounted)||y||v)&&jr(()=>{try{p&&_s(p,s,e),y&&g.enter(d),v&&ln(e,null,s,"mounted")}finally{}},o)},O=(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;O(e,t,t.scopeId,t.slotScopeIds,s.parent)}}},M=(e,t,n,r,s,o,a,i,c=0)=>{for(let l=c;l<e.length;l++){const c=e[l]=i?gs(e[l]):ms(e[l]);v(null,c,t,n,r,s,o,a,i)}},R=(e,t,r,s,o,i,c)=>{const l=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(r&&Hr(r,!1),(g=m.onVnodeBeforeUpdate)&&_s(g,r,t,e),p&&ln(t,e,r,"beforeUpdate"),r&&Hr(r,!0),(h.innerHTML&&null==m.innerHTML||h.textContent&&null==m.textContent)&&f(l,""),d?$(e.dynamicChildren,d,l,r,s,Wr(t,o),i):c||z(e,t,l,null,r,s,Wr(t,o),i,!1),u>0){if(16&u)P(l,h,m,r,o);else if(2&u&&h.class!==m.class&&a(l,"class",null,m.class,o),4&u&&a(l,"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(l,n,s,i,o,r)}}1&u&&e.children!==t.children&&f(l,t.children)}else c||null!=d||P(l,h,m,r,o);((g=m.onVnodeUpdated)||p)&&jr(()=>{g&&_s(g,r,t,e),p&&ln(t,e,r,"updated")},s)},$=(e,t,n,r,s,o,a)=>{for(let i=0;i<t.length;i++){const c=e[i],l=t[i],u=c.el&&(c.type===Jr||!is(c,l)||198&c.shapeFlag)?p(c.el):n;v(c,l,u,null,r,s,o,a,!0)}},P=(e,t,r,s,o)=>{if(t!==r){if(t!==n)for(const n in t)C(n)||n in r||a(e,n,t[n],null,o,s);for(const n in r){if(C(n))continue;const i=r[n],c=t[n];i!==c&&"value"!==n&&a(e,n,c,i,o,s)}"value"in r&&a(e,"value",t.value,r.value,o)}},N=(e,n,r,s,o,a,i,l,u)=>{const d=n.el=e?e.el:c(""),f=n.anchor=e?e.anchor:c("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:m}=n;m&&(l=l?l.concat(m):m),null==e?(t(d,r,s),t(f,r,s),M(n.children||[],r,f,o,a,i,l,u)):p>0&&64&p&&h&&e.dynamicChildren&&e.dynamicChildren.length===h.length?($(e.dynamicChildren,h,r,o,a,i,l),(null!=n.key||o&&n===o.subTree)&&zr(e,n,!0)):z(e,n,r,f,o,a,i,l,u)},D=(e,t,n,r,s,o,a,i,c)=>{t.slotScopeIds=i,null==e?512&t.shapeFlag?s.ctx.activate(t,n,r,a,c):I(t,n,r,s,o,a,c):U(e,t,c)},I=(e,t,r,s,o,a,i)=>{const c=e.component=function(e,t,r){const s=e.type,o=(t?t.appContext:e.appContext)||bs,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(Tn(e)&&(c.ctx.renderer=ne),function(e,t=!1,n=!1){t&&Cs(t);const{props:r,children:s}=e.vnode,o=Es(e);(function(e,t,n,r=!1){const s={},o=Tr();e.propsDefaults=Object.create(null),Er(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=Tr();if(32&e.vnode.shapeFlag){const e=t._;e?(Ir(r,t,n),n&&A(r,"_",e,!0)):Nr(t,r)}else t&&Dr(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){be();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=Ts(e),o=Ut(r,e,0,[e.props,n]),a=b(o);if(we(),s(),!a&&!e.sp||Cn(e)||bn(e),a){if(o.then(Os,Os),t)return o.then(t=>{Ls(e,t)}).catch(t=>{Ht(t,e,0)});e.asyncDep=o}else Ls(e,o)}else Rs(e)}(e,t):void 0;t&&Cs(!1)}(c,!1,i),c.asyncDep){if(o&&o.registerDep(c,W,i),!e.el){const n=c.subTree=ds(Kr);_(null,n,t,r),e.placeholder=n.el}}else W(c,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:c}=t,l=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!s&&!i||i&&i.$stable)||r!==a&&(r?!a||xr(r,a,l):!!a);if(1024&c)return!0;if(16&c)return r?xr(r,a,l):!!a;if(8&c){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(Sr(a,r,n)&&!_r(l,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void H(r,t,n);r.next=t,r.update()}else t.el=e.el,r.vnode=t},W=(e,t,n,r,s,o,a)=>{const i=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:i,vnode:c}=e;{const n=Vr(e);if(n)return t&&(t.el=c.el,H(e,t,a)),void n.asyncDep.then(()=>{jr(()=>{e.isUnmounted||l()},s)})}let u,d=t;Hr(e,!1),t?(t.el=c.el,H(e,t,a)):t=c,n&&F(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&_s(u,i,t,c),Hr(e,!0);const f=br(e),h=e.subTree;e.subTree=f,v(h,f,p(h.el),X(h),e,s,o),t.el=f.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,f.el),r&&jr(r,s),(u=t.props&&t.props.onVnodeUpdated)&&jr(()=>_s(u,i,t,c),s)}else{let a;const{el:i,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,h=Cn(t);Hr(e,!1),l&&F(l),!h&&(a=c&&c.onVnodeBeforeMount)&&_s(a,d,t),Hr(e,!0);{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);const a=e.subTree=br(e);v(null,a,n,r,e,s,o),t.el=a.el}if(u&&jr(u,s),!h&&(a=c&&c.onVnodeMounted)){const e=t;jr(()=>_s(a,d,e),s)}(256&t.shapeFlag||d&&Cn(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&jr(e.a,s),e.isMounted=!0,t=n=r=null}};e.scope.on();const c=e.effect=new oe(i);e.scope.off();const l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Zt(u),Hr(e,!0),l()},H=(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),[c]=e.propsOptions;let l=!1;if(!(r||a>0)||16&a){let r;Er(e,t,s,o)&&(l=!0);for(const o in i)t&&(d(t,o)||(r=L(o))!==o&&d(t,r))||(c?!n||void 0===n[o]&&void 0===n[r]||(s[o]=Mr(c,i,o,void 0,e,!0)):delete s[o]);if(o!==i)for(const e in o)t&&d(t,e)||(delete o[e],l=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let a=n[r];if(_r(e.emitsOptions,a))continue;const u=t[a];if(c)if(d(o,a))u!==o[a]&&(o[a]=u,l=!0);else{const t=E(a);s[t]=Mr(c,i,t,u,e,!1)}else u!==o[a]&&(o[a]=u,l=!0)}}l&&$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:Ir(o,t,r):(a=!t.$stable,Nr(t,o)),i=t}else t&&(Dr(e,t),i={default:1});if(a)for(const n in o)Pr(n)||null!=i[n]||delete o[n]})(e,t.children,r),be(),Qt(e),we()},z=(e,t,n,r,s,o,a,i,c=!1)=>{const l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void B(l,d,n,r,s,o,a,i,c);if(256&p)return void V(l,d,n,r,s,o,a,i,c)}8&h?(16&u&&Z(l,s,o),d!==l&&f(n,d)):16&u?16&h?B(l,d,n,r,s,o,a,i,c):Z(l,s,o,!0):(8&u&&f(n,""),16&h&&M(d,n,r,s,o,a,i,c))},V=(e,t,n,s,o,a,i,c,l)=>{t=t||r;const u=(e=e||r).length,d=t.length,f=Math.min(u,d);let p;for(p=0;p<f;p++){const r=t[p]=l?gs(t[p]):ms(t[p]);v(e[p],r,n,null,o,a,i,c,l)}u>d?Z(e,o,a,!0,!1,f):M(t,n,s,o,a,i,c,l,f)},B=(e,t,n,s,o,a,i,c,l)=>{let u=0;const d=t.length;let f=e.length-1,p=d-1;for(;u<=f&&u<=p;){const r=e[u],s=t[u]=l?gs(t[u]):ms(t[u]);if(!is(r,s))break;v(r,s,n,null,o,a,i,c,l),u++}for(;u<=f&&u<=p;){const r=e[f],s=t[p]=l?gs(t[p]):ms(t[p]);if(!is(r,s))break;v(r,s,n,null,o,a,i,c,l),f--,p--}if(u>f){if(u<=p){const e=p+1,r=e<d?t[e].el:s;for(;u<=p;)v(null,t[u]=l?gs(t[u]):ms(t[u]),n,r,o,a,i,c,l),u++}}else if(u>p)for(;u<=f;)q(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]=l?gs(t[u]):ms(t[u]);null!=e.key&&g.set(e.key,u)}let y,_=0;const b=p-m+1;let w=!1,k=0;const x=new Array(b);for(u=0;u<b;u++)x[u]=0;for(u=h;u<=f;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<=p;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,c,l),_++)}const S=w?function(e){const t=e.slice(),n=[0];let r,s,o,a,i;const c=e.length;for(r=0;r<c;r++){const c=e[r];if(0!==c){if(s=n[n.length-1],e[s]<c){t[r]=s,n.push(r);continue}for(o=0,a=n.length-1;o<a;)i=o+a>>1,e[n[i]]<c?o=i+1:a=i;c<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=S.length-1,u=b-1;u>=0;u--){const e=m+u,r=t[e],f=t[e+1],p=e+1<d?f.el||Yr(f):s;0===x[u]?v(null,r,n,p,o,a,i,c,l):w&&(y<0||u!==S[y]?Y(r,n,p,2):y--)}}},Y=(e,n,r,s,a=null)=>{const{el:i,type:c,transition:l,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 c.move(e,n,r,ne);if(c===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(c===Zr)return void k(e,n,r);if(2!==s&&1&d&&l)if(0===s)l.persisted&&!i[vn]?t(i,n,r):(l.beforeEnter(i),t(i,n,r),jr(()=>l.enter(i),a));else{const{leave:s,delayLeave:a,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?o(i):t(i,n,r)},d=()=>{const e=i._isLeaving||!!i[vn];i._isLeaving&&i[vn](!0),l.persisted&&!e?u():s(i,()=>{u(),c&&c()})};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:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:h}=e;if(-2===d&&(s=!1),null!=i&&(be(),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=!Cn(e);let v;if(g&&(v=a&&a.onVnodeBeforeUnmount)&&_s(v,t,e),6&u)K(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);m&&ln(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,ne,r):l&&!l.hasOnce&&(o!==Jr||d>0&&64&d)?Z(l,t,n,!1,!0):(o===Jr&&384&d||!s&&16&u)&&Z(c,t,n),r&&J(e)}const y=null!=h&&null==p;(g&&(v=a&&a.onVnodeUnmounted)||m||y)&&jr(()=>{v&&_s(v,t,e),m&&ln(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 G(n,r);if(t===Zr)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()},G=(e,t)=>{let n;for(;e!==t;)n=h(e),o(e),e=n;o(t)},K=(e,t,n)=>{const{bum:r,scope:s,job:o,subTree:a,um:i,m:c,a:l}=e;Br(c),Br(l),r&&F(r),s.stop(),o&&(o.flags|=8,q(a,e,t,n)),i&&jr(i,t),jr(()=>{e.isUnmounted=!0},t)},Z=(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:I,mc:M,pc:z,pbc:$,n:X,o:e};let re;return{render:ee,hydrate:re,createApp:hr(ee)}}(e)}function Wr({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 Hr({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function zr(e,t,n=!1){const r=e.children,s=t.children;if(f(r)&&f(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||zr(e,t)),t.type===Gr&&(-1===t.patchFlag&&(t=s[o]=gs(t)),t.el=e.el),t.type!==Kr||t.el||(t.el=e.el)}}function Vr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vr(t)}function Br(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"),Gr=Symbol.for("v-txt"),Kr=Symbol.for("v-cmt"),Zr=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 cs=({key:e})=>null!=e?e:null,ls=({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 c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&cs(t),ref:t&&ls(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(c,n),128&o&&e.normalize(c)):n&&(c.shapeFlag|=v(n)?8:16),ts>0&&!a&&Qr&&(c.patchFlag>0||6&o)&&32!==c.patchFlag&&Qr.push(c),c}const ds=function(e,t=null,n=null,r=0,s=null,o=!1){e&&e!==Vn||(e=Kr);if(as(e)){const r=fs(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)||Or(e)?c({},e):e:null}(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=B(e)),_(n)&&(vt(n)&&!f(n)&&(n=c({},n)),t.style=U(n))}const i=v(e)?1:qr(e)?128:(e=>e.__isTeleport)(e)?64:_(e)?4:g(e)?2:0;return us(e,t,n,r,s,i,o,!0)};function fs(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:a,children:i,transition:c}=e,l=t?ys(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&cs(l),ref:t&&t.ref?n&&o?f(o)?o.concat(ls(t)):[o,ls(t)]:ls(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:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&fs(e.ssContent),ssFallback:e.ssFallback&&fs(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&yn(u,c.clone(u)),u}function ps(e=" ",t=0){return ds(Gr,null,e,t)}function hs(e="",t=!1){return t?(es(),os(Kr,null,e)):ds(Kr,null,e)}function ms(e){return null==e||"boolean"==typeof e?ds(Kr):f(e)?ds(Jr,null,e.slice()):as(e)?gs(e):ds(Gr,null,String(e))}function gs(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:fs(e)}function vs(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(f(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||Or(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=[ps(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=B([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||f(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 _s(e,t,n,r=null){Wt(e,t,7,[n,r])}const bs=fr();let ws=0;let ks=null;const xs=()=>ks||rn;let Ss,Cs;{const e=j(),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)}};Ss=t("__VUE_INSTANCE_SETTERS__",e=>ks=e),Cs=t("__VUE_SSR_SETTERS__",e=>Ms=e)}const Ts=e=>{const t=ks;return Ss(e),e.scope.on(),()=>{e.scope.off(),Ss(t)}},Os=()=>{ks&&ks.scope.off(),Ss(null)};function Es(e){return 4&e.vnode.shapeFlag}let Ms=!1;function Ls(e,t,n){g(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_(t)&&(e.setupState=Mt(t)),Rs(e)}function Rs(e,t,n){const r=e.type;e.render||(e.render=r.render||s);{const t=Ts(e);be();try{tr(e)}finally{we(),t()}}}const $s={get:(e,t)=>(Re(e,0,""),e[t])};function Ps(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Mt(_t(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 Fs(e,t=!0){return g(e)?e.displayName||e.name:e.name||t&&e.__name}const As=(e,t)=>Ft(e,0,Ms);function Ns(e,t,n){try{ns(-1);const r=arguments.length;return 2===r?_(t)&&!f(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 Ds="3.5.38";
|
|
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";
|
|
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 Is;const js="undefined"!=typeof window&&window.trustedTypes;if(js)try{Is=js.createPolicy("vue",{createHTML:e=>e})}catch(Ff){}const Us=Is?e=>Is.createHTML(e):e=>e,Ws="undefined"!=typeof document?document:null,Hs=Ws&&Ws.createElement("template"),zs={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?Ws.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Ws.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?Ws.createElement(e,{is:n}):Ws.createElement(e);return"select"===e&&r&&null!=r.multiple&&s.setAttribute("multiple",r.multiple),s},createText:e=>Ws.createTextNode(e),createComment:e=>Ws.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ws.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{Hs.innerHTML=Us("svg"===r?`<svg>${e}</svg>`:"mathml"===r?`<math>${e}</math>`:e);const s=Hs.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]}},Vs=Symbol("_vtc");const Bs=Symbol("_vod"),Ys=Symbol("_vsh"),qs=Symbol(""),Js=/(?:^|;)\s*display\s*:/;const Gs=/\s*!important$/;function Ks(e,t,n){if(f(n))n.forEach(n=>Ks(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=E(t);if("filter"!==r&&r in e)return Xs[t]=r;r=R(r);for(let s=0;s<Zs.length;s++){const n=Zs[s]+r;if(n in e)return Xs[t]=n}return t}(e,t);Gs.test(n)?e.setProperty(L(r),n.replace(Gs,""),"important"):e[r]=n}}const Zs=["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(Ff){}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):L(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(f(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&&Wt(e,t,5,o)}}else Wt(r,t,5,[e])};return n.value=e,n.attached=lo(),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 co=Promise.resolve(),lo=()=>io||(co.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 r=_n(e,t);x(r)&&(r=c({},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=Eo){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!==Eo?this._root=this.shadowRoot:!1!==e.shadowRoot?(this.attachShadow(c({},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:r}=e;let s;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]=D(this._props[o])),(s||(s=Object.create(null)))[E(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:()=>Ot(t[n])})}_resolveProps(e){const{props:t}=e,n=f(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(E))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):fo;const r=E(e);t&&this._numberProps&&this._numberProps[r]&&(n=D(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===fo?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(L(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(L(e),t+""):t||this.removeAttribute(L(e)),n&&n.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),Oo(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const t=ds(this._def,c(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])?c({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),L(e)!==e&&t(L(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 c=document.createElement("style");r&&c.setAttribute("nonce",r),c.textContent=e[i],s.insertBefore(c,a||o),a=c,0===i&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c))}}_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 f(t)?e=>F(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 _o=Symbol("_assign");function bo(e,t,n){return t&&(e=e.trim()),n&&(e=N(e)),e}const wo={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[_o]=go(s);const o=r||s.props&&"number"===s.props.type;ro(e,t?"change":"input",t=>{t.target.composing||e[_o](bo(e.value,n,o))}),(n||o)&&ro(e,"change",()=>{e.value=bo(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[_o]=go(a),e.composing)return;const i=null==t?"":t;if((!o&&"number"!==e.type||/^0\d/.test(e.value)?e.value:N(e.value))===i)return;const c=e.getRootNode();if((c instanceof Document||c instanceof ShadowRoot)&&c.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=L(n.key);return t.some(e=>e===r||ko[e]===r)?e(n):void 0})},So=c({patchProp:(e,t,n,r,s,o)=>{const c="svg"===s;"class"===t?function(e,t,n){const r=e[Vs];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,c):"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]&&Ks(r,t,"")}else for(const e in t)null==n[e]&&Ks(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)||Ks(r,s,a):Ks(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");Bs in e&&(e[Bs]=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,c))?(no(e,t,r),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||to(e,t,r,c,0,"value"!==t)):e._isVueCE&&(function(e,t){const n=e._def.props;if(!n)return!1;const r=E(t);return Array.isArray(n)?n.some(e=>E(e)===r):Object.keys(n).some(e=>E(e)===r)}(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!v(r)))?no(e,E(t),r,0,t):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),to(e,t,r,c))}},zs);let Co;function To(){return Co||(Co=Ur(So))}const Oo=(...e)=>{To().render(...e)},Eo=(...e)=>{const t=To().createApp(...e),{mount:n}=t;return t.mount=e=>{const r=function(e){if(v(e)){return document.querySelector(e)}return e}
|
|
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}
|
|
23
23
|
/*!
|
|
24
24
|
* pinia v3.0.3
|
|
25
25
|
* (c) 2025 Eduardo San Martin Morote
|
|
26
26
|
* @license MIT
|
|
27
|
-
*/(e);if(!r)return;const s=t._component;g(s)||s.render||s.template||(s.template=r.innerHTML),1===r.nodeType&&(r.textContent="");const o=n(r,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};let
|
|
28
|
-
/*! #__NO_SIDE_EFFECTS__ */function qo(e,t,n){let r;const s="function"==typeof t;function o(n,o){const a=!(!xs()&&!mr);(n=n||(a?un(Ro,null):null))&&
|
|
27
|
+
*/(e);if(!r)return;const s=t._component;g(s)||s.render||s.template||(s.template=r.innerHTML),1===r.nodeType&&(r.textContent="");const o=n(r,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};let Lo;const Eo=e=>Lo=e,Ro=Symbol();function $o(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var Ao,Po;(Po=Ao||(Ao={})).direct="direct",Po.patchObject="patch object",Po.patchFunction="patch function";const Fo=()=>{};function jo(e,t,n,r=Fo){e.push(t);const s=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),r())};var o;return!n&&re()&&(o=s,Q&&Q.cleanups.push(o)),s}function No(e,...t){e.slice().forEach(e=>{e(...t)})}const Do=e=>e(),Io=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 r=t[n],s=e[n];$o(s)&&$o(r)&&e.hasOwnProperty(n)&&!kt(r)&&!ht(r)?e[n]=zo(s,r):e[n]=r}return e}const Wo=Symbol();function Ho(e){return!$o(e)||!Object.prototype.hasOwnProperty.call(e,Wo)}const{assign:Bo}=Object;function Vo(e){return!(!kt(e)||!e.effect)}function Yo(e,t,n={},r,s,o){let a;const i=Bo({actions:{}},n),l={deep:!0};let c,u,d,p=[],f=[];const h=r.state.value[e];let m;function g(t){let n;c=u=!1,"function"==typeof t?(t(r.state.value[e]),n={type:Ao.patchFunction,storeId:e,events:d}):(zo(r.state.value[e],t),n={type:Ao.patchObject,payload:t,storeId:e,events:d});const s=m=Symbol();Gt().then(()=>{m===s&&(c=!0)}),u=!0,No(p,n,r.state.value[e])}o||h||(r.state.value[e]={});const v=o?function(){const{state:e}=n,t=e?e():{};this.$patch(e=>{Bo(e,t)})}:Fo;const y=(t,n="")=>{if(Io in t)return t[Uo]=n,t;const s=function(){Eo(r);const n=Array.from(arguments),o=[],a=[];let i;No(f,{args:n,name:s[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 No(a,l),l}return i instanceof Promise?i.then(e=>(No(o,e),e)).catch(e=>(No(a,e),Promise.reject(e))):(No(o,i),i)};return s[Io]=!0,s[Uo]=n,s},b=ut({_p:r,$id:e,$onAction:jo.bind(null,f),$patch:g,$reset:v,$subscribe(t,n={}){const s=jo(p,t,n.detached,()=>o()),o=a.run(()=>pn(()=>r.state.value[e],r=>{("sync"===n.flush?u:c)&&t({storeId:e,type:Ao.direct,events:d},r)},Bo({},l,n)));return s},$dispose:function(){a.stop(),p=[],f=[],r._s.delete(e)}});r._s.set(e,b);const _=(r._a&&r._a.runWithContext||Do)(()=>r._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])),r.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:()=>r.state.value[e],set:e=>{g(t=>{Bo(t,e)})}}),r._p.forEach(e=>{Bo(b,a.run(()=>e({store:b,app:r._a,pinia:r,options:i})))}),h&&o&&n.hydrate&&n.hydrate(b.$state,h),c=!0,u=!0,b}
|
|
28
|
+
/*! #__NO_SIDE_EFFECTS__ */function qo(e,t,n){let r;const s="function"==typeof t;function o(n,o){const a=!(!xs()&&!mr);(n=n||(a?un(Ro,null):null))&&Eo(n),(n=Lo)._s.has(e)||(s?Yo(e,t,r,n):function(e,t,n){const{state:r,actions:s,getters:o}=t,a=n.state.value[e];let i;i=Yo(e,function(){a||(n.state.value[e]=r?r():{});const t=Et(n.state.value[e]);return Bo(t,s,Object.keys(o||{}).reduce((t,r)=>(t[r]=bt(Fs(()=>{Eo(n);const t=n._s.get(e);return o[r].call(t,t)})),t),{}))},t,n,0,!0)}(e,r,n));return n._s.get(e)}return r=s?n:t,o.$id=e,o}function Jo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zo,Go={exports:{}};function Ko(){return Zo||(Zo=1,Go.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",s="second",o="minute",a="hour",i="day",l="week",c="month",u="quarter",d="year",p="date",f="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 r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),s=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(s,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),s=t.clone().add(r,c),o=n-s<0,a=t.clone().add(r+(o?-1:1),c);return+(-(r+(n-s)/(o?s-a:a-s))||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:p,h:a,m:o,s:s,ms:r,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 M||!(!e||!e[w])},x=function e(t,n,r){var s;if(!t)return b;if("string"==typeof t){var o=t.toLowerCase();_[o]&&(s=o),n&&(_[o]=n,s=o);var a=t.split("-");if(!s&&a.length>1)return e(a[0])}else{var i=t.name;_[i]=t,s=i}return!r&&s&&(b=s),s||!r&&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 M(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 M=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 r=t.match(h);if(r){var s=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[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()===f)},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,r=!!S.u(t)||t,u=S.p(e),f=function(e,t){var s=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?s:s.endOf(i)},h=function(e,t){return S.w(n.toDate()[e].apply(n.toDate("s"),(r?[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 r?f(1,0):f(31,11);case c:return r?f(1,g):f(0,g+1);case l:var b=this.$locale().weekStart||0,_=(m<b?m+7:m)-b;return f(r?v-_:v+(6-_),g);case i:case p:return h(y+"Hours",0);case a:return h(y+"Minutes",1);case o:return h(y+"Seconds",2);case s: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":""),f=(n={},n[i]=u+"Date",n[p]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[o]=u+"Minutes",n[s]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],h=l===i?this.$D+(t-this.$W):t;if(l===c||l===d){var m=this.clone().set(p,1);m.$d[f](h),m.init(),this.$d=m.set(p,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](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(r,u){var p,f=this;r=Number(r);var h=S.p(u),m=function(e){var t=C(f);return S.w(t.date(t.date()+Math.round(e*r)),f)};if(h===c)return this.set(c,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===i)return m(1);if(h===l)return m(7);var g=(p={},p[o]=t,p[a]=n,p[s]=e,p)[h]||1,v=this.$d.getTime()+r*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||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",s=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,s,o){return e&&(e[n]||e(t,r))||s[n].slice(0,o)},p=function(e){return S.s(o%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,function(e,r){return r||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 p(1);case"hh":return p(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 s}return null}(e)||s.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,p,f){var h,m=this,g=S.p(p),v=C(r),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 s:h=b/e;break;default:h=b}return f?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(),r=x(e,t,!0);return r&&(n.$L=r),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}(),T=M.prototype;return C.prototype=T,[["$ms",r],["$s",s],["$m",o],["$H",a],["$W",i],["$M",c],["$y",d],["$D",p]].forEach(function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),C.extend=function(e,t){return e.$i||(e(t,M,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}()),Go.exports}const Xo=Jo(Ko());var Qo,ea={exports:{}};var ta=(Qo||(Qo=1,ea.exports=function(e,t,n){e=e||{};var r=t.prototype,s={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,s){return r.fromToBase(e,t,n,s)}n.en.relativeTime=s,r.fromToBase=function(t,r,o,a,i){for(var l,c,u,d=o.$locale().relativeTime||s,p=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"}],f=p.length,h=0;h<f;h+=1){var m=p[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=p[h-1]);var v=d[m.l];i&&(g=i(""+g)),c="string"==typeof v?v.replace("%d",g):v(g,r,m.l,u);break}}if(r)return c;var y=u?d.future:d.past;return"function"==typeof y?y(c):y.replace("%s",c)},r.to=function(e,t){return o(e,t,this,!0)},r.from=function(e,t){return o(e,t,this)};var a=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(a(this),e)},r.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 ra(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const sa="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),
|
|
33
|
+
*/function ra(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const sa="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=>Ma(e)&&0===Object.keys(e).length,ua=Object.assign,da=Object.create,pa=(e=null)=>da(e);let fa;const ha=()=>fa||(fa="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:pa());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),Ma=e=>"[object Object]"===Sa(e);function Ta(e,t=""){return e.reduce((e,n,r)=>0===r?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(r=>{"__proto__"!==r&&(xa(e[r])&&!xa(t[r])&&(t[r]=Array.isArray(e[r])?[]:pa()),Oa(t[r])||Oa(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))})}}
|
|
34
34
|
/*!
|
|
35
35
|
* message-compiler v11.1.11
|
|
36
36
|
* (c) 2025 kazuya kawaguchi
|
|
37
37
|
* Released under the MIT License.
|
|
38
|
-
*/function La(e,t,n){return{start:e,end:t}}const Ra=1,$a=2,Pa=3,Fa=4,Aa=5,Na=6,Da=7,Ia=8,ja=9,Ua=10,Wa=11,Ha=12,za=13,Va=14;function Ba(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",Ga=String.fromCharCode(8232),Ka=String.fromCharCode(8233);function Za(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]===Ka,c=e=>t[e]===Ga,l=e=>a(e)||(e=>t[e]===Ja)(e)||i(e)||c(e),u=e=>a(e)||i(e)||c(e)?Ja:t[e];function d(){return o=0,l(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=Za(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(),c={currentType:13,offset:i,startLoc:a,endLoc:a,lastType:13,lastOffset:i,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},l=()=>c,{onError:u}=t;function d(e,t,r,...s){const o=l();if(t.column+=r,t.offset+=r,u){const r=Ba(e,n?La(o.startLoc,t):null,{domain:"tokenizer",args:s});u(r)}}function f(e,t,r){e.endLoc=o(),e.currentType=t;const s={type:t};return n&&(s.loc=La(e.startLoc,e.endLoc)),null!=r&&(s.value=r),s}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()===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 _(e){m(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function b(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 S(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 C(e){return w(e,S)}function T(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function O(e){return w(e,T)}function E(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function M(e){return w(e,E)}function L(e){let t="",n="";for(;t=O(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 P(e,t,4);case"U":return P(e,t,6);default:return d(Fa,o(),0,t),""}}function P(e,t,n){h(e,t);let r="";for(let s=0;s<n;s++){const n=M(e);if(!n){d(Aa,o(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function F(e){return"{"!==e&&"}"!==e&&e!==qa&&e!==Ja}function A(e){g(e);const t=h(e,"|");return g(e),t}function N(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&d(ja,o(),0),e.next(),n=f(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&d(Ia,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(Da,o(),0),n=D(e,t)||p(t),t.braceNest=0,n;default:{let r=!0,s=!0,a=!0;if(_(e))return t.braceNest>0&&d(Da,o(),0),n=f(t,1,A(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(4===t.currentType||5===t.currentType||6===t.currentType))return d(Da,o(),0),t.braceNest=0,I(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=f(t,4,function(e){g(e);let t="",n="";for(;t=C(e);)n+=t;return e.currentChar()===Xa&&d(Da,o(),0),n}(e)),g(e),n;if(s=y(e,t))return n=f(t,5,function(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${L(e)}`):t+=L(e),e.currentChar()===Xa&&d(Da,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=f(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(Pa,o(),0),r===Ja&&(e.next(),h(e,"'")),n):(h(e,"'"),n)}(e)),g(e),n;if(!r&&!s&&!a)return n=f(t,12,function(e){g(e);let t="",n="";for(;t=w(e,F);)n+=t;return n}(e)),d($a,o(),0,n.value),g(e),n;break}}return n}function D(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=f(t,7,"@"),t.inLinked=!0,r;case".":return g(e),e.next(),f(t,8,".");case":":return g(e),e.next(),f(t,9,":");default:return _(e)?(r=f(t,1,A(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),D(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),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 r=()=>{const t=e.currentPeek();return"{"===t?v(e.peek()):!("@"===t||"|"===t||":"===t||"."===t||t===qa||!t)&&(t===Ja?(e.peek(),r()):b(e,!1))},s=r();return e.resetPeek(),s}(e,t)?(g(e),"{"===s?N(e,t)||r:f(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,I(e,t))}}function I(e,t){let n={type:13};if(t.braceNest>0)return N(e,t)||p(t);if(t.inLinked)return D(e,t)||p(t);switch(e.currentChar()){case"{":return N(e,t)||p(t);case"}":return d(Na,o(),0),e.next(),f(t,3,"}");case"@":return D(e,t)||p(t);default:if(_(e))return n=f(t,1,A(e)),t.braceNest=0,t.inLinked=!1,n;if(b(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if(n===qa||n===Ja)if(b(e))t+=n,e.next();else{if(_(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}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=a,c.offset=s(),c.startLoc=o(),r.currentChar()===Xa?f(c,13):I(r,c)},currentOffset:s,currentPosition:o,context:l}}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=Ba(r,t?La(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 c(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 l(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,c=s(8,a,i);return 11!==t.type?(r(e,Ha,n.lastStartLoc,0),c.value="",o(c,a,i),{nextConsumeToken:t,node:c}):(null==t.value&&r(e,Va,n.lastStartLoc,0,ri(t)),c.value=t.value||"",o(c,e.currentOffset(),e.currentPosition()),{node:c})}(e);n.modifier=t.node,a=t.nextConsumeToken||e.nextToken()}switch(9!==a.type&&r(e,Va,t.lastStartLoc,0,ri(a)),a=e.nextToken(),2===a.type&&(a=e.nextToken()),a.type){case 10:null==a.value&&r(e,Va,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,Va,t.lastStartLoc,0,ri(a)),n.key=c(e,a.value||"");break;case 5:null==a.value&&r(e,Va,t.lastStartLoc,0,ri(a)),n.key=i(e,a.value||"");break;case 6:null==a.value&&r(e,Va,t.lastStartLoc,0,ri(a)),n.key=l(e,a.value||"");break;default:{r(e,za,t.lastStartLoc,0);const i=e.context(),c=s(7,i.offset,i.startLoc);return c.value="",o(c,i.offset,i.startLoc),n.key=c,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,Va,t.lastStartLoc,0,ri(s)),n.items.push(a(e,s.value||""));break;case 5:null==s.value&&r(e,Va,t.lastStartLoc,0,ri(s)),n.items.push(i(e,s.value||""));break;case 4:null==s.value&&r(e,Va,t.lastStartLoc,0,ri(s)),n.items.push(c(e,s.value||""));break;case 6:null==s.value&&r(e,Va,t.lastStartLoc,0,ri(s)),n.items.push(l(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 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 c=0===a.items.length;const l=s(1,t,n);l.cases=[],l.cases.push(a);do{const t=d(e);c||(c=0===t.items.length),l.cases.push(t)}while(13!==i.currentType);return c&&r(e,Wa,n,0),o(l,e.currentOffset(),e.currentPosition()),l}(e,n,a,i)}return{parse:function(n){const a=Qa(n,ua({},e)),i=a.context(),c=s(0,i.offset,i.startLoc);return t&&c.loc&&(c.loc.source=n),c.body=f(a),e.onCacheKey&&(c.cacheKey=e.onCacheKey(n)),13!==i.currentType&&r(a,Va,i.lastStartLoc,0,n[i.offset]||""),o(c,a.currentOffset(),a.currentPosition()),c}}}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=Oa(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 ci(e){switch(e.t=e.type,e.type){case 0:{const t=e;ci(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++)ci(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++)ci(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;ci(t.key),t.k=t.key,delete t.key,t.modifier&&(ci(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 li(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?li(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&&(li(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&&(li(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")}(`),li(e,t.key),t.modifier?(e.push(", "),li(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&&ci(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 c(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&&c(t)},deindent:function(e=!0){const t=--a.indentLevel;e&&c(t)},newline:function(){c(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 { ${Oa(a.map(e=>`${e}: _${e}`),", ")} } = ctx`),i.newline()),i.push("return "),li(i,e),i.deindent(o),i.push("}"),delete e.helpers;const{code:c,map:l}=i.context();return{ast:e,code:c,map:l?l.toJSON():void 0}})(a,n))}
|
|
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))}
|
|
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 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 _i(e,t){const n=ki(e,yi);if(null!=n)return n;throw Si(t)}const bi=["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=[...fi,...pi,...hi,...mi,...wi,...bi,...yi,...gi];function Si(e){return new Error(`unhandled node type: ${e}`)}function Ci(e){return t=>function(e,t){const n=(r=t,ki(r,fi));var r;if(null==n)throw Si(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,Oi(e,n)],[]);return e.normalize(n)}}function Oi(e,t){const n=vi(t);switch(n){case 3:case 9:case 7:case 8:return _i(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 Si(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 Si(n)}case 6:{const n=t,r=function(e){return ki(e,bi)}(n),s=function(e){const t=ki(e,wi);if(t)return t;throw Si(6)}(n);return e.linked(Oi(e,s),r?Oi(e,r):void 0,e.type)}default:throw new Error(`unhandled node on format message part: ${n}`)}}const Ei=e=>e;let Mi=fa();let Li=null;const Ri=$i("function:translate");function $i(e){return t=>Li&&Li.emit(e,t)}const Pi=17,Fi=18,Ai=19,Ni=21,Di=22,Ii=23;function ji(e){return Ba(e,null,void 0)}function Ui(e,t){return null!=t.locale?Hi(t.locale):Hi(e.locale)}let Wi;function Hi(e){if(wa(e))return e;if(ba(e)){if(e.resolvedOnce&&null!=Wi)return Wi;if("Function"===e.constructor.name){const n=e();if(xa(t=n)&&ba(t.then)&&ba(t.catch))throw ji(Ni);return Wi=n}throw ji(Di)}throw ji(Ii);var t}function zi(e,t,n){return[...new Set([n,..._a(t)?t:xa(t)?Object.keys(t):wa(t)?[t]:[n]])]}function Vi(e,t,n){const r=wa(n)?n:ec,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let o=s.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;_a(e);)e=Bi(o,e,t);const a=_a(t)||!Ta(t)?t:t.default?t.default:null;e=wa(a)?[a]:a,_a(e)&&Bi(o,e,!1),s.__localeChainCache.set(r,o)}return o}function Bi(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),(_a(n)||Ta(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 Gi=/^\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 Zi(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,Gi.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 ec="en-US",tc=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let nc,rc,sc;let oc=null;const ac=()=>oc;let ic=null;const cc=e=>{ic=e};let lc=0;function uc(e={}){const t=ba(e.onWarn)?e.onWarn:ra,n=wa(e.version)?e.version:"11.1.11",r=wa(e.locale)||ba(e.locale)?e.locale:ec,s=ba(r)?ec:r,o=_a(e.fallbackLocale)||Ta(e.fallbackLocale)||wa(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:s,a=Ta(e.messages)?e.messages:dc(s),i=Ta(e.datetimeFormats)?e.datetimeFormats:dc(s),c=Ta(e.numberFormats)?e.numberFormats:dc(s),l=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)?tc(e):"vnode"===t&&xa(e)&&"__v_isVNode"in e?tc(e.children):e}),u=e.pluralRules||fa(),d=ba(e.missing)?e.missing:null,f=!ka(e.missingWarn)&&!ca(e.missingWarn)||e.missingWarn,p=!ka(e.fallbackWarn)&&!ca(e.fallbackWarn)||e.fallbackWarn,h=!!e.fallbackFormat,m=!!e.unresolving,g=ba(e.postTranslation)?e.postTranslation:null,v=Ta(e.processor)?e.processor:null,y=!ka(e.warnHtmlMessage)||e.warnHtmlMessage,_=!!e.escapeParameter,b=ba(e.messageCompiler)?e.messageCompiler:nc,w=ba(e.messageResolver)?e.messageResolver:rc||Qi,k=ba(e.localeFallbacker)?e.localeFallbacker:sc||zi,x=xa(e.fallbackContext)?e.fallbackContext:void 0,S=e,C=xa(S.__datetimeFormatters)?S.__datetimeFormatters:new Map,T=xa(S.__numberFormatters)?S.__numberFormatters:new Map,O=xa(S.__meta)?S.__meta:{};lc++;const E={version:n,cid:lc,locale:r,fallbackLocale:o,messages:a,modifiers:l,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:p,fallbackFormat:h,unresolving:m,postTranslation:g,processor:v,warnHtmlMessage:y,escapeParameter:_,messageCompiler:b,messageResolver:w,localeFallbacker:k,fallbackContext:x,onWarn:t,__meta:O};return E.datetimeFormats=i,E.numberFormats=c,E.__datetimeFormatters=C,E.__numberFormatters=T,__INTLIFY_PROD_DEVTOOLS__&&function(e,t,n){Li&&Li.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}(E,n,O),E}const dc=e=>({[e]:fa()});function fc(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 pc(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function hc(e,t){return e!==t&&e.split("-")[0]===t.split("-")[0]}function mc(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let r=n+1;r<t.length;r++)if(hc(e,t[r]))return!0;return!1}function gc(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:a}=e,{__datetimeFormatters:i}=e,[c,l,u,d]=yc(...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,s,p);if(!wa(c)||""===c)return new Intl.DateTimeFormat(p,d).format(l);let m,g={},v=null;for(let b=0;b<h.length&&(m=h[b],g=n[m]||{},v=g[c],!Ta(v));b++)fc(e,c,m,0,"datetime format");if(!Ta(v)||!wa(m))return r?-1:c;let y=`${m}__${c}`;la(d)||(y=`${y}__${JSON.stringify(d)}`);let _=i.get(y);return _||(_=new Intl.DateTimeFormat(m,ua({},v,d)),i.set(y,_)),f?_.formatToParts(l):_.format(l)}const vc=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function yc(...e){const[t,n,r,s]=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 ji(Ai);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 ji(Ai)}}else if("[object Date]"===Ca(t)){if(isNaN(t.getTime()))throw ji(Fi);a=t}else{if(!ia(t))throw ji(Pi);a=t}return wa(n)?o.key=n:Ta(n)&&Object.keys(n).forEach(e=>{vc.includes(e)?i[e]=n[e]:o[e]=n[e]}),wa(r)?o.locale=r:Ta(r)&&(i=r),Ta(s)&&(i=s),[o.key||"",a,o,i]}function _c(e,t,n){const r=e;for(const s in n){const e=`${t}__${s}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function bc(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:a}=e,{__numberFormatters:i}=e,[c,l,u,d]=kc(...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,s,p);if(!wa(c)||""===c)return new Intl.NumberFormat(p,d).format(l);let m,g={},v=null;for(let b=0;b<h.length&&(m=h[b],g=n[m]||{},v=g[c],!Ta(v));b++)fc(e,c,m,0,"number format");if(!Ta(v)||!wa(m))return r?-1:c;let y=`${m}__${c}`;la(d)||(y=`${y}__${JSON.stringify(d)}`);let _=i.get(y);return _||(_=new Intl.NumberFormat(m,ua({},v,d)),i.set(y,_)),f?_.formatToParts(l):_.format(l)}const wc=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function kc(...e){const[t,n,r,s]=e,o=fa();let a=fa();if(!ia(t))throw ji(Pi);const i=t;return wa(n)?o.key=n:Ta(n)&&Object.keys(n).forEach(e=>{wc.includes(e)?a[e]=n[e]:o[e]=n[e]}),wa(r)?o.locale=r:Ta(r)&&(a=r),Ta(s)&&(a=s),[o.key||"",i,o,a]}function xc(e,t,n){const r=e;for(const s in n){const e=`${t}__${s}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}const Sc=e=>e,Cc=e=>"",Tc=e=>0===e.length?"":Oa(e),Oc=e=>null==e?"":_a(e)||Ta(e)&&e.toString===Sa?JSON.stringify(e,null,2):String(e);function Ec(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function Mc(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)&&ba(e.pluralRules[t])?e.pluralRules[t]:Ec,s=xa(e.pluralRules)&&wa(t)&&ba(e.pluralRules[t])?Ec: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 r=ba(e.messages)?e.messages(t,!!n):!!xa(e.messages)&&e.messages[t];return r||(e.parent?e.parent.message(t):Cc)}const c=Ta(e.processor)&&ba(e.processor.normalize)?e.processor.normalize:Tc,l=Ta(e.processor)&&ba(e.processor.interpolate)?e.processor.interpolate:Oc,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 c=i(t,!0)(u),l="vnode"===o&&_a(c)&&a?c[0]:c;return a?(d=a,e.modifiers?e.modifiers[d]:Sc)(l,o):l;var d},message:i,type:Ta(e.processor)&&wa(e.processor.type)?e.processor.type:"text",interpolate:l,normalize:c,values:ua(fa(),o,a)};return u}const Lc=()=>"",Rc=e=>ba(e);function $c(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:o,fallbackLocale:a,messages:i}=e,[c,l]=Ac(...t),u=ka(l.missingWarn)?l.missingWarn:e.missingWarn,d=ka(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,f=ka(l.escapeParameter)?l.escapeParameter:e.escapeParameter,p=!!l.resolvedMessage,h=wa(l.default)||ka(l.default)?ka(l.default)?o?c:()=>c:l.default:n?o?c:()=>c:null,m=n||null!=h&&(wa(h)||ba(h)),g=Ui(e,l);f&&function(e){_a(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]))})}(l);let[v,y,_]=p?[c,g,i[g]||fa()]:Pc(e,c,g,a,d,u),b=v,w=c;if(p||wa(b)||di(b)||Rc(b)||m&&(b=h,w=b),!(p||(wa(b)||di(b)||Rc(b))&&wa(y)))return s?-1:c;let k=!1;const x=Rc(b)?b:Fc(e,c,y,b,w,()=>{k=!0});if(k)return b;const S=function(e,t,n,r){const{modifiers:s,pluralRules:o,messageResolver:a,fallbackLocale:i,fallbackWarn:c,missingWarn:l,fallbackContext:u}=e,d=(r,s)=>{let o=a(n,r);if(null==o&&(u||s)){const[,,n]=Pc(u||e,r,t,i,c,l);o=a(n,r)}if(wa(o)||di(o)){let n=!1;const s=Fc(e,r,t,o,r,()=>{n=!0});return n?Lc:s}return Rc(o)?o:Lc},f={locale:t,modifiers:s,pluralRules:o,messages:d};e.processor&&(f.processor=e.processor);r.list&&(f.list=r.list);r.named&&(f.named=r.named);ia(r.plural)&&(f.pluralIndex=r.plural);return f}(e,y,_,l),C=function(e,t,n){const r=t(n);return r}(0,x,Mc(S));let T=r?r(C,c):C;var O;if(f&&wa(T)&&(O=(O=(O=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(O)&&(O=O.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=>{O=O.replace(e,"$1javascript:")}),T=O),__INTLIFY_PROD_DEVTOOLS__){const t={timestamp:Date.now(),key:wa(c)?c:Rc(b)?b.key:"",locale:y||(Rc(b)?b.locale:""),format:wa(b)?b:Rc(b)?b.source:"",message:T};t.meta=ua({},e.__meta,ac()||{}),Ri(t)}return T}function Pc(e,t,n,r,s,o){const{messages:a,onWarn:i,messageResolver:c,localeFallbacker:l}=e,u=l(e,r,n);let d,f=fa(),p=null;for(let h=0;h<u.length&&(d=u[h],f=a[d]||fa(),null===(p=c(f,t))&&(p=f[t]),!(wa(p)||di(p)||Rc(p)));h++)if(!mc(d,u)){const n=fc(e,t,d,0,"translate");n!==t&&(p=n)}return[p,d,f]}function Fc(e,t,n,r,s,o){const{messageCompiler:a,warnHtmlMessage:i}=e;if(Rc(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 c=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 c.locale=n,c.key=t,c.source=r,c}function Ac(...e){const[t,n,r]=e,s=fa();if(!(wa(t)||ia(t)||Rc(t)||di(t)))throw ji(Pi);const o=ia(t)?String(t):(Rc(t),t);return ia(n)?s.plural=n:wa(n)?s.default=n:Ta(n)&&!la(n)?s.named=n:_a(n)&&(s.list=n),ia(r)?s.plural=r:wa(r)?s.default=r:Ta(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 Nc=24,Dc=25,Ic=26,jc=27,Uc=28,Wc=29,Hc=31,zc=32;function Vc(e,...t){return Ba(e,null,void 0)}const Bc=oa("__translateVNode"),Yc=oa("__datetimeParts"),qc=oa("__numberParts"),Jc=oa("__setPluralRules"),Gc=oa("__injectWithOption"),Kc=oa("__dispose");function Zc(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]]=fa()),!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)&&Zc(e)}}else xa(e[t])&&Zc(e[t]);return e}function Xc(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:o}=t,a=Ta(n)?n:_a(r)?fa():{[e]:fa()};if(_a(r)&&r.forEach(e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(a[t]=a[t]||fa(),Ma(n,a[t])):Ma(n,a)}else wa(e)&&Ma(JSON.parse(e),a)}),null==s&&o)for(const i in a)ya(a,i)&&Zc(a[i]);return a}function Qc(e){return e.type}function el(e,t,n){let r=xa(t.messages)?t.messages:fa();"__i18nGlobal"in n&&(r=Xc(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 tl(e){return ds(Gr,null,e,0)}const nl=()=>[],rl=()=>!1;let sl=0;function ol(e){return(t,n,r,s)=>e(n,r,xs()||void 0,s)}function al(e={}){const{__root:t,__injectWithOption:n}=e,r=void 0===t,s=e.flatJson,o=sa?xt:St;let a=!ka(e.inheritLocale)||e.inheritLocale;const i=o(t&&a?t.locale.value:wa(e.locale)?e.locale:ec),c=o(t&&a?t.fallbackLocale.value:wa(e.fallbackLocale)||_a(e.fallbackLocale)||Ta(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:i.value),l=o(Xc(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)&&!ca(e.missingWarn)||e.missingWarn,p=t?t.fallbackWarn:!ka(e.fallbackWarn)&&!ca(e.fallbackWarn)||e.fallbackWarn,h=t?t.fallbackRoot:!ka(e.fallbackRoot)||e.fallbackRoot,m=!!e.fallbackFormat,g=ba(e.missing)?e.missing:null,v=ba(e.missing)?ol(e.missing):null,y=ba(e.postTranslation)?e.postTranslation:null,_=t?t.warnHtmlMessage:!ka(e.warnHtmlMessage)||e.warnHtmlMessage,b=!!e.escapeParameter;const w=t?t.modifiers:Ta(e.modifiers)?e.modifiers:{};let k,x=e.pluralRules||t&&t.pluralRules;k=(()=>{r&&cc(null);const t={version:"11.1.11",locale:i.value,fallbackLocale:c.value,messages:l.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:_,escapeParameter:b,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=uc(t);return r&&cc(n),n})(),pc(k,i.value,c.value);const S=As({get:()=>i.value,set:e=>{k.locale=e,i.value=e}}),C=As({get:()=>c.value,set:e=>{k.fallbackLocale=e,c.value=e,pc(k,i.value,e)}}),T=As(()=>l.value),O=As(()=>u.value),E=As(()=>d.value);const M=(e,n,s,o,a,f)=>{let p;i.value,c.value,l.value,u.value,d.value;try{__INTLIFY_PROD_DEVTOOLS__,r||(k.fallbackContext=t?ic:void 0),p=e(k)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(k.fallbackContext=void 0)}if("translate exists"!==s&&ia(p)&&-1===p||"translate exists"===s&&!p){const[e,r]=n();return t&&h?o(t):a(e)}if(f(p))return p;throw Vc(Nc)};function L(...e){return M(t=>Reflect.apply($c,null,[t,...e]),()=>Ac(...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)?tl(String(e)):e)},interpolate:e=>e,type:"vnode"};function $(e){return l.value[e]||{}}sl++,t&&sa&&(fn(t.locale,e=>{a&&(i.value=e,k.locale=e,pc(k,i.value,c.value))}),fn(t.fallbackLocale,e=>{a&&(c.value=e,k.fallbackLocale=e,pc(k,i.value,c.value))}));const P={id:sl,locale:S,fallbackLocale:C,get inheritLocale(){return a},set inheritLocale(e){a=e,e&&t&&(i.value=t.locale.value,c.value=t.fallbackLocale.value,pc(k,i.value,c.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:T,get modifiers(){return w},get pluralRules(){return x||{}},get isGlobal(){return r},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 _},set warnHtmlMessage(e){_=e,k.warnHtmlMessage=e},get escapeParameter(){return b},set escapeParameter(e){b=e,k.escapeParameter=e},t:L,getLocaleMessage:$,setLocaleMessage:function(e,t){if(s){const n={[e]:t};for(const e in n)ya(n,e)&&Zc(n[e]);t=n[e]}l.value[e]=t,k.messages=l.value},mergeLocaleMessage:function(e,t){l.value[e]=l.value[e]||{};const n={[e]:t};if(s)for(const r in n)ya(n,r)&&Zc(n[r]);Ma(t=n[e],l.value[e]),k.messages=l.value},getPostTranslationHandler:function(){return ba(y)?y:null},setPostTranslationHandler:function(e){y=e,k.postTranslation=e},getMissingHandler:function(){return g},setMissingHandler:function(e){null!==e&&(v=ol(e)),g=e,k.missing=v},[Jc]:function(e){x=e,k.pluralRules=x}};return P.datetimeFormats=O,P.numberFormats=E,P.rt=function(...e){const[t,n,r]=e;if(r&&!xa(r))throw Vc(Dc);return L(t,n,ua({resolvedMessage:!0},r||{}))},P.te=function(e,t){return M(()=>{if(!e)return!1;const n=$(wa(t)?t:i.value),r=k.messageResolver(n,e);return di(r)||Rc(r)||wa(r)},()=>[e],"translate exists",n=>Reflect.apply(n.te,n,[e,t]),rl,e=>ka(e))},P.tm=function(e){const n=function(e){let t=null;const n=Vi(k,c.value,i.value);for(let r=0;r<n.length;r++){const s=l.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)||{}},P.d=function(...e){return M(t=>Reflect.apply(gc,null,[t,...e]),()=>yc(...e),"datetime format",t=>Reflect.apply(t.d,t,[...e]),()=>"",e=>wa(e)||_a(e))},P.n=function(...e){return M(t=>Reflect.apply(bc,null,[t,...e]),()=>kc(...e),"number format",t=>Reflect.apply(t.n,t,[...e]),()=>"",e=>wa(e)||_a(e))},P.getDateTimeFormat=function(e){return u.value[e]||{}},P.setDateTimeFormat=function(e,t){u.value[e]=t,k.datetimeFormats=u.value,_c(k,e,t)},P.mergeDateTimeFormat=function(e,t){u.value[e]=ua(u.value[e]||{},t),k.datetimeFormats=u.value,_c(k,e,t)},P.getNumberFormat=function(e){return d.value[e]||{}},P.setNumberFormat=function(e,t){d.value[e]=t,k.numberFormats=d.value,xc(k,e,t)},P.mergeNumberFormat=function(e,t){d.value[e]=ua(d.value[e]||{},t),k.numberFormats=d.value,xc(k,e,t)},P[Gc]=n,P[Bc]=function(...e){return M(t=>{let n;const r=t;try{r.processor=R,n=Reflect.apply($c,null,[r,...e])}finally{r.processor=null}return n},()=>Ac(...e),"translate",t=>t[Bc](...e),e=>[tl(e)],e=>_a(e))},P[Yc]=function(...e){return M(t=>Reflect.apply(gc,null,[t,...e]),()=>yc(...e),"datetime format",t=>t[Yc](...e),nl,e=>wa(e)||_a(e))},P[qc]=function(...e){return M(t=>Reflect.apply(bc,null,[t,...e]),()=>kc(...e),"number format",t=>t[qc](...e),nl,e=>wa(e)||_a(e))},P}function il(e={}){const t=al(function(e){const t=wa(e.locale)?e.locale:ec,n=wa(e.fallbackLocale)||_a(e.fallbackLocale)||Ta(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=ba(e.missing)?e.missing:void 0,s=!ka(e.silentTranslationWarn)&&!ca(e.silentTranslationWarn)||!e.silentTranslationWarn,o=!ka(e.silentFallbackWarn)&&!ca(e.silentFallbackWarn)||!e.silentFallbackWarn,a=!ka(e.fallbackRoot)||e.fallbackRoot,i=!!e.formatFallbackMessages,c=Ta(e.modifiers)?e.modifiers:{},l=e.pluralizationRules,u=ba(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 r=e[n]||(e[n]={});return ua(r,t[n]),e},h||{})}const{__i18n:m,__root:g,__injectWithOption:v}=e,y=e.datetimeFormats,_=e.numberFormats;return{locale:t,fallbackLocale:n,messages:h,flatJson:e.flatJson,datetimeFormats:y,numberFormats:_,missing:r,missingWarn:s,fallbackWarn:o,fallbackRoot:a,fallbackFormat:i,modifiers:c,pluralRules:l,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:p,__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 cl(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[Jc](t.pluralizationRules||e.pluralizationRules);const n=Xc(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 ll={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function ul(){return Jr}const dl=_n({name:"i18n-t",props:ua({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ia(e)||!isNaN(e)}},ll),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||yl({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===Jr?t.children:[t]],[]);return t.reduce((t,n)=>{const r=e[n];return r&&(t[n]=r()),t},fa())}(t,o),c=s[Bc](e.keypath,i,a),l=ua(fa(),r);return Ns(wa(e.tag)||xa(e.tag)?e.tag:ul(),l,c)}}});function fl(e,t,n,r){const{slots:s,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,r)=>n.includes(r)?ua(fa(),t,{[r]:e.format[r]}):t,fa()));const i=r(e.value,t,a);let c=[t.key];_a(i)?c=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 _a(o=r)&&!wa(o[0])&&(r[0].key=`${e.type}-${t}`),r}):wa(i)&&(c=[i]);const l=ua(fa(),o);return Ns(wa(e.tag)||xa(e.tag)?e.tag:ul(),l,c)}}const pl=_n({name:"i18n-n",props:ua({value:{type:Number,required:!0},format:{type:[String,Object]}},ll),setup(e,t){const n=e.i18n||yl({useScope:e.scope,__useComponent:!0});return fl(e,t,wc,(...e)=>n[qc](...e))}});function hl(e){if(wa(e))return{path:e};if(Ta(e)){if(!("path"in e))throw Vc(Uc);return e}throw Vc(Wc)}function ml(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 gl(e,t,...n){const r=Ta(n[0])?n[0]:{};(!ka(r.globalInstall)||r.globalInstall)&&([dl.name,"I18nT"].forEach(t=>e.component(t,dl)),[pl.name,"I18nN"].forEach(t=>e.component(t,pl)),[wl.name,"I18nD"].forEach(t=>e.component(t,wl))),e.directive("t",function(e){const t=t=>{const{instance:n,value:r}=t;if(!n||!n.$)throw Vc(zc);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=hl(r);return[Reflect.apply(s.t,s,[...ml(o)]),s]};return{created:(n,r)=>{const[s,o]=t(r);sa&&e.global===o&&(n.__i18nWatcher=fn(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=hl(t);e.textContent=Reflect.apply(n.t,n,[...ml(r)])}},getSSRProps:e=>{const[n]=t(e);return{textContent:n}}}}(t))}const vl=oa("global-vue-i18n");function yl(e={}){const t=xs();if(null==t)throw Vc(Ic);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Vc(jc);const n=function(e){const t=un(e.isCE?vl:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Vc(e.isCE?Hc:zc);return t}(t),r=function(e){return"composition"===e.mode?e.global:e.global.__composer}(n),s=Qc(t),o=function(e,t){return la(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,s);if("global"===o)return el(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[Gc]&&(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=al(n),a.__composerExtend&&(i[Kc]=a.__composerExtend(i)),function(e,t,n){Fn(()=>{},t),In(()=>{const r=n;e.__deleteInstance(t);const s=r[Kc];s&&(s(),delete r[Kc])},t)}(a,t,i),a.__setInstance(t,i)}return i}const _l=["locale","fallbackLocale","availableLocales"],bl=["t","rt","d","n","tm","te"];const wl=_n({name:"i18n-d",props:ua({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},ll),setup(e,t){const n=e.i18n||yl({useScope:e.scope,__useComponent:!0});return fl(e,t,vc,(...e)=>n[Yc](...e))}});var kl,xl;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),nc=function(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&wa(e)){!ka(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||Ei)(e),r=Mi[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=Ci(s);return o?a:Mi[n]=a}{const t=e.cacheKey;if(t){const n=Mi[t];return n||(Mi[t]=Ci(e))}return Ci(e)}},kl=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,c,l=-1,u=0,d=0;const f=[];function p(){const t=e[l+1];if(5===u&&"'"===t||6===u&&'"'===t)return l++,s="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===r?r=s:r+=s},f[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},f[2]=()=>{f[0](),d++},f[3]=()=>{if(d>0)d--,u=4,f[0]();else{if(d=0,void 0===r)return!1;if(r=Zi(r),!1===r)return!1;f[1]()}};null!==u;)if(l++,n=e[l],"\\"!==n||!p()){if(o=Ki(n),c=Ji[u],a=c[o]||c.l||8,8===a)return;if(u=a[0],void 0!==a[1]&&(i=f[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(ba(s))return null;s=t,o++}return s},rc=kl,sc=Vi,__INTLIFY_PROD_DEVTOOLS__){const e=ha();e.__INTLIFY__=!0,xl=e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__,Li=xl}const Sl={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}"}}},Cl=Object.freeze(Object.defineProperty({__proto__:null,default:Sl},Symbol.toStringTag,{value:"Module"})),Tl="en",Ol=["en","de"];const El=function(){if("undefined"==typeof navigator)return Tl;const e=[...navigator.languages||[],navigator.language].filter(Boolean);for(const t of e){const e=t.toLowerCase().split("-")[0];if(Ol.includes(e))return e}return Tl}(),Ml=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(()=>il(e)):n.run(()=>al(e));if(null==r)throw Vc(zc);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),Ta(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);_l.forEach(e=>{const r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw Vc(zc);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,bl.forEach(n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw Vc(zc);Object.defineProperty(e.config.globalProperties,`$${n}`,r)});const r=()=>{delete e.config.globalProperties.$i18n,bl.forEach(t=>{delete e.config.globalProperties[`$${t}`]})};return r}(e,i.global)),__VUE_I18N_FULL_INSTALL__&&gl(e,i,...r),__VUE_I18N_LEGACY_API__&&t&&e.mixin(function(e,t,n){return{beforeCreate(){const r=xs();if(!r)throw Vc(zc);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=cl(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=il(r);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=cl(e,s);else{this.$i18n=il({__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&&el(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 Vc(zc);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 c=e.unmount;e.unmount=()=>{s&&s(),i.dispose(),c()}},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:El,fallbackLocale:Tl,messages:{[Tl]:Sl}});function Ll(e,t){return function(){return e.apply(t,arguments)}}"undefined"!=typeof window&&async function(e){let t=e;const n=Ml.global;if(!n.availableLocales.includes(t))try{const e=(await import(`../locales/${t}.ts`)).default;n.setLocaleMessage(t,e)}catch(Ff){if(t!==Tl){const e=(await Promise.resolve().then(()=>Cl)).default;n.setLocaleMessage(Tl,e),t=Tl}}n.locale.value=t}(El);const{toString:Rl}=Object.prototype,{getPrototypeOf:$l}=Object,{iterator:Pl,toStringTag:Fl}=Symbol,Al=(e=>t=>{const n=Rl.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Nl=e=>(e=e.toLowerCase(),t=>Al(t)===e),Dl=e=>t=>typeof t===e,{isArray:Il}=Array,jl=Dl("undefined");const Ul=Nl("ArrayBuffer");const Wl=Dl("string"),Hl=Dl("function"),zl=Dl("number"),Vl=e=>null!==e&&"object"==typeof e,Bl=e=>{if("object"!==Al(e))return!1;const t=$l(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Fl in e||Pl in e)},Yl=Nl("Date"),ql=Nl("File"),Jl=Nl("Blob"),Gl=Nl("FileList"),Kl=Nl("URLSearchParams"),[Zl,Xl,Ql,eu]=["ReadableStream","Request","Response","Headers"].map(Nl);function tu(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,s;if("object"!=typeof e&&(e=[e]),Il(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 nu(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 ru="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,su=e=>!jl(e)&&e!==ru;const ou=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&$l(Uint8Array)),au=Nl("HTMLFormElement"),iu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cu=Nl("RegExp"),lu=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};tu(n,(n,s)=>{let o;!1!==(o=t(n,s,e))&&(r[s]=o||n)}),Object.defineProperties(e,r)};const uu=Nl("AsyncFunction"),du=(fu="function"==typeof setImmediate,pu=Hl(ru.postMessage),fu?setImmediate:pu?(hu=`axios@${Math.random()}`,mu=[],ru.addEventListener("message",({source:e,data:t})=>{e===ru&&t===hu&&mu.length&&mu.shift()()},!1),e=>{mu.push(e),ru.postMessage(hu,"*")}):e=>setTimeout(e));var fu,pu,hu,mu;const gu="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ru):"undefined"!=typeof process&&process.nextTick||du,vu={isArray:Il,isArrayBuffer:Ul,isBuffer:function(e){return null!==e&&!jl(e)&&null!==e.constructor&&!jl(e.constructor)&&Hl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Hl(e.append)&&("formdata"===(t=Al(e))||"object"===t&&Hl(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Ul(e.buffer),t},isString:Wl,isNumber:zl,isBoolean:e=>!0===e||!1===e,isObject:Vl,isPlainObject:Bl,isReadableStream:Zl,isRequest:Xl,isResponse:Ql,isHeaders:eu,isUndefined:jl,isDate:Yl,isFile:ql,isBlob:Jl,isRegExp:cu,isFunction:Hl,isStream:e=>Vl(e)&&Hl(e.pipe),isURLSearchParams:Kl,isTypedArray:ou,isFileList:Gl,forEach:tu,merge:function e(){const{caseless:t}=su(this)&&this||{},n={},r=(r,s)=>{const o=t&&nu(n,s)||s;Bl(n[o])&&Bl(r)?n[o]=e(n[o],r):Bl(r)?n[o]=e({},r):Il(r)?n[o]=r.slice():n[o]=r};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&tu(arguments[s],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(tu(t,(t,r)=>{n&&Hl(t)?e[r]=Ll(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&&$l(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Al,kindOfTest:Nl,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(Il(e))return e;let t=e.length;if(!zl(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Pl]).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:au,hasOwnProperty:iu,hasOwnProp:iu,reduceDescriptors:lu,freezeMethods:e=>{lu(e,(t,n)=>{if(Hl(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Hl(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 Il(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:nu,global:ru,isContextDefined:su,isSpecCompliantForm:function(e){return!!(e&&Hl(e.append)&&"FormData"===e[Fl]&&e[Pl])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Vl(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const s=Il(e)?[]:{};return tu(e,(e,t)=>{const o=n(e,r+1);!jl(o)&&(s[t]=o)}),t[r]=void 0,s}}return e};return n(e,0)},isAsyncFn:uu,isThenable:e=>e&&(Vl(e)||Hl(e))&&Hl(e.then)&&Hl(e.catch),setImmediate:du,asap:gu,isIterable:e=>null!=e&&Hl(e[Pl])};function yu(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)}vu.inherits(yu,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:vu.toJSONObject(this.config),code:this.code,status:this.status}}});const _u=yu.prototype,bu={};["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=>{bu[e]={value:e}}),Object.defineProperties(yu,bu),Object.defineProperty(_u,"isAxiosError",{value:!0}),yu.from=(e,t,n,r,s,o)=>{const a=Object.create(_u);return vu.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),yu.call(a,e.message,t,n,r,s),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};function wu(e){return vu.isPlainObject(e)||vu.isArray(e)}function ku(e){return vu.endsWith(e,"[]")?e.slice(0,-2):e}function xu(e,t,n){return e?e.concat(t).map(function(e,t){return e=ku(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Su=vu.toFlatObject(vu,{},null,function(e){return/^is[A-Z]/.test(e)});function Cu(e,t,n){if(!vu.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=vu.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!vu.isUndefined(t[e])})).metaTokens,s=n.visitor||l,o=n.dots,a=n.indexes,i=(n.Blob||"undefined"!=typeof Blob&&Blob)&&vu.isSpecCompliantForm(t);if(!vu.isFunction(s))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(vu.isDate(e))return e.toISOString();if(vu.isBoolean(e))return e.toString();if(!i&&vu.isBlob(e))throw new yu("Blob is not supported. Use a Buffer instead.");return vu.isArrayBuffer(e)||vu.isTypedArray(e)?i&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,s){let i=e;if(e&&!s&&"object"==typeof e)if(vu.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(vu.isArray(e)&&function(e){return vu.isArray(e)&&!e.some(wu)}(e)||(vu.isFileList(e)||vu.endsWith(n,"[]"))&&(i=vu.toArray(e)))return n=ku(n),i.forEach(function(e,r){!vu.isUndefined(e)&&null!==e&&t.append(!0===a?xu([n],r,o):null===a?n:n+"[]",c(e))}),!1;return!!wu(e)||(t.append(xu(s,n,o),c(e)),!1)}const u=[],d=Object.assign(Su,{defaultVisitor:l,convertValue:c,isVisitable:wu});if(!vu.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!vu.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),vu.forEach(n,function(n,o){!0===(!(vu.isUndefined(n)||null===n)&&s.call(t,n,vu.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&&Cu(e,this,t)}const Eu=Ou.prototype;function Mu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Lu(e,t,n){if(!t)return e;const r=n&&n.encode||Mu;vu.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(o=s?s(t,n):vu.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}Eu.append=function(e,t){this._pairs.push([e,t])},Eu.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 Ru{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){vu.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"]},Fu="undefined"!=typeof window&&"undefined"!=typeof document,Au="object"==typeof navigator&&navigator||void 0,Nu=Fu&&(!Au||["ReactNative","NativeScript","NS"].indexOf(Au.product)<0),Du="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Iu=Fu&&window.location.href||"http://localhost",ju={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Fu,hasStandardBrowserEnv:Nu,hasStandardBrowserWebWorkerEnv:Du,navigator:Au,origin:Iu},Symbol.toStringTag,{value:"Module"})),...Pu};function Uu(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&&vu.isArray(r)?r.length:o,i)return vu.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a;r[o]&&vu.isObject(r[o])||(r[o]=[]);return t(e,n,r[o],s)&&vu.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(vu.isFormData(e)&&vu.isFunction(e.entries)){const n={};return vu.forEachEntry(e,(e,r)=>{t(function(e){return vu.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const Wu={transitional:$u,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,s=vu.isObject(e);s&&vu.isHTMLForm(e)&&(e=new FormData(e));if(vu.isFormData(e))return r?JSON.stringify(Uu(e)):e;if(vu.isArrayBuffer(e)||vu.isBuffer(e)||vu.isStream(e)||vu.isFile(e)||vu.isBlob(e)||vu.isReadableStream(e))return e;if(vu.isArrayBufferView(e))return e.buffer;if(vu.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 Cu(e,new ju.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ju.isNode&&vu.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=vu.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Cu(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||r?(t.setContentType("application/json",!1),function(e,t,n){if(vu.isString(e))try{return(t||JSON.parse)(e),vu.trim(e)}catch(Ff){if("SyntaxError"!==Ff.name)throw Ff}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(vu.isResponse(e)||vu.isReadableStream(e))return e;if(e&&vu.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(Ff){if(n){if("SyntaxError"===Ff.name)throw yu.from(Ff,yu.ERR_BAD_RESPONSE,this,null,this.response);throw Ff}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ju.classes.FormData,Blob:ju.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};vu.forEach(["delete","get","head","post","put","patch"],e=>{Wu.headers[e]={}});const Hu=vu.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"]),zu=Symbol("internals");function Vu(e){return e&&String(e).trim().toLowerCase()}function Bu(e){return!1===e||null==e?e:vu.isArray(e)?e.map(Bu):String(e)}function Yu(e,t,n,r,s){return vu.isFunction(r)?r.call(this,t,n):(s&&(t=n),vu.isString(t)?vu.isString(r)?-1!==t.indexOf(r):vu.isRegExp(r)?r.test(t):void 0:void 0)}let qu=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=vu.findKey(r,s);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=Bu(e))}const o=(e,t)=>vu.forEach(e,(e,n)=>s(e,n,t));if(vu.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(vu.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(vu.isObject(e)&&vu.isIterable(e)){let n,r,s={};for(const t of e){if(!vu.isArray(t))throw TypeError("Object iterator must return a key-value pair");s[r=t[0]]=(n=s[r])?vu.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=vu.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(vu.isFunction(t))return t.call(this,e,n);if(vu.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Vu(e)){const n=vu.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 r=!1;function s(e){if(e=Vu(e)){const s=vu.findKey(n,e);!s||t&&!Yu(0,n[s],s,t)||(delete n[s],r=!0)}}return vu.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&&!Yu(0,this[s],s,e,!0)||(delete this[s],r=!0)}return r}normalize(e){const t=this,n={};return vu.forEach(this,(r,s)=>{const o=vu.findKey(n,s);if(o)return t[o]=Bu(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]=Bu(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return vu.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&vu.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[zu]=this[zu]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Vu(e);t[r]||(!function(e,t){const n=vu.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 vu.isArray(e)?e.forEach(r):r(e),this}};function Ju(e,t){const n=this||Wu,r=t||n,s=qu.from(r.headers);let o=r.data;return vu.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){yu.call(this,null==e?"canceled":e,yu.ERR_CANCELED,t,n),this.name="CanceledError"}function Zu(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new yu("Request failed with status code "+n.status,[yu.ERR_BAD_REQUEST,yu.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}qu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),vu.reduceDescriptors(qu.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),vu.freezeMethods(qu),vu.inherits(Ku,yu,{__CANCEL__:!0});const Xu=(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 c=Date.now(),l=r[a];s||(s=c),n[o]=i,r[o]=c;let u=a,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-s<t)return;const f=l&&c-l;return f?Math.round(1e3*d/f):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,c=s(i);r=o;e({loaded:o,total:a,progress:a?o/a:void 0,bytes:i,rate:c||void 0,estimated:c&&a&&o<=a?(a-o)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},Qu=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ed=e=>(...t)=>vu.asap(()=>e(...t)),td=ju.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ju.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ju.origin),ju.navigator&&/(msie|trident)/i.test(ju.navigator.userAgent)):()=>!0,nd=ju.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const a=[e+"="+encodeURIComponent(t)];vu.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),vu.isString(r)&&a.push("path="+r),vu.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 rd(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 sd=e=>e instanceof qu?{...e}:e;function od(e,t){t=t||{};const n={};function r(e,t,n,r){return vu.isPlainObject(e)&&vu.isPlainObject(t)?vu.merge.call({caseless:r},e,t):vu.isPlainObject(t)?vu.merge({},t):vu.isArray(t)?t.slice():t}function s(e,t,n,s){return vu.isUndefined(t)?vu.isUndefined(e)?void 0:r(void 0,e,0,s):r(e,t,0,s)}function o(e,t){if(!vu.isUndefined(t))return r(void 0,t)}function a(e,t){return vu.isUndefined(t)?vu.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 c={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(sd(e),sd(t),0,!0)};return vu.forEach(Object.keys(Object.assign({},e,t)),function(r){const o=c[r]||s,a=o(e[r],t[r],r);vu.isUndefined(a)&&o!==i||(n[r]=a)}),n}const ad=e=>{const t=od({},e);let n,{data:r,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:c}=t;if(t.headers=i=qu.from(i),t.url=Lu(rd(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),vu.isFormData(r))if(ju.hasStandardBrowserEnv||ju.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(ju.hasStandardBrowserEnv&&(s&&vu.isFunction(s)&&(s=s(t)),s||!1!==s&&td(t.url))){const e=o&&a&&nd.read(a);e&&i.set(o,e)}return t},id="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=ad(e);let s=r.data;const o=qu.from(r.headers).normalize();let a,i,c,l,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){l&&l(),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=qu.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Zu(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 yu("Request aborted",yu.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new yu("Network Error",yu.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||$u;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new yu(t,s.clarifyTimeoutError?yu.ETIMEDOUT:yu.ECONNABORTED,e,m)),m=null},void 0===s&&o.setContentType(null),"setRequestHeader"in m&&vu.forEach(o.toJSON(),function(e,t){m.setRequestHeader(t,e)}),vu.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([c,u]=Xu(p,!0),m.addEventListener("progress",c)),f&&m.upload&&([i,l]=Xu(f),m.upload.addEventListener("progress",i),m.upload.addEventListener("loadend",l)),(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===ju.protocols.indexOf(v)?n(new yu("Unsupported protocol "+v+":",yu.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 yu?t:new Ku(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,s(new yu(`timeout ${t} of ms exceeded`,yu.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=()=>vu.asap(a),i}},ld=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},ud=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()}},dd=(e,t,n,r)=>{const s=async function*(e,t){for await(const n of ud(e))yield*ld(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,pd=fd&&"function"==typeof ReadableStream,hd=fd&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),md=(e,...t)=>{try{return!!e(...t)}catch(Ff){return!1}},gd=pd&&md(()=>{let e=!1;const t=new Request(ju.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),vd=pd&&md(()=>vu.isReadableStream(new Response("").body)),yd={stream:vd&&(e=>e.body)};var _d;fd&&(_d=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!yd[e]&&(yd[e]=vu.isFunction(_d[e])?t=>t[e]():(t,n)=>{throw new yu(`Response type '${e}' is not supported`,yu.ERR_NOT_SUPPORT,n)})}));const bd=async(e,t)=>{const n=vu.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(vu.isBlob(e))return e.size;if(vu.isSpecCompliantForm(e)){const t=new Request(ju.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return vu.isArrayBufferView(e)||vu.isArrayBuffer(e)?e.byteLength:(vu.isURLSearchParams(e)&&(e+=""),vu.isString(e)?(await hd(e)).byteLength:void 0)})(t):n},wd={http:null,xhr:id,fetch:fd&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:a,onDownloadProgress:i,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:f}=ad(e);l=l?(l+"").toLowerCase():"text";let p,h=cd([s,o&&o.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(c&&gd&&"get"!==n&&"head"!==n&&0!==(g=await bd(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(vu.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Qu(g,Xu(ed(c)));r=dd(n.body,65536,e,t)}}vu.isString(d)||(d=d?"include":"omit");const s="credentials"in Request.prototype;p=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:s?d:void 0});let o=await fetch(p,f);const a=vd&&("stream"===l||"response"===l);if(vd&&(i||a&&m)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=o[t]});const t=vu.toFiniteNumber(o.headers.get("content-length")),[n,r]=i&&Qu(t,Xu(ed(i),!0))||[];o=new Response(dd(o.body,65536,n,()=>{r&&r(),m&&m()}),e)}l=l||"text";let v=await yd[vu.findKey(yd,l)||"text"](o,e);return!a&&m&&m(),await new Promise((t,n)=>{Zu(t,n,{data:v,headers:qu.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 yu("Network Error",yu.ERR_NETWORK,e,p),{cause:v.cause||v});throw yu.from(v,v&&v.code,e,p)}})};vu.forEach(wd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Ff){}Object.defineProperty(e,"adapterName",{value:t})}});const kd=e=>`- ${e}`,xd=e=>vu.isFunction(e)||null===e||!1===e,Sd=e=>{e=vu.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,!xd(n)&&(r=wd[(t=String(n)).toLowerCase()],void 0===r))throw new yu(`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 yu("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(kd).join("\n"):" "+kd(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Cd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ku(null,e)}function Td(e){Cd(e),e.headers=qu.from(e.headers),e.data=Ju.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 Cd(e),t.data=Ju.call(e,e.transformResponse,t),t.headers=qu.from(t.headers),t},function(t){return Gu(t)||(Cd(e),t&&t.response&&(t.response.data=Ju.call(e,e.transformResponse,t.response),t.response.headers=qu.from(t.response.headers))),Promise.reject(t)})}const Od="1.10.0",Ed={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ed[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Md={};Ed.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 yu(r(s," has been removed"+(t?" in "+t:"")),yu.ERR_DEPRECATED);return t&&!Md[s]&&(Md[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)}},Ed.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const Ld={assertOptions:function(e,t,n){if("object"!=typeof e)throw new yu("options must be an object",yu.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 yu("option "+o+" must be "+n,yu.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new yu("Unknown option "+o,yu.ERR_BAD_OPTION)}},validators:Ed},Rd=Ld.validators;let $d=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ru,response:new Ru}}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(Ff){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=od(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:s}=t;void 0!==n&&Ld.assertOptions(n,{silentJSONParsing:Rd.transitional(Rd.boolean),forcedJSONParsing:Rd.transitional(Rd.boolean),clarifyTimeoutError:Rd.transitional(Rd.boolean)},!1),null!=r&&(vu.isFunction(r)?t.paramsSerializer={serialize:r}:Ld.assertOptions(r,{encode:Rd.function,serialize:Rd.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Ld.assertOptions(t,{baseUrl:Rd.spelling("baseURL"),withXsrfToken:Rd.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=s&&vu.merge(s.common,s[t.method]);s&&vu.forEach(["delete","get","head","post","put","patch","common"],e=>{delete s[e]}),t.headers=qu.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 c=[];let l;this.interceptors.response.forEach(function(e){c.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,c),u=e.length,l=Promise.resolve(t);d<u;)l=l.then(e[d++],e[d++]);return l}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{l=Td.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=c.length;d<u;)l=l.then(c[d++],c[d++]);return l}getUri(e){return Lu(rd((e=od(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};vu.forEach(["delete","get","head","options"],function(e){$d.prototype[e]=function(t,n){return this.request(od(n||{},{method:e,url:t,data:(n||{}).data}))}}),vu.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,s){return this.request(od(s||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}$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 Fd=function e(t){const n=new $d(t),r=Ll($d.prototype.request,n);return vu.extend(r,$d.prototype,n,{allOwnKeys:!0}),vu.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(od(t,n))},r}(Wu);Fd.Axios=$d,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=Cu,Fd.AxiosError=yu,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 vu.isObject(e)&&!0===e.isAxiosError},Fd.mergeConfig=od,Fd.AxiosHeaders=qu,Fd.formToJSON=e=>Uu(vu.isHTMLForm(e)?new FormData(e):e),Fd.getAdapter=Sd,Fd.HttpStatusCode=Pd,Fd.default=Fd;const{Axios:Ad,AxiosError:Nd,CanceledError:Dd,isCancel:Id,CancelToken:jd,VERSION:Ud,all:Wd,Cancel:Hd,isAxiosError:zd,spread:Vd,toFormData:Bd,AxiosHeaders:Yd,HttpStatusCode:qd,formToJSON:Jd,getAdapter:Gd,mergeConfig:Kd}=Fd,Zd=e=>JSON.parse(JSON.stringify(e)),Xd={plugins:"background-color: #3f2d56; color: #FFF",startup:"background-color: #5A8C99; color: #FFF",auth:"background-color: #5A8C99; color: #FFF",websocket:"background-color: #5A8C99; color: #FFF"},Qd=new Proxy({},{get:function(e,t,n){return(e,n)=>((e,t,n)=>{const r=n?`color: ${n}`:Xd[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 ef={};class tf{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 ef}static handleCall(e,t){if("GET"===e.method&&!t?.bypassCache){const n=tf.cache(Fd.getUri(e),void 0,t);if(n)return Promise.resolve(n)}return Fd.request(e).then(n=>("GET"===e.method&&tf.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:tf.getCacheKey(e);if(Qd.cache(r),t){const e=n?.id?n.id:r;return void(ef[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=ef[r];if(!s)return null;if(s.cacheLifetime&&s.cacheLifetime<Date.now())return delete ef[r],null;const o=Zd(s);return delete o?.action,delete o?.group,delete o?.id,o.isCache=!0,o}static flushCache(e,t){e||t?Object.keys(ef).forEach(n=>{let r=!1;const s=ef[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 ef[n]}):ef={}}static flushId(e){delete ef[e]}conversations={list:()=>tf.handleCall({method:"GET",url:this.getUrl("api",["conversations","list"]),headers:this.getHeaders()},{group:"conversations",action:"list"}),activate:()=>tf.handleCall({method:"POST",url:this.getUrl("api",["hosting",this.company,this.project,"activate"]),headers:this.getHeaders(),params:{}}),create:e=>tf.handleCall({method:"POST",url:this.getUrl("api",["conversations"]),headers:this.getHeaders(),data:e}),rename:(e,t)=>tf.handleCall({method:"PUT",url:this.getUrl("api",["conversations",e,"name"]),headers:this.getHeaders(),data:{name:t}}),participants:(e,t,n)=>tf.handleCall({method:"PUT",url:this.getUrl("api",["conversations",e,"participants"]),headers:this.getHeaders(),data:{add:t,remove:n}}),leave:e=>tf.handleCall({method:"POST",url:this.getUrl("api",["conversations",e,"leave"]),headers:this.getHeaders()}),listParticipants:e=>tf.handleCall({method:"GET",url:this.getUrl("api",["conversations",e,"participants"]),headers:this.getHeaders()},{bypassCache:!0}),rights:(e,t,n)=>tf.handleCall({method:"PUT",url:this.getUrl("api",["conversations",e,"rights"]),headers:this.getHeaders(),data:{user:t,rights:n}}),block:(e,t,n)=>tf.handleCall({method:"PUT",url:this.getUrl("api",["conversations",e,"block"]),headers:this.getHeaders(),data:{user:t,block:n}})};contacts={list:e=>tf.handleCall({method:"GET",url:this.getUrl("api",["contacts"]),headers:this.getHeaders(),params:e?{search:e}:void 0},{group:"contacts",action:"list"}),single:e=>tf.handleCall({method:"GET",url:this.getUrl("api",["contacts",e]),headers:this.getHeaders()}),block:e=>tf.handleCall({method:"POST",url:this.getUrl("api",["contacts",e,"block"]),headers:this.getHeaders()}),unblock:e=>tf.handleCall({method:"DELETE",url:this.getUrl("api",["contacts",e,"block"]),headers:this.getHeaders()})};messages={list:(e,t)=>tf.handleCall({method:"GET",url:this.getUrl("api",["messages",e]),headers:this.getHeaders(),params:{beforeId:t}},{group:"messages",action:"list",id:e})};health={health:()=>tf.handleCall({method:"GET",url:this.getUrl("api",["health"]),headers:this.getHeaders()})}}const nf=qo("user",()=>({user:xt()})),rf=qo("main",()=>{const e=xt("conversations"),t=xt("chat"),n=xt("disconnected"),r=xt(!1),s=xt(["chat"]),o=As(()=>s.value.includes("chat")),a=As(()=>s.value.includes("support")),i=As(()=>a.value&&!o.value),c=xt("full");return{leftTarget:e,mainTarget:t,state:n,fullscreen:r,features:s,hasChat:o,hasSupport:a,isSupportOnly:i,viewMode:c,setViewMode:function(e){c.value=e},supportParticipants:xt([]),wsUrl:xt("ws://localhost:3001"),apiUrl:xt("http://localhost:3000"),mediaUrl:xt("http://localhost:3000"),authToken:xt("devToken"),showConversations:function(){e.value="conversations"},showNewChat:function(){},showEditChat:function(){e.value="contacts-edit"},hideLeft:function(){e.value=void 0}}}),sf=[];for(let Xp=0;Xp<256;++Xp)sf.push((Xp+256).toString(16).slice(1));let of;const af=new Uint8Array(16);const cf={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function lf(e,t,n){if(cf.randomUUID&&!e)return cf.randomUUID();const r=(e=e||{}).random??e.rng?.()??function(){if(!of){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");of=crypto.getRandomValues.bind(crypto)}return of(af)}();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(sf[e[t+0]]+sf[e[t+1]]+sf[e[t+2]]+sf[e[t+3]]+"-"+sf[e[t+4]]+sf[e[t+5]]+"-"+sf[e[t+6]]+sf[e[t+7]]+"-"+sf[e[t+8]]+sf[e[t+9]]+"-"+sf[e[t+10]]+sf[e[t+11]]+sf[e[t+12]]+sf[e[t+13]]+sf[e[t+14]]+sf[e[t+15]]).toLowerCase()}(r)}function uf(e){return"string"==typeof e?e:e?.id}function df(e=[]){return e.map(uf)}const ff=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 tf("chat",function(){const e=rf();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))}}}),pf=qo("conversations",()=>{const e=xt([]),t=xt(),n=xt({}),r=new Map;function s(){const e=rf();return{authToken:e.authToken,customEndpoints:{api:e.apiUrl,media:e.mediaUrl}}}function o(t,n,r="chat"){const s=lf();return e.value.push({id:s,isNew:!0,participants:t,creator:n,operationMode:r}),s}async function a(n){const r=e.value.find(e=>e._id===n||e.id===n);t.value=r||null}function i(t){return e.value.find(e=>e._id===t||e.id===t)}function c(){e.value.forEach(e=>{l(e._id)})}function l(e){const t=i(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:async function(){const t=new tf("chat",s());((await t.conversations.list()).data||[]).forEach(t=>{e.value.some(e=>e._id===t._id||e.id===t.id&&t.id)||e.value.push(t),ff().ingest(t.participants)}),c()},conversations:e,typing:n,setTyping:function e(t,s,o){const a=`${t}:${s}`,i=r.get(a);i&&clearTimeout(i);const c=n.value[t]||[];o?(c.includes(s)||(n.value[t]=[...c,s]),r.set(a,setTimeout(()=>e(t,s,!1),7e3))):(n.value[t]=c.filter(e=>e!==s),r.delete(a))},loadParticipants:async function(e){const t=new tf("chat",s()),n=await t.conversations.listParticipants(e),r=i(e);return r&&(r.participantDocs=n.data||[]),n.data||[]},setRights:function(e,t,n){return new tf("chat",s()).conversations.rights(e,t,n)},blockUser:function(e,t,n){return new tf("chat",s()).conversations.block(e,t,n)},updateParticipantRights:function(e,t,n){const r=i(e);if(!r)return;const s=r.participantDocs?.find(e=>e.user===t);s&&(s.rights=n),r.participant&&nf().user===t&&(r.participant.rights=n)},create:async function(e){const t=new tf("chat",s());return await t.conversations.create({participants:e})},createNew:o,startSupport:function(){const t=nf().user;if(!t)return;const n=e.value.find(e=>"support"===e.operationMode);if(n){const e=n._id||n.id;return a(e),e}const r=rf().supportParticipants.filter(e=>e!==t),s=o([t,...r],t,"support");return a(s),s},activateConversation:a,activeConversation:t,convertTempToConversation:function(t){const n=i(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),ff().ingest(t.participants),l(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),ff().ingest(n.participants)}(t)},getMessagesFromApi:async function(e,t){const n=new tf("chat",s());return(await n.messages.list(e,t)).data},addMessagesToConversation:function(e,t){const n=i(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)},getMessagesForConversation:function(e){const t=i(e);if(!t)return[];const n=Zd(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:l,updateAllUnread:c,increaseMessageCount:function(e){const t=i(e);t&&t.messagesCount++},increaseMessageCountSystem:function(e){const t=i(e);t&&t.messagesCountSystem++},setLastReadId:function(e,t){const n=i(e);n&&(n.participant.lastReadId=t)},getConversation:i,addParticipant:function(e,t){const n=i(e);n&&(n.participants.some(e=>uf(e)===t)||n.participants.push(t))},removeParticipant:function(e,t){const n=i(e);if(!n)return;const r=n.participants.findIndex(e=>uf(e)===t);-1!==r&&n.participants.splice(r,1)},setParticipants:function(e,t){const n=i(e);n&&(n.participants=t,ff().ingest(t))},toggleParticipant:function(e,t){const n=i(e);if(!n)return;const r=n.participants.findIndex(e=>uf(e)===t);-1===r?n.participants.push(t):n.participants.splice(r,1)},getConversationViaParticipantsAndName:function(t,n,r){const s=df(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=df(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=df(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=i(e);if(n?.isNew)return n.name=t,Promise.resolve();{const n=new tf("chat",s());return await n.conversations.rename(e,t)}},conversationRenamed:function(e,t){const n=i(e);n&&(n.name=t)},executeParticipantsEdit:function(e,t,n){return new tf("chat",s()).conversations.participants(e,t,n)},updateConversationParticipant:function(e,t){const n=i(e);n&&(n.participant.state=t)},leave:function(e){return new tf("chat",s()).conversations.leave(e)}}}),hf={class:"conversations-module"},mf=["onClick"],gf={class:"time"},vf={key:3,class:"lastMessage"},yf={key:4,class:"unread"},_f={key:5,class:"draft"},bf=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},wf=bf(_n({__name:"conversations.module",setup(e){const t=pf(),n=rf(),r=nf();fn(()=>r.user,e=>{e&&(t.cleanConversations(),t.getAllConversations())},{immediate:!0});const s=As(()=>Zd(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=As(()=>t.activeConversation);function a(e){t.activateConversation(e),n.hideLeft()}let i=!1;return fn(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=zn("participants-partial");return es(),ss("section",hf,[(es(!0),ss(Jr,null,Yn(s.value,t=>(es(),ss("article",{key:t._id,class:B(["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},[ps(K(e.$t("support")),1)],64)):t.name?(es(),ss(Jr,{key:1},[ps(K(t.name),1)],64)):(es(),os(n,{key:2,participants:t.participants,"remove-user":""},null,8,["participants"])),us("span",gf,K(Ot(Xo)(t.lastMessage?.history.created).fromNow()),1),t.lastMessage?(es(),ss("p",vf,K(t.lastMessage.message),1)):hs("",!0),t.unread?(es(),ss("span",yf,K(t.unreadCount),1)):hs("",!0),t.isNew?(es(),ss("span",_f,"draft")):hs("",!0)],10,mf))),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"]]),kf=_n({__name:"chats.module",setup(e){const t=pf(),n=As(()=>t.activeConversation);return(e,t)=>{const r=zn("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=B(t)),n&&(e.style=U(n)),e}(ys({key:0},n.value)),null,16)):hs("",!0)}}});class xf{static instance=null;socket=null;currentOptions=null;retryCount=0;retryDelay=1e3;retryTimeoutId=null;refCount=0;onConnectionChange;heartbeatIntervalId=null;lastActivity=0;constructor(){}static getInstance(){return xf.instance||(xf.instance=new xf),xf.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:c=3e4,inactivityTimeoutMs:l=6e4,buildPingMessage:u}=e;if(this.currentOptions={...e,maxRetries:n,maxRetryDelay:r,heartbeatIntervalMs:c,inactivityTimeoutMs:l,buildPingMessage:u},this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING))return void Qd.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(),Qd.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;Qd.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 Qd.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 Qd.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();Qd.websocket(`Attempting to reconnect (${this.retryCount}/${e}) in ${t}ms`),this.retryTimeoutId=setTimeout(()=>{this.currentOptions&&this.refCount>0&&this.connect(this.currentOptions)},t)}else Qd.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 Sf(){const e=xf.getInstance(),t=rf();e.acquire(),e.onConnectionChange=e=>{t.state=e?"connected":"disconnected"};return In(()=>{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 Cf={"conversation:new":e=>{const t=pf();t.convertTempToConversation(e),tf.flushId(e._id),e.id&&e.id===t.activeConversation.id&&rf().showConversations()},"conversation:renamed":e=>{pf().conversationRenamed(e.conversation,e.names.to)},"conversation:participants":e=>{pf().setParticipants(e.conversation,e.participants)},"conversation:left":e=>{const t=nf(),n=pf();n.removeParticipant(e.conversation,e.user),t.user===e.user&&n.updateConversationParticipant(e.conversation,"left")},"conversation:removed":e=>{const t=pf();t.activeConversation?._id===e.conversation&&(t.inactivateConversation(),rf().showConversations()),t.abandonConversation(e.conversation)},"conversation:rights":e=>{pf().updateParticipantRights(e.conversation,e.user,e.rights)},"conversation:typing":e=>{pf().setTyping(e.conversation,e.user,e.typing)},message:e=>{const t=pf(),n=nf();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 Tf=null;async function Of(){if(Tf)return await Tf()}function Ef(e,t,n,r){e.forEach(e=>{const t=function(e,t){return`${e}-${t}`}(e.name,n);r.component(t,e.component)})}const Mf=qo("calls",()=>{const e=xt({});return{calls:e,addCall:function(){const t=lf();return e.value[t]="pending",t},updateCall:function(t,n){e.value[t]=n}}});var Lf,Rf={exports:{}};var $f,Pf,Ff,Af=(Lf||(Lf=1,Rf.exports=($f="minute",Pf=/[+-]\d\d(?::?\d\d)?/g,Ff=/([+-]|\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(),$f):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(Pf);if(!t)return null;var n=(""+t[0]).match(Ff)||["-",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,$f)).$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 c=r.toDate;r.toDate=function(e){return"s"===e&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var l=r.diff;r.diff=function(e,t,r){if(e&&this.$u===e.$u)return l.call(this,e,t,r);var s=this.local(),o=n(e).local();return l.call(s,o,t,r)}})),Rf.exports);const Nf=Jo(Af);var Df,If={exports:{}};var jf=(Df||(Df=1,If.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 c=r[i],l=c.type,u=c.value,d=e[l];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(s.utc(h).valueOf()-(m-=m%1e3))/6e4},c=r.prototype;c.tz=function(e,t){void 0===e&&(e=o);var n,r=this.utcOffset(),a=this.toDate(),i=a.toLocaleString("en-US",{timeZone:e}),c=Math.round((a-new Date(i))/1e3/60),l=15*-Math.round(a.getTimezoneOffset()/15)-c;if(Number(l)){if(n=s(i,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(l,!0),t){var u=n.utcOffset();n=n.add(r-u,"minute")}}else n=this.utcOffset(0,t);return n.$x.$timezone=e,n},c.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 l=c.startOf;c.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return l.call(this,e,t);var n=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return l.call(n,e,t).tz(this.$x.$timezone,!0)},s.tz=function(e,t,n){var r=n&&t,a=n||t||o,c=i(+s(),a);if("string"!=typeof e)return s(e).tz(a);var l=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(),c,a),u=l[0],d=l[1],f=s(u).utcOffset(d);return f.$x.$timezone=a,f},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(e){o=e}}}()),If.exports);const Uf=Jo(jf);var Wf,Hf={exports:{}};var zf=(Wf||(Wf=1,Hf.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)}}}()),Hf.exports);const Vf=Jo(zf);var Bf,Yf={exports:{}};Bf||(Bf=1,Yf.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}(Zo()));var qf,Jf={exports:{}};qf||(qf=1,Jf.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(Nf),Xo.extend(Uf),Xo.extend(Vf);const Gf=navigator.language||navigator.languages?.[0]||"en";Xo.locale(Gf);const Kf=Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC";function Zf(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(Kf).format(t)}(e.history.created),s=function(e,t="HH:mm"){return Xo(e).tz(Kf).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,c=i[i.length-1];if(!c||"system"===c.origin||"system"===o||c.user!==a||c.origin!==o||c.time!==s){const t={user:a,origin:o,time:s,isUser:e.isUser,messages:[e]};i.push(t)}else c.messages.push(e)}),Object.values(r)}const Xf={class:"chat-messages"},Qf={class:"date-separator"},ep={class:"message-content"},tp=["id"],np={key:2,class:"typing-indicator"},rp=bf(_n({__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}=Mf();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}=Sf(),{user:a}=nf(),i=pf(),c=ff(),l=e,u=As(()=>i.getMessagesForConversation(l._id||"")),d=As(()=>i.getConversation(l._id||l.id)),f=xt(""),p=xt(),h=xt(!0),m=xt(!0),g=xt(!1),v=xt(!1),y=xt(null),_=rf();let b=null,w=null,k=0;function x(){g.value=p.value&&p.value.scrollHeight>p.value.clientHeight}function S(){x()}const C=As(()=>"support"===l.operationMode);async function T(){const e=await t(i.getMessagesFromApi(l._id,F.value),void 0,{time:1e3});i.addMessagesToConversation(e,l._id)}async function O(){if(!l.isNew&&l._id&&!d.value?.messagesLoaded){d.value&&(d.value.messagesLoaded=!0);try{const e=await t(i.getMessagesFromApi(l._id),void 0,{time:0});i.addMessagesToConversation(e,l._id),E()}catch(e){throw d.value&&(d.value.messagesLoaded=!1),e}}}function E(){d.value?.participant?.lastReadId<d.value?.lastMessage?.id&&(s(l._id,d.value.lastMessage.id),i.setLastReadId(l._id,d.value.lastMessage.id),i.updateUnread(l._id))}function M(){b&&clearTimeout(b),b=setTimeout(()=>{if(p.value){const{scrollTop:e,scrollHeight:t,clientHeight:n}=p.value,r=Math.max(10*n/100,1);m.value=e<=r,h.value=e+n>=t-r}},100)}function L(){_.showConversations(),i.abandonConversation(l.id),i.inactivateConversation()}function R(){if(!l._id)return;const e=Date.now();e-k>3e3&&(k=e,o(l._id,!0)),w&&clearTimeout(w),w=setTimeout($,4e3)}function $(){w&&(clearTimeout(w),w=null),k&&(k=0,l._id&&o(l._id,!1))}fn(()=>l._id,()=>{O(),h.value=!0},{immediate:!0}),fn(()=>m.value,async()=>{if(m.value&&F.value>A.value){const e=`message-${F.value}`;await T(),Kt(()=>p.value.scrollTop=document.getElementById(e)?.offsetTop||0)}}),fn(u,async()=>{u.value.length?(await Kt(),E(),x(),F.value>A.value&&(g.value||await T()),h.value&&p.value&&(p.value.scrollTop=p.value.scrollHeight,h.value=!0)):O()},{deep:!0}),fn(()=>[l.participants,l.name],()=>{if(l.participants?.length<=1||!l.isNew)return v.value=!1,!1;const e=i.getConversationViaParticipantsAndName(l.participants,l.name,{exclude:[l.id]});e?.isNew||(e?._id?(v.value=!0,y.value=e._id):v.value=!1)},{deep:!0}),fn(u,e=>{c.ensure((e||[]).map(e=>e.user))},{immediate:!0});const P=As(()=>Zf(u.value,a)),F=As(()=>u.value[0]?.id),A=As(()=>{const e=i.getConversation(l._id);return e?.oldestMessageId}),N=As(()=>d.value?.isNew||"active"===d.value?.participant?.state&&d.value?.participant?.rights?.includes("write")),D=As(()=>(i.typing[l._id||""]||[]).filter(e=>e!==a));return Fn(()=>{x(),window.addEventListener("resize",S)}),Dn(()=>{b&&clearTimeout(b),window.removeEventListener("resize",S),$()}),(t,s)=>{const o=zn("chat-header-partial"),a=zn("button-partial"),c=zn("notice-partial"),u=zn("contacts-module"),h=zn("user-name-partial"),m=zn("system-message-partial"),g=zn("chat-input-partial");return es(),ss("section",{class:B(["chat-module",{isNew:e.isNew}])},[ds(o,{conversation:l._id||l.id},null,8,["conversation"]),ds(c,{type:"notice"},{default:an(()=>[e.isNew&&!C.value?(es(),os(a,{key:0,variant:"danger",size:"sm",onClick:L},{default:an(()=>[...s[3]||(s[3]=[ps(" 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(l.id),i.activateConversation(t),void _.showConversations();var t})},{default:an(()=>[...s[4]||(s[4]=[ps(" 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:p,class:"chat-messages-scroll-container",onScroll:M},[us("div",Xf,[(es(!0),ss(Jr,null,Yn(P.value,e=>(es(),ss("div",{key:e.date,class:"messages-group"},[us("div",Qf,K(e.date),1),(es(!0),ss(Jr,null,Yn(e.userTimeGroups,(e,t)=>(es(),ss("div",{key:t,class:B([[{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,K(e.time),1)]),us("div",ep,[(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},[ps(K(e.message),1)],64)):hs("",!0)],8,tp))),128))])],2))),128))]))),128))])],544)),D.value.length?(es(),ss("div",np,K(D.value.join(", "))+" "+K(D.value.length>1?"are":"is")+" writing… ",1)):hs("",!0),N.value?(es(),os(g,{key:3,modelValue:f.value,"onUpdate:modelValue":s[1]||(s[1]=e=>f.value=e),disabled:!!v.value,placeholder:"Type a 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&&(l.isNew&&l.participants&&l.id?n(t,df(l.participants),d.value?.name,l.id,l.operationMode):r(t,l._id),$(),f.value="")}(f.value)),onTyping:R},null,8,["modelValue","disabled"])):hs("",!0)],2)}}}),[["styles",[".chat-module[data-v-44131188]{display:grid;height:100%;grid-template-rows:80px 1fr 80px;overflow:hidden}.chat-module.isNew[data-v-44131188]{grid-template-rows:80px 1fr 80px}.chat-module .notice-partial[data-v-44131188]{position:absolute;align-self:center;justify-self:center;z-index:100}.chat-module .chat-messages-scroll-container[data-v-44131188]{overflow-y:auto;position:relative;padding-bottom:50px;display:grid}.chat-module .chat-messages-scroll-container .chat-messages[data-v-44131188]{display:grid;grid-auto-rows:max-content;align-content:end}.chat-module .chat-messages-scroll-container .chat-messages .messages-group[data-v-44131188]{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-44131188]{display:grid;grid-template-rows:auto auto;gap:5px;justify-self:start;width:max-content}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message.system[data-v-44131188]{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-44131188]{justify-content:center;grid-template-columns:1fr}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message.system header time[data-v-44131188]{text-align:center;color:var(--scm-color-muted);font-size:12px}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message.system .message-content p[data-v-44131188]{background-color:transparent;padding:0;color:var(--scm-color-muted);font-size:12px;white-space:pre-wrap}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message header[data-v-44131188]{display:grid;grid-template-columns:max-content max-content;gap:10px;width:100%;font-size:14px}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message header time[data-v-44131188]{text-align:right}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message .message-content[data-v-44131188]{display:grid;gap:4px}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message .message-content p[data-v-44131188]{padding:10px;border-radius:5px;background-color:var(--scm-color-primary);color:#fff;width:max-content;justify-self:start;white-space:pre-wrap;font-size:14px}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message.isUser[data-v-44131188]{justify-self:end}.chat-module .chat-messages-scroll-container .chat-messages .messages-group .message.isUser p[data-v-44131188]{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-44131188]{grid-template-columns:1fr}.chat-module .typing-indicator[data-v-44131188]{padding:4px 20px;font-size:12px;color:var(--scm-color-muted);font-style:italic}.chat-module .date-separator[data-v-44131188]{text-align:center;padding:20px 0;font-size:.875rem;font-weight:700}"]],["__scopeId","data-v-44131188"]]);const sp=qo("contacts",()=>{const e=nf(),t=xt([]);return{contacts:As(()=>t.value.filter(t=>t.id!==e.user)),users:t,loadUsers:async function(e){const n=new tf("chat",function(){const e=rf();return{authToken:e.authToken,customEndpoints:{api:e.apiUrl,media:e.mediaUrl}}}()),r=await n.contacts.list(e);return t.value=r.data,ff().ingest(r.data),t.value}}}),op={class:"contacts-module"},ap={key:0,class:"controls"},ip={key:1,class:"rights-panel"},cp={class:"who"},lp={class:"rights"},up=["checked","onChange"],dp=["onClick","onKeydown"],fp={key:0,class:"selected-indicator"},pp=bf(_n({__name:"contacts.module",setup(e){const t=rf(),n=sp(),r=pf(),s=xt([]),o=As(()=>r.activeConversation);function a(){const e=r.activeConversation;e&&(s.value=df(Zd(e.participants)))}Pn(()=>{n.loadUsers(),a(),i.value&&h()}),fn(()=>o.value?.participants,()=>a()),fn(()=>o.value?._id,()=>{i.value&&h()});const i=As(()=>"contacts-edit"===t.leftTarget),c=As(()=>{if(o.value.isNew){const e=r.activeConversation;return Zd(n.contacts).map(t=>({id:t.id,name:t.name,inConversation:!!e&&df(e.participants).includes(t.id)}))}if("contacts-edit"===t.leftTarget){return Zd(n.contacts).map(e=>({id:e.id,name:e.name,inConversation:s.value.includes(e.id)}))}return n.contacts});function l(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=df(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 f=["read","write","rename","participants","block"],p=As(()=>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=zn("button-partial"),s=zn("user-name-partial");return es(),ss("article",op,[i.value?(es(),ss("section",ap,[ds(n,{variant:"primary",size:"sm",onClick:d},{default:an(()=>[...t[0]||(t[0]=[ps(" save edits ",-1)])]),_:1}),ds(n,{variant:"secondary",size:"sm","aria-label":"Cancel edits",onClick:u},{default:an(()=>[...t[1]||(t[1]=[ps(" x ",-1)])]),_:1})])):hs("",!0),i.value?(es(),ss("section",ip,[t[3]||(t[3]=us("h4",null,"participant rights",-1)),us("ul",null,[(es(!0),ss(Jr,null,Yn(p.value,e=>(es(),ss("li",{key:e.user,class:"participant-rights"},[us("span",cp,[ds(s,{"user-id":e.user},null,8,["user-id"]),t[2]||(t[2]=ps()),us("em",null,"("+K(e.state)+")",1)]),us("span",lp,[(es(),ss(Jr,null,Yn(f,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,up),ps(" "+K(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(()=>[ps(K(g(e)?"unblock":"block"),1)]),_:2},1032,["variant","onClick"])]))),128))])])):hs("",!0),us("ul",null,[(es(!0),ss(Jr,null,Yn(c.value,e=>(es(),ss("li",{key:e.id,class:B(["single-contact",{selected:e.inConversation}]),role:"button",tabindex:"0",onClick:t=>l(e),onKeydown:t=>function(e,t){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),l(t))}(t,e)},[ds(s,{"user-id":e.id},null,8,["user-id"]),e.inConversation?(es(),ss("span",fp,"✓")):hs("",!0)],42,dp))),128))])])}}}),[["styles",[".contacts-module[data-v-f09a925f]{height:100%;overflow:scroll}.contacts-module .controls[data-v-f09a925f]{display:grid;grid-template-columns:1fr 1fr}.contacts-module .rights-panel[data-v-f09a925f]{padding:10px 20px;border-bottom:1px solid var(--scm-color-surface)}.contacts-module .rights-panel h4[data-v-f09a925f]{margin-bottom:10px}.contacts-module .rights-panel .participant-rights[data-v-f09a925f]{display:grid;gap:5px;padding:10px 0}.contacts-module .rights-panel .participant-rights .rights[data-v-f09a925f]{display:flex;flex-wrap:wrap;gap:10px}.contacts-module .rights-panel .participant-rights .rights .right-toggle[data-v-f09a925f]{cursor:pointer;font-size:13px}.contacts-module .rights-panel .participant-rights .who em[data-v-f09a925f]{color:var(--scm-color-muted)}.contacts-module .single-contact[data-v-f09a925f]{padding:20px;cursor:pointer;display:flex;justify-content:space-between;align-items:center}.contacts-module .single-contact[data-v-f09a925f]:hover{background-color:var(--scm-color-surface)}.contacts-module .single-contact.selected[data-v-f09a925f]{background-color:color-mix(in srgb,var(--scm-color-primary) 15%,transparent)}.contacts-module .single-contact .selected-indicator[data-v-f09a925f]{color:var(--scm-color-primary);font-weight:700}"]],["__scopeId","data-v-f09a925f"]]),hp={class:"participants-partial"},mp=bf(_n({__name:"participants.partial",props:{participants:{type:Array},removeUser:{type:Boolean},isNew:{type:Boolean}},setup(e){const t=nf(),n=e,r=As(()=>n.removeUser?n.participants.filter(e=>uf(e)!==t.user):n.participants);return(t,n)=>{const s=zn("user-name-partial");return es(),ss("section",hp,[e.isNew&&!r.value.length?(es(),ss(Jr,{key:0},[ps(K(t.$t("select contacts")),1)],64)):(es(!0),ss(Jr,{key:1},Yn(r.value,(e,t)=>(es(),ss(Jr,{key:Ot(uf)(e)},[ds(s,{"user-id":Ot(uf)(e)},null,8,["user-id"]),t<r.value.length-1?(es(),ss(Jr,{key:0},[ps(K(", "))],64)):hs("",!0)],64))),128))])}}}),[["styles",[""]],["__scopeId","data-v-50fd6d86"]]),gp={class:"actions"},vp=_n({__name:"actions.partial",setup(e){const t=rf(),n=pf(),r=nf(),s=As(()=>t.hasChat),o=As(()=>t.hasSupport),a=As(()=>s.value||n.conversations.length>1),i=()=>{const e=n.createNew([r.user],r.user);n.activateConversation(e),t.showNewChat()},c=()=>{n.startSupport(),t.hideLeft()};function l(){t.showConversations()}return(e,t)=>{const n=zn("button-partial");return es(),ss("section",gp,[a.value?(es(),os(n,{key:0,variant:"secondary",onClick:l},{default:an(()=>[ps(K(e.$t("conversations")),1)]),_:1})):hs("",!0),s.value?(es(),os(n,{key:1,onClick:i},{default:an(()=>[ps(K(e.$t("new chat")),1)]),_:1})):hs("",!0),s.value&&o.value?(es(),os(n,{key:2,variant:"secondary",onClick:c},{default:an(()=>[ps(K(e.$t("contact support")),1)]),_:1})):hs("",!0)])}}}),yp={key:0},_p=bf(_n({__name:"chat-header.partial",props:{conversation:{type:String}},setup(e){const t=pf(),n=rf(),r=ff(),s=nf(),o=e,a=xt(),i=xt("dm"),c=xt(!1),l=As(()=>t.getConversation(o.conversation)),u=As(()=>"support"===l.value?.operationMode);return fn(l,()=>function(){if(!l.value)return;const e=[];1===l.value.participants.length?i.value="select":i.value=l.value.participants.length>2?"group":"dm";if(c.value=l.value.isNew,l.value.name?.length)e.push(l.value.name);else{if(c.value&&"select"!==i.value&&e.push("New"),"group"===i.value&&e.push("Group Chat"),"dm"===i.value){const t=l.value.participants.map(uf).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=zn("name-edit-partial"),o=zn("participants-partial"),i=zn("button-partial"),d=zn("chat-actions-partial");return es(),ss("header",{class:B(["chat-header",{isSupport:u.value}])},[us("h3",null,[u.value?hs("",!0):(es(),os(s,{key:0,conversation:e.conversation},{default:an(()=>[ps(K(a.value),1)]),_:1},8,["conversation"])),u.value?(es(),ss(Jr,{key:1},[ps(K(t.$t("support")),1)],64)):hs("",!0)]),!u.value&&l.value?(es(),ss("h4",yp,[ds(o,{participants:l.value.participants,"remove-user":"","is-new":c.value},null,8,["participants","is-new"]),c.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]=[ps(" edit ",-1)])]),_:1}))])):hs("",!0),u.value||c.value?hs("",!0):(es(),os(d,{key:1,conversation:e.conversation},null,8,["conversation"]))],2)}}}),[["styles",[".chat-header[data-v-722341c2]{display:grid;grid-template-columns:5fr 1fr;grid-template-rows:1fr 1fr;width:100%;padding:0 20px;align-items:center}.chat-header h3[data-v-722341c2],.chat-header h4[data-v-722341c2]{grid-column:1 / 2}.chat-header h3[data-v-722341c2]{grid-row:1}.chat-header h4[data-v-722341c2]{display:grid;grid-row:2}.chat-header .chat-actions-partial[data-v-722341c2]{justify-self:end;grid-row:1}"]],["__scopeId","data-v-722341c2"]]),bp=_n({__name:"name-edit.partial",props:{conversation:{type:String}},setup(e){const t=pf(),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 c(){s.value=!s.value,a.value=null,s.value?(await Kt(),o.value?.focus()):i()}async function l(){try{await t.rename(n.conversation,r.value),s.value=!1}catch(Ff){const t=Ff?.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=zn("button-partial");return es(),ss(Jr,null,[s.value?hs("",!0):(es(),ss(Jr,{key:0},[qn(e.$slots,"default"),t[2]||(t[2]=ps()),ds(n,{size:"sm",variant:"ghost","aria-label":"Edit conversation name",onClick:c},{default:an(()=>[...t[1]||(t[1]=[ps(" Edit ",-1)])]),_:1})],64)),s.value?(es(),ss(Jr,{key:1},[cn(us("input",{ref_key:"inputRef",ref:o,"onUpdate:modelValue":t[0]||(t[0]=e=>r.value=e),placeholder:"conversation name",type:"text",onKeydown:xo(l,["enter"])},null,544),[[wo,r.value]]),ps(" "+K(a.value)+" ",1),ds(n,{size:"sm",disabled:!r.value?.length,onClick:l},{default:an(()=>[...t[3]||(t[3]=[ps(" Save ",-1)])]),_:1},8,["disabled"]),ds(n,{size:"sm",variant:"secondary","aria-label":"Cancel editing",onClick:c},{default:an(()=>[...t[4]||(t[4]=[ps(" X ",-1)])]),_:1})],64)):hs("",!0)],64)}}}),wp={class:"notice-partial"},kp=bf(_n({__name:"notice.partial",props:{type:{type:String}},setup:e=>(e,t)=>(es(),ss("section",wp,[qn(e.$slots,"default",{},void 0,!0)]))}),[["styles",[".notice-partial[data-v-2ad9f6c8]{display:grid}"]],["__scopeId","data-v-2ad9f6c8"]]),xp=_n({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=ff(),n=e,r=As(()=>{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(r.value.action,r.value.data))}}),Sp={class:"chat-actions-partial"},Cp={class:"options-container"},Tp=bf(_n({__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 c=zn("button-partial"),l=zn("overlay-container-partial"),u=zn("dialog-partial");return es(),ss("section",Sp,[ds(c,{ref_key:"attachTo",ref:r,size:"sm",variant:"ghost","aria-label":e.$t("conversation options"),onClick:o},{default:an(()=>[ps(K(e.$t("options")),1)]),_:1},8,["aria-label"]),n.value?(es(),os(l,{key:0,anchor:r.value,onClose:o},{default:an(()=>[us("section",Cp,[us("ul",null,[us("li",null,K(e.$t("mute")),1),us("li",null,K(e.$t("delete")),1),us("li",null,[ds(c,{onClick:i[0]||(i[0]=e=>{return t="leave",s.value=t,void(n.value=!1);var t})},{default:an(()=>[ps(K(e.$t("leave")),1)]),_:1})])])])]),_:1},8,["anchor"])):hs("",!0),"leave"===s.value?(es(),os(l,{key:1,anchor:r.value,onClose:a},{default:an(()=>[ds(u,{onAccept:i[1]||(i[1]=e=>async function(){const e=pf();a(),await e.leave(t.conversation),n.value=!1}()),onDecline:a},{default:an(()=>[ps(K(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"]]),Op=_n({__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=As(()=>n.background||"mobile"),i=xt({});function c(e){s.value===e.target&&r("close")}function l(){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,c=s.offsetWidth,l=s.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:r.left-f,right:r.right-f,top:r.top-p,bottom:r.bottom-p};let m=h.right-c>=a?h.right-c:h.left+c<=u-a?h.left:h.right>=u-h.left?Math.max(a,h.right-c):Math.min(h.left,Math.max(a,u-a-c)),g=function(){const e=d-h.bottom,t=h.top;if(e>=l+a)return h.bottom;if(t>=l+a)return h.top-l;if(e>=t)return Math.max(a,Math.min(h.bottom,d-a-l));{const e=h.top-l;return Math.max(a,Math.min(e,d-a-l))}}();m+=n.offsetX||0,g+=n.offsetY||0,m<a&&(m=a),m+c>u-a&&(m=Math.max(a,u-a-c)),g<a&&(g=a),g+l>d-a&&(g=Math.max(a,d-a-l)),i.value={position:"fixed",top:`${g}px`,left:`${m}px`}}return Fn(()=>{Kt(()=>{r("mounted"),l(),(n.autoPosition??n.anchor)&&n.anchor&&window.addEventListener("resize",l)})}),In(()=>{(n.autoPosition??n.anchor)&&n.anchor&&window.removeEventListener("resize",l)}),fn(()=>n.anchor,()=>{Kt(()=>l())}),(e,t)=>(es(),ss("section",{ref_key:"backgroundRef",ref:s,class:B(["overlay-background",[a.value]]),onKeypress:c,onClick:c},[us("div",{ref_key:"contentRef",ref:o,class:"content-container",style:U(i.value)},[qn(e.$slots,"default")],4)],34))}}),Ep=bf(Op,[["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}"]]]),Mp=["type","disabled","aria-busy","aria-label"],Lp={key:0,class:"scm-btn__spinner","aria-hidden":"true"},Rp={class:"scm-btn__content"},$p=bf(_n({__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}},emits:["click"],setup(e,{emit:t}){const n=e,r=t,s=As(()=>n.type||"button"),o=As(()=>n.disabled||n.loading),a=As(()=>{const e="scm-btn";return[e,`${e}--${n.variant||"primary"}`,`${e}--${n.size||"md"}`,n.block?`${e}--block`:"",n.loading?`${e}--loading`:""].filter(Boolean).join(" ")});function i(e){o.value?e.preventDefault():r("click",e)}return(t,r)=>(es(),ss("button",{type:s.value,disabled:o.value,"aria-busy":n.loading||void 0,"aria-label":e.ariaLabel,class:B(a.value),onClick:i},[n.loading?(es(),ss("span",Lp)):hs("",!0),us("span",Rp,[qn(t.$slots,"default",{},void 0,!0)])],10,Mp))}}),[["styles",[".scm-btn[data-v-40db284f]{--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: 14px;--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-40db284f]:hover:not(:disabled){background-color:color-mix(in srgb,var(--scm-btn-bg) 85%,#000)}.scm-btn[data-v-40db284f]:active:not(:disabled){background-color:color-mix(in srgb,var(--scm-btn-bg) 70%,#000)}.scm-btn[data-v-40db284f]:focus-visible{outline:2px solid var(--scm-color-primary);outline-offset:2px}.scm-btn[data-v-40db284f]:disabled{opacity:.55;cursor:not-allowed}.scm-btn--secondary[data-v-40db284f]{--scm-btn-bg: var(--scm-color-surface);--scm-btn-color: var(--scm-color-muted)}.scm-btn--ghost[data-v-40db284f]{--scm-btn-bg: transparent;--scm-btn-color: var(--scm-color-primary)}.scm-btn--danger[data-v-40db284f]{--scm-btn-bg: var(--scm-color-danger);--scm-btn-color: white}.scm-btn--sm[data-v-40db284f]{--scm-btn-padding-y: 2px;--scm-btn-padding-x: 8px;--scm-btn-font-size: 12px}.scm-btn--lg[data-v-40db284f]{--scm-btn-padding-y: 8px;--scm-btn-padding-x: 16px;--scm-btn-font-size: 16px}.scm-btn--block[data-v-40db284f]{width:100%;display:inline-flex}.scm-btn__spinner[data-v-40db284f]{width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:scm-spin-40db284f .6s linear infinite}@keyframes scm-spin-40db284f{to{transform:rotate(360deg)}}"]],["__scopeId","data-v-40db284f"]]),Pp={class:"dialog-partial"},Fp=bf(_n({__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=zn("button-partial");return es(),ss("section",Pp,[qn(e.$slots,"default",{},void 0,!0),ds(n,{onClick:r},{default:an(()=>[...t[0]||(t[0]=[ps(" accept ",-1)])]),_:1}),ds(n,{onClick:s},{default:an(()=>[...t[1]||(t[1]=[ps(" 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"]]),Ap={class:"chat-input"},Np=["value","placeholder"],Dp=_n({__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;function s(e){"Enter"!==e.key||e.shiftKey||n.disabled||(e.preventDefault(),r("submit"))}return(t,n)=>{const o=zn("button-partial");return es(),ss("div",Ap,[us("textarea",{value:e.modelValue,placeholder:e.placeholder,rows:"1",onInput:n[0]||(n[0]=e=>{r("update:modelValue",e.target.value),r("typing")}),onKeydown:s},null,40,Np),ds(o,{disabled:e.disabled,"aria-label":"Send message",onClick:n[1]||(n[1]=e=>r("submit"))},{default:an(()=>[...n[2]||(n[2]=[ps(" Send ",-1)])]),_:1},8,["disabled"])])}}});function Ip(e,t){var n;e.getUsers&&e.getUsers,e.getToken&&(n=e.getToken,Tf=n);const r=rf(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.userId&&(nf(t).user=e.userId),e.user){const n=e.user.id||e.userId;n&&ff(t).setOne({...e.user,id:n})}}const jp=[{name:"chat",component:rp},{name:"conversations",component:wf},{name:"chats",component:kf},{name:"contacts",component:pp}],Up=[{name:"participants",component:mp},{name:"actions",component:vp},{name:"chat-header",component:_p},{name:"chat-actions",component:Tp},{name:"name-edit",component:bp},{name:"notice",component:kp},{name:"system-message",component:xp},{name:"overlay-container",component:Ep},{name:"button",component:$p},{name:"dialog",component:Fp},{name:"chat-input",component:bf(Dp,[["styles",[".chat-input[data-v-3cd4c855]{display:grid;grid-template-columns:1fr max-content}.chat-input textarea[data-v-3cd4c855]{padding:10px;resize:none;font-size:14px}.chat-input button[data-v-3cd4c855]{padding:10px 15px;background-color:var(--scm-color-primary);color:#fff;border:none;cursor:pointer}.chat-input button [data-v-3cd4c855]:disabled{background-color:var(--scm-color-muted);cursor:not-allowed}"]],["__scopeId","data-v-3cd4c855"]])},{name:"user-name",component:_n({__name:"user-name.partial",props:{userId:{type:String}},setup(e){const t=e,n=ff();return Fn(()=>{n.ensure([t.userId])}),(e,r)=>K(Ot(n).name(t.userId))}})}];const Wp=[{name:"mobile",query:"(max-width: 599px)"},{name:"tablet",query:"(min-width: 600px) and (max-width: 1023px)"},{name:"desktop",query:"(min-width: 1024px)"}];const Hp=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||Qd.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=Wp.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)}},zp={install:(e,t)=>{Hp.init(t?.selector),Qd.plugins("resize installed")}};function Vp(){return{realHeight:Hp.realHeight,realWidth:Hp.realWidth,media:Hp.media,resized:Hp.resized,widthChanged:Hp.widthChanged,plugin:Hp}}const Bp={class:"header"},Yp={class:"connection-status"},qp={class:"status"},Jp={key:0,class:"left"},Gp=_n({__name:"App",props:{config:{type:Object}},setup(e){const t=e,n=rf(),r=nf(),s=pf(),{connect:o,authenticate:a}=Sf(),i=As(()=>n.state),c=Vp().realWidth,l=As(()=>n.viewMode),u=As(()=>n.leftTarget);fn(Vp().widthChanged,()=>{console.log("width changed",c.value,c.value<=650),c.value<=650&&n.setViewMode("compact")},{immediate:!0});let d=!1,f=!1;return fn(()=>t.config,async function(){if(!d&&!f&&t.config){f=!0;try{console.log(104,t.config),t.config&&Ip(t.config);const e=await Of()??t.config?.token??n.authToken;e&&(n.authToken=e);const i=new URLSearchParams(window.location.search).get("user")||void 0,c=function(e){if(e)try{return JSON.parse(atob(e.split(".")[1]||"")).sub}catch{return}}(e)??t.config?.userId??r.user??i;if(!c)return void(t.config&&console.warn("[studio-chat] config has no usable identity (getToken/token sub or userId)"));d=!0,r.user=c,t.config?.user&&ff().setOne({...t.config.user,id:c}),o({url:n.wsUrl,maxRetries:50,maxRetryDelay:3e4,onOpen:async()=>a(await Of()??n.authToken??c),onMessage:e=>function(e){const t=e.type;if(!t)return;const n=Cf[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{f=!1}}},{immediate:!0}),(e,t)=>{const r=zn("actions-partial"),s=zn("contacts-module");return es(),ss("div",{class:B(["studio-chat-root",[l.value,u.value]])},[us("section",Bp,[ds(r),us("section",Yp,[us("div",qp,K(e.$t(`status.${i.value}`)),1)])]),Ot(n).leftTarget?(es(),ss("section",Jp,["conversations"===Ot(n).leftTarget?(es(),os(wf,{key:0})):hs("",!0),"contacts-new"===Ot(n).leftTarget||"contacts-edit"===Ot(n).leftTarget?(es(),os(s,{key:1})):hs("",!0)])):hs("",!0),"chat"===Ot(n).mainTarget?(es(),os(kf,{key:1})):hs("",!0),t[0]||(t[0]=us("div",{class:"util"},null,-1))],2)}}}),Kp=bf(Gp,[["styles",[":host{display:block;height:100%}:host,.studio-chat-root{--scm-color-primary: #008cff;--scm-color-own: #ff009d;--scm-color-surface: #f6f6f6;--scm-color-muted: #757474;--scm-color-danger: #e53935}#app{height:100vh}.studio-chat-root{display:grid;grid-template-rows:40px 1fr;grid-template-columns:minmax(200px,400px) 1fr;height:100%}.studio-chat-root .header{display:grid;background-color:var(--scm-color-surface);grid-template-columns:max-content 1fr;padding:0 20px;align-content:center}.studio-chat-root .header .connection-status{justify-self:end}.studio-chat-root .conversations-module{grid-column:1}.studio-chat-root .chats-module{grid-column:2}.studio-chat-root.support-no-sidebar{grid-template-columns:1fr}.studio-chat-root.support-no-sidebar .chats-module{grid-column:1}.studio-chat-root.compact{grid-template-columns:1fr}.studio-chat-root.compact .chats-module{grid-column:1}.studio-chat-root.compact .left{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 .left,.studio-chat-root.compact.contacts-new .left,.studio-chat-root.compact.contacts-edit .left{transform:translate(0)}*{-moz-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;background-repeat:no-repeat;list-style-type:none;text-decoration:none}"]]]);Xo.extend(na);const Zp=po(Kp,{shadowRoot:!0,configureApp(e){const t=function(){const e=ne(!0),t=e.run(()=>xt({}));let n=[],r=[];const s=_t({install(e){Lo(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(zp,{selector:"lilaquadrat-studio-chat"}),e.use(t),e.use(Ml),function(e){Ef(jp,0,"module",e),Ef(Up,0,"partial",e)}(e)}});customElements.get("lilaquadrat-studio-chat")||customElements.define("lilaquadrat-studio-chat",Zp),e.LilaquadratStudioChat=Zp,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
|
|
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"})});
|