admins-components 9.0.80 → 9.0.82

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.
Files changed (42) hide show
  1. package/dist/admins-components103.js +2 -1
  2. package/dist/admins-components103.js.map +1 -1
  3. package/dist/admins-components105.js.map +1 -1
  4. package/dist/admins-components16.js +18 -10
  5. package/dist/admins-components16.js.map +1 -1
  6. package/dist/admins-components17.js.map +1 -1
  7. package/dist/admins-components21.js +43 -39
  8. package/dist/admins-components21.js.map +1 -1
  9. package/dist/admins-components22.js.map +1 -1
  10. package/dist/admins-components38.js +25 -19
  11. package/dist/admins-components38.js.map +1 -1
  12. package/dist/admins-components40.js.map +1 -1
  13. package/dist/admins-components46.js +44 -44
  14. package/dist/admins-components46.js.map +1 -1
  15. package/dist/admins-components48.js.map +1 -1
  16. package/dist/admins-components51.js +9 -2
  17. package/dist/admins-components51.js.map +1 -1
  18. package/dist/admins-components52.js.map +1 -1
  19. package/dist/admins-components60.js +2 -1
  20. package/dist/admins-components60.js.map +1 -1
  21. package/dist/admins-components75.js +179 -161
  22. package/dist/admins-components75.js.map +1 -1
  23. package/dist/admins-components77.js.map +1 -1
  24. package/dist/admins-components87.js +1 -1
  25. package/dist/admins-components87.js.map +1 -1
  26. package/dist/admins-components91.js +75 -81
  27. package/dist/admins-components91.js.map +1 -1
  28. package/dist/admins-components93.js.map +1 -1
  29. package/dist/main.css +1 -1
  30. package/dist/src/components/TextInput.vue.d.ts +8 -0
  31. package/dist/src/types/data-list.d.ts +3 -2
  32. package/dist/src/utils/dataFilters.d.ts +1 -0
  33. package/dist/styles/components/data-table/data-list-options.scss_vue_type_style_index_0_src_true_lang.css +1 -1
  34. package/dist/styles/components/data-table/data-table.scss_vue_type_style_index_0_src_true_lang.css +1 -1
  35. package/dist/styles/components/data-table/filter-tags.scss_vue_type_style_index_0_src_true_lang.css +1 -1
  36. package/dist/widget/dist/favicon.ico +0 -0
  37. package/dist/widget/dist/search-posts-widget.css +1 -0
  38. package/dist/widget/dist/search-posts-widget.es.js +11190 -0
  39. package/dist/widget/dist/search-posts-widget.umd.js +34 -0
  40. package/dist/widget.css +1 -0
  41. package/package.json +6 -2
  42. package/dist/main.css.map +0 -1
@@ -0,0 +1,34 @@
1
+ (function(qe){typeof define=="function"&&define.amd?define(qe):qe()})((function(){"use strict";var Jv=Object.defineProperty,Xv=Object.defineProperties;var Qv=Object.getOwnPropertyDescriptors;var Hi=Object.getOwnPropertySymbols;var Zv=Object.prototype.hasOwnProperty,em=Object.prototype.propertyIsEnumerable;var Xl=(qe,_e,Fe)=>_e in qe?Jv(qe,_e,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):qe[_e]=Fe,de=(qe,_e)=>{for(var Fe in _e||(_e={}))Zv.call(_e,Fe)&&Xl(qe,Fe,_e[Fe]);if(Hi)for(var Fe of Hi(_e))em.call(_e,Fe)&&Xl(qe,Fe,_e[Fe]);return qe},Ve=(qe,_e)=>Xv(qe,Qv(_e));var ye=(qe,_e,Fe)=>Xl(qe,typeof _e!="symbol"?_e+"":_e,Fe);var De=(qe,_e,Fe)=>new Promise((yt,wn)=>{var un=St=>{try{Ue(Fe.next(St))}catch(Cn){wn(Cn)}},Sn=St=>{try{Ue(Fe.throw(St))}catch(Cn){wn(Cn)}},Ue=St=>St.done?yt(St.value):Promise.resolve(St.value).then(un,Sn);Ue((Fe=Fe.apply(qe,_e)).next())});/**
2
+ * @vue/shared v3.5.22
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/function qe(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const _e={},Fe=[],yt=()=>{},wn=()=>!1,un=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Sn=e=>e.startsWith("onUpdate:"),Ue=Object.assign,St=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Cn=Object.prototype.hasOwnProperty,Me=(e,t)=>Cn.call(e,t),ve=Array.isArray,dn=e=>ls(e)==="[object Map]",Ql=e=>ls(e)==="[object Set]",ke=e=>typeof e=="function",Ne=e=>typeof e=="string",At=e=>typeof e=="symbol",Ae=e=>e!==null&&typeof e=="object",Zl=e=>(Ae(e)||ke(e))&&ke(e.then)&&ke(e.catch),eo=Object.prototype.toString,ls=e=>eo.call(e),Ni=e=>ls(e).slice(8,-1),os=e=>ls(e)==="[object Object]",qs=e=>Ne(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Tn=qe(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),rs=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Fi=/-\w/g,lt=rs(e=>e.replace(Fi,t=>t.slice(1).toUpperCase())),Li=/\B([A-Z])/g,gt=rs(e=>e.replace(Li,"-$1").toLowerCase()),is=rs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ks=rs(e=>e?`on${is(e)}`:""),Wt=(e,t)=>!Object.is(e,t),as=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},to=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Ys=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Gs=e=>{const t=Ne(e)?Number(e):NaN;return isNaN(t)?e:t};let no;const cs=()=>no||(no=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function Ct(e){if(ve(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],l=Ne(s)?qi(s):Ct(s);if(l)for(const o in l)t[o]=l[o]}return t}else if(Ne(e)||Ae(e))return e}const ji=/;(?![^(]*\))/g,Vi=/:([^]+)/,Wi=/\/\*[^]*?\*\//g;function qi(e){const t={};return e.replace(Wi,"").split(ji).forEach(n=>{if(n){const s=n.split(Vi);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function te(e){let t="";if(Ne(e))t=e;else if(ve(e))for(let n=0;n<e.length;n++){const s=te(e[n]);s&&(t+=s+" ")}else if(Ae(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function us(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ne(t)&&(e.class=te(t)),n&&(e.style=Ct(n)),e}const Ki=qe("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function so(e){return!!e||e===""}const lo=e=>!!(e&&e.__v_isRef===!0),re=e=>Ne(e)?e:e==null?"":ve(e)||Ae(e)&&(e.toString===eo||!ke(e.toString))?lo(e)?re(e.value):JSON.stringify(e,oo,2):String(e),oo=(e,t)=>lo(t)?oo(e,t.value):dn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,l],o)=>(n[Js(s,o)+" =>"]=l,n),{})}:Ql(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Js(n))}:At(t)?Js(t):Ae(t)&&!ve(t)&&!os(t)?String(t):t,Js=(e,t="")=>{var n;return At(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
+ * @vue/reactivity v3.5.22
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/let ut;class Yi{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ut,!t&&ut&&(this.index=(ut.scopes||(ut.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=ut;try{return ut=this,t()}finally{ut=n}}}on(){++this._on===1&&(this.prevScope=ut,ut=this)}off(){this._on>0&&--this._on===0&&(ut=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0}}}function Gi(){return ut}let Be;const Xs=new WeakSet;class ro{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ut&&ut.active&&ut.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Xs.has(this)&&(Xs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ao(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,po(this),co(this);const t=Be,n=Tt;Be=this,Tt=!0;try{return this.fn()}finally{uo(this),Be=t,Tt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)tl(t);this.deps=this.depsTail=void 0,po(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Xs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){el(this)&&this.run()}get dirty(){return el(this)}}let io=0,$n,In;function ao(e,t=!1){if(e.flags|=8,t){e.next=In,In=e;return}e.next=$n,$n=e}function Qs(){io++}function Zs(){if(--io>0)return;if(In){let t=In;for(In=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;$n;){let t=$n;for($n=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function co(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function uo(e){let t,n=e.depsTail,s=n;for(;s;){const l=s.prevDep;s.version===-1?(s===n&&(n=l),tl(s),Ji(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=l}e.deps=t,e.depsTail=n}function el(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(fo(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function fo(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===En)||(e.globalVersion=En,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!el(e))))return;e.flags|=2;const t=e.dep,n=Be,s=Tt;Be=e,Tt=!0;try{co(e);const l=e.fn(e._value);(t.version===0||Wt(l,e._value))&&(e.flags|=128,e._value=l,t.version++)}catch(l){throw t.version++,l}finally{Be=n,Tt=s,uo(e),e.flags&=-3}}function tl(e,t=!1){const{dep:n,prevSub:s,nextSub:l}=e;if(s&&(s.nextSub=l,e.prevSub=void 0),l&&(l.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)tl(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ji(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Tt=!0;const ho=[];function It(){ho.push(Tt),Tt=!1}function Et(){const e=ho.pop();Tt=e===void 0?!0:e}function po(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Be;Be=void 0;try{t()}finally{Be=n}}}let En=0;class Xi{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class nl{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Be||!Tt||Be===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Be)n=this.activeLink=new Xi(Be,this),Be.deps?(n.prevDep=Be.depsTail,Be.depsTail.nextDep=n,Be.depsTail=n):Be.deps=Be.depsTail=n,go(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=Be.depsTail,n.nextDep=void 0,Be.depsTail.nextDep=n,Be.depsTail=n,Be.deps===n&&(Be.deps=s)}return n}trigger(t){this.version++,En++,this.notify(t)}notify(t){Qs();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Zs()}}}function go(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)go(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ds=new WeakMap,en=Symbol(""),sl=Symbol(""),xn=Symbol("");function Qe(e,t,n){if(Tt&&Be){let s=ds.get(e);s||ds.set(e,s=new Map);let l=s.get(n);l||(s.set(n,l=new nl),l.map=s,l.key=n),l.track()}}function Rt(e,t,n,s,l,o){const r=ds.get(e);if(!r){En++;return}const i=a=>{a&&a.trigger()};if(Qs(),t==="clear")r.forEach(i);else{const a=ve(e),c=a&&qs(n);if(a&&n==="length"){const u=Number(s);r.forEach((h,v)=>{(v==="length"||v===xn||!At(v)&&v>=u)&&i(h)})}else switch((n!==void 0||r.has(void 0))&&i(r.get(n)),c&&i(r.get(xn)),t){case"add":a?c&&i(r.get("length")):(i(r.get(en)),dn(e)&&i(r.get(sl)));break;case"delete":a||(i(r.get(en)),dn(e)&&i(r.get(sl)));break;case"set":dn(e)&&i(r.get(en));break}}Zs()}function Qi(e,t){const n=ds.get(e);return n&&n.get(t)}function fn(e){const t=Ee(e);return t===e?t:(Qe(t,"iterate",xn),_t(e)?t:t.map(Je))}function fs(e){return Qe(e=Ee(e),"iterate",xn),e}const Zi={__proto__:null,[Symbol.iterator](){return ll(this,Symbol.iterator,Je)},concat(...e){return fn(this).concat(...e.map(t=>ve(t)?fn(t):t))},entries(){return ll(this,"entries",e=>(e[1]=Je(e[1]),e))},every(e,t){return Ot(this,"every",e,t,void 0,arguments)},filter(e,t){return Ot(this,"filter",e,t,n=>n.map(Je),arguments)},find(e,t){return Ot(this,"find",e,t,Je,arguments)},findIndex(e,t){return Ot(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ot(this,"findLast",e,t,Je,arguments)},findLastIndex(e,t){return Ot(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ot(this,"forEach",e,t,void 0,arguments)},includes(...e){return ol(this,"includes",e)},indexOf(...e){return ol(this,"indexOf",e)},join(e){return fn(this).join(e)},lastIndexOf(...e){return ol(this,"lastIndexOf",e)},map(e,t){return Ot(this,"map",e,t,void 0,arguments)},pop(){return Dn(this,"pop")},push(...e){return Dn(this,"push",e)},reduce(e,...t){return vo(this,"reduce",e,t)},reduceRight(e,...t){return vo(this,"reduceRight",e,t)},shift(){return Dn(this,"shift")},some(e,t){return Ot(this,"some",e,t,void 0,arguments)},splice(...e){return Dn(this,"splice",e)},toReversed(){return fn(this).toReversed()},toSorted(e){return fn(this).toSorted(e)},toSpliced(...e){return fn(this).toSpliced(...e)},unshift(...e){return Dn(this,"unshift",e)},values(){return ll(this,"values",Je)}};function ll(e,t,n){const s=fs(e),l=s[t]();return s!==e&&!_t(e)&&(l._next=l.next,l.next=()=>{const o=l._next();return o.done||(o.value=n(o.value)),o}),l}const ea=Array.prototype;function Ot(e,t,n,s,l,o){const r=fs(e),i=r!==e&&!_t(e),a=r[t];if(a!==ea[t]){const h=a.apply(e,o);return i?Je(h):h}let c=n;r!==e&&(i?c=function(h,v){return n.call(this,Je(h),v,e)}:n.length>2&&(c=function(h,v){return n.call(this,h,v,e)}));const u=a.call(r,c,s);return i&&l?l(u):u}function vo(e,t,n,s){const l=fs(e);let o=n;return l!==e&&(_t(e)?n.length>3&&(o=function(r,i,a){return n.call(this,r,i,a,e)}):o=function(r,i,a){return n.call(this,r,Je(i),a,e)}),l[t](o,...s)}function ol(e,t,n){const s=Ee(e);Qe(s,"iterate",xn);const l=s[t](...n);return(l===-1||l===!1)&&cl(n[0])?(n[0]=Ee(n[0]),s[t](...n)):l}function Dn(e,t,n=[]){It(),Qs();const s=Ee(e)[t].apply(e,n);return Zs(),Et(),s}const ta=qe("__proto__,__v_isRef,__isVue"),mo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(At));function na(e){At(e)||(e=String(e));const t=Ee(this);return Qe(t,"has",e),t.hasOwnProperty(e)}class bo{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const l=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!l;if(n==="__v_isReadonly")return l;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(l?o?Co:So:o?wo:ko).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=ve(t);if(!l){let a;if(r&&(a=Zi[n]))return a;if(n==="hasOwnProperty")return na}const i=Reflect.get(t,n,Ke(t)?t:s);if((At(n)?mo.has(n):ta(n))||(l||Qe(t,"get",n),o))return i;if(Ke(i)){const a=r&&qs(n)?i:i.value;return l&&Ae(a)?al(a):a}return Ae(i)?l?al(i):il(i):i}}class yo extends bo{constructor(t=!1){super(!1,t)}set(t,n,s,l){let o=t[n];if(!this._isShallow){const a=qt(o);if(!_t(s)&&!qt(s)&&(o=Ee(o),s=Ee(s)),!ve(t)&&Ke(o)&&!Ke(s))return a||(o.value=s),!0}const r=ve(t)&&qs(n)?Number(n)<t.length:Me(t,n),i=Reflect.set(t,n,s,Ke(t)?t:l);return t===Ee(l)&&(r?Wt(s,o)&&Rt(t,"set",n,s):Rt(t,"add",n,s)),i}deleteProperty(t,n){const s=Me(t,n);t[n];const l=Reflect.deleteProperty(t,n);return l&&s&&Rt(t,"delete",n,void 0),l}has(t,n){const s=Reflect.has(t,n);return(!At(n)||!mo.has(n))&&Qe(t,"has",n),s}ownKeys(t){return Qe(t,"iterate",ve(t)?"length":en),Reflect.ownKeys(t)}}class _o extends bo{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const sa=new yo,la=new _o,oa=new yo(!0),ra=new _o(!0),rl=e=>e,hs=e=>Reflect.getPrototypeOf(e);function ia(e,t,n){return function(...s){const l=this.__v_raw,o=Ee(l),r=dn(o),i=e==="entries"||e===Symbol.iterator&&r,a=e==="keys"&&r,c=l[e](...s),u=n?rl:t?ms:Je;return!t&&Qe(o,"iterate",a?sl:en),{next(){const{value:h,done:v}=c.next();return v?{value:h,done:v}:{value:i?[u(h[0]),u(h[1])]:u(h),done:v}},[Symbol.iterator](){return this}}}}function ps(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function aa(e,t){const n={get(l){const o=this.__v_raw,r=Ee(o),i=Ee(l);e||(Wt(l,i)&&Qe(r,"get",l),Qe(r,"get",i));const{has:a}=hs(r),c=t?rl:e?ms:Je;if(a.call(r,l))return c(o.get(l));if(a.call(r,i))return c(o.get(i));o!==r&&o.get(l)},get size(){const l=this.__v_raw;return!e&&Qe(Ee(l),"iterate",en),l.size},has(l){const o=this.__v_raw,r=Ee(o),i=Ee(l);return e||(Wt(l,i)&&Qe(r,"has",l),Qe(r,"has",i)),l===i?o.has(l):o.has(l)||o.has(i)},forEach(l,o){const r=this,i=r.__v_raw,a=Ee(i),c=t?rl:e?ms:Je;return!e&&Qe(a,"iterate",en),i.forEach((u,h)=>l.call(o,c(u),c(h),r))}};return Ue(n,e?{add:ps("add"),set:ps("set"),delete:ps("delete"),clear:ps("clear")}:{add(l){!t&&!_t(l)&&!qt(l)&&(l=Ee(l));const o=Ee(this);return hs(o).has.call(o,l)||(o.add(l),Rt(o,"add",l,l)),this},set(l,o){!t&&!_t(o)&&!qt(o)&&(o=Ee(o));const r=Ee(this),{has:i,get:a}=hs(r);let c=i.call(r,l);c||(l=Ee(l),c=i.call(r,l));const u=a.call(r,l);return r.set(l,o),c?Wt(o,u)&&Rt(r,"set",l,o):Rt(r,"add",l,o),this},delete(l){const o=Ee(this),{has:r,get:i}=hs(o);let a=r.call(o,l);a||(l=Ee(l),a=r.call(o,l)),i&&i.call(o,l);const c=o.delete(l);return a&&Rt(o,"delete",l,void 0),c},clear(){const l=Ee(this),o=l.size!==0,r=l.clear();return o&&Rt(l,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(l=>{n[l]=ia(l,e,t)}),n}function gs(e,t){const n=aa(e,t);return(s,l,o)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?s:Reflect.get(Me(n,l)&&l in s?n:s,l,o)}const ca={get:gs(!1,!1)},ua={get:gs(!1,!0)},da={get:gs(!0,!1)},fa={get:gs(!0,!0)},ko=new WeakMap,wo=new WeakMap,So=new WeakMap,Co=new WeakMap;function ha(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function pa(e){return e.__v_skip||!Object.isExtensible(e)?0:ha(Ni(e))}function il(e){return qt(e)?e:vs(e,!1,sa,ca,ko)}function ga(e){return vs(e,!1,oa,ua,wo)}function al(e){return vs(e,!0,la,da,So)}function nm(e){return vs(e,!0,ra,fa,Co)}function vs(e,t,n,s,l){if(!Ae(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=pa(e);if(o===0)return e;const r=l.get(e);if(r)return r;const i=new Proxy(e,o===2?s:n);return l.set(e,i),i}function hn(e){return qt(e)?hn(e.__v_raw):!!(e&&e.__v_isReactive)}function qt(e){return!!(e&&e.__v_isReadonly)}function _t(e){return!!(e&&e.__v_isShallow)}function cl(e){return e?!!e.__v_raw:!1}function Ee(e){const t=e&&e.__v_raw;return t?Ee(t):e}function To(e){return!Me(e,"__v_skip")&&Object.isExtensible(e)&&to(e,"__v_skip",!0),e}const Je=e=>Ae(e)?il(e):e,ms=e=>Ae(e)?al(e):e;function Ke(e){return e?e.__v_isRef===!0:!1}function F(e){return $o(e,!1)}function va(e){return $o(e,!0)}function $o(e,t){return Ke(e)?e:new ma(e,t)}class ma{constructor(t,n){this.dep=new nl,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Ee(t),this._value=n?t:Je(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||_t(t)||qt(t);t=s?t:Ee(t),Wt(t,n)&&(this._rawValue=t,this._value=s?t:Je(t),this.dep.trigger())}}function ae(e){return Ke(e)?e.value:e}const ba={get:(e,t,n)=>t==="__v_raw"?e:ae(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const l=e[t];return Ke(l)&&!Ke(n)?(l.value=n,!0):Reflect.set(e,t,n,s)}};function Io(e){return hn(e)?e:new Proxy(e,ba)}class ya{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Qi(Ee(this._object),this._key)}}class _a{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ka(e,t,n){return Ke(e)?e:ke(e)?new _a(e):Ae(e)&&arguments.length>1?wa(e,t,n):F(e)}function wa(e,t,n){const s=e[t];return Ke(s)?s:new ya(e,t,n)}class Sa{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new nl(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=En-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Be!==this)return ao(this,!0),!0}get value(){const t=this.dep.track();return fo(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ca(e,t,n=!1){let s,l;return ke(e)?s=e:(s=e.get,l=e.set),new Sa(s,l,n)}const bs={},ys=new WeakMap;let tn;function Ta(e,t=!1,n=tn){if(n){let s=ys.get(n);s||ys.set(n,s=[]),s.push(e)}}function $a(e,t,n=_e){const{immediate:s,deep:l,once:o,scheduler:r,augmentJob:i,call:a}=n,c=D=>l?D:_t(D)||l===!1||l===0?Ut(D,1):Ut(D);let u,h,v,g,w=!1,b=!1;if(Ke(e)?(h=()=>e.value,w=_t(e)):hn(e)?(h=()=>c(e),w=!0):ve(e)?(b=!0,w=e.some(D=>hn(D)||_t(D)),h=()=>e.map(D=>{if(Ke(D))return D.value;if(hn(D))return c(D);if(ke(D))return a?a(D,2):D()})):ke(e)?t?h=a?()=>a(e,2):e:h=()=>{if(v){It();try{v()}finally{Et()}}const D=tn;tn=u;try{return a?a(e,3,[g]):e(g)}finally{tn=D}}:h=yt,t&&l){const D=h,j=l===!0?1/0:l;h=()=>Ut(D(),j)}const C=Gi(),k=()=>{u.stop(),C&&C.active&&St(C.effects,u)};if(o&&t){const D=t;t=(...j)=>{D(...j),k()}}let I=b?new Array(e.length).fill(bs):bs;const L=D=>{if(!(!(u.flags&1)||!u.dirty&&!D))if(t){const j=u.run();if(l||w||(b?j.some((T,A)=>Wt(T,I[A])):Wt(j,I))){v&&v();const T=tn;tn=u;try{const A=[j,I===bs?void 0:b&&I[0]===bs?[]:I,g];I=j,a?a(t,3,A):t(...A)}finally{tn=T}}}else u.run()};return i&&i(L),u=new ro(h),u.scheduler=r?()=>r(L,!1):L,g=D=>Ta(D,!1,u),v=u.onStop=()=>{const D=ys.get(u);if(D){if(a)a(D,4);else for(const j of D)j();ys.delete(u)}},t?s?L(!0):I=u.run():r?r(L.bind(null,!0),!0):u.run(),k.pause=u.pause.bind(u),k.resume=u.resume.bind(u),k.stop=k,k}function Ut(e,t=1/0,n){if(t<=0||!Ae(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ke(e))Ut(e.value,t,n);else if(ve(e))for(let s=0;s<e.length;s++)Ut(e[s],t,n);else if(Ql(e)||dn(e))e.forEach(s=>{Ut(s,t,n)});else if(os(e)){for(const s in e)Ut(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Ut(e[s],t,n)}return e}/**
10
+ * @vue/runtime-core v3.5.22
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/const Mn=[];let ul=!1;function sm(e,...t){if(ul)return;ul=!0,It();const n=Mn.length?Mn[Mn.length-1].component:null,s=n&&n.appContext.config.warnHandler,l=Ia();if(s)pn(s,n,11,[e+t.map(o=>{var r,i;return(i=(r=o.toString)==null?void 0:r.call(o))!=null?i:JSON.stringify(o)}).join(""),n&&n.proxy,l.map(({vnode:o})=>`at <${Ar(n,o.type)}>`).join(`
14
+ `),l]);else{const o=[`[Vue warn]: ${e}`,...t];l.length&&o.push(`
15
+ `,...Ea(l)),console.warn(...o)}Et(),ul=!1}function Ia(){let e=Mn[Mn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function Ea(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
16
+ `],...xa(n))}),t}function xa({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,l=` at <${Ar(e.component,e.type,s)}`,o=">"+n;return e.props?[l,...Da(e.props),o]:[l+o]}function Da(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...Eo(s,e[s]))}),n.length>3&&t.push(" ..."),t}function Eo(e,t,n){return Ne(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Ke(t)?(t=Eo(e,Ee(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ke(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Ee(t),n?t:[`${e}=`,t])}function pn(e,t,n,s){try{return s?e(...s):e()}catch(l){_s(l,t,n)}}function $t(e,t,n,s){if(ke(e)){const l=pn(e,t,n,s);return l&&Zl(l)&&l.catch(o=>{_s(o,t,n)}),l}if(ve(e)){const l=[];for(let o=0;o<e.length;o++)l.push($t(e[o],t,n,s));return l}}function _s(e,t,n,s=!0){const l=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||_e;if(t){let i=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const u=i.ec;if(u){for(let h=0;h<u.length;h++)if(u[h](e,a,c)===!1)return}i=i.parent}if(o){It(),pn(o,null,10,[e,a,c]),Et();return}}Ma(e,n,l,s,r)}function Ma(e,t,n,s=!0,l=!1){if(l)throw e;console.error(e)}const ot=[];let xt=-1;const gn=[];let Kt=null,vn=0;const xo=Promise.resolve();let ks=null;function vt(e){const t=ks||xo;return e?t.then(this?e.bind(this):e):t}function Pa(e){let t=xt+1,n=ot.length;for(;t<n;){const s=t+n>>>1,l=ot[s],o=Pn(l);o<e||o===e&&l.flags&2?t=s+1:n=s}return t}function dl(e){if(!(e.flags&1)){const t=Pn(e),n=ot[ot.length-1];!n||!(e.flags&2)&&t>=Pn(n)?ot.push(e):ot.splice(Pa(t),0,e),e.flags|=1,Do()}}function Do(){ks||(ks=xo.then(zo))}function za(e){ve(e)?gn.push(...e):Kt&&e.id===-1?Kt.splice(vn+1,0,e):e.flags&1||(gn.push(e),e.flags|=1),Do()}function Mo(e,t,n=xt+1){for(;n<ot.length;n++){const s=ot[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;ot.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Po(e){if(gn.length){const t=[...new Set(gn)].sort((n,s)=>Pn(n)-Pn(s));if(gn.length=0,Kt){Kt.push(...t);return}for(Kt=t,vn=0;vn<Kt.length;vn++){const n=Kt[vn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Kt=null,vn=0}}const Pn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function zo(e){try{for(xt=0;xt<ot.length;xt++){const t=ot[xt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),pn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;xt<ot.length;xt++){const t=ot[xt];t&&(t.flags&=-2)}xt=-1,ot.length=0,Po(),ks=null,(ot.length||gn.length)&&zo()}}let Xe=null,Ao=null;function ws(e){const t=Xe;return Xe=e,Ao=e&&e.type.__scopeId||null,t}function Ze(e,t=Xe,n){if(!t||e._n)return e;const s=(...l)=>{s._d&&zs(-1);const o=ws(t);let r;try{r=e(...l)}finally{ws(o),s._d&&zs(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function dt(e,t){if(Xe===null)return e;const n=Os(Xe),s=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[o,r,i,a=_e]=t[l];o&&(ke(o)&&(o={mounted:o,updated:o}),o.deep&&Ut(r),s.push({dir:o,instance:n,value:r,oldValue:void 0,arg:i,modifiers:a}))}return e}function nn(e,t,n,s){const l=e.dirs,o=t&&t.dirs;for(let r=0;r<l.length;r++){const i=l[r];o&&(i.oldValue=o[r].value);let a=i.dir[s];a&&(It(),$t(a,n,8,[e.el,i,e,t]),Et())}}const Ro=Symbol("_vte"),Oo=e=>e.__isTeleport,zn=e=>e&&(e.disabled||e.disabled===""),Uo=e=>e&&(e.defer||e.defer===""),Bo=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,Ho=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,fl=(e,t)=>{const n=e&&e.to;return Ne(n)?t?t(n):null:n},No={name:"Teleport",__isTeleport:!0,process(e,t,n,s,l,o,r,i,a,c){const{mc:u,pc:h,pbc:v,o:{insert:g,querySelector:w,createText:b,createComment:C}}=c,k=zn(t.props);let{shapeFlag:I,children:L,dynamicChildren:D}=t;if(e==null){const j=t.el=b(""),T=t.anchor=b("");g(j,n,s),g(T,n,s);const A=(H,se)=>{I&16&&u(L,H,se,l,o,r,i,a)},R=()=>{const H=t.target=fl(t.props,w),se=Fo(H,t,b,g);H&&(r!=="svg"&&Bo(H)?r="svg":r!=="mathml"&&Ho(H)&&(r="mathml"),l&&l.isCE&&(l.ce._teleportTargets||(l.ce._teleportTargets=new Set)).add(H),k||(A(H,se),Cs(t,!1)))};k&&(A(n,T),Cs(t,!0)),Uo(t.props)?(t.el.__isMounted=!1,it(()=>{R(),delete t.el.__isMounted},o)):R()}else{if(Uo(t.props)&&e.el.__isMounted===!1){it(()=>{No.process(e,t,n,s,l,o,r,i,a,c)},o);return}t.el=e.el,t.targetStart=e.targetStart;const j=t.anchor=e.anchor,T=t.target=e.target,A=t.targetAnchor=e.targetAnchor,R=zn(e.props),H=R?n:T,se=R?j:A;if(r==="svg"||Bo(T)?r="svg":(r==="mathml"||Ho(T))&&(r="mathml"),D?(v(e.dynamicChildren,D,H,l,o,r,i),Il(e,t,!0)):a||h(e,t,H,se,l,o,r,i,!1),k)R?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ss(t,n,j,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const X=t.target=fl(t.props,w);X&&Ss(t,X,null,c,0)}else R&&Ss(t,T,A,c,1);Cs(t,k)}},remove(e,t,n,{um:s,o:{remove:l}},o){const{shapeFlag:r,children:i,anchor:a,targetStart:c,targetAnchor:u,target:h,props:v}=e;if(h&&(l(c),l(u)),o&&l(a),r&16){const g=o||!zn(v);for(let w=0;w<i.length;w++){const b=i[w];s(b,t,n,g,!!b.dynamicChildren)}}},move:Ss,hydrate:Aa};function Ss(e,t,n,{o:{insert:s},m:l},o=2){o===0&&s(e.targetAnchor,t,n);const{el:r,anchor:i,shapeFlag:a,children:c,props:u}=e,h=o===2;if(h&&s(r,t,n),(!h||zn(u))&&a&16)for(let v=0;v<c.length;v++)l(c[v],t,n,2);h&&s(i,t,n)}function Aa(e,t,n,s,l,o,{o:{nextSibling:r,parentNode:i,querySelector:a,insert:c,createText:u}},h){function v(b,C,k,I){C.anchor=h(r(b),C,i(b),n,s,l,o),C.targetStart=k,C.targetAnchor=I}const g=t.target=fl(t.props,a),w=zn(t.props);if(g){const b=g._lpa||g.firstChild;if(t.shapeFlag&16)if(w)v(e,t,b,b&&r(b));else{t.anchor=r(e);let C=b;for(;C;){if(C&&C.nodeType===8){if(C.data==="teleport start anchor")t.targetStart=C;else if(C.data==="teleport anchor"){t.targetAnchor=C,g._lpa=t.targetAnchor&&r(t.targetAnchor);break}}C=r(C)}t.targetAnchor||Fo(g,t,u,c),h(b&&r(b),t,g,n,s,l,o)}Cs(t,w)}else w&&t.shapeFlag&16&&v(e,t,e,r(e));return t.anchor&&r(t.anchor)}const sn=No;function Cs(e,t){const n=e.ctx;if(n&&n.ut){let s,l;for(t?(s=e.el,l=e.anchor):(s=e.targetStart,l=e.targetAnchor);s&&s!==l;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function Fo(e,t,n,s){const l=t.targetStart=n(""),o=t.targetAnchor=n("");return l[Ro]=o,e&&(s(l,e),s(o,e)),o}const Bt=Symbol("_leaveCb"),Ts=Symbol("_enterCb");function Ra(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ft(()=>{e.isMounted=!0}),Nt(()=>{e.isUnmounting=!0}),e}const kt=[Function,Array],Lo={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:kt,onEnter:kt,onAfterEnter:kt,onEnterCancelled:kt,onBeforeLeave:kt,onLeave:kt,onAfterLeave:kt,onLeaveCancelled:kt,onBeforeAppear:kt,onAppear:kt,onAfterAppear:kt,onAppearCancelled:kt},jo=e=>{const t=e.subTree;return t.component?jo(t.component):t},Oa={name:"BaseTransition",props:Lo,setup(e,{slots:t}){const n=jn(),s=Ra();return()=>{const l=t.default&&Ko(t.default(),!0);if(!l||!l.length)return;const o=Vo(l),r=Ee(e),{mode:i}=r;if(s.isLeaving)return pl(o);const a=qo(o);if(!a)return pl(o);let c=hl(a,r,s,n,h=>c=h);a.type!==tt&&An(a,c);let u=n.subTree&&qo(n.subTree);if(u&&u.type!==tt&&!rn(u,a)&&jo(n).type!==tt){let h=hl(u,r,s,n);if(An(u,h),i==="out-in"&&a.type!==tt)return s.isLeaving=!0,h.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete h.afterLeave,u=void 0},pl(o);i==="in-out"&&a.type!==tt?h.delayLeave=(v,g,w)=>{const b=Wo(s,u);b[String(u.key)]=u,v[Bt]=()=>{g(),v[Bt]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{w(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function Vo(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==tt){t=n;break}}return t}const Ua=Oa;function Wo(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function hl(e,t,n,s,l){const{appear:o,mode:r,persisted:i=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:u,onEnterCancelled:h,onBeforeLeave:v,onLeave:g,onAfterLeave:w,onLeaveCancelled:b,onBeforeAppear:C,onAppear:k,onAfterAppear:I,onAppearCancelled:L}=t,D=String(e.key),j=Wo(n,e),T=(H,se)=>{H&&$t(H,s,9,se)},A=(H,se)=>{const X=se[1];T(H,se),ve(H)?H.every(E=>E.length<=1)&&X():H.length<=1&&X()},R={mode:r,persisted:i,beforeEnter(H){let se=a;if(!n.isMounted)if(o)se=C||a;else return;H[Bt]&&H[Bt](!0);const X=j[D];X&&rn(e,X)&&X.el[Bt]&&X.el[Bt](),T(se,[H])},enter(H){let se=c,X=u,E=h;if(!n.isMounted)if(o)se=k||c,X=I||u,E=L||h;else return;let Z=!1;const N=H[Ts]=J=>{Z||(Z=!0,J?T(E,[H]):T(X,[H]),R.delayedLeave&&R.delayedLeave(),H[Ts]=void 0)};se?A(se,[H,N]):N()},leave(H,se){const X=String(e.key);if(H[Ts]&&H[Ts](!0),n.isUnmounting)return se();T(v,[H]);let E=!1;const Z=H[Bt]=N=>{E||(E=!0,se(),N?T(b,[H]):T(w,[H]),H[Bt]=void 0,j[X]===e&&delete j[X])};j[X]=e,g?A(g,[H,Z]):Z()},clone(H){const se=hl(H,t,n,s,l);return l&&l(se),se}};return R}function pl(e){if(Es(e))return e=Yt(e),e.children=null,e}function qo(e){if(!Es(e))return Oo(e.type)&&e.children?Vo(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ke(n.default))return n.default()}}function An(e,t){e.shapeFlag&6&&e.component?(e.transition=t,An(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ko(e,t=!1,n){let s=[],l=0;for(let o=0;o<e.length;o++){let r=e[o];const i=n==null?r.key:String(n)+String(r.key!=null?r.key:o);r.type===he?(r.patchFlag&128&&l++,s=s.concat(Ko(r.children,t,i))):(t||r.type!==tt)&&s.push(i!=null?Yt(r,{key:i}):r)}if(l>1)for(let o=0;o<s.length;o++)s[o].patchFlag=-2;return s}function Ie(e,t){return ke(e)?Ue({name:e.name},t,{setup:e}):e}function $s(){const e=jn();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Yo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function gl(e){const t=jn(),n=va(null);if(t){const l=t.refs===_e?t.refs={}:t.refs;Object.defineProperty(l,e,{enumerable:!0,get:()=>n.value,set:o=>n.value=o})}return n}const Is=new WeakMap;function Rn(e,t,n,s,l=!1){if(ve(e)){e.forEach((w,b)=>Rn(w,t&&(ve(t)?t[b]:t),n,s,l));return}if(mn(s)&&!l){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Rn(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?Os(s.component):s.el,r=l?null:o,{i,r:a}=e,c=t&&t.r,u=i.refs===_e?i.refs={}:i.refs,h=i.setupState,v=Ee(h),g=h===_e?wn:w=>Me(v,w);if(c!=null&&c!==a){if(Go(t),Ne(c))u[c]=null,g(c)&&(h[c]=null);else if(Ke(c)){c.value=null;const w=t;w.k&&(u[w.k]=null)}}if(ke(a))pn(a,i,12,[r,u]);else{const w=Ne(a),b=Ke(a);if(w||b){const C=()=>{if(e.f){const k=w?g(a)?h[a]:u[a]:a.value;if(l)ve(k)&&St(k,o);else if(ve(k))k.includes(o)||k.push(o);else if(w)u[a]=[o],g(a)&&(h[a]=u[a]);else{const I=[o];a.value=I,e.k&&(u[e.k]=I)}}else w?(u[a]=r,g(a)&&(h[a]=r)):b&&(a.value=r,e.k&&(u[e.k]=r))};if(r){const k=()=>{C(),Is.delete(e)};k.id=-1,Is.set(e,k),it(k,n)}else Go(e),C()}}}function Go(e){const t=Is.get(e);t&&(t.flags|=8,Is.delete(e))}cs().requestIdleCallback,cs().cancelIdleCallback;const mn=e=>!!e.type.__asyncLoader,Es=e=>e.type.__isKeepAlive;function Ba(e,t){Jo(e,"a",t)}function Ha(e,t){Jo(e,"da",t)}function Jo(e,t,n=nt){const s=e.__wdc||(e.__wdc=()=>{let l=n;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(xs(t,s,n),n){let l=n.parent;for(;l&&l.parent;)Es(l.parent.vnode)&&Na(s,t,n,l),l=l.parent}}function Na(e,t,n,s){const l=xs(t,e,s,!0);vl(()=>{St(s[t],l)},n)}function xs(e,t,n=nt,s=!1){if(n){const l=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{It();const i=Vn(n),a=$t(t,n,e,r);return i(),Et(),a});return s?l.unshift(o):l.push(o),o}}const Ht=e=>(t,n=nt)=>{(!Wn||e==="sp")&&xs(e,(...s)=>t(...s),n)},Fa=Ht("bm"),ft=Ht("m"),La=Ht("bu"),ja=Ht("u"),Nt=Ht("bum"),vl=Ht("um"),Va=Ht("sp"),Wa=Ht("rtg"),qa=Ht("rtc");function Ka(e,t=nt){xs("ec",e,t)}const Xo="components",Ya="directives",Qo=Symbol.for("v-ndc");function ml(e){return Ne(e)?Zo(Xo,e,!1)||e:e||Qo}function bn(e){return Zo(Ya,e)}function Zo(e,t,n=!0,s=!1){const l=Xe||nt;if(l){const o=l.type;if(e===Xo){const i=zr(o,!1);if(i&&(i===t||i===lt(t)||i===is(lt(t))))return o}const r=er(l[e]||o[e],t)||er(l.appContext[e],t);return!r&&s?o:r}}function er(e,t){return e&&(e[t]||e[lt(t)]||e[is(lt(t))])}function xe(e,t,n,s){let l;const o=n,r=ve(e);if(r||Ne(e)){const i=r&&hn(e);let a=!1,c=!1;i&&(a=!_t(e),c=qt(e),e=fs(e)),l=new Array(e.length);for(let u=0,h=e.length;u<h;u++)l[u]=t(a?c?ms(Je(e[u])):Je(e[u]):e[u],u,void 0,o)}else if(typeof e=="number"){l=new Array(e);for(let i=0;i<e;i++)l[i]=t(i+1,i,void 0,o)}else if(Ae(e))if(e[Symbol.iterator])l=Array.from(e,(i,a)=>t(i,a,void 0,o));else{const i=Object.keys(e);l=new Array(i.length);for(let a=0,c=i.length;a<c;a++){const u=i[a];l[a]=t(e[u],u,a,o)}}else l=[];return l}function tr(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(ve(s))for(let l=0;l<s.length;l++)e[s[l].name]=s[l].fn;else s&&(e[s.name]=s.key?(...l)=>{const o=s.fn(...l);return o&&(o.key=s.key),o}:s.fn)}return e}function et(e,t,n={},s,l){if(Xe.ce||Xe.parent&&mn(Xe.parent)&&Xe.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),y(),me(he,null,[ce("slot",n,s&&s())],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),y();const r=o&&nr(o(n)),i=n.key||r&&r.key,a=me(he,{key:(i&&!At(i)?i:`_${t}`)+(!r&&s?"_fb":"")},r||(s?s():[]),r&&e._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function nr(e){return e.some(t=>on(t)?!(t.type===tt||t.type===he&&!nr(t.children)):!0)?e:null}const bl=e=>e?xr(e)?Os(e):bl(e.parent):null,On=Ue(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=>bl(e.parent),$root:e=>bl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>or(e),$forceUpdate:e=>e.f||(e.f=()=>{dl(e.update)}),$nextTick:e=>e.n||(e.n=vt.bind(e.proxy)),$watch:e=>bc.bind(e)}),yl=(e,t)=>e!==_e&&!e.__isScriptSetup&&Me(e,t),Ga={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:l,props:o,accessCache:r,type:i,appContext:a}=e;let c;if(t[0]!=="$"){const g=r[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return l[t];case 4:return n[t];case 3:return o[t]}else{if(yl(s,t))return r[t]=1,s[t];if(l!==_e&&Me(l,t))return r[t]=2,l[t];if((c=e.propsOptions[0])&&Me(c,t))return r[t]=3,o[t];if(n!==_e&&Me(n,t))return r[t]=4,n[t];kl&&(r[t]=0)}}const u=On[t];let h,v;if(u)return t==="$attrs"&&Qe(e.attrs,"get",""),u(e);if((h=i.__cssModules)&&(h=h[t]))return h;if(n!==_e&&Me(n,t))return r[t]=4,n[t];if(v=a.config.globalProperties,Me(v,t))return v[t]},set({_:e},t,n){const{data:s,setupState:l,ctx:o}=e;return yl(l,t)?(l[t]=n,!0):s!==_e&&Me(s,t)?(s[t]=n,!0):Me(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:l,propsOptions:o,type:r}},i){let a,c;return!!(n[i]||e!==_e&&i[0]!=="$"&&Me(e,i)||yl(t,i)||(a=o[0])&&Me(a,i)||Me(s,i)||Me(On,i)||Me(l.config.globalProperties,i)||(c=r.__cssModules)&&c[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Me(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ja(){return Xa().slots}function Xa(e){const t=jn();return t.setupContext||(t.setupContext=Pr(t))}function _l(e){return ve(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Un(e,t){const n=_l(e);for(const s in t){if(s.startsWith("__skip"))continue;let l=n[s];l?ve(l)||ke(l)?l=n[s]={type:l,default:t[s]}:l.default=t[s]:l===null&&(l=n[s]={default:t[s]}),l&&t[`__skip_${s}`]&&(l.skipFactory=!0)}return n}let kl=!0;function Qa(e){const t=or(e),n=e.proxy,s=e.ctx;kl=!1,t.beforeCreate&&sr(t.beforeCreate,e,"bc");const{data:l,computed:o,methods:r,watch:i,provide:a,inject:c,created:u,beforeMount:h,mounted:v,beforeUpdate:g,updated:w,activated:b,deactivated:C,beforeDestroy:k,beforeUnmount:I,destroyed:L,unmounted:D,render:j,renderTracked:T,renderTriggered:A,errorCaptured:R,serverPrefetch:H,expose:se,inheritAttrs:X,components:E,directives:Z,filters:N}=t;if(c&&Za(c,s,null),r)for(const le in r){const B=r[le];ke(B)&&(s[le]=B.bind(n))}if(l){const le=l.call(n,n);Ae(le)&&(e.data=il(le))}if(kl=!0,o)for(const le in o){const B=o[le],M=ke(B)?B.bind(n,n):ke(B.get)?B.get.bind(n,n):yt,_=!ke(B)&&ke(B.set)?B.set.bind(n):yt,V=ee({get:M,set:_});Object.defineProperty(s,le,{enumerable:!0,configurable:!0,get:()=>V.value,set:O=>V.value=O})}if(i)for(const le in i)lr(i[le],s,n,le);if(a){const le=ke(a)?a.call(n):a;Reflect.ownKeys(le).forEach(B=>{oc(B,le[B])})}u&&sr(u,e,"c");function U(le,B){ve(B)?B.forEach(M=>le(M.bind(n))):B&&le(B.bind(n))}if(U(Fa,h),U(ft,v),U(La,g),U(ja,w),U(Ba,b),U(Ha,C),U(Ka,R),U(qa,T),U(Wa,A),U(Nt,I),U(vl,D),U(Va,H),ve(se))if(se.length){const le=e.exposed||(e.exposed={});se.forEach(B=>{Object.defineProperty(le,B,{get:()=>n[B],set:M=>n[B]=M,enumerable:!0})})}else e.exposed||(e.exposed={});j&&e.render===yt&&(e.render=j),X!=null&&(e.inheritAttrs=X),E&&(e.components=E),Z&&(e.directives=Z),H&&Yo(e)}function Za(e,t,n=yt){ve(e)&&(e=wl(e));for(const s in e){const l=e[s];let o;Ae(l)?"default"in l?o=Hn(l.from||s,l.default,!0):o=Hn(l.from||s):o=Hn(l),Ke(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[s]=o}}function sr(e,t,n){$t(ve(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function lr(e,t,n,s){let l=s.includes(".")?kr(n,s):()=>n[s];if(Ne(e)){const o=t[e];ke(o)&&Le(l,o)}else if(ke(e))Le(l,e.bind(n));else if(Ae(e))if(ve(e))e.forEach(o=>lr(o,t,n,s));else{const o=ke(e.handler)?e.handler.bind(n):t[e.handler];ke(o)&&Le(l,o,e)}}function or(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:l,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,i=o.get(t);let a;return i?a=i:!l.length&&!n&&!s?a=t:(a={},l.length&&l.forEach(c=>Ds(a,c,r,!0)),Ds(a,t,r)),Ae(t)&&o.set(t,a),a}function Ds(e,t,n,s=!1){const{mixins:l,extends:o}=t;o&&Ds(e,o,n,!0),l&&l.forEach(r=>Ds(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const i=ec[r]||n&&n[r];e[r]=i?i(e[r],t[r]):t[r]}return e}const ec={data:rr,props:ir,emits:ir,methods:Bn,computed:Bn,beforeCreate:rt,created:rt,beforeMount:rt,mounted:rt,beforeUpdate:rt,updated:rt,beforeDestroy:rt,beforeUnmount:rt,destroyed:rt,unmounted:rt,activated:rt,deactivated:rt,errorCaptured:rt,serverPrefetch:rt,components:Bn,directives:Bn,watch:nc,provide:rr,inject:tc};function rr(e,t){return t?e?function(){return Ue(ke(e)?e.call(this,this):e,ke(t)?t.call(this,this):t)}:t:e}function tc(e,t){return Bn(wl(e),wl(t))}function wl(e){if(ve(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function rt(e,t){return e?[...new Set([].concat(e,t))]:t}function Bn(e,t){return e?Ue(Object.create(null),e,t):t}function ir(e,t){return e?ve(e)&&ve(t)?[...new Set([...e,...t])]:Ue(Object.create(null),_l(e),_l(t!=null?t:{})):t}function nc(e,t){if(!e)return t;if(!t)return e;const n=Ue(Object.create(null),e);for(const s in t)n[s]=rt(e[s],t[s]);return n}function ar(){return{app:null,config:{isNativeTag:wn,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 sc=0;function lc(e,t){return function(s,l=null){ke(s)||(s=Ue({},s)),l!=null&&!Ae(l)&&(l=null);const o=ar(),r=new WeakSet,i=[];let a=!1;const c=o.app={_uid:sc++,_component:s,_props:l,_container:null,_context:o,_instance:null,version:Bc,get config(){return o.config},set config(u){},use(u,...h){return r.has(u)||(u&&ke(u.install)?(r.add(u),u.install(c,...h)):ke(u)&&(r.add(u),u(c,...h))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,h){return h?(o.components[u]=h,c):o.components[u]},directive(u,h){return h?(o.directives[u]=h,c):o.directives[u]},mount(u,h,v){if(!a){const g=c._ceVNode||ce(s,l);return g.appContext=o,v===!0?v="svg":v===!1&&(v=void 0),e(g,u,v),a=!0,c._container=u,u.__vue_app__=c,Os(g.component)}},onUnmount(u){i.push(u)},unmount(){a&&($t(i,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,h){return o.provides[u]=h,c},runWithContext(u){const h=yn;yn=c;try{return u()}finally{yn=h}}};return c}}let yn=null;function oc(e,t){if(nt){let n=nt.provides;const s=nt.parent&&nt.parent.provides;s===n&&(n=nt.provides=Object.create(s)),n[e]=t}}function Hn(e,t,n=!1){const s=jn();if(s||yn){let l=yn?yn._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(l&&e in l)return l[e];if(arguments.length>1)return n&&ke(t)?t.call(s&&s.proxy):t}}const cr={},ur=()=>Object.create(cr),dr=e=>Object.getPrototypeOf(e)===cr;function rc(e,t,n,s=!1){const l={},o=ur();e.propsDefaults=Object.create(null),fr(e,t,l,o);for(const r in e.propsOptions[0])r in l||(l[r]=void 0);n?e.props=s?l:ga(l):e.type.props?e.props=l:e.props=o,e.attrs=o}function ic(e,t,n,s){const{props:l,attrs:o,vnode:{patchFlag:r}}=e,i=Ee(l),[a]=e.propsOptions;let c=!1;if((s||r>0)&&!(r&16)){if(r&8){const u=e.vnode.dynamicProps;for(let h=0;h<u.length;h++){let v=u[h];if(Ms(e.emitsOptions,v))continue;const g=t[v];if(a)if(Me(o,v))g!==o[v]&&(o[v]=g,c=!0);else{const w=lt(v);l[w]=Sl(a,i,w,g,e,!1)}else g!==o[v]&&(o[v]=g,c=!0)}}}else{fr(e,t,l,o)&&(c=!0);let u;for(const h in i)(!t||!Me(t,h)&&((u=gt(h))===h||!Me(t,u)))&&(a?n&&(n[h]!==void 0||n[u]!==void 0)&&(l[h]=Sl(a,i,h,void 0,e,!0)):delete l[h]);if(o!==i)for(const h in o)(!t||!Me(t,h))&&(delete o[h],c=!0)}c&&Rt(e.attrs,"set","")}function fr(e,t,n,s){const[l,o]=e.propsOptions;let r=!1,i;if(t)for(let a in t){if(Tn(a))continue;const c=t[a];let u;l&&Me(l,u=lt(a))?!o||!o.includes(u)?n[u]=c:(i||(i={}))[u]=c:Ms(e.emitsOptions,a)||(!(a in s)||c!==s[a])&&(s[a]=c,r=!0)}if(o){const a=Ee(n),c=i||_e;for(let u=0;u<o.length;u++){const h=o[u];n[h]=Sl(l,a,h,c[h],e,!Me(c,h))}}return r}function Sl(e,t,n,s,l,o){const r=e[n];if(r!=null){const i=Me(r,"default");if(i&&s===void 0){const a=r.default;if(r.type!==Function&&!r.skipFactory&&ke(a)){const{propsDefaults:c}=l;if(n in c)s=c[n];else{const u=Vn(l);s=c[n]=a.call(null,t),u()}}else s=a;l.ce&&l.ce._setProp(n,s)}r[0]&&(o&&!i?s=!1:r[1]&&(s===""||s===gt(n))&&(s=!0))}return s}const ac=new WeakMap;function hr(e,t,n=!1){const s=n?ac:t.propsCache,l=s.get(e);if(l)return l;const o=e.props,r={},i=[];let a=!1;if(!ke(e)){const u=h=>{a=!0;const[v,g]=hr(h,t,!0);Ue(r,v),g&&i.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!a)return Ae(e)&&s.set(e,Fe),Fe;if(ve(o))for(let u=0;u<o.length;u++){const h=lt(o[u]);pr(h)&&(r[h]=_e)}else if(o)for(const u in o){const h=lt(u);if(pr(h)){const v=o[u],g=r[h]=ve(v)||ke(v)?{type:v}:Ue({},v),w=g.type;let b=!1,C=!0;if(ve(w))for(let k=0;k<w.length;++k){const I=w[k],L=ke(I)&&I.name;if(L==="Boolean"){b=!0;break}else L==="String"&&(C=!1)}else b=ke(w)&&w.name==="Boolean";g[0]=b,g[1]=C,(b||Me(g,"default"))&&i.push(h)}}const c=[r,i];return Ae(e)&&s.set(e,c),c}function pr(e){return e[0]!=="$"&&!Tn(e)}const Cl=e=>e==="_"||e==="_ctx"||e==="$stable",Tl=e=>ve(e)?e.map(Dt):[Dt(e)],cc=(e,t,n)=>{if(t._n)return t;const s=Ze((...l)=>Tl(t(...l)),n);return s._c=!1,s},gr=(e,t,n)=>{const s=e._ctx;for(const l in e){if(Cl(l))continue;const o=e[l];if(ke(o))t[l]=cc(l,o,s);else if(o!=null){const r=Tl(o);t[l]=()=>r}}},vr=(e,t)=>{const n=Tl(t);e.slots.default=()=>n},mr=(e,t,n)=>{for(const s in t)(n||!Cl(s))&&(e[s]=t[s])},uc=(e,t,n)=>{const s=e.slots=ur();if(e.vnode.shapeFlag&32){const l=t._;l?(mr(s,t,n),n&&to(s,"_",l,!0)):gr(t,s)}else t&&vr(e,t)},dc=(e,t,n)=>{const{vnode:s,slots:l}=e;let o=!0,r=_e;if(s.shapeFlag&32){const i=t._;i?n&&i===1?o=!1:mr(l,t,n):(o=!t.$stable,gr(t,l)),r=t}else t&&(vr(e,t),r={default:1});if(o)for(const i in l)!Cl(i)&&r[i]==null&&delete l[i]},it=$c;function fc(e){return hc(e)}function hc(e,t){const n=cs();n.__VUE__=!0;const{insert:s,remove:l,patchProp:o,createElement:r,createText:i,createComment:a,setText:c,setElementText:u,parentNode:h,nextSibling:v,setScopeId:g=yt,insertStaticContent:w}=e,b=(d,p,m,$=null,x=null,z=null,q=void 0,K=null,W=!!p.dynamicChildren)=>{if(d===p)return;d&&!rn(d,p)&&($=Ge(d),O(d,x,z,!0),d=null),p.patchFlag===-2&&(W=!1,p.dynamicChildren=null);const{type:Y,ref:ue,shapeFlag:oe}=p;switch(Y){case Ps:C(d,p,m,$);break;case tt:k(d,p,m,$);break;case El:d==null&&I(p,m,$,q);break;case he:E(d,p,m,$,x,z,q,K,W);break;default:oe&1?j(d,p,m,$,x,z,q,K,W):oe&6?Z(d,p,m,$,x,z,q,K,W):(oe&64||oe&128)&&Y.process(d,p,m,$,x,z,q,K,W,st)}ue!=null&&x?Rn(ue,d&&d.ref,z,p||d,!p):ue==null&&d&&d.ref!=null&&Rn(d.ref,null,z,d,!0)},C=(d,p,m,$)=>{if(d==null)s(p.el=i(p.children),m,$);else{const x=p.el=d.el;p.children!==d.children&&c(x,p.children)}},k=(d,p,m,$)=>{d==null?s(p.el=a(p.children||""),m,$):p.el=d.el},I=(d,p,m,$)=>{[d.el,d.anchor]=w(d.children,p,m,$,d.el,d.anchor)},L=({el:d,anchor:p},m,$)=>{let x;for(;d&&d!==p;)x=v(d),s(d,m,$),d=x;s(p,m,$)},D=({el:d,anchor:p})=>{let m;for(;d&&d!==p;)m=v(d),l(d),d=m;l(p)},j=(d,p,m,$,x,z,q,K,W)=>{p.type==="svg"?q="svg":p.type==="math"&&(q="mathml"),d==null?T(p,m,$,x,z,q,K,W):H(d,p,x,z,q,K,W)},T=(d,p,m,$,x,z,q,K)=>{let W,Y;const{props:ue,shapeFlag:oe,transition:ge,dirs:we}=d;if(W=d.el=r(d.type,z,ue&&ue.is,ue),oe&8?u(W,d.children):oe&16&&R(d.children,W,null,$,x,$l(d,z),q,K),we&&nn(d,null,$,"created"),A(W,d,d.scopeId,q,$),ue){for(const P in ue)P!=="value"&&!Tn(P)&&o(W,P,null,ue[P],z,$);"value"in ue&&o(W,"value",null,ue.value,z),(Y=ue.onVnodeBeforeMount)&&Mt(Y,$,d)}we&&nn(d,null,$,"beforeMount");const Te=pc(x,ge);Te&&ge.beforeEnter(W),s(W,p,m),((Y=ue&&ue.onVnodeMounted)||Te||we)&&it(()=>{Y&&Mt(Y,$,d),Te&&ge.enter(W),we&&nn(d,null,$,"mounted")},x)},A=(d,p,m,$,x)=>{if(m&&g(d,m),$)for(let z=0;z<$.length;z++)g(d,$[z]);if(x){let z=x.subTree;if(p===z||Tr(z.type)&&(z.ssContent===p||z.ssFallback===p)){const q=x.vnode;A(d,q,q.scopeId,q.slotScopeIds,x.parent)}}},R=(d,p,m,$,x,z,q,K,W=0)=>{for(let Y=W;Y<d.length;Y++){const ue=d[Y]=K?Gt(d[Y]):Dt(d[Y]);b(null,ue,p,m,$,x,z,q,K)}},H=(d,p,m,$,x,z,q)=>{const K=p.el=d.el;let{patchFlag:W,dynamicChildren:Y,dirs:ue}=p;W|=d.patchFlag&16;const oe=d.props||_e,ge=p.props||_e;let we;if(m&&ln(m,!1),(we=ge.onVnodeBeforeUpdate)&&Mt(we,m,p,d),ue&&nn(p,d,m,"beforeUpdate"),m&&ln(m,!0),(oe.innerHTML&&ge.innerHTML==null||oe.textContent&&ge.textContent==null)&&u(K,""),Y?se(d.dynamicChildren,Y,K,m,$,$l(p,x),z):q||B(d,p,K,null,m,$,$l(p,x),z,!1),W>0){if(W&16)X(K,oe,ge,m,x);else if(W&2&&oe.class!==ge.class&&o(K,"class",null,ge.class,x),W&4&&o(K,"style",oe.style,ge.style,x),W&8){const Te=p.dynamicProps;for(let P=0;P<Te.length;P++){const Q=Te[P],pe=oe[Q],$e=ge[Q];($e!==pe||Q==="value")&&o(K,Q,pe,$e,x,m)}}W&1&&d.children!==p.children&&u(K,p.children)}else!q&&Y==null&&X(K,oe,ge,m,x);((we=ge.onVnodeUpdated)||ue)&&it(()=>{we&&Mt(we,m,p,d),ue&&nn(p,d,m,"updated")},$)},se=(d,p,m,$,x,z,q)=>{for(let K=0;K<p.length;K++){const W=d[K],Y=p[K],ue=W.el&&(W.type===he||!rn(W,Y)||W.shapeFlag&198)?h(W.el):m;b(W,Y,ue,null,$,x,z,q,!0)}},X=(d,p,m,$,x)=>{if(p!==m){if(p!==_e)for(const z in p)!Tn(z)&&!(z in m)&&o(d,z,p[z],null,x,$);for(const z in m){if(Tn(z))continue;const q=m[z],K=p[z];q!==K&&z!=="value"&&o(d,z,K,q,x,$)}"value"in m&&o(d,"value",p.value,m.value,x)}},E=(d,p,m,$,x,z,q,K,W)=>{const Y=p.el=d?d.el:i(""),ue=p.anchor=d?d.anchor:i("");let{patchFlag:oe,dynamicChildren:ge,slotScopeIds:we}=p;we&&(K=K?K.concat(we):we),d==null?(s(Y,m,$),s(ue,m,$),R(p.children||[],m,ue,x,z,q,K,W)):oe>0&&oe&64&&ge&&d.dynamicChildren?(se(d.dynamicChildren,ge,m,x,z,q,K),(p.key!=null||x&&p===x.subTree)&&Il(d,p,!0)):B(d,p,m,ue,x,z,q,K,W)},Z=(d,p,m,$,x,z,q,K,W)=>{p.slotScopeIds=K,d==null?p.shapeFlag&512?x.ctx.activate(p,m,$,q,W):N(p,m,$,x,z,q,W):J(d,p,W)},N=(d,p,m,$,x,z,q)=>{const K=d.component=Mc(d,$,x);if(Es(d)&&(K.ctx.renderer=st),Pc(K,!1,q),K.asyncDep){if(x&&x.registerDep(K,U,q),!d.el){const W=K.subTree=ce(tt);k(null,W,p,m),d.placeholder=W.el}}else U(K,d,p,m,x,z,q)},J=(d,p,m)=>{const $=p.component=d.component;if(Cc(d,p,m))if($.asyncDep&&!$.asyncResolved){le($,p,m);return}else $.next=p,$.update();else p.el=d.el,$.vnode=p},U=(d,p,m,$,x,z,q)=>{const K=()=>{if(d.isMounted){let{next:oe,bu:ge,u:we,parent:Te,vnode:P}=d;{const bt=br(d);if(bt){oe&&(oe.el=P.el,le(d,oe,q)),bt.asyncDep.then(()=>{d.isUnmounted||K()});return}}let Q=oe,pe;ln(d,!1),oe?(oe.el=P.el,le(d,oe,q)):oe=P,ge&&as(ge),(pe=oe.props&&oe.props.onVnodeBeforeUpdate)&&Mt(pe,Te,oe,P),ln(d,!0);const $e=Sr(d),ct=d.subTree;d.subTree=$e,b(ct,$e,h(ct.el),Ge(ct),d,x,z),oe.el=$e.el,Q===null&&Tc(d,$e.el),we&&it(we,x),(pe=oe.props&&oe.props.onVnodeUpdated)&&it(()=>Mt(pe,Te,oe,P),x)}else{let oe;const{el:ge,props:we}=p,{bm:Te,m:P,parent:Q,root:pe,type:$e}=d,ct=mn(p);ln(d,!1),Te&&as(Te),!ct&&(oe=we&&we.onVnodeBeforeMount)&&Mt(oe,Q,p),ln(d,!0);{pe.ce&&pe.ce._def.shadowRoot!==!1&&pe.ce._injectChildStyle($e);const bt=d.subTree=Sr(d);b(null,bt,m,$,d,x,z),p.el=bt.el}if(P&&it(P,x),!ct&&(oe=we&&we.onVnodeMounted)){const bt=p;it(()=>Mt(oe,Q,bt),x)}(p.shapeFlag&256||Q&&mn(Q.vnode)&&Q.vnode.shapeFlag&256)&&d.a&&it(d.a,x),d.isMounted=!0,p=m=$=null}};d.scope.on();const W=d.effect=new ro(K);d.scope.off();const Y=d.update=W.run.bind(W),ue=d.job=W.runIfDirty.bind(W);ue.i=d,ue.id=d.uid,W.scheduler=()=>dl(ue),ln(d,!0),Y()},le=(d,p,m)=>{p.component=d;const $=d.vnode.props;d.vnode=p,d.next=null,ic(d,p.props,$,m),dc(d,p.children,m),It(),Mo(d),Et()},B=(d,p,m,$,x,z,q,K,W=!1)=>{const Y=d&&d.children,ue=d?d.shapeFlag:0,oe=p.children,{patchFlag:ge,shapeFlag:we}=p;if(ge>0){if(ge&128){_(Y,oe,m,$,x,z,q,K,W);return}else if(ge&256){M(Y,oe,m,$,x,z,q,K,W);return}}we&8?(ue&16&&je(Y,x,z),oe!==Y&&u(m,oe)):ue&16?we&16?_(Y,oe,m,$,x,z,q,K,W):je(Y,x,z,!0):(ue&8&&u(m,""),we&16&&R(oe,m,$,x,z,q,K,W))},M=(d,p,m,$,x,z,q,K,W)=>{d=d||Fe,p=p||Fe;const Y=d.length,ue=p.length,oe=Math.min(Y,ue);let ge;for(ge=0;ge<oe;ge++){const we=p[ge]=W?Gt(p[ge]):Dt(p[ge]);b(d[ge],we,m,null,x,z,q,K,W)}Y>ue?je(d,x,z,!0,!1,oe):R(p,m,$,x,z,q,K,W,oe)},_=(d,p,m,$,x,z,q,K,W)=>{let Y=0;const ue=p.length;let oe=d.length-1,ge=ue-1;for(;Y<=oe&&Y<=ge;){const we=d[Y],Te=p[Y]=W?Gt(p[Y]):Dt(p[Y]);if(rn(we,Te))b(we,Te,m,null,x,z,q,K,W);else break;Y++}for(;Y<=oe&&Y<=ge;){const we=d[oe],Te=p[ge]=W?Gt(p[ge]):Dt(p[ge]);if(rn(we,Te))b(we,Te,m,null,x,z,q,K,W);else break;oe--,ge--}if(Y>oe){if(Y<=ge){const we=ge+1,Te=we<ue?p[we].el:$;for(;Y<=ge;)b(null,p[Y]=W?Gt(p[Y]):Dt(p[Y]),m,Te,x,z,q,K,W),Y++}}else if(Y>ge)for(;Y<=oe;)O(d[Y],x,z,!0),Y++;else{const we=Y,Te=Y,P=new Map;for(Y=Te;Y<=ge;Y++){const be=p[Y]=W?Gt(p[Y]):Dt(p[Y]);be.key!=null&&P.set(be.key,Y)}let Q,pe=0;const $e=ge-Te+1;let ct=!1,bt=0;const Zt=new Array($e);for(Y=0;Y<$e;Y++)Zt[Y]=0;for(Y=we;Y<=oe;Y++){const be=d[Y];if(pe>=$e){O(be,x,z,!0);continue}let zt;if(be.key!=null)zt=P.get(be.key);else for(Q=Te;Q<=ge;Q++)if(Zt[Q-Te]===0&&rn(be,p[Q])){zt=Q;break}zt===void 0?O(be,x,z,!0):(Zt[zt-Te]=Y+1,zt>=bt?bt=zt:ct=!0,b(be,p[zt],m,null,x,z,q,K,W),pe++)}const ss=ct?gc(Zt):Fe;for(Q=ss.length-1,Y=$e-1;Y>=0;Y--){const be=Te+Y,zt=p[be],Ui=p[be+1],Bi=be+1<ue?Ui.el||Ui.placeholder:$;Zt[Y]===0?b(null,zt,m,Bi,x,z,q,K,W):ct&&(Q<0||Y!==ss[Q]?V(zt,m,Bi,2):Q--)}}},V=(d,p,m,$,x=null)=>{const{el:z,type:q,transition:K,children:W,shapeFlag:Y}=d;if(Y&6){V(d.component.subTree,p,m,$);return}if(Y&128){d.suspense.move(p,m,$);return}if(Y&64){q.move(d,p,m,st);return}if(q===he){s(z,p,m);for(let oe=0;oe<W.length;oe++)V(W[oe],p,m,$);s(d.anchor,p,m);return}if(q===El){L(d,p,m);return}if($!==2&&Y&1&&K)if($===0)K.beforeEnter(z),s(z,p,m),it(()=>K.enter(z),x);else{const{leave:oe,delayLeave:ge,afterLeave:we}=K,Te=()=>{d.ctx.isUnmounted?l(z):s(z,p,m)},P=()=>{z._isLeaving&&z[Bt](!0),oe(z,()=>{Te(),we&&we()})};ge?ge(z,Te,P):P()}else s(z,p,m)},O=(d,p,m,$=!1,x=!1)=>{const{type:z,props:q,ref:K,children:W,dynamicChildren:Y,shapeFlag:ue,patchFlag:oe,dirs:ge,cacheIndex:we}=d;if(oe===-2&&(x=!1),K!=null&&(It(),Rn(K,null,m,d,!0),Et()),we!=null&&(p.renderCache[we]=void 0),ue&256){p.ctx.deactivate(d);return}const Te=ue&1&&ge,P=!mn(d);let Q;if(P&&(Q=q&&q.onVnodeBeforeUnmount)&&Mt(Q,p,d),ue&6)We(d.component,m,$);else{if(ue&128){d.suspense.unmount(m,$);return}Te&&nn(d,null,p,"beforeUnmount"),ue&64?d.type.remove(d,p,m,st,$):Y&&!Y.hasOnce&&(z!==he||oe>0&&oe&64)?je(Y,p,m,!1,!0):(z===he&&oe&384||!x&&ue&16)&&je(W,p,m),$&&ne(d)}(P&&(Q=q&&q.onVnodeUnmounted)||Te)&&it(()=>{Q&&Mt(Q,p,d),Te&&nn(d,null,p,"unmounted")},m)},ne=d=>{const{type:p,el:m,anchor:$,transition:x}=d;if(p===he){Se(m,$);return}if(p===El){D(d);return}const z=()=>{l(m),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(d.shapeFlag&1&&x&&!x.persisted){const{leave:q,delayLeave:K}=x,W=()=>q(m,z);K?K(d.el,z,W):W()}else z()},Se=(d,p)=>{let m;for(;d!==p;)m=v(d),l(d),d=m;l(p)},We=(d,p,m)=>{const{bum:$,scope:x,job:z,subTree:q,um:K,m:W,a:Y}=d;yr(W),yr(Y),$&&as($),x.stop(),z&&(z.flags|=8,O(q,d,p,m)),K&&it(K,p),it(()=>{d.isUnmounted=!0},p)},je=(d,p,m,$=!1,x=!1,z=0)=>{for(let q=z;q<d.length;q++)O(d[q],p,m,$,x)},Ge=d=>{if(d.shapeFlag&6)return Ge(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const p=v(d.anchor||d.el),m=p&&p[Ro];return m?v(m):p};let Ye=!1;const pt=(d,p,m)=>{d==null?p._vnode&&O(p._vnode,null,null,!0):b(p._vnode||null,d,p,null,null,null,m),p._vnode=d,Ye||(Ye=!0,Mo(),Po(),Ye=!1)},st={p:b,um:O,m:V,r:ne,mt:N,mc:R,pc:B,pbc:se,n:Ge,o:e};return{render:pt,hydrate:void 0,createApp:lc(pt)}}function $l({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ln({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function pc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Il(e,t,n=!1){const s=e.children,l=t.children;if(ve(s)&&ve(l))for(let o=0;o<s.length;o++){const r=s[o];let i=l[o];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=l[o]=Gt(l[o]),i.el=r.el),!n&&i.patchFlag!==-2&&Il(r,i)),i.type===Ps&&i.patchFlag!==-1&&(i.el=r.el),i.type===tt&&!i.el&&(i.el=r.el)}}function gc(e){const t=e.slice(),n=[0];let s,l,o,r,i;const a=e.length;for(s=0;s<a;s++){const c=e[s];if(c!==0){if(l=n[n.length-1],e[l]<c){t[s]=l,n.push(s);continue}for(o=0,r=n.length-1;o<r;)i=o+r>>1,e[n[i]]<c?o=i+1:r=i;c<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}function br(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:br(t)}function yr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const vc=Symbol.for("v-scx"),mc=()=>Hn(vc);function Le(e,t,n){return _r(e,t,n)}function _r(e,t,n=_e){const{immediate:s,deep:l,flush:o,once:r}=n,i=Ue({},n),a=t&&s||!t&&o!=="post";let c;if(Wn){if(o==="sync"){const g=mc();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!a){const g=()=>{};return g.stop=yt,g.resume=yt,g.pause=yt,g}}const u=nt;i.call=(g,w,b)=>$t(g,u,w,b);let h=!1;o==="post"?i.scheduler=g=>{it(g,u&&u.suspense)}:o!=="sync"&&(h=!0,i.scheduler=(g,w)=>{w?g():dl(g)}),i.augmentJob=g=>{t&&(g.flags|=4),h&&(g.flags|=2,u&&(g.id=u.uid,g.i=u))};const v=$a(e,t,i);return Wn&&(c?c.push(v):a&&v()),v}function bc(e,t,n){const s=this.proxy,l=Ne(e)?e.includes(".")?kr(s,e):()=>s[e]:e.bind(s,s);let o;ke(t)?o=t:(o=t.handler,n=t);const r=Vn(this),i=_r(l,o.bind(s),n);return r(),i}function kr(e,t){const n=t.split(".");return()=>{let s=e;for(let l=0;l<n.length&&s;l++)s=s[n[l]];return s}}const yc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${lt(t)}Modifiers`]||e[`${gt(t)}Modifiers`];function _c(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||_e;let l=n;const o=t.startsWith("update:"),r=o&&yc(s,t.slice(7));r&&(r.trim&&(l=n.map(u=>Ne(u)?u.trim():u)),r.number&&(l=n.map(Ys)));let i,a=s[i=Ks(t)]||s[i=Ks(lt(t))];!a&&o&&(a=s[i=Ks(gt(t))]),a&&$t(a,e,6,l);const c=s[i+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,$t(c,e,6,l)}}const kc=new WeakMap;function wr(e,t,n=!1){const s=n?kc:t.emitsCache,l=s.get(e);if(l!==void 0)return l;const o=e.emits;let r={},i=!1;if(!ke(e)){const a=c=>{const u=wr(c,t,!0);u&&(i=!0,Ue(r,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!i?(Ae(e)&&s.set(e,null),null):(ve(o)?o.forEach(a=>r[a]=null):Ue(r,o),Ae(e)&&s.set(e,r),r)}function Ms(e,t){return!e||!un(t)?!1:(t=t.slice(2).replace(/Once$/,""),Me(e,t[0].toLowerCase()+t.slice(1))||Me(e,gt(t))||Me(e,t))}function lm(){}function Sr(e){const{type:t,vnode:n,proxy:s,withProxy:l,propsOptions:[o],slots:r,attrs:i,emit:a,render:c,renderCache:u,props:h,data:v,setupState:g,ctx:w,inheritAttrs:b}=e,C=ws(e);let k,I;try{if(n.shapeFlag&4){const D=l||s,j=D;k=Dt(c.call(j,D,u,h,g,v,w)),I=i}else{const D=t;k=Dt(D.length>1?D(h,{attrs:i,slots:r,emit:a}):D(h,null)),I=t.props?i:wc(i)}}catch(D){Nn.length=0,_s(D,e,1),k=ce(tt)}let L=k;if(I&&b!==!1){const D=Object.keys(I),{shapeFlag:j}=L;D.length&&j&7&&(o&&D.some(Sn)&&(I=Sc(I,o)),L=Yt(L,I,!1,!0))}return n.dirs&&(L=Yt(L,null,!1,!0),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition&&An(L,n.transition),k=L,ws(C),k}const wc=e=>{let t;for(const n in e)(n==="class"||n==="style"||un(n))&&((t||(t={}))[n]=e[n]);return t},Sc=(e,t)=>{const n={};for(const s in e)(!Sn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Cc(e,t,n){const{props:s,children:l,component:o}=e,{props:r,children:i,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?Cr(s,r,c):!!r;if(a&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const v=u[h];if(r[v]!==s[v]&&!Ms(c,v))return!0}}}else return(l||i)&&(!i||!i.$stable)?!0:s===r?!1:s?r?Cr(s,r,c):!0:!!r;return!1}function Cr(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let l=0;l<s.length;l++){const o=s[l];if(t[o]!==e[o]&&!Ms(n,o))return!0}return!1}function Tc({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const Tr=e=>e.__isSuspense;function $c(e,t){t&&t.pendingBranch?ve(e)?t.effects.push(...e):t.effects.push(e):za(e)}const he=Symbol.for("v-fgt"),Ps=Symbol.for("v-txt"),tt=Symbol.for("v-cmt"),El=Symbol.for("v-stc"),Nn=[];let mt=null;function y(e=!1){Nn.push(mt=e?null:[])}function Ic(){Nn.pop(),mt=Nn[Nn.length-1]||null}let Fn=1;function zs(e,t=!1){Fn+=e,e<0&&mt&&t&&(mt.hasOnce=!0)}function $r(e){return e.dynamicChildren=Fn>0?mt||Fe:null,Ic(),Fn>0&&mt&&mt.push(e),e}function S(e,t,n,s,l,o){return $r(f(e,t,n,s,l,o,!0))}function me(e,t,n,s,l){return $r(ce(e,t,n,s,l,!0))}function on(e){return e?e.__v_isVNode===!0:!1}function rn(e,t){return e.type===t.type&&e.key===t.key}const Ir=({key:e})=>e!=null?e:null,As=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ne(e)||Ke(e)||ke(e)?{i:Xe,r:e,k:t,f:!!n}:e:null);function f(e,t=null,n=null,s=0,l=null,o=e===he?0:1,r=!1,i=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ir(t),ref:t&&As(t),scopeId:Ao,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:Xe};return i?(xl(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=Ne(n)?8:16),Fn>0&&!r&&mt&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&mt.push(a),a}const ce=Ec;function Ec(e,t=null,n=null,s=0,l=null,o=!1){if((!e||e===Qo)&&(e=tt),on(e)){const i=Yt(e,t,!0);return n&&xl(i,n),Fn>0&&!o&&mt&&(i.shapeFlag&6?mt[mt.indexOf(e)]=i:mt.push(i)),i.patchFlag=-2,i}if(Uc(e)&&(e=e.__vccOpts),t){t=Ln(t);let{class:i,style:a}=t;i&&!Ne(i)&&(t.class=te(i)),Ae(a)&&(cl(a)&&!ve(a)&&(a=Ue({},a)),t.style=Ct(a))}const r=Ne(e)?1:Tr(e)?128:Oo(e)?64:Ae(e)?4:ke(e)?2:0;return f(e,t,n,s,l,r,o,!0)}function Ln(e){return e?cl(e)||dr(e)?Ue({},e):e:null}function Yt(e,t,n=!1,s=!1){const{props:l,ref:o,patchFlag:r,children:i,transition:a}=e,c=t?wt(l||{},t):l,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Ir(c),ref:t&&t.ref?n&&o?ve(o)?o.concat(As(t)):[o,As(t)]:As(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!==he?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Yt(e.ssContent),ssFallback:e.ssFallback&&Yt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&An(u,a.clone(u)),u}function fe(e=" ",t=0){return ce(Ps,null,e,t)}function G(e="",t=!1){return t?(y(),me(tt,null,e)):ce(tt,null,e)}function Dt(e){return e==null||typeof e=="boolean"?ce(tt):ve(e)?ce(he,null,e.slice()):on(e)?Gt(e):ce(Ps,null,String(e))}function Gt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Yt(e)}function xl(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ve(t))n=16;else if(typeof t=="object")if(s&65){const l=t.default;l&&(l._c&&(l._d=!1),xl(e,l()),l._c&&(l._d=!0));return}else{n=32;const l=t._;!l&&!dr(t)?t._ctx=Xe:l===3&&Xe&&(Xe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ke(t)?(t={default:t,_ctx:Xe},n=32):(t=String(t),s&64?(n=16,t=[fe(t)]):n=8);e.children=t,e.shapeFlag|=n}function wt(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const l in s)if(l==="class")t.class!==s.class&&(t.class=te([t.class,s.class]));else if(l==="style")t.style=Ct([t.style,s.style]);else if(un(l)){const o=t[l],r=s[l];r&&o!==r&&!(ve(o)&&o.includes(r))&&(t[l]=o?[].concat(o,r):r)}else l!==""&&(t[l]=s[l])}return t}function Mt(e,t,n,s=null){$t(e,t,7,[n,s])}const xc=ar();let Dc=0;function Mc(e,t,n){const s=e.type,l=(t?t.appContext:e.appContext)||xc,o={uid:Dc++,vnode:e,type:s,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Yi(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:hr(s,l),emitsOptions:wr(s,l),emit:null,emitted:null,propsDefaults:_e,inheritAttrs:s.inheritAttrs,ctx:_e,data:_e,props:_e,attrs:_e,slots:_e,refs:_e,setupState:_e,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=_c.bind(null,o),e.ce&&e.ce(o),o}let nt=null;const jn=()=>nt||Xe;let Rs,Dl;{const e=cs(),t=(n,s)=>{let l;return(l=e[n])||(l=e[n]=[]),l.push(s),o=>{l.length>1?l.forEach(r=>r(o)):l[0](o)}};Rs=t("__VUE_INSTANCE_SETTERS__",n=>nt=n),Dl=t("__VUE_SSR_SETTERS__",n=>Wn=n)}const Vn=e=>{const t=nt;return Rs(e),e.scope.on(),()=>{e.scope.off(),Rs(t)}},Er=()=>{nt&&nt.scope.off(),Rs(null)};function xr(e){return e.vnode.shapeFlag&4}let Wn=!1;function Pc(e,t=!1,n=!1){t&&Dl(t);const{props:s,children:l}=e.vnode,o=xr(e);rc(e,s,o,t),uc(e,l,n||t);const r=o?zc(e,t):void 0;return t&&Dl(!1),r}function zc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ga);const{setup:s}=n;if(s){It();const l=e.setupContext=s.length>1?Pr(e):null,o=Vn(e),r=pn(s,e,0,[e.props,l]),i=Zl(r);if(Et(),o(),(i||e.sp)&&!mn(e)&&Yo(e),i){if(r.then(Er,Er),t)return r.then(a=>{Dr(e,a)}).catch(a=>{_s(a,e,0)});e.asyncDep=r}else Dr(e,r)}else Mr(e)}function Dr(e,t,n){ke(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ae(t)&&(e.setupState=Io(t)),Mr(e)}function Mr(e,t,n){const s=e.type;e.render||(e.render=s.render||yt);{const l=Vn(e);It();try{Qa(e)}finally{Et(),l()}}}const Ac={get(e,t){return Qe(e,"get",""),e[t]}};function Pr(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Ac),slots:e.slots,emit:e.emit,expose:t}}function Os(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Io(To(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in On)return On[n](e)},has(t,n){return n in t||n in On}})):e.proxy}const Rc=/(?:^|[-_])\w/g,Oc=e=>e.replace(Rc,t=>t.toUpperCase()).replace(/[-_]/g,"");function zr(e,t=!0){return ke(e)?e.displayName||e.name:e.name||t&&e.__name}function Ar(e,t,n=!1){let s=zr(t);if(!s&&t.__file){const l=t.__file.match(/([^/\\]+)\.\w+$/);l&&(s=l[1])}if(!s&&e&&e.parent){const l=o=>{for(const r in o)if(o[r]===t)return r};s=l(e.components||e.parent.type.components)||l(e.appContext.components)}return s?Oc(s):n?"App":"Anonymous"}function Uc(e){return ke(e)&&"__vccOpts"in e}const ee=(e,t)=>Ca(e,t,Wn);function Us(e,t,n){try{zs(-1);const s=arguments.length;return s===2?Ae(t)&&!ve(t)?on(t)?ce(e,null,[t]):ce(e,t):ce(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&on(n)&&(n=[n]),ce(e,t,n))}finally{zs(1)}}const Bc="3.5.22";/**
17
+ * @vue/runtime-dom v3.5.22
18
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
19
+ * @license MIT
20
+ **/let Ml;const Rr=typeof window!="undefined"&&window.trustedTypes;if(Rr)try{Ml=Rr.createPolicy("vue",{createHTML:e=>e})}catch(e){}const Or=Ml?e=>Ml.createHTML(e):e=>e,Hc="http://www.w3.org/2000/svg",Nc="http://www.w3.org/1998/Math/MathML",Ft=typeof document!="undefined"?document:null,Ur=Ft&&Ft.createElement("template"),Fc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const l=t==="svg"?Ft.createElementNS(Hc,e):t==="mathml"?Ft.createElementNS(Nc,e):n?Ft.createElement(e,{is:n}):Ft.createElement(e);return e==="select"&&s&&s.multiple!=null&&l.setAttribute("multiple",s.multiple),l},createText:e=>Ft.createTextNode(e),createComment:e=>Ft.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ft.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,l,o){const r=n?n.previousSibling:t.lastChild;if(l&&(l===o||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),!(l===o||!(l=l.nextSibling)););else{Ur.innerHTML=Or(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const i=Ur.content;if(s==="svg"||s==="mathml"){const a=i.firstChild;for(;a.firstChild;)i.appendChild(a.firstChild);i.removeChild(a)}t.insertBefore(i,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Jt="transition",qn="animation",Kn=Symbol("_vtc"),Br={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Lc=Ue({},Lo,Br),Pl=(e=>(e.displayName="Transition",e.props=Lc,e))((e,{slots:t})=>Us(Ua,jc(e),t)),an=(e,t=[])=>{ve(e)?e.forEach(n=>n(...t)):e&&e(...t)},Hr=e=>e?ve(e)?e.some(t=>t.length>1):e.length>1:!1;function jc(e){const t={};for(const E in e)E in Br||(t[E]=e[E]);if(e.css===!1)return t;const{name:n="v",type:s,duration:l,enterFromClass:o=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:a=o,appearActiveClass:c=r,appearToClass:u=i,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,w=Vc(l),b=w&&w[0],C=w&&w[1],{onBeforeEnter:k,onEnter:I,onEnterCancelled:L,onLeave:D,onLeaveCancelled:j,onBeforeAppear:T=k,onAppear:A=I,onAppearCancelled:R=L}=t,H=(E,Z,N,J)=>{E._enterCancelled=J,cn(E,Z?u:i),cn(E,Z?c:r),N&&N()},se=(E,Z)=>{E._isLeaving=!1,cn(E,h),cn(E,g),cn(E,v),Z&&Z()},X=E=>(Z,N)=>{const J=E?A:I,U=()=>H(Z,E,N);an(J,[Z,U]),Nr(()=>{cn(Z,E?a:o),Lt(Z,E?u:i),Hr(J)||Fr(Z,s,b,U)})};return Ue(t,{onBeforeEnter(E){an(k,[E]),Lt(E,o),Lt(E,r)},onBeforeAppear(E){an(T,[E]),Lt(E,a),Lt(E,c)},onEnter:X(!1),onAppear:X(!0),onLeave(E,Z){E._isLeaving=!0;const N=()=>se(E,Z);Lt(E,h),E._enterCancelled?(Lt(E,v),Vr(E)):(Vr(E),Lt(E,v)),Nr(()=>{E._isLeaving&&(cn(E,h),Lt(E,g),Hr(D)||Fr(E,s,C,N))}),an(D,[E,N])},onEnterCancelled(E){H(E,!1,void 0,!0),an(L,[E])},onAppearCancelled(E){H(E,!0,void 0,!0),an(R,[E])},onLeaveCancelled(E){se(E),an(j,[E])}})}function Vc(e){if(e==null)return null;if(Ae(e))return[zl(e.enter),zl(e.leave)];{const t=zl(e);return[t,t]}}function zl(e){return Gs(e)}function Lt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Kn]||(e[Kn]=new Set)).add(t)}function cn(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Kn];n&&(n.delete(t),n.size||(e[Kn]=void 0))}function Nr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Wc=0;function Fr(e,t,n,s){const l=e._endId=++Wc,o=()=>{l===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:r,timeout:i,propCount:a}=qc(e,t);if(!r)return s();const c=r+"end";let u=0;const h=()=>{e.removeEventListener(c,v),o()},v=g=>{g.target===e&&++u>=a&&h()};setTimeout(()=>{u<a&&h()},i+1),e.addEventListener(c,v)}function qc(e,t){const n=window.getComputedStyle(e),s=w=>(n[w]||"").split(", "),l=s(`${Jt}Delay`),o=s(`${Jt}Duration`),r=Lr(l,o),i=s(`${qn}Delay`),a=s(`${qn}Duration`),c=Lr(i,a);let u=null,h=0,v=0;t===Jt?r>0&&(u=Jt,h=r,v=o.length):t===qn?c>0&&(u=qn,h=c,v=a.length):(h=Math.max(r,c),u=h>0?r>c?Jt:qn:null,v=u?u===Jt?o.length:a.length:0);const g=u===Jt&&/\b(?:transform|all)(?:,|$)/.test(s(`${Jt}Property`).toString());return{type:u,timeout:h,propCount:v,hasTransform:g}}function Lr(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>jr(n)+jr(e[s])))}function jr(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Vr(e){return(e?e.ownerDocument:document).body.offsetHeight}function Kc(e,t,n){const s=e[Kn];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Bs=Symbol("_vod"),Wr=Symbol("_vsh"),qr={name:"show",beforeMount(e,{value:t},{transition:n}){e[Bs]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Yn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Yn(e,!0),s.enter(e)):s.leave(e,()=>{Yn(e,!1)}):Yn(e,t))},beforeUnmount(e,{value:t}){Yn(e,t)}};function Yn(e,t){e.style.display=t?e[Bs]:"none",e[Wr]=!t}const Yc=Symbol(""),Gc=/(?:^|;)\s*display\s*:/;function Jc(e,t,n){const s=e.style,l=Ne(n);let o=!1;if(n&&!l){if(t)if(Ne(t))for(const r of t.split(";")){const i=r.slice(0,r.indexOf(":")).trim();n[i]==null&&Hs(s,i,"")}else for(const r in t)n[r]==null&&Hs(s,r,"");for(const r in n)r==="display"&&(o=!0),Hs(s,r,n[r])}else if(l){if(t!==n){const r=s[Yc];r&&(n+=";"+r),s.cssText=n,o=Gc.test(n)}}else t&&e.removeAttribute("style");Bs in e&&(e[Bs]=o?s.display:"",e[Wr]&&(s.display="none"))}const Kr=/\s*!important$/;function Hs(e,t,n){if(ve(n))n.forEach(s=>Hs(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Xc(e,t);Kr.test(n)?e.setProperty(gt(s),n.replace(Kr,""),"important"):e[s]=n}}const Yr=["Webkit","Moz","ms"],Al={};function Xc(e,t){const n=Al[t];if(n)return n;let s=lt(t);if(s!=="filter"&&s in e)return Al[t]=s;s=is(s);for(let l=0;l<Yr.length;l++){const o=Yr[l]+s;if(o in e)return Al[t]=o}return t}const Gr="http://www.w3.org/1999/xlink";function Jr(e,t,n,s,l,o=Ki(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Gr,t.slice(6,t.length)):e.setAttributeNS(Gr,t,n):n==null||o&&!so(n)?e.removeAttribute(t):e.setAttribute(t,o?"":At(n)?String(n):n)}function Xr(e,t,n,s,l){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Or(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const i=o==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(i!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let r=!1;if(n===""||n==null){const i=typeof e[t];i==="boolean"?n=so(n):n==null&&i==="string"?(n="",r=!0):i==="number"&&(n=0,r=!0)}try{e[t]=n}catch(i){}r&&e.removeAttribute(l||t)}function _n(e,t,n,s){e.addEventListener(t,n,s)}function Qc(e,t,n,s){e.removeEventListener(t,n,s)}const Qr=Symbol("_vei");function Zc(e,t,n,s,l=null){const o=e[Qr]||(e[Qr]={}),r=o[t];if(s&&r)r.value=s;else{const[i,a]=eu(t);if(s){const c=o[t]=su(s,l);_n(e,i,c,a)}else r&&(Qc(e,i,r,a),o[t]=void 0)}}const Zr=/(?:Once|Passive|Capture)$/;function eu(e){let t;if(Zr.test(e)){t={};let s;for(;s=e.match(Zr);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):gt(e.slice(2)),t]}let Rl=0;const tu=Promise.resolve(),nu=()=>Rl||(tu.then(()=>Rl=0),Rl=Date.now());function su(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;$t(lu(s,n.value),t,5,[s])};return n.value=e,n.attached=nu(),n}function lu(e,t){if(ve(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>l=>!l._stopped&&s&&s(l))}else return t}const ei=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ou=(e,t,n,s,l,o)=>{const r=l==="svg";t==="class"?Kc(e,s,r):t==="style"?Jc(e,n,s):un(t)?Sn(t)||Zc(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ru(e,t,s,r))?(Xr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Jr(e,t,s,r,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ne(s))?Xr(e,lt(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Jr(e,t,s,r))};function ru(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&ei(t)&&ke(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const l=e.tagName;if(l==="IMG"||l==="VIDEO"||l==="CANVAS"||l==="SOURCE")return!1}return ei(t)&&Ne(n)?!1:t in e}const ti={};function iu(e,t,n){let s=Ie(e,t);os(s)&&(s=Ue({},s,t));class l extends Ol{constructor(r){super(s,r,n)}}return l.def=s,l}const au=typeof HTMLElement!="undefined"?HTMLElement:class{};class Ol extends au{constructor(t,n={},s=ri){super(),this._def=t,this._props=n,this._createApp=s,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&s!==ri?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(Ue({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof Ol){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,vt(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const n of t)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let s=0;s<this.attributes.length;s++)this._setAttr(this.attributes[s].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(s,l=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:r}=s;let i;if(o&&!ve(o))for(const a in o){const c=o[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=Gs(this._props[a])),(i||(i=Object.create(null)))[lt(a)]=!0)}this._numberProps=i,this._resolveProps(s),this.shadowRoot&&this._applyStyles(r),this._mount(s)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(s=>{s.configureApp=this._def.configureApp,t(this._def=s,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const s in n)Me(this,s)||Object.defineProperty(this,s,{get:()=>ae(n[s])})}_resolveProps(t){const{props:n}=t,s=ve(n)?n:Object.keys(n||{});for(const l of Object.keys(this))l[0]!=="_"&&s.includes(l)&&this._setProp(l,this[l]);for(const l of s.map(lt))Object.defineProperty(this,l,{get(){return this._getProp(l)},set(o){this._setProp(l,o,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let s=n?this.getAttribute(t):ti;const l=lt(t);n&&this._numberProps&&this._numberProps[l]&&(s=Gs(s)),this._setProp(l,s,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,s=!0,l=!1){if(n!==this._props[t]&&(n===ti?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),l&&this._instance&&this._update(),s)){const o=this._ob;o&&(this._processMutations(o.takeRecords()),o.disconnect()),n===!0?this.setAttribute(gt(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(gt(t),n+""):n||this.removeAttribute(gt(t)),o&&o.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),gu(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=ce(this._def,Ue(t,this._props));return this._instance||(n.ce=s=>{this._instance=s,s.ce=this,s.isCE=!0;const l=(o,r)=>{this.dispatchEvent(new CustomEvent(o,os(r[0])?Ue({detail:r},r[0]):{detail:r}))};s.emit=(o,...r)=>{l(o,r),gt(o)!==o&&l(gt(o),r)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const s=this._nonce;for(let l=t.length-1;l>=0;l--){const o=document.createElement("style");s&&o.setAttribute("nonce",s),o.textContent=t[l],this.shadowRoot.prepend(o)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const s=n.nodeType===1&&n.getAttribute("slot")||"default";(t[s]||(t[s]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=this._getSlots(),n=this._instance.type.__scopeId;for(let s=0;s<t.length;s++){const l=t[s],o=l.getAttribute("name")||"default",r=this._slots[o],i=l.parentNode;if(r)for(const a of r){if(n&&a.nodeType===1){const c=n+"-s",u=document.createTreeWalker(a,1);a.setAttribute(c,"");let h;for(;h=u.nextNode();)h.setAttribute(c,"")}i.insertBefore(a,l)}else for(;l.firstChild;)i.insertBefore(l.firstChild,l);i.removeChild(l)}}_getSlots(){const t=[this];return this._teleportTargets&&t.push(...this._teleportTargets),t.reduce((n,s)=>(n.push(...Array.from(s.querySelectorAll("slot"))),n),[])}_injectChildStyle(t){this._applyStyles(t.styles,t)}_removeChildStyle(t){}}const ni=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ve(t)?n=>as(t,n):t};function cu(e){e.target.composing=!0}function si(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ul=Symbol("_assign"),uu={created(e,{modifiers:{lazy:t,trim:n,number:s}},l){e[Ul]=ni(l);const o=s||l.props&&l.props.type==="number";_n(e,t?"change":"input",r=>{if(r.target.composing)return;let i=e.value;n&&(i=i.trim()),o&&(i=Ys(i)),e[Ul](i)}),n&&_n(e,"change",()=>{e.value=e.value.trim()}),t||(_n(e,"compositionstart",cu),_n(e,"compositionend",si),_n(e,"change",si))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:l,number:o}},r){if(e[Ul]=ni(r),e.composing)return;const i=(o||e.type==="number")&&!/^0\d/.test(e.value)?Ys(e.value):e.value,a=t==null?"":t;i!==a&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||l&&e.value.trim()===a)||(e.value=a))}},du=["ctrl","shift","alt","meta"],fu={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>du.some(n=>e[`${n}Key`]&&!t.includes(n))},Ce=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((l,...o)=>{for(let r=0;r<t.length;r++){const i=fu[t[r]];if(i&&i(l,t))return}return e(l,...o)}))},hu={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Bl=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=(l=>{if(!("key"in l))return;const o=gt(l.key);if(t.some(r=>r===o||hu[r]===o))return e(l)}))},pu=Ue({patchProp:ou},Fc);let li;function oi(){return li||(li=fc(pu))}const gu=((...e)=>{oi().render(...e)}),ri=((...e)=>{const t=oi().createApp(...e),{mount:n}=t;return t.mount=s=>{const l=mu(s);if(!l)return;const o=t._component;!ke(o)&&!o.render&&!o.template&&(o.template=l.innerHTML),l.nodeType===1&&(l.textContent="");const r=n(l,!1,vu(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),r},t});function vu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function mu(e){return Ne(e)?document.querySelector(e):e}function at(e,t){let n={YYYY:String(e.getFullYear()),MM:String(e.getMonth()+1).padStart(2,"0"),DD:String(e.getDate()).padStart(2,"0"),HH:String(e.getHours()).padStart(2,"0"),mm:String(e.getMinutes()).padStart(2,"0"),ss:String(e.getSeconds()).padStart(2,"0")};return t.replace(/YYYY|MM|DD|HH|mm|ss/g,s=>{var l;return(l=n[s])!=null?l:s})}function ii(e,t){if(!e)return null;let n=/YYYY|MM|DD|HH|mm|ss/g,s,l=[];for(;(s=n.exec(t))!==null;)l.push({token:s[0],start:s.index,end:s.index+s[0].length});let o=1970,r=0,i=1,a=0,c=0,u=0;for(let h of l){let v=e.slice(h.start,h.start+h.token.length),g=parseInt(v,10);if(isNaN(g))return null;switch(h.token){case"YYYY":o=g;break;case"MM":r=g-1;break;case"DD":i=g;break;case"HH":a=g;break;case"mm":c=g;break;case"ss":u=g}}return new Date(o,r,i,a,c,u)}function Gn(e,t=!1){return t?e.toISOString():`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}T00:00:00.000Z`}function Ns(e){if(!e)return null;if(e instanceof Date)return e;let t=new Date(e);return isNaN(t.getTime())?null:t}function ht(e){let t=new Date(e);return t.setHours(0,0,0,0),t}function Xt(e){let t=new Date(e);return t.setHours(23,59,0,0),t}function ai(e){let t=ht(e),n=t.getDay(),s=n===0?-6:1-n;return t.setDate(t.getDate()+s),t}function ci(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function bu(e,t){var n;return e&&t?e.getTime()>t.getTime()?e:t:(n=e!=null?e:t)!=null?n:null}function yu(e,t){var n;return e&&t?e.getTime()<t.getTime()?e:t:(n=e!=null?e:t)!=null?n:null}function ui(e,t){let n=e==="small"?"sm":e==="large"?"lg":"";return n?t?`${t}-${n}`:n:""}function _u(e,t){return!e||e==="normal"?"":t?`${t}-${e}`:e}var ku=["aria-label","title","disabled"],wu={key:1,class:"btn-label"},Su=["aria-label"],Cu={size:"normal",type:"normal",outline:!1,icon:void 0,iconPosition:"left",labelAlignmentFix:!1},Tu=Ie({__name:"Button",props:Un({size:{},type:{},outline:{type:Boolean},icon:{},iconPosition:{},label:{},ariaLabel:{},callback:{type:Function},disabled:{type:[Boolean,Function]},indicator:{},labelAlignmentFix:{type:Boolean},class:{}},de({},Cu)),setup(e){let t=e,n=ee(()=>["c-btn",ui(t.size,"c-btn"),t.outline&&"c-btn-outline",_u(t.type,"c-btn"),t.class]),s=ee(()=>t.disabled===void 0||t.disabled===null?!1:typeof t.disabled=="function"?t.disabled():t.disabled);return(l,o)=>{var r,i;return y(),S("button",{type:"button",class:te(n.value),"aria-label":(r=e.ariaLabel)!=null?r:e.label,title:(i=e.ariaLabel)!=null?i:e.label,onClick:o[0]||(o[0]=a=>{var c;return(c=e.callback)==null?void 0:c.call(e)}),disabled:s.value},[e.icon&&e.iconPosition==="left"?(y(),S("i",{key:0,class:te(e.icon)},null,2)):G("",!0),e.label?(y(),S("span",wu,re(e.label),1)):G("",!0),e.indicator!=null&&e.indicator!==""?(y(),S("span",{key:2,class:"c-btn-indicator","aria-label":`${e.indicator}`},re(e.indicator),9,Su)):G("",!0),e.icon&&e.iconPosition==="right"?(y(),S("i",{key:3,class:te(e.icon)},null,2)):G("",!0)],10,ku)}}}),Pe=Tu,Fs={showTime:!1,minDate:new Date("1990-01-01"),maxDate:new Date(Date.now()+31536e7),showWeekNumber:!0,locale:"hu-HU",highlightWeekends:!0,showOkButton:!1,showClearButton:!1},di=Ve(de({},Fs),{showOkButton:!0,showClearButton:!0,placeholder:"YYYY-MM-DD",size:"normal"}),fi=Ve(de({},Fs),{placeholderFrom:"Ettől",placeholderTo:"Eddig",showOkButton:!0,showClearButton:!0,showIcon:!1,showPresets:!0,size:"normal",lazy:!0,compact:!1}),$u={class:"ac-component"},Iu={class:"dp-calendar"},Eu={class:"dp-header"},xu=["aria-label"],Du={class:"dp-header-labels"},Mu=["aria-label","aria-hidden"],Pu=["onClick"],zu={key:1,class:"dp-picker-grid dp-month-picker dp-picker-grid--3col"},Au=["onClick"],Ru={key:0,class:"dp-weekday dp-weekday--week"},Ou=["disabled","onClick"],Uu={key:0,class:"c-footer"},Bu={class:"dp-time-inputs"},Hu=["value","disabled"],Nu=["value","disabled"],Fu=Ie({__name:"Calendar",props:{modelValue:{},config:{default:()=>de({},Fs)}},emits:["update:modelValue","confirm"],setup(e,{emit:t}){var Ge,Ye,pt,st;let n=e,s=t,l=ee(()=>de(de({},Fs),n.config)),o=ee(()=>{var ie;return(ie=l.value.format)!=null?ie:l.value.showTime?"YYYY-MM-DD HH:mm":"YYYY-MM-DD"});function r(ie){return ie?ii(ie,o.value):null}let i=r(n.modelValue),a=F((Ge=i==null?void 0:i.getMonth())!=null?Ge:new Date().getMonth()),c=F((Ye=i==null?void 0:i.getFullYear())!=null?Ye:new Date().getFullYear()),u=F(i),h=F((pt=i==null?void 0:i.getHours())!=null?pt:0),v=F((st=i==null?void 0:i.getMinutes())!=null?st:0),g=F(null);Le(()=>n.modelValue,ie=>{let d=r(ie!=null?ie:null);d?(u.value=d,a.value=d.getMonth(),c.value=d.getFullYear(),h.value=d.getHours(),v.value=d.getMinutes()):u.value=null});let w=ee(()=>Array.from({length:7},(ie,d)=>new Date(2024,0,d+1).toLocaleDateString(l.value.locale,{weekday:"narrow"}))),b=ee(()=>new Date(c.value,a.value).toLocaleDateString(l.value.locale,{month:"long"})),C=ee(()=>Array.from({length:12},(ie,d)=>new Date(2024,d).toLocaleDateString(l.value.locale,{month:"long"}))),k=ee(()=>{let ie=new Date(c.value,a.value,1),d=new Date(c.value,a.value+1,0),p=(ie.getDay()+6)%7,m=[];for(let $=p-1;$>=0;$--)m.push({date:new Date(c.value,a.value,-$),currentMonth:!1,disabled:j(new Date(c.value,a.value,-$))});for(let $=1;$<=d.getDate();$++)m.push({date:new Date(c.value,a.value,$),currentMonth:!0,disabled:j(new Date(c.value,a.value,$))});for(let $=1;m.length<35;$++)m.push({date:new Date(c.value,a.value+1,$),currentMonth:!1,disabled:j(new Date(c.value,a.value+1,$))});return m});function I(ie){let d=new Date(Date.UTC(ie.getFullYear(),ie.getMonth(),ie.getDate())),p=(d.getUTCDay()+6)%7;d.setUTCDate(d.getUTCDate()-p+3);let m=new Date(Date.UTC(d.getUTCFullYear(),0,4)),$=(d.getTime()-m.getTime())/864e5;return 1+Math.round(($-3+(m.getUTCDay()+6)%7)/7)}let L=ee(()=>{var d;let ie=[];for(let p=0;p<6;p++){let m=(d=k.value[p*7])==null?void 0:d.date;ie.push(m?I(m):0)}return ie});function D(ie){return new Date(ie.getFullYear(),ie.getMonth(),ie.getDate())}function j(ie){return l.value.minDate&&ie<D(l.value.minDate)||l.value.maxDate&&ie>D(l.value.maxDate)||!1}function T(ie){return ie.getDay()===0||ie.getDay()===6}function A(ie,d){return!!d&&ie.getFullYear()===d.getFullYear()&&ie.getMonth()===d.getMonth()&&ie.getDate()===d.getDate()}function R(ie){return A(ie,new Date)}function H(ie){let d=new Date(c.value,a.value+ie,1);c.value=d.getFullYear(),a.value=d.getMonth()}function se(){g.value=null}function X(){g.value?se():H(-1)}function E(){g.value?se():H(1)}let Z=ee(()=>Array.from({length:new Date().getFullYear()+3-2e3+1},(ie,d)=>2e3+d)),N=gl("yearPickerRef");function J(ie){g.value=g.value===ie?null:ie,g.value==="year"&&vt(()=>{let d=N.value,p=d==null?void 0:d.querySelector(".dp-picker-item--selected");p&&d?d.scrollTop=p.offsetTop-d.offsetHeight/2+p.offsetHeight/2:d&&(d.scrollTop=d.scrollHeight)})}function U(ie){c.value=ie,g.value=null}function le(ie){a.value=ie,g.value=null}function B(ie){ie.disabled||(u.value=new Date(ie.date),M(),l.value.showTime&&vt(()=>{var d;return(d=Se.value)==null?void 0:d.focus()}))}function M(){if(!u.value){s("update:modelValue",null);return}let ie=new Date(u.value);l.value.showTime?ie.setHours(h.value,v.value,0,0):ie.setHours(0,0,0,0),s("update:modelValue",at(ie,o.value))}function _(){u.value=null,h.value=0,v.value=0,s("update:modelValue",null)}function V(ie,d){return ee({get:()=>String(d.value).padStart(2,"0"),set:p=>{d.value=Math.min(ie,Math.max(0,parseInt(p)||0))}})}let O=V(23,h),ne=V(59,v),Se=gl("hoursInput"),We=gl("minutesInput");function je(ie,d){var m,$;let p=d.target;ie==="hours"?(O.value=p.value,p.value.length>=2&&((m=We.value)==null||m.focus(),($=We.value)==null||$.select())):(ne.value=p.value,p.value.length>=2&&p.blur()),M()}return(ie,d)=>{let p=bn("tooltip");return y(),S("div",$u,[f("div",Iu,[f("div",Eu,[f("button",{class:"dp-nav-btn",type:"button","aria-label":g.value?"Back to days":"Previous",onClick:X},[...d[7]||(d[7]=[f("i",{class:"fa-solid fa-chevron-left"},null,-1)])],8,xu),f("div",Du,[f("span",{class:"dp-header-labels--item",onClick:d[0]||(d[0]=m=>J("year"))},re(c.value),1),f("span",{class:"dp-header-labels--item",onClick:d[1]||(d[1]=m=>J("month"))},re(b.value),1)]),f("button",{class:te(["dp-nav-btn",{"dp-nav-btn--spacer":g.value!==null}]),type:"button","aria-label":g.value?"Back to days":"Next","aria-hidden":g.value?"true":"false",onClick:E},[...d[8]||(d[8]=[f("i",{class:"fa-solid fa-chevron-right"},null,-1)])],10,Mu)]),f("div",{class:te(["dp-body",{"dp-body--has-footer":l.value.showTime||l.value.showOkButton||l.value.showClearButton}])},[g.value==="year"?(y(),S("div",{key:0,ref_key:"yearPickerRef",ref:N,class:"dp-picker-grid dp-picker-grid--4col dp-picker-grid--scrollable c-scroll"},[(y(!0),S(he,null,xe(Z.value,m=>(y(),S("button",{key:m,type:"button",class:te(["dp-picker-item",{"dp-picker-item--selected":m===c.value,"dp-picker-item--today":m===new Date().getFullYear()}]),onClick:$=>U(m)},re(m),11,Pu))),128))],512)):g.value==="month"?(y(),S("div",zu,[(y(!0),S(he,null,xe(C.value,(m,$)=>(y(),S("button",{key:$,type:"button",class:te(["dp-picker-item",{"dp-picker-item--selected":$===a.value,"dp-picker-item--today":$===new Date().getMonth()&&c.value===new Date().getFullYear()}]),onClick:x=>le($)},re(m),11,Au))),128))])):(y(),S(he,{key:2},[f("div",{class:te(["dp-weekdays",{"dp-weekdays--has-week":l.value.showWeekNumber}])},[l.value.showWeekNumber?(y(),S("span",Ru)):G("",!0),(y(!0),S(he,null,xe(w.value,m=>(y(),S("span",{key:m,class:"dp-weekday"},re(m),1))),128))],2),f("div",{class:te(["dp-picker-grid",l.value.showWeekNumber?"dp-picker-grid--8col":"dp-picker-grid--7col"])},[(y(!0),S(he,null,xe(k.value,(m,$)=>{var x;return y(),S(he,{key:$},[l.value.showWeekNumber&&Number($)%7==0?dt((y(),S("span",{key:0,class:te(["dp-week-number",{"dp-week-number--other":!m.currentMonth&&!((x=k.value[Number($)+7])!=null&&x.currentMonth)}])},[fe(re(L.value[Math.floor(Number($)/7)])+". ",1)],2)),[[p,`${L.value[Math.floor(Number($)/7)]}. hét`]]):G("",!0),f("button",{type:"button",class:te(["dp-picker-item dp-picker-item--circle",{"dp-picker-item--other":!m.currentMonth,"dp-picker-item--selected":A(m.date,u.value),"dp-picker-item--today":R(m.date),"dp-picker-item--disabled":m.disabled,"dp-picker-item--weekend":l.value.highlightWeekends&&T(m.date)}]),disabled:m.disabled,onClick:z=>B(m)},re(m.date.getDate()),11,Ou)],64)}),128))],2),l.value.showTime||l.value.showOkButton||l.value.showClearButton?(y(),S("div",Uu,[l.value.showTime?(y(),S(he,{key:0},[d[10]||(d[10]=f("label",{class:"dp-time-label",for:"dp-hours"},"Idő",-1)),f("div",Bu,[f("input",{id:"dp-hours",ref_key:"hoursInput",ref:Se,type:"number",class:"c-focus dp-time-input",value:ae(O),disabled:!u.value,min:"0",max:"23",onInput:d[2]||(d[2]=m=>je("hours",m)),onFocus:d[3]||(d[3]=m=>m.target.select())},null,40,Hu),d[9]||(d[9]=f("span",{class:"dp-time-sep"},":",-1)),f("input",{id:"dp-minutes",ref_key:"minutesInput",ref:We,type:"number",class:"c-focus dp-time-input",value:ae(ne),disabled:!u.value,min:"0",max:"59",onInput:d[4]||(d[4]=m=>je("minutes",m)),onFocus:d[5]||(d[5]=m=>m.target.select())},null,40,Nu)])],64)):G("",!0),l.value.showClearButton?(y(),me(Pe,{key:1,label:"Törlés",onClick:_,outline:"",disabled:!u.value},null,8,["disabled"])):G("",!0),l.value.showOkButton?(y(),me(Pe,{key:2,label:"OK",type:"success",onClick:d[6]||(d[6]=m=>s("confirm",e.modelValue)),disabled:!u.value},null,8,["disabled"])):G("",!0)])):G("",!0)],64))],2)])])}}}),Lu=Fu;function ju(e,t,n){var r,i;let s=e.target,l=(r=t==null?void 0:t.contains(s))!=null?r:!1,o=(i=n==null?void 0:n.contains(s))!=null?i:!1;return!l&&!o}function hi(e,t){if(!t)return e!=null?e:null;let n=e?Number.parseFloat(e):NaN,s=Number.parseFloat(t);return Number.isNaN(n)||n<s?t:e}function Vu(e){let t=e.trim(),n=Number.parseFloat(t);if(Number.isNaN(n))return NaN;if(/rem$/i.test(t))return n*parseFloat(getComputedStyle(document.documentElement).fontSize||"16");if(/em$/i.test(t)){let s=document.body||document.documentElement;return n*parseFloat(getComputedStyle(s).fontSize||"16")}return n}function Jn(e,t,n={}){let{extraStyle:s,isOutsideClick:l=ju,closeOnScroll:o=!1,minWidth:r="120px",maxHeight:i}=n,a=F(!1),c=F({}),u=F("down");function h(){if(!e.value)return;let w=e.value.getBoundingClientRect(),b=s?s(w):void 0,C=hi(b==null?void 0:b.minWidth,r),k=window.innerHeight,I=k-w.bottom-2,L=w.top-2,D=i?Vu(i):NaN,j=!Number.isNaN(D)&&I<D&&L>I;u.value=j?"up":"down";let T=j?"auto":`${w.bottom+2}px`,A=j?`${k-w.top+2}px`:"auto";c.value=de(de({position:"fixed",top:T,bottom:A,left:`${w.left}px`,zIndex:"10001"},b!=null?b:{}),C?{minWidth:C}:{}),vt(()=>{if(!t.value||!e.value)return;let R=t.value.getBoundingClientRect(),H=e.value.getBoundingClientRect(),se=window.innerWidth,X=window.innerHeight,E=R.right>se,Z=E?`${Math.max(H.right-R.width,0)}px`:`${H.left}px`,N=T,J=A;if(u.value==="up"&&(R.top<4?(N="4px",J="auto"):(J=`${X-H.top+2}px`,N="auto")),E||N!==T||J!==A){let U=s?s(H):void 0,le=hi(U==null?void 0:U.minWidth,r);c.value=de(de({position:"fixed",top:N,bottom:J,left:Z,zIndex:"10001"},U!=null?U:{}),le?{minWidth:le}:{})}})}function v(w){l(w,e.value,t.value)&&(a.value=!1)}function g(){if(a.value){if(o){a.value=!1;return}h()}}return Le(a,w=>{w&&h()}),ft(()=>{document.addEventListener("mousedown",v),window.addEventListener("scroll",g,!0),window.addEventListener("resize",g)}),Nt(()=>{document.removeEventListener("mousedown",v),window.removeEventListener("scroll",g,!0),window.removeEventListener("resize",g)}),{isOpen:a,dropdownStyle:c,positionDropdown:h,placement:u}}var Wu={class:"ac-component"},qu=["id","value","placeholder","maxlength"],Ku=Ie({__name:"DatePicker",props:{modelValue:{default:null},config:{default:()=>de({},di)},id:{default:()=>`dp-input-${$s()}`}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){var A,R,H,se,X,E;let s=e,l=ee(()=>de(de({},di),s.config)),o=n,r=F(null),i=F(null),{isOpen:a,dropdownStyle:c}=Jn(r,i),u=F(null),h="YMDHms",v=ee(()=>{var Z;return(Z=l.value.format)!=null?Z:l.value.showTime?"YYYY-MM-DD HH:mm":"YYYY-MM-DD"}),g=F(Ns((H=(A=s.modelValue)==null?void 0:A.local)!=null?H:(R=s.modelValue)==null?void 0:R.utc)?at(Ns((E=(se=s.modelValue)==null?void 0:se.local)!=null?E:(X=s.modelValue)==null?void 0:X.utc),v.value):"");Le(()=>s.modelValue,Z=>{var J;let N=Ns((J=Z==null?void 0:Z.local)!=null?J:Z==null?void 0:Z.utc);g.value=N?at(N,v.value):""});function w(Z){let N="",J=0;for(let U=0;U<v.value.length&&J<Z.length;U++)N+=h.includes(v.value[U])?Z[J++]:v.value[U];return N}function b(Z){let N=Z;for(let J=N.length;J<v.value.length;J++)N+=h.includes(v.value[J])?"0":v.value[J];return N}function C(Z){if(Z.length!==v.value.length)return!1;for(let N=0;N<v.value.length;N++)if(h.includes(v.value[N])){if(!/\d/.test(Z[N]))return!1}else if(Z[N]!==v.value[N])return!1;return!0}function k(Z){if(!Z){g.value="",o("update:modelValue",null);return}g.value=Z;let N=ii(Z,v.value);o("update:modelValue",N?{local:N,utc:Gn(N,l.value.showTime)}:null)}function I(Z){var M;let N=Z.target,J=(M=N.selectionStart)!=null?M:0,U=N.value.replace(/\D/g,"");if(a.value=!1,!U){k(null),N.value="";return}let le=w(U);if(le.length<v.value.length&&!h.includes(v.value[le.length])&&(le+=v.value[le.length]),l.value.showTime&&le.length>=10&&le.length<v.value.length&&le.replace(/\D/g,"").length<=8){let _=b(le);N.value=_,g.value=_;let V=Math.min(J,le.length);vt(()=>N.setSelectionRange(V,V)),C(_)&&k(_);return}N.value=le,g.value=le;let B=Math.min(J,le.length);for(;B<le.length&&!h.includes(v.value[B]);)B++;vt(()=>N.setSelectionRange(B,B)),C(le)&&k(le)}function L(){var Z;g.value&&!C(g.value)&&(g.value=(Z=s.modelValue)!=null&&Z.local?at(s.modelValue.local,v.value):"")}function D(Z){Z.ctrlKey||Z.metaKey||!["Backspace","Delete","Tab","ArrowLeft","ArrowRight","Home","End"].includes(Z.key)&&!/^\d$/.test(Z.key)&&Z.preventDefault()}function j(Z){k(Z),l.value.showTime||(a.value=!1)}function T(){a.value=!0,vt(()=>{var Z;return(Z=u.value)==null?void 0:Z.focus()})}return t({focusAndOpen:T}),(Z,N)=>(y(),S("div",Wu,[f("div",{ref_key:"wrapperRef",ref:r,class:"drp-wrapper"},[f("div",{class:te(["c-input-row",{"c-input-row--sm":l.value.size==="small","c-input-row--lg":l.value.size==="large"}])},[f("input",{ref_key:"inputRef",ref:u,type:"text",id:e.id,class:"c-input dp-input pr-0",inputmode:"numeric",value:g.value,placeholder:l.value.placeholder,maxlength:v.value.length,onInput:I,onBlur:L,onKeydown:D},null,40,qu),f("button",{type:"button",class:te(["c-icon-btn dp-clear c-icon-btn--clear",{"c-icon-btn--hidden":!g.value}]),onClick:N[0]||(N[0]=J=>k(null)),"aria-label":"Törlés"},[...N[3]||(N[3]=[f("i",{class:"fa-solid fa-fw fa-xmark"},null,-1)])],2),f("button",{type:"button",class:"c-icon-btn c-icon-btn--calendar",onClick:N[1]||(N[1]=J=>a.value=!ae(a)),"aria-label":"Naptár megnyitása"},[...N[4]||(N[4]=[f("i",{class:"fa-regular fa-fw fa-calendar"},null,-1)])])],2),(y(),me(sn,{to:"body"},[ae(a)?(y(),S("div",{key:0,ref_key:"dropdownRef",ref:i,class:"c-dropdown ac-component",style:Ct(ae(c))},[ce(Lu,{"model-value":g.value||null,config:l.value,"onUpdate:modelValue":j,onConfirm:N[2]||(N[2]=J=>a.value=!1)},null,8,["model-value","config"])],4)):G("",!0)]))],512)]))}}),Hl=Ku;function jt(e,t=300){let n=null;return(...s)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>e(...s),t)}}var Yu={class:"ac-component c-input-wrapper"},Gu=["for"],Ju={modelValue:void 0,type:"text",disabled:!1,clearable:!0,autocomplete:!0,labelOnBorder:void 0,size:"normal",debounce:300},Xu=Ie({__name:"TextInput",props:Un({modelValue:{},type:{},label:{},labelOnBorder:{},placeholder:{},disabled:{type:Boolean},clearable:{type:Boolean},autocomplete:{type:Boolean},size:{},id:{},inputClass:{},debounce:{}},Ju),emits:["update:modelValue"],setup(e,{emit:t}){let n=e,s=t,l=ee(()=>{var g;return(g=n.id)!=null?g:`c-input-${$s()}`}),o=F(n.modelValue),r=ee(()=>{let g=o.value;return g!=null&&String(g)!==""});Le(()=>n.modelValue,g=>{g!==o.value&&(o.value=g)});let i=ee(()=>!!n.labelOnBorder&&n.labelOnBorder.trim()!==""),a=ee(()=>i.value&&r.value||n.label);function c(g){return jt(w=>{s("update:modelValue",n.type==="number"?w===""?null:Number(w):w)},g)}let u=F(c(n.debounce));Le(()=>n.debounce,g=>{u.value=c(g)});function h(g){let w=g.target.value;o.value=w,u.value(w)}function v(){let g=n.type==="number"?null:"";o.value=g,s("update:modelValue",g)}return(g,w)=>(y(),S("div",Yu,[i.value||e.label?(y(),S("label",{key:0,class:te(["c-label pointer",{"c-label--on-border":i.value,hide:!a.value}]),for:l.value},re(i.value?e.labelOnBorder:e.label),11,Gu)):G("",!0),f("div",{class:te(["c-input-row",{"c-input-row--sm":e.size==="small","c-input-row--lg":e.size==="large","c-input-row--disabled":e.disabled}])},[(y(),me(ml(e.type==="textarea"?"textarea":"input"),{id:l.value,type:e.type,class:te(["c-input",[{"c-textarea":e.type==="textarea","c-input--disabled":e.disabled},e.inputClass]]),value:o.value==null?"":String(o.value),placeholder:e.placeholder,disabled:e.disabled,inputmode:e.type==="number"?"decimal":void 0,autocomplete:e.autocomplete?"on":"off",onInput:h},null,40,["id","type","class","value","placeholder","disabled","inputmode","autocomplete"])),e.clearable&&!e.disabled?(y(),S("button",{key:0,type:"button",class:te(["c-icon-btn c-icon-btn--clear",{"c-icon-btn--hidden":!r.value}]),"aria-label":"Mező törlése",onClick:v},[...w[0]||(w[0]=[f("i",{class:"fa-solid fa-fw fa-xmark"},null,-1)])],2)):G("",!0)],2)]))}}),pi=Xu,Qu={class:"c-checkbox-wrapper"},Zu={class:"c-checkbox-inner"},ed=["checked","disabled"],td=Ie({__name:"Checkbox",props:{modelValue:{type:Boolean,default:void 0},label:{default:void 0},disabled:{type:Boolean,default:!1},labelAlignmentFix:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){let n=e,s=t,l=`c-checkbox-${$s()}`;function o(r){if(n.disabled)return;let i=r.target;s("update:modelValue",i.checked||void 0)}return(r,i)=>(y(),S("div",Qu,[f("span",Zu,[f("input",{type:"checkbox",class:te(["c-checkbox",{"c-checkbox--checked":!!e.modelValue,"c-checkbox--disabled":e.disabled}]),id:l,checked:!!e.modelValue,disabled:e.disabled,onChange:o},null,42,ed),e.label||r.$slots.label?(y(),S("label",{key:0,class:"c-label pointer",for:l},[et(r.$slots,"label",{},()=>[fe(re(e.label),1)])])):G("",!0)])]))}}),Xn=td,Nl=[{key:"lastDay",label:"Tegnap"},{key:"thisDay",label:"Ma"},{key:"lastWeek",label:"Múlt hét"},{key:"thisWeek",label:"E hét"},{key:"lastMonth",label:"Múlt hónap"},{key:"thisMonth",label:"E hónap"}];function Fl(e,t=new Date){if(e==="thisDay")return{from:ht(t),to:Xt(t)};if(e==="lastDay"){let n=new Date(t);return n.setDate(n.getDate()-1),{from:ht(n),to:Xt(n)}}if(e==="thisWeek"){let n=ai(t);return{from:n,to:Xt(new Date(n.getFullYear(),n.getMonth(),n.getDate()+6))}}if(e==="lastWeek"){let n=ai(t),s=new Date(n);s.setDate(s.getDate()-7);let l=Xt(new Date(n));return l.setDate(l.getDate()-1),{from:s,to:l}}return e==="thisMonth"?{from:ht(new Date(t.getFullYear(),t.getMonth(),1)),to:Xt(new Date(t.getFullYear(),t.getMonth()+1,0))}:{from:ht(new Date(t.getFullYear(),t.getMonth()-1,1)),to:Xt(new Date(t.getFullYear(),t.getMonth(),0))}}function nd(e,t){let{from:n,to:s}=Fl(e,t.now),l=t.showTime?s:ht(s);return{from:{local:n,utc:Gn(n,t.showTime)},to:{local:l,utc:Gn(l,t.showTime)}}}function sd(e,t,n){var l;let s=(l=n.now)!=null?l:new Date;for(let o of Nl){let{from:r,to:i}=Fl(o.key,s);if(n.showTime?e.getTime()===r.getTime()&&t.getTime()===i.getTime():ci(e,r)&&ci(t,i))return o.key}return null}function ld(e,t){let{from:n,to:s}=Fl(e,t.now),{minDate:l,maxDate:o,showTime:r}=t,i=r?n:ht(n),a=r?s:ht(s),c=l?r?l:ht(l):null,u=o?r?o:ht(o):null;return!(c&&i.getTime()<c.getTime()||u&&a.getTime()>u.getTime())}function Ll(e,t,n,s){let{minDate:l,maxDate:o,showTime:r}=s,i=new Date(e.getTime()+n),a=new Date(t.getTime()+n),c=r?i:ht(i),u=r?a:ht(a),h=l?r?l:ht(l):null,v=o?r?o:ht(o):null;return!(h&&c.getTime()<h.getTime()||v&&u.getTime()>v.getTime())}var od={class:"ac-component"},rd={class:"drp-input"},id={class:"c-truncate drp-input__single"},ad={class:"drp-input__multi"},cd={class:"c-truncate drp-input__line"},ud={class:"c-truncate drp-input__line"},dd={key:1,class:"c-placeholder drp-input__placeholder"},fd={class:"ac-component"},hd={class:"drp-pickers"},pd={class:"drp-picker-group"},gd=["for"],vd={class:"drp-picker-group"},md=["for"],bd={key:0,class:"drp-toolbar"},yd={class:"d-flex"},_d={class:"predefined-ranges"},kd=["aria-disabled","onClick"],wd={class:"d-flex"},Sd={key:1,class:"c-footer"},Cd=Ie({__name:"DateRangePicker",props:{modelValue:{default:null},config:{default:()=>de({},fi)}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){var We,je,Ge,Ye,pt,st,ie,d;let s=e,l=n,o=`drp-input-${$s()}`,r=ee(()=>de(de({},fi),s.config)),i=F(null),a=F(null),{isOpen:c,dropdownStyle:u}=Jn(i,a,{isOutsideClick:(p,m,$)=>{var z,q;let x=p.target;return!((z=m==null?void 0:m.contains(x))!=null&&z)&&!((q=$==null?void 0:$.contains(x))!=null&&q)&&!(x instanceof Element&&x.closest(".c-dropdown"))}});function h(p){return p?{local:new Date(p),utc:p}:null}function v(p){return{local:p,utc:Gn(p,r.value.showTime)}}function g(p){return p.local?v(Xt(p.local)):p}let w=ee(()=>{var p;return(p=r.value.format)!=null?p:r.value.showTime?"YYYY-MM-DD HH:mm":"YYYY-MM-DD"});function b(p){return p?at(new Date(p),w.value):"..."}let C=F(h((je=(We=s.modelValue)==null?void 0:We.fromUtc)!=null?je:null)),k=F(h((Ye=(Ge=s.modelValue)==null?void 0:Ge.toUtc)!=null?Ye:null)),I=F((st=(pt=s.modelValue)==null?void 0:pt.fromUtc)!=null?st:null),L=F((d=(ie=s.modelValue)==null?void 0:ie.toUtc)!=null?d:null),D=ee(()=>I.value!=null||L.value!=null),j=ee(()=>{var p,m;return(m=(p=C.value)==null?void 0:p.local)!=null?m:null}),T=ee(()=>{var p,m;return(m=(p=k.value)==null?void 0:p.local)!=null?m:null}),A=ee(()=>{var p;return(p=r.value.minDate)!=null?p:null}),R=ee(()=>{var p,m;return yu((p=r.value.maxDate)!=null?p:null,(m=T.value)!=null?m:null)}),H=ee(()=>{var p,m;return bu((p=r.value.minDate)!=null?p:null,(m=j.value)!=null?m:null)}),se=ee(()=>{var p;return(p=r.value.maxDate)!=null?p:null});Le(()=>s.modelValue,p=>{var x,z;let m=(x=p==null?void 0:p.fromUtc)!=null?x:null,$=(z=p==null?void 0:p.toUtc)!=null?z:null;C.value=h(m),k.value=h($),I.value=m,L.value=$}),Le(c,p=>{p&&r.value.lazy&&(C.value=h(I.value),k.value=h(L.value))});function X(p){C.value=p,p&&!k.value&&(k.value=r.value.showTime?g(p):p),r.value.lazy||Z()}function E(p){k.value=p,r.value.lazy||Z()}function Z(){var $,x,z,q,K;let p=(x=($=C.value)==null?void 0:$.utc)!=null?x:null,m=(q=(z=k.value)==null?void 0:z.utc)!=null?q:null;if(m&&!r.value.showTime&&((K=k.value)!=null&&K.local)){let W=Xt(k.value.local);m=Gn(W,!0)}I.value=p,L.value=m,l("update:modelValue",p||m?{fromUtc:p,toUtc:m}:null)}function N(){r.value.lazy&&Z(),c.value=!1}function J(){C.value=null,k.value=null,I.value=null,L.value=null,l("update:modelValue",null)}function U(){C.value=null,k.value=null}function le(){c.value=!0}t({focusAndOpen:le});function B(){let p=C.value,m=k.value;if(!(p!=null&&p.local)||!(m!=null&&m.local))return null;let $=864e5,x=p.local,z=m.local,q=new Date(x);q.setHours(0,0,0,0);let K=new Date(z);K.setHours(0,0,0,0);let W=x.getTime()===q.getTime(),Y=z.getTime()===K.getTime()+8634e4;return!r.value.showTime||W&&Y?(Math.round((K.getTime()-q.getTime())/$)+1)*$:z.getTime()-x.getTime()}let M=ee(()=>{var x,z,q,K,W;let p=(x=C.value)==null?void 0:x.local,m=(z=k.value)==null?void 0:z.local;if(!p||!m)return!1;let $=B();return $!=null&&Ll(p,m,-$,{minDate:(q=r.value.minDate)!=null?q:null,maxDate:(K=r.value.maxDate)!=null?K:null,showTime:(W=r.value.showTime)!=null?W:!1})}),_=ee(()=>{var x,z,q,K,W;let p=(x=C.value)==null?void 0:x.local,m=(z=k.value)==null?void 0:z.local;if(!p||!m)return!1;let $=B();return $!=null&&Ll(p,m,$,{minDate:(q=r.value.minDate)!=null?q:null,maxDate:(K=r.value.maxDate)!=null?K:null,showTime:(W=r.value.showTime)!=null?W:!1})});function V(p){var z,q,K,W,Y;let m=(z=C.value)==null?void 0:z.local,$=(q=k.value)==null?void 0:q.local;if(!m||!$)return;let x=B();x!=null&&Ll(m,$,x*p,{minDate:(K=r.value.minDate)!=null?K:null,maxDate:(W=r.value.maxDate)!=null?W:null,showTime:(Y=r.value.showTime)!=null?Y:!1})&&(C.value=v(new Date(m.getTime()+x*p)),k.value=v(new Date($.getTime()+x*p)),r.value.lazy||Z())}let O=ee(()=>{var $,x,z;let p=($=C.value)==null?void 0:$.local,m=(x=k.value)==null?void 0:x.local;return!p||!m?null:sd(p,m,{showTime:(z=r.value.showTime)!=null?z:!1})}),ne=ee(()=>{var $,x,z;let p={minDate:($=r.value.minDate)!=null?$:null,maxDate:(x=r.value.maxDate)!=null?x:null,showTime:(z=r.value.showTime)!=null?z:!1},m={};for(let q of Nl)m[q.key]=!ld(q.key,p);return m});function Se(p){var x;let{from:m,to:$}=nd(p,{showTime:(x=r.value.showTime)!=null?x:!1});C.value=m,k.value=$,Z(),r.value.lazy&&(c.value=!1)}return(p,m)=>{let $=bn("tooltip");return y(),S("div",od,[f("div",{ref_key:"wrapperRef",ref:i,class:te(["drp-wrapper",{"drp-wrapper--compact":r.value.compact}])},[f("div",{class:te(["c-input-row",{"c-input-row--sm":r.value.size==="small","c-input-row--lg":r.value.size==="large","c-input-row--focus":ae(c)}]),onClick:m[1]||(m[1]=x=>c.value=!ae(c))},[f("div",rd,[D.value?(y(),S(he,{key:0},[f("span",id,re(b(I.value))+" – "+re(b(L.value)),1),f("span",ad,[f("span",cd,re(b(I.value)),1),f("span",ud,re(b(L.value)),1)])],64)):(y(),S("span",dd,re(r.value.placeholderFrom)+" – "+re(r.value.placeholderTo),1))]),f("button",{type:"button",class:te(["c-icon-btn dp-clear c-icon-btn--clear",{"c-icon-btn--hidden":!D.value}]),onClick:Ce(J,["stop"]),"aria-label":"Törlés"},[...m[5]||(m[5]=[f("i",{class:"fa-solid fa-fw fa-xmark"},null,-1)])],2),r.value.showIcon?(y(),S("button",{key:0,type:"button",class:"c-icon-btn c-icon-btn--calendar",onClick:m[0]||(m[0]=Ce(x=>c.value=!ae(c),["stop"])),"aria-label":"Naptár megnyitása"},[...m[6]||(m[6]=[f("i",{class:"fa-regular fa-fw fa-calendar"},null,-1)])])):G("",!0)],2),(y(),me(sn,{to:"body"},[f("div",fd,[ae(c)?(y(),S("div",{key:0,ref_key:"dropdownRef",ref:a,class:"c-dropdown drp-dropdown",style:Ct(ae(u))},[f("div",hd,[f("div",pd,[f("label",{class:"drp-label",for:`${o}-from`},re(r.value.placeholderFrom),9,gd),ce(Hl,{id:`${o}-from`,"model-value":C.value,config:Ve(de({},r.value),{minDate:A.value,maxDate:R.value,placeholder:r.value.placeholderFrom}),"onUpdate:modelValue":X},null,8,["id","model-value","config"])]),f("div",vd,[f("label",{class:"drp-label",for:`${o}-to`},re(r.value.placeholderTo),9,md),ce(Hl,{id:`${o}-to`,"model-value":k.value,config:Ve(de({},r.value),{minDate:H.value,maxDate:se.value,placeholder:r.value.placeholderTo}),"onUpdate:modelValue":E},null,8,["id","model-value","config"])])]),r.value.showPresets?(y(),S("div",bd,[dt((y(),S("span",yd,[ce(Pe,{icon:"fa-solid fa-chevron-left",class:"drp-toolbar__stepper drp-toolbar__stepper--left",disabled:!M.value,onClick:m[2]||(m[2]=x=>V(-1))},null,8,["disabled"])])),[[$,M.value?"Intervallum mozgatása visszafelé":"Nem léphető tovább a minimum dátum miatt"]]),f("div",_d,[(y(!0),S(he,null,xe(ae(Nl),x=>(y(),S("a",{key:x.key,class:te(["predefined-range",{"predefined-range--active":O.value===x.key,"predefined-range--disabled":ne.value[x.key]}]),"aria-disabled":ne.value[x.key],onClick:z=>ne.value[x.key]?null:Se(x.key)},re(x.label),11,kd))),128))]),dt((y(),S("span",wd,[ce(Pe,{icon:"fa-solid fa-chevron-right",disabled:!_.value,onClick:m[3]||(m[3]=x=>V(1)),class:"drp-toolbar__stepper drp-toolbar__stepper--right"},null,8,["disabled"])])),[[$,_.value?"Intervallum mozgatása előre":"Nem léphető tovább a maximum dátum miatt"]])])):G("",!0),r.value.showClearButton||r.value.showOkButton||r.value.lazy?(y(),S("div",Sd,[r.value.showClearButton?(y(),me(Pe,{key:0,label:"Törlés",outline:"",onClick:m[4]||(m[4]=x=>r.value.lazy?U():J())})):G("",!0),r.value.showOkButton||r.value.lazy?(y(),me(Pe,{key:1,label:"OK",type:"success",onClick:N})):G("",!0)])):G("",!0)],4)):G("",!0)])]))],2)])}}}),Td=Cd,$d=Ie({__name:"Loader",props:{loading:{type:Boolean,default:!0},size:{default:"2rem"},color:{default:"var(--site-500)"}},setup(e){return(t,n)=>(y(),S("div",{class:"loader",style:Ct({width:e.size,"--loader-thickness":`calc(${e.size} / 6)`,"--loader-color":e.color})},null,4))}}),kn=$d,Id={class:"ac-component"},Ed=["aria-disabled"],xd={key:0,class:"c-truncate ds-value"},Dd={key:1,class:"c-placeholder"},Md={class:"ac-component"},Pd={key:0,class:"ds-filter"},zd=["title"],Ad=["value","placeholder"],Rd={class:"ds-options c-scroll"},Od={key:0,class:"ds-option ds-option--loading"},Ud=["onClick","onKeydown"],Bd=["innerHTML"],Hd={key:0,class:"ds-option ds-option--empty"},Nd={key:1,class:"c-footer"},gi={placeholder:"Válassz...",filterable:!0,filterPlaceholder:"Kezdj el gépelni...",clearable:!0,textEllipsis:!0,multiple:!1,lazy:!1,loading:!1,size:"normal",highlight:!0,disabled:!1},Fd=Ie({__name:"DropdownSelect",props:{modelValue:{default:null},options:{},config:{default:()=>de({},gi)}},emits:["update:modelValue","filter-input"],setup(e,{expose:t,emit:n}){let s=e,l=ee(()=>de(de({},gi),s.config)),o=n,r=F(""),i=F(null),a=F(null),c=F(null),u=F([]),h=F(b(s.modelValue,s.options)),{isOpen:v,dropdownStyle:g,placement:w}=Jn(i,a,{extraStyle:B=>({minWidth:`${B.width}px`,maxWidth:`${B.width}px`}),maxHeight:"20rem"});function b(B,M){return B==null?[]:(Array.isArray(B)?B:[B]).map(_=>{var V;return _==null?null:typeof _=="object"&&"label"in _?_:typeof _=="string"?(V=M.find(O=>O.value===_))!=null?V:{value:_,label:_}:null}).filter(_=>_!==null)}Le(()=>[s.modelValue,s.options],([B])=>{h.value=b(B,s.options)}),Le(v,B=>{B&&(r.value="",l.value.filterable&&vt(()=>{var M;return(M=c.value)==null?void 0:M.focus()}),l.value.lazy&&(u.value=[...h.value]))});function C(B){r.value=B,o("filter-input",B)}let k=ee(()=>{var B,M,_;if(h.value.length===0)return null;if(!l.value.multiple){let V=h.value[0];return(_=(M=(B=s.options.find(O=>O.value===(V==null?void 0:V.value)))==null?void 0:B.label)!=null?M:V==null?void 0:V.label)!=null?_:null}return h.value.length>2?`${h.value.length} kiválasztva`:h.value.map(V=>{var O,ne,Se;return(Se=(ne=(O=s.options.find(We=>We.value===V.value))==null?void 0:O.label)!=null?ne:V.label)!=null?Se:V.value}).join(", ")}),I=ee(()=>{let B=r.value.toLowerCase();return B?s.options.filter(M=>M.label.toLowerCase().includes(B)):s.options});function L(B){return B.replace(/[&<>"']/g,M=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[M])}function D(B){let M=r.value.trim();if(!M||!l.value.highlight)return L(B);let _=L(B),V=L(M),O=new RegExp(V.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"ig");return _.replace(O,ne=>`<mark class="ds-option__highlight">${ne}</mark>`)}let j=ee(()=>I.value.filter(B=>B.value)),T=ee(()=>{if(j.value.length===0)return!1;let B=l.value.lazy&&v.value?u.value:h.value;return j.value.every(M=>M.value&&B.some(_=>_.value===M.value))});function A(B){return(l.value.lazy&&v.value?u:h).value.some(M=>M.value===B)}function R(){let B=l.value.lazy&&v.value?u:h,M=j.value.filter(_=>_.value);if(T.value){let _=new Set(M.map(V=>V.value));B.value=B.value.filter(V=>{var O;return!_.has((O=V.value)!=null?O:"")})}else{let _=new Set(B.value.map(O=>O.value)),V=M.filter(O=>!_.has(O.value));B.value=[...B.value,...V]}l.value.lazy||o("update:modelValue",h.value.length>0?[...h.value]:null)}function H(B,M){let _=B.findIndex(V=>V.value===M.value);return _>=0?B.filter((V,O)=>O!==_):[...B,M]}function se(B){if(B.callback){B.callback(),v.value=!1;return}B.value&&(l.value.multiple?l.value.lazy?u.value=H(u.value,B):(h.value=H(h.value,B),o("update:modelValue",h.value.length>0?[...h.value]:null)):(h.value=[B],o("update:modelValue",B),v.value=!1))}function X(){l.value.lazy&&(h.value=[...u.value],o("update:modelValue",u.value.length>0?[...u.value]:null)),v.value=!1}function E(){l.value.lazy?u.value=[]:(h.value=[],o("update:modelValue",null))}function Z(B,M){B.key===" "?(B.preventDefault(),se(M)):B.key==="Enter"&&(B.preventDefault(),X())}function N(){l.value.disabled||(v.value=!v.value,v.value&&l.value.filterable&&(r.value="",o("filter-input","")))}function J(){l.value.disabled||(h.value=[],o("update:modelValue",null),v.value=!1)}function U(){l.value.disabled||(v.value=!0,l.value.filterable&&vt(()=>{var B;return(B=c.value)==null?void 0:B.focus()}))}function le(){r.value="",o("filter-input","")}return t({focusAndOpen:U}),(B,M)=>(y(),S("div",Id,[f("div",{ref_key:"wrapperRef",ref:i,class:"c-wrapper ds-wrapper"},[f("div",{class:te(["c-input-row pointer",{"c-input-row--sm":l.value.size==="small","c-input-row--lg":l.value.size==="large","c-input-row--disabled":l.value.disabled,"c-input-row--open":ae(v)}]),"aria-disabled":l.value.disabled||void 0,onClick:M[1]||(M[1]=_=>N())},[k.value?(y(),S("span",xd,re(k.value),1)):(y(),S("span",Dd,re(l.value.placeholder),1)),l.value.clearable&&h.value.length>0?(y(),S("button",{key:2,type:"button",class:"c-icon-btn c-icon-btn--clear ds-clear-btn",onClick:M[0]||(M[0]=Ce(_=>J(),["stop"])),"aria-label":"Törlés"},[...M[6]||(M[6]=[f("i",{class:"fa-solid fa-fw fa-xmark"},null,-1)])])):G("",!0),f("span",{class:te(["c-icon-btn c-icon-btn--chevron mr-2",{"c-icon-btn--chevron-open":ae(v)}])},[...M[7]||(M[7]=[f("i",{class:"fa-solid fa-fw fa-chevron-down"},null,-1)])],2)],10,Ed)],512),(y(),me(sn,{to:"body"},[f("div",Md,[ae(v)?(y(),S("div",{key:0,ref_key:"dropdownRef",ref:a,class:te(["c-dropdown ds-dropdown ds-wrapper",{"ds-dropdown--multiple":l.value.multiple,"ds-dropdown--up":ae(w)==="up"}]),style:Ct(ae(g))},[l.value.filterable?(y(),S("div",Pd,[l.value.multiple?(y(),S("span",{key:0,class:te(["c-checkbox ds-select-all-checkbox",{"c-checkbox--checked":T.value}]),onClick:M[2]||(M[2]=Ce(_=>R(),["stop"])),title:T.value?"Összes kijelölés törlése":"Összes kijelölése"},null,10,zd)):G("",!0),f("input",{ref_key:"filterInputRef",ref:c,type:"text",id:"ds-filter-input",class:"c-focus ds-filter-input",value:r.value,onInput:M[3]||(M[3]=_=>C(_.target.value)),autocomplete:"off",placeholder:l.value.filterPlaceholder,onClick:M[4]||(M[4]=Ce(()=>{},["stop"]))},null,40,Ad),r.value?(y(),S("button",{key:1,type:"button",class:"c-icon-btn c-icon-btn--clear ds-filter-clear",onClick:M[5]||(M[5]=Ce(_=>le(),["stop"])),"aria-label":"Szűrők törlése"},[...M[8]||(M[8]=[f("i",{class:"fa-solid fa-xmark"},null,-1)])])):G("",!0)])):G("",!0),f("ul",Rd,[l.value.loading?(y(),S("li",Od,[ce(kn,{size:"2rem",color:"var(--neutral-300)",class:"m-auto p-3"})])):(y(),S(he,{key:1},[(y(!0),S(he,null,xe(I.value,(_,V)=>{var O;return y(),S("li",{key:(O=_.value)!=null?O:`cb-${V}`,class:te(["d-option ds-option",{"ds-option--selected":_.value&&A(_.value)}]),tabindex:"0",onClick:ne=>se(_),onKeydown:ne=>Z(ne,_)},[l.value.multiple&&_.value?(y(),S("span",{key:0,class:te(["c-checkbox",{"c-checkbox--checked":A(_.value)}])},null,2)):G("",!0),_.icon?(y(),S("i",{key:1,class:te(["fa-fw",_.icon])},null,2)):G("",!0),f("span",{class:te(["d-option__label",{"c-truncate":l.value.textEllipsis}]),innerHTML:D(_.label)},null,10,Bd)],42,Ud)}),128)),I.value.length===0?(y(),S("li",Hd," Nincs találat ")):G("",!0)],64))]),l.value.multiple?(y(),S("div",Nd,[l.value.clearable&&h.value.length>0?(y(),me(Pe,{key:0,label:"Törlés",outline:"",onClick:E})):G("",!0),ce(Pe,{label:"OK",type:"success",onClick:X})])):G("",!0)],6)):G("",!0)])]))]))}}),jl=Fd,Ld=["aria-label"],jd={class:"ac-component"},Vd={class:"ds-options c-scroll"},Wd=["onClick","aria-label"],qd=Ie({__name:"DropdownMenu",props:{size:{default:"normal"},icon:{default:void 0},label:{default:void 0},ariaLabel:{},textEllipsis:{type:Boolean,default:!0},type:{default:"normal"},items:{},labelAlignmentFix:{type:Boolean,default:!1},class:{}},setup(e){let t=e,n=F(null),s=F(null),{isOpen:l,dropdownStyle:o}=Jn(n,s,{extraStyle:a=>({minWidth:`${a.width}px`,maxWidth:`${a.width*2}px`}),closeOnScroll:!0});function r(){l.value=!l.value}function i(a){var c;(c=a.callback)==null||c.call(a),l.value=!1}return(a,c)=>{var u;return y(),S("div",{ref_key:"wrapperRef",ref:n,class:"ds-wrapper d-inline-block"},[f("button",{type:"button",class:te(["c-btn dm-trigger",[e.size==="small"&&"c-btn-sm",e.size==="large"&&"c-btn-lg",e.type!=="normal"&&`c-btn-${e.type}`,t.class]]),"aria-label":(u=e.ariaLabel)!=null?u:e.label,onClick:c[0]||(c[0]=h=>r())},[e.icon?(y(),S("i",{key:0,class:te(["fa-fw",e.icon])},null,2)):G("",!0),e.label?(y(),S("span",{key:1,class:te(["btn-label",{"align-center-fix ":t.labelAlignmentFix}])},re(e.label),3)):G("",!0),f("span",{class:te(["c-icon-btn c-icon-btn--chevron",{"c-icon-btn--chevron-open":ae(l)}])},[f("i",{class:te(["fa-solid fa-chevron-down",{"fa-fw":!!e.label}])},null,2)],2)],10,Ld),(y(),me(sn,{to:"body"},[f("div",jd,[ae(l)?(y(),S("div",{key:0,ref_key:"dropdownRef",ref:s,class:"c-dropdown ds-wrapper",style:Ct(ae(o))},[f("ul",Vd,[(y(!0),S(he,null,xe(e.items,(h,v)=>{var g,w,b;return dt((y(),S("li",{key:`cb-${v}`,class:te(["d-option dm-option c-field-size c-type-color",{[`c-field-size--${ae(ui)(h.size)}`]:h.size,[`c-type-color--${h.type}`]:h.type,"is-disabled":(g=h.disabled)==null?void 0:g.call(h),[h.class]:!!h.class}]),tabindex:"0",onClick:C=>i(h),"aria-label":(w=h.ariaLabel)!=null?w:h.label},[h.icon?(y(),S("i",{key:0,class:te(["fa-fw",h.icon])},null,2)):G("",!0),f("span",{class:te(["d-option__label",{"c-truncate":t.textEllipsis}])},re(h.label),3)],10,Wd)),[[qr,!((b=h.hidden)!=null&&b.call(h))]])}),128))])],4)):G("",!0)])]))],512)}}}),Kd=qd;function Yd(e,t){let{position:n,onClose:s,distanceThreshold:l=.35,velocityThreshold:o=.4,verticalRatio:r=.7,closeDirections:i="away"}=t,a=F(!1),c=F(0),u=0,h=0,v=0,g=null,w=0,b=ee(()=>n.value==="left"||n.value==="right");function C(j){if(!b.value||j.touches.length!==1)return;let T=j.touches[0];if(!T)return;let A=e.value;A&&(u=T.clientX,h=T.clientY,v=performance.now(),w=A.offsetWidth,a.value=!0,c.value=0,g=T.identifier)}function k(j){if(!a.value||g===null)return;let T=Array.from(j.touches).find(H=>H.identifier===g);if(!T)return;let A=T.clientX-u,R=T.clientY-h;if(Math.abs(R)>Math.abs(A)*r&&Math.abs(R)>10){a.value=!1,c.value=0;return}n.value==="left"?c.value=i==="both"?A:Math.min(0,A):c.value=i==="both"?A:Math.max(0,A),j.cancelable&&j.preventDefault()}function I(j){var E;if(!a.value)return;let T=(E=Array.from(j.changedTouches).find(Z=>Z.identifier===g))!=null?E:j.changedTouches[0],A=T?T.clientX-u:0,R=Math.max(1,performance.now()-v),H=Math.abs(A)/R,se=Math.abs(A)/Math.max(w,1)>=l||H>=o,X=n.value==="left"&&A<0||n.value==="right"&&A>0;se&&(i==="both"||X)&&s(),a.value=!1,g=null,c.value=0}function L(){a.value=!1,g=null,c.value=0}let D=ee(()=>{if(!(!a.value||c.value===0))return{transform:`translateX(${c.value}px)`,transition:"none"}});return ft(()=>{document.addEventListener("touchmove",k,{passive:!1})}),Nt(()=>{document.removeEventListener("touchmove",k)}),{isDragging:a,panelStyle:D,touchHandlers:{onTouchstart:C,onTouchend:I,onTouchcancel:L}}}var Gd={class:"ac-component"},Jd={key:0,class:"sb-header"},Xd={class:"sb-title"},Qd={class:"sb-content c-scroll"},Zd={open:!1,position:"left",hasHeader:!0,withBackdrop:!0},ef=Ie({__name:"Sidebar",props:Un({open:{type:Boolean},position:{},title:{},hasHeader:{type:Boolean},withBackdrop:{type:Boolean}},de({},Zd)),emits:["close"],setup(e,{emit:t}){let n=e,s=t;function l(){s("close")}function o(){l()}function r(h){h.key==="Escape"&&l()}let i=F(null),{isDragging:a,panelStyle:c,touchHandlers:u}=Yd(i,{position:ka(n,"position"),onClose:l,closeDirections:"both"});return ft(()=>{document.addEventListener("keydown",r)}),Nt(()=>{document.removeEventListener("keydown",r)}),(h,v)=>(y(),me(sn,{to:"body"},[f("div",Gd,[ce(Pl,{name:"sb-fade"},{default:Ze(()=>[e.open&&e.withBackdrop?(y(),S("div",{key:0,class:"sb-backdrop",onClick:Ce(o,["self"])})):G("",!0)]),_:1}),ce(Pl,{name:`sb-slide-${e.position}`},{default:Ze(()=>{var g;return[e.open?(y(),S("div",{key:0,ref_key:"panelRef",ref:i,class:te(["sb-panel",[`sb-panel--${e.position}`,{"sb-panel--dragging":ae(a)}]]),style:Ct(ae(c)),onTouchstart:v[2]||(v[2]=(...w)=>ae(u).onTouchstart&&ae(u).onTouchstart(...w)),onTouchend:v[3]||(v[3]=(...w)=>ae(u).onTouchend&&ae(u).onTouchend(...w)),onTouchcancel:v[4]||(v[4]=(...w)=>ae(u).onTouchcancel&&ae(u).onTouchcancel(...w))},[e.hasHeader?(y(),S("div",Jd,[f("span",Xd,re((g=e.title)!=null?g:""),1),ce(Pe,{class:"sb-close",icon:"fa-solid fa-xmark",onClick:v[0]||(v[0]=w=>l())})])):(y(),me(Pe,{key:1,class:"sb-close sb-close--absolute",icon:"fa-solid fa-xmark",onClick:v[1]||(v[1]=w=>l())})),f("div",Qd,[et(h.$slots,"default")])],38)):G("",!0)]}),_:3},8,["name"])])]))}}),Vl=ef,tf={class:"ac-component"},nf={class:"hc-left"},sf={class:"hc-title-group"},lf={class:"hc-title"},of={key:1,class:"hc-slot hc-slot--left"},rf={key:0,class:"hc-slot hc-slot--center"},af={key:1,class:"hc-slot hc-slot--right"},vi={icon:void 0,backButton:()=>({icon:"fa-solid fa-chevron-left",ariaLabel:"Vissza",callback:()=>{}}),toolbars:()=>[],isSticky:!1},cf=Ie({__name:"HeaderComponent",props:Un({title:{},icon:{},showBackButton:{type:Boolean},backButton:{},toolbars:{},isSticky:{type:Boolean}},de({},vi)),setup(e){let t=e,n=ee(()=>{if(t.backButton)return de(de({},vi.backButton()),t.backButton)}),s=ee(()=>{let l={left:0,center:1,right:2};return[...t.toolbars].sort((o,r)=>l[o.align]-l[r.align])});return(l,o)=>(y(),S("div",tf,[f("header",{class:te(["hc-header",{"hc-header--sticky":e.isSticky}])},[f("div",nf,[e.showBackButton&&n.value?(y(),me(Pe,wt({key:0,class:"hc-back-btn"},n.value),null,16)):G("",!0),f("div",sf,[e.icon?(y(),S("i",{key:0,class:te([e.icon,"hc-title-icon"])},null,2)):G("",!0),f("h1",lf,re(e.title),1)]),l.$slots.left?(y(),S("div",of,[et(l.$slots,"left")])):G("",!0),(y(!0),S(he,null,xe(s.value.filter(r=>r.align==="left"),(r,i)=>(y(),S("div",{key:`l-${i}`,class:"hc-buttons hc-buttons--left"},[(y(!0),S(he,null,xe(r.buttons,(a,c)=>(y(),me(Pe,wt({key:c},{ref_for:!0},a),null,16))),128))]))),128))]),l.$slots.center||s.value.some(r=>r.align==="center")?(y(),S("div",rf,[et(l.$slots,"center"),(y(!0),S(he,null,xe(s.value.filter(r=>r.align==="center"),(r,i)=>(y(),S("div",{key:`c-${i}`,class:"hc-buttons"},[(y(!0),S(he,null,xe(r.buttons,(a,c)=>(y(),me(Pe,wt({key:c},{ref_for:!0},a),null,16))),128))]))),128))])):G("",!0),l.$slots.right||s.value.some(r=>r.align==="right")?(y(),S("div",af,[et(l.$slots,"right"),(y(!0),S(he,null,xe(s.value.filter(r=>r.align==="right"),(r,i)=>(y(),S("div",{key:`r-${i}`,class:"hc-buttons"},[(y(!0),S(he,null,xe(r.buttons,(a,c)=>(y(),me(Pe,wt({key:c},{ref_for:!0},a),null,16))),128))]))),128))])):G("",!0)],2)]))}}),uf=cf,df={class:"ac-component"},ff={key:0,class:"c-modal-header"},hf={class:"c-modal-title"},pf={class:"c-modal-body c-scroll"},gf={key:1,class:"c-modal-footer"},vf=Ie({__name:"Modal",props:{title:{},modalClass:{}},emits:["close"],setup(e,{emit:t}){let n=t;function s(o){o.target===o.currentTarget&&n("close")}function l(o){o.key==="Escape"&&n("close")}return ft(()=>{document.addEventListener("keydown",l)}),vl(()=>{document.removeEventListener("keydown",l)}),(o,r)=>(y(),me(sn,{to:"body"},[f("div",df,[f("div",{class:"c-modal-backdrop",onMousedown:s},[f("div",{class:te(["c-modal",e.modalClass])},[e.title?(y(),S("div",ff,[f("h3",hf,re(e.title),1),f("button",{type:"button",class:"c-modal-close",onClick:r[0]||(r[0]=i=>n("close"))},[...r[1]||(r[1]=[f("i",{class:"fa-solid fa-xmark"},null,-1)])])])):G("",!0),f("div",pf,[et(o.$slots,"default")]),o.$slots.footer?(y(),S("div",gf,[et(o.$slots,"footer")])):G("",!0)],2)],32)])]))}}),mf=vf,bf=["innerHTML"],yf=Ie({__name:"ConfirmModal",props:{title:{},message:{},confirmLabel:{default:"Rendben"},cancelLabel:{default:"Mégse"},type:{default:"normal"}},emits:["confirm","cancel"],setup(e,{emit:t}){let n=t;return(s,l)=>(y(),me(mf,{title:e.title,onClose:l[2]||(l[2]=o=>n("cancel"))},{footer:Ze(()=>[ce(Pe,{label:e.cancelLabel,type:"normal",outline:"",onClick:l[0]||(l[0]=o=>n("cancel"))},null,8,["label"]),ce(Pe,{label:e.confirmLabel,type:e.type,onClick:l[1]||(l[1]=o=>n("confirm"))},null,8,["label","type"])]),default:Ze(()=>[f("p",{class:"c-confirm-modal-message",innerHTML:e.message},null,8,bf)]),_:1},8,["title"]))}}),mi=yf,_f=Ie({__name:"CopyToClipboard",props:{value:{},target:{},useParent:{type:Boolean}},setup(e){let t=e,n=F(!1);function s(l){let o="";if(t.target){let r=typeof t.target=="string"?document.querySelector(t.target):t.target;r&&(o=r.innerText)}else if(t.useParent&&(l!=null&&l.target)){let r=l.target.parentElement;r&&(o=r.innerText)}else o=t.value==null?"":String(t.value);o&&(navigator.clipboard.writeText(o),n.value=!0,setTimeout(()=>{n.value=!1},1500))}return(l,o)=>(y(),S("i",{class:te([n.value?"fa-solid fa-check c-copy-btn--copied":"fa-regular fa-copy","c-copy-btn"]),tabindex:"0",onClick:Ce(s,["stop"])},null,2))}}),Ls=_f,Wl=F(null);function Qn(e){return Wl.value?Wl.value.addToast(e):(console.warn("[useToast] No <ToastNotification /> instance is mounted. Mount it once in your app root (e.g. App.vue) before calling toast.*"),null)}function kf(e,t,n={}){return Qn(de({title:e,message:t,type:"success"},n))}function wf(e,t,n={}){var s;return Qn(de({title:e,message:t,type:"error",displayDuration:(s=n.displayDuration)!=null?s:1e4},n))}function Sf(e,t,n={}){return Qn(de({title:e,message:t,type:"warning"},n))}function Cf(e,t,n={}){return Qn(de({title:e,message:t,type:"info"},n))}function Tf(e){var t;(t=Wl.value)==null||t.dismiss(e)}var $f={show:Qn,success:kf,error:wf,warning:Sf,info:Cf,dismiss:Tf},If=Ie({__name:"DataListActions",props:{actions:{},item:{}},setup(e){let t=F(null);function n(i,a){var h;let c={title:(h=i.label)!=null?h:"Megerősítés",message:"Biztosan végrehajta a műveletet?",type:i.type},u=typeof i.withConfirmConfig=="function"?i.withConfirmConfig(a):i.withConfirmConfig;return de(de({},c),u)}function s(i,a){i.withConfirm?t.value={action:i,item:a}:i.callback(a)}function l(){t.value&&(t.value=(t.value.action.callback(t.value.item),null))}function o(i){return i.isGroup===!0&&Array.isArray(i.items)}function r(i,a){return i.items.map(c=>{var v;let u=c.disabled,h=c.hidden;return{icon:c.icon,label:(v=c.label)!=null?v:"",type:c.type,size:c.label?"small":"normal",class:c.class,callback:()=>s(c,a),disabled:u?()=>u(a):void 0,hidden:h?()=>h(a):void 0}})}return(i,a)=>(y(),S(he,null,[(y(!0),S(he,null,xe(e.actions,(c,u)=>(y(),S(he,{key:u},[c.hidden&&c.hidden(e.item)?G("",!0):(y(),S(he,{key:0},[o(c)?(y(),me(Kd,wt({key:0,icon:c.icon,label:c.label,items:r(c,e.item),class:c.class},{ref_for:!0},c.config),null,16,["icon","label","items","class"])):(y(),me(Pe,wt({key:1,icon:c.icon,label:c.label,type:c.type,ariaLabel:c.ariaLabel,class:c.class,outline:"",callback:()=>s(c,e.item),disabled:c.disabled?c.disabled(e.item):!1},{ref_for:!0},c.config),null,16,["icon","label","type","ariaLabel","class","callback","disabled"]))],64))],64))),128)),t.value?(y(),me(mi,wt({key:0},n(t.value.action,t.value.item),{onConfirm:l,onCancel:a[0]||(a[0]=c=>t.value=null)}),null,16)):G("",!0)],64))}}),ql=If,bi={striped:!0,compact:!1},yi={compact:!1},Ef={layout:"screen",compact:!1,filtersEager:!1},xf=["aria-expanded","title"],Df=Ie({__name:"TagList",props:{items:{default:()=>[]},visibleCount:{default:3},class:{default:void 0}},setup(e){let t=e,n=F(!1),s=ee(()=>t.items.length),l=ee(()=>Math.max(0,s.value-t.visibleCount)),o=ee(()=>n.value||s.value<=t.visibleCount?t.items:t.items.slice(0,t.visibleCount)),r=ee(()=>n.value?0:l.value);function i(c){var u;return c==null?"":typeof c=="string"?c:(u=c.label)!=null?u:c.id==null?"":String(c.id)}function a(){n.value=!n.value}return(c,u)=>(y(),S("span",{class:te(["tag-list",t.class])},[(y(!0),S(he,null,xe(o.value,(h,v)=>(y(),S("span",{key:v,class:"tag-list__item"},re(i(h))+re(v<o.value.length-1?",":""),1))),128)),r.value>0?(y(),S("button",{key:0,type:"button",class:"tag-list__toggle","aria-expanded":n.value,title:n.value?"Összecsukás":`További ${r.value} megjelenítése`,onClick:a}," +"+re(r.value),9,xf)):G("",!0)],2))}}),_i=Df;function Kl(e=!1,t){return n=>{let s=Ns(n);return s?t?at(s,t):e?at(s,"YYYY-MM-DD HH:mm"):at(s,"YYYY-MM-DD"):""}}function ki(e=3){return t=>{if(!t)return"";let n=typeof t=="string"?t:String(t);return`${n.slice(0,e)}...${n.slice(-e)}`}}function Mf(e,t){return n=>{if(n==null)return t!=null?t:"";let s=String(n);return s in e?e[s]:t!=null?t:n}}function wi(e=", ",t=!1){return n=>{if(Array.isArray(n)){let s=n.map(String);if(!t||s.length===0)return s.join(e);let[l,...o]=s;return`<strong>${l}</strong>${o.length?e+o.join(e):""}`}return n==null?"":String(n)}}function Pf(e={}){let{visibleCount:t=3,class:n}=e;return s=>Array.isArray(s)?Us(_i,{items:s,visibleCount:t,class:n}):Us(_i,{items:[],visibleCount:t,class:n})}function Si(e,t,n){let s=F(new Set),l=ee(()=>{let i=t(),a=e();return a.length>0&&i!=null&&a.every(c=>s.value.has(c[i]))});function o(i){let a=i[t()];s.value.has(a)?s.value.delete(a):s.value.add(a),n([...s.value])}function r(){let i=t();if(l.value)s.value.clear();else for(let a of e())s.value.add(a[i]);n([...s.value])}return{selectedKeys:s,allSelected:l,toggle:o,toggleAll:r}}function Qt(e,t){if(!t)return"";let n=e[t.property];return t.converter?t.converter(n,e):n}var zf={class:"dc-cell"},Af={key:0,class:"dc-loading"},Rf={key:2},Of=["innerHTML"],Uf={key:3,class:"dc-datetime"},Bf={class:"dc-datetime__part"},Hf={key:0,class:"dc-datetime__sep"},Nf={class:"dc-datetime__part"},Ff={key:4},Lf=["innerHTML"],jf=Ie({__name:"DataCell",props:{item:{},col:{},copy:{type:Boolean,default:!0}},setup(e){let t=e,n=ee(()=>Qt(t.item,t.col)),s=ee(()=>on(n.value)),l=ee(()=>ki()(n.value)),o=ee(()=>{if(t.col.type!=="datetime")return null;let r=n.value;if(!r)return{date:"",time:""};let i=r.indexOf(" ");return i===-1?{date:r,time:""}:{date:r.slice(0,i),time:r.slice(i+1)}});return(r,i)=>{let a=bn("tooltip");return y(),S("span",zf,[et(r.$slots,"cell",{item:e.item,col:e.col,value:n.value},()=>{var c,u,h,v,g;return[(u=(c=e.col).loading)!=null&&u.call(c)?(y(),S("span",Af,[ce(kn,{loading:!0,size:"1rem"})])):s.value?(y(),me(ml(n.value),{key:1})):e.col.type==="uuid"?dt((y(),S("span",Rf,[f("span",{innerHTML:l.value},null,8,Of),e.copy&&n.value?(y(),me(Ls,{key:0,value:n.value},null,8,["value"])):G("",!0)])),[[a,n.value]]):e.col.type==="datetime"?(y(),S("span",Uf,[f("span",Bf,re((h=o.value)==null?void 0:h.date),1),(v=o.value)!=null&&v.time?(y(),S("span",Hf)):G("",!0),f("span",Nf,re((g=o.value)==null?void 0:g.time),1),e.copy&&n.value?(y(),me(Ls,{key:1,value:n.value},null,8,["value"])):G("",!0)])):(y(),S("span",Ff,[f("span",{innerHTML:n.value},null,8,Lf),e.copy&&n.value?(y(),me(Ls,{key:0,value:n.value},null,8,["value"])):G("",!0)]))]})])}}}),Ci=jf,Vf={key:0},Wf=["title","onClick"],qf={key:1,class:"c-actions-header"},Kf={key:0},Yf=["onClick"],Gf={key:1,class:"c-actions-cell"},Jf={key:1,class:"c-actions-wrap"},Xf={key:1},Qf={class:"c-table__loading-row"},Zf=["colspan"],eh={class:"c-table__loading-wrap"},th={key:0,class:"c-table__backdrop","aria-hidden":"true"},nh=Ie({__name:"DataTable",props:{config:{},items:{},settings:{default:()=>de({},bi)},loading:{type:Boolean,default:!1},initialSort:{default:null}},emits:["selection-change","sort-change"],setup(e,{emit:t}){let n=e,s=t,l=F(null),o=F(null);Le(()=>n.loading,b=>De(null,null,function*(){var C;b&&(yield vt(),(C=o.value)==null||C.scrollTo({top:0,behavior:"smooth"}))}));let{selectedKeys:r,allSelected:i,toggle:a,toggleAll:c}=Si(()=>n.items,()=>n.config.selectableAttr,b=>s("selection-change",b)),u=ee(()=>n.config.columns.filter(b=>b.visible!==!1));function h(b){return b.sort?typeof b.sort=="boolean"?null:b.sort:null}function v(b){return!!b.sort}function g(b){var I,L,D;let C=b.property,k=((I=l.value)==null?void 0:I.key)===C&&l.value.direction==="asc"?"desc":"asc";l.value={key:C,direction:k},(D=(L=h(b))==null?void 0:L.callback)==null||D.call(L,C,k),s("sort-change",{key:C,direction:k})}function w(b){var k,I,L;if(!b){l.value!==null&&(l.value=null);return}let C=n.config.columns.find(D=>D.property===b.key);C&&(((k=l.value)==null?void 0:k.key)!==b.key||l.value.direction!==b.direction)&&(l.value={key:b.key,direction:b.direction},(L=(I=h(C))==null?void 0:I.callback)==null||L.call(I,b.key,b.direction),s("sort-change",{key:b.key,direction:b.direction}))}return ft(()=>w(n.initialSort)),Le(()=>n.initialSort,b=>{var C;if(!b){l.value!==null&&(l.value=null);return}n.config.columns.find(k=>k.property===b.key)&&(((C=l.value)==null?void 0:C.key)!==b.key||l.value.direction!==b.direction)&&(l.value={key:b.key,direction:b.direction})}),(b,C)=>{var k;return y(),S("div",{ref_key:"tableWrapperRef",ref:o,class:te(["ac-component c-table-wrapper list-table-view",{"is-loading":e.loading}])},[f("table",{class:te(["c-table",{"is-compact":e.settings.compact}])},[f("thead",null,[f("tr",null,[e.config.selectableAttr?(y(),S("th",Vf,[ce(Xn,{"model-value":ae(i),"onUpdate:modelValue":ae(c)},null,8,["model-value","onUpdate:modelValue"])])):G("",!0),(y(!0),S(he,null,xe(u.value,I=>{var L,D,j,T,A,R,H;return y(),S("th",{key:I.property,class:te([{"c-sortable":v(I),"c-sortable--sorted":((L=l.value)==null?void 0:L.key)===I.property,"primary-col":I.primary},I.headerClass]),title:v(I)?`Sorrendezés ${I.label} alapján`:void 0,onClick:se=>v(I)?g(I):void 0},[fe(re(I.hideHeader?"":I.label)+" ",1),v(I)?(y(),S("span",{key:0,class:te(["c-sort-icon fa-solid",{"fa-sort":((D=l.value)==null?void 0:D.key)!==I.property,"fa-sort-down":((j=l.value)==null?void 0:j.key)===I.property&&l.value.direction==="desc","fa-sort-up":((T=l.value)==null?void 0:T.key)===I.property&&l.value.direction==="asc","c-sort-icon--active":((A=l.value)==null?void 0:A.key)===I.property,"is-asc":((R=l.value)==null?void 0:R.key)===I.property&&l.value.direction==="asc","is-desc":((H=l.value)==null?void 0:H.key)===I.property&&l.value.direction==="desc"}])},null,2)):G("",!0)],10,Wf)}),128)),e.config.actions?(y(),S("th",qf,re((k=e.config.actionHeader)!=null?k:""),1)):G("",!0)])]),!e.loading||e.items.length>0?(y(),S("tbody",Kf,[(y(!0),S(he,null,xe(e.items,(I,L)=>(y(),S("tr",{key:L,class:te({"is-selected":e.config.selectableAttr&&ae(r).has(I[e.config.selectableAttr]),"is-striped":e.settings.striped&&L%2==1})},[e.config.selectableAttr?(y(),S("td",{key:0,class:"pointer",onClick:Ce(D=>ae(a)(I),["stop"])},[ce(Xn,{"model-value":!!ae(r).has(I[e.config.selectableAttr]),"onUpdate:modelValue":D=>ae(a)(I),onClick:C[0]||(C[0]=Ce(()=>{},["stop"]))},null,8,["model-value","onUpdate:modelValue"])],8,Yf)):G("",!0),(y(!0),S(he,null,xe(u.value,D=>(y(),S("td",{key:D.property,class:te(["c-table__cell",[D.class,{"primary-col":D.primary}]])},[et(b.$slots,`cell:${D.property}`,{item:I,col:D},()=>[ce(Ci,{item:I,col:D,copy:!D.hideCopyToClipboard},null,8,["item","col","copy"])])],2))),128)),e.config.actions?(y(),S("td",Gf,[b.$slots.actions?et(b.$slots,"actions",{key:0,item:I,index:L,actions:e.config.actions}):(y(),S("div",Jf,[ce(ql,{actions:e.config.actions,item:I},null,8,["actions","item"])]))])):G("",!0)],2))),128))])):(y(),S("tbody",Xf,[f("tr",Qf,[f("td",{colspan:u.value.length+ +!!e.config.selectableAttr+ +!!e.config.actions,class:"c-table__loading-cell"},[f("div",eh,[ce(kn,{loading:!0,size:"2.5rem"})])],8,Zf)])]))],2),e.loading&&e.items.length>0?(y(),S("div",th,[ce(kn,{loading:!0,size:"2.5rem"})])):G("",!0)],2)}}}),sh=nh,lh=["onClick","onPointerdown"],oh=["onClick"],rh={class:"c-card__heading"},ih={class:"c-card__label"},ah=["innerHTML"],ch=["innerHTML"],uh={class:"c-card__body"},dh={class:"c-card__field-label"},fh={key:1,class:"c-cards__loading-wrap"},hh={key:2,class:"c-cards__backdrop","aria-hidden":"true"},ph=Ie({__name:"DataCards",props:{config:{},items:{},settings:{default:()=>de({},yi)},loading:{type:Boolean,default:!1}},emits:["selection-change"],setup(e,{emit:t}){let n=e,s=t,{selectedKeys:l,toggle:o}=Si(()=>n.items,()=>n.config.selectableAttr,k=>s("selection-change",k)),r=F(new Set),i=F(null);Le(()=>n.loading,k=>De(null,null,function*(){var I;k&&(yield vt(),(I=i.value)==null||I.scrollTo({top:0,behavior:"smooth"}))})),Le(()=>n.items,()=>{r.value=new Set});let a=ee(()=>n.config.columns.filter(k=>k.visible!==!1)),c=ee(()=>{let k=n.settings;if(k!=null&&k.cardHeaderColumns){let L=a.value.filter(D=>k.cardHeaderColumns[D.property]);if(L.length>0){if(k.cardHeaderOrder){let D=k.cardHeaderOrder;return[...L].sort((j,T)=>{let A=D.indexOf(j.property),R=D.indexOf(T.property);return(A===-1?999:A)-(R===-1?999:R)})}return L}}let I=a.value.filter(L=>L.primary);return I.length>0?I:a.value.slice(0,1)}),u=null,h=!1;function v(k,I){n.config.selectableAttr&&k.button===0&&(h=!1,u=setTimeout(()=>{h=!0,o(I)},500))}function g(){u&&(u=(clearTimeout(u),null))}function w(k){h&&k.preventDefault()}function b(k){if(h){h=!1;return}C(k)}function C(k){r.value.has(k)?r.value.delete(k):r.value.add(k),r.value=new Set(r.value)}return(k,I)=>{let L=bn("tooltip");return y(),S("div",{ref_key:"cardsWrapperRef",ref:i,class:te(["ac-component c-cards-wrapper list-card-view",{"is-loading":e.loading}])},[!e.loading||e.items.length>0?(y(),S("div",{key:0,class:te(["c-cards",{"is-compact":e.settings.compact}])},[(y(!0),S(he,null,xe(e.items,(D,j)=>(y(),S("div",{key:j,class:te(["c-card",{"is-open":r.value.has(j),"is-selected":e.config.selectableAttr&&ae(l).has(D[e.config.selectableAttr])}])},[f("button",{type:"button",class:"c-card__header",onClick:T=>b(j),onPointerdown:T=>v(T,D),onPointerup:I[1]||(I[1]=T=>g()),onPointerleave:I[2]||(I[2]=T=>g()),onContextmenu:w},[e.config.selectableAttr?(y(),S("span",{key:0,class:"c-card__check-zone",onClick:Ce(T=>ae(o)(D),["stop"])},[ce(Xn,{"model-value":!!ae(l).has(D[e.config.selectableAttr]),"onUpdate:modelValue":T=>ae(o)(D),onClick:I[0]||(I[0]=Ce(()=>{},["stop"]))},null,8,["model-value","onUpdate:modelValue"])],8,oh)):G("",!0),f("span",rh,[(y(!0),S(he,null,xe(c.value,(T,A)=>(y(),S("span",{key:T.property,class:te(["c-card__heading-item",[{primary:T.primary},T.headerClass]])},[f("span",ih,re(T.hideHeader?"":T.label),1),f("span",{class:te(["c-card__title",{"c-truncate":e.settings.compact&&A===0}])},[on(ae(Qt)(D,T))?(y(),me(ml(ae(Qt)(D,T)),{key:0})):T.type==="uuid"?dt((y(),S("span",{key:1,innerHTML:ae(ki)()(ae(Qt)(D,T))},null,8,ah)),[[L,ae(Qt)(D,T)]]):(y(),S("span",{key:2,innerHTML:ae(Qt)(D,T)},null,8,ch))],2)],2))),128))]),I[4]||(I[4]=f("span",{class:"c-card__icon","aria-hidden":"true"},[f("i",{class:"fa-solid fa-chevron-down"})],-1))],40,lh),dt(f("div",uh,[(y(!0),S(he,null,xe(a.value,T=>(y(),S("div",{key:T.property,class:"c-card__field"},[f("span",dh,re(T.label),1),et(k.$slots,`cell:${T.property}`,{item:D,col:T},()=>[ce(Ci,{item:D,col:T,class:"c-card__field-value",copy:!1},null,8,["item","col"])]),ae(Qt)(D,T)&&!T.hideCopyToClipboard?(y(),me(Ls,{key:0,class:"c-card__field-copy click-expand",value:ae(Qt)(D,T)},null,8,["value"])):G("",!0)]))),128)),e.config.actions?(y(),S("div",{key:0,class:"c-card__actions",onClick:I[3]||(I[3]=Ce(()=>{},["stop"]))},[et(k.$slots,"actions",{item:D,index:j,actions:e.config.actions},()=>[ce(ql,{actions:e.config.actions,item:D},null,8,["actions","item"])])])):G("",!0)],512),[[qr,r.value.has(j)]])],2))),128))],2)):(y(),S("div",fh,[ce(kn,{loading:!0,size:"2.5rem"})])),e.loading&&e.items.length>0?(y(),S("div",hh,[ce(kn,{loading:!0,size:"2.5rem"})])):G("",!0)],2)}}}),gh=ph;function Ti(e,t){let n=de({},e);for(let s in t)n[s]=t[s]&&typeof t[s]=="object"&&!Array.isArray(t[s])&&s in e&&typeof e[s]=="object"?Ti(e[s],t[s]):t[s];return n}var vh={class:"list-options basic"},mh={class:"list-options__col"},bh={class:"list-options__title"},yh={class:"list-options__title-value"},_h={class:"layout-switch"},kh={class:"list-options__col"},wh={class:"list-options__title"},Sh={class:"list-options__list"},Ch={class:"list-options__col"},Th={class:"list-options__title"},$h={class:"list-options__list"},Ih=["draggable","onDragstart","onDragover","onClick"],Eh={key:0,class:"fa-solid fa-grip-vertical list-options__drag-handle"},xh=["onClick"],Dh={key:0,class:"list-options__move-actions"},Mh=["disabled"],Ph=["disabled"],zh={class:"list-options__col"},Ah={class:"list-options__title flex-center gap-1"},Rh={class:"list-options__list"},Oh=["draggable","onDragstart","onDragover","onClick"],Uh={key:0,class:"fa-solid fa-grip-vertical list-options__drag-handle"},Bh=["onClick"],Hh={key:0,class:"list-options__move-actions"},Nh=["disabled"],Fh=["disabled"],Lh={class:"list-options-footer"},jh={class:"list-options advanced"},Vh={class:"list-options__col"},Wh={class:"list-options__title"},qh={class:"list-options__list"},Kh=Ie({__name:"DataListOptions",props:{open:{type:Boolean},columns:{},settings:{},position:{},storageKey:{},orderable:{type:Boolean,default:!1}},emits:["close","change"],setup(e,{emit:t}){let n=e,s=t,l=F(c()),o=ee(()=>`data-list-${n.storageKey}`),r=ee(()=>JSON.stringify(l.value)!==JSON.stringify(c()));function i(M){return M.primary===!0||M.hideable===!1}function a(M){for(let _ of n.columns)i(_)&&(M.columns[_.property]=!0,M.cardHeaderColumns[_.property]=!0)}function c(){var M,_;return Ve(de(de(de(de({},yi),bi),Ef),n.settings),{columns:Object.fromEntries(n.columns.map(V=>{var O,ne;return[V.property,(ne=(O=n.settings.columns)==null?void 0:O[V.property])!=null?ne:V.visible!==!1]})),cardHeaderColumns:Object.fromEntries(n.columns.map(V=>{var O,ne;return[V.property,(ne=(O=n.settings.cardHeaderColumns)==null?void 0:O[V.property])!=null?ne:V.primary===!0||V.hideable===!1||V.defaultCardHeader===!0]})),columnOrder:(M=n.settings.columnOrder)!=null?M:n.columns.map(V=>V.property),cardHeaderOrder:(_=n.settings.cardHeaderOrder)!=null?_:n.columns.map(V=>V.property)})}function u(){try{let M=localStorage.getItem(o.value),_=c();if(M){let V=JSON.parse(M);l.value=V.settings?h(Ti(_,V.settings),n.columns):_}else l.value=_}catch(M){l.value=c()}a(l.value),s("change",l.value)}function h(M,_){let V=_.map(ne=>ne.property),O=ne=>{let Se=(ne!=null?ne:[]).filter(Ye=>V.includes(Ye)),We=new Set(Se),je=[],Ge=0;for(let Ye of V)We.has(Ye)?je.push(Se[Ge++]):je.push(Ye);return je};return Ve(de({},M),{columnOrder:O(M.columnOrder),cardHeaderOrder:O(M.cardHeaderOrder)})}function v(){try{let M=o.value,_=localStorage.getItem(M),V=_?JSON.parse(_):{};V.settings=l.value,localStorage.setItem(M,JSON.stringify(V))}catch(M){console.error(M)}s("change",l.value)}function g(M,_){l.value=Ve(de({},l.value),{[M]:_}),v()}function w(M){g("columns",Ve(de({},l.value.columns),{[M]:!l.value.columns[M]}))}function b(M){g("cardHeaderColumns",Ve(de({},l.value.cardHeaderColumns),{[M]:!l.value.cardHeaderColumns[M]}))}function C(M){g(M,!l.value[M])}function k(M,_){return[...M].sort((V,O)=>{let ne=_.indexOf(V.property),Se=_.indexOf(O.property);return(ne===-1?999:ne)-(Se===-1?999:Se)})}let I=ee(()=>k(n.columns,l.value.columnOrder)),L=ee(()=>k(n.columns,l.value.cardHeaderOrder)),D=F(null),j=F(null),T=F(null),A=F(null);function R(M){D.value=M}function H(M,_){if(M.preventDefault(),D.value===null||D.value===_)return;let V=[...l.value.columnOrder],O=V.splice(D.value,1)[0];O&&(V.splice(_,0,O),D.value=_,g("columnOrder",V))}function se(){D.value=null}function X(M){j.value=j.value===M?null:M}function E(M){if(j.value===null)return;let _=j.value+M;if(_<0||_>=l.value.columnOrder.length)return;let V=[...l.value.columnOrder],O=V[j.value];V[j.value]=V[_],V[_]=O,g("columnOrder",V),j.value=_}function Z(M){T.value=M}function N(M,_){if(M.preventDefault(),T.value===null||T.value===_)return;let V=[...l.value.cardHeaderOrder],O=V.splice(T.value,1)[0];O&&(V.splice(_,0,O),T.value=_,g("cardHeaderOrder",V))}function J(){T.value=null}function U(M){A.value=A.value===M?null:M}function le(M){if(A.value===null)return;let _=A.value+M;if(_<0||_>=l.value.cardHeaderOrder.length)return;let V=[...l.value.cardHeaderOrder],O=V[A.value];V[A.value]=V[_],V[_]=O,g("cardHeaderOrder",V),A.value=_}function B(){localStorage.removeItem(o.value),l.value=c(),s("change",l.value)}return ft(u),Le(()=>n.columns,()=>{l.value=h(l.value,n.columns),a(l.value)}),(M,_)=>{let V=bn("tooltip");return y(),me(Vl,{open:e.open,title:"Lista beállítások",position:n.position,onClose:_[18]||(_[18]=O=>s("close"))},{default:Ze(()=>[f("div",vh,[f("div",mh,[f("h4",bh,[_[19]||(_[19]=fe(" Elrendezés ",-1)),f("span",yh,"— "+re(l.value.layout==="screen"?"Auto":l.value.layout==="table"?"Táblázat":"Kártyák"),1)]),f("div",_h,[f("button",{class:te(["layout-switch__btn",{"layout-switch__btn--active":l.value.layout==="screen"}]),title:"Kijelző méretéhez igazodó elrendezés",onClick:_[0]||(_[0]=O=>g("layout","screen"))},[..._[20]||(_[20]=[f("i",{class:"fa-solid fa-display"},null,-1)])],2),f("button",{class:te(["layout-switch__btn",{"layout-switch__btn--active":l.value.layout==="table"}]),title:"Táblázat nézet",onClick:_[1]||(_[1]=O=>g("layout","table"))},[..._[21]||(_[21]=[f("i",{class:"fa-solid fa-table-list"},null,-1)])],2),f("button",{class:te(["layout-switch__btn",{"layout-switch__btn--active":l.value.layout==="cards"}]),title:"Kártya nézet",onClick:_[2]||(_[2]=O=>g("layout","cards"))},[..._[22]||(_[22]=[f("i",{class:"fa-solid fa-list"},null,-1)])],2)])]),f("div",kh,[dt((y(),S("h4",wh,[..._[23]||(_[23]=[fe(" Megjelenés ",-1),f("i",{class:"fa-regular fa-question-circle"},null,-1)])])),[[V,"<b>Kompakt</b>: A sorok közötti térköz csökkentése<br><br><b>Sávos</b> (csak táblázat nézetben): A páros sorok háttere kicsit sötétebb ",void 0,{html:!0}]]),f("ul",Sh,[f("li",{class:"list-options__item",onClick:_[4]||(_[4]=O=>C("compact")),title:"A sorok közötti térköz csökkentése"},[f("span",{class:te(["c-checkbox",{"c-checkbox--checked":l.value.compact}]),onClick:_[3]||(_[3]=Ce(O=>C("compact"),["stop"]))},null,2),_[24]||(_[24]=f("span",null,"Kompakt",-1))]),f("li",{class:"list-options__item",onClick:_[6]||(_[6]=O=>C("striped")),title:"A páros sorok háttere kicsit sötétebb (csak táblázat nézetben)"},[f("span",{class:te(["c-checkbox",{"c-checkbox--checked":l.value.striped}]),onClick:_[5]||(_[5]=Ce(O=>C("striped"),["stop"]))},null,2),_[25]||(_[25]=f("span",null,"Sávos (striped)",-1))])])]),f("div",Ch,[dt((y(),S("h4",Th,[..._[26]||(_[26]=[fe(" Táblázat oszlopok ",-1),f("i",{class:"fa-regular fa-question-circle"},null,-1)])])),[[V,"Táblázat nézetben megjelenő oszlopok"]]),f("ul",$h,[(y(!0),S(he,null,xe(I.value,(O,ne)=>(y(),S("li",{key:O.property,class:te(["list-options__item",{"list-options__item--disabled":i(O),"list-options__item--selected":e.orderable&&j.value===ne,"list-options__item--dragging":e.orderable&&D.value===ne}]),draggable:e.orderable,onDragstart:Ce(Se=>e.orderable&&R(ne),["stop"]),onDragover:Ce(Se=>e.orderable&&H(Se,ne),["prevent"]),onDrop:_[7]||(_[7]=Ce(()=>{},["prevent"])),onDragend:_[8]||(_[8]=Se=>e.orderable&&se()),onClick:Ce(Se=>e.orderable?X(ne):!i(O)&&w(O.property),["prevent"])},[e.orderable?(y(),S("i",Eh)):G("",!0),f("span",{class:"list-options__toggle",onClick:Ce(Se=>!i(O)&&w(O.property),["stop"])},[f("span",{class:te(["c-checkbox",{"c-checkbox--checked":l.value.columns[O.property]}])},null,2),f("span",null,re(O.label),1)],8,xh)],42,Ih))),128))]),e.orderable&&j.value!==null?(y(),S("div",Dh,[f("button",{class:"list-options__move-btn",disabled:j.value===0,onClick:_[9]||(_[9]=O=>E(-1))},[..._[27]||(_[27]=[f("i",{class:"fa-solid fa-arrow-up"},null,-1)])],8,Mh),f("button",{class:"list-options__move-btn",disabled:j.value===I.value.length-1,onClick:_[10]||(_[10]=O=>E(1))},[..._[28]||(_[28]=[f("i",{class:"fa-solid fa-arrow-down"},null,-1)])],8,Ph)])):G("",!0)]),f("div",zh,[dt((y(),S("h4",Ah,[..._[29]||(_[29]=[fe(" Kártya fejléc ",-1),f("i",{class:"fa-regular fa-question-circle"},null,-1)])])),[[V,"Kártya nézetben, a sorok fejlécén megjelenő oszlopok"]]),f("ul",Rh,[(y(!0),S(he,null,xe(L.value,(O,ne)=>(y(),S("li",{key:"ch-"+O.property,class:te(["list-options__item",{"list-options__item--disabled":i(O),"list-options__item--selected":e.orderable&&A.value===ne,"list-options__item--dragging":e.orderable&&T.value===ne}]),draggable:e.orderable,onDragstart:Ce(Se=>e.orderable&&Z(ne),["stop"]),onDragover:Ce(Se=>e.orderable&&N(Se,ne),["prevent"]),onDrop:_[11]||(_[11]=Ce(()=>{},["prevent"])),onDragend:_[12]||(_[12]=Se=>e.orderable&&J()),onClick:Ce(Se=>e.orderable?U(ne):!i(O)&&b(O.property),["prevent"])},[e.orderable?(y(),S("i",Uh)):G("",!0),f("span",{class:"list-options__toggle",onClick:Ce(Se=>!i(O)&&b(O.property),["stop"])},[f("span",{class:te(["c-checkbox",{"c-checkbox--checked":l.value.cardHeaderColumns[O.property]}])},null,2),f("span",null,re(O.label),1)],8,Bh)],42,Oh))),128))]),e.orderable&&A.value!==null?(y(),S("div",Hh,[f("button",{class:"list-options__move-btn",disabled:A.value===0,onClick:_[13]||(_[13]=O=>le(-1))},[..._[30]||(_[30]=[f("i",{class:"fa-solid fa-arrow-up"},null,-1)])],8,Nh),f("button",{class:"list-options__move-btn",disabled:A.value===L.value.length-1,onClick:_[14]||(_[14]=O=>le(1))},[..._[31]||(_[31]=[f("i",{class:"fa-solid fa-arrow-down"},null,-1)])],8,Fh)])):G("",!0)])]),_[34]||(_[34]=f("hr",{class:"separator my-3"},null,-1)),f("div",Lh,[ce(Pe,{icon:"fa-solid fa-triangle-exclamation",disabled:!r.value,label:"Alapértelmezés visszaállítása",size:"small",onClick:B},null,8,["disabled"]),ce(Pe,{label:"OK",onClick:_[15]||(_[15]=O=>s("close"))})]),_[35]||(_[35]=f("hr",{class:"separator my-3"},null,-1)),f("div",jh,[f("div",Vh,[dt((y(),S("h4",Wh,[..._[32]||(_[32]=[fe(" Haladó beállítások ",-1),f("i",{class:"fa-regular fa-question-circle"},null,-1)])])),[[V,"<b>Azonnali szűrés</b>: Bekapcsolt állapotban a szűrő mezők módosítása azonnal érvénybe lép, míg kikapcsolva csak a „Szűrés” gombra kattintva kerülnek alkalmazásra.",void 0,{html:!0}]]),f("ul",qh,[f("li",{class:"list-options__item",onClick:_[17]||(_[17]=O=>C("filtersEager")),title:"Bekapcsolt állapotban a szűrő mezők módosítása azonnal érvénybe lép"},[f("span",{class:te(["c-checkbox",{"c-checkbox--checked":l.value.filtersEager}]),onClick:_[16]||(_[16]=Ce(O=>C("filtersEager"),["stop"]))},null,2),_[33]||(_[33]=f("span",null,"Azonnali szűrés",-1))])])])])]),_:1},8,["open","position"])}}}),Yh=Kh,Gh="data-filters-",Jh="pageSize-";function js(e,t=""){switch(e){case"filters":return Gh+t;case"pagination":return Jh+t}}function $i(e){return new URLSearchParams(window.location.search).get(e)}function Ii(e){let t=new URLSearchParams(e.search),n=t.get("page"),s=t.get("pageSize");(n!=null||s!=null)&&(t.delete("page"),t.delete("pageSize"),s!=null&&t.append("pageSize",s),n!=null&&t.append("page",n),e.search=t.toString())}function Zn(e,t){let n=new URL(window.location.href);n.searchParams.set(e,String(t)),Ii(n),window.history.replaceState({},"",n.toString())}function Ei(e){let t=new URL(window.location.href);e?t.searchParams.delete(e):t.search="",Ii(t),window.history.replaceState({},"",t.toString())}function Vs(e){let t=$i(e);if(t==null)return null;let n=Number(t);return Number.isFinite(n)&&n>0?n:null}function Pt(e,t,n){let{handleUrl:s,removeWhenDefault:l=!0,default:o}=n;if(s){if((t==null||t===""||o!==void 0&&t===o)&&l){Ei(e);return}Zn(e,String(t))}}function Xh(...e){return e.map((t,n)=>n===0?t.replace(/\/+$/,""):t.replace(/^\/+|\/+$/g,"")).filter(Boolean).join("/")}var Qh={class:"ac-component c-paginator-wrapper"},Zh={class:"c-paginator"},ep={class:"c-paginator__info"},tp={class:"c-paginator__range"},np={class:"c-paginator__total"},sp={class:"c-paginator__nav","aria-label":"Pagination"},lp={key:0,class:"c-paginator__ellipsis"},op=["onClick"],rp={class:"c-paginator__size"},ip=["value"],ap=["value"],cp=[10,25,50,100],up=25;function dp(e){let t=Vs("pageSize");if(t!=null)return t;try{let n=js("pagination",e),s=localStorage.getItem(n);if(s){let l=Number(s);if(l>0)return l}}catch(n){console.warn("Failed to read page size from localStorage")}return up}function fp(e){var t;return{total:0,page:(t=Vs("page"))!=null?t:1,pageSize:dp(e)}}var hp=Ie({__name:"DataPaginator",props:{settings:{},storageKey:{},handleUrl:{type:Boolean,default:!1}},emits:["update:pagination"],setup(e,{emit:t}){let n=e,s=t;function l(g){try{localStorage.setItem(js("pagination",n.storageKey),String(g))}catch(w){console.warn("Failed to save page size to localStorage")}}let o=ee(()=>Math.max(1,Math.ceil(n.settings.total/n.settings.pageSize))),r=ee(()=>n.settings.total===0?0:(n.settings.page-1)*n.settings.pageSize+1),i=ee(()=>Math.min(n.settings.page*n.settings.pageSize,n.settings.total)),a=ee(()=>{let g=o.value,w=n.settings.page;if(g<=c){let j=[];for(let T=1;T<=g;T++)j.push(T);return j}let b=c-2,C=w-1,k=w+1;for(C<2&&(k=Math.min(g-1,k+(2-C)),C=2),k>g-1&&(C=Math.max(2,C-(k-(g-1))),k=g-1);k-C+1<b;){let j=C>2,T=k<g-1;if(!j&&!T)break;let A=C-2,R=g-1-k,H=+((j?C-1:0)>2)+ +(k<g-1),se=+(C>2)+ +((T?k+1:0)<g-1),X=k-C+2,E=!1;if(j&&(A>=R||!T)&&X+H<=b?(C--,E=!0):T&&X+se<=b&&(k++,E=!0),!E)break}let I=C>2,L=k<g-1,D=[];D.push(1),I&&D.push("...");for(let j=C;j<=k;j++)D.push(j);return L&&D.push("..."),D.push(g),D}),c=7;function u(g){let w=n.settings.page,b=o.value,C=g===1||g===b,k=g===w;return w>3&&w<b-2&&!C&&!k}function h(g){g<1||g>o.value||g===n.settings.page||(Pt("page",g,{handleUrl:n.handleUrl,default:1}),Pt("pageSize",n.settings.pageSize,{handleUrl:n.handleUrl}),s("update:pagination",{page:g,pageSize:n.settings.pageSize}))}function v(g){let w=Number(g.target.value);l(w),Pt("pageSize",w,{handleUrl:n.handleUrl}),Pt("page",1,{handleUrl:n.handleUrl,default:1}),s("update:pagination",{page:1,pageSize:w})}return ft(()=>{if(!n.handleUrl)return;let g=Vs("pageSize"),w=Vs("page");g!=null&&w!=null&&(g!==n.settings.pageSize||w!==n.settings.page)&&s("update:pagination",{page:w,pageSize:g})}),(g,w)=>(y(),S("div",Qh,[f("div",Zh,[f("div",ep,[f("span",tp,re(r.value)+"–"+re(i.value),1),f("span",np," / "+re(e.settings.total),1)]),f("nav",sp,[ce(Pe,{icon:"fa-solid fa-chevron-left",rel:"prev",disabled:e.settings.page<=1,callback:()=>h(e.settings.page-1)},null,8,["disabled","callback"]),(y(!0),S(he,null,xe(a.value,(b,C)=>(y(),S(he,{key:C},[b==="..."?(y(),S("span",lp,"…")):(y(),S("button",{key:1,type:"button",class:te(["c-paginator__page",{"is-active":b===e.settings.page,"is-hidden-sm":u(b)}]),onClick:k=>h(b)},re(b),11,op))],64))),128)),ce(Pe,{icon:"fa-solid fa-chevron-right",rel:"next",disabled:e.settings.page>=o.value,callback:()=>h(e.settings.page+1)},null,8,["disabled","callback"])]),f("div",rp,[f("select",{class:"c-paginator__select",id:"page-size-select",value:e.settings.pageSize,onChange:v},[(y(),S(he,null,xe(cp,b=>f("option",{key:b,value:b},re(b)+" elem / oldal",9,ap)),64))],40,ip)])])]))}}),pp=hp,gp={class:"ac-component"},vp=["disabled","aria-label"],mp={class:"ds-sort-label c-truncate"},bp={class:"ac-component"},yp={class:"ds-sort-panel__row"},_p={class:"ds-sort-panel__row"},kp={class:"ds-sort-direction",role:"group","aria-label":"Rendezés iránya"},wp=["aria-pressed"],Sp=["aria-pressed"],Cp={class:"ds-sort-panel__footer"};function xi(){if(typeof window>"u")return null;let e=new URLSearchParams(window.location.search),t=e.get("sortBy"),n=e.get("sortDir");return t&&(n==="asc"||n==="desc")?{key:t,direction:n}:null}var Tp=Ie({__name:"DataSort",props:{modelValue:{},options:{},placeholder:{default:"Rendezés..."},handleUrl:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","sort-change"],setup(e,{emit:t}){let n=e,s=t,l=F(null),o=F(null),{isOpen:r,dropdownStyle:i}=Jn(l,o,{extraStyle:w=>({minWidth:`${Math.max(w.width,240)}px`}),closeOnScroll:!0}),a=ee({get:()=>{var w,b;return(b=(w=n.modelValue)==null?void 0:w.key)!=null?b:null},set:w=>{var b,C;Array.isArray(w)||h(typeof w=="string"?w:null,(C=(b=n.modelValue)==null?void 0:b.direction)!=null?C:"asc")}}),c=ee({get:()=>{var w,b;return(b=(w=n.modelValue)==null?void 0:w.direction)!=null?b:"asc"},set:w=>{var b,C;return h((C=(b=n.modelValue)==null?void 0:b.key)!=null?C:null,w)}}),u=ee(()=>{var w,b;return n.modelValue?`${(b=(w=n.options.find(C=>C.value===n.modelValue.key))==null?void 0:w.label)!=null?b:n.modelValue.key} (${n.modelValue.direction==="asc"?"növekvő":"csökkenő"})`:n.placeholder});function h(w,b){if(w==null){n.handleUrl&&(Pt("sortBy",null,{handleUrl:!0}),Pt("sortDir",null,{handleUrl:!0})),s("update:modelValue",null),s("sort-change",null);return}n.handleUrl&&(Pt("sortBy",w,{handleUrl:!0}),Pt("sortDir",b,{handleUrl:!0,default:"asc"}));let C={key:w,direction:b};s("update:modelValue",C),s("sort-change",C)}function v(){h(null,"asc"),r.value=!1}function g(w){var b;Array.isArray(w)||(a.value=(b=w==null?void 0:w.value)!=null?b:null)}return Le(r,w=>{if(!w||!n.handleUrl||n.modelValue)return;let b=xi();b&&h(b.key,b.direction)},{immediate:!0}),(w,b)=>(y(),S("div",gp,[f("div",{ref_key:"wrapperRef",ref:l,class:"ds-sort-wrapper"},[f("button",{type:"button",class:te(["c-btn ds-sort-trigger lh-1",[e.modelValue&&"is-active",e.disabled&&"is-disabled",ae(r)&&"is-open"]]),disabled:e.disabled,"aria-label":`Rendezés: ${u.value}`,onClick:b[0]||(b[0]=C=>r.value=!ae(r))},[f("i",{class:te(["fa-solid fa-fw",!e.modelValue||e.modelValue.direction==="asc"?"fa-arrow-up-wide-short":"fa-arrow-down-wide-short"])},null,2),f("span",mp,re(u.value),1),e.modelValue?(y(),S("button",{key:0,type:"button",class:"c-icon-btn c-icon-btn--clear ds-sort-clear","aria-label":"Rendezés törlése",title:"Rendezés törlése",onClick:Ce(v,["stop"])},[...b[4]||(b[4]=[f("i",{class:"fa-solid fa-fw fa-xmark"},null,-1)])])):G("",!0),f("span",{class:te(["c-icon-btn c-icon-btn--chevron",{"c-icon-btn--chevron-open":ae(r)}])},[...b[5]||(b[5]=[f("i",{class:"fa-solid fa-fw fa-chevron-down"},null,-1)])],2)],10,vp),(y(),me(sn,{to:"body"},[f("div",bp,[ae(r)?(y(),S("div",{key:0,ref_key:"dropdownRef",ref:o,class:"ds-sort-panel",style:Ct(ae(i))},[f("div",yp,[b[6]||(b[6]=f("label",{class:"ds-sort-panel__label"},"Oszlop",-1)),ce(jl,{"model-value":a.value,options:e.options,config:{clearable:!1,placeholder:"Válassz oszlopot...",filterable:!1},"onUpdate:modelValue":g},null,8,["model-value","options"])]),f("div",_p,[b[9]||(b[9]=f("span",{class:"ds-sort-panel__label"},"Irány",-1)),f("div",kp,[f("button",{type:"button",class:te(["ds-sort-direction__btn",{"is-active":c.value==="asc"}]),"aria-pressed":c.value==="asc","aria-label":"Növekvő",onClick:b[1]||(b[1]=C=>c.value="asc")},[...b[7]||(b[7]=[f("i",{class:"fa-solid fa-fw fa-arrow-up-wide-short"},null,-1),f("span",null,"Növekvő",-1)])],10,wp),f("button",{type:"button",class:te(["ds-sort-direction__btn dir-desc",{"is-active":c.value==="desc"}]),"aria-pressed":c.value==="desc","aria-label":"Csökkenő",onClick:b[2]||(b[2]=C=>c.value="desc")},[...b[8]||(b[8]=[f("i",{class:"fa-solid fa-fw fa-arrow-down-wide-short"},null,-1),f("span",null,"Csökkenő",-1)])],10,Sp)])]),f("div",Cp,[ce(Pe,{label:"Rendben",outline:"",size:"small",onClick:b[3]||(b[3]=C=>r.value=!1)})])],4)):G("",!0)])]))],512)]))}});function Yl(e,t,n=!0){var i,a;let s=Ep(e),l=Object.keys(s).length>0,o=(a=(i=l?null:xp(t))==null?void 0:i.values)!=null?a:{},r={};for(let c of e){if(c.type==="separator")continue;let u;if(c.key in s)u=s[c.key];else{if(l)continue;if(c.key in o)u=o[c.key];else if(c.value!==void 0)u=c.value;else continue}if(u!=null)if(n&&c.transformer){let h=c.transformer(u);h&&Object.assign(r,h)}else r[c.key]=u}return r}function $p(e,t,n=!0){let s=Yl(e,t,n),l={};for(let o of e){if(o.type!=="dropdown"){o.key in s&&(l[o.key]=s[o.key]);continue}let r=Ip(s[o.key]);r!=null&&(l[o.key]=r)}return l}function Ip(e){var t;if(e==null)return null;if(Array.isArray(e)){let n=e.map(s=>{var l;return s==null?null:typeof s=="object"&&"value"in s?(l=s.value)!=null?l:null:typeof s=="string"?s:null}).filter(s=>s!==null);return n.length>0?n:null}return typeof e=="object"&&"value"in e?(t=e.value)!=null?t:null:typeof e=="string"?e:null}function Ep(e){let t={};for(let n of e){if(n.type==="separator")continue;let s=$i(n.key);s&&(t[n.key]=Dp(n.type,s,n.value))}return t}function Di(e){var t;try{let n=js("filters",e),s=JSON.parse((t=localStorage.getItem(n))!=null?t:"[]");return Array.isArray(s)?s.filter(l=>l&&typeof l=="object"&&typeof l.id=="string"&&l.values&&typeof l.savedAt=="string"):[]}catch(n){return[]}}function xp(e){var t;return(t=Di(e).find(n=>n.isDefault))!=null?t:null}function Gl(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==null&&n!==""&&n!==void 0))}function Dp(e,t,n){if(e==="number"){let s=Number(t);return isNaN(s)?n!=null?n:null:s}return e==="date"||e==="datetime"?{utc:t}:e==="daterange"||e==="datetimerange"?Pp(t,n):e==="dropdown"?Mp(t):e==="checkbox"?t==="true":t}function Mp(e){if(e.startsWith("[")||e.startsWith("{"))try{let t=JSON.parse(e);if(Array.isArray(t)){let n=t.map(Mi).filter(s=>s!==null);return n.length>0?n:null}if(t&&typeof t=="object")return Mi(t)}catch(t){}return e?{value:e,label:e}:null}function Mi(e){if(e==null)return null;if(typeof e=="object"&&"label"in e){let t=e;if(t.value!=null&&typeof t.label=="string")return{value:t.value,label:t.label}}return typeof e=="string"?{value:e,label:e}:null}function Pp(e,t){try{let n=JSON.parse(e);return n&&typeof n=="object"&&"local"in n&&n.local&&(n.local=new Date(n.local)),n}catch(n){return t!=null?t:null}}function zp(e,t){for(let n of e){if(n.type==="separator")continue;let s=t[n.key];s==null||s===""?Ei(n.key):n.type==="date"||n.type==="datetime"?Zn(n.key,s.utc):n.type==="dropdown"?Zn(n.key,JSON.stringify(Ap(s))):typeof s=="object"?Zn(n.key,JSON.stringify(s)):Zn(n.key,String(s))}}function Ap(e,t){if(e==null)return null;let n=s=>{var o,r;if(s==null)return null;if(typeof s=="object"&&"label"in s)return s;let l=String(s);return{value:l,label:(r=(o=t==null?void 0:t.find(i=>i.value===l))==null?void 0:o.label)!=null?r:l}};if(Array.isArray(e)){let s=e.map(n).filter(l=>l!==null);return s.length>0?s:null}return n(e)}function Jl(e,t,n){var l,o;if(n==null||n==="")return"";let s=e.find(r=>r.key===t);if((s==null?void 0:s.type)==="dropdown"){let r=Rp(n,s.options);if(r)return r}if((s==null?void 0:s.type)==="checkbox")return n?"Bekapcsolva":"";if((s==null?void 0:s.type)==="date"||(s==null?void 0:s.type)==="datetime"){if(typeof n=="object"&&n){let r=(o=(l=n.local)!=null?l:n.utc)!=null?o:null;if(r==null)return"";let i=r instanceof Date?r:new Date(r);if(!isNaN(i.getTime()))return at(i,s.type==="datetime"?"YYYY-MM-DD HH:mm":"YYYY-MM-DD")}if(typeof n=="string"&&n){let r=new Date(n);if(!isNaN(r.getTime()))return at(r,s.type==="datetime"?"YYYY-MM-DD HH:mm":"YYYY-MM-DD")}}if(((s==null?void 0:s.type)==="daterange"||(s==null?void 0:s.type)==="datetimerange")&&typeof n=="object"){let r=s.type==="datetimerange"?"YYYY-MM-DD HH:mm":"YYYY-MM-DD";return`${n.fromUtc?at(new Date(n.fromUtc),r):"…"} - ${n.toUtc?at(new Date(n.toUtc),r):"…"}`}return typeof n=="object"?JSON.stringify(n):String(n)}function Rp(e,t){if(e==null)return null;let n=s=>{var l,o,r,i,a;if(s==null)return null;if(typeof s=="object"&&"label"in s){let c=s;return(r=(o=(l=t==null?void 0:t.find(u=>u.value===c.value))==null?void 0:l.label)!=null?o:c.label)!=null?r:null}return typeof s=="string"?(a=(i=t==null?void 0:t.find(c=>c.value===s))==null?void 0:i.label)!=null?a:s:null};if(Array.isArray(e)){let s=e.map(n).filter(l=>l!==null);return s.length>0?s.join(", "):null}return n(e)}function Op(e,t){var s;let n=[];for(let[l,o]of Object.entries(t)){let r=Jl(e,l,o);if(!r)continue;let i=e.find(c=>c.key===l),a=(s=i==null?void 0:i.label)!=null?s:l;n.push({key:l,text:`${a}: ${r}`,displayClass:i==null?void 0:i.displayClass})}return n}var Up={class:"ac-component"},Bp={class:"filters-history"},Hp=["aria-expanded"],Np={key:0,class:"c-indicator"},Fp={key:1},Lp={key:0,class:"filters-history__panel c-scroll"},jp={class:"filters-history__save-row"},Vp={key:0,class:"filters-history__hint"},Wp={key:1,class:"filters-history__hint"},qp={key:2,class:"filters-history__list"},Kp=["aria-expanded","onClick","onKeydown"],Yp={class:"filters-history__item-header-text"},Gp={class:"filters-history__item-name"},Jp={key:0,class:"filters-history__item-date"},Xp=["onClick","aria-label","title"],Qp=["onClick"],Zp=["onClick"],eg=["onClick"],tg={key:0,class:"filters-history__item-content"},ng={key:0,class:"filters-history__item-body"},sg={key:1,class:"filters-history__item-empty"},lg={key:3},og=Ie({__name:"FiltersHistory",props:{items:{},values:{},storageKey:{}},emits:["load"],setup(e,{emit:t}){let n=e,s=t,l=F(!1),o=F([]),r=F(""),i=F(new Set),a=F(!1);function c(X){return i.value.has(X)}function u(X){let E=new Set(i.value);E.has(X)?E.delete(X):E.add(X),i.value=E}function h(){o.value=Di(n.storageKey)}function v(){try{let X=js("filters",n.storageKey);localStorage.setItem(X,JSON.stringify(o.value))}catch(X){console.warn("Failed to persist saved filters to localStorage")}}ft(h);let g=ee(()=>Object.values(n.values).some(X=>X!==null&&X!==""&&X!==void 0));function w(){return Date.now().toString(36)}Le(()=>[n.values,r.value],()=>{b.value&&(b.value=!1)},{deep:!0});let b=F(!1);function C(){if(!g.value)return;let X=r.value.trim(),E={id:w(),savedAt:new Date().toISOString(),name:X||void 0,values:de({},n.values)};o.value=[E,...o.value].slice(0,50),r.value="",v(),vt(()=>{b.value=!0})}function k(X){s("load",de({},X.values))}function I(X){if(o.value=o.value.filter(E=>E.id!==X.id),i.value.has(X.id)){let E=new Set(i.value);E.delete(X.id),i.value=E}v()}function L(){o.value=[],i.value=new Set,v(),a.value=!1}function D(X){return Op(n.items,X.values)}let j=ee(()=>{let X=new Map;for(let E of o.value)X.set(E.id,D(E));return X});function T(X){var E;return(E=j.value.get(X.id))!=null?E:D(X)}let A=ee(()=>{let X=o.value.find(E=>E.isDefault);return X?[X,...o.value.filter(E=>!E.isDefault)]:o.value}),R=ee(()=>o.value.length>=43);function H(X){let E=new Date(X);return isNaN(E.getTime())?X:at(E,"YYYY-MM-DD HH:mm")}function se(X){X.isDefault?X.isDefault=!1:(o.value.forEach(E=>{E.isDefault=!1}),X.isDefault=!0),v()}return(X,E)=>{let Z=bn("tooltip");return y(),S("div",Up,[f("div",Bp,[f("button",{type:"button",class:te(["filters-history__toggle",{"is-open":l.value}]),"aria-expanded":l.value,onClick:E[0]||(E[0]=N=>l.value=!l.value)},[E[6]||(E[6]=f("i",{class:"fa-solid fa-sliders filters-history__toggle-icon"},null,-1)),E[7]||(E[7]=f("span",{class:"filters-history__toggle-label"},"Mentett szűrők",-1)),o.value.length?(y(),S("span",Np,re(o.value.length),1)):G("",!0),R.value?dt((y(),S("span",Fp,[fe("/ "+re(50))])),[[Z,"Maximum 50 szűrő menthető"]]):G("",!0),f("i",{class:te(["fa-solid filters-history__chevron",l.value?"fa-chevron-up":"fa-chevron-down"])},null,2)],10,Hp),l.value?(y(),S("div",Lp,[f("div",jp,[dt(f("input",{"onUpdate:modelValue":E[1]||(E[1]=N=>r.value=N),type:"text",class:"c-input-row c-input-row--sm",placeholder:"Elnevezés",onKeydown:Bl(C,["enter"])},null,544),[[uu,r.value]]),ce(Pe,{icon:"fa-solid fa-bookmark",label:"Mentés",size:"small",type:"info",disabled:!g.value||b.value,onClick:C},null,8,["disabled"])]),!g.value&&o.value.length===0?(y(),S("p",Vp," Nincs aktív szűrő. Adj meg értékeket a mentéshez. ")):o.value.length===0?(y(),S("p",Wp,[...E[8]||(E[8]=[fe(" Még nincs mentett szűrő.",-1),f("br",null,null,-1),fe(' Az aktuális beállítások a „Mentés" gombbal menthetők.',-1),f("br",null,null,-1),fe(' Az „Elnevezés" mező csak a könnyebb azonosítás miatt van, megadása nem kötelező. ',-1)])])):G("",!0),o.value.length>0?(y(),S("ul",qp,[(y(!0),S(he,null,xe(A.value,N=>(y(),S("li",{key:N.id,class:te(["filters-history__item",{"is-open":c(N.id),"is-default":N.isDefault}])},[f("div",{class:"filters-history__item-header",role:"button",tabindex:"0","aria-expanded":c(N.id),onClick:J=>u(N.id),onKeydown:[Bl(Ce(J=>u(N.id),["prevent"]),["enter"]),Bl(Ce(J=>u(N.id),["prevent"]),["space"])]},[f("i",{class:te(["fa-solid filters-history__item-chevron",c(N.id)?"fa-chevron-down":"fa-chevron-right"])},null,2),f("span",Yp,[f("span",Gp,re(N.name),1),N.name?(y(),S("span",Jp,re(H(N.savedAt)),1)):G("",!0)]),f("div",{class:"filters-history__item-actions",onClick:E[2]||(E[2]=Ce(()=>{},["stop"]))},[f("button",{type:"button",class:te(["c-indicator filters-history__item-btn filters-history__item-default",{active:N.isDefault}]),onClick:J=>se(N),"aria-label":N.isDefault?"Alapértelmezett szűrő törlése":"Alapértelmezett szűrő beállítása",title:N.isDefault?"Alapértelmezett szűrő törlése":"Alapértelmezett szűrő beállítása"},[f("i",{class:te(["fa-star fix-icon-pos",N.isDefault?"fa-solid":"fa-regular"])},null,2)],10,Xp),f("button",{type:"button",class:"c-indicator filters-history__item-btn filters-history__item-load","aria-label":"Betöltés",title:"Betöltés",onClick:J=>k(N)},[...E[9]||(E[9]=[f("i",{class:"fa-solid fa-check"},null,-1)])],8,Qp),T(N).length?dt((y(),S("span",{key:0,class:"c-indicator",onClick:Ce(J=>u(N.id),["stop"])},[fe(re(T(N).length),1)],8,Zp)),[[Z,`${T(N).length} szűrési feltétel`]]):G("",!0),f("button",{type:"button",class:"c-indicator filters-history__item-btn filters-history__item-remove","aria-label":"Törlés",title:"Törlés",onClick:J=>I(N)},[...E[10]||(E[10]=[f("i",{class:"fa-solid fa-xmark"},null,-1)])],8,eg)])],40,Kp),c(N.id)?(y(),S("div",tg,[T(N).length?(y(),S("div",ng,[(y(!0),S(he,null,xe(T(N),(J,U)=>(y(),S("span",{key:U,class:te(["c-chip",J.displayClass])},re(J.text),3))),128))])):(y(),S("p",sg,"Nincs megjeleníthető szűrő."))])):G("",!0)],2))),128))])):G("",!0),o.value.length>3?(y(),S("div",lg,[E[11]||(E[11]=f("hr",{class:"separator my-1"},null,-1)),o.value.length?(y(),S("a",{key:0,class:"filters-history__clear-all px-2",onClick:E[3]||(E[3]=N=>a.value=!0)},"Összes törlése")):G("",!0),a.value?(y(),me(mi,{key:1,title:"Mentett szűrők törlése",message:"Biztosan törlöd az összes mentett szűrőt?","confirm-label":"Törlés","cancel-label":"Mégse",type:"error",onConfirm:E[4]||(E[4]=N=>L()),onCancel:E[5]||(E[5]=N=>a.value=!1)})):G("",!0)])):G("",!0)])):G("",!0)])])}}}),rg=og,ig={key:0,class:"data-filters__separator"},ag=["for"],cg={class:"c-label"},ug={class:"c-label"},dg={class:"data-filters__footer"},fg=Ie({__name:"DataFilters",props:{items:{},open:{type:Boolean,default:!1},position:{default:"left"},lazy:{type:Boolean,default:!0},handleUrl:{type:Boolean,default:!1},historyEnabled:{type:Boolean,default:!0},storageKey:{}},emits:["close","change"],setup(e,{expose:t,emit:n}){let s=e,l=n,o=F(Yl(s.items,s.storageKey,!1)),r=F({});function i(T,A){A?r.value[T]=A:delete r.value[T]}function a(T){var A,R;return Ve(de({},(A=T.config)!=null?A:{}),{showTime:T.type==="datetime",placeholder:(R=T.placeholder)!=null?R:T.type==="datetime"?"Időpont":"Dátum"})}function c(T){var A;return Ve(de(de({},(A=T.config)!=null?A:{}),T.fullWidth?{}:{compact:!0}),{showTime:T.type==="datetimerange"})}function u(T,A){let R=typeof A=="string"?A.trim():A;o.value=Ve(de({},o.value),{[T.key]:R}),T.onChange&&T.onChange(R),s.lazy||w()}let h=ee(()=>Object.values(o.value).some(T=>T!==null&&T!==""&&T!==void 0));function v(){var A,R;let T={};for(let H of s.items){if(H.type==="separator")continue;let se=o.value[H.key];H.transformer?Object.assign(T,(A=H.transformer(se))!=null?A:{}):H.type==="date"||H.type==="datetime"?T[H.key]=(R=se==null?void 0:se.utc)!=null?R:se:H.type==="dropdown"?T[H.key]=g(se):T[H.key]=se}return{values:Gl(o.value),transformed:Gl(T)}}function g(T){var A;if(T==null)return null;if(Array.isArray(T)){let R=T.map(H=>{var se;return H==null?null:typeof H=="object"&&"value"in H?(se=H.value)!=null?se:null:typeof H=="string"?H:null}).filter(H=>H!==null);return R.length>0?R:null}return typeof T=="object"&&"value"in T?(A=T.value)!=null?A:null:typeof T=="string"?T:null}function w(){s.handleUrl&&zp(s.items,o.value),l("change",v())}function b(){w(),l("close")}function C(){o.value={},w()}function k(T){o.value=Ve(de({},o.value),{[T]:null}),w()}function I(T){let A=r.value[T];A&&(typeof A.focusAndOpen=="function"?A.focusAndOpen():typeof A.focus=="function"&&A.focus())}function L(T){var R;let A=de({},o.value);for(let H of s.items)H.type!=="separator"&&H.key in T&&(A[H.key]=(R=T[H.key])!=null?R:null);o.value=A,w()}t({clearFilter:k,focusFilter:I});function D(T){var A;T.key==="Enter"&&((A=T.target)==null?void 0:A.tagName)!=="TEXTAREA"&&(T.preventDefault(),b())}function j(T,A){T.onInnerSearch&&T.onInnerSearch(A)}return(T,A)=>(y(),me(Vl,{open:e.open,title:"Szűrők",position:e.position,onClose:A[0]||(A[0]=R=>l("close"))},{default:Ze(()=>[f("div",{class:"data-filters",onKeydown:D},[(y(!0),S(he,null,xe(e.items,R=>{var H,se,X,E,Z,N,J,U,le,B,M,_,V;return y(),S("div",{key:R.key,class:te(["data-filters__field",{"data-filters__field--full":R.fullWidth||R.type==="separator"}])},[R.type==="separator"?(y(),S("hr",ig)):R.type==="checkbox"?(y(),me(Xn,wt({key:1,ref_for:!0,ref:O=>i(R.key,O),"model-value":(H=o.value[R.key])!=null?H:!1,label:(se=R.label)!=null?se:R.key,"onUpdate:modelValue":O=>u(R,O)},{ref_for:!0},R.config),null,16,["model-value","label","onUpdate:modelValue"])):["text","number","textarea"].includes(R.type)?(y(),me(pi,wt({key:2,type:R.type,ref_for:!0,ref:O=>i(R.key,O),id:`df-${R.key}`,"model-value":(X=o.value[R.key])!=null?X:"",label:(E=R.label)!=null?E:R.key,placeholder:R.placeholder,debounce:e.lazy?void 0:500,"onUpdate:modelValue":O=>u(R,O||null)},{ref_for:!0},R.config),null,16,["type","id","model-value","label","placeholder","debounce","onUpdate:modelValue"])):R.type==="date"||R.type==="datetime"?(y(),S(he,{key:3},[f("label",{class:"c-label",for:`df-${R.key}`},re((Z=R.label)!=null?Z:R.key),9,ag),ce(Hl,{ref_for:!0,ref:O=>i(R.key,O),id:`df-${R.key}`,"model-value":(N=o.value[R.key])!=null?N:null,config:a(R),"onUpdate:modelValue":O=>u(R,O)},null,8,["id","model-value","config","onUpdate:modelValue"])],64)):R.type==="daterange"||R.type==="datetimerange"?(y(),S(he,{key:4},[f("span",cg,re((J=R.label)!=null?J:R.key),1),ce(Td,{ref_for:!0,ref:O=>i(R.key,O),"model-value":(U=o.value[R.key])!=null?U:null,config:c(R),"onUpdate:modelValue":O=>u(R,O)},null,8,["model-value","config","onUpdate:modelValue"])],64)):R.type==="dropdown"?(y(),S(he,{key:5},[f("span",ug,re((le=R.label)!=null?le:R.key),1),ce(jl,{ref_for:!0,ref:O=>i(R.key,O),"model-value":(B=o.value[R.key])!=null?B:null,options:(M=R.options)!=null?M:[],config:Ve(de({},(_=R.config)!=null?_:{}),{placeholder:(V=R.placeholder)!=null?V:"Válassz...",clearable:!0,filterable:!0}),onFilterInput:O=>j(R,O),"onUpdate:modelValue":O=>u(R,O)},null,8,["model-value","options","config","onFilterInput","onUpdate:modelValue"])],64)):G("",!0)],2)}),128))],32),f("div",dg,[ce(Pe,{icon:"fa-solid fa-trash-can",disabled:!h.value,label:"Szűrők törlése","aria-label":"Szűrők törlése",size:"small",onClick:C},null,8,["disabled"]),ce(Pe,{label:"Szűrés","aria-label":"Szűrés",type:"success",onClick:b})]),e.historyEnabled?(y(),S(he,{key:0},[A[1]||(A[1]=f("hr",{class:"separator my-3"},null,-1)),ce(rg,{items:e.items,values:o.value,"storage-key":e.storageKey,onLoad:L},null,8,["items","values","storage-key"])],64)):G("",!0)]),_:1},8,["open","position"]))}}),hg=fg,pg={class:"filter-tags ac-component gap-1"},gg=["onClick"],vg={class:"filter-tags__key"},mg=["title"],bg={class:"filter-tags__value-row"},yg={class:"filter-tags__value-row"},_g=["title"],kg=["title"],wg=["onClick"],Sg=Ie({__name:"FilterTags",props:{filters:{},items:{},itemClass:{},compact:{type:Boolean}},emits:["remove","openFilter"],setup(e,{emit:t}){let n=e,s=t;function l(u){let h=o(u);return(h==null?void 0:h.type)==="daterange"||(h==null?void 0:h.type)==="datetimerange"}function o(u){return n.items.find(h=>h.key===u)}function r(u){var h,v;return(v=(h=o(u))==null?void 0:h.label)!=null?v:u}function i(u,h){let v=o(u);if(!v||v.type!=="daterange"&&v.type!=="datetimerange"||!h||typeof h!="object")return null;let g=v.type==="datetimerange"?"YYYY-MM-DD HH:mm":"YYYY-MM-DD",w=h.fromUtc?at(new Date(h.fromUtc),g):"…",b=h.toUtc?at(new Date(h.toUtc),g):"…";return{from:w,to:b,title:`${w} - ${b}`}}function a(u){return i(u,n.filters[u])}let c=ee(()=>Object.entries(n.filters).filter(([,u])=>u!=null&&u!==""));return(u,h)=>(y(),S("div",pg,[(y(!0),S(he,null,xe(c.value,([v,g])=>{var w,b,C;return y(),S(he,{key:v},[g!=null&&g!==""?(y(),S("span",{key:0,class:te(["filter-tags__tag c-chip",[e.itemClass,(w=o(v))==null?void 0:w.displayClass,{"filter-tags__tag--daterange":e.compact&&(((b=o(v))==null?void 0:b.type)==="daterange"||((C=o(v))==null?void 0:C.type)==="datetimerange")}]])},[f("span",{class:"filter-tags__content align-center-fix",onClick:k=>s("openFilter",String(v))},[f("span",vg,re(r(v))+":",1),e.compact&&l(v)&&a(v)?(y(),S("span",{key:0,class:"filter-tags__value",title:a(v).title},[f("span",bg,re(a(v).from),1),f("span",yg,re(a(v).to),1)],8,mg)):l(v)&&a(v)?(y(),S("span",{key:1,class:"filter-tags__value",title:a(v).title},re(a(v).from)+" - "+re(a(v).to),9,_g)):(y(),S("span",{key:2,class:"filter-tags__value",title:ae(Jl)(e.items,v,g)},re(ae(Jl)(e.items,v,g)),9,kg))],8,gg),f("button",{type:"button",class:"filter-tags__remove",onClick:k=>s("remove",String(v)),"aria-label":"Remove filter"},[...h[0]||(h[0]=[f("i",{class:"fa-solid fa-fw fa-xmark"},null,-1)])],8,wg)],2)):G("",!0)],64)}),128))]))}}),Cg=Sg,Tg={class:"data-search-wrapper"};function $g(e="search",t="exactMatch"){var o;let n=new URLSearchParams(typeof window>"u"?"":window.location.search),s=(o=n.get(e))!=null?o:"",l=n.get(t);return Gl({search:s,exactMatch:l==="true"||l==="1"?!0:l==="false"||l==="0"?!1:void 0})}var Ig=Ie({__name:"DataSearch",props:{showExactMatch:{type:Boolean,default:!0},showSearch:{type:Boolean,default:!0},placeholder:{default:"Keresés..."},handleUrl:{type:Boolean,default:!1},searchKey:{default:"search"},exactMatchKey:{default:"exactMatch"}},emits:["search-change"],setup(e,{emit:t}){var v;let n=e,s=$g(n.searchKey,n.exactMatchKey),l=F(s.exactMatch),o=F((v=s.search)!=null?v:""),r=t;function i(){var w;let g={};n.showSearch&&(g[n.searchKey]=o.value),n.showExactMatch&&(g[n.exactMatchKey]=(w=l.value)!=null?w:!1),r("search-change",g)}function a(){var g;Pt(n.searchKey,o.value,{handleUrl:n.handleUrl}),Pt(n.exactMatchKey,(g=l.value)!=null?g:!1,{handleUrl:n.handleUrl,default:!1})}let c=jt(a,300);function u(g){l.value=g,i(),c()}function h(g){o.value=g==null?"":String(g).trim(),i(),c()}return ft(()=>{var g;n.handleUrl&&(o.value||(g=l.value)!=null&&g)&&i()}),(g,w)=>(y(),S("div",Tg,[e.showExactMatch?(y(),me(Xn,{key:0,"model-value":l.value,class:"gap-1","onUpdate:modelValue":u},{label:Ze(()=>[...w[0]||(w[0]=[f("span",{class:"data-search-label"},[fe("Pontos"),f("br"),fe("egyezés ")],-1)])]),_:1},8,["model-value"])):G("",!0),e.showSearch?(y(),me(pi,{key:1,type:"text",clearable:"","model-value":o.value,inputClass:"data-search-input","label-on-border":"Keresés",placeholder:e.placeholder,autocomplete:!1,"onUpdate:modelValue":h},null,8,["model-value","placeholder"])):G("",!0)]))}}),Eg=Tp,xg={class:"dl-guide-section"},Dg={class:"dl-guide-toc m-0"},Mg={class:"m-0"},Pg={class:"m-0"},zg={class:"m-0"},Ag={class:"m-0"},Rg={class:"m-0"},Og={class:"m-0"},Ug=Ie({__name:"DataListGuide",props:{open:{type:Boolean,default:!1},position:{default:"right"}},emits:["close"],setup(e,{emit:t}){let n=t,s=F(null);function l(o){if(!o||!s.value)return;let r=s.value.querySelector(`#${o}`);r&&r.scrollIntoView({behavior:"smooth",block:"start"})}return(o,r)=>(y(),me(Vl,{open:e.open,title:"Súgó",position:e.position,onClose:r[8]||(r[8]=i=>n("close"))},{default:Ze(()=>[f("div",{ref_key:"root",ref:s,class:"ac-component dl-guide"},[f("section",xg,[r[9]||(r[9]=f("h3",{class:"dl-guide-title"},"Tartalom",-1)),f("ul",Dg,[f("li",null,[f("a",{href:"#",class:"dl-guide-toc-link dl-guide-toc-link--primary",onClick:r[0]||(r[0]=Ce(i=>l("layout"),["prevent"]))},"Megjelenés testreszabása"),f("ul",null,[f("li",Mg,[f("a",{href:"#",class:"dl-guide-toc-link",onClick:r[1]||(r[1]=Ce(i=>l("view"),["prevent"]))},"Nézet")]),f("li",Pg,[f("a",{href:"#",class:"dl-guide-toc-link",onClick:r[2]||(r[2]=Ce(i=>l("appearance"),["prevent"]))},"Megjelenés")]),f("li",zg,[f("a",{href:"#",class:"dl-guide-toc-link",onClick:r[3]||(r[3]=Ce(i=>l("columns"),["prevent"]))},"Oszlopok láthatósága és sorrendje")]),f("li",Ag,[f("a",{href:"#",class:"dl-guide-toc-link",onClick:r[4]||(r[4]=Ce(i=>l("reset"),["prevent"]))},"Beállítások visszaállítása")])])]),f("li",null,[f("a",{href:"#",class:"dl-guide-toc-link dl-guide-toc-link--primary",onClick:r[5]||(r[5]=Ce(i=>l("filters"),["prevent"]))},"Szűrők"),f("ul",null,[f("li",Rg,[f("a",{href:"#",class:"dl-guide-toc-link",onClick:r[6]||(r[6]=Ce(i=>l("exact-match"),["prevent"]))},"Pontos egyezés")]),f("li",Og,[f("a",{href:"#",class:"dl-guide-toc-link",onClick:r[7]||(r[7]=Ce(i=>l("save-filters"),["prevent"]))},"Szűrések mentése")])])])])]),r[10]||(r[10]=f("hr",{class:"separator"},null,-1)),r[11]||(r[11]=f("section",{id:"layout",class:"dl-guide-section"},[f("h3",{class:"dl-guide-title"},"A táblázat megjelenésének testreszabása"),f("p",null,[fe(" A "),f("strong",null,[f("i",{class:"fa-solid fa-gear"}),fe(" Beállítások")]),fe(" gombra kattintva lehetőség van a tábla megjelenésének testreszabására. A beállítások az adott táblához kapcsolódóan helyi tárolóban kerülnek mentésre, így ugyanazon eszközön és böngészőben megmaradnak a következő látogatáskor is. ")]),f("hr",{class:"separator"}),f("h4",{id:"view",class:"dl-guide-subtitle"},"Nézet"),f("ul",null,[f("li",null,[f("i",{class:"fa-solid fa-display mr-1"}),f("strong",null,"Kijelző méretéhez igazodó"),fe(" (alapértelmezett): A kijelző méretétől függően automatikusan választ a táblázat és a kártyás nézet között. ")]),f("li",null,[f("i",{class:"fa-solid fa-table-list mr-1"}),fe(),f("strong",null,"Táblázat:"),fe(" klasszikus táblázatos megjelenés ")]),f("li",null,[f("i",{class:"fa-solid fa-list mr-1"}),fe(),f("strong",null,"Kártyák:"),fe(" sorok kártyás megjelenítése, a kártya fejlécére kattintva lenyithatóak a részletes adatok. ")])]),f("hr",{class:"separator"}),f("h4",{id:"appearance",class:"dl-guide-subtitle"},"Megjelenés"),f("ul",null,[f("li",null,[f("strong",null,"Kompakt:"),fe(" A sorok közti távolság és a belső margók csökkentésével több adat jeleníthető meg egyszerre. ")]),f("li",null,[f("strong",null,"Sávos (striped):"),fe(" Csak a táblázatos nézetben elérhető, minden második sor enyhe szürke hátteret kap, ezzel megkönnyítve a sorok követését. ")])]),f("hr",{class:"separator"}),f("h4",{id:"columns",class:"dl-guide-subtitle"},"Oszlopok láthatósága és sorrendje"),f("ul",null,[f("li",null,[f("strong",null,"Kártya fejléc:"),fe(" kártyás nézet esetén a fejlécben megjelenő mezők láthatósága és sorrendje. ")]),f("li",null,[f("strong",null,"Oszlopok:"),fe(" táblázat nézetben az oszlopok láthatósága és sorrendje. ")])]),f("p",null,[fe(" A sorrend módosítása történhet az "),f("i",{class:"fa-solid fa-grip-vertical"}),fe(" ikonon "),f("strong",{class:"nowrap"},"drag-n-drop"),fe("al vagy az ikonra kattinva a megjelenő nyilak segítségével. ")]),f("hr",{class:"separator"}),f("h4",{id:"reset",class:"dl-guide-subtitle"},"Beállítások visszaállítása"),f("p",null,[fe(" Az "),f("strong",null,"Alapértelmezés visszaállítása"),fe(" gomb visszaállítja a gyári értékeket, és törli a helyi tárolóban elmentett beállításokat. ")])],-1)),r[12]||(r[12]=f("hr",{class:"separator"},null,-1)),r[13]||(r[13]=f("section",{id:"filters",class:"dl-guide-section"},[f("h3",{class:"dl-guide-title"},"Szűrők"),f("h4",{id:"exact-match",class:"dl-guide-subtitle"},"Pontos egyezés"),f("p",null,[fe(" Amennyiben a táblázhoz tartozik szabad szavas keresés, a pontos egyezés opciót használva csak azokat a találatokat kapjuk, amelyek teljes mértékben megfelelnek a keresett kifejezésnek. Pl. alap esetben "),f("strong",null,[f("em",null,'"alma"')]),fe(" keresésre a "),f("strong",null,[f("em",null,'"piros alma"')]),fe(", "),f("strong",null,[f("em",null,'"almafa"')]),fe(", "),f("strong",null,[f("em",null,'"alma"')]),fe(" vagy "),f("strong",null,[f("em",null,'"almás pite"')]),fe(" is találat lehet, míg pontos egyezés esetén csak az "),f("strong",null,[f("em",null,'"alma"')]),fe(" található meg. ")]),f("hr",{class:"separator"}),f("h4",{id:"save-filters",class:"dl-guide-subtitle"},"Szűrések mentése"),f("p",null,[fe(" A "),f("strong",null,[f("i",{class:"fa-solid fa-sliders"}),fe(" Mentett szűrők")]),fe("re kattintva lehetőség van elmenteni az aktuális szűrési feltételeket, így később egyetlen kattintással előhívhatja azokat. ")]),f("p",null,[fe(" A szűrési feltételek megadása után a "),f("strong",null,[f("i",{class:"fa-solid fa-bookmark fa-sm"}),fe(" Mentés")]),fe(" gomb megnyomásával elmenthető a szűrőkészlet. Az elnevezés megadása nem kötelező, csak saját magadnak szól a későbbi könnyebb azonosítás érdekében. ")]),f("p",null," Ezt követően a szűrőkészlet a mentés dátumával és elnevezésével jelenik meg a mentett szűrők között. Ezekre kattintva lenyithatók a szűrőkészlet részletei. "),f("p",null,"A mentett készlet jobb oldalán található 4 ikon:"),f("ul",null,[f("li",null,[f("i",{class:"fa-regular fa-star"}),fe(": ikonra kattintva megjelölhető a készlet alapértelmezettként. Ekkor az oldal következő betöltésekor automatikusan az itt megadott szűrők lesznek alkalmazva. ")]),f("li",null,[f("i",{class:"fa-solid fa-check"}),fe(": ikonra kattintva tölthetők be a készletek. Megnyomásakor a szűrési feltételek automatikusan kitöltődnek az elmentett értékekkel. ")]),f("li",null,[f("span",{class:"c-indicator"},"?"),fe(": azt mutatja, hogy hány szűrési feltétel van a készletben. ")]),f("li",null,[f("i",{class:"fa-solid fa-xmark"}),fe(": a mentett szűrőkészlet törlése (a művelet megerősítést kér). ")])]),f("p",{class:"dl-guide-note"},[fe("Táblázatonként maximum "),f("strong",null,"20"),fe(" készlet menthető el.")]),f("p",null,' A lista alján található "Összes törlése" gombbal törölhető a táblához tartozó minden elmentett szűrőkészlet. '),f("p",{class:"dl-guide-note"},[f("strong",null,"Fontos:"),fe(" a beállítások és a szűrők is csak böngészőben (localStorage) kerülnek tárolásra, ezért más eszközön vagy böngészőben nem lesznek elérhetőek. ")])],-1))],512)]),_:1},8,["open","position"]))}}),Bg=Ug,Hg=Ig,Ng={class:"c-data-list__toolbar"},Fg={key:2,class:"flex-center gap-1 flex-center-wrap-on-mobile"},Lg={class:"c-data-list__toolbar__right"},jg={layoutBreakpoint:768,orderable:!0,loading:!1,useSearch:!0,useFilters:!0,handleUrl:!1,fillHeight:!1},Vg=Ie({__name:"DataList",props:Un({config:{},items:{},settings:{},id:{},layoutBreakpoint:{},orderable:{type:Boolean},pagination:{},loading:{type:Boolean},handleUrl:{type:Boolean},useSearch:{type:Boolean},useFilters:{type:Boolean},searchConfig:{},filterConfig:{},fillHeight:{type:Boolean}},Ve(de({},jg),{searchConfig:void 0,filterConfig:void 0})),emits:["filter-change","selection-change","settings-change","pagination-change","sort-change","search-change"],setup(e,{expose:t,emit:n}){var N;let s=F(null),l=Ja(),o=ee(()=>!!l.actions),r=e;function i(J){let U=r[J];return U&&Object.hasOwn(U,"handleUrl")?U.handleUrl:r.handleUrl}let a=ee(()=>Ve(de({},r.searchConfig),{handleUrl:i("searchConfig")})),c=ee(()=>{var J,U;return Ve(de({},r.filterConfig),{handleUrl:i("filterConfig"),lazy:g.value==null?(U=(J=r.filterConfig)==null?void 0:J.lazy)!=null?U:!0:!g.value.filtersEager})}),u=n,h=F(!1),v=F(!1),g=F(null),w=F(!1),b=F(null),C=F(!1),k=F((N=r.filterConfig)!=null&&N.items?Yl(r.filterConfig.items,r.id,!1):{}),I=null;ft(()=>{I=new ResizeObserver(J=>{var U,le;w.value=((le=(U=J[0])==null?void 0:U.contentRect.width)!=null?le:0)<r.layoutBreakpoint}),b.value&&I.observe(b.value)}),Nt(()=>I==null?void 0:I.disconnect());let L=ee(()=>{var U;let J=(U=g.value)==null?void 0:U.layout;return J==="table"||J==="cards"?J:w.value?"cards":"table"}),D=ee(()=>{if(!g.value)return r.config;let J=g.value.columnOrder,U=r.config.columns.map(le=>{var B;return Ve(de({},le),{visible:(B=g.value.columns[le.property])!=null?B:le.visible!==!1})});return J!=null&&J.length&&U.sort((le,B)=>{let M=J.indexOf(le.property),_=J.indexOf(B.property);return(M===-1?999:M)-(_===-1?999:_)}),Ve(de({},r.config),{columns:U})});function j(J){g.value=J,u("settings-change",J)}t({openOptions:()=>h.value=!0,closeOptions:()=>h.value=!1,openFilters:()=>C.value=!0,closeFilters:()=>C.value=!1});function T(J){return De(this,null,function*(){C.value=!0,setTimeout(()=>{var U;(U=s.value)==null||U.focusFilter(J)},300)})}function A(J){k.value=J.values,u("filter-change",J.transformed)}let R=ee(()=>Object.values(k.value).filter(J=>J!=null&&J!=="").length),H=ee(()=>!!r.pagination&&(r.items.length>0||!r.loading)),se=J=>{u("search-change",J)},X=ee(()=>r.config.columns.filter(J=>J.sort).map(J=>({value:J.property,label:J.label}))),E=F(r.handleUrl?xi():null),Z=J=>{E.value=J,u("sort-change",J)};return(J,U)=>{var le,B,M,_,V,O;return y(),S("div",{ref_key:"root",ref:b,class:te(["ac-component c-data-list",{"c-data-list--fill-height":e.fillHeight}])},[f("div",Ng,[e.useSearch?(y(),me(Hg,wt({key:0},a.value,{onSearchChange:se}),null,16)):G("",!0),e.useFilters&&((le=e.filterConfig)!=null&&le.items)&&e.filterConfig.items.length>0?(y(),me(Pe,{key:1,label:"Szűrők",icon:"fa-solid fa-filter",onClick:U[0]||(U[0]=ne=>C.value=!0),style:{"flex-shrink":"0"},type:R.value>0?"primary":"normal",indicator:R.value>0?R.value:void 0},null,8,["type","indicator"])):G("",!0),e.useFilters&&((B=e.filterConfig)!=null&&B.items)&&e.filterConfig.items.length>0?(y(),S("div",Fg,[ce(Cg,{filters:k.value,items:e.filterConfig.items,compact:"",onRemove:U[1]||(U[1]=ne=>{var Se;return(Se=s.value)==null?void 0:Se.clearFilter(ne)}),onOpenFilter:T},null,8,["filters","items"])])):G("",!0),f("div",Lg,[X.value.length>0?(y(),me(Eg,{key:0,modelValue:E.value,"onUpdate:modelValue":U[2]||(U[2]=ne=>E.value=ne),options:X.value,"handle-url":e.handleUrl,onSortChange:Z},null,8,["modelValue","options","handle-url"])):G("",!0),ce(Pe,{icon:"fa-solid fa-gear",class:"lh-normal settings-btn",ariaLabel:"Beállítások",onClick:U[3]||(U[3]=ne=>h.value=!0)}),ce(Pe,{icon:"fa-solid fa-question",class:"lh-normal",onClick:U[4]||(U[4]=ne=>v.value=!0),ariaLabel:"Súgó"})])]),e.useFilters&&((M=e.filterConfig)!=null&&M.items)&&e.filterConfig.items.length>0?(y(),me(hg,wt({key:0,ref_key:"dataFiltersRef",ref:s},c.value,{"storage-key":e.id,open:C.value,onClose:U[5]||(U[5]=ne=>C.value=!1),onChange:A}),null,16,["storage-key","open"])):G("",!0),ce(Bg,{open:v.value,onClose:U[6]||(U[6]=ne=>v.value=!1)},null,8,["open"]),L.value==="table"?(y(),me(sh,{key:1,config:D.value,loading:e.loading,items:e.items,settings:(_=g.value)!=null?_:void 0,"initial-sort":E.value,onFilterChange:U[7]||(U[7]=ne=>u("filter-change",ne)),onSelectionChange:U[8]||(U[8]=ne=>u("selection-change",ne)),onSortChange:Z},tr({_:2},[xe(D.value.columns,ne=>({name:`cell:${ne.property}`,fn:Ze(Se=>[et(J.$slots,`cell:${ne.property}`,us(Ln(Se)))])})),o.value?{name:"actions",fn:Ze(ne=>[et(J.$slots,"actions",us(Ln(ne)))]),key:"0"}:void 0]),1032,["config","loading","items","settings","initial-sort"])):(y(),me(gh,{key:2,config:D.value,loading:e.loading,items:e.items,settings:(V=g.value)!=null?V:void 0,onSelectionChange:U[9]||(U[9]=ne=>u("selection-change",ne))},tr({_:2},[xe(D.value.columns,ne=>({name:`cell:${ne.property}`,fn:Ze(Se=>[et(J.$slots,`cell:${ne.property}`,us(Ln(Se)))])})),o.value?{name:"actions",fn:Ze(ne=>[et(J.$slots,"actions",us(Ln(ne)))]),key:"0"}:void 0]),1032,["config","loading","items","settings"])),e.pagination&&H.value?(y(),me(pp,{key:3,settings:e.pagination,"storage-key":e.id,"handle-url":e.handleUrl,"onUpdate:pagination":U[10]||(U[10]=ne=>u("pagination-change",ne))},null,8,["settings","storage-key","handle-url"])):G("",!0),ce(Yh,{open:h.value,columns:e.config.columns,settings:(O=e.settings)!=null?O:{},"storage-key":e.id,orderable:e.orderable,onClose:U[11]||(U[11]=ne=>h.value=!1),onChange:j},null,8,["open","columns","settings","storage-key","orderable"])],2)}}}),Wg=Vg,Pi=e=>/(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/.test(e);function qg(e){return function(t){var w;let n=F(null),s=F(null),l=F(null),o=F(null),r=F(!1),i=F(!1),a="GET",c,u="json",h=null,v={data:n,error:s,response:l,statusCode:o,isFetching:r,canAbort:i,get(){return a="GET",v},post(b){return a="POST",c=b,v},put(b){return a="PUT",c=b,v},patch(b){return a="PATCH",c=b,v},delete(b){return a="DELETE",c=b,v},json(){return u="json",v},text(){return u="text",v},abort(){h==null||h.abort()},execute(){return De(this,null,function*(){var k,I,L,D,j,T;h=new AbortController,r.value=!0,i.value=!0,s.value=null,l.value=null,o.value=null;let b=Ve(de({},e.fetchOptions),{method:a,signal:h.signal});c!=null&&a!=="GET"&&(b.body=Kg(c)?JSON.stringify(c.value):JSON.stringify(c));let C={url:Xh(e.baseUrl,t),options:b};try{(I=(k=e.options)==null?void 0:k.beforeFetch)==null||I.call(k,C);let A=yield fetch(C.url,C.options);l.value=A,o.value=A.status;let R=null;if(u==="text")R=yield A.text();else{let H=yield A.text();R=H?JSON.parse(H):null}if(n.value=R,!A.ok)throw Error(A.statusText||`HTTP ${A.status}`);(D=(L=e.options)==null?void 0:L.afterFetch)==null||D.call(L,{data:R,response:A})}catch(A){s.value=A,(T=(j=e.options)==null?void 0:j.onFetchError)==null||T.call(j,{error:A,response:l.value,data:n.value})}finally{r.value=!1,i.value=!1,h=null}return v})}};return((w=e.options)==null?void 0:w.immediate)!==!1&&v.execute(),v}}function Kg(e){return!!e&&typeof e=="object"&&"value"in e}var zi=class{constructor(t,n,s){ye(this,"title");ye(this,"message");ye(this,"errorCode");this.title=t,this.message=n,this.errorCode=s}},ze=(function(e){return e[e.GET=0]="GET",e[e.GET_TEXT=1]="GET_TEXT",e[e.POST=2]="POST",e[e.POST_TEXT=3]="POST_TEXT",e[e.PUT=4]="PUT",e[e.PUT_TEXT=5]="PUT_TEXT",e[e.PATCH=6]="PATCH",e[e.DELETE=7]="DELETE",e})({}),Re=class{constructor(t,n,s,l,o="application/json",r){ye(this,"relativeUrl");ye(this,"method");ye(this,"fetchMethod");this.relativeUrl=n,this.method=s,this.fetchMethod=qg({baseUrl:t,fetchOptions:{credentials:t.indexOf("localhost")!=-1||Pi(t)?"omit":"include"},options:{immediate:!1,beforeFetch:i=>{i.options.headers=de(de({},o?{"Content-Type":o}:{}),r!=null?r:{})},onFetchError:i=>{var u;if(((u=i.error)==null?void 0:u.name)==="AbortError")return i;let a="Ismeretlen eredetű hiba!",c=!i.response;return i.response&&!i.response.ok&&(c=!0,a=l.get(i.response.status),a||(a=`${ze[s]} for Call: ${n} with Status: ${i.response.status} has no registered errorMessages!`,console.error(a))),c&&$f.error("Hiba a szerver elérése közben...",a),i},afterFetch:i=>i}})}};function Oe(e,t,n,s){let l={};l.payload=F(t),l.routeParams=F(n),l.queryParams=F(s),l.isFetching=F(!1),l.data=F();let o=null,r=null;return l.execute=()=>{o&&(o=(o(),null)),r&&(r=(r(),null)),l.fetch&&l.fetch.canAbort.value&&l.fetch.abort();let i=`${Gg(e.relativeUrl,l.routeParams.value,l.queryParams.value)}`,a=e.fetchMethod(i),c,u=a.isFetching;function h(){return De(this,null,function*(){if(v()&&l.successCallback)l.successCallback(l.data.value);else if(!v()&&l.errorCallback){console.log(l.fetch.error.value);let g;if(l.fetch.response.value&&l.fetch.response.value.body){let{value:w,done:b}=yield l.fetch.response.value.body.getReader().read();!b&&w&&(g=new TextDecoder().decode(w),console.log("Response Body:",g))}l.errorCallback(new zi(l.fetch.error.value,g,l.fetch.statusCode.value?l.fetch.statusCode.value:void 0))}l.finallyCallback&&l.finallyCallback()})}function v(){return l.fetch.statusCode&&l.fetch.statusCode.value>=200&&l.fetch.statusCode.value<=299}switch(e.method){case 0:c=a.get().json().data;break;case 1:c=a.get().text().data;break;case 4:c=a.put(l.payload).json().data;break;case 5:c=a.put(l.payload).text().data;break;case 3:c=a.post(l.payload).text().data;break;case 2:c=a.post(l.payload).json().data;break;case 6:c=a.patch(l.payload).json().data;break;case 7:c=a.delete(l.payload).json().data;break;default:throw Error(`Method: ${e.method} is not implemented!`)}o=Le(c,g=>{l.data.value=g}),r=Le(u,g=>{l.isFetching.value=g,g||h()}),l.fetch=a,a.execute()},l}function Yg(e){return e?Object.keys(e).filter(t=>e[t]!==void 0&&e[t]!==null).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(String(e[t]))}`).join("&"):""}function Gg(e,t,n){let s=e;if(s||(s=""),s.slice(-1)==="/"&&(s=s.substring(0,s.length-1)),t&&Object.keys(t).forEach(l=>{if(s.indexOf(`{${l}}`)===-1)throw window.dispatchEvent(new CustomEvent("fetch-error",{detail:new zi("Hiba!",`RouteParams: ${l} not found in url: ${s}! Contact the developers!`)})),Error(`RouteParams: ${l} not found in url: ${s}! Contact the developers!`);let o=t[l];s=s.replace(`{${l}}`,o)}),n){let l=Yg(n);l.length>0&&(s.indexOf("?")===-1?s+="?":!s.endsWith("?")&&!s.endsWith("&")&&(s+="&"),s+=l)}return s}function Ai(e){return new Jg(e)}var Jg=class{constructor(t){ye(this,"articleEditorBackendUrl");ye(this,"baseUrl");ye(this,"searchPosts");ye(this,"whoAmI");ye(this,"getPostsConfig");ye(this,"getImagesConfig");ye(this,"getPresenceConfig");ye(this,"sites");ye(this,"authorsSearch");ye(this,"authorsDetailsByIds");ye(this,"articleSeriesSearch");ye(this,"articleSeriesDetailsByIds");ye(this,"columnsSearch");ye(this,"columnsDetailsByIds");ye(this,"digitalSupplementsSearch");ye(this,"digitalSupplementsDetailsByIds");ye(this,"partnersSearch");ye(this,"partnersDetailsByIds");ye(this,"tagsSearch");ye(this,"tagsDetailsByIds");ye(this,"getRelationsCount");this.articleEditorBackendUrl=t,this.baseUrl=this.articleEditorBackendUrl,this.searchPosts=Oe(new Re(this.baseUrl,"admin/Posts/searchPosts",ze.POST,this.errorMap("Cikk lekérdezés")),{},void 0,void 0),this.whoAmI=Oe(new Re(this.baseUrl,"whoami",ze.GET,this.errorMap("Felhasználói adatok lekérdezése")),void 0,void 0,void 0),this.getPostsConfig=Oe(new Re(this.baseUrl,"/admin/Widgets/{name}",ze.GET,this.errorMap("Search Posts Widget konfiguráció lekérése")),void 0,{name:""},void 0),this.getImagesConfig=Oe(new Re(this.baseUrl,"/admin/Widgets/{name}",ze.GET,this.errorMap("Widget konfiguráció lekérése")),void 0,{name:""},void 0),this.getPresenceConfig=Oe(new Re(this.baseUrl,"/admin/Widgets/{name}",ze.GET,this.errorMap("Widget konfiguráció lekérése")),void 0,{name:""},void 0),this.sites=Oe(new Re(this.baseUrl,"/admin/sites",ze.GET,this.errorMap("Site lekérése")),void 0,void 0,void 0),this.authorsSearch=this.searchRequest("Authors","Szerzők"),this.authorsDetailsByIds=this.detailsByIdsRequest("Authors","Szerzők"),this.articleSeriesSearch=this.searchRequest("ArticleSeries","Cikk sorozatok"),this.articleSeriesDetailsByIds=this.detailsByIdsRequest("ArticleSeries","Cikk sorozatok"),this.partnersSearch=this.searchRequest("Partners","Partnerek"),this.partnersDetailsByIds=this.detailsByIdsRequest("Partners","Partnerek"),this.columnsSearch=this.searchRequest("Columns","Rovatok"),this.columnsDetailsByIds=this.detailsByIdsRequest("Columns","Rovatok"),this.digitalSupplementsSearch=this.searchRequest("DigitalSupplements","Digitális kiegészítők"),this.digitalSupplementsDetailsByIds=this.detailsByIdsRequest("DigitalSupplements","Digitális kiegészítők"),this.tagsSearch=this.searchRequest("Tags","Címkék"),this.tagsDetailsByIds=this.detailsByIdsRequest("Tags","Címkék"),this.getRelationsCount=this.postRequest("admin/Relations/byIds",{ids:[],outputEntityType:""},"Kapcsolatok számlálása")}errorMap(t){return new Map([[400,`${t} lekérdezése ismeretlen 400 hiba!`],[500,`${t} lekérdezése ismeretlen 500 hiba!`]])}postRequest(t,n,s){return Oe(new Re(this.baseUrl,t,ze.POST,this.errorMap(s)),n,void 0,void 0)}searchRequest(t,n){return this.postRequest(`admin/${t}/search`,{},n)}detailsByIdsRequest(t,n){return this.postRequest(`admin/${t}/detailsByIds`,{ids:[]},n)}},Ws=null,es=[],He=!1;function Xg(){if(Ws)return He&&console.debug("[currentUserInfo] Returning existing store instance"),Ws;He&&console.debug("[currentUserInfo] Creating new store instance");let e=F(null),t=F("loading"),n=F(null),s=F(null),l=ee(()=>t.value==="loading"),o=ee(()=>t.value==="authenticated"&&e.value!==null),r=ee(()=>{var w,b;return(b=(w=e.value)==null?void 0:w.displayName)!=null?b:""}),i=ee(()=>{var w,b;return(b=(w=e.value)==null?void 0:w.email)!=null?b:""}),a=ee(()=>{var w,b;return(b=(w=e.value)==null?void 0:w.roles)!=null?b:[]});function c(w,b){return De(this,null,function*(){He=b!=null?b:!1,He&&console.debug("[currentUserInfo] initialize() called",{backendUrl:w}),He&&console.debug("[currentUserInfo] Starting initialization"),s.value=w,t.value="loading",n.value=null;try{let C=Ai(w);yield new Promise((k,I)=>{if(C.baseUrl.indexOf("localhost")!=-1||Pi(C.baseUrl))return He&&console.debug("[currentUserInfo] Localhost/IP detected, using dev credentials"),e.value={displayName:"developer",email:"developer@hvg.hu",roles:["devadmin"],id:"00000000-0000-0000-0000-000000000000"},t.value="authenticated",k();C.whoAmI.successCallback=L=>{var D,j;He&&console.debug("[currentUserInfo] whoAmI success",{displayName:L.displayName,email:L.email,rolesCount:(j=(D=L.roles)==null?void 0:D.length)!=null?j:0}),e.value=L,t.value="authenticated",k()},C.whoAmI.errorCallback=L=>{var D;He&&console.error("[currentUserInfo] whoAmI failed:",L),n.value=(D=L.message)!=null?D:"Ismeretlen hiba történt",t.value="error",I(Error(n.value))},He&&console.debug("[currentUserInfo] Executing whoAmI request"),C.whoAmI.execute()}),yield new Promise((k,I)=>{C.sites.successCallback=L=>{He&&console.debug("[currentUserInfo] sites fetch success",{sitesCount:L.length}),es=L,k()},C.sites.errorCallback=L=>{var D;He&&console.error("[currentUserInfo] sites fetch failed:",L),I(Error((D=L.message)!=null?D:"Ismeretlen hiba történt"))},He&&console.debug("[currentUserInfo] Executing sites request"),C.sites.execute()}),He&&console.debug("[currentUserInfo] Initialization completed successfully")}catch(C){throw He&&console.error("[currentUserInfo] initialize failed:",C),t.value="error",n.value||(n.value="Felhasználói adatok vagy site-ok lekérése sikertelen"),C}})}function u(){He&&console.debug("[currentUserInfo] clear() called, resetting all state"),e.value=null,t.value="loading",n.value=null,s.value=null,es=[]}function h(w,b,C){var I;if(He&&console.debug("[currentUserInfo] hasPermission() check",{siteId:w,entityName:b,accessLevel:C}),!((I=e.value)!=null&&I.roles)||e.value.roles.length===0)return He&&console.debug("[currentUserInfo] hasPermission() denied: no roles"),!1;if(e.value.roles.includes("devadmin"))return He&&console.debug("[currentUserInfo] hasPermission() granted: devadmin role"),!0;let k=C==="admin"?["admin"]:["reader","admin"];for(let L of k){let D=`cms-${w}-${b}-${L}`;if(e.value.roles.includes(D))return He&&console.debug("[currentUserInfo] hasPermission() granted: specific role",D),!0;let j=`cms-${w}-all-${L}`;if(e.value.roles.includes(j))return He&&console.debug("[currentUserInfo] hasPermission() granted: all-entity role",j),!0}return He&&console.debug("[currentUserInfo] hasPermission() denied: no matching roles"),!1}function v(w,b){if(He&&console.debug("[currentUserInfo] getMixableSitesForResource() called",{entityName:w,currentSiteId:b}),!s.value)throw He&&console.error("[currentUserInfo] getMixableSitesForResource called before initialize"),Error("Store nincs inicializálva. Hívd meg előbb az initialize() metódust!");let C=es.find(I=>I.id===b);He&&console.debug("[currentUserInfo] Current site lookup",{found:!!C,totalSites:es.length});let k=[];return es.forEach(I=>{if(C===void 0){if(!h(I.id,w,"reader"))return;k.push(I)}else{if(C.entities.find(L=>L.type===w&&L.allowedSiteIds.includes(I.id))===void 0||!h(I.id,w,"reader"))return;k.push(I)}}),He&&console.debug("[currentUserInfo] getMixableSitesForResource() result",{mixableCount:k.length,mixableSiteIds:k.map(I=>I.id)}),k}function g(w,b){return He&&console.debug("[currentUserInfo] getMixableSiteIdsForResource() called",{entityName:w,currentSiteId:b}),v(w,b).map(C=>C.id)}return Ws={user:e,state:t,error:n,isLoading:l,isAuthenticated:o,displayName:r,email:i,roles:a,initialize:c,clear:u,hasPermission:h,getMixableSitesForResource:v,getMixableSiteIdsForResource:g},Ws}function Qg(e){return new Zg(e)}class Zg{constructor(t){ye(this,"searchAuthors");ye(this,"delete");ye(this,"users");ye(this,"searchColumns");ye(this,"searchPosts");ye(this,"searchTags");ye(this,"searchPartners");ye(this,"searchArticleSeries");ye(this,"searchDigitalSupplements");ye(this,"searchCategories");ye(this,"getPushTypes");ye(this,"postPushRequest");ye(this,"compare");ye(this,"revisions");ye(this,"revertrevision");ye(this,"upsertPost");ye(this,"related");ye(this,"price");ye(this,"transition");ye(this,"clonePost");this.apiurl=t,this.upsertPost=Oe(new Re(this.apiurl,"/admin/Posts",ze.PUT,new Map([[400,"A cikk beállításai helytelenül vannak kitöltve vagy hiányosak! Kérlek nézd át: cím, lead, elsődleges rovat és többi jobb hasáb beállítások."],[409,"Foglalt web azonosító!"],[500,"Cikk mentés ismeretlen hiba!"]])),{},void 0,void 0),this.compare=Oe(new Re(this.apiurl,"/admin/Posts/compare/{postId}/{left}/{right}",ze.GET,new Map([[400,"Revíziók differencia lekérés ismeretlen hiba!"],[404,"Revíziók differencia lekérés, Revízió nem található!"],[500,"Revíziók differencia ismeretlen hiba!"]])),void 0,{},void 0),this.revisions=Oe(new Re(this.apiurl,"/admin/Posts/revisions/{postId}",ze.GET,new Map([[400,"Revíziók lekérés ismeretlen hiba!"],[404,"Revíziók lekérés Cikk nem található!"],[500,"Revíziók ismeretlen hiba!"]])),void 0,{},void 0),this.revertrevision=Oe(new Re(this.apiurl,"/admin/Posts/revertrevision",ze.PUT,new Map([[400,"Revízió visszaállítás ismeretlen hiba!"],[500,"Revízió visszaállítása nem sikerült!"]])),{},void 0,void 0),this.searchTags=Oe(new Re(this.apiurl,"/admin/Tags/search",ze.POST,new Map([[400,"Tagek keresése ismeretlen hiba!"],[500,"Tagek keresése ismeretlen hiba!"]])),{display:null,siteIds:null,pageSize:10,pageIndex:0},void 0,void 0),this.searchPartners=Oe(new Re(this.apiurl,"/admin/Partners/search",ze.POST,new Map([[400,"BrandChannel keresése ismeretlen hiba!"],[500,"BrandChannel keresése ismeretlen hiba!"]])),{siteIds:["hvg"],pageIndex:0},void 0,void 0),this.searchColumns=Oe(new Re(this.apiurl,"/admin/Columns/search",ze.POST,new Map([[400,"Rovat keresés ismeretlen hiba!"],[500,"Rovat keresés ismeretlen hiba!"]])),{pageIndex:0,pageSize:10,isActive:!0},void 0,void 0),this.users=Oe(new Re(this.apiurl,"/admin/Users",ze.GET,new Map([[400,"Felhasználók lekérés ismeretlen hiba!"],[500,"Felhasználók lekérés ismeretlen hiba!"]])),void 0,void 0,void 0),this.delete=Oe(new Re(this.apiurl,"/admin/Posts/{id}",ze.DELETE,new Map([[400,"Csak szerkesztés alatt álló cikk törölhető!"],[500,"Cikk törlés ismeretlen hiba!"],[200,"Cikk sikeresen törölve."]])),void 0,{id:""},void 0),this.searchPosts=Oe(new Re(this.apiurl,"/admin/Posts/searchPosts",ze.POST,new Map([[400,"Cikk keresés ismeretlen hiba!"],[500,"Cikk keresés ismeretlen hiba!"]])),{title:null,exactMatch:!1,createdFrom:null,createdTo:null,modifiedFrom:null,modifiedTo:null,releasedFrom:null,releasedTo:null,publishDateFrom:null,publishDateTo:null,sortBy:null,sortDirection:null,status:null,rank:null,modifiedBy:null,createdBy:null,author:null,column:null,tag:null,pageIndex:0,pageSize:10,partnerId:null},void 0,void 0),this.searchArticleSeries=Oe(new Re(this.apiurl,"admin/ArticleSeries/search",ze.POST,new Map([[400,"Cikk sorozat keresés ismeretlen hiba!"],[500,"Cikk sorozat keresés ismeretlen hiba!"]])),{pageIndex:0,pageSize:10},void 0,void 0),this.searchDigitalSupplements=Oe(new Re(this.apiurl,"admin/DigitalSupplements/search",ze.POST,new Map([[400,"Cikk sorozat keresés ismeretlen hiba!"],[500,"Cikk sorozat keresés ismeretlen hiba!"]])),{pageIndex:0,pageSize:10},void 0,void 0),this.searchCategories=Oe(new Re(this.apiurl,"admin/Categories/search",ze.POST,new Map([[400,"Kategória keresés ismeretlen hiba!"],[500,"Kategória keresés ismeretlen hiba!"]])),{pageIndex:0,pageSize:10},void 0,void 0),this.searchAuthors=Oe(new Re(this.apiurl,"/admin/Authors/search",ze.POST,new Map([[400,"Szerző keresés ismeretlen hiba!"],[500,"Szerző keresés ismeretlen hiba!"]])),{id:null,authorName:null,archived:null,pageIndex:0,pageSize:10},void 0,void 0),this.getPushTypes=Oe(new Re(this.apiurl,"/admin/pushtypes",ze.GET,new Map([[400,"Push típusok lekérése ismeretlen hiba!"],[500,"Push típusok lekérése ismeretlen hiba!"]])),void 0,void 0,void 0),this.postPushRequest=Oe(new Re(this.apiurl,"/admin/push",ze.POST,new Map([[400,"Push küldés ismeretlen hiba!"],[500,"Push küldés ismeretlen hiba!"]])),{platform:"",articleId:"",pushType:""},void 0,void 0),this.related=Oe(new Re(this.apiurl,"/admin/posts/related",ze.POST,new Map([[500,"Cikk lekérés ismeretlen hiba!"]])),{},void 0,void 0),this.price=Oe(new Re(this.apiurl,"/admin/posts/price",ze.POST,new Map([[500,"SiteId váltás ismeretlen hiba!"]])),{},void 0,void 0),this.transition=Oe(new Re(this.apiurl,"/admin/posts/transition",ze.POST,new Map([[500,"SiteId váltás ismeretlen hiba!"]])),{},void 0,void 0),this.clonePost=Oe(new Re(this.apiurl,"/admin/posts/clone",ze.POST,new Map([[400,"Hírlevél klónozás sikertelen!"],[404,"Forrás hírlevél nem található!"],[500,"Hírlevél klónozás ismeretlen hiba!"]])),{},void 0,void 0)}}const Ri=[{label:"10 - Breaking",id:"10"},{label:"20 - Feature, örökzöld",id:"20"},{label:"30 - Vezető",id:"30"},{label:"40 - Kiemelt, ph",id:"40"},{label:"50 - Vélemény",id:"50"},{label:"60 - Fontos hírek",id:"60"},{label:"70 - Kishírek",id:"70"},{label:"80 - Kiadói anyagok",id:"80"},{label:"90 - Technikai",id:"90"}];var Vt=(e=>(e.PUBLISH="publish",e.DRAFT="draft",e.FUTURE="future",e))(Vt||{}),ts=(e=>(e.ARTICLE="article",e.NEWSLETTER="newsletter",e))(ts||{}),ev={key:0,class:"takeover-modal"},tv={class:"card"},nv={class:"muted"},sv=Ie({__name:"TakeoverRequestDialog",props:{open:{type:Boolean},who:{},durationSec:{}},emits:["accept","reject"],setup(e,{emit:t}){var h;let n=e,s=t,l=F((h=n.durationSec)!=null?h:30),o=null,r=null;function i(){o&&(o=(clearInterval(o),null)),r&&(r=(clearTimeout(r),null))}let a=()=>{var v,g;i(),l.value=(v=n.durationSec)!=null?v:30,o=window.setInterval(()=>{l.value=Math.max(0,l.value-1)},1e3),r=window.setTimeout(()=>{s("reject"),i()},((g=n.durationSec)!=null?g:30)*1e3)};Le(()=>n.open,v=>v?a():i(),{immediate:!0}),Nt(i);let c=()=>{s("accept")},u=()=>{s("reject")};return(v,g)=>e.open?(y(),S("div",ev,[g[3]||(g[3]=f("div",{class:"backdrop"},null,-1)),f("div",tv,[g[2]||(g[2]=f("h3",null,"Átvételi kérelem",-1)),f("p",null,[f("strong",null,[g[0]||(g[0]=f("span",{style:{color:"red"}},"FIGYELEM! Átadáskor minden mentetlen adat elveszik!",-1)),fe(" "+re(e.who),1)]),g[1]||(g[1]=fe(" át szeretné venni a vezérlést. ",-1))]),f("p",nv," Automatikus elutasítás "+re(l.value)+" másodperc múlva… ",1),f("div",{class:"actions"},[f("button",{class:"secondary",onClick:u},"Elutasít"),f("button",{class:"primary",onClick:c},"Átad")])])])):G("",!0)}}),ns=(e,t)=>{let n=e.__vccOpts||e;for(let[s,l]of t)n[s]=l;return n},lv=ns(sv,[["__scopeId","data-v-f7748944"]]),ov={key:0,class:"takeover-modal"},rv={class:"card"},iv={class:"muted"},av=Ie({__name:"TakeoverPendingDialog",props:{open:{type:Boolean},durationSec:{},who:{}},emits:["close"],setup(e,{emit:t}){var c;let n=e,s=t,l=F((c=n.durationSec)!=null?c:30),o=null,r=null;function i(){o&&(o=(clearInterval(o),null)),r&&(r=(clearTimeout(r),null))}let a=()=>{var u,h;i(),l.value=(u=n.durationSec)!=null?u:30,o=window.setInterval(()=>{l.value=Math.max(0,l.value-1)},1e3),r=window.setTimeout(()=>{s("close"),i()},((h=n.durationSec)!=null?h:30)*1e3)};return Le(()=>n.open,u=>u?a():i(),{immediate:!0}),Nt(i),(u,h)=>e.open?(y(),S("div",ov,[h[3]||(h[3]=f("div",{class:"backdrop"},null,-1)),f("div",rv,[h[2]||(h[2]=f("h3",null,"Átvételi kérelem függőben",-1)),f("p",null,[h[0]||(h[0]=fe(" A vezérlés ",-1)),f("strong",null,re(e.who),1),h[1]||(h[1]=fe(" -nál van. Értesítettük a jogosultat. ",-1))]),f("p",iv," Automatikus elutasítás "+re(l.value)+" másodperc múlva… ",1)])])):G("",!0)}}),cv=ns(av,[["__scopeId","data-v-b227e855"]]),uv={key:0,class:"takeover-modal"},dv={class:"card"},fv={class:"actions"},hv=Ie({__name:"TakeoverDialog",props:{open:{type:Boolean},who:{}},emits:["takeover","cancel"],setup(e,{emit:t}){let n=t;return(s,l)=>e.open?(y(),S("div",uv,[l[5]||(l[5]=f("div",{class:"backdrop"},null,-1)),f("div",dv,[l[4]||(l[4]=f("h3",null,"Átvételi kérelem függőben",-1)),f("p",null,[l[2]||(l[2]=fe(" A vezérlés ",-1)),f("strong",null,re(e.who),1),l[3]||(l[3]=fe(" -nál van. Átveszed tőle? ",-1))]),f("div",fv,[f("button",{class:"primary",onClick:l[0]||(l[0]=o=>n("takeover"))},"Átveszem"),f("button",{class:"secondary",onClick:l[1]||(l[1]=o=>n("cancel"))},"Mégse")])])])):G("",!0)}}),pv=ns(hv,[["__scopeId","data-v-7f4674cf"]]),gv={key:0,class:"takeover-modal"},vv={class:"card"},mv={class:"actions"},bv=Ie({__name:"TakeoverForced",props:{open:{type:Boolean},who:{}},emits:["ok"],setup(e,{emit:t}){let n=t;return(s,l)=>e.open?(y(),S("div",gv,[l[4]||(l[4]=f("div",{class:"backdrop"},null,-1)),f("div",vv,[l[3]||(l[3]=f("h3",null,"A vezérlést elvették tőled",-1)),f("p",null,[l[1]||(l[1]=fe(" A vezérlés ",-1)),f("strong",null,re(e.who),1),l[2]||(l[2]=fe(" -nál van. ",-1))]),f("div",mv,[f("button",{class:"primary",onClick:l[0]||(l[0]=o=>n("ok"))},"Ok")])])])):G("",!0)}}),yv=ns(bv,[["__scopeId","data-v-a90f79bc"]]);const Oi=()=>{let e="rt:clientId",t=sessionStorage.getItem(e);return t||(t=crypto.randomUUID(),sessionStorage.setItem(e,t)),t};var _v='var j=(o=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(o,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):o)(function(o){if(typeof require<"u")return require.apply(this,arguments);throw Error(\'Dynamic require of "\'+o+\'" is not supported\')});var I=class extends Error{constructor(e,t){let n=new.target.prototype;super(`${e}: Status code \'${t}\'`),this.statusCode=t,this.__proto__=n}},A=class extends Error{constructor(e="A timeout occurred."){let t=new.target.prototype;super(e),this.__proto__=t}},k=class extends Error{constructor(e="An abort occurred."){let t=new.target.prototype;super(e),this.__proto__=t}},te=class extends Error{constructor(e,t){let n=new.target.prototype;super(e),this.transport=t,this.errorType="UnsupportedTransportError",this.__proto__=n}},ne=class extends Error{constructor(e,t){let n=new.target.prototype;super(e),this.transport=t,this.errorType="DisabledTransportError",this.__proto__=n}},oe=class extends Error{constructor(e,t){let n=new.target.prototype;super(e),this.transport=t,this.errorType="FailedToStartTransportError",this.__proto__=n}},J=class extends Error{constructor(e){let t=new.target.prototype;super(e),this.errorType="FailedToNegotiateWithServerError",this.__proto__=t}},re=class extends Error{constructor(e,t){let n=new.target.prototype;super(e),this.innerErrors=t,this.__proto__=n}};var O=class{constructor(e,t,n){this.statusCode=e,this.statusText=t,this.content=n}},x=class{get(e,t){return this.send({...t,method:"GET",url:e})}post(e,t){return this.send({...t,method:"POST",url:e})}delete(e,t){return this.send({...t,method:"DELETE",url:e})}getCookieString(e){return""}};var i;(function(o){o[o.Trace=0]="Trace",o[o.Debug=1]="Debug",o[o.Information=2]="Information",o[o.Warning=3]="Warning",o[o.Error=4]="Error",o[o.Critical=5]="Critical",o[o.None=6]="None"})(i||(i={}));var $=class{constructor(){}log(e,t){}};$.instance=new $;var Pe="9.0.6";var p=class{static isRequired(e,t){if(e==null)throw new Error(`The \'${t}\' argument is required.`)}static isNotEmpty(e,t){if(!e||e.match(/^\\s*$/))throw new Error(`The \'${t}\' argument should not be empty.`)}static isIn(e,t,n){if(!(e in t))throw new Error(`Unknown ${n} value: ${e}.`)}},_=class o{static get isBrowser(){return!o.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!o.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!o.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}};function N(o,e){let t="";return T(o)?(t=`Binary data of length ${o.byteLength}`,e&&(t+=`. Content: \'${We(o)}\'`)):typeof o=="string"&&(t=`String data of length ${o.length}`,e&&(t+=`. Content: \'${o}\'`)),t}function We(o){let e=new Uint8Array(o),t="";return e.forEach(n=>{let r=n<16?"0":"";t+=`0x${r}${n.toString(16)} `}),t.substr(0,t.length-1)}function T(o){return o&&typeof ArrayBuffer<"u"&&(o instanceof ArrayBuffer||o.constructor&&o.constructor.name==="ArrayBuffer")}async function ie(o,e,t,n,r,s){let c={},[l,a]=D();c[l]=a,o.log(i.Trace,`(${e} transport) sending data. ${N(r,s.logMessageContent)}.`);let h=T(r)?"arraybuffer":"text",f=await t.post(n,{content:r,headers:{...c,...s.headers},responseType:h,timeout:s.timeout,withCredentials:s.withCredentials});o.log(i.Trace,`(${e} transport) request complete. Response status: ${f.statusCode}.`)}function Re(o){return o===void 0?new L(i.Information):o===null?$.instance:o.log!==void 0?o:new L(o)}var se=class{constructor(e,t){this._subject=e,this._observer=t}dispose(){let e=this._subject.observers.indexOf(this._observer);e>-1&&this._subject.observers.splice(e,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(t=>{})}},L=class{constructor(e){this._minLevel=e,this.out=console}log(e,t){if(e>=this._minLevel){let n=`[${new Date().toISOString()}] ${i[e]}: ${t}`;switch(e){case i.Critical:case i.Error:this.out.error(n);break;case i.Warning:this.out.warn(n);break;case i.Information:this.out.info(n);break;default:this.out.log(n);break}}}};function D(){let o="X-SignalR-User-Agent";return _.isNode&&(o="User-Agent"),[o,Be(Pe,Ue(),Oe(),je())]}function Be(o,e,t,n){let r="Microsoft SignalR/",s=o.split(".");return r+=`${s[0]}.${s[1]}`,r+=` (${o}; `,e&&e!==""?r+=`${e}; `:r+="Unknown OS; ",r+=`${t}`,n?r+=`; ${n}`:r+="; Unknown Runtime Version",r+=")",r}function Ue(){if(_.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function je(){if(_.isNode)return process.versions.node}function Oe(){return _.isNode?"NodeJS":"Browser"}function ce(o){return o.stack?o.stack:o.message?o.message:`${o}`}function xe(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}var ae=class extends x{constructor(e){if(super(),this._logger=e,typeof fetch>"u"||_.isNode){let t=typeof __webpack_require__=="function"?__non_webpack_require__:j;this._jar=new(t("tough-cookie")).CookieJar,typeof fetch>"u"?this._fetchType=t("node-fetch"):this._fetchType=fetch,this._fetchType=t("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(xe());if(typeof AbortController>"u"){let t=typeof __webpack_require__=="function"?__non_webpack_require__:j;this._abortControllerType=t("abort-controller")}else this._abortControllerType=AbortController}async send(e){if(e.abortSignal&&e.abortSignal.aborted)throw new k;if(!e.method)throw new Error("No method defined.");if(!e.url)throw new Error("No url defined.");let t=new this._abortControllerType,n;e.abortSignal&&(e.abortSignal.onabort=()=>{t.abort(),n=new k});let r=null;if(e.timeout){let a=e.timeout;r=setTimeout(()=>{t.abort(),this._logger.log(i.Warning,"Timeout from HTTP request."),n=new A},a)}e.content===""&&(e.content=void 0),e.content&&(e.headers=e.headers||{},T(e.content)?e.headers["Content-Type"]="application/octet-stream":e.headers["Content-Type"]="text/plain;charset=UTF-8");let s;try{s=await this._fetchType(e.url,{body:e.content,cache:"no-cache",credentials:e.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...e.headers},method:e.method,mode:"cors",redirect:"follow",signal:t.signal})}catch(a){throw n||(this._logger.log(i.Warning,`Error from HTTP request. ${a}.`),a)}finally{r&&clearTimeout(r),e.abortSignal&&(e.abortSignal.onabort=null)}if(!s.ok){let a=await $e(s,"text");throw new I(a||s.statusText,s.status)}let l=await $e(s,e.responseType);return new O(s.status,s.statusText,l)}getCookieString(e){let t="";return _.isNode&&this._jar&&this._jar.getCookies(e,(n,r)=>t=r.join("; ")),t}};function $e(o,e){let t;switch(e){case"arraybuffer":t=o.arrayBuffer();break;case"text":t=o.text();break;case"blob":case"document":case"json":throw new Error(`${e} is not supported.`);default:t=o.text();break}return t}var le=class extends x{constructor(e){super(),this._logger=e}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new k):e.method?e.url?new Promise((t,n)=>{let r=new XMLHttpRequest;r.open(e.method,e.url,!0),r.withCredentials=e.withCredentials===void 0?!0:e.withCredentials,r.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.content===""&&(e.content=void 0),e.content&&(T(e.content)?r.setRequestHeader("Content-Type","application/octet-stream"):r.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));let s=e.headers;s&&Object.keys(s).forEach(c=>{r.setRequestHeader(c,s[c])}),e.responseType&&(r.responseType=e.responseType),e.abortSignal&&(e.abortSignal.onabort=()=>{r.abort(),n(new k)}),e.timeout&&(r.timeout=e.timeout),r.onload=()=>{e.abortSignal&&(e.abortSignal.onabort=null),r.status>=200&&r.status<300?t(new O(r.status,r.statusText,r.response||r.responseText)):n(new I(r.response||r.responseText||r.statusText,r.status))},r.onerror=()=>{this._logger.log(i.Warning,`Error from HTTP request. ${r.status}: ${r.statusText}.`),n(new I(r.statusText,r.status))},r.ontimeout=()=>{this._logger.log(i.Warning,"Timeout from HTTP request."),n(new A)},r.send(e.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}};var he=class extends x{constructor(e){if(super(),typeof fetch<"u"||_.isNode)this._httpClient=new ae(e);else if(typeof XMLHttpRequest<"u")this._httpClient=new le(e);else throw new Error("No usable HttpClient found.")}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new k):e.method?e.url?this._httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(e){return this._httpClient.getCookieString(e)}};var E=class o{static write(e){return`${e}${o.RecordSeparator}`}static parse(e){if(e[e.length-1]!==o.RecordSeparator)throw new Error("Message is incomplete.");let t=e.split(o.RecordSeparator);return t.pop(),t}};E.RecordSeparatorCode=30;E.RecordSeparator=String.fromCharCode(E.RecordSeparatorCode);var ue=class{writeHandshakeRequest(e){return E.write(JSON.stringify(e))}parseHandshakeResponse(e){let t,n;if(T(e)){let l=new Uint8Array(e),a=l.indexOf(E.RecordSeparatorCode);if(a===-1)throw new Error("Message is incomplete.");let h=a+1;t=String.fromCharCode.apply(null,Array.prototype.slice.call(l.slice(0,h))),n=l.byteLength>h?l.slice(h).buffer:null}else{let l=e,a=l.indexOf(E.RecordSeparator);if(a===-1)throw new Error("Message is incomplete.");let h=a+1;t=l.substring(0,h),n=l.length>h?l.substring(h):null}let r=E.parse(t),s=JSON.parse(r[0]);if(s.type)throw new Error("Expected a handshake response from the server.");return[n,s]}};var u;(function(o){o[o.Invocation=1]="Invocation",o[o.StreamItem=2]="StreamItem",o[o.Completion=3]="Completion",o[o.StreamInvocation=4]="StreamInvocation",o[o.CancelInvocation=5]="CancelInvocation",o[o.Ping=6]="Ping",o[o.Close=7]="Close",o[o.Ack=8]="Ack",o[o.Sequence=9]="Sequence"})(u||(u={}));var de=class{constructor(){this.observers=[]}next(e){for(let t of this.observers)t.next(e)}error(e){for(let t of this.observers)t.error&&t.error(e)}complete(){for(let e of this.observers)e.complete&&e.complete()}subscribe(e){return this.observers.push(e),new se(this,e)}};var ge=class{constructor(e,t,n){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=e,this._connection=t,this._bufferSize=n}async _send(e){let t=this._protocol.writeMessage(e),n=Promise.resolve();if(this._isInvocationMessage(e)){this._totalMessageCount++;let r=()=>{},s=()=>{};T(t)?this._bufferedByteCount+=t.byteLength:this._bufferedByteCount+=t.length,this._bufferedByteCount>=this._bufferSize&&(n=new Promise((c,l)=>{r=c,s=l})),this._messages.push(new ke(t,this._totalMessageCount,r,s))}try{this._reconnectInProgress||await this._connection.send(t)}catch{this._disconnected()}await n}_ack(e){let t=-1;for(let n=0;n<this._messages.length;n++){let r=this._messages[n];if(r._id<=e.sequenceId)t=n,T(r._message)?this._bufferedByteCount-=r._message.byteLength:this._bufferedByteCount-=r._message.length,r._resolver();else if(this._bufferedByteCount<this._bufferSize)r._resolver();else break}t!==-1&&(this._messages=this._messages.slice(t+1))}_shouldProcessMessage(e){if(this._waitForSequenceMessage)return e.type!==u.Sequence?!1:(this._waitForSequenceMessage=!1,!0);if(!this._isInvocationMessage(e))return!0;let t=this._nextReceivingSequenceId;return this._nextReceivingSequenceId++,t<=this._latestReceivedSequenceId?(t===this._latestReceivedSequenceId&&this._ackTimer(),!1):(this._latestReceivedSequenceId=t,this._ackTimer(),!0)}_resetSequence(e){if(e.sequenceId>this._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we\'ve received."));return}this._nextReceivingSequenceId=e.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}async _resend(){let e=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;await this._connection.send(this._protocol.writeMessage({type:u.Sequence,sequenceId:e}));let t=this._messages;for(let n of t)await this._connection.send(n._message);this._reconnectInProgress=!1}_dispose(e){e??(e=new Error("Unable to reconnect to server."));for(let t of this._messages)t._rejector(e)}_isInvocationMessage(e){switch(e.type){case u.Invocation:case u.StreamItem:case u.Completion:case u.StreamInvocation:case u.CancelInvocation:return!0;case u.Close:case u.Sequence:case u.Ping:case u.Ack:return!1}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(async()=>{try{this._reconnectInProgress||await this._connection.send(this._protocol.writeMessage({type:u.Ack,sequenceId:this._latestReceivedSequenceId}))}catch{}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0},1e3))}},ke=class{constructor(e,t,n,r){this._message=e,this._id=t,this._resolver=n,this._rejector=r}};var Fe=30*1e3,qe=15*1e3,ze=1e5,m;(function(o){o.Disconnected="Disconnected",o.Connecting="Connecting",o.Connected="Connected",o.Disconnecting="Disconnecting",o.Reconnecting="Reconnecting"})(m||(m={}));var K=class o{static create(e,t,n,r,s,c,l){return new o(e,t,n,r,s,c,l)}constructor(e,t,n,r,s,c,l){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(i.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},p.isRequired(e,"connection"),p.isRequired(t,"logger"),p.isRequired(n,"protocol"),this.serverTimeoutInMilliseconds=s??Fe,this.keepAliveIntervalInMilliseconds=c??qe,this._statefulReconnectBufferSize=l??ze,this._logger=t,this._protocol=n,this.connection=e,this._reconnectPolicy=r,this._handshakeProtocol=new ue,this.connection.onreceive=a=>this._processIncomingData(a),this.connection.onclose=a=>this._connectionClosed(a),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=m.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:u.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(e){if(this._connectionState!==m.Disconnected&&this._connectionState!==m.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!e)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=e}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==m.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the \'Disconnected\' state."));this._connectionState=m.Connecting,this._logger.log(i.Debug,"Starting HubConnection.");try{await this._startInternal(),_.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=m.Connected,this._connectionStarted=!0,this._logger.log(i.Debug,"HubConnection connected successfully.")}catch(e){return this._connectionState=m.Disconnected,this._logger.log(i.Debug,`HubConnection failed to start successfully because of error \'${e}\'.`),Promise.reject(e)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;let e=new Promise((t,n)=>{this._handshakeResolver=t,this._handshakeRejecter=n});await this.connection.start(this._protocol.transferFormat);try{let t=this._protocol.version;this.connection.features.reconnect||(t=1);let n={protocol:this._protocol.name,version:t};if(this._logger.log(i.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(n)),this._logger.log(i.Information,`Using HubProtocol \'${this._protocol.name}\'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await e,this._stopDuringStartError)throw this._stopDuringStartError;(this.connection.features.reconnect||!1)&&(this._messageBuffer=new ge(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||await this._sendMessage(this._cachedPingMessage)}catch(t){throw this._logger.log(i.Debug,`Hub handshake failed with error \'${t}\' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(t),t}}async stop(){let e=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),await this._stopPromise;try{await e}catch{}}_stopInternal(e){if(this._connectionState===m.Disconnected)return this._logger.log(i.Debug,`Call to HubConnection.stop(${e}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===m.Disconnecting)return this._logger.log(i.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;let t=this._connectionState;return this._connectionState=m.Disconnecting,this._logger.log(i.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(i.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(t===m.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=e||new k("The connection was stopped before the hub handshake could complete."),this.connection.stop(e))}async _sendCloseMessage(){try{await this._sendWithProtocol(this._createCloseMessage())}catch{}}stream(e,...t){let[n,r]=this._replaceStreamingParams(t),s=this._createStreamInvocation(e,t,r),c,l=new de;return l.cancelCallback=()=>{let a=this._createCancelInvocation(s.invocationId);return delete this._callbacks[s.invocationId],c.then(()=>this._sendWithProtocol(a))},this._callbacks[s.invocationId]=(a,h)=>{if(h){l.error(h);return}else a&&(a.type===u.Completion?a.error?l.error(new Error(a.error)):l.complete():l.next(a.item))},c=this._sendWithProtocol(s).catch(a=>{l.error(a),delete this._callbacks[s.invocationId]}),this._launchStreams(n,c),l}_sendMessage(e){return this._resetKeepAliveInterval(),this.connection.send(e)}_sendWithProtocol(e){return this._messageBuffer?this._messageBuffer._send(e):this._sendMessage(this._protocol.writeMessage(e))}send(e,...t){let[n,r]=this._replaceStreamingParams(t),s=this._sendWithProtocol(this._createInvocation(e,t,!0,r));return this._launchStreams(n,s),s}invoke(e,...t){let[n,r]=this._replaceStreamingParams(t),s=this._createInvocation(e,t,!1,r);return new Promise((l,a)=>{this._callbacks[s.invocationId]=(f,R)=>{if(R){a(R);return}else f&&(f.type===u.Completion?f.error?a(new Error(f.error)):l(f.result):a(new Error(`Unexpected message type: ${f.type}`)))};let h=this._sendWithProtocol(s).catch(f=>{a(f),delete this._callbacks[s.invocationId]});this._launchStreams(n,h)})}on(e,t){!e||!t||(e=e.toLowerCase(),this._methods[e]||(this._methods[e]=[]),this._methods[e].indexOf(t)===-1&&this._methods[e].push(t))}off(e,t){if(!e)return;e=e.toLowerCase();let n=this._methods[e];if(n)if(t){let r=n.indexOf(t);r!==-1&&(n.splice(r,1),n.length===0&&delete this._methods[e])}else delete this._methods[e]}onclose(e){e&&this._closedCallbacks.push(e)}onreconnecting(e){e&&this._reconnectingCallbacks.push(e)}onreconnected(e){e&&this._reconnectedCallbacks.push(e)}_processIncomingData(e){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(e=this._processHandshakeResponse(e),this._receivedHandshakeResponse=!0),e){let t=this._protocol.parseMessages(e,this._logger);for(let n of t)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(n)))switch(n.type){case u.Invocation:this._invokeClientMethod(n).catch(r=>{this._logger.log(i.Error,`Invoke client method threw error: ${ce(r)}`)});break;case u.StreamItem:case u.Completion:{let r=this._callbacks[n.invocationId];if(r){n.type===u.Completion&&delete this._callbacks[n.invocationId];try{r(n)}catch(s){this._logger.log(i.Error,`Stream callback threw error: ${ce(s)}`)}}break}case u.Ping:break;case u.Close:{this._logger.log(i.Information,"Close message received from server.");let r=n.error?new Error("Server returned an error on close: "+n.error):void 0;n.allowReconnect===!0?this.connection.stop(r):this._stopPromise=this._stopInternal(r);break}case u.Ack:this._messageBuffer&&this._messageBuffer._ack(n);break;case u.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(n);break;default:this._logger.log(i.Warning,`Invalid message type: ${n.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(e){let t,n;try{[n,t]=this._handshakeProtocol.parseHandshakeResponse(e)}catch(r){let s="Error parsing handshake response: "+r;this._logger.log(i.Error,s);let c=new Error(s);throw this._handshakeRejecter(c),c}if(t.error){let r="Server returned handshake error: "+t.error;this._logger.log(i.Error,r);let s=new Error(r);throw this._handshakeRejecter(s),s}else this._logger.log(i.Debug,"Server handshake complete.");return this._handshakeResolver(),n}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if((!this.connection.features||!this.connection.features.inherentKeepAlive)&&(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),this._pingServerHandle===void 0)){let e=this._nextKeepAlive-new Date().getTime();e<0&&(e=0),this._pingServerHandle=setTimeout(async()=>{if(this._connectionState===m.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}},e)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async _invokeClientMethod(e){let t=e.target.toLowerCase(),n=this._methods[t];if(!n){this._logger.log(i.Warning,`No client method with the name \'${t}\' found.`),e.invocationId&&(this._logger.log(i.Warning,`No result given for \'${t}\' method and invocation ID \'${e.invocationId}\'.`),await this._sendWithProtocol(this._createCompletionMessage(e.invocationId,"Client didn\'t provide a result.",null)));return}let r=n.slice(),s=!!e.invocationId,c,l,a;for(let h of r)try{let f=c;c=await h.apply(this,e.arguments),s&&c&&f&&(this._logger.log(i.Error,`Multiple results provided for \'${t}\'. Sending error to server.`),a=this._createCompletionMessage(e.invocationId,"Client provided multiple results.",null)),l=void 0}catch(f){l=f,this._logger.log(i.Error,`A callback for the method \'${t}\' threw error \'${f}\'.`)}a?await this._sendWithProtocol(a):s?(l?a=this._createCompletionMessage(e.invocationId,`${l}`,null):c!==void 0?a=this._createCompletionMessage(e.invocationId,null,c):(this._logger.log(i.Warning,`No result given for \'${t}\' method and invocation ID \'${e.invocationId}\'.`),a=this._createCompletionMessage(e.invocationId,"Client didn\'t provide a result.",null)),await this._sendWithProtocol(a)):c&&this._logger.log(i.Error,`Result given for \'${t}\' method but server is not expecting a result.`)}_connectionClosed(e){this._logger.log(i.Debug,`HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||e||new k("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(e||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===m.Disconnecting?this._completeClose(e):this._connectionState===m.Connected&&this._reconnectPolicy?this._reconnect(e):this._connectionState===m.Connected&&this._completeClose(e)}_completeClose(e){if(this._connectionStarted){this._connectionState=m.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(e??new Error("Connection closed.")),this._messageBuffer=void 0),_.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(t=>t.apply(this,[e]))}catch(t){this._logger.log(i.Error,`An onclose callback called with error \'${e}\' threw error \'${t}\'.`)}}}async _reconnect(e){let t=Date.now(),n=0,r=e!==void 0?e:new Error("Attempting to reconnect due to a unknown error."),s=this._getNextRetryDelay(n++,0,r);if(s===null){this._logger.log(i.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(e);return}if(this._connectionState=m.Reconnecting,e?this._logger.log(i.Information,`Connection reconnecting because of error \'${e}\'.`):this._logger.log(i.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(c=>c.apply(this,[e]))}catch(c){this._logger.log(i.Error,`An onreconnecting callback called with error \'${e}\' threw error \'${c}\'.`)}if(this._connectionState!==m.Reconnecting){this._logger.log(i.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;s!==null;){if(this._logger.log(i.Information,`Reconnect attempt number ${n} will start in ${s} ms.`),await new Promise(c=>{this._reconnectDelayHandle=setTimeout(c,s)}),this._reconnectDelayHandle=void 0,this._connectionState!==m.Reconnecting){this._logger.log(i.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(await this._startInternal(),this._connectionState=m.Connected,this._logger.log(i.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(c=>c.apply(this,[this.connection.connectionId]))}catch(c){this._logger.log(i.Error,`An onreconnected callback called with connectionId \'${this.connection.connectionId}; threw error \'${c}\'.`)}return}catch(c){if(this._logger.log(i.Information,`Reconnect attempt failed because of error \'${c}\'.`),this._connectionState!==m.Reconnecting){this._logger.log(i.Debug,`Connection moved to the \'${this._connectionState}\' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===m.Disconnecting&&this._completeClose();return}r=c instanceof Error?c:new Error(c.toString()),s=this._getNextRetryDelay(n++,Date.now()-t,r)}}this._logger.log(i.Information,`Reconnect retries have been exhausted after ${Date.now()-t} ms and ${n} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(e,t,n){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:t,previousRetryCount:e,retryReason:n})}catch(r){return this._logger.log(i.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${e}, ${t}) threw error \'${r}\'.`),null}}_cancelCallbacksWithError(e){let t=this._callbacks;this._callbacks={},Object.keys(t).forEach(n=>{let r=t[n];try{r(null,e)}catch(s){this._logger.log(i.Error,`Stream \'error\' callback called with \'${e}\' threw error: ${ce(s)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(e,t,n,r){if(n)return r.length!==0?{target:e,arguments:t,streamIds:r,type:u.Invocation}:{target:e,arguments:t,type:u.Invocation};{let s=this._invocationId;return this._invocationId++,r.length!==0?{target:e,arguments:t,invocationId:s.toString(),streamIds:r,type:u.Invocation}:{target:e,arguments:t,invocationId:s.toString(),type:u.Invocation}}}_launchStreams(e,t){if(e.length!==0){t||(t=Promise.resolve());for(let n in e)e[n].subscribe({complete:()=>{t=t.then(()=>this._sendWithProtocol(this._createCompletionMessage(n)))},error:r=>{let s;r instanceof Error?s=r.message:r&&r.toString?s=r.toString():s="Unknown error",t=t.then(()=>this._sendWithProtocol(this._createCompletionMessage(n,s)))},next:r=>{t=t.then(()=>this._sendWithProtocol(this._createStreamItemMessage(n,r)))}})}}_replaceStreamingParams(e){let t=[],n=[];for(let r=0;r<e.length;r++){let s=e[r];if(this._isObservable(s)){let c=this._invocationId;this._invocationId++,t[c]=s,n.push(c.toString()),e.splice(r,1)}}return[t,n]}_isObservable(e){return e&&e.subscribe&&typeof e.subscribe=="function"}_createStreamInvocation(e,t,n){let r=this._invocationId;return this._invocationId++,n.length!==0?{target:e,arguments:t,invocationId:r.toString(),streamIds:n,type:u.StreamInvocation}:{target:e,arguments:t,invocationId:r.toString(),type:u.StreamInvocation}}_createCancelInvocation(e){return{invocationId:e,type:u.CancelInvocation}}_createStreamItemMessage(e,t){return{invocationId:e,item:t,type:u.StreamItem}}_createCompletionMessage(e,t,n){return t?{error:t,invocationId:e,type:u.Completion}:{invocationId:e,result:n,type:u.Completion}}_createCloseMessage(){return{type:u.Close}}};var Ve=[0,2e3,1e4,3e4,null],X=class{constructor(e){this._retryDelays=e!==void 0?[...e,null]:Ve}nextRetryDelayInMilliseconds(e){return this._retryDelays[e.previousRetryCount]}};var P=class{};P.Authorization="Authorization";P.Cookie="Cookie";var fe=class extends x{constructor(e,t){super(),this._innerClient=e,this._accessTokenFactory=t}async send(e){let t=!0;this._accessTokenFactory&&(!this._accessToken||e.url&&e.url.indexOf("/negotiate?")>0)&&(t=!1,this._accessToken=await this._accessTokenFactory()),this._setAuthorizationHeader(e);let n=await this._innerClient.send(e);return t&&n.statusCode===401&&this._accessTokenFactory?(this._accessToken=await this._accessTokenFactory(),this._setAuthorizationHeader(e),await this._innerClient.send(e)):n}_setAuthorizationHeader(e){e.headers||(e.headers={}),this._accessToken?e.headers[P.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&e.headers[P.Authorization]&&delete e.headers[P.Authorization]}getCookieString(e){return this._innerClient.getCookieString(e)}};var v;(function(o){o[o.None=0]="None",o[o.WebSockets=1]="WebSockets",o[o.ServerSentEvents=2]="ServerSentEvents",o[o.LongPolling=4]="LongPolling"})(v||(v={}));var S;(function(o){o[o.Text=1]="Text",o[o.Binary=2]="Binary"})(S||(S={}));var pe=class{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}};var G=class{get pollAborted(){return this._pollAbort.aborted}constructor(e,t,n){this._httpClient=e,this._logger=t,this._pollAbort=new pe,this._options=n,this._running=!1,this.onreceive=null,this.onclose=null}async connect(e,t){if(p.isRequired(e,"url"),p.isRequired(t,"transferFormat"),p.isIn(t,S,"transferFormat"),this._url=e,this._logger.log(i.Trace,"(LongPolling transport) Connecting."),t===S.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");let[n,r]=D(),s={[n]:r,...this._options.headers},c={abortSignal:this._pollAbort.signal,headers:s,timeout:1e5,withCredentials:this._options.withCredentials};t===S.Binary&&(c.responseType="arraybuffer");let l=`${e}&_=${Date.now()}`;this._logger.log(i.Trace,`(LongPolling transport) polling: ${l}.`);let a=await this._httpClient.get(l,c);a.statusCode!==200?(this._logger.log(i.Error,`(LongPolling transport) Unexpected response code: ${a.statusCode}.`),this._closeError=new I(a.statusText||"",a.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,c)}async _poll(e,t){try{for(;this._running;)try{let n=`${e}&_=${Date.now()}`;this._logger.log(i.Trace,`(LongPolling transport) polling: ${n}.`);let r=await this._httpClient.get(n,t);r.statusCode===204?(this._logger.log(i.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):r.statusCode!==200?(this._logger.log(i.Error,`(LongPolling transport) Unexpected response code: ${r.statusCode}.`),this._closeError=new I(r.statusText||"",r.statusCode),this._running=!1):r.content?(this._logger.log(i.Trace,`(LongPolling transport) data received. ${N(r.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(r.content)):this._logger.log(i.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(n){this._running?n instanceof A?this._logger.log(i.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=n,this._running=!1):this._logger.log(i.Trace,`(LongPolling transport) Poll errored after shutdown: ${n.message}`)}}finally{this._logger.log(i.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(e){return this._running?ie(this._logger,"LongPolling",this._httpClient,this._url,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(i.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(i.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);let e={},[t,n]=D();e[t]=n;let r={headers:{...e,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials},s;try{await this._httpClient.delete(this._url,r)}catch(c){s=c}s?s instanceof I&&(s.statusCode===404?this._logger.log(i.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log(i.Trace,`(LongPolling transport) Error sending a DELETE request: ${s}`)):this._logger.log(i.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this._logger.log(i.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let e="(LongPolling transport) Firing onclose event.";this._closeError&&(e+=" Error: "+this._closeError),this._logger.log(i.Trace,e),this.onclose(this._closeError)}}};var _e=class{constructor(e,t,n,r){this._httpClient=e,this._accessToken=t,this._logger=n,this._options=r,this.onreceive=null,this.onclose=null}async connect(e,t){return p.isRequired(e,"url"),p.isRequired(t,"transferFormat"),p.isIn(t,S,"transferFormat"),this._logger.log(i.Trace,"(SSE transport) Connecting."),this._url=e,this._accessToken&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((n,r)=>{let s=!1;if(t!==S.Text){r(new Error("The Server-Sent Events transport only supports the \'Text\' transfer format"));return}let c;if(_.isBrowser||_.isWebWorker)c=new this._options.EventSource(e,{withCredentials:this._options.withCredentials});else{let l=this._httpClient.getCookieString(e),a={};a.Cookie=l;let[h,f]=D();a[h]=f,c=new this._options.EventSource(e,{withCredentials:this._options.withCredentials,headers:{...a,...this._options.headers}})}try{c.onmessage=l=>{if(this.onreceive)try{this._logger.log(i.Trace,`(SSE transport) data received. ${N(l.data,this._options.logMessageContent)}.`),this.onreceive(l.data)}catch(a){this._close(a);return}},c.onerror=l=>{s?this._close():r(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},c.onopen=()=>{this._logger.log(i.Information,`SSE connected to ${this._url}`),this._eventSource=c,s=!0,n()}}catch(l){r(l);return}})}async send(e){return this._eventSource?ie(this._logger,"SSE",this._httpClient,this._url,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(e){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(e))}};var me=class{constructor(e,t,n,r,s,c){this._logger=n,this._accessTokenFactory=t,this._logMessageContent=r,this._webSocketConstructor=s,this._httpClient=e,this.onreceive=null,this.onclose=null,this._headers=c}async connect(e,t){p.isRequired(e,"url"),p.isRequired(t,"transferFormat"),p.isIn(t,S,"transferFormat"),this._logger.log(i.Trace,"(WebSockets transport) Connecting.");let n;return this._accessTokenFactory&&(n=await this._accessTokenFactory()),new Promise((r,s)=>{e=e.replace(/^http/,"ws");let c,l=this._httpClient.getCookieString(e),a=!1;if(_.isNode||_.isReactNative){let h={},[f,R]=D();h[f]=R,n&&(h[P.Authorization]=`Bearer ${n}`),l&&(h[P.Cookie]=l),c=new this._webSocketConstructor(e,void 0,{headers:{...h,...this._headers}})}else n&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(n)}`);c||(c=new this._webSocketConstructor(e)),t===S.Binary&&(c.binaryType="arraybuffer"),c.onopen=h=>{this._logger.log(i.Information,`WebSocket connected to ${e}.`),this._webSocket=c,a=!0,r()},c.onerror=h=>{let f=null;typeof ErrorEvent<"u"&&h instanceof ErrorEvent?f=h.error:f="There was an error with the transport",this._logger.log(i.Information,`(WebSockets transport) ${f}.`)},c.onmessage=h=>{if(this._logger.log(i.Trace,`(WebSockets transport) data received. ${N(h.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(h.data)}catch(f){this._close(f);return}},c.onclose=h=>{if(a)this._close(h);else{let f=null;typeof ErrorEvent<"u"&&h instanceof ErrorEvent?f=h.error:f="WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",s(new Error(f))}}})}send(e){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(i.Trace,`(WebSockets transport) sending data. ${N(e,this._logMessageContent)}.`),this._webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(e){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(i.Trace,"(WebSockets transport) socket closed."),this.onclose&&(this._isCloseEvent(e)&&(e.wasClean===!1||e.code!==1e3)?this.onclose(new Error(`WebSocket closed with status code: ${e.code} (${e.reason||"no reason given"}).`)):e instanceof Error?this.onclose(e):this.onclose())}_isCloseEvent(e){return e&&typeof e.wasClean=="boolean"&&typeof e.code=="number"}};var De=100,we=class{constructor(e,t={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,p.isRequired(e,"url"),this._logger=Re(t.logger),this.baseUrl=this._resolveUrl(e),t=t||{},t.logMessageContent=t.logMessageContent===void 0?!1:t.logMessageContent,typeof t.withCredentials=="boolean"||t.withCredentials===void 0)t.withCredentials=t.withCredentials===void 0?!0:t.withCredentials;else throw new Error("withCredentials option was not a \'boolean\' or \'undefined\' value");t.timeout=t.timeout===void 0?100*1e3:t.timeout;let n=null,r=null;if(_.isNode&&typeof j<"u"){let s=typeof __webpack_require__=="function"?__non_webpack_require__:j;n=s("ws"),r=s("eventsource")}!_.isNode&&typeof WebSocket<"u"&&!t.WebSocket?t.WebSocket=WebSocket:_.isNode&&!t.WebSocket&&n&&(t.WebSocket=n),!_.isNode&&typeof EventSource<"u"&&!t.EventSource?t.EventSource=EventSource:_.isNode&&!t.EventSource&&typeof r<"u"&&(t.EventSource=r),this._httpClient=new fe(t.httpClient||new he(this._logger),t.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=t,this.onreceive=null,this.onclose=null}async start(e){if(e=e||S.Binary,p.isIn(e,S,"transferFormat"),this._logger.log(i.Debug,`Starting connection with transfer format \'${S[e]}\'.`),this._connectionState!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the \'Disconnected\' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(e),await this._startInternalPromise,this._connectionState==="Disconnecting"){let t="Failed to start the HttpConnection before stop() was called.";return this._logger.log(i.Error,t),await this._stopPromise,Promise.reject(new k(t))}else if(this._connectionState!=="Connected"){let t="HttpConnection.startInternal completed gracefully but didn\'t enter the connection into the connected state!";return this._logger.log(i.Error,t),Promise.reject(new k(t))}this._connectionStarted=!0}send(e){return this._connectionState!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the \'Connected\' State.")):(this._sendQueue||(this._sendQueue=new Ie(this.transport)),this._sendQueue.send(e))}async stop(e){if(this._connectionState==="Disconnected")return this._logger.log(i.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnected state.`),Promise.resolve();if(this._connectionState==="Disconnecting")return this._logger.log(i.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;this._connectionState="Disconnecting",this._stopPromise=new Promise(t=>{this._stopPromiseResolver=t}),await this._stopInternal(e),await this._stopPromise}async _stopInternal(e){this._stopError=e;try{await this._startInternalPromise}catch{}if(this.transport){try{await this.transport.stop()}catch(t){this._logger.log(i.Error,`HttpConnection.transport.stop() threw error \'${t}\'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(i.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(e){let t=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory,this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation)if(this._options.transport===v.WebSockets)this.transport=this._constructTransport(v.WebSockets),await this._startTransport(t,e);else throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");else{let n=null,r=0;do{if(n=await this._getNegotiationResponse(t),this._connectionState==="Disconnecting"||this._connectionState==="Disconnected")throw new k("The connection was stopped during negotiation.");if(n.error)throw new Error(n.error);if(n.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(n.url&&(t=n.url),n.accessToken){let s=n.accessToken;this._accessTokenFactory=()=>s,this._httpClient._accessToken=s,this._httpClient._accessTokenFactory=void 0}r++}while(n.url&&r<De);if(r===De&&n.url)throw new Error("Negotiate redirection limit exceeded.");await this._createTransport(t,this._options.transport,n,e)}this.transport instanceof G&&(this.features.inherentKeepAlive=!0),this._connectionState==="Connecting"&&(this._logger.log(i.Debug,"The HttpConnection connected successfully."),this._connectionState="Connected")}catch(n){return this._logger.log(i.Error,"Failed to start the connection: "+n),this._connectionState="Disconnected",this.transport=void 0,this._stopPromiseResolver(),Promise.reject(n)}}async _getNegotiationResponse(e){let t={},[n,r]=D();t[n]=r;let s=this._resolveNegotiateUrl(e);this._logger.log(i.Debug,`Sending negotiation request: ${s}.`);try{let c=await this._httpClient.post(s,{content:"",headers:{...t,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials});if(c.statusCode!==200)return Promise.reject(new Error(`Unexpected status code returned from negotiate \'${c.statusCode}\'`));let l=JSON.parse(c.content);return(!l.negotiateVersion||l.negotiateVersion<1)&&(l.connectionToken=l.connectionId),l.useStatefulReconnect&&this._options._useStatefulReconnect!==!0?Promise.reject(new J("Client didn\'t negotiate Stateful Reconnect but the server did.")):l}catch(c){let l="Failed to complete negotiation with the server: "+c;return c instanceof I&&c.statusCode===404&&(l=l+" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this._logger.log(i.Error,l),Promise.reject(new J(l))}}_createConnectUrl(e,t){return t?e+(e.indexOf("?")===-1?"?":"&")+`id=${t}`:e}async _createTransport(e,t,n,r){let s=this._createConnectUrl(e,n.connectionToken);if(this._isITransport(t)){this._logger.log(i.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=t,await this._startTransport(s,r),this.connectionId=n.connectionId;return}let c=[],l=n.availableTransports||[],a=n;for(let h of l){let f=this._resolveTransportOrError(h,t,r,a?.useStatefulReconnect===!0);if(f instanceof Error)c.push(`${h.transport} failed:`),c.push(f);else if(this._isITransport(f)){if(this.transport=f,!a){try{a=await this._getNegotiationResponse(e)}catch(R){return Promise.reject(R)}s=this._createConnectUrl(e,a.connectionToken)}try{await this._startTransport(s,r),this.connectionId=a.connectionId;return}catch(R){if(this._logger.log(i.Error,`Failed to start the transport \'${h.transport}\': ${R}`),a=void 0,c.push(new oe(`${h.transport} failed: ${R}`,v[h.transport])),this._connectionState!=="Connecting"){let Ce="Failed to select transport before stop() was called.";return this._logger.log(i.Debug,Ce),Promise.reject(new k(Ce))}}}}return c.length>0?Promise.reject(new re(`Unable to connect to the server with any of the available transports. ${c.join(" ")}`,c)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(e){switch(e){case v.WebSockets:if(!this._options.WebSocket)throw new Error("\'WebSocket\' is not supported in your environment.");return new me(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case v.ServerSentEvents:if(!this._options.EventSource)throw new Error("\'EventSource\' is not supported in your environment.");return new _e(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case v.LongPolling:return new G(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${e}.`)}}_startTransport(e,t){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async n=>{let r=!1;if(this.features.reconnect)try{this.features.disconnected(),await this.transport.connect(e,t),await this.features.resend()}catch{r=!0}else{this._stopConnection(n);return}r&&this._stopConnection(n)}:this.transport.onclose=n=>this._stopConnection(n),this.transport.connect(e,t)}_resolveTransportOrError(e,t,n,r){let s=v[e.transport];if(s==null)return this._logger.log(i.Debug,`Skipping transport \'${e.transport}\' because it is not supported by this client.`),new Error(`Skipping transport \'${e.transport}\' because it is not supported by this client.`);if(Je(t,s))if(e.transferFormats.map(l=>S[l]).indexOf(n)>=0){if(s===v.WebSockets&&!this._options.WebSocket||s===v.ServerSentEvents&&!this._options.EventSource)return this._logger.log(i.Debug,`Skipping transport \'${v[s]}\' because it is not supported in your environment.\'`),new te(`\'${v[s]}\' is not supported in your environment.`,s);this._logger.log(i.Debug,`Selecting transport \'${v[s]}\'.`);try{return this.features.reconnect=s===v.WebSockets?r:void 0,this._constructTransport(s)}catch(l){return l}}else return this._logger.log(i.Debug,`Skipping transport \'${v[s]}\' because it does not support the requested transfer format \'${S[n]}\'.`),new Error(`\'${v[s]}\' does not support ${S[n]}.`);else return this._logger.log(i.Debug,`Skipping transport \'${v[s]}\' because it was disabled by the client.`),new ne(`\'${v[s]}\' is disabled by the client.`,s)}_isITransport(e){return e&&typeof e=="object"&&"connect"in e}_stopConnection(e){if(this._logger.log(i.Debug,`HttpConnection.stopConnection(${e}) called while in state ${this._connectionState}.`),this.transport=void 0,e=this._stopError||e,this._stopError=void 0,this._connectionState==="Disconnected"){this._logger.log(i.Debug,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is already in the disconnected state.`);return}if(this._connectionState==="Connecting")throw this._logger.log(i.Warning,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${e}) was called while the connection is still in the connecting state.`);if(this._connectionState==="Disconnecting"&&this._stopPromiseResolver(),e?this._logger.log(i.Error,`Connection disconnected with error \'${e}\'.`):this._logger.log(i.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(t=>{this._logger.log(i.Error,`TransportSendQueue.stop() threw error \'${t}\'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(e)}catch(t){this._logger.log(i.Error,`HttpConnection.onclose(${e}) threw error \'${t}\'.`)}}}_resolveUrl(e){if(e.lastIndexOf("https://",0)===0||e.lastIndexOf("http://",0)===0)return e;if(!_.isBrowser)throw new Error(`Cannot resolve \'${e}\'.`);let t=window.document.createElement("a");return t.href=e,this._logger.log(i.Information,`Normalizing \'${e}\' to \'${t.href}\'.`),t.href}_resolveNegotiateUrl(e){let t=new URL(e);t.pathname.endsWith("/")?t.pathname+="negotiate":t.pathname+="/negotiate";let n=new URLSearchParams(t.searchParams);return n.has("negotiateVersion")||n.append("negotiateVersion",this._negotiateVersion.toString()),n.has("useStatefulReconnect")?n.get("useStatefulReconnect")==="true"&&(this._options._useStatefulReconnect=!0):this._options._useStatefulReconnect===!0&&n.append("useStatefulReconnect","true"),t.search=n.toString(),t.toString()}};function Je(o,e){return!o||(e&o)!==0}var Ie=class o{constructor(e){this._transport=e,this._buffer=[],this._executing=!0,this._sendBufferedData=new F,this._transportResult=new F,this._sendLoopPromise=this._sendLoop()}send(e){return this._bufferData(e),this._transportResult||(this._transportResult=new F),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(e){if(this._buffer.length&&typeof this._buffer[0]!=typeof e)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof e}`);this._buffer.push(e),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new F;let e=this._transportResult;this._transportResult=void 0;let t=typeof this._buffer[0]=="string"?this._buffer.join(""):o._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(t),e.resolve()}catch(n){e.reject(n)}}}static _concatBuffers(e){let t=e.map(s=>s.byteLength).reduce((s,c)=>s+c),n=new Uint8Array(t),r=0;for(let s of e)n.set(new Uint8Array(s),r),r+=s.byteLength;return n.buffer}},F=class{constructor(){this.promise=new Promise((e,t)=>[this._resolver,this._rejecter]=[e,t])}resolve(){this._resolver()}reject(e){this._rejecter(e)}};var Ke="json",be=class{constructor(){this.name=Ke,this.version=2,this.transferFormat=S.Text}parseMessages(e,t){if(typeof e!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return[];t===null&&(t=$.instance);let n=E.parse(e),r=[];for(let s of n){let c=JSON.parse(s);if(typeof c.type!="number")throw new Error("Invalid payload.");switch(c.type){case u.Invocation:this._isInvocationMessage(c);break;case u.StreamItem:this._isStreamItemMessage(c);break;case u.Completion:this._isCompletionMessage(c);break;case u.Ping:break;case u.Close:break;case u.Ack:this._isAckMessage(c);break;case u.Sequence:this._isSequenceMessage(c);break;default:t.log(i.Information,"Unknown message type \'"+c.type+"\' ignored.");continue}r.push(c)}return r}writeMessage(e){return E.write(JSON.stringify(e))}_isInvocationMessage(e){this._assertNotEmptyString(e.target,"Invalid payload for Invocation message."),e.invocationId!==void 0&&this._assertNotEmptyString(e.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(e){if(this._assertNotEmptyString(e.invocationId,"Invalid payload for StreamItem message."),e.item===void 0)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(e){if(e.result&&e.error)throw new Error("Invalid payload for Completion message.");!e.result&&e.error&&this._assertNotEmptyString(e.error,"Invalid payload for Completion message."),this._assertNotEmptyString(e.invocationId,"Invalid payload for Completion message.")}_isAckMessage(e){if(typeof e.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(e){if(typeof e.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(e,t){if(typeof e!="string"||e==="")throw new Error(t)}};var Xe={trace:i.Trace,debug:i.Debug,info:i.Information,information:i.Information,warn:i.Warning,warning:i.Warning,error:i.Error,critical:i.Critical,none:i.None};function Ge(o){let e=Xe[o.toLowerCase()];if(typeof e<"u")return e;throw new Error(`Unknown log level: ${o}`)}var Y=class{configureLogging(e){if(p.isRequired(e,"logging"),Ye(e))this.logger=e;else if(typeof e=="string"){let t=Ge(e);this.logger=new L(t)}else this.logger=new L(e);return this}withUrl(e,t){return p.isRequired(e,"url"),p.isNotEmpty(e,"url"),this.url=e,typeof t=="object"?this.httpConnectionOptions={...this.httpConnectionOptions,...t}:this.httpConnectionOptions={...this.httpConnectionOptions,transport:t},this}withHubProtocol(e){return p.isRequired(e,"protocol"),this.protocol=e,this}withAutomaticReconnect(e){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return e?Array.isArray(e)?this.reconnectPolicy=new X(e):this.reconnectPolicy=e:this.reconnectPolicy=new X,this}withServerTimeout(e){return p.isRequired(e,"milliseconds"),this._serverTimeoutInMilliseconds=e,this}withKeepAliveInterval(e){return p.isRequired(e,"milliseconds"),this._keepAliveIntervalInMilliseconds=e,this}withStatefulReconnect(e){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=e?.bufferSize,this}build(){let e=this.httpConnectionOptions||{};if(e.logger===void 0&&(e.logger=this.logger),!this.url)throw new Error("The \'HubConnectionBuilder.withUrl\' method must be called before building the connection.");let t=new we(this.url,e);return K.create(t,this.logger||$.instance,this.protocol||new be,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}};function Ye(o){return o.log!==void 0}var He=o=>{let e={nextRetryDelayInMilliseconds:d=>{let b=Math.min(d.previousRetryCount,5),y=Math.pow(2,b)*1e3,C=Math.min(y,3e4),V=Math.floor(Math.random()*1e3);return C+V}},t={},n={},r={},s=!1,c=(d,b)=>{if(t[d])return t[d];n[d]=[],r[d]=[];let y=new Y().withUrl(`${o.apiBase}${b.path}`,{skipNegotiation:!0,transport:v.WebSockets}).withAutomaticReconnect(e).build();return b.serverTimeoutMs&&(y.serverTimeoutInMilliseconds=b.serverTimeoutMs),b.keepAliveMs&&(y.keepAliveIntervalInMilliseconds=b.keepAliveMs),y.onreconnecting(C=>{console.warn(`[SignalR] ${d} reconnecting\\u2026`,C)}),y.onreconnected(async()=>{let C=r[d]||[];for(let V of C)await V()}),y.onclose(C=>{console.warn(`[SignalR] ${d} closed`,C)}),t[d]=y,y},l=d=>new Promise(b=>setTimeout(b,d)),a=async d=>{let b=t[d];if(!b)throw new Error(`Hub "${d}" has not been created`);if(b.state!==m.Disconnected)return;let y=0;for(;;){if(s)return;try{await b.start(),console.info(`[SignalR] ${d} started`);return}catch(C){let V=n[d]||[];for(let Le of V)await Le();y++;let Te=Math.min(3e4,Math.pow(2,Math.min(y,5))*1e3)+Math.floor(Math.random()*1e3);console.warn(`[SignalR] ${d} start failed (attempt ${y}). Retrying in ~${Math.round(Te/1e3)}s\\u2026`,C),await l(Te)}}};return{createHub:c,getConnection:d=>t[d],start:d=>a(d),startAll:async()=>{s=!1,await Promise.all(Object.keys(t).map(d=>a(d)))},stop:async d=>{let b=t[d];b&&await b.stop()},stopAll:async()=>{s=!0,await Promise.allSettled(Object.values(t).map(d=>d.stop()))},on:(d,b,y)=>{let C=t[d];if(!C)throw new Error(`Hub "${d}" has not been created`);C.on(b,y)},off:(d,b,y)=>{let C=t[d];if(!C)throw new Error(`Hub "${d}" has not been created`);C.off(b,y)},invoke:(d,b,...y)=>{let C=t[d];if(!C)throw new Error(`Hub "${d}" has not been created`);return C.invoke(b,...y)},onReconnecting:(d,b)=>{let y=n[d];if(!y)throw new Error(`Hub "${d}" has not been created`);y.push(b)},onReconnected:(d,b)=>{let y=r[d];if(!y)throw new Error(`Hub "${d}" has not been created`);y.push(b)}}};var H="presence",Me=o=>(o.createHub(H,{path:"hubs/presence",serverTimeoutMs:2e4,keepAliveMs:8e3}),{name:H,start:()=>o.start(H),stop:()=>o.stop(H),on:(a,h)=>o.on(H,a,h),off:(a,h)=>o.off(H,a,h),invoke:(a,...h)=>o.invoke(H,a,...h),onReconnecting:a=>o.onReconnecting(H,a),onReconnected:a=>o.onReconnected(H,a),get connection(){return o.getConnection(H)}});console.debug("[Presence Worker] starting up\\u2026");var W=null,g=null,w=null,ee=!1,B=null,U=null,z=new Map,ve=new Map,q=new Map,Z=o=>self.postMessage(o),M=o=>{let e=o??g?.connection?.state?.toLowerCase?.()??"disconnected";Z({type:"state",state:e})},Ae=o=>{W&&g||(W||(W=He({apiBase:o.apiBase,transport:void 0})),g||(g=Me(W),W.onReconnecting(g.name,()=>{M("reconnecting")}),W.onReconnected(g.name,()=>{M()}),g.connection.onreconnecting?.(()=>{M("reconnecting")}),g.connection.onclose?.(()=>{M()})))},Ze=async()=>{if(!g)throw new Error("Core not initialized");if(U)try{await U}catch{}ee||(B||(B=(async()=>{await g.start(),ee=!0,B=null})().catch(o=>{throw B=null,ee=!1,o})),await B)},ye=async()=>{if(g){if(B)try{await B}catch{}ee&&(U||(U=(async()=>{await g.stop(),ee=!1,U=null})().catch(o=>{throw U=null,o})),await U)}},et=o=>{if(Se(o),!w||!g)return;let e=(w.heartbeatSec??12)*1e3|0,t=setInterval(()=>{!w||!g||g.invoke("Heartbeat",o,w.clientId).catch(()=>{})},e);ve.set(o,t)},Se=o=>{let e=ve.get(o);e&&(clearInterval(e),ve.delete(o))},Ee=()=>{for(let o of z.values())if(o!=="idle")return!1;return!0},Ne=o=>z.get(o)??"idle",Q=(o,e)=>{let t=Ne(o);t==="present"&&e!=="present"&&Se(o),t!=="present"&&e==="present"&&et(o),z.set(o,e)};self.onmessage=async o=>{let e=o.data;try{switch(e.cmd){case"init":{w=e.args,Ae(w),M();break}case"start":{if(!w)throw new Error("Call init first.");Ae(w);try{await Ze(),M()}catch(t){Z({type:"error",message:t.message,details:t})}break}case"stop-entity":{if(!w||!g){M();break}let t=e.entityId,n=Ne(t);try{n==="present"?await g.invoke("Leave",t,w.clientId):n==="subscribed"&&await g.invoke("Unsubscribe",t)}catch{}if(Q(t,"idle"),Se(t),Ee()){try{await ye()}catch{}M()}break}case"subscribe-event":{if(!g)throw new Error("Call init first.");let{event:t}=e;if(q.has(t))break;let n=r=>Z({type:"event",event:t,payload:r});q.set(t,n),g.on(t,n);break}case"unsubscribe-event":{if(!g)throw new Error("Call init first.");let{event:t}=e,n=q.get(t);n&&(g.off(t,n),q.delete(t));break}case"subscribe":{if(!g||!w)throw new Error("Call init first.");await g.invoke("Subscribe",e.entityId,e.clientId),Q(e.entityId,"subscribed");break}case"unsubscribe":{if(!g||!w)throw new Error("Call init first.");try{await g.invoke("Unsubscribe",e.entityId,e.clientId)}catch{}if(Q(e.entityId,"idle"),Ee())try{await ye()}catch{}break}case"join":{if(!g||!w)throw new Error("Call init first.");await g.invoke("Join",e.entityId,w.clientId),Q(e.entityId,"present");break}case"leave":{if(!g||!w)throw new Error("Call init first.");try{await g.invoke("Leave",e.entityId,w.clientId)}catch{}if(Q(e.entityId,"idle"),Ee())try{await ye()}catch{}break}case"trytakeover":{if(!g||!w)throw new Error("Call init first.");await g.invoke("TryTakeover",e.entityId,w.clientId);break}case"request":{if(!g||!w)throw new Error("Call init first.");await g.invoke("RequestTakeover",e.entityId,w.clientId);break}case"accept":{if(!g||!w)throw new Error("Call init first.");await g.invoke("AcceptTakeover",e.entityId,e.requesterClientId,w.clientId);break}case"reject":{if(!g||!w)throw new Error("Call init first.");await g.invoke("RejectTakeover",e.entityId,e.requesterClientId,w.clientId);break}case"force":{if(!g||!w)throw new Error("Call init first.");await g.invoke("ForceTakeover",e.entityId,w.clientId);break}case"dispose":{for(let[t,n]of q)g?.off(t,n);q.clear();for(let t of z.keys())Se(t),z.set(t,"idle");ve.clear(),z.clear();try{await ye()}catch{}g=null,W=null,w=null,M();break}default:Z({type:"error",message:`Unknown cmd: ${e?.cmd}`})}}catch(t){Z({type:"error",message:t?.message||String(t),details:t})}};\n',kv=e=>{var s;let t=globalThis;(s=t.__srWorkerBlobUrlCache)!=null||(t.__srWorkerBlobUrlCache=new Map);let n=t.__srWorkerBlobUrlCache.get(e);return n||(n=URL.createObjectURL(new Blob([e],{type:"text/javascript"})),t.__srWorkerBlobUrlCache.set(e,n)),n},wv=e=>{var s;let t=globalThis;(s=t.__srWorkerInstanceCache)!=null||(t.__srWorkerInstanceCache=new Map);let n=t.__srWorkerInstanceCache.get(e);return n||(n=new Worker(e,{name:"presence-"+Oi(),type:"module"}),t.__srWorkerInstanceCache.set(e,n)),n};const Sv=()=>{let e=kv(_v),t=wv(e);return{postMessage:n=>t.postMessage(n),addEventListener:(n,s)=>t.addEventListener(n,s),removeEventListener:(n,s)=>t.removeEventListener(n,s),close:()=>{}}};var Cv=class{constructor(){this.m=new Map}on(e,t){var n;((n=this.m.get(e))!=null?n:this.m.set(e,new Set).get(e)).add(t)}off(e,t){var n;(n=this.m.get(e))==null||n.delete(t)}emit(e,t){var n;(n=this.m.get(e))==null||n.forEach(s=>s(t))}};const Tv=e=>{let{apiBase:t,clientId:n,heartbeatSec:s}=e,l=Sv();l.postMessage({cmd:"init",args:{apiBase:t,clientId:n,heartbeatSec:s}});let o=new Cv,r=new Map,i=null,a=c=>{var h;let u=c.data||{};if(u.type==="event"){o.emit(u.event,u.payload);return}if(u.type==="state"){let v=String((h=u.state)!=null?h:"").toLowerCase();v==="reconnecting"&&i&&i!=="reconnecting"&&o.emit("presence:core:reconnecting",null),v==="connected"&&i&&i!=="connected"&&o.emit("presence:core:connected",null),i=v;return}if(u.type==="error"){o.emit("presence:core:error",{message:u.message,details:u.details});return}};return l.addEventListener("message",a),{start:()=>De(null,null,function*(){return l.postMessage({cmd:"start"})}),stop:c=>De(null,null,function*(){return l.postMessage({cmd:"stop-entity",entityId:c})}),dispose:()=>De(null,null,function*(){l.postMessage({cmd:"dispose"})}),subscribe:(h,...v)=>De(null,[h,...v],function*(c,u=n){return l.postMessage({cmd:"subscribe",entityId:c,clientId:u})}),unsubscribe:(h,...v)=>De(null,[h,...v],function*(c,u=n){return l.postMessage({cmd:"unsubscribe",entityId:c,clientId:u})}),join:c=>De(null,null,function*(){return l.postMessage({cmd:"join",entityId:c})}),leave:c=>De(null,null,function*(){return l.postMessage({cmd:"leave",entityId:c})}),tryTakeover:c=>De(null,null,function*(){return l.postMessage({cmd:"trytakeover",entityId:c})}),requestTakeover:c=>De(null,null,function*(){return l.postMessage({cmd:"request",entityId:c})}),acceptTakeover:(c,u)=>De(null,null,function*(){return l.postMessage({cmd:"accept",entityId:c,requesterClientId:u})}),rejectTakeover:(c,u)=>De(null,null,function*(){return l.postMessage({cmd:"reject",entityId:c,requesterClientId:u})}),forceTakeover:c=>De(null,null,function*(){return l.postMessage({cmd:"force",entityId:c})}),on:(c,u)=>{var v;let h=((v=r.get(c))!=null?v:0)+1;r.set(c,h),h===1&&l.postMessage({cmd:"subscribe-event",event:c}),o.on(c,u)},off:(c,u)=>{var v;o.off(c,u);let h=((v=r.get(c))!=null?v:0)-1;h<=0?(r.delete(c),l.postMessage({cmd:"unsubscribe-event",event:c})):r.set(c,h)},unsubscribeEvents:()=>{for(let c of r.keys())l.postMessage({cmd:"unsubscribe-event",event:c});r.clear(),l.removeEventListener("message",a)},clientId:n}};var $v={hidden:"",class:"client-id"},Iv={hidden:"",class:"entity-id"},Ev=["aria-expanded"],xv={key:0,class:"presence-dot my-dot","aria-hidden":"true"},Dv={class:"text-small-info"},Mv={class:"presence-list"},Pv={key:0,class:"presence-item is-you"},zv={class:"presence-email"},Av={class:"presence-email"},Rv=ns(Ie({__name:"PresenceWidget",props:{mode:{default:"handover"},onBeforeTakeoverAccepted:{},apiBase:{},entityId:{}},emits:["lost-holder","takeover-accepted","takeover-rejected","ready","reconnecting"],setup(e,{expose:t,emit:n}){let s=e,l=d=>{var $;let p=globalThis;($=p.__presenceInitBatchers)!=null||(p.__presenceInitBatchers=new Map);let m=p.__presenceInitBatchers.get(d);return m||(m={ids:new Set,resolvers:new Map,rejecters:new Map},p.__presenceInitBatchers.set(d,m)),m},o=d=>/(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/.test(d),r=(d,p)=>De(null,null,function*(){var x;let m=Array.from(p.ids);if(p.ids.clear(),p.timer=void 0,m.length===0)return;let $=`${d}api/presence/byIds`;try{let z=yield fetch($,{method:"POST",headers:{"content-type":"application/json"},credentials:d.indexOf("localhost")!==-1||o(d)?"omit":"include",body:JSON.stringify({ids:m})});if(!z.ok)throw Error(`HTTP ${z.status}`);let q=yield z.json(),K={};q&&(K=q);for(let W of m){let Y=p.resolvers.get(W);if(p.rejecters.get(W),Y&&Y.length){let ue=(x=K[W])!=null?x:{entityId:W,version:0,editors:[]};Y.forEach(oe=>oe(ue))}p.resolvers.delete(W),p.rejecters.delete(W)}}catch(z){for(let q of m){let K=p.rejecters.get(q);K&&K.length&&K.forEach(W=>W(z)),p.resolvers.delete(q),p.rejecters.delete(q)}}}),i=(d,p)=>{let m=l(d);return new Promise(($,x)=>{var K,W,Y;m.ids.add(p);let z=(K=m.resolvers.get(p))!=null?K:[];z.push($),m.resolvers.set(p,z);let q=(W=m.rejecters.get(p))!=null?W:[];q.push(x),m.rejecters.set(p,q),(Y=m.timer)!=null||(m.timer=setTimeout(()=>{r(d,m)},250))})},a=n,c=Oi(),u=Tv({apiBase:s.apiBase,clientId:c}),h=F(null),v=F({entityId:s.entityId,version:0,editors:[]}),g=ee(()=>{var d,p;return(p=(d=v.value.editors.find(m=>m.clientId===h.value))==null?void 0:d.email)!=null?p:null}),w=()=>{Se.value=!0,a("reconnecting")},b=()=>{Se.value=!1,C()},C=()=>{u.subscribe(s.entityId,c),a("ready",{entityId:s.entityId,clientId:c})},k=d=>{s.entityId===d.entityId&&(v.value=d.snap,h.value=d.holderClientId)},I=d=>d.clientId===c&&d.entityId===s.entityId,L=d=>{s.entityId===d.entityId&&(console.debug("Presenter left"),h.value===d.clientId&&(h.value=null,c===d.clientId&&console.debug("You were the presenter who left")))},D=d=>{s.entityId===d.entityId&&(console.debug("Presenter changed to",d.clientId),h.value=d.clientId)},j=d=>De(null,null,function*(){I({entityId:d.entityId,clientId:d.previousHolderClientId})&&h.value===c&&(console.debug("takeover requested by",d.clientId),M.value=d.requesterName||d.requesterEmail||d.clientId,_.value=d.clientId,B.value=!0)}),T=d=>De(null,null,function*(){I(d)&&(h.value=d.clientId,console.debug("takeover accepted"),V.value=!1,O.value="",a("takeover-accepted"))}),A=d=>{I({entityId:d.entityId,clientId:d.previousHolderClientId})&&(console.debug("you transferred"),s.mode==="handover"?a("lost-holder",{reason:"transferred"}):s.mode==="takeover"&&(ne.value=!0))},R=d=>{I({entityId:d.entityId,clientId:d.previousHolderClientId})&&(_.value=d.clientId,H())},H=()=>De(null,null,function*(){var d;(d=s.onBeforeTakeoverAccepted)==null||d.call(s).then(()=>{console.log("Accepting takeover for",_.value),u.acceptTakeover(s.entityId,_.value)}).finally(()=>{_.value=null})}),se=d=>{I(d)&&(console.debug("takeover rejected"),V.value=!1,O.value="",_.value=null,a("takeover-rejected"))},X=d=>{I(d)&&(console.debug("takeover pending"),O.value=g.value||"unknown",V.value=!0)},E=()=>{u.on("presence:core:reconnecting",w),u.on("presence:core:connected",b),u.on("ROSTER_SNAPSHOT",k),u.on("PRESENTER_LEFT",L),u.on("PRESENTER_CHANGED",D),u.on("TAKEOVER_PENDING",X),u.on("TAKEOVER_REQUESTED",j),u.on("TAKEOVER_ACCEPTED",T),u.on("TAKEOVER_REJECTED",se),u.on("YOU_TRANSFERRED",A),u.on("TAKEOVER_FORCED",R)},Z=()=>{u.off("presence:core:reconnecting",w),u.off("presence:core:connected",b),u.off("ROSTER_SNAPSHOT",k),u.off("PRESENTER_LEFT",L),u.off("PRESENTER_CHANGED",D),u.off("TAKEOVER_REQUESTED",j),u.off("TAKEOVER_ACCEPTED",T),u.off("YOU_TRANSFERRED",A),u.off("TAKEOVER_FORCED",R),u.off("TAKEOVER_PENDING",X),u.off("TAKEOVER_REJECTED",se)},N=!1,J=()=>le(),U=()=>le(),le=()=>{var d,p;if(!N){N=!0,Z();try{(d=u.stop)==null||d.call(u,s.entityId)}catch(m){}try{(p=u.unsubscribeEvents)==null||p.call(u)}catch(m){}window.removeEventListener("beforeunload",J),window.removeEventListener("pagehide",U),console.debug("PresenceWidget cleaned up")}};ft(()=>De(null,null,function*(){E(),window.addEventListener("beforeunload",J,{once:!0}),window.addEventListener("pagehide",U,{once:!0}),yield u.start();try{v.value=yield i(s.apiBase,s.entityId)}catch(d){}})),Nt(()=>{le()}),t({forceTakeover:()=>De(null,null,function*(){yield u.forceTakeover(s.entityId)}),requestTakeover:()=>De(null,null,function*(){s.mode==="handover"?yield u.requestTakeover(s.entityId):s.mode==="takeover"&&(yield u.tryTakeover(s.entityId))}),leave:()=>De(null,null,function*(){yield u.leave(s.entityId)}),join:()=>De(null,null,function*(){yield u.join(s.entityId)})});let B=F(!1),M=F(""),_=F(null),V=F(!1),O=F(""),ne=F(!1),Se=F(!1),We=F(!1),je=ee(()=>v.value.editors.find(d=>d.clientId===c)),Ge=ee(()=>v.value.editors.filter(d=>d.clientId!==c)),Ye,pt=()=>{clearTimeout(Ye),We.value=!0},st=()=>{Ye=setTimeout(()=>{We.value=!1},300)},ie=()=>{We.value?We.value=!1:pt()};return(d,p)=>(y(),S(he,null,[f("div",{class:te(["presence",{offline:Se.value}])},[f("span",$v,re(ae(c)),1),f("span",Iv,re(s.entityId),1),f("div",{class:"presence-widget",onMouseenter:pt,onMouseleave:st,onTouchstartPassive:ie},[je.value||Ge.value.length?(y(),S("button",{key:0,class:"presence-trigger",onClick:ie,"aria-expanded":We.value,"aria-haspopup":"true",title:"Összezár/Kinyit"},[je.value?(y(),S("span",xv)):G("",!0),(y(!0),S(he,null,xe(Ge.value,m=>(y(),S("span",{key:m.clientId,class:"presence-dot other-dot","aria-hidden":"true"}))),128))],8,Ev)):G("",!0),ce(Pl,{name:"presence-panel"},{default:Ze(()=>[We.value?(y(),S("div",{key:0,class:"presence-panel",onMouseenter:pt,onMouseleave:st},[f("span",Dv,re(v.value.editors.length)+" résztvevő",1),f("ul",Mv,[je.value?(y(),S("li",Pv,[p[6]||(p[6]=f("span",{class:"presence-dot","aria-hidden":"true"},null,-1)),f("span",zv,re(je.value.email),1),p[7]||(p[7]=f("span",{class:"text-small-info"},"(you)",-1))])):G("",!0),(y(!0),S(he,null,xe(Ge.value,m=>(y(),S("li",{key:m.email,class:"presence-item"},[p[8]||(p[8]=f("span",{class:"presence-dot","aria-hidden":"true"},null,-1)),f("span",Av,re(m.email),1)]))),128))])],32)):G("",!0)]),_:1})],32)],2),e.mode==="handover"?(y(),me(lv,{key:0,open:B.value,who:M.value,durationSec:30,onAccept:p[0]||(p[0]=()=>De(null,null,function*(){_.value&&H(),B.value=!1})),onReject:p[1]||(p[1]=()=>De(null,null,function*(){_.value&&(_.value=(yield ae(u).rejectTakeover(s.entityId,_.value),null)),B.value=!1}))},null,8,["open","who"])):G("",!0),e.mode==="handover"?(y(),me(cv,{key:1,open:V.value,who:O.value,durationSec:30,onClose:p[2]||(p[2]=()=>{V.value=!1})},null,8,["open","who"])):G("",!0),e.mode==="takeover"?(y(),me(pv,{key:2,open:V.value,who:O.value,onTakeover:p[3]||(p[3]=()=>De(null,null,function*(){yield ae(u).forceTakeover(s.entityId),V.value=!1})),onCancel:p[4]||(p[4]=()=>{V.value=!1,a("takeover-rejected")})},null,8,["open","who"])):G("",!0),e.mode==="takeover"?(y(),me(yv,{key:3,open:ne.value,who:g.value||"unknown",onOk:p[5]||(p[5]=()=>{ne.value=!1,a("lost-holder",{reason:"forced"})})},null,8,["open","who"])):G("",!0)],64))}}),[["__scopeId","data-v-5c21ab8c"]]);let Ov=null;const Uv=()=>Ov,Bv={Web:"web"},Hv=(e,t)=>t===ts.NEWSLETTER?e.filter(n=>n.id.endsWith("-nl")):t===ts.ARTICLE?e.filter(n=>!n.id.endsWith("-nl")):e;/*!
21
+ * vue-router v4.6.4
22
+ * (c) 2025 Eduardo San Martin Morote
23
+ * @license MIT
24
+ */const Nv=Symbol("");/*!
25
+ * vue-router v4.6.4
26
+ * (c) 2025 Eduardo San Martin Morote
27
+ * @license MIT
28
+ */function Fv(){return Hn(Nv)}const Lv={class:"ac-component ac-container"},jv={class:"d-flex align-items-center site-selector-create"},Vv={class:"data-list-section"},Wv={key:0,class:"c-actions-wrap c-btn-group"},qv={key:1,class:"selector-footer"},Kv=Ie({__name:"SearchPosts",props:{environment:{},id:{},selector:{type:Boolean},apiUrl:{},editorUrl:{},searchUrl:{},statuses:{},multiple:{type:Boolean},postType:{default:ts.ARTICLE},excludeColumns:{},title:{},entityLabel:{}},emits:["selected"],setup(e,{emit:t}){const n=e,s=t,l=Fv();var o=F(null);const r=F(!0),i=Ai(n.apiUrl),a=P=>{var Q;return(Q=P.headers)==null?void 0:Q.find(pe=>pe.type===Bv.Web)},c=P=>{var Q,pe;return(pe=(Q=a(P))==null?void 0:Q.title)!=null?pe:""},u=P=>{var Q,pe;return(pe=(Q=a(P))==null?void 0:Q.lead)!=null?pe:""},h=F([]),v="newArticleSiteId",g=()=>{const P=localStorage.getItem(v);if(P){const Q=h.value.find(pe=>pe.value==P);if(Q)return Q}return null},w=P=>{b.value=P,P?localStorage.setItem(v,P.value):localStorage.removeItem(v)},b=F(g()),C=F(void 0);i.getPresenceConfig.routeParams.value.name="presence-widget",i.getPresenceConfig.successCallback=()=>{var P;i.getPresenceConfig.data.value&&(C.value=(P=i.getPresenceConfig.data.value.environments.find(Q=>Q.name==n.environment))==null?void 0:P.apiUrl)},i.getPresenceConfig.execute();const k=Qg(n.apiUrl);n.postType&&(k.searchPosts.payload.value.postTypes=[n.postType]),k.delete.successCallback=()=>{ue()},k.searchAuthors.payload.value.archived=!1;const I=F([]),L=F([]),D=F([]),j=F([]),T=F([]),A=F([]),R=F([]),H=F([]),se=F(0),X="search-posts-list",E=ee(()=>{let P=[...Ri];return P.unshift({label:"Nem beállított",id:"-1"}),P}),Z=[{label:"Szerkesztés alatt",value:Vt.DRAFT},{label:"Publikált",value:Vt.PUBLISH},{label:"Jövőbeni",value:Vt.FUTURE}],N=ee(()=>n.statuses?Z.filter(P=>{var Q;return(Q=n.statuses)==null?void 0:Q.includes(P.value)}):Z),J=ee(()=>n.postType===ts.NEWSLETTER),U=F({column:!1,tag:!1,author:!1,partner:!1,articleSeries:!1,digitalSupplement:!1}),le=ee(()=>{var P,Q,pe,$e,ct,bt,Zt,ss;return[{type:"text",key:"ID",label:"ID",placeholder:"ID szűrése..."},{type:"dropdown",key:"siteIds",label:"Site",placeholder:"Válasszon site-ot...",options:((P=o.value)!=null?P:[]).map(be=>({label:be.name,value:be.id})),config:{multiple:!0},onChange:be=>{$(be)}},{type:"text",key:"title",label:"Cím",placeholder:"Cím szűrése..."},{type:"dropdown",key:"status",label:"Állapot",placeholder:"Szűrés állapotra",options:(Q=N.value)!=null?Q:[]},{type:"separator",key:"sep1"},{type:"daterange",key:"createdAt",label:"Létrehozva",placeholder:"Létrehozás dátum szűrése...",config:{compact:!0},transformer:be=>be?{createdFrom:be.fromUtc,createdTo:be.toUtc}:null},{type:"dropdown",key:"creator",label:"Létrehozta",placeholder:"Létrehozó szűrése...",options:I.value?I.value.map(be=>({label:be.label,value:be.value})):[]},{type:"datetimerange",key:"modifiedAt",label:"Módosítva",placeholder:"Módosítás dátum szűrése...",config:{compact:!0},transformer:be=>be?{modifiedFrom:be.fromUtc,modifiedTo:be.toUtc}:null},{type:"dropdown",key:"modifiedBy",label:"Módosította",placeholder:"Módosító szűrése...",options:I.value?I.value.map(be=>({label:be.label,value:be.value})):[]},{type:"datetimerange",key:"publishDate",label:"Megjelenik",placeholder:"Megjelenés dátum szűrése...",config:{compact:!0},transformer:be=>be?{publishDateFrom:be.fromUtc,publishDateTo:be.toUtc}:null},{type:"dropdown",key:"author",label:"Szerző",placeholder:"Szerző szűrése...",options:(pe=D.value)!=null?pe:[],onInnerSearch:be=>{U.value.author=!0,k.searchAuthors.payload.value.authorName=be,We()},config:{loading:U.value.author}},{type:"separator",key:"sep2"},{type:"dropdown",key:"column",label:"Rovat",placeholder:"Szűrés rovatra...",options:($e=j.value)!=null?$e:[],onInnerSearch:be=>{U.value.column=!0,k.searchColumns.payload.value.name=be,je()},config:{loading:U.value.column}},{type:"dropdown",key:"tag",label:"Cimke",placeholder:"Szűrés cimkére",onInnerSearch:be=>{U.value.tag=!0,k.searchTags.payload.value.display=be,Se()},options:(ct=L.value)!=null?ct:[],config:{loading:U.value.tag}},{type:"dropdown",key:"rank",label:"Besorolás",placeholder:"Szűrés besorolásra",options:E.value?E.value.map(be=>({label:be.label,value:be.id})):[]},{type:"dropdown",key:"partner",label:"Partner",placeholder:"Szűrés partnerre",options:(bt=T.value)!=null?bt:[],onInnerSearch:be=>{U.value.partner=!0,k.searchPartners.payload.value.name=be,Ge()},config:{loading:U.value.partner}},{type:"dropdown",key:"articleSeries",label:"Cikksorozat",placeholder:"Szűrés cikksorozatra",options:(Zt=A.value)!=null?Zt:[],onInnerSearch:be=>{U.value.articleSeries=!0,k.searchArticleSeries.payload.value.name=be,Ye()},config:{loading:U.value.articleSeries}},{type:"dropdown",key:"digitalSupplement",label:"Digitális Különszám",placeholder:"Szűrés digitális különszámra",options:(ss=R.value)!=null?ss:[],onInnerSearch:be=>{U.value.digitalSupplement=!0,k.searchDigitalSupplements.payload.value.title=be,pt()},config:{loading:U.value.digitalSupplement}}]}),B={columns:[{label:"Szerkeszti",property:"presence",hideHeader:!0,defaultCardHeader:!0,hideable:!1,class:"pl-1 presence-column",headerClass:"pl-1 presence-column-header",converter:(P,Q)=>C.value?Us(To(Rv),{apiBase:C.value,entityId:Q.id}):""},{label:"ID",property:"id",visible:!1,type:"uuid"},{label:"Site",property:"siteId",defaultCardHeader:!0,hideable:!1,converter:(P,Q)=>{var pe,$e;return($e=(pe=o.value)==null?void 0:pe.find(ct=>ct.id==Q.siteId))==null?void 0:$e.name}},{label:"Cím",property:"title",primary:!0,converter:(P,Q)=>n.selector?c(Q):st(Q)},{label:"Állapot",property:"status",converter:Mf({[Vt.DRAFT]:"Szerkesztés alatt",[Vt.PUBLISH]:"Publikált",[Vt.FUTURE]:"Jövőbeni"},"")},{label:"Létrehozva",property:"createdAt",converter:Kl(!0),type:"datetime",sort:{label:"sort",callback:(P,Q)=>{k.searchPosts.payload.value.sortBy="createdAt",k.searchPosts.payload.value.sortDirection=Q,ue()}}},{label:"Létrehozta",property:"creator"},{label:"Módosítva",property:"modifiedAt",converter:Kl(!0),type:"datetime",sort:{label:"sort",callback:(P,Q)=>{k.searchPosts.payload.value.sortBy="modifiedAt",k.searchPosts.payload.value.sortDirection=Q,ue()}}},{label:"Módosította",property:"modifiedBy"},{label:"Megjelenik",property:"publishDateGmt",sort:{label:"sort",callback:(P,Q)=>{k.searchPosts.payload.value.sortBy="publishDate",k.searchPosts.payload.value.sortDirection=Q,ue()}},converter:Kl(!0),type:"datetime"},{label:"Szerzők",property:"authors",converter:wi()},{label:"Rovatok",property:"columns",converter:wi(", ",!0)},{label:"Címkék",property:"tags",converter:Pf()},{label:"Besorolás",property:"rank",converter:P=>{if(!P)return"";let Q=Ri.find(pe=>pe.id==P);return Q?Q==null?void 0:Q.label:""}},{label:"BrandChannel",property:"partner",visible:!1},{label:"Cikksorozat",property:"articleSeries",visible:!1},{label:"Digitális Különszám",property:"digitalSupplement",visible:!1}],actionHeader:"Műveletek",selectableAttr:n.selector?"id":void 0,actions:[{icon:"fa-solid fa-eye",ariaLabel:"Megtekintés",callback:P=>{window.open(P.url,"_blank")},disabled:P=>!P.url},{isGroup:!0,config:{class:"c-btn-outline"},label:"",items:[{icon:"fa-solid fa-edit",label:"Szerkesztés",callback:P=>{l.push({name:"edit",params:{id:P.id}})}},...J.value?[{icon:"fa-solid fa-clone",label:"Klónozás",callback:P=>{k.clonePost.payload.value.id=P.id,k.clonePost.successCallback=()=>{const Q=k.clonePost.data.value;Q&&(window.top.location.href=`${n.editorUrl}/edit/${Q}?returnTo=${encodeURIComponent(n.searchUrl)}`)},k.clonePost.execute()},disabled:P=>P.status!==Vt.PUBLISH}]:[],{icon:"fa-solid fa-trash",type:"error",label:"Törlés",callback:P=>Y(P.id),withConfirm:!0,withConfirmConfig:P=>({type:"error",title:"Biztosan törölni szeretné a cikket?",message:`Biztosan törölni szeretné a cikket a következő cikket?<br> <b>"${c(P)}"</b>`,confirmLabel:"Törlés",cancelLabel:"Mégse"}),disabled:P=>P.status!==Vt.DRAFT}]}]},M=F($p(le.value,X)),_=F(fp(X)),V=F({}),O=F(null);k.searchPosts.successCallback=()=>{se.value=k.searchPosts.data.value.total,H.value=k.searchPosts.data.value.posts,_.value.total=k.searchPosts.data.value.total,r.value=!1};const ne=jt(()=>{k.searchPosts.execute()}),Se=jt(()=>{k.searchTags.payload.value.pageSize=10,k.searchTags.execute()},500);k.searchTags.successCallback=()=>{L.value=k.searchTags.data.value.tags.map(P=>({label:P.name,value:P.id})),U.value.tag=!1};const We=jt(()=>{k.searchAuthors.payload.value.pageSize=10,k.searchAuthors.execute()},500);k.searchAuthors.successCallback=()=>{D.value=k.searchAuthors.data.value.authors.map(P=>({label:P.name,value:P.id})),U.value.author=!1};const je=jt(()=>{k.searchColumns.payload.value.pageSize=10,k.searchColumns.execute()},500);k.searchColumns.successCallback=()=>{j.value=k.searchColumns.data.value.columns.map(P=>({label:P.name,value:P.id})),U.value.column=!1};const Ge=jt(()=>{k.searchPartners.payload.value.pageSize=10,k.searchPartners.execute()},500);k.searchPartners.successCallback=()=>{T.value=k.searchPartners.data.value.partners.map(P=>({label:P.name,value:P.id})),U.value.partner=!1};const Ye=jt(()=>{k.searchArticleSeries.execute()},500);k.searchArticleSeries.successCallback=()=>{A.value=k.searchArticleSeries.data.value.articleSeries.map(P=>({label:P.name,value:P.id})),U.value.articleSeries=!1};const pt=jt(()=>{var Q,pe;const P=(Q=M.value)==null?void 0:Q.siteIds;k.searchDigitalSupplements.payload.value.siteIds=P&&P.length>0?P:((pe=o.value)!=null?pe:[]).map($e=>$e.id),k.searchDigitalSupplements.execute()},500);k.searchDigitalSupplements.successCallback=()=>{R.value=k.searchDigitalSupplements.data.value.digitalSupplements.map(P=>({label:P.name,value:P.id})),U.value.digitalSupplement=!1};const st=P=>{const Q=encodeURIComponent(n.searchUrl),pe=`/edit/${P.id}?returnTo=${Q}`,$e=c(P);return`
29
+ <a
30
+ href="${pe}"
31
+ class="title-link"
32
+ title="Szerkesztő megnyitása"
33
+ >${$e}</a>
34
+ `},ie=ee(()=>({items:le.value})),d=F({searchKey:"title",placeholder:"Keresés a címben...",showExactMatch:!0,exactMatchKey:"exactMatch"}),p=()=>{var Q;let P=`${n.editorUrl}/new/${(Q=b.value)==null?void 0:Q.value}`;n.postType&&(P+=`/${n.postType}`),P+=`?returnTo=${encodeURIComponent(n.searchUrl)}`,window.top.location.href=P},m=P=>{const Q=P?Te.value.map($e=>({title:c($e),lead:u($e),id:$e.id,wpId:$e.wpId||0,featuredImage:$e.featuredImage,legacyId:$e.legacyId,releaseTime:$e.publishDateGmt,isPaid:$e.isPaid,siteId:$e.siteId})):[];if(P){if(Q.length<1){alert(`Nem választottál ${n.entityLabel}!`);return}if(!n.multiple&&Q.length>1){alert(`Maximum 1 ${n.entityLabel} választhatsz!`);return}}const pe={result:P,id:n.id,posts:Q};window.dispatchEvent(new CustomEvent("search_posts_selected",{detail:pe})),s("selected",pe),Te.value=[]},$=P=>{k.searchPosts.payload.value.siteIds=P,k.searchColumns.payload.value.siteIds=P,k.searchAuthors.payload.value.siteIds=P,k.searchTags.payload.value.siteIds=P,k.searchPartners.payload.value.siteIds=P,k.searchArticleSeries.payload.value.siteIds=P,k.searchDigitalSupplements.payload.value.siteIds=P},x=P=>{M.value=P,_.value.page=1,ue()},z=P=>{_.value.page=P.page,_.value.pageSize=P.pageSize,ue()},q=P=>{V.value=P,_.value.page=1,ue()},K=P=>{O.value=P,_.value.page=1,ue()},W=ee(()=>{var P,Q;return Ve(de(de({},M.value),V.value),{sortBy:(P=O.value)==null?void 0:P.key,sortDirection:(Q=O.value)==null?void 0:Q.direction,postTypes:[n.postType],pageIndex:_.value.page-1,pageSize:_.value.pageSize})});ft(()=>De(null,null,function*(){var Q;const P=Xg();yield P.initialize(n.apiUrl),o.value=Hv(P.getMixableSitesForResource(n.postType,void 0),n.postType),h.value=o.value.map(pe=>({label:pe.name,value:pe.id,id:pe.id})),ue(),b.value||(b.value=g()),i.sites.execute(),I.value=((yield(Q=Uv())==null?void 0:Q.getUsers())||[]).map(pe=>({label:pe.fullName,value:pe.id.toString(),id:pe.id.toString()})),n.statuses&&(k.searchPosts.payload.value.status=n.statuses[0])}));function Y(P){k.delete.routeParams.value.id=P,k.delete.execute()}const ue=()=>{r.value=!0,k.searchPosts.payload.value=W.value,ne()},oe=[{align:"left",buttons:[{label:"",ariaLabel:"Frissítés",labelAlignmentFix:!0,outline:!0,icon:"fa-solid fa-arrow-rotate-right",callback:()=>window.location.reload()}]}];function ge(P){if(P===null){w(null);return}if(Array.isArray(P)){const Q=P[0];Q&&w(Q);return}w(P)}function we(P){Te.value=P.map(Q=>H.value.find(pe=>pe.id===Q)).filter(Boolean)}const Te=F([]);return(P,Q)=>(y(),S("div",Lv,[e.selector?G("",!0):(y(),me(ae(uf),{key:0,title:"Cikkek",icon:"fa-solid fa-newspaper","show-back-button":!1,toolbars:oe},{right:Ze(()=>{var pe,$e;return[f("div",jv,[ce(ae(jl),{class:"site-selector-dropdown",modelValue:($e=(pe=b.value)==null?void 0:pe.value)!=null?$e:null,config:{placeholder:"Válassz site-ot..."},options:h.value,"onUpdate:modelValue":ge},null,8,["modelValue","options"]),ce(ae(Pe),{label:"Új létrehozása",icon:"fa-solid fa-plus",iconPosition:"right",type:"info",disabled:!b.value,onClick:p},null,8,["disabled"])])]}),_:1})),f("div",Vv,[ce(ae(Wg),{id:X,loading:r.value,config:B,items:H.value,"filter-config":ie.value,"search-config":d.value,pagination:_.value,"fill-height":!0,onFilterChange:x,onPaginationChange:z,onSearchChange:q,onSelectionChange:we,onSortChange:K},{actions:Ze(({item:pe})=>[B.actions?(y(),S("div",Wv,[ce(ae(ql),{actions:B.actions,item:pe},null,8,["actions","item"])])):G("",!0)]),_:1},8,["loading","items","filter-config","search-config","pagination"])]),e.selector?(y(),S("div",qv,[ce(ae(Pe),{label:"Mégsem",outline:"",onClick:Q[0]||(Q[0]=pe=>m(!1))}),ce(ae(Pe),{type:"success",label:"Kész",disabled:Te.value.length===0,onClick:Q[1]||(Q[1]=pe=>m(!0))},null,8,["disabled"])])):G("",!0)]))}}),Yv={class:"widget"},Gv=iu(Ie({__name:"SearchPostsWidget.ce",props:{environment:{type:String},id:{type:String},apiurl:{type:String},searchurl:{type:String},selector:{type:Boolean},statuses:{type:Array},multiple:{type:Boolean},postType:{type:String},editorUrl:{type:String},entityLabel:{type:String}},setup(e){return(t,n)=>{var s;return y(),S("div",Yv,[ce(Kv,{environment:e.environment,id:e.id,apiUrl:e.apiurl,selector:e.selector,searchUrl:e.searchurl,statuses:e.statuses,multiple:e.multiple,"post-type":e.postType,"editor-url":e.editorUrl,"entity-label":(s=e.entityLabel)!=null?s:"cikket"},null,8,["environment","id","apiUrl","selector","searchUrl","statuses","multiple","post-type","editor-url","entity-label"])])}}}),{shadowRoot:!1});customElements.define("search-posts-widget",Gv)}));