vendor: 10,098 bytes, lines 1-9
1(function(){"use strict";/** 2* @vue/shared v3.5.38 3* (c) 2018-present Yuxi (Evan) You and Vue contributors 4* @license MIT 5**/function Jn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const Ae={},fs=[],kt=()=>{},Za=()=>!1,sn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),nn=e=>e.startsWith("onUpdate:"),Fe=Object.assign,Yn=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Hr=Object.prototype.hasOwnProperty,xe=(e,t)=>Hr.call(e,t),ve=Array.isArray,ps=e=>Es(e)==="[object Map]",an=e=>Es(e)==="[object Set]",Ga=e=>Es(e)==="[object Date]",me=e=>typeof e=="function",Te=e=>typeof e=="string",lt=e=>typeof e=="symbol",Ee=e=>e!==null&&typeof e=="object",Ja=e=>(Ee(e)||me(e))&&me(e.then)&&me(e.catch),Ya=Object.prototype.toString,Es=e=>Ya.call(e),Br=e=>Es(e).slice(8,-1),Qa=e=>Es(e)==="[object Object]",on=e=>Te(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,zs=Jn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),rn=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},Kr=/-\w/g,Je=rn(e=>e.replace(Kr,t=>t.slice(1).toUpperCase())),Vr=/\B([A-Z])/g,qt=rn(e=>e.replace(Vr,"-$1").toLowerCase()),ln=rn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qn=rn(e=>e?`on${ln(e)}`:""),wt=(e,t)=>!Object.is(e,t),cn=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},eo=(e,t,s,a=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:s})},un=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Xr=e=>{const t=Te(e)?Number(e):NaN;return isNaN(t)?e:t};let to;const dn=()=>to||(to=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Wt(e){if(ve(e)){const t={};for(let s=0;s<e.length;s++){const a=e[s],n=Te(a)?Yr(a):Wt(a);if(n)for(const o in n)t[o]=n[o]}return t}else if(Te(e)||Ee(e))return e}const Zr=/;(?![^(]*\))/g,Gr=/:([^]+)/,Jr=/\/\*[^]*?\*\//g;function Yr(e){const t={};return e.replace(Jr,"").split(Zr).forEach(s=>{if(s){const a=s.split(Gr);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function ie(e){let t="";if(Te(e))t=e;else if(ve(e))for(let s=0;s<e.length;s++){const a=ie(e[s]);a&&(t+=a+" ")}else if(Ee(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Qr=Jn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function so(e){return!!e||e===""}function el(e,t){if(e.length!==t.length)return!1;let s=!0;for(let a=0;s&&a<e.length;a++)s=Ps(e[a],t[a]);return s}function Ps(e,t){if(e===t)return!0;let s=Ga(e),a=Ga(t);if(s||a)return s&&a?e.getTime()===t.getTime():!1;if(s=lt(e),a=lt(t),s||a)return e===t;if(s=ve(e),a=ve(t),s||a)return s&&a?el(e,t):!1;if(s=Ee(e),a=Ee(t),s||a){if(!s||!a)return!1;const n=Object.keys(e).length,o=Object.keys(t).length;if(n!==o)return!1;for(const i in e){const r=e.hasOwnProperty(i),u=t.hasOwnProperty(i);if(r&&!u||!r&&u||!Ps(e[i],t[i]))return!1}}return String(e)===String(t)}function tl(e,t){return e.findIndex(s=>Ps(s,t))}const no=e=>!!(e&&e.__v_isRef===!0),g=e=>Te(e)?e:e==null?"":ve(e)||Ee(e)&&(e.toString===Ya||!me(e.toString))?no(e)?g(e.value):JSON.stringify(e,ao,2):String(e),ao=(e,t)=>no(t)?ao(e,t.value):ps(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[a,n],o)=>(s[ea(a,o)+" =>"]=n,s),{})}:an(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>ea(s))}:lt(t)?ea(t):Ee(t)&&!ve(t)&&!Qa(t)?String(t):t,ea=(e,t="")=>{var s;return lt(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/** 6* @vue/reactivity v3.5.38 7* (c) 2018-present Yuxi (Evan) You and Vue contributors 8* @license MIT 9**/let qe;class oo{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&qe&&(qe.active?(this.parent=qe,this.index=(qe.scopes||(qe.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=qe;try{return qe=this,t()}finally{qe=s}}}on(){++this._on===1&&(this.prevScope=qe,qe=this)}off(){if(this._on>0&&--this._on===0){if(qe===this)qe=this.prevScope;else{let t=qe;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,a;for(s=0,a=this.effects.length;s<a;s++)this.effects[s].stop();for(this.effects.length=0,s=0,a=this.cleanups.length;s<a;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,a=this.scopes.length;s<a;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.parent=void 0}}}function io(e){return new oo(e)}function ro(){return qe}function sl(e,t=!1){qe&&qe.cleanups.push(e)}let je;const ta=new WeakSet;class lo{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,qe&&(qe.active?qe.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ta.has(this)&&(ta.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||uo(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,mo(this),vo(this);const t=je,s=ht;je=this,ht=!0;try{return this.fn()}finally{fo(this),je=t,ht=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)oa(t);this.deps=this.depsTail=void 0,mo(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ta.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){aa(this)&&this.run()}get dirty(){return aa(this)}}let co=0,As,Ts;function uo(e,t=!1){if(e.flags|=8,t){e.next=Ts,Ts=e;return}e.next=As,As=e}function sa(){co++}function na(){if(--co>0)return;if(Ts){let t=Ts;for(Ts=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;As;){let t=As;for(As=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(a){e||(e=a)}t=s}}if(e)throw e}function vo(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function fo(e){let t,s=e.depsTail,a=s;for(;a;){const n=a.prevDep;a.version===-1?(a===s&&(s=n),oa(a),nl(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=n}e.deps=t,e.depsTail=s}function aa(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(po(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function po(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===js)||(e.globalVersion=js,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!aa(e))))return;e.flags|=2;const t=e.dep,s=je,a=ht;je=e,ht=!0;try{vo(e);const n=e.fn(e._value);(t.version===0||wt(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(n){throw t.version++,n}finally{je=s,ht=a,fo(e),e.flags&=-3}}function oa(e,t=!1){const{dep:s,prevSub:a,nextSub:n}=e;if(a&&(a.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=a,e.nextSub=void 0),s.subs===e&&(s.subs=a,!a&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)oa(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function nl(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let ht=!0;const ho=[];function $t(){ho.push(ht),ht=!1}function St(){const e=ho.pop();ht=e===void 0?!0:e}function mo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=je;je=void 0;try{t()}finally{je=s}}}let js=0;class al{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ia{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(!je||!ht||je===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==je)s=this.activeLink=new al(je,this),je.deps?(s.prevDep=je.depsTail,je.depsTail.nextDep=s,je.depsTail=s):je.deps=je.depsTail=s,_o(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const a=s.nextDep;a.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=a),s.prevDep=je.depsTail,s.nextDep=void 0,je.depsTail.nextDep=s,je.depsTail=s,je.deps===s&&(je.deps=a)}return s}trigger(t){this.version++,js++,this.notify(t)}notify(t){sa();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{na()}}}function _o(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let a=t.deps;a;a=a.nextDep)_o(a)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const vn=new WeakMap,Qt=Symbol(""),ra=Symbol(""),Ls=Symbol("");function Xe(e,t,s){if(ht&&je){let a=vn.get(e);a||vn.set(e,a=new Map);let n=a.get(s);n||(a.set(s,n=new ia),n.map=a,n.key=s),n.track()}}function jt(e,t,s,a,n,o){const i=vn.get(e);if(!i){js++;return}const r=u=>{u&&u.trigger()};if(sa(),t==="clear")i.forEach(r);else{const u=ve(e),f=u&&on(s);if(u&&s==="length"){const c=Number(a);i.forEach((d,h)=>{(h==="length"||h===Ls||!lt(h)&&h>=c)&&r(d)})}else switch((s!==void 0||i.has(void 0))&&r(i.get(s)),f&&r(i.get(Ls)),t){case"add":u?f&&r(i.get("length")):(r(i.get(Qt)),ps(e)&&r(i.get(ra)));break;case"delete":u||(r(i.get(Qt)),ps(e)&&r(i.get(ra)));break;case"set":ps(e)&&r(i.get(Qt));break}}na()}function ol(e,t){const s=vn.get(e);return s&&s.get(t)}function hs(e){const t=be(e);return t===e?t:(Xe(t,"iterate",Ls),nt(e)?t:t.map(mt))}function fn(e){return Xe(e=be(e),"iterate",Ls),e}function Ct(e,t){return It(e)?ms(Mt(e)?mt(t):t):mt(t)}const il={__proto__:null,[Symbol.iterator](){return la(this,Symbol.iterator,e=>Ct(this,e))},concat(...e){return hs(this).concat(...e.map(t=>ve(t)?hs(t):t))}
vendor: 14,063 bytes, lines 9-16
9,entries(){return la(this,"entries",e=>(e[1]=Ct(this,e[1]),e))},every(e,t){return Lt(this,"every",e,t,void 0,arguments)},filter(e,t){return Lt(this,"filter",e,t,s=>s.map(a=>Ct(this,a)),arguments)},find(e,t){return Lt(this,"find",e,t,s=>Ct(this,s),arguments)},findIndex(e,t){return Lt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Lt(this,"findLast",e,t,s=>Ct(this,s),arguments)},findLastIndex(e,t){return Lt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Lt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ca(this,"includes",e)},indexOf(...e){return ca(this,"indexOf",e)},join(e){return hs(this).join(e)},lastIndexOf(...e){return ca(this,"lastIndexOf",e)},map(e,t){return Lt(this,"map",e,t,void 0,arguments)},pop(){return Ms(this,"pop")},push(...e){return Ms(this,"push",e)},reduce(e,...t){return go(this,"reduce",e,t)},reduceRight(e,...t){return go(this,"reduceRight",e,t)},shift(){return Ms(this,"shift")},some(e,t){return Lt(this,"some",e,t,void 0,arguments)},splice(...e){return Ms(this,"splice",e)},toReversed(){return hs(this).toReversed()},toSorted(e){return hs(this).toSorted(e)},toSpliced(...e){return hs(this).toSpliced(...e)},unshift(...e){return Ms(this,"unshift",e)},values(){return la(this,"values",e=>Ct(this,e))}};function la(e,t,s){const a=fn(e),n=a[t]();return a!==e&&!nt(e)&&(n._next=n.next,n.next=()=>{const o=n._next();return o.done||(o.value=s(o.value)),o}),n}const rl=Array.prototype;function Lt(e,t,s,a,n,o){const i=fn(e),r=i!==e&&!nt(e),u=i[t];if(u!==rl[t]){const d=u.apply(e,o);return r?mt(d):d}let f=s;i!==e&&(r?f=function(d,h){return s.call(this,Ct(e,d),h,e)}:s.length>2&&(f=function(d,h){return s.call(this,d,h,e)}));const c=u.call(i,f,a);return r&&n?n(c):c}function go(e,t,s,a){const n=fn(e),o=n!==e&&!nt(e);let i=s,r=!1;n!==e&&(o?(r=a.length===0,i=function(f,c,d){return r&&(r=!1,f=Ct(e,f)),s.call(this,f,Ct(e,c),d,e)}):s.length>3&&(i=function(f,c,d){return s.call(this,f,c,d,e)}));const u=n[t](i,...a);return r?Ct(e,u):u}function ca(e,t,s){const a=be(e);Xe(a,"iterate",Ls);const n=a[t](...s);return(n===-1||n===!1)&&gn(s[0])?(s[0]=be(s[0]),a[t](...s)):n}function Ms(e,t,s=[]){$t(),sa();const a=be(e)[t].apply(e,s);return na(),St(),a}const ll=Jn("__proto__,__v_isRef,__isVue"),yo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(lt));function cl(e){lt(e)||(e=String(e));const t=be(this);return Xe(t,"has",e),t.hasOwnProperty(e)}class bo{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,a){if(s==="__v_skip")return t.__v_skip;const n=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!n;if(s==="__v_isReadonly")return n;if(s==="__v_isShallow")return o;if(s==="__v_raw")return a===(n?o?xo:Co:o?So:$o).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(a)?t:void 0;const i=ve(t);if(!n){let u;if(i&&(u=il[s]))return u;if(s==="hasOwnProperty")return cl}const r=Reflect.get(t,s,Le(t)?t:a);if((lt(s)?yo.has(s):ll(s))||(n||Xe(t,"get",s),o))return r;if(Le(r)){const u=i&&on(s)?r:r.value;return n&&Ee(u)?da(u):u}return Ee(r)?n?da(r):Ht(r):r}}class ko extends bo{constructor(t=!1){super(!1,t)}set(t,s,a,n){let o=t[s];const i=ve(t)&&on(s);if(!this._isShallow){const f=It(o);if(!nt(a)&&!It(a)&&(o=be(o),a=be(a)),!i&&Le(o)&&!Le(a))return f||(o.value=a),!0}const r=i?Number(s)<t.length:xe(t,s),u=Reflect.set(t,s,a,Le(t)?t:n);return t===be(n)&&(r?wt(a,o)&&jt(t,"set",s,a):jt(t,"add",s,a)),u}deleteProperty(t,s){const a=xe(t,s);t[s];const n=Reflect.deleteProperty(t,s);return n&&a&&jt(t,"delete",s,void 0),n}has(t,s){const a=Reflect.has(t,s);return(!lt(s)||!yo.has(s))&&Xe(t,"has",s),a}ownKeys(t){return Xe(t,"iterate",ve(t)?"length":Qt),Reflect.ownKeys(t)}}class wo extends bo{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const ul=new ko,dl=new wo,vl=new ko(!0),fl=new wo(!0),ua=e=>e,pn=e=>Reflect.getPrototypeOf(e);function pl(e,t,s){return function(...a){const n=this.__v_raw,o=be(n),i=ps(o),r=e==="entries"||e===Symbol.iterator&&i,u=e==="keys"&&i,f=n[e](...a),c=s?ua:t?ms:mt;return!t&&Xe(o,"iterate",u?ra:Qt),Fe(Object.create(f),{next(){const{value:d,done:h}=f.next();return h?{value:d,done:h}:{value:r?[c(d[0]),c(d[1])]:c(d),done:h}}})}}function hn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function hl(e,t){const s={get(n){const o=this.__v_raw,i=be(o),r=be(n);e||(wt(n,r)&&Xe(i,"get",n),Xe(i,"get",r));const{has:u}=pn(i),f=t?ua:e?ms:mt;if(u.call(i,n))return f(o.get(n));if(u.call(i,r))return f(o.get(r));o!==i&&o.get(n)},get size(){const n=this.__v_raw;return!e&&Xe(be(n),"iterate",Qt),n.size},has(n){const o=this.__v_raw,i=be(o),r=be(n);return e||(wt(n,r)&&Xe(i,"has",n),Xe(i,"has",r)),n===r?o.has(n):o.has(n)||o.has(r)},forEach(n,o){const i=this,r=i.__v_raw,u=be(r),f=t?ua:e?ms:mt;return!e&&Xe(u,"iterate",Qt),r.forEach((c,d)=>n.call(o,f(c),f(d),i))}};return Fe(s,e?{add:hn("add"),set:hn("set"),delete:hn("delete"),clear:hn("clear")}:{add(n){const o=be(this),i=pn(o),r=be(n),u=!t&&!nt(n)&&!It(n)?r:n;return i.has.call(o,u)||wt(n,u)&&i.has.call(o,n)||wt(r,u)&&i.has.call(o,r)||(o.add(u),jt(o,"add",u,u)),this},set(n,o){!t&&!nt(o)&&!It(o)&&(o=be(o));const i=be(this),{has:r,get:u}=pn(i);let f=r.call(i,n);f||(n=be(n),f=r.call(i,n));const c=u.call(i,n);return i.set(n,o),f?wt(o,c)&&jt(i,"set",n,o):jt(i,"add",n,o),this},delete(n){const o=be(this),{has:i,get:r}=pn(o);let u=i.call(o,n);u||(n=be(n),u=i.call(o,n)),r&&r.call(o,n);const f=o.delete(n);return u&&jt(o,"delete",n,void 0),f},clear(){const n=be(this),o=n.size!==0,i=n.clear();return o&&jt(n,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(n=>{s[n]=pl(n,e,t)}),s}function mn(e,t){const s=hl(e,t);return(a,n,o)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?a:Reflect.get(xe(s,n)&&n in a?s:a,n,o)}const ml={get:mn(!1,!1)},_l={get:mn(!1,!0)},gl={get:mn(!0,!1)},yl={get:mn(!0,!0)},$o=new WeakMap,So=new WeakMap,Co=new WeakMap,xo=new WeakMap;function bl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ht(e){return It(e)?e:_n(e,!1,ul,ml,$o)}function kl(e){return _n(e,!1,vl,_l,So)}function da(e){return _n(e,!0,dl,gl,Co)}function qb(e){return _n(e,!0,fl,yl,xo)}function _n(e,t,s,a,n){if(!Ee(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=n.get(e);if(o)return o;const i=bl(Br(e));if(i===0)return e;const r=new Proxy(e,i===2?a:s);return n.set(e,r),r}function Mt(e){return It(e)?Mt(e.__v_raw):!!(e&&e.__v_isReactive)}function It(e){return!!(e&&e.__v_isReadonly)}function nt(e){return!!(e&&e.__v_isShallow)}function gn(e){return e?!!e.__v_raw:!1}function be(e){const t=e&&e.__v_raw;return t?be(t):e}function va(e){return!xe(e,"__v_skip")&&Object.isExtensible(e)&&eo(e,"__v_skip",!0),e}const mt=e=>Ee(e)?Ht(e):e,ms=e=>Ee(e)?da(e):e;function Le(e){return e?e.__v_isRef===!0:!1}function K(e){return wl(e,!1)}function wl(e,t){return Le(e)?e:new $l(e,t)}class $l{constructor(t,s){this.dep=new ia,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:be(t),this._value=s?t:mt(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,a=this.__v_isShallow||nt(t)||It(t);t=a?t:be(t),wt(t,s)&&(this._rawValue=t,this._value=a?t:mt(t),this.dep.trigger())}}function G(e){return Le(e)?e.value:e}const Sl={get:(e,t,s)=>t==="__v_raw"?e:G(Reflect.get(e,t,s)),set:(e,t,s,a)=>{const n=e[t];return Le(n)&&!Le(s)?(n.value=s,!0):Reflect.set(e,t,s,a)}};function Eo(e){return Mt(e)?e:new Proxy(e,Sl)}function Cl(e){const t=ve(e)?new Array(e.length):{};for(const s in e)t[s]=El(e,s);return t}class xl{constructor(t,s,a){this._object=t,this._defaultValue=a,this.__v_isRef=!0,this._value=void 0,this._key=lt(s)?s:String(s),this._raw=be(t);let n=!0,o=t;if(!ve(t)||lt(this._key)||!on(this._key))do n=!gn(o)||nt(o);while(n&&(o=o.__v_raw));this._shallow=n}get value(){let t=this._object[this._key];return this._shallow&&(t=G(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Le(this._raw[this._key])){const s=this._object[this._key];if(Le(s)){s.value=t;return}}this._object[this._key]=t}get dep(){return ol(this._raw,this._key)}}function El(e,t,s){return new xl(e,t,s)}class zl{constructor(t,s,a){this.fn=t,this.setter=s,this._value=void 0,this.dep=new ia(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=js-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=a}notify(){if(this.flags|=16,!(this.flags&8)&&je!==this)return uo(this,!0),!0}get value(){const t=this.dep.track();return po(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Pl(e,t,s=!1){let a,n;return me(e)?a=e:(a=e.get,n=e.set),new zl(a,n,s)}const yn={},bn=new WeakMap;let es;function Al(e,t=!1,s=es){if(s){let a=bn.get(s);a||bn.set(s,a=[]),a.push(e)}}function Tl(e,t,s=Ae){const{immediate:a,deep:n,once:o,scheduler:i,augmentJob:r,call:u}=s,f=M=>n?M:nt(M)||n===!1||n===0?Ot(M,1):Ot(M);let c,d,h,m,$=!1,y=!1;if(Le(e)?(d=()=>e.value,$=nt(e)):Mt(e)?(d=()=>f(e),$=!0):ve(e)?(y=!0,$=e.some(M=>Mt(M)||nt(M)),d=()=>e.map(M=>{if(Le(M))return M.value;if(Mt(M))return f(M);if(me(M))return u?u(M,2):M()})):me(e)?t?d=u?()=>u(e,2):e:d=()=>{if(h){$t();try{h()}finally{St()}}const M=es;es=c;try{return u?u(e,3,[m]):e(m)}finally{es=M}}:d=kt,t&&n){const M=d,F=n===!0?1/0:n;d=()=>Ot(M(),F)}const E=ro(),L=()=>{c.stop(),E&&E.active&&Yn(E.effects,c)};if(o&&t){const M=t;t=(...F)=>{const de=M(...F);return L(),de}}let w=y?new Array(e.length).fill(yn):yn;const T=M=>{if(!(!(c.flags&1)||!c.dirty&&!M))if(t){const F=c.run();if(M||n||$||(y?F.some((de,te)=>wt(de,w[te])):wt(F,w))){h&&h();const de=es;es=c;try{const te=[F,w===yn?void 0:y&&w[0]===yn?[]:w,m];w=F,u?u(t,3,te):t(...te)}finally{es=de}}}else c.run()};return r&&r(T),c=new lo(d),c.scheduler=i?()=>i(T,!1):T,m=M=>Al(M,!1,c),h=c.onStop=()=>{const M=bn.get(c);if(M){if(u)u(M,4);else for(const F of M)F();bn.delete(c)}},t?a?T(!0):w=c.run():i?i(T.bind(null,!0),!0):c.run(),L.pause=c.pause.bind(c),L.resume=c.resume.bind(c),L.stop=L,L}function Ot(e,t=1/0,s){if(t<=0||!Ee(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,Le(e))Ot(e.value,t,s);else if(ve(e))for(let a=0;a<e.length;a++)Ot(e[a],t,s);else if(an(e)||ps(e))e.forEach(a=>{Ot(a,t,s)});else if(Qa(e)){for(const a in e)Ot(e[a],t,s);for(const a of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,a)&&Ot(e[a],t,s)}return e}/** 10* @vue/runtime-core v3.5.38 11* (c) 2018-present Yuxi (Evan) You and Vue contributors 12* @license MIT 13**/const Is=[];let fa=!1;function Wb(e,...t){if(fa)return;fa=!0,$t();const s=Is.length?Is[Is.length-1].component:null,a=s&&s.appContext.config.warnHandler,n=jl();if(a)_s(a,s,11,[e+t.map(o=>{var i,r;return(r=(i=o.toString)==null?void 0:i.call(o))!=null?r:JSON.stringify(o)}).join(""),s&&s.proxy,n.map(({vnode:o})=>`at <${Ti(s,o.type)}>`).join(` 14`),n]);else{const o=[`[Vue warn]: ${e}`,...t];n.length&&o.push(` 15`,...Ll(n)),console.warn(...o)}St(),fa=!1}function jl(){let e=Is[Is.length-1];if(!e)return[];const t=[];for(;e;){const s=t[0];s&&s.vnode===e?s.recurseCount++:t.push({vnode:e,recurseCount:0});const a=e.component&&e.component.parent;e=a&&a.vnode}return t}function Ll(e){const t=[];return e.forEach((s,a)=>{t.push(...a===0?[]:[` 16`],...Ml(s))}),t}function Ml({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",a=e.component?e.component.parent==null:!1,n=` at <${Ti(e.component,e.type,a)}`,o=">"+s;return e.props?[n,...Il(e.props),o]:[n+o]}function Il(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(a=>{t.push(...zo(a,e[a]))}),s.length>3&&t.push(" ..."),t}function zo(e,t,s){return Te(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:Le(t)?(t=zo(e,be(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):me(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=be(t),s?t:[`${e}=`,t])}function _s(e,t,s,a){try{return a?e(...a):e()}catch(n){kn(n,t,s)}}function ct(e,t,s,a){if(me(e)){const n=_s(e,t,s,a);return n&&Ja(n)&&n.catch(o=>{kn(o,t,s)}),n}if(ve(e)){const n=[];for(let o=0;o<e.length;o++)n.push(ct(e[o],t,s,a));return n}}function kn(e,t,s,a=!0){const n=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Ae;if(t){let r=t.parent;const u=t.proxy,f=`https://vuejs.org/error-reference/#runtime-${s}`;for(;r;){const c=r.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,u,f)===!1)return}r=r.parent}if(o){$t(),_s(o,null,10,[e,u,f]),St();return}}Ol(e,s,n,a,i)}function Ol(e,t,s,a=!0,n=!1){if(n)throw e;console.error(e)}const Ye=[];let xt=-1;const gs=[];let Bt=null,ys=0;const Po=Promise.resolve();let wn=null;function ts(e){const t=wn||Po;return e?t.then(this?e.bind(this):e):t}function Nl(e){let t=xt+1,s=Ye.length;for(;t<s;){const a=t+s>>>1,n=Ye[a],o=Os(n);o<e||o===e&&n.flags&2?t=a+1:s=a}return t}function pa(e){if(!(e.flags&1)){const t=Os(e),s=Ye[Ye.length-1];!s||!(e.flags&2)&&t>=Os(s)?Ye.push(e):Ye.splice(Nl(t),0,e),e.flags|=1,Ao()}}function Ao(){wn||(wn=Po.then(Lo))}function Dl(e){ve(e)?gs.push(...e):Bt&&e.id===-1?Bt.splice(ys+1,0,e):e.flags&1||(gs.push(e),e.flags|=1),Ao()}function To(e,t,s=xt+1){for(;s<Ye.length;s++){const a=Ye[s];if(a&&a.flags&2){if(e&&a.id!==e.uid)continue;Ye.splice(s,1),s--,a.flags&4&&(a.flags&=-2),a(),a.flags&4||(a.flags&=-2)}}}function jo(e){if(gs.length){const t=[...new Set(gs)].sort((s,a)=>Os(s)-Os(a));if(gs.length=0,Bt){Bt.push(...t);return}for(Bt=t,ys=0;ys<Bt.length;ys++){const s=Bt[ys];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Bt=null,ys=0}}const Os=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Lo(e){try{for(xt=0;xt<Ye.length;xt++){const t=Ye[xt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),_s(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;xt<Ye.length;xt++){const t=Ye[xt];t&&(t.flags&=-2)}xt=-1,Ye.length=0,jo(),wn=null,(Ye.length||gs.length)&&Lo()}}let at=null,Mo=null;function $n(e){const t=at;return at=e,Mo=e&&e.type.__scopeId||null,t}
vendor: 1,907 bytes, line 16
16function We(e,t=at,s){if(!t||e._n)return e;const a=(...n)=>{a._d&&jn(-1);const o=$n(t);let i;try{i=e(...n)}finally{$n(o),a._d&&jn(1)}return i};return a._n=!0,a._c=!0,a._d=!0,a}function _t(e,t){if(at===null)return e;const s=Nn(at),a=e.dirs||(e.dirs=[]);for(let n=0;n<t.length;n++){let[o,i,r,u=Ae]=t[n];o&&(me(o)&&(o={mounted:o,updated:o}),o.deep&&Ot(i),a.push({dir:o,instance:s,value:i,oldValue:void 0,arg:r,modifiers:u}))}return e}function ss(e,t,s,a){const n=e.dirs,o=t&&t.dirs;for(let i=0;i<n.length;i++){const r=n[i];o&&(r.oldValue=o[i].value);let u=r.dir[a];u&&($t(),ct(u,s,8,[e.el,r,e,t]),St())}}function Rl(e,t){if(Ze){let s=Ze.provides;const a=Ze.parent&&Ze.parent.provides;a===s&&(s=Ze.provides=Object.create(a)),s[e]=t}}function Ns(e,t,s=!1){const a=In();if(a||os){let n=os?os._context.provides:a?a.parent==null||a.ce?a.vnode.appContext&&a.vnode.appContext.provides:a.parent.provides:void 0;if(n&&e in n)return n[e];if(arguments.length>1)return s&&me(t)?t.call(a&&a.proxy):t}}function Fl(){return!!(In()||os)}const Ul=Symbol.for("v-scx"),ql=()=>Ns(Ul);function Ue(e,t,s){return Io(e,t,s)}function Io(e,t,s=Ae){const{immediate:a,deep:n,flush:o,once:i}=s,r=Fe({},s),u=t&&a||!t&&o!=="post";let f;if(Xs){if(o==="sync"){const m=ql();f=m.__watcherHandles||(m.__watcherHandles=[])}else if(!u){const m=()=>{};return m.stop=kt,m.resume=kt,m.pause=kt,m}}const c=Ze;r.call=(m,$,y)=>ct(m,c,$,y);let d=!1;o==="post"?r.scheduler=m=>{et(m,c&&c.suspense)}:o!=="sync"&&(d=!0,r.scheduler=(m,$)=>{$?m():pa(m)}),r.augmentJob=m=>{t&&(m.flags|=4),d&&(m.flags|=2,c&&(m.id=c.uid,m.i=c))};const h=Tl(e,t,r);return Xs&&(f?f.push(h):u&&h()),h}function Wl(e,t,s){const a=this.proxy,n=Te(e)?e.includes(".")?Oo(a,e):()=>a[e]:e.bind(a,a);let o;me(t)?o=t:(o=t.handler,s=t);const i=Vs(this),r=Io(n,o.bind(a),s);return i(),r}function Oo(e,t){const s=t.split(".");return()=>{let a=e;for(let n=0;n<s.length&&a;n++)a=a[s[n]];return a}}
16const Kt=new WeakMap,No=Symbol("_vte"),Do=e=>e.__isTeleport,ns=e=>e&&(e.disabled||e.disabled===""),Hl=e=>e&&(e.defer||e.defer===""),Ro=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Fo=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ha=(e,t)=>{const s=e&&e.to;return Te(s)?t?t(s):null:s},Bl={name:"Teleport",__isTeleport:!0,process(e,t,s,a,n,o,i,r,u,f){const{mc:c,pc:d,pbc:h,o:{insert:m,querySelector:$,createText:y,createComment:E,parentNode:L}}=f,w=ns(t.props);let{dynamicChildren:T}=t;const M=(te,R,b)=>{te.shapeFlag&16&&c(te.children,R,b,n,o,i,r,u)},F=(te=t)=>{const R=ns(te.props),b=te.target=ha(te.props,$),S=ma(b,te,y,m);b&&(i!=="svg"&&Ro(b)?i="svg":i!=="mathml"&&Fo(b)&&(i="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(b),R||(M(te,b,S),Ds(te,!1)))},de=te=>{const R=()=>{if(Kt.get(te)===R){if(Kt.delete(te),ns(te.props)){const b=L(te.el)||s;M(te,b,te.anchor),Ds(te,!0)}F(te)}};Kt.set(te,R),et(R,o)};if(e==null){const te=t.el=y(""),R=t.anchor=y("");if(m(te,s,a),m(R,s,a),Hl(t.props)||o&&o.pendingBranch){de(t);return}w&&(M(t,s,R),Ds(t,!0)),F()}else{t.el=e.el;const te=t.anchor=e.anchor,R=Kt.get(e);if(R){R.flags|=8,Kt.delete(e),de(t);return}t.targetStart=e.targetStart;const b=t.target=e.target,S=t.targetAnchor=e.targetAnchor,z=ns(e.props),P=z?s:b,Q=z?te:S;if(i==="svg"||Ro(b)?i="svg":(i==="mathml"||Fo(b))&&(i="mathml"),T?(h(e.dynamicChildren,T,P,n,o,i,r),za(e,t,!0)):u||d(e,t,P,Q,n,o,i,r,!1),w)z?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Sn(t,s,te,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ge=t.target=ha(t.props,$);ge&&Sn(t,ge,null,f,0)}else z&&Sn(t,b,S,f,1);Ds(t,w)}},remove(e,t,s,{um:a,o:{remove:n}},o){const{shapeFlag:i,children:r,anchor:u,targetStart:f,targetAnchor:c,target:d,props:h}=e,m=o||!ns(h),$=Kt.get(e);if($&&($.flags|=8,Kt.delete(e)),d&&(n(f),n(c)),o&&n(u),!$&&i&16)for(let y=0;y<r.length;y++){const E=r[y];a(E,t,s,m,!!E.dynamicChildren)}},move:Sn,hydrate:Kl};function Sn(e,t,s,{o:{insert:a},m:n},o=2){o===0&&a(e.targetAnchor,t,s);const{el:i,anchor:r,shapeFlag:u,children:f,props:c}=e,d=o===2;if(d&&a(i,t,s),!Kt.has(e)&&(!d||ns(c))&&u&16)for(let h=0;h<f.length;h++)n(f[h],t,s,2);d&&a(r,t,s)}function Kl(e,t,s,a,n,o,{o:{nextSibling:i,parentNode:r,querySelector:u,insert:f,createText:c}},d){function h(E,L){let w=L;for(;w;){if(w&&w.nodeType===8){if(w.data==="teleport start anchor")t.targetStart=w;else if(w.data==="teleport anchor"){t.targetAnchor=w,E._lpa=t.targetAnchor&&i(t.targetAnchor);break}}w=i(w)}}function m(E,L){L.anchor=d(i(E),L,r(E),s,a,n,o)}const $=t.target=ha(t.props,u),y=ns(t.props);if($){const E=$._lpa||$.firstChild;t.shapeFlag&16&&(y?(m(e,t),h($,E),t.targetAnchor||ma($,t,c,f,r(e)===$?e:null)):(t.anchor=i(e),h($,E),t.targetAnchor||ma($,t,c,f),d(E&&i(E),t,$,s,a,n,o))),Ds(t,y)}else y&&t.shapeFlag&16&&(m(e,t),t.targetStart=e,t.targetAnchor=i(e));return t.anchor&&i(t.anchor)}const gt=Bl;function Ds(e,t){const s=e.ctx;if(s&&s.ut){let a,n;for(t?(a=e.el,n=e.anchor):(a=e.targetStart,n=e.targetAnchor);a&&a!==n;)a.nodeType===1&&a.setAttribute("data-v-owner",s.uid),a=a.nextSibling;s.ut()}}function ma(e,t,s,a,n=null){const o=t.targetStart=s(""),i=t.targetAnchor=s("");return o[No]=i,e&&(a(o,e,n),a(i,e,n)),i}const ut=Symbol("_leaveCb"),Rs=Symbol("_enterCb");function Uo(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Oe(()=>{e.isMounted=!0}),vt(()=>{e.isUnmounting=!0}),e}const dt=[Function,Array],qo={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:dt,onEnter:dt,onAfterEnter:dt,onEnterCancelled:dt,onBeforeLeave:dt,onLeave:dt,onAfterLeave:dt,onLeaveCancelled:dt,onBeforeAppear:dt,onAppear:dt,onAfterAppear:dt,onAppearCancelled:dt},Wo=e=>{const t=e.subTree;return t.component?Wo(t.component):t},Vl={name:"BaseTransition",props:qo,setup(e,{slots:t}){const s=In(),a=Uo();return()=>{const n=t.default&&ga(t.default(),!0),o=n&&n.length?Ho(n):s.subTree?C():void 0;if(!o)return;const i=be(e),{mode:r}=i;if(a.isLeaving)return _a(o);const u=Ko(o);if(!u)return _a(o);let f=Fs(u,i,a,s,d=>f=d);u.type!==tt&&as(u,f);let c=s.subTree&&Ko(s.subTree);if(c&&c.type!==tt&&!rs(c,u)&&Wo(s).type!==tt){let d=Fs(c,i,a,s);if(as(c,d),r==="out-in"&&u.type!==tt)return a.isLeaving=!0,d.afterLeave=()=>{a.isLeaving=!1,s.job.flags&8||s.update(),delete d.afterLeave,c=void 0},_a(o);r==="in-out"&&u.type!==tt?d.delayLeave=(h,m,$)=>{const y=Bo(a,c);y[String(c.key)]=c,h[ut]=()=>{m(),h[ut]=void 0,delete f.delayedLeave,c=void 0},f.delayedLeave=()=>{$(),delete f.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return o}}};function Ho(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==tt){t=s;break}}return t}const Xl=Vl;
16function Bo(e,t){const{leavingVNodes:s}=e;let a=s.get(t.type);return a||(a=Object.create(null),s.set(t.type,a)),a}function Fs(e,t,s,a,n){const{appear:o,mode:i,persisted:r=!1,onBeforeEnter:u,onEnter:f,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:h,onLeave:m,onAfterLeave:$,onLeaveCancelled:y,onBeforeAppear:E,onAppear:L,onAfterAppear:w,onAppearCancelled:T}=t,M=String(e.key),F=Bo(s,e),de=(b,S)=>{b&&ct(b,a,9,S)},te=(b,S)=>{const z=S[1];de(b,S),ve(b)?b.every(P=>P.length<=1)&&z():b.length<=1&&z()},R={mode:i,persisted:r,beforeEnter(b){let S=u;if(!s.isMounted)if(o)S=E||u;else return;b[ut]&&b[ut](!0);const z=F[M];z&&rs(e,z)&&z.el[ut]&&z.el[ut](),de(S,[b])},enter(b){if(F[M]===e)return;let S=f,z=c,P=d;if(!s.isMounted)if(o)S=L||f,z=w||c,P=T||d;else return;let Q=!1;b[Rs]=we=>{Q||(Q=!0,we?de(P,[b]):de(z,[b]),R.delayedLeave&&R.delayedLeave(),b[Rs]=void 0)};const ge=b[Rs].bind(null,!1);S?te(S,[b,ge]):ge()},leave(b,S){const z=String(e.key);if(b[Rs]&&b[Rs](!0),s.isUnmounting)return S();de(h,[b]);let P=!1;b[ut]=ge=>{P||(P=!0,S(),ge?de(y,[b]):de($,[b]),b[ut]=void 0,F[z]===e&&delete F[z])};const Q=b[ut].bind(null,!1);F[z]=e,m?te(m,[b,Q]):Q()},clone(b){const S=Fs(b,t,s,a,n);return n&&n(S),S}};return R}function _a(e){if(xn(e))return e=Vt(e),e.children=null,e}function Ko(e){if(!xn(e))return Do(e.type)&&e.children?Ho(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&me(s.default))return s.default()}}function as(e,t){e.shapeFlag&6&&e.component?(e.transition=t,as(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 ga(e,t=!1,s){let a=[],n=0;for(let o=0;o<e.length;o++){let i=e[o];const r=s==null?i.key:String(s)+String(i.key!=null?i.key:o);i.type===Z?(i.patchFlag&128&&n++,a=a.concat(ga(i.children,t,r))):(t||i.type!==tt)&&a.push(r!=null?Vt(i,{key:r}):i)}if(n>1)for(let o=0;o<a.length;o++)a[o].patchFlag=-2;return a}function ze(e,t){return me(e)?Fe({name:e.name},t,{setup:e}):e}function Vo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Xo(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const Cn=new WeakMap;function Us(e,t,s,a,n=!1){if(ve(e)){e.forEach((y,E)=>Us(y,t&&(ve(t)?t[E]:t),s,a,n));return}if(qs(a)&&!n){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&Us(e,t,s,a.component.subTree);return}const o=a.shapeFlag&4?Nn(a.component):a.el,i=n?null:o,{i:r,r:u}=e,f=t&&t.r,c=r.refs===Ae?r.refs={}:r.refs,d=r.setupState,h=be(d),m=d===Ae?Za:y=>Xo(c,y)?!1:xe(h,y),$=(y,E)=>!(E&&Xo(c,E));if(f!=null&&f!==u){if(Zo(t),Te(f))c[f]=null,m(f)&&(d[f]=null);else if(Le(f)){const y=t;$(f,y.k)&&(f.value=null),y.k&&(c[y.k]=null)}}if(me(u))_s(u,r,12,[i,c]);else{const y=Te(u),E=Le(u);if(y||E){const L=()=>
vendor: 4,304 bytes, line 16
16{if(e.f){const w=y?m(u)?d[u]:c[u]:$()||!e.k?u.value:c[e.k];if(n)ve(w)&&Yn(w,o);else if(ve(w))w.includes(o)||w.push(o);else if(y)c[u]=[o],m(u)&&(d[u]=c[u]);else{const T=[o];$(u,e.k)&&(u.value=T),e.k&&(c[e.k]=T)}}else y?(c[u]=i,m(u)&&(d[u]=i)):E&&($(u,e.k)&&(u.value=i),e.k&&(c[e.k]=i))};if(i){const w=()=>{L(),Cn.delete(e)};w.id=-1,Cn.set(e,w),et(w,s)}else Zo(e),L()}}}function Zo(e){const t=Cn.get(e);t&&(t.flags|=8,Cn.delete(e))}dn().requestIdleCallback,dn().cancelIdleCallback;const qs=e=>!!e.type.__asyncLoader,xn=e=>e.type.__isKeepAlive;function Zl(e,t){Go(e,"a",t)}function Gl(e,t){Go(e,"da",t)}function Go(e,t,s=Ze){const a=e.__wdc||(e.__wdc=()=>{let n=s;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(En(t,a,s),s){let n=s.parent;for(;n&&n.parent;)xn(n.parent.vnode)&&Jl(a,t,s,n),n=n.parent}}function Jl(e,t,s,a){const n=En(t,e,a,!0);ya(()=>{Yn(a[t],n)},s)}function En(e,t,s=Ze,a=!1){if(s){const n=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...i)=>{$t();const r=Vs(s),u=ct(t,s,e,i);return r(),St(),u});return a?n.unshift(o):n.push(o),o}}const Nt=e=>(t,s=Ze)=>{(!Xs||e==="sp")&&En(e,(...a)=>t(...a),s)},Yl=Nt("bm"),Oe=Nt("m"),Ql=Nt("bu"),Jo=Nt("u"),vt=Nt("bum"),ya=Nt("um"),ec=Nt("sp"),tc=Nt("rtg"),sc=Nt("rtc");function nc(e,t=Ze){En("ec",e,t)}const ac="components",Yo=Symbol.for("v-ndc");function oc(e){return Te(e)?ic(ac,e,!1)||e:e||Yo}function ic(e,t,s=!0,a=!1){const n=at||Ze;if(n){const o=n.type;{const r=Ai(o,!1);if(r&&(r===t||r===Je(t)||r===ln(Je(t))))return o}const i=Qo(n[e]||o[e],t)||Qo(n.appContext[e],t);return!i&&a?o:i}}function Qo(e,t){return e&&(e[t]||e[Je(t)]||e[ln(Je(t))])}function fe(e,t,s,a){let n;const o=s,i=ve(e);if(i||Te(e)){const r=i&&Mt(e);let u=!1,f=!1;r&&(u=!nt(e),f=It(e),e=fn(e)),n=new Array(e.length);for(let c=0,d=e.length;c<d;c++)n[c]=t(u?f?ms(mt(e[c])):mt(e[c]):e[c],c,void 0,o)}else if(typeof e=="number"){n=new Array(e);for(let r=0;r<e;r++)n[r]=t(r+1,r,void 0,o)}else if(Ee(e))if(e[Symbol.iterator])n=Array.from(e,(r,u)=>t(r,u,void 0,o));else{const r=Object.keys(e);n=new Array(r.length);for(let u=0,f=r.length;u<f;u++){const c=r[u];n[u]=t(e[c],c,u,o)}}else n=[];return n}const ba=e=>e?Ei(e)?Nn(e):ba(e.parent):null,Ws=Fe(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=>ba(e.parent),$root:e=>ba(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ni(e),$forceUpdate:e=>e.f||(e.f=()=>{pa(e.update)}),$nextTick:e=>e.n||(e.n=ts.bind(e.proxy)),$watch:e=>Wl.bind(e)}),ka=(e,t)=>e!==Ae&&!e.__isScriptSetup&&xe(e,t),rc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:a,data:n,props:o,accessCache:i,type:r,appContext:u}=e;if(t[0]!=="$"){const h=i[t];if(h!==void 0)switch(h){case 1:return a[t];case 2:return n[t];case 4:return s[t];case 3:return o[t]}else{if(ka(a,t))return i[t]=1,a[t];if(n!==Ae&&xe(n,t))return i[t]=2,n[t];if(xe(o,t))return i[t]=3,o[t];if(s!==Ae&&xe(s,t))return i[t]=4,s[t];wa&&(i[t]=0)}}const f=Ws[t];let c,d;if(f)return t==="$attrs"&&Xe(e.attrs,"get",""),f(e);if((c=r.__cssModules)&&(c=c[t]))return c;if(s!==Ae&&xe(s,t))return i[t]=4,s[t];if(d=u.config.globalProperties,xe(d,t))return d[t]},set({_:e},t,s){const{data:a,setupState:n,ctx:o}=e;return ka(n,t)?(n[t]=s,!0):a!==Ae&&xe(a,t)?(a[t]=s,!0):xe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:a,appContext:n,props:o,type:i}},r){let u;return!!(s[r]||e!==Ae&&r[0]!=="$"&&xe(e,r)||ka(t,r)||xe(o,r)||xe(a,r)||xe(Ws,r)||xe(n.config.globalProperties,r)||(u=i.__cssModules)&&u[r])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:xe(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function ei(e){return ve(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let wa=!0;function lc(e){const t=ni(e),s=e.proxy,a=e.ctx;wa=!1,t.beforeCreate&&ti(t.beforeCreate,e,"bc");const{data:n,computed:o,methods:i,watch:r,provide:u,inject:f,created:c,beforeMount:d,mounted:h,beforeUpdate:m,updated:$,activated:y,deactivated:E,beforeDestroy:L,beforeUnmount:w,destroyed:T,unmounted:M,render:F,renderTracked:de,renderTriggered:te,errorCaptured:R,serverPrefetch:b,expose:S,inheritAttrs:z,components:P,directives:Q,filters:ge}=t;if(f&&cc(f,a,null),i)for(const A in i){const O=i[A];me(O)&&(a[A]=O.bind(s))}if(n){const A=n.call(s,s);
vendor: 4,185 bytes, line 16
16Ee(A)&&(e.data=Ht(A))}if(wa=!0,o)for(const A in o){const O=o[A],X=me(O)?O.bind(s,s):me(O.get)?O.get.bind(s,s):kt,oe=!me(O)&&me(O.set)?O.set.bind(s):kt,ne=D({get:X,set:oe});Object.defineProperty(a,A,{enumerable:!0,configurable:!0,get:()=>ne.value,set:re=>ne.value=re})}if(r)for(const A in r)si(r[A],a,s,A);if(u){const A=me(u)?u.call(s):u;Reflect.ownKeys(A).forEach(O=>{Rl(O,A[O])})}c&&ti(c,e,"c");function ke(A,O){ve(O)?O.forEach(X=>A(X.bind(s))):O&&A(O.bind(s))}if(ke(Yl,d),ke(Oe,h),ke(Ql,m),ke(Jo,$),ke(Zl,y),ke(Gl,E),ke(nc,R),ke(sc,de),ke(tc,te),ke(vt,w),ke(ya,M),ke(ec,b),ve(S))if(S.length){const A=e.exposed||(e.exposed={});S.forEach(O=>{Object.defineProperty(A,O,{get:()=>s[O],set:X=>s[O]=X,enumerable:!0})})}else e.exposed||(e.exposed={});F&&e.render===kt&&(e.render=F),z!=null&&(e.inheritAttrs=z),P&&(e.components=P),Q&&(e.directives=Q),b&&Vo(e)}function cc(e,t,s=kt){ve(e)&&(e=$a(e));for(const a in e){const n=e[a];let o;Ee(n)?"default"in n?o=Ns(n.from||a,n.default,!0):o=Ns(n.from||a):o=Ns(n),Le(o)?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[a]=o}}function ti(e,t,s){ct(ve(e)?e.map(a=>a.bind(t.proxy)):e.bind(t.proxy),t,s)}function si(e,t,s,a){let n=a.includes(".")?Oo(s,a):()=>s[a];if(Te(e)){const o=t[e];me(o)&&Ue(n,o)}else if(me(e))Ue(n,e.bind(s));else if(Ee(e))if(ve(e))e.forEach(o=>si(o,t,s,a));else{const o=me(e.handler)?e.handler.bind(s):t[e.handler];me(o)&&Ue(n,o,e)}}function ni(e){const t=e.type,{mixins:s,extends:a}=t,{mixins:n,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,r=o.get(t);let u;return r?u=r:!n.length&&!s&&!a?u=t:(u={},n.length&&n.forEach(f=>zn(u,f,i,!0)),zn(u,t,i)),Ee(t)&&o.set(t,u),u}function zn(e,t,s,a=!1){const{mixins:n,extends:o}=t;o&&zn(e,o,s,!0),n&&n.forEach(i=>zn(e,i,s,!0));for(const i in t)if(!(a&&i==="expose")){const r=uc[i]||s&&s[i];e[i]=r?r(e[i],t[i]):t[i]}return e}const uc={data:ai,props:oi,emits:oi,methods:Hs,computed:Hs,beforeCreate:Qe,created:Qe,beforeMount:Qe,mounted:Qe,beforeUpdate:Qe,updated:Qe,beforeDestroy:Qe,beforeUnmount:Qe,destroyed:Qe,unmounted:Qe,activated:Qe,deactivated:Qe,errorCaptured:Qe,serverPrefetch:Qe,components:Hs,directives:Hs,watch:vc,provide:ai,inject:dc};function ai(e,t){return t?e?function(){return Fe(me(e)?e.call(this,this):e,me(t)?t.call(this,this):t)}:t:e}function dc(e,t){return Hs($a(e),$a(t))}function $a(e){if(ve(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function Qe(e,t){return e?[...new Set([].concat(e,t))]:t}function Hs(e,t){return e?Fe(Object.create(null),e,t):t}function oi(e,t){return e?ve(e)&&ve(t)?[...new Set([...e,...t])]:Fe(Object.create(null),ei(e),ei(t??{})):t}function vc(e,t){if(!e)return t;if(!t)return e;const s=Fe(Object.create(null),e);for(const a in t)s[a]=Qe(e[a],t[a]);return s}function ii(){return{app:null,config:{isNativeTag:Za,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 fc=0;function pc(e,t){return function(a,n=null){me(a)||(a=Fe({},a)),n!=null&&!Ee(n)&&(n=null);const o=ii(),i=new WeakSet,r=[];let u=!1;const f=o.app={_uid:fc++,_component:a,_props:n,_container:null,_context:o,_instance:null,version:Zc,get config(){return o.config},set config(c){},use(c,...d){return i.has(c)||(c&&me(c.install)?(i.add(c),c.install(f,...d)):me(c)&&(i.add(c),c(f,...d))),f},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),f},component(c,d){return d?(o.components[c]=d,f):o.components[c]},directive(c,d){return d?(o.directives[c]=d,f):o.directives[c]},mount(c,d,h){if(!u){const m=f._ceVNode||ce(a,n);return m.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),e(m,c,h),u=!0,f._container=c,c.__vue_app__=f,Nn(m.component)}},onUnmount(c){r.push(c)},unmount(){u&&(ct(r,f._instance,16),e(null,f._container),delete f._container.__vue_app__)},provide(c,d){return o.provides[c]=d,f},runWithContext(c){const d=os;os=f;try{return c()}finally{os=d}}};return f}}let os=null;const hc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Je(t)}
16Modifiers`]||e[`${qt(t)}Modifiers`];function mc(e,t,...s){if(e.isUnmounted)return;const a=e.vnode.props||Ae;let n=s;const o=t.startsWith("update:"),i=o&&hc(a,t.slice(7));i&&(i.trim&&(n=s.map(c=>Te(c)?c.trim():c)),i.number&&(n=s.map(un)));let r,u=a[r=Qn(t)]||a[r=Qn(Je(t))];!u&&o&&(u=a[r=Qn(qt(t))]),u&&ct(u,e,6,n);const f=a[r+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[r])return;e.emitted[r]=!0,ct(f,e,6,n)}}const _c=new WeakMap;function ri(e,t,s=!1){const a=s?_c:t.emitsCache,n=a.get(e);if(n!==void 0)return n;const o=e.emits;let i={},r=!1;if(!me(e)){const u=f=>{const c=ri(f,t,!0);c&&(r=!0,Fe(i,c))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!o&&!r?(Ee(e)&&a.set(e,null),null):(ve(o)?o.forEach(u=>i[u]=null):Fe(i,o),Ee(e)&&a.set(e,i),i)}function Pn(e,t){return!e||!sn(t)?!1:(t=t.slice(2).replace(/Once$/,""),xe(e,t[0].toLowerCase()+t.slice(1))||xe(e,qt(t))||xe(e,t))}function Hb(){}function li(e){const{type:t,vnode:s,proxy:a,withProxy:n,propsOptions:[o],slots:i,attrs:r,emit:u,render:f,renderCache:c,props:d,data:h,setupState:m,ctx:$,inheritAttrs:y}=e,E=$n(e);let L,w;try{if(s.shapeFlag&4){const M=n||a,F=M;L=Et(f.call(F,M,c,d,m,h,$)),w=r}else{const M=t;L=Et(M.length>1?M(d,{attrs:r,slots:i,emit:u}):M(d,null)),w=t.props?r:gc(r)}}catch(M){Bs.length=0,kn(M,e,1),L=ce(tt)}let T=L;if(w&&y!==!1){const M=Object.keys(w),{shapeFlag:F}=T;M.length&&F&7&&(o&&M.some(nn)&&(w=yc(w,o)),T=Vt(T,w,!1,!0))}return s.dirs&&(T=Vt(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(s.dirs):s.dirs),s.transition&&as(T,s.transition),L=T,$n(E),L}const gc=e=>{let t;for(const s in e)(s==="class"||s==="style"||sn(s))&&((t||(t={}))[s]=e[s]);return t},yc=(e,t)=>{const s={};for(const a in e)(!nn(a)||!(a.slice(9)in t))&&(s[a]=e[a]);return s};function bc(e,t,s){const{props:a,children:n,component:o}=e,{props:i,children:r,patchFlag:u}=t,f=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return a?ci(a,i,f):!!i;if(u&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const h=c[d];if(ui(i,a,h)&&!Pn(f,h))return!0}}}else return(n||r)&&(!r||!r.$stable)?!0:a===i?!1:a?i?ci(a,i,f):!0:!!i;return!1}function ci(e,t,s){const a=Object.keys(t);if(a.length!==Object.keys(e).length)return!0;for(let n=0;n<a.length;n++){const o=a[n];if(ui(t,e,o)&&!Pn(s,o))return!0}return!1}function ui(e,t,s){const a=e[s],n=t[s];return s==="style"&&Ee(a)&&Ee(n)?!Ps(a,n):a!==n}function kc({vnode:e,parent:t,suspense:s},a){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=a,e=n),n===e)(e=t.vnode).el=a,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=a)}const di={},vi=()=>Object.create(di),fi=e=>Object.getPrototypeOf(e)===di;function wc(e,t,s,a=!1){const n={},o=vi();e.propsDefaults=Object.create(null),pi(e,t,n,o);for(const i in e.propsOptions[0])i in n||(n[i]=void 0);s?e.props=a?n:kl(n):e.type.props?e.props=n:e.props=o,e.attrs=o}function $c(e,t,s,a){const{props:n,attrs:o,vnode:{patchFlag:i}}=e,r=be(n),[u]=e.propsOptions;let f=!1;if((a||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let h=c[d];if(Pn(e.emitsOptions,h))continue;const m=t[h];if(u)if(xe(o,h))m!==o[h]&&(o[h]=m,f=!0);else{const $=Je(h);n[$]=Sa(u,r,$,m,e,!1)}else m!==o[h]&&(o[h]=m,f=!0)}}}else{pi(e,t,n,o)&&(f=!0);let c;for(const d in r)(!t||!xe(t,d)&&((c=qt(d))===d||!xe(t,c)))&&(u?s&&(s[d]!==void 0||s[c]!==void 0)&&(n[d]=Sa(u,r,d,void 0,e,!0)):delete n[d]);if(o!==r)for(const d in o)(!t||!xe(t,d))&&(delete o[d],f=!0)}f&&jt(e.attrs,"set","")}function pi(e,t,s,a){const[n,o]=e.propsOptions;let i=!1,r;if(t)for(let u in t){if(zs(u))continue;const f=t[u];let c;n&&xe(n,c=Je(u))?!o||!o.includes(c)?s[c]=f:(r||(r={}))[c]=f:Pn(e.emitsOptions,u)||(!(u in a)||f!==a[u])&&(a[u]=f,i=!0)}if(o){const u=be(s),f=r||Ae;for(let c=0;c<o.length;c++){const d=o[c];s[d]=Sa(n,u,d,f[d],e,!xe(f,d))}}return i}function Sa(e,t,s,a,n,o){const i=e[s];if(i!=null){const r=xe(i,"default");if(r&&a===void 0){const u=i.default;if(i.type!==Function&&!i.skipFactory&&me(u)){const{propsDefaults:f}=n;if(s in f)a=f[s];else{const c=Vs(n);a=f[s]=u.call(null,t),c()}}else a=u;n.ce&&n.ce._setProp(s,a)}i[0]&&(o&&!r?a=!1:i[1]&&(a===""||a===qt(s))&&(a=!0))}return a}const Sc=new WeakMap;function hi(e,t,s=!1){const a=s?Sc:t.propsCache,n=a.get(e);if(n)return n;const o=e.props,i={},r=[];let u=!1;if(!me(e)){const c=d=>{u=!0;
vendor: 4,365 bytes, line 16
16const[h,m]=hi(d,t,!0);Fe(i,h),m&&r.push(...m)};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!u)return Ee(e)&&a.set(e,fs),fs;if(ve(o))for(let c=0;c<o.length;c++){const d=Je(o[c]);mi(d)&&(i[d]=Ae)}else if(o)for(const c in o){const d=Je(c);if(mi(d)){const h=o[c],m=i[d]=ve(h)||me(h)?{type:h}:Fe({},h),$=m.type;let y=!1,E=!0;if(ve($))for(let L=0;L<$.length;++L){const w=$[L],T=me(w)&&w.name;if(T==="Boolean"){y=!0;break}else T==="String"&&(E=!1)}else y=me($)&&$.name==="Boolean";m[0]=y,m[1]=E,(y||xe(m,"default"))&&r.push(d)}}const f=[i,r];return Ee(e)&&a.set(e,f),f}function mi(e){return e[0]!=="$"&&!zs(e)}const Ca=e=>e==="_"||e==="_ctx"||e==="$stable",xa=e=>ve(e)?e.map(Et):[Et(e)],Cc=(e,t,s)=>{if(t._n)return t;const a=We((...n)=>xa(t(...n)),s);return a._c=!1,a},_i=(e,t,s)=>{const a=e._ctx;for(const n in e){if(Ca(n))continue;const o=e[n];if(me(o))t[n]=Cc(n,o,a);else if(o!=null){const i=xa(o);t[n]=()=>i}}},gi=(e,t)=>{const s=xa(t);e.slots.default=()=>s},yi=(e,t,s)=>{for(const a in t)(s||!Ca(a))&&(e[a]=t[a])},xc=(e,t,s)=>{const a=e.slots=vi();if(e.vnode.shapeFlag&32){const n=t._;n?(yi(a,t,s),s&&eo(a,"_",n,!0)):_i(t,a)}else t&&gi(e,t)},Ec=(e,t,s)=>{const{vnode:a,slots:n}=e;let o=!0,i=Ae;if(a.shapeFlag&32){const r=t._;r?s&&r===1?o=!1:yi(n,t,s):(o=!t.$stable,_i(t,n)),i=t}else t&&(gi(e,t),i={default:1});if(o)for(const r in n)!Ca(r)&&i[r]==null&&delete n[r]},et=jc;function zc(e){return Pc(e)}function Pc(e,t){const s=dn();s.__VUE__=!0;const{insert:a,remove:n,patchProp:o,createElement:i,createText:r,createComment:u,setText:f,setElementText:c,parentNode:d,nextSibling:h,setScopeId:m=kt,insertStaticContent:$}=e,y=(_,k,I,W=null,B=null,q=null,se=void 0,Y=null,ee=!!k.dynamicChildren)=>{if(_===k)return;_&&!rs(_,k)&&(W=Ve(_),re(_,B,q,!0),_=null),k.patchFlag===-2&&(ee=!1,k.dynamicChildren=null);const{type:H,ref:le,shapeFlag:x}=k;switch(H){case An:E(_,k,I,W);break;case tt:L(_,k,I,W);break;case Tn:_==null&&w(k,I,W,se);break;case Z:P(_,k,I,W,B,q,se,Y,ee);break;default:x&1?F(_,k,I,W,B,q,se,Y,ee):x&6?Q(_,k,I,W,B,q,se,Y,ee):(x&64||x&128)&&H.process(_,k,I,W,B,q,se,Y,ee,Ge)}le!=null&&B?Us(le,_&&_.ref,q,k||_,!k):le==null&&_&&_.ref!=null&&Us(_.ref,null,q,_,!0)},E=(_,k,I,W)=>{if(_==null)a(k.el=r(k.children),I,W);else{const B=k.el=_.el;k.children!==_.children&&f(B,k.children)}},L=(_,k,I,W)=>{_==null?a(k.el=u(k.children||""),I,W):k.el=_.el},w=(_,k,I,W)=>{[_.el,_.anchor]=$(_.children,k,I,W,_.el,_.anchor)},T=({el:_,anchor:k},I,W)=>{let B;for(;_&&_!==k;)B=h(_),a(_,I,W),_=B;a(k,I,W)},M=({el:_,anchor:k})=>{let I;for(;_&&_!==k;)I=h(_),n(_),_=I;n(k)},F=(_,k,I,W,B,q,se,Y,ee)=>{if(k.type==="svg"?se="svg":k.type==="math"&&(se="mathml"),_==null)de(k,I,W,B,q,se,Y,ee);else{const H=_.el&&_.el._isVueCE?_.el:null;try{H&&H._beginPatch(),b(_,k,B,q,se,Y,ee)}finally{H&&H._endPatch()}}},de=(_,k,I,W,B,q,se,Y)=>{let ee,H;const{props:le,shapeFlag:x,transition:j,dirs:ae}=_;if(ee=_.el=i(_.type,q,le&&le.is,le),x&8?c(ee,_.children):x&16&&R(_.children,ee,null,W,B,Ea(_,q),se,Y),ae&&ss(_,null,W,"created"),te(ee,_,_.scopeId,se,W),le){for(const N in le)N!=="value"&&!zs(N)&&o(ee,N,null,le[N],q,W);"value"in le&&o(ee,"value",null,le.value,q),(H=le.onVnodeBeforeMount)&&zt(H,W,_)}ae&&ss(_,null,W,"beforeMount");const _e=Ac(B,j);_e&&j.beforeEnter(ee),a(ee,k,I),((H=le&&le.onVnodeMounted)||_e||ae)&&et(()=>{try{H&&zt(H,W,_),_e&&j.enter(ee),ae&&ss(_,null,W,"mounted")}finally{}},B)},te=(_,k,I,W,B)=>{if(I&&m(_,I),W)for(let q=0;q<W.length;q++)m(_,W[q]);if(B){let q=B.subTree;if(k===q||$i(q.type)&&(q.ssContent===k||q.ssFallback===k)){const se=B.vnode;te(_,se,se.scopeId,se.slotScopeIds,B.parent)}}},R=(_,k,I,W,B,q,se,Y,ee=0)=>{for(let H=ee;H<_.length;H++){const le=_[H]=Y?Dt(_[H]):Et(_[H]);y(null,le,k,I,W,B,q,se,Y)}},b=(_,k,I,W,B,q,se)=>{const Y=k.el=_.el;let{patchFlag:ee,dynamicChildren:H,dirs:le}=k;ee|=_.patchFlag&16;const x=_.props||Ae,j=k.props||Ae;let ae;if(I&&is(I,!1),(ae=j.onVnodeBeforeUpdate)&&zt(ae,I,k,_),le&&ss(k,_,I,"beforeUpdate"),I&&is(I,!0),(x.innerHTML&&j.innerHTML==null||x.textContent&&j.textContent==null)&&c(Y,""),H?S(_.dynamicChildren,H,Y,I,W,Ea(k,B),q):se||O(_,k,Y,null,I,W,Ea(k,B),q,!1),ee>0){if(ee&16)z(Y,x,j,I,B);else if(ee&2&&x.class!==j.class&&o(Y,"class",null,j.class,B),ee&4&&o(Y,"style",x.style,j.style,B),ee&8){const _e=k.dynamicProps;for(let N=0;N<_e.length;N++){const pe=_e[N],Ce=x[pe],Ie=j[pe];
vendor: 5,421 bytes, line 16
16(Ie!==Ce||pe==="value")&&o(Y,pe,Ce,Ie,B,I)}}ee&1&&_.children!==k.children&&c(Y,k.children)}else!se&&H==null&&z(Y,x,j,I,B);((ae=j.onVnodeUpdated)||le)&&et(()=>{ae&&zt(ae,I,k,_),le&&ss(k,_,I,"updated")},W)},S=(_,k,I,W,B,q,se)=>{for(let Y=0;Y<k.length;Y++){const ee=_[Y],H=k[Y],le=ee.el&&(ee.type===Z||!rs(ee,H)||ee.shapeFlag&198)?d(ee.el):I;y(ee,H,le,null,W,B,q,se,!0)}},z=(_,k,I,W,B)=>{if(k!==I){if(k!==Ae)for(const q in k)!zs(q)&&!(q in I)&&o(_,q,k[q],null,B,W);for(const q in I){if(zs(q))continue;const se=I[q],Y=k[q];se!==Y&&q!=="value"&&o(_,q,Y,se,B,W)}"value"in I&&o(_,"value",k.value,I.value,B)}},P=(_,k,I,W,B,q,se,Y,ee)=>{const H=k.el=_?_.el:r(""),le=k.anchor=_?_.anchor:r("");let{patchFlag:x,dynamicChildren:j,slotScopeIds:ae}=k;ae&&(Y=Y?Y.concat(ae):ae),_==null?(a(H,I,W),a(le,I,W),R(k.children||[],I,le,B,q,se,Y,ee)):x>0&&x&64&&j&&_.dynamicChildren&&_.dynamicChildren.length===j.length?(S(_.dynamicChildren,j,I,B,q,se,Y),(k.key!=null||B&&k===B.subTree)&&za(_,k,!0)):O(_,k,I,le,B,q,se,Y,ee)},Q=(_,k,I,W,B,q,se,Y,ee)=>{k.slotScopeIds=Y,_==null?k.shapeFlag&512?B.ctx.activate(k,I,W,se,ee):ge(k,I,W,B,q,se,ee):we(_,k,ee)},ge=(_,k,I,W,B,q,se)=>{const Y=_.component=Fc(_,W,B);if(xn(_)&&(Y.ctx.renderer=Ge),Uc(Y,!1,se),Y.asyncDep){if(B&&B.registerDep(Y,ke,se),!_.el){const ee=Y.subTree=ce(tt);L(null,ee,k,I),_.placeholder=ee.el}}else ke(Y,_,k,I,B,q,se)},we=(_,k,I)=>{const W=k.component=_.component;if(bc(_,k,I))if(W.asyncDep&&!W.asyncResolved){A(W,k,I);return}else W.next=k,W.update();else k.el=_.el,W.vnode=k},ke=(_,k,I,W,B,q,se)=>{const Y=()=>{if(_.isMounted){let{next:x,bu:j,u:ae,parent:_e,vnode:N}=_;{const He=bi(_);if(He){x&&(x.el=N.el,A(_,x,se)),He.asyncDep.then(()=>{et(()=>{_.isUnmounted||H()},B)});return}}let pe=x,Ce;is(_,!1),x?(x.el=N.el,A(_,x,se)):x=N,j&&cn(j),(Ce=x.props&&x.props.onVnodeBeforeUpdate)&&zt(Ce,_e,x,N),is(_,!0);const Ie=li(_),Re=_.subTree;_.subTree=Ie,y(Re,Ie,d(Re.el),Ve(Re),_,B,q),x.el=Ie.el,pe===null&&kc(_,Ie.el),ae&&et(ae,B),(Ce=x.props&&x.props.onVnodeUpdated)&&et(()=>zt(Ce,_e,x,N),B)}else{let x;const{el:j,props:ae}=k,{bm:_e,m:N,parent:pe,root:Ce,type:Ie}=_,Re=qs(k);is(_,!1),_e&&cn(_e),!Re&&(x=ae&&ae.onVnodeBeforeMount)&&zt(x,pe,k),is(_,!0);{Ce.ce&&Ce.ce._hasShadowRoot()&&Ce.ce._injectChildStyle(Ie,_.parent?_.parent.type:void 0);const He=_.subTree=li(_);y(null,He,I,W,_,B,q),k.el=He.el}if(N&&et(N,B),!Re&&(x=ae&&ae.onVnodeMounted)){const He=k;et(()=>zt(x,pe,He),B)}(k.shapeFlag&256||pe&&qs(pe.vnode)&&pe.vnode.shapeFlag&256)&&_.a&&et(_.a,B),_.isMounted=!0,k=I=W=null}};_.scope.on();const ee=_.effect=new lo(Y);_.scope.off();const H=_.update=ee.run.bind(ee),le=_.job=ee.runIfDirty.bind(ee);le.i=_,le.id=_.uid,ee.scheduler=()=>pa(le),is(_,!0),H()},A=(_,k,I)=>{k.component=_;const W=_.vnode.props;_.vnode=k,_.next=null,$c(_,k.props,W,I),Ec(_,k.children,I),$t(),To(_),St()},O=(_,k,I,W,B,q,se,Y,ee=!1)=>{const H=_&&_.children,le=_?_.shapeFlag:0,x=k.children,{patchFlag:j,shapeFlag:ae}=k;if(j>0){if(j&128){oe(H,x,I,W,B,q,se,Y,ee);return}else if(j&256){X(H,x,I,W,B,q,se,Y,ee);return}}ae&8?(le&16&&$e(H,B,q),x!==H&&c(I,x)):le&16?ae&16?oe(H,x,I,W,B,q,se,Y,ee):$e(H,B,q,!0):(le&8&&c(I,""),ae&16&&R(x,I,W,B,q,se,Y,ee))},X=(_,k,I,W,B,q,se,Y,ee)=>{_=_||fs,k=k||fs;const H=_.length,le=k.length,x=Math.min(H,le);let j;for(j=0;j<x;j++){const ae=k[j]=ee?Dt(k[j]):Et(k[j]);y(_[j],ae,I,null,B,q,se,Y,ee)}H>le?$e(_,B,q,!0,!1,x):R(k,I,W,B,q,se,Y,ee,x)},oe=(_,k,I,W,B,q,se,Y,ee)=>{let H=0;const le=k.length;let x=_.length-1,j=le-1;for(;H<=x&&H<=j;){const ae=_[H],_e=k[H]=ee?Dt(k[H]):Et(k[H]);if(rs(ae,_e))y(ae,_e,I,null,B,q,se,Y,ee);else break;H++}for(;H<=x&&H<=j;){const ae=_[x],_e=k[j]=ee?Dt(k[j]):Et(k[j]);if(rs(ae,_e))y(ae,_e,I,null,B,q,se,Y,ee);else break;x--,j--}if(H>x){if(H<=j){const ae=j+1,_e=ae<le?k[ae].el:W;for(;H<=j;)y(null,k[H]=ee?Dt(k[H]):Et(k[H]),I,_e,B,q,se,Y,ee),H++}}else if(H>j)for(;H<=x;)re(_[H],B,q,!0),H++;else{const ae=H,_e=H,N=new Map;for(H=_e;H<=j;H++){const V=k[H]=ee?Dt(k[H]):Et(k[H]);V.key!=null&&N.set(V.key,H)}let pe,Ce=0;const Ie=j-_e+1;let Re=!1,He=0;const Ut=new Array(Ie);for(H=0;H<Ie;H++)Ut[H]=0;for(H=ae;H<=x;H++){const V=_[H];if(Ce>=Ie){re(V,B,q,!0);continue}let U;if(V.key!=null)U=N.get(V.key);else for(pe=_e;pe<=j;pe++)if(Ut[pe-_e]===0&&rs(V,k[pe])){U=pe;break}U===void 0?re(V,B,q,!0):(Ut[U-_e]=H+1,U>=He?He=U:Re=!0,y(V,k[U],I,null,B,q,se,Y,ee),Ce++)}const en=Re?Tc(Ut):fs;for(pe=en.length-1,H=Ie-1;H>=0;H--){const V=_e+H,U=k[V],Se=k[V+1],J=V+1<le?Se.el||wi(Se):W;Ut[H]===0?y(null,U,I,J,B,q,se,Y,ee):Re&&(pe<0||H!==en[pe]?ne(U,I,J,2):pe--)}}},ne=(_,k,I,W,B=null)=>{const{el:q,type:se,transition:Y,children:ee,shapeFlag:H}=_;if(H&6){ne(_.component.subTree,k,I,W);return}if(H&128){_.suspense.move(k,I,W);return}if(H&64){se.move(_,k,I,Ge);return}if(se===Z){a(q,k,I);for(let x=0;x<ee.length;x++)ne(ee[x],k,I,W);a(_.anchor,k,I);return}if(se===Tn){T(_,k,I);return}if(W!==2&&H&1&&Y)if(W===0)Y.persisted&&!q[ut]?a(q,k,I):(Y.beforeEnter(q),a(q,k,I),et(()=>Y.enter(q),B));else{const{leave:x,delayLeave:j,afterLeave:ae}=Y,_e=()=>{_.ctx.isUnmounted?n(q):a(q,k,I)},N=()=>{const pe=q._isLeaving||!!q[ut];q._isLeaving&&q[ut](!0),Y.persisted&&!pe?_e():x(q,()=>{_e(),ae&&ae()})};j?j(q,_e,N):N()}else a(q,k,I)},re=(_,k,I,W=!1,B=!1)=>{const{type:q,props:se,ref:Y,children:ee,dynamicChildren:H,shapeFlag:le,patchFlag:x,dirs:j,cacheIndex:ae,memo:_e}=_;if(x===-2&&(B=!1),Y!=null&&($t(),Us(Y,null,I,_,!0),St()),ae!=null&&(k.renderCache[ae]=void 0),le&256){k.ctx.deactivate(_);return}
vendor: 4,649 bytes, line 16
16const N=le&1&&j,pe=!qs(_);let Ce;if(pe&&(Ce=se&&se.onVnodeBeforeUnmount)&&zt(Ce,k,_),le&6)he(_.component,I,W);else{if(le&128){_.suspense.unmount(I,W);return}N&&ss(_,null,k,"beforeUnmount"),le&64?_.type.remove(_,k,I,Ge,W):H&&!H.hasOnce&&(q!==Z||x>0&&x&64)?$e(H,k,I,!1,!0):(q===Z&&x&384||!B&&le&16)&&$e(ee,k,I),W&&ye(_)}const Ie=_e!=null&&ae==null;(pe&&(Ce=se&&se.onVnodeUnmounted)||N||Ie)&&et(()=>{Ce&&zt(Ce,k,_),N&&ss(_,null,k,"unmounted"),Ie&&(_.el=null)},I)},ye=_=>{const{type:k,el:I,anchor:W,transition:B}=_;if(k===Z){De(I,W);return}if(k===Tn){M(_);return}const q=()=>{n(I),B&&!B.persisted&&B.afterLeave&&B.afterLeave()};if(_.shapeFlag&1&&B&&!B.persisted){const{leave:se,delayLeave:Y}=B,ee=()=>se(I,q);Y?Y(_.el,q,ee):ee()}else q()},De=(_,k)=>{let I;for(;_!==k;)I=h(_),n(_),_=I;n(k)},he=(_,k,I)=>{const{bum:W,scope:B,job:q,subTree:se,um:Y,m:ee,a:H}=_;ki(ee),ki(H),W&&cn(W),B.stop(),q&&(q.flags|=8,re(se,_,k,I)),Y&&et(Y,k),et(()=>{_.isUnmounted=!0},k)},$e=(_,k,I,W=!1,B=!1,q=0)=>{for(let se=q;se<_.length;se++)re(_[se],k,I,W,B)},Ve=_=>{if(_.shapeFlag&6)return Ve(_.component.subTree);if(_.shapeFlag&128)return _.suspense.next();const k=h(_.anchor||_.el),I=k&&k[No];return I?h(I):k};let pt=!1;const Yt=(_,k,I)=>{let W;_==null?k._vnode&&(re(k._vnode,null,null,!0),W=k._vnode.component):y(k._vnode||null,_,k,null,null,null,I),k._vnode=_,pt||(pt=!0,To(W),jo(),pt=!1)},Ge={p:y,um:re,m:ne,r:ye,mt:ge,mc:R,pc:O,pbc:S,n:Ve,o:e};return{render:Yt,hydrate:void 0,createApp:pc(Yt)}}function Ea({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function is({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ac(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function za(e,t,s=!1){const a=e.children,n=t.children;if(ve(a)&&ve(n))for(let o=0;o<a.length;o++){const i=a[o];let r=n[o];r.shapeFlag&1&&!r.dynamicChildren&&((r.patchFlag<=0||r.patchFlag===32)&&(r=n[o]=Dt(n[o]),r.el=i.el),!s&&r.patchFlag!==-2&&za(i,r)),r.type===An&&(r.patchFlag===-1&&(r=n[o]=Dt(r)),r.el=i.el),r.type===tt&&!r.el&&(r.el=i.el)}}function Tc(e){const t=e.slice(),s=[0];let a,n,o,i,r;const u=e.length;for(a=0;a<u;a++){const f=e[a];if(f!==0){if(n=s[s.length-1],e[n]<f){t[a]=n,s.push(a);continue}for(o=0,i=s.length-1;o<i;)r=o+i>>1,e[s[r]]<f?o=r+1:i=r;f<e[s[o]]&&(o>0&&(t[a]=s[o-1]),s[o]=a)}}for(o=s.length,i=s[o-1];o-- >0;)s[o]=i,i=t[i];return s}function bi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:bi(t)}function ki(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function wi(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?wi(t.subTree):null}const $i=e=>e.__isSuspense;function jc(e,t){t&&t.pendingBranch?ve(e)?t.effects.push(...e):t.effects.push(e):Dl(e)}const Z=Symbol.for("v-fgt"),An=Symbol.for("v-txt"),tt=Symbol.for("v-cmt"),Tn=Symbol.for("v-stc"),Bs=[];let ot=null;function v(e=!1){Bs.push(ot=e?null:[])}function Lc(){Bs.pop(),ot=Bs[Bs.length-1]||null}let Ks=1;function jn(e,t=!1){Ks+=e,e<0&&ot&&t&&(ot.hasOnce=!0)}function Si(e){return e.dynamicChildren=Ks>0?ot||fs:null,Lc(),Ks>0&&ot&&ot.push(e),e}function p(e,t,s,a,n,o){return Si(l(e,t,s,a,n,o,!0))}function Ne(e,t,s,a,n){return Si(ce(e,t,s,a,n,!0))}function Ln(e){return e?e.__v_isVNode===!0:!1}function rs(e,t){return e.type===t.type&&e.key===t.key}const Ci=({key:e})=>e??null,Mn=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Te(e)||Le(e)||me(e)?{i:at,r:e,k:t,f:!!s}:e:null);function l(e,t=null,s=null,a=0,n=null,o=e===Z?0:1,i=!1,r=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ci(t),ref:t&&Mn(t),scopeId:Mo,slotScopeIds:null,children:s,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:a,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:at};return r?(Pa(u,s),o&128&&e.normalize(u)):s&&(u.shapeFlag|=Te(s)?8:16),Ks>0&&!i&&ot&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&ot.push(u),u}const ce=Mc;function Mc(e,t=null,s=null,a=0,n=null,o=!1){if((!e||e===Yo)&&(e=tt),Ln(e)){const r=Vt(e,t,!0);return s&&Pa(r,s),Ks>0&&!o&&ot&&(r.shapeFlag&6?ot[ot.indexOf(e)]=r:ot.push(r)),r.patchFlag=-2,r}if(Vc(e)&&(e=e.__vccOpts),t){t=Ic(t);let{class:r,style:u}=t;r&&!Te(r)&&(t.class=ie(r)),Ee(u)&&(gn(u)&&!ve(u)&&(u=Fe({},u)),t.style=Wt(u))}const i=Te(e)?1:$i(e)?128:Do(e)?64:Ee(e)?4:me(e)?2:0;return l(e,t,s,a,n,i,o,!0)}function Ic(e){return e?gn(e)||fi(e)?Fe({},e):e:null}function Vt(e,t,s=!1,a=!1){const{props:n,ref:o,patchFlag:i,children:r,transition:u}=e,f=t?Nc(n||{}
vendor: 4,247 bytes, line 16
16,t):n,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&Ci(f),ref:t&&t.ref?s&&o?ve(o)?o.concat(Mn(t)):[o,Mn(t)]:Mn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Z?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Vt(e.ssContent),ssFallback:e.ssFallback&&Vt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&a&&as(c,u.clone(c)),c}function ue(e=" ",t=0){return ce(An,null,e,t)}function Oc(e,t){const s=ce(Tn,null,e);return s.staticCount=t,s}function C(e="",t=!1){return t?(v(),Ne(tt,null,e)):ce(tt,null,e)}function Et(e){return e==null||typeof e=="boolean"?ce(tt):ve(e)?ce(Z,null,e.slice()):Ln(e)?Dt(e):ce(An,null,String(e))}function Dt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Vt(e)}function Pa(e,t){let s=0;const{shapeFlag:a}=e;if(t==null)t=null;else if(ve(t))s=16;else if(typeof t=="object")if(a&65){const n=t.default;n&&(n._c&&(n._d=!1),Pa(e,n()),n._c&&(n._d=!0));return}else{s=32;const n=t._;!n&&!fi(t)?t._ctx=at:n===3&&at&&(at.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else me(t)?(t={default:t,_ctx:at},s=32):(t=String(t),a&64?(s=16,t=[ue(t)]):s=8);e.children=t,e.shapeFlag|=s}function Nc(...e){const t={};for(let s=0;s<e.length;s++){const a=e[s];for(const n in a)if(n==="class")t.class!==a.class&&(t.class=ie([t.class,a.class]));else if(n==="style")t.style=Wt([t.style,a.style]);else if(sn(n)){const o=t[n],i=a[n];i&&o!==i&&!(ve(o)&&o.includes(i))?t[n]=o?[].concat(o,i):i:i==null&&o==null&&!nn(n)&&(t[n]=i)}else n!==""&&(t[n]=a[n])}return t}function zt(e,t,s,a=null){ct(e,t,7,[s,a])}const Dc=ii();let Rc=0;function Fc(e,t,s){const a=e.type,n=(t?t.appContext:e.appContext)||Dc,o={uid:Rc++,vnode:e,type:a,parent:t,appContext:n,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new oo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(n.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:hi(a,n),emitsOptions:ri(a,n),emit:null,emitted:null,propsDefaults:Ae,inheritAttrs:a.inheritAttrs,ctx:Ae,data:Ae,props:Ae,attrs:Ae,slots:Ae,refs:Ae,setupState:Ae,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=mc.bind(null,o),e.ce&&e.ce(o),o}let Ze=null;const In=()=>Ze||at;let On,Aa;{const e=dn(),t=(s,a)=>{let n;return(n=e[s])||(n=e[s]=[]),n.push(a),o=>{n.length>1?n.forEach(i=>i(o)):n[0](o)}};On=t("__VUE_INSTANCE_SETTERS__",s=>Ze=s),Aa=t("__VUE_SSR_SETTERS__",s=>Xs=s)}const Vs=e=>{const t=Ze;return On(e),e.scope.on(),()=>{e.scope.off(),On(t)}},xi=()=>{Ze&&Ze.scope.off(),On(null)};function Ei(e){return e.vnode.shapeFlag&4}let Xs=!1;function Uc(e,t=!1,s=!1){t&&Aa(t);const{props:a,children:n}=e.vnode,o=Ei(e);wc(e,a,o,t),xc(e,n,s||t);const i=o?qc(e,t):void 0;return t&&Aa(!1),i}function qc(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,rc);const{setup:a}=s;if(a){$t();const n=e.setupContext=a.length>1?Hc(e):null,o=Vs(e),i=_s(a,e,0,[e.props,n]),r=Ja(i);if(St(),o(),(r||e.sp)&&!qs(e)&&Vo(e),r){if(i.then(xi,xi),t)return i.then(u=>{zi(e,u)}).catch(u=>{kn(u,e,0)});e.asyncDep=i}else zi(e,i)}else Pi(e)}function zi(e,t,s){me(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ee(t)&&(e.setupState=Eo(t)),Pi(e)}function Pi(e,t,s){const a=e.type;e.render||(e.render=a.render||kt);{const n=Vs(e);$t();try{lc(e)}finally{St(),n()}}}const Wc={get(e,t){return Xe(e,"get",""),e[t]}};function Hc(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Wc),slots:e.slots,emit:e.emit,expose:t}}function Nn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Eo(va(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Ws)return Ws[s](e)},has(t,s){return s in t||s in Ws}})):e.proxy}
vendor: 1,625 bytes, lines 16-20
16const Bc=/(?:^|[-_])\w/g,Kc=e=>e.replace(Bc,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ai(e,t=!0){return me(e)?e.displayName||e.name:e.name||t&&e.__name}function Ti(e,t,s=!1){let a=Ai(t);if(!a&&t.__file){const n=t.__file.match(/([^/\\]+)\.\w+$/);n&&(a=n[1])}if(!a&&e){const n=o=>{for(const i in o)if(o[i]===t)return i};a=n(e.components)||e.parent&&n(e.parent.type.components)||n(e.appContext.components)}return a?Kc(a):s?"App":"Anonymous"}function Vc(e){return me(e)&&"__vccOpts"in e}const D=(e,t)=>Pl(e,t,Xs);function Xc(e,t,s){try{jn(-1);const a=arguments.length;return a===2?Ee(t)&&!ve(t)?Ln(t)?ce(e,null,[t]):ce(e,t):ce(e,null,t):(a>3?s=Array.prototype.slice.call(arguments,2):a===3&&Ln(s)&&(s=[s]),ce(e,t,s))}finally{jn(1)}}const Zc="3.5.38";/** 17* @vue/runtime-dom v3.5.38 18* (c) 2018-present Yuxi (Evan) You and Vue contributors 19* @license MIT 20**/let Ta;const ji=typeof window<"u"&&window.trustedTypes;if(ji)try{Ta=ji.createPolicy("vue",{createHTML:e=>e})}catch{}const Li=Ta?e=>Ta.createHTML(e):e=>e,Gc="http://www.w3.org/2000/svg",Jc="http://www.w3.org/1998/Math/MathML",Rt=typeof document<"u"?document:null,Mi=Rt&&Rt.createElement("template"),Yc={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,a)=>{const n=t==="svg"?Rt.createElementNS(Gc,e):t==="mathml"?Rt.createElementNS(Jc,e):s?Rt.createElement(e,{is:s}):Rt.createElement(e);return e==="select"&&a&&a.multiple!=null&&n.setAttribute("multiple",a.multiple),n},createText:e=>Rt.createTextNode(e),createComment:e=>Rt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>
vendor: 4,224 bytes, line 20
20{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Rt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,a,n,o){const i=s?s.previousSibling:t.lastChild;if(n&&(n===o||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),s),!(n===o||!(n=n.nextSibling)););else{Mi.innerHTML=Li(a==="svg"?`<svg>${e}</svg>`:a==="mathml"?`<math>${e}</math>`:e);const r=Mi.content;if(a==="svg"||a==="mathml"){const u=r.firstChild;for(;u.firstChild;)r.appendChild(u.firstChild);r.removeChild(u)}t.insertBefore(r,s)}return[i?i.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Xt="transition",Zs="animation",bs=Symbol("_vtc"),Ii={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},Oi=Fe({},qo,Ii),st=(e=>(e.displayName="Transition",e.props=Oi,e))((e,{slots:t})=>Xc(Xl,Di(e),t)),ls=(e,t=[])=>{ve(e)?e.forEach(s=>s(...t)):e&&e(...t)},Ni=e=>e?ve(e)?e.some(t=>t.length>1):e.length>1:!1;function Di(e){const t={};for(const P in e)P in Ii||(t[P]=e[P]);if(e.css===!1)return t;const{name:s="v",type:a,duration:n,enterFromClass:o=`${s}-enter-from`,enterActiveClass:i=`${s}-enter-active`,enterToClass:r=`${s}-enter-to`,appearFromClass:u=o,appearActiveClass:f=i,appearToClass:c=r,leaveFromClass:d=`${s}-leave-from`,leaveActiveClass:h=`${s}-leave-active`,leaveToClass:m=`${s}-leave-to`}=e,$=Qc(n),y=$&&$[0],E=$&&$[1],{onBeforeEnter:L,onEnter:w,onEnterCancelled:T,onLeave:M,onLeaveCancelled:F,onBeforeAppear:de=L,onAppear:te=w,onAppearCancelled:R=T}=t,b=(P,Q,ge,we)=>{P._enterCancelled=we,Zt(P,Q?c:r),Zt(P,Q?f:i),ge&&ge()},S=(P,Q)=>{P._isLeaving=!1,Zt(P,d),Zt(P,m),Zt(P,h),Q&&Q()},z=P=>(Q,ge)=>{const we=P?te:w,ke=()=>b(Q,P,ge);ls(we,[Q,ke]),Ri(()=>{Zt(Q,P?u:o),Pt(Q,P?c:r),Ni(we)||Fi(Q,a,y,ke)})};return Fe(t,{onBeforeEnter(P){ls(L,[P]),Pt(P,o),Pt(P,i)},onBeforeAppear(P){ls(de,[P]),Pt(P,u),Pt(P,f)},onEnter:z(!1),onAppear:z(!0),onLeave(P,Q){P._isLeaving=!0;const ge=()=>S(P,Q);Pt(P,d),P._enterCancelled?(Pt(P,h),La(P)):(La(P),Pt(P,h)),Ri(()=>{P._isLeaving&&(Zt(P,d),Pt(P,m),Ni(M)||Fi(P,a,E,ge))}),ls(M,[P,ge])},onEnterCancelled(P){b(P,!1,void 0,!0),ls(T,[P])},onAppearCancelled(P){b(P,!0,void 0,!0),ls(R,[P])},onLeaveCancelled(P){S(P),ls(F,[P])}})}function Qc(e){if(e==null)return null;if(Ee(e))return[ja(e.enter),ja(e.leave)];{const t=ja(e);return[t,t]}}function ja(e){return Xr(e)}function Pt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.add(s)),(e[bs]||(e[bs]=new Set)).add(t)}function Zt(e,t){t.split(/\s+/).forEach(a=>a&&e.classList.remove(a));const s=e[bs];s&&(s.delete(t),s.size||(e[bs]=void 0))}function Ri(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let eu=0;function Fi(e,t,s,a){const n=e._endId=++eu,o=()=>{n===e._endId&&a()};if(s!=null)return setTimeout(o,s);const{type:i,timeout:r,propCount:u}=Ui(e,t);if(!i)return a();const f=i+"end";let c=0;const d=()=>{e.removeEventListener(f,h),o()},h=m=>{m.target===e&&++c>=u&&d()};setTimeout(()=>{c<u&&d()},r+1),e.addEventListener(f,h)}function Ui(e,t){const s=window.getComputedStyle(e),a=$=>(s[$]||"").split(", "),n=a(`${Xt}Delay`),o=a(`${Xt}Duration`),i=qi(n,o),r=a(`${Zs}Delay`),u=a(`${Zs}Duration`),f=qi(r,u);let c=null,d=0,h=0;t===Xt?i>0&&(c=Xt,d=i,h=o.length):t===Zs?f>0&&(c=Zs,d=f,h=u.length):(d=Math.max(i,f),c=d>0?i>f?Xt:Zs:null,h=c?c===Xt?o.length:u.length:0);const m=c===Xt&&/\b(?:transform|all)(?:,|$)/.test(a(`${Xt}Property`).toString());return{type:c,timeout:d,propCount:h,hasTransform:m}}function qi(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((s,a)=>Wi(s)+Wi(e[a])))}function Wi(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function La(e){return(e?e.ownerDocument:document).body.offsetHeight}function tu(e,t,s){const a=e[bs];a&&(t=(t?[t,...a]:[...a]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Dn=Symbol("_vod"),Ma=Symbol("_vsh"),Hi={name:"show",beforeMount(e,{value:t},{transition:s}){e[Dn]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):Gs(e,t)}
vendor: 4,500 bytes, line 20
20,mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:a}){!t!=!s&&(a?t?(a.beforeEnter(e),Gs(e,!0),a.enter(e)):a.leave(e,()=>{Gs(e,!1)}):Gs(e,t))},beforeUnmount(e,{value:t}){Gs(e,t)}};function Gs(e,t){e.style.display=t?e[Dn]:"none",e[Ma]=!t}const su=Symbol(""),nu=/(?:^|;)\s*display\s*:/;function au(e,t,s){const a=e.style,n=Te(s);let o=!1;if(s&&!n){if(t)if(Te(t))for(const i of t.split(";")){const r=i.slice(0,i.indexOf(":")).trim();s[r]==null&&Js(a,r,"")}else for(const i in t)s[i]==null&&Js(a,i,"");for(const i in s){i==="display"&&(o=!0);const r=s[i];r!=null?iu(e,i,!Te(t)&&t?t[i]:void 0,r)||Js(a,i,r):Js(a,i,"")}}else if(n){if(t!==s){const i=a[su];i&&(s+=";"+i),a.cssText=s,o=nu.test(s)}}else t&&e.removeAttribute("style");Dn in e&&(e[Dn]=o?a.display:"",e[Ma]&&(a.display="none"))}const Bi=/\s*!important$/;function Js(e,t,s){if(ve(s))s.forEach(a=>Js(e,t,a));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const a=ou(e,t);Bi.test(s)?e.setProperty(qt(a),s.replace(Bi,""),"important"):e[a]=s}}const Ki=["Webkit","Moz","ms"],Ia={};function ou(e,t){const s=Ia[t];if(s)return s;let a=Je(t);if(a!=="filter"&&a in e)return Ia[t]=a;a=ln(a);for(let n=0;n<Ki.length;n++){const o=Ki[n]+a;if(o in e)return Ia[t]=o}return t}function iu(e,t,s,a){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Te(a)&&s===a}const Vi="http://www.w3.org/1999/xlink";function Xi(e,t,s,a,n,o=Qr(t)){a&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Vi,t.slice(6,t.length)):e.setAttributeNS(Vi,t,s):s==null||o&&!so(s)?e.removeAttribute(t):e.setAttribute(t,o?"":lt(s)?String(s):s)}function Zi(e,t,s,a,n){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Li(s):s);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const r=o==="OPTION"?e.getAttribute("value")||"":e.value,u=s==null?e.type==="checkbox"?"on":"":String(s);(r!==u||!("_value"in e))&&(e.value=u),s==null&&e.removeAttribute(t),e._value=s;return}let i=!1;if(s===""||s==null){const r=typeof e[t];r==="boolean"?s=so(s):s==null&&r==="string"?(s="",i=!0):r==="number"&&(s=0,i=!0)}try{e[t]=s}catch{}i&&e.removeAttribute(n||t)}function cs(e,t,s,a){e.addEventListener(t,s,a)}function ru(e,t,s,a){e.removeEventListener(t,s,a)}const Gi=Symbol("_vei");function lu(e,t,s,a,n=null){const o=e[Gi]||(e[Gi]={}),i=o[t];if(a&&i)i.value=a;else{const[r,u]=cu(t);if(a){const f=o[t]=vu(a,n);cs(e,r,f,u)}else i&&(ru(e,r,i,u),o[t]=void 0)}}const Ji=/(?:Once|Passive|Capture)$/;function cu(e){let t;if(Ji.test(e)){t={};let a;for(;a=e.match(Ji);)e=e.slice(0,e.length-a[0].length),t[a[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):qt(e.slice(2)),t]}let Oa=0;const uu=Promise.resolve(),du=()=>Oa||(uu.then(()=>Oa=0),Oa=Date.now());function vu(e,t){const s=a=>{if(!a._vts)a._vts=Date.now();else if(a._vts<=s.attached)return;const n=s.value;if(ve(n)){const o=a.stopImmediatePropagation;a.stopImmediatePropagation=()=>{o.call(a),a._stopped=!0};const i=n.slice(),r=[a];for(let u=0;u<i.length&&!a._stopped;u++){const f=i[u];f&&ct(f,t,5,r)}}else ct(n,t,5,[a])};return s.value=e,s.attached=du(),s}const Yi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,fu=(e,t,s,a,n,o)=>{const i=n==="svg";t==="class"?tu(e,a,i):t==="style"?au(e,s,a):sn(t)?nn(t)||lu(e,t,s,a,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):pu(e,t,a,i))?(Zi(e,t,a),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Xi(e,t,a,i,o,t!=="value")):e._isVueCE&&(hu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Te(a)))?Zi(e,Je(t),a,o,t):(t==="true-value"?e._trueValue=a:t==="false-value"&&(e._falseValue=a),Xi(e,t,a,i))};function pu(e,t,s,a){if(a)return!!(t==="innerHTML"||t==="textContent"||t in e&&Yi(t)&&me(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return Yi(t)&&Te(s)?!1:t in e}function hu(e,t){const s=e._def.props;if(!s)return!1;const a=Je(t);return Array.isArray(s)?s.some(n=>Je(n)===a):Object.keys(s).some(n=>Je(n)===a)}const Qi=new WeakMap,er=new WeakMap,Rn=Symbol("_moveCb"),tr=Symbol("_enterCb"),sr=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:Fe({},Oi,{tag:String,moveClass:String}),setup(e,{slots:t}){const s=In(),a=Uo();let n,o;return Jo(()=>
20{if(!n.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!yu(n[0].el,s.vnode.el,i)){n=[];return}n.forEach(mu),n.forEach(_u);const r=n.filter(gu);La(s.vnode.el),r.forEach(u=>{const f=u.el,c=f.style;Pt(f,i),c.transform=c.webkitTransform=c.transitionDuration="";const d=f[Rn]=h=>{h&&h.target!==f||(!h||h.propertyName.endsWith("transform"))&&(f.removeEventListener("transitionend",d),f[Rn]=null,Zt(f,i))};f.addEventListener("transitionend",d)}),n=[]}),()=>{const i=be(e),r=Di(i);let u=i.tag||Z;if(n=[],o)for(let f=0;f<o.length;f++){const c=o[f];c.el&&c.el instanceof Element&&!c.el[Ma]&&(n.push(c),as(c,Fs(c,r,a,s)),Qi.set(c,nr(c.el)))}o=t.default?ga(t.default()):[];for(let f=0;f<o.length;f++){const c=o[f];c.key!=null&&as(c,Fs(c,r,a,s))}return ce(u,null,o)}}});function mu(e){const t=e.el;t[Rn]&&t[Rn](),t[tr]&&t[tr]()}function _u(e){er.set(e,nr(e.el))}function gu(e){const t=Qi.get(e),s=er.get(e),a=t.left-s.left,n=t.top-s.top;if(a||n){const o=e.el,i=o.style,r=o.getBoundingClientRect();let u=1,f=1;return o.offsetWidth&&(u=r.width/o.offsetWidth),o.offsetHeight&&(f=r.height/o.offsetHeight),(!Number.isFinite(u)||u===0)&&(u=1),(!Number.isFinite(f)||f===0)&&(f=1),Math.abs(u-1)<.01&&(u=1),Math.abs(f-1)<.01&&(f=1),i.transform=i.webkitTransform=`translate(${a/u}px,${n/f}px)`,i.transitionDuration="0s",e}}function nr(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function yu(e,t,s){const a=e.cloneNode(),n=e[bs];n&&n.forEach(r=>{r.split(/\s+/).forEach(u=>u&&a.classList.remove(u))}),s.split(/\s+/).forEach(r=>r&&a.classList.add(r)),a.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(a);const{hasTransform:i}=Ui(a);return o.removeChild(a),i}const Fn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ve(t)?s=>cn(t,s):t};function bu(e){e.target.composing=!0}function ar(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ks=Symbol("_assign");function or(e,t,s){return t&&(e=e.trim()),s&&(e=un(e)),e}const us={created(e,{modifiers:{lazy:t,trim:s,number:a}},n){e[ks]=Fn(n);const o=a||n.props&&n.props.type==="number";cs(e,t?"change":"input",i=>{i.target.composing||e[ks](or(e.value,s,o))}),(s||o)&&cs(e,"change",()=>{e.value=or(e.value,s,o)}),t||(cs(e,"compositionstart",bu),cs(e,"compositionend",ar),cs(e,"change",ar))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:a,trim:n,number:o}},i){if(e[ks]=Fn(i),e.composing)return;const r=(o||e.type==="number")&&!/^0\d/.test(e.value)?un(e.value):e.value,u=t??"";if(r===u)return;const f=e.getRootNode();(f instanceof Document||f instanceof ShadowRoot)&&f.activeElement===e&&e.type!=="range"&&(a&&t===s||n&&e.value.trim()===u)||(e.value=u)}},ir={deep:!0,created(e,{value:t,modifiers:{number:s}},a){const n=an(t);cs(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>s?un(Un(i)):Un(i));e[ks](e.multiple?n?new Set(o):o:o[0]),e._assigning=!0,ts(()=>{e._assigning=!1})}),e[ks]=Fn(a)},mounted(e,{value:t}){rr(e,t)},beforeUpdate(e,t,s){e[ks]=Fn(s)},updated(e,{value:t}){e._assigning||rr(e,t)}};function rr(e,t){const s=e.multiple,a=ve(t);if(!(s&&!a&&!an(t))){for(let n=0,o=e.options.length;n<o;n++){const i=e.options[n],r=Un(i);if(s)if(a){const u=typeof r;u==="string"||u==="number"?i.selected=t.some(f=>String(f)===String(r)):i.selected=tl(t,r)>-1}else i.selected=t.has(r);else if(Ps(Un(i),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Un(e){return"_value"in e?e._value:e.value}const ku=["ctrl","shift","alt","meta"],wu={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)=>ku.some(s=>e[`${s}Key`]&&!t.includes(s))},Be=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),a=t.join(".");return s[a]||(s[a]=(n,...o)=>{for(let i=0;i<t.length;i++){const r=wu[t[i]];if(r&&r(n,t))return}return e(n,...o)})},$u={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},qn=(e,t)=>{const s=e._withKeys||(e._withKeys={}),a=t.join(".");
vendor: 4,358 bytes, lines 20-24
20return s[a]||(s[a]=n=>{if(!("key"in n))return;const o=qt(n.key);if(t.some(i=>i===o||$u[i]===o))return e(n)})},Su=Fe({patchProp:fu},Yc);let lr;function Cu(){return lr||(lr=zc(Su))}const xu=(...e)=>{const t=Cu().createApp(...e),{mount:s}=t;return t.mount=a=>{const n=zu(a);if(!n)return;const o=t._component;!me(o)&&!o.render&&!o.template&&(o.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const i=s(n,!1,Eu(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),i},t};function Eu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function zu(e){return Te(e)?document.querySelector(e):e}/*! 21 * pinia v2.3.1 22 * (c) 2025 Eduardo San Martin Morote 23 * @license MIT 24 */let cr;const Wn=e=>cr=e,ur=Symbol();function Na(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ys;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ys||(Ys={}));function Pu(){const e=io(!0),t=e.run(()=>K({}));let s=[],a=[];const n=va({install(o){Wn(n),n._a=o,o.provide(ur,n),o.config.globalProperties.$pinia=n,a.forEach(i=>s.push(i)),a=[]},use(o){return this._a?s.push(o):a.push(o),this},_p:s,_a:null,_e:e,_s:new Map,state:t});return n}const dr=()=>{};function vr(e,t,s,a=dr){e.push(t);const n=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),a())};return!s&&ro()&&sl(n),n}function ws(e,...t){e.slice().forEach(s=>{s(...t)})}const Au=e=>e(),fr=Symbol(),Da=Symbol();function Ra(e,t){e instanceof Map&&t instanceof Map?t.forEach((s,a)=>e.set(a,s)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const s in t){if(!t.hasOwnProperty(s))continue;const a=t[s],n=e[s];Na(n)&&Na(a)&&e.hasOwnProperty(s)&&!Le(a)&&!Mt(a)?e[s]=Ra(n,a):e[s]=a}return e}const Tu=Symbol();function ju(e){return!Na(e)||!e.hasOwnProperty(Tu)}const{assign:Gt}=Object;function Lu(e){return!!(Le(e)&&e.effect)}function Mu(e,t,s,a){const{state:n,actions:o,getters:i}=t,r=s.state.value[e];let u;function f(){r||(s.state.value[e]=n?n():{});const c=Cl(s.state.value[e]);return Gt(c,o,Object.keys(i||{}).reduce((d,h)=>(d[h]=va(D(()=>{Wn(s);const m=s._s.get(e);return i[h].call(m,m)})),d),{}))}return u=pr(e,f,t,s,a,!0),u}function pr(e,t,s={},a,n,o){let i;const r=Gt({actions:{}},s),u={deep:!0};let f,c,d=[],h=[],m;const $=a.state.value[e];!o&&!$&&(a.state.value[e]={});let y;function E(R){let b;f=c=!1,typeof R=="function"?(R(a.state.value[e]),b={type:Ys.patchFunction,storeId:e,events:m}):(Ra(a.state.value[e],R),b={type:Ys.patchObject,payload:R,storeId:e,events:m});const S=y=Symbol();ts().then(()=>{y===S&&(f=!0)}),c=!0,ws(d,b,a.state.value[e])}const L=o?function(){const{state:b}=s,S=b?b():{};this.$patch(z=>{Gt(z,S)})}:dr;function w(){i.stop(),d=[],h=[],a._s.delete(e)}const T=(R,b="")=>{if(fr in R)return R[Da]=b,R;const S=function(){Wn(a);const z=Array.from(arguments),P=[],Q=[];function ge(A){P.push(A)}function we(A){Q.push(A)}ws(h,{args:z,name:S[Da],store:F,after:ge,onError:we});let ke;try{ke=R.apply(this&&this.$id===e?this:F,z)}catch(A){throw ws(Q,A),A}return ke instanceof Promise?ke.then(A=>(ws(P,A),A)).catch(A=>(ws(Q,A),Promise.reject(A))):(ws(P,ke),ke)};return S[fr]=!0,S[Da]=b,S},M={_p:a,$id:e,$onAction:vr.bind(null,h),$patch:E,$reset:L,$subscribe(R,b={}){const S=vr(d,R,b.detached,()=>z()),z=i.run(()=>Ue(()=>a.state.value[e],P=>{(b.flush==="sync"?c:f)&&R({storeId:e,type:Ys.direct,events:m},P)},Gt({},u,b)));return S},$dispose:w},F=Ht(M);a._s.set(e,F);const te=(a._a&&a._a.runWithContext||Au)(()=>a._e.run(()=>(i=io()).run(()=>t({action:T}))));for(const R in te){const b=te[R];if(Le(b)&&!Lu(b)||Mt(b))o||($&&ju(b)&&(Le(b)?b.value=$[R]:Ra(b,$[R])),a.state.value[e][R]=b);else if(typeof b=="function"){const S=T(b,R);te[R]=S,r.actions[R]=b}}return Gt(F,te),Gt(be(F),te),Object.defineProperty(F,"$state",{get:()=>a.state.value[e],set:R=>{E(b=>{Gt(b,R)})}}),a._p.forEach(R=>{Gt(F,i.run(()=>R({store:F,app:a._a,pinia:a,options:r})))}),$&&o&&s.hydrate&&s.hydrate(F.$state,$),f=!0,c=!0,F}/*! #__NO_SIDE_EFFECTS__ */function Hn(e,t,s){let a,n;const o=typeof t=="function";typeof e=="string"?(a=e,n=o?s:t):(n=e,a=e.id);function i(r,u){const f=Fl();return r=r||(f?Ns(ur,null):null),r&&Wn(r),r=cr,r._s.has(a)||(o?pr(a,t,n,r):Mu(a,n,r)),r._s.get(a)}return i.$id=a,i}let hr=0;
24const ft=Hn("toasts",{state:()=>({items:[]}),actions:{push(e,t="success",s=3200,a){hr+=1;const n=hr;this.items.push({id:n,type:t,message:e,action:a}),s>0&&window.setTimeout(()=>this.dismiss(n),s)},dismiss(e){this.items=this.items.filter(t=>t.id!==e)}}}),mr=()=>{var e,t;return((t=(e=window.Theme)==null?void 0:e.events)==null?void 0:t.updateCart)||"updateCart"},Iu=()=>{var e,t;return((t=(e=window.Theme)==null?void 0:e.events)==null?void 0:t.updatedCart)||"updatedCart"},yt=Hn("cart",{state:()=>({cartUrl:"",token:"",products:[],productsCount:0,total:"",summary:"",loading:!1,error:"",primed:!1,listening:!1,lastAppliedAt:0,drawerHosts:0,addSeq:0,lastAdded:null}),actions:{configure(e,t){this.cartUrl=e,this.token=t},applyCart(e){var t,s;e&&(this.products=e.products??[],this.productsCount=e.products_count??0,this.summary=e.summary_string??"",this.total=((s=(t=e.totals)==null?void 0:t.total)==null?void 0:s.value)??"",this.lastAppliedAt=Date.now())},async post(e,t=!1){var s,a;this.loading=!0,this.error="";try{const n=new FormData;n.append("ajax","1"),n.append("action","update"),this.token&&n.append("token",this.token);for(const[r,u]of Object.entries(e))n.append(r,u);const i=await(await fetch(this.cartUrl,{method:"POST",body:n,headers:{"X-Requested-With":"XMLHttpRequest"}})).json();return i.hasError&&(this.error=Array.isArray(i.errors)?i.errors.join(" "):String(i.errors??""),ft().push(this.error||"Nie udaÅo siÄ zaktualizowaÄ koszyka","error")),i.cart&&(this.applyCart(i.cart),t||(a=(s=window.prestashop)==null?void 0:s.emit)==null||a.call(s,mr(),{reason:e,resp:i})),i}catch(n){return this.error=String(n),null}finally{this.loading=!1}},refresh(){return this.primed=!0,this.post({},!0)},prime(){return this.primed?Promise.resolve(null):this.refresh()},async add(e,t=1,s=0){var n,o;const a=await this.post({add:"1",id_product:String(e),id_product_attribute:String(s),qty:String(t)});if(a&&!a.hasError&&a.cart){this.lastAdded={id:e,idAttr:s},this.addSeq+=1;try{const i=window;(n=i.dataLayer)==null||n.push({event:"add_to_cart",ecommerce:{items:[{item_id:String(e),quantity:t}]}}),(o=i.vvTrack)==null||o.call(i,"AddToCart",{content_ids:[String(e)],content_type:"product",currency:"PLN"})}catch{}}return a},inc(e,t=0){return this.post({update:"1",id_product:String(e),id_product_attribute:String(t),op:"up",qty:"1"})},dec(e,t=0){return this.post({update:"1",id_product:String(e),id_product_attribute:String(t),op:"down",qty:"1"})},remove(e,t=0){return this.post({delete:"1",id_product:String(e),id_product_attribute:String(t)})},listen(){var s,a,n,o;if(this.listening)return;this.listening=!0;let e;const t=i=>{var u;const r=(u=i==null?void 0:i.resp)==null?void 0:u.cart;if(r){this.applyCart(r);return}Date.now()-this.lastAppliedAt<900||(clearTimeout(e),e=setTimeout(()=>this.refresh(),150))};(a=(s=window.prestashop)==null?void 0:s.on)==null||a.call(s,mr(),t),(o=(n=window.prestashop)==null?void 0:n.on)==null||o.call(n,Iu(),t)}}});function $s(e){return e.toFixed(2).replace(".",",")+"Â zÅ"}function Me(e){return{amount:e,currency:"PLN",formatted:$s(e)}}function Fa(e){const t=Math.round(e*10)/10;return Number.isInteger(t)?String(t):t.toFixed(1).replace(".",",")}function Bn(e){if(typeof e=="number")return e;if(!e)return 0;const t=String(e).replace(/[^\d,.\-]/g,"").replace(/\.(?=\d{3}\b)/g,"").replace(",","."),s=parseFloat(t);return Number.isFinite(s)?s:0}function At(e){const t=Bn(e),s=typeof e=="string"&&e.trim()?e.trim():$s(t);return{amount:t,currency:"PLN",formatted:s}}const _r=e=>/^pakiet\b/iu.test((e||"").trim());function gr(e){let t="",s=(e||"").trim();for(;s!==t;)t=s,s=s.replace(/\s*[-ââ]?\s*Powystawow\w*\s*$/iu,"").replace(/\s*\([^)]*\)\s*$/u,"").replace(/\s*\[[^\]]*\]\s*$/u,"").trim();return s}function Ua(e){const t=gr((e||"").replace(/\s*\([^)]*\)/gu,"").replace(/\s*\[[^\]]*\]/gu,"")).replace(/[-ââ\s]+$/u,"").replace(/\s{2,}/g," ").trim();return t.length<2||t.length>50||/\d|oprawa|e[-\s]?book|wyd\.|powystaw/iu.test(t)?"":t}function Qs(e){if(_r(e))return"";const t=gr(e),s=t.lastIndexOf(" - ");if(s===-1)return"";const a=Ua(t.slice(s+3));return!a||/[.!?:;]$/.test(a)||a.split(/\s+/).length>5?"":a}function yr(e){const t=/powystaw/iu.test(e||"");let s=(e||"").replace(/\s*[-ââ]?\s*Powystawow\w*/giu,"").replace(/\s*\[[^\]]*\]/gu,"").replace(/\s*\((?:oprawa|e[-\s]?book)[^)]*\)/giu,"");if(_r(e))return s=s.replace(/\s-\s/gu," â ").replace(/\s{2,}/g," ").trim()||e,t?`${s} â powystawowa`:s;const a=Qs(e);if(a){const n=s.lastIndexOf(" - ");n!==-1&&Ua(s.slice(n+3))===a&&(s=s.slice(0,n))}return s=s.replace(/[-ââ\s]+$/u,"").replace(/\s{2,}/g," ").trim()||e,t?`${s} â powystawowa`:s}const br=e=>/e[-\s]?book/iu.test(e||""),Ou={twarda:"hardcover",miÄkka:"paperback",miekka:"paperback",specjalna:"special"};function kr(e){return Qs(e)}const wr=/\s*[-ââ]\s*Seria:\s*(.+)$/iu;function Nu(e){const s=(e||"").replace(/\s*\[[^\]]*\]/gu,"").replace(/\s*\((?:oprawa|e[-\s]?book)[^)]*\)/giu,"").match(wr);return s?s[1].trim():""}function qa(e,t){const s=/powystaw/iu.test(e||"");let a=(e||"").replace(/\s*[-ââ]?\s*Powystawow\w*/giu,"").replace(/\s*\[[^\]]*\]/gu,"").replace(/\s*\((?:oprawa|e[-\s]?book)[^)]*\)/giu,"");if(a=a.replace(wr,""),t){const n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");
24a=a.replace(new RegExp("\\s*[-ââ]\\s*"+n+"\\s*$","iu"),"")}return a=a.replace(/[-ââ\s]+$/u,"").replace(/\s{2,}/g," ").trim(),s&&(a=`${a} â powystawowa`),t&&a.length>t.length&&a.toLowerCase().startsWith(t.toLowerCase())&&!/[\s:,.ââ-]/.test(a.charAt(t.length))&&(a=`${a.slice(0,t.length)} â ${a.slice(t.length)}`),a}function Du(e,t){if(!t)return e;const s=i=>i.replace(/\s+/gu,""),a=s(e).replace(/(?:\.\.\.|â¦)$/u,"");if(!a||!s(t).startsWith(a))return e;let n=a.length,o=0;for(;o<t.length&&n>0;)/\s/u.test(t[o])||(n-=1),o+=1;return t.slice(0,o).trim()}function Ru(e){var t,s;if(typeof e.image=="string"&&e.image)return e.image;if(typeof e.cover=="string"&&e.cover)return e.cover;if(e.cover&&typeof e.cover=="object")return((t=e.cover.large)==null?void 0:t.url)||((s=e.cover.medium)==null?void 0:s.url)}function Kn(e,t){var ne,re,ye,De;const s=Number(e.id??e.id_product??0),a=!!e.has_discount,n=At(e.price);let o=e.regular_price?At(e.regular_price):void 0;(!o||o.amount<=n.amount)&&!a&&(e.wholesale_amount??0)>n.amount+.01&&(o=Me(e.wholesale_amount));const i=e.url||e.link||"#",r={};for(const he of e.features??[])he.name&&he.value&&(r[he.name.trim()]=String(he.value).trim());const u=e.name??"",f=!!e.is_pack||!!((re=(ne=e.pack)==null?void 0:ne.items)!=null&&re.length)||/^pakiet\b/iu.test(u.trim()),c=f?"":Ua(e.author||r.Autor||"")||kr(u),d=(e.series||Nu(u)).trim(),h=(r["Typ Produktu"]||"").toLowerCase(),m=e.is_virtual===!0||(e.ebook??(/e[-\s]?book|cyfrow|elektron/u.test(h)||/e[-\s]?book/iu.test(u))),$=(e.binding||r.oprawa||"").toLowerCase(),y=Ou[$],E=e.quantity!==void 0?Number(e.quantity):void 0,L=e.price_amount!==void 0?Number(e.price_amount):void 0,w=e.available_for_order===void 0?void 0:!(e.available_for_order===!1||e.available_for_order===0||e.available_for_order==="0"||e.available_for_order===""),T=e.allow_backorder!==void 0?!!e.allow_backorder:e.out_of_stock===1||e.availability==="available",M=e.availability==="unavailable"||e.availability==="discontinued"||w===!1||L!==void 0&&L<=0||E!==void 0&&E<=0&&!T,F=!M&&e.availability==="last_remaining_items",de=!!e.preorder,te=(L!==void 0?L:n.amount)<=0;te&&(n.amount=0);const R=m?[{format:"ebook",price:n,regularPrice:o,available:!M,isOnline:!0}]:[{format:"physical",binding:y,price:n,regularPrice:o,available:!M}],b=new Set(["Typ Produktu","EAN","Autor"]),S=he=>he.charAt(0).toUpperCase()+he.slice(1),z=[],P=new Map;for(const he of e.features??[]){if(!he.name||!he.value)continue;const $e=S(he.name.trim());if(b.has(he.name.trim())||m&&$e.toLowerCase()==="oprawa")continue;const Ve=String(he.value).trim(),pt=P.get($e);pt!==void 0?z[pt].value.split(", ").includes(Ve)||(z[pt].value+=`, ${Ve}`):(P.set($e,z.length),z.push({label:$e,value:Ve}))}const Q=!te&&e.lowest_price_30d?At(e.lowest_price_30d):void 0;Q&&e.lowest_price_30d_amount!==void 0&&(Q.amount=Number(e.lowest_price_30d_amount));const ge=r.EAN||e.reference||void 0,we=!te&&a&&o&&o.amount>n.amount?Math.round((1-n.amount/o.amount)*1e3)/10:0,ke=we?`-${Fa(we)}%`:void 0;let A;if((De=(ye=e.pack)==null?void 0:ye.items)!=null&&De.length){const he=e.pack.items.filter($e=>$e.id&&$e.name).map($e=>{const Ve=kr($e.name??"");return{id:Number($e.id),title:qa($e.name??"",Ve)||($e.name??""),authors:Ve?[{name:Ve}]:void 0,cover:{url:$e.image||void 0},url:$e.url||void 0,qty:$e.qty&&$e.qty>1?$e.qty:void 0,price:$e.price||void 0}});he.length&&e.pack.regular_total&&e.pack.savings&&(A={items:he,regularTotal:At(e.pack.regular_total),packPrice:n,savings:At(e.pack.savings),savingsPercent:e.pack.percent||void 0})}if(!A){const he=e.is_pack&&e.pack_savings?At(e.pack_savings):void 0;A=he&&o?{items:[],regularTotal:o,packPrice:n,savings:he,savingsPercent:we||void 0}:void 0}const O=(t==null?void 0:t.sitewidePct)??0,X=O>0&&we>0&&we<=O+.05,oe=A?[{kind:"pack",label:"Pakiet"}]:a&&!te&&!X?[{kind:"sale",label:ke||"Promocja"}]:[];return e.bestseller&&oe.push({kind:"bestseller",label:"Bestseller"}
24),de&&oe.push({kind:"preorder",label:"Zapowiedź"}),m&&oe.push({kind:"tag",label:"E-book"}),{id:s,url:i,title:(f?qa(u,"").replace(/\s-\s/gu," â "):qa(u,c))||u,authors:c?[{name:c}]:[],series:d?{name:d}:void 0,imprint:r.Wydawnictwo||e.manufacturer_name||void 0,isbn:ge,description:e.description_short?Du(e.description_short.replace(/<[^>]+>/g," ").replace(/\s{2,}/g," ").trim(),e.description_teaser?e.description_teaser.replace(/\s{2,}/g," ").trim():void 0):void 0,cover:{url:Ru(e)},gallery:(e.gallery??[]).filter(he=>!!he.url).length?(e.gallery??[]).filter(he=>!!he.url).map(he=>({url:he.url,thumb:he.thumb||void 0,label:he.legend||void 0})):void 0,price:n,regularPrice:te?void 0:o,hasDiscount:a&&!te,discountLabel:ke,lowestPrice30d:Q,formats:R,defaultFormat:m?"ebook":"physical",availability:de?M?"coming_soon":"preorder":M?"out_of_stock":F?"low_stock":"in_stock",preorder:de&&e.available_date?{releaseDate:e.available_date}:void 0,shipDate:!de&&e.ship_date&&e.ship_date>new Date().toISOString().slice(0,10)&&e.ship_date!=="0000-00-00"?e.ship_date:void 0,badges:oe,specs:z.length?z:void 0,pack:A,add_to_cart_url:e.add_to_cart_url}}function Fu(e){const t=(e.filters??[]).map(s=>({label:s.label??"",count:Number(s.count??s.magnitude??0),active:!!s.active,value:s.q??s.value??""}));return{label:e.label??"",type:e.type??"",widget:e.widget??e.widget_type??"checkbox",multiple:e.multiple??!0,filters:t}}function Uu(e){var t,s,a,n,o,i,r;if(!(!e||typeof e!="object"))return{total:Number(e.total??0),formats:{hardcover:Number(((t=e.formats)==null?void 0:t.hardcover)??0),paperback:Number(((s=e.formats)==null?void 0:s.paperback)??0),ebook:Number(((a=e.formats)==null?void 0:a.ebook)??0)},sale:Number(e.sale??0),price:{a:Number(((n=e.price)==null?void 0:n.a)??0),b:Number(((o=e.price)==null?void 0:o.b)??0),c:Number(((i=e.price)==null?void 0:i.c)??0),d:Number(((r=e.price)==null?void 0:r.d)??0)}}}function qu(e){const t=Number(e.sitewide_pct??0)||0,s=(e.products??[]).map(r=>Kn(r,{sitewidePct:t})),a=(e.facets??[]).map(Fu),n=(e.sortOrders??e.sort_orders??[]).map(r=>({label:r.label??"",value:r.urlParameter??r.value??"",current:!!r.current})),o=e.pagination??{},i={page:Number(o.page??o.current_page??1),pages:Number(o.pages??o.pages_count??1),total:Number(o.total??o.total_items??s.length)};return{products:s,facets:a,sortOrders:n,pagination:i,refine:Uu(e.refine)}}const Wu=[{label:"TrafnoÅÄ",value:"",current:!0},{label:"Cena: rosnÄ
co",value:"price-asc",current:!1},{label:"Cena: malejÄ
co",value:"price-desc",current:!1},{label:"Najnowsze",value:"date-desc",current:!1},{label:"Najwyżej oceniane",value:"rating-desc",current:!1}],Hu={hardcover:"Twarda oprawa",paperback:"MiÄkka oprawa",special:"Edycja kolekcjonerska"},Bu={physical:"KsiÄ
żka",ebook:"E-book",audiobook:"Audiobook"},$r={in_stock:"W magazynie",low_stock:"Ostatnie sztuki",preorder:"Przedsprzedaż",coming_soon:"Zapowiedź"};function Ku(e,t){const s=d=>e.filter(d).length,a=d=>{const h=new Set(t);return h.has(d)?h.delete(d):h.add(d),Array.from(h).join(" ")},n=(d,h,m)=>({label:d,type:h,widget:"checkbox",multiple:!0,filters:m.filter($=>$.n>0).map($=>({label:$.label,count:$.n,active:t.has($.value),value:a($.value)}))}),o=d=>Array.from(new Set(d)),i=o(e.flatMap(d=>d.genres??[])),r=o(e.flatMap(d=>d.authors.map(h=>h.name))),u=o(e.map(d=>{var h;return(h=d.series)==null?void 0:h.name}).filter(Boolean)),f=o(e.flatMap(d=>d.formats.map(h=>h.binding).filter(Boolean))),c=o(e.flatMap(d=>d.formats.map(h=>h.format)));return[n("Gatunek","genre",i.map(d=>({label:d,value:`genre:${d}`,n:s(h=>(h.genres??[]).includes(d))}))),n("Autor","author",r.map(d=>({label:d,value:`author:${d}`,n:s(h=>h.authors.some(m=>m.name===d))}))),n("Seria","series",u.map(d=>({label:d,value:`series:${d}`,n:s(h=>{var m;return((m=h.series)==null?void 0:m.name)===d})}))),n("Oprawa","binding",f.map(d=>({label:Hu[d]??d,value:`binding:${d}`,n:s(h=>h.formats.some(m=>m.binding===d))}))),n("Format","format",c.map(d=>({label:Bu[d]??d,value:`format:${d}`,n:s(h=>h.formats.some(m=>m.format===d))}))),n("DostÄpnoÅÄ","availability",Object.keys($r).map(d=>({label:$r[d],value:`avail:${d}`,n:s(h=>h.availability===d)})))].filter(d=>d.filters.length>0)}function Vu(e,t){var n;const[s,a]=t.split(/:(.+)/);switch(s){case"genre":return(e.genres??[]).includes(a);case"author":return e.authors.some(o=>o.name===a);case"series":return((n=e.series)==null?void 0:n.name)===a;case"binding":return e.formats.some(o=>o.binding===a);case"format":return e.formats.some(o=>o.format===a);case"avail":return e.availability===a;default:return!0}}function Xu(e,t){const s=[...e];switch(t){case"price-asc":return s.sort((a,n)=>a.price.amount-n.price.amount);case"price-desc":return s.sort((a,n)=>n.price.amount-a.price.amount);case"date-desc":return s.sort((a,n)=>n.id-a.id);case"rating-desc":return s.sort((a,n)=>{var o,i;return(((o=n.rating)==null?void 0:o.average)??0)-(((i=a.rating)==null?void 0:i.average)??0)});default:return s}}function Sr(e){return{async fetchListing(t){await new Promise(c=>setTimeout(c,220));
24const s=new Set((t.q??"").split(" ").filter(Boolean));let a=e;if(t.search){const c=t.search.toLowerCase();a=a.filter(d=>d.title.toLowerCase().includes(c)||d.authors.some(h=>h.name.toLowerCase().includes(c)))}for(const c of s)a=a.filter(d=>Vu(d,c));const n=Ku(e,s),o=Xu(a,t.order??""),i=t.resultsPerPage??8,r=t.page??1,u=(r-1)*i;return{products:o.slice(u,u+i),facets:n,sortOrders:Wu.map(c=>({...c,current:c.value===(t.order??"")})),pagination:{page:r,pages:Math.max(1,Math.ceil(o.length/i)),total:o.length}}}}}function Ss(e){return{async fetchListing(t){const s=e.includes("?")?"&":"?",a=new URLSearchParams;t.type==="search"?(a.set("type","search"),a.set("s",t.search??"")):a.set("id_category",String(t.idCategory??0)),t.q&&a.set("q",t.q),t.order&&a.set("order",t.order),t.light&&a.set("light","1"),a.set("resultsPerPage",String(t.resultsPerPage??8)),a.set("page",String(t.page??1));const o=await(await fetch(e+s+a.toString(),{headers:{"X-Requested-With":"XMLHttpRequest"},signal:t.signal})).json();return qu(o)}}}const Cr='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';let Wa=0,xr="",Er="";function Zu(){if(++Wa>1)return;const e=window.innerWidth-document.documentElement.clientWidth;xr=document.body.style.overflow,Er=document.body.style.paddingRight,document.body.style.overflow="hidden",e>0&&(document.body.style.paddingRight=`${e}px`)}function Gu(){Wa===0||--Wa>0||(document.body.style.overflow=xr,document.body.style.paddingRight=Er)}function ds(e,t,s){let a=null,n=!1;function o(u){if(u.key==="Escape"){u.stopPropagation(),s();return}if(u.key!=="Tab")return;const f=t();if(!f)return;const c=Array.from(f.querySelectorAll(Cr)).filter(y=>y.offsetWidth>0||y.offsetHeight>0);if(!c.length){u.preventDefault();return}const d=c[0],h=c[c.length-1],m=document.activeElement,$=!!m&&f.contains(m);u.shiftKey&&(!$||m===d)?(u.preventDefault(),h.focus()):!u.shiftKey&&(!$||m===h)&&(u.preventDefault(),d.focus())}function i(){n||(n=!0,a=document.activeElement,Zu(),document.addEventListener("keydown",o,!0))}function r(u){n&&(n=!1,document.removeEventListener("keydown",o,!0),Gu(),u&&a&&document.contains(a)&&a.focus(),a=null)}Ue(e,async u=>{if(u){i(),await ts();const f=t(),c=(f==null?void 0:f.querySelector(Cr))??f;c==null||c.focus()}else r(!0)}),vt(()=>r(!1))}const Ju={class:"vv-ship__msg"},Yu={class:"vv-ship__amt"},Qu=["aria-valuenow"],ed=ze({__name:"FreeShippingBar",props:{total:{},threshold:{}},setup(e){const t=e,s=D(()=>t.threshold??200),a=D(()=>t.total>=s.value),n=D(()=>Math.max(0,s.value-t.total)),o=D(()=>Math.min(100,s.value>0?t.total/s.value*100:0));return(i,r)=>(v(),p("div",{class:ie(["vv-ship",{"vv-ship--done":a.value}])},[l("p",Ju,[a.value?(v(),p(Z,{key:0},[r[0]||(r[0]=l("span",{class:"vv-ship__star"},"â¦",-1)),r[1]||(r[1]=ue(" Masz ",-1)),r[2]||(r[2]=l("strong",null,"darmowÄ
wysyÅkÄ",-1))],64)):(v(),p(Z,{key:1},[r[3]||(r[3]=ue(" Do ",-1)),r[4]||(r[4]=l("strong",null,"darmowej wysyÅki",-1)),r[5]||(r[5]=ue(" brakuje ",-1)),l("strong",Yu,g(G($s)(n.value)),1)],64))]),l("div",{class:"vv-ship__track",role:"progressbar","aria-valuenow":Math.round(o.value),"aria-valuemin":"0","aria-valuemax":"100"},[l("span",{class:"vv-ship__fill",style:Wt({width:o.value+"%"})},null,4)],8,Qu)],2))}}),Pe=(e,t)=>{const s=e.__vccOpts||e;for(const[a,n]of t)s[a]=n;return s},Ha=Pe(ed,[["__scopeId","data-v-649f41ad"]]),td=.95;function zr(e){if(!e.complete||!e.naturalWidth)return null;try{const s=Math.max(1,Math.round(e.naturalHeight/Math.max(1,e.naturalWidth)*64)),a=document.createElement("canvas");a.width=64,a.height=s;const n=a.getContext("2d");if(!n)return null;n.drawImage(e,0,0,64,s);const o=n.getImageData(0,0,64,s).data;let i=64,r=-1,u=s,f=-1;for(let c=0;c<s;c+=1)for(let d=0;d<64;d+=1){const h=(c*64+d)*4;o[h+3]<16||(o[h]<240||o[h+1]<240||o[h+2]<240)&&(d<i&&(i=d),d>r&&(r=d),c<u&&(u=c),c>f&&(f=c))}return r<0||f<=u?null:(r-i+1)/(f-u+1)}catch{return null}}const Ba=Ht({}),Pr=new Set;function sd(e){return e&&e in Ba?Ba[e]:null}function Vn(e){const t=sd(e);return t!==null&&t>=td}function Ka(e){if(!e||Pr.has(e))return;Pr.add(e);const t=new Image;t.onload=()=>{const s=zr(t);s!==null&&(Ba[e]=s)},t.src=e}const nd=["src"],ad=["src","alt","loading","fetchpriority"],od={class:"vv-bc__ornament"},id={class:"vv-bc__foot"}
24,rd={key:0,class:"vv-bc__author"},ld={class:"vv-bc__title"},cd={key:1,class:"vv-bc__series"},ud={key:0,class:"vv-bc__edge"},Ke=Pe(ze({__name:"BookCover",props:{id:{},name:{},title:{},author:{},series:{},volume:{},dyedEdges:{type:Boolean},image:{},eager:{type:Boolean}},setup(e){const t=e,s=["","I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII"],a=[{from:"#2a0e0c",to:"#0a0605",accent:"#db3e2f",edge:"#db3e2f"},{from:"#10201f",to:"#060d0c",accent:"#3fae9c",edge:"#c9a24b"},{from:"#191026",to:"#080510",accent:"#9a6fd6",edge:"#c9a24b"},{from:"#201a11",to:"#0b0805",accent:"#c9a24b",edge:"#c9a24b"},{from:"#0d1726",to:"#05090f",accent:"#6f9be0",edge:"#c9a24b"},{from:"#13201a",to:"#070c09",accent:"#5aa86c",edge:"#c9a24b"},{from:"#241016",to:"#0c0608",accent:"#d35a86",edge:"#db3e2f"}],n=["â¦","â¦","â¾","â§","â§","â","â","â¡"],o=D(()=>Math.abs(t.id||0)),i=D(()=>a[o.value%a.length]),r=D(()=>n[o.value%n.length]),u=D(()=>t.title||t.name||""),f=D(()=>{if(!t.series)return"";const m=t.volume&&s[t.volume]?` · ${s[t.volume]}`:"";return t.series.toUpperCase()+m}),c=D(()=>({"--c-from":i.value.from,"--c-to":i.value.to,"--c-accent":i.value.accent,"--c-edge":i.value.edge})),d=K(!1);Ue(()=>t.image,()=>{d.value=!1}),Ue(()=>t.image,m=>Ka(m),{immediate:!0});const h=D(()=>Vn(t.image));return(m,$)=>(v(),p(Z,null,[e.image&&!d.value&&h.value?(v(),p("img",{key:0,src:e.image,alt:"","aria-hidden":"true",class:"vv-bc__blur",loading:"lazy"},null,8,nd)):C("",!0),e.image&&!d.value?(v(),p("img",{key:1,src:e.image,alt:u.value,class:ie(["vv-bc__img",{"vv-bc__img--contain":h.value}]),loading:e.eager?"eager":"lazy",fetchpriority:e.eager?"high":void 0,onError:$[0]||($[0]=y=>d.value=!0)},null,42,ad)):(v(),p("span",{key:2,class:ie(["vv-bc",{"vv-bc--dyed":e.dyedEdges}]),style:Wt(c.value),"aria-hidden":"true"},[$[2]||($[2]=l("span",{class:"vv-bc__frame"},null,-1)),l("span",od,g(r.value),1),$[3]||($[3]=l("span",{class:"vv-bc__imprint"},"Vesper",-1)),l("span",id,[e.author?(v(),p("span",rd,g(e.author),1)):C("",!0),l("span",ld,g(u.value),1),$[1]||($[1]=l("span",{class:"vv-bc__rule"},null,-1)),f.value?(v(),p("span",cd,g(f.value),1)):C("",!0)]),e.dyedEdges?(v(),p("span",ud)):C("",!0)],6))],64))}}),[["__scopeId","data-v-d09d0b97"]]),dd={class:"vv-packup__kicker"},vd={id:"vv-packup-title",class:"vv-packup__title"},fd={key:0,class:"vv-packup__choices",role:"radiogroup","aria-label":"Wybierz pakiet"},pd=["aria-checked","onClick"],hd={class:"vv-packup__choice-name"},md={class:"vv-packup__choice-save"},_d={class:"vv-packup__body"},gd=["href"],yd={class:"vv-packup__info"},bd=["href"],kd={class:"vv-packup__meta"},wd={class:"vv-packup__prices"},$d={class:"vv-packup__price"},Sd={class:"vv-packup__was"},Cd={class:"vv-packup__actions"},xd=["disabled"],Ed=["disabled"],zd=Pe(ze({__name:"PackUpsellModal",props:{offers:{},busy:{type:Boolean}},emits:["swap","keep"],setup(e,{emit:t}){const s=e,a=t,n=K(null),o=K(null),i=D(()=>s.offers.length?s.offers.find(u=>u.id===o.value)??s.offers[0]:null),r=D(()=>!!i.value);return Ue(()=>s.offers,()=>{var u;o.value=((u=s.offers[0])==null?void 0:u.id)??null}),ds(r,()=>n.value,()=>a("keep")),(u,f)=>(v(),Ne(gt,{to:"body"},[ce(st,{name:"vv-packup"},{default:We(()=>[i.value?(v(),p("div",{key:0,class:"vv-packup__overlay",onClick:f[3]||(f[3]=Be(c=>a("keep"),["self"]))},[l("div",{ref_key:"panelEl",ref:n,class:"vv-packup__panel",role:"dialog","aria-modal":"true","aria-labelledby":"vv-packup-title",tabindex:"-1"},[l("button",{class:"vv-packup__x",type:"button","aria-label":"Zamknij",onClick:f[0]||(f[0]=c=>a("keep"))},"â"),l("p",dd,g(e.offers.length>1?`DostÄpny w ${e.offers.length} pakietach`:"DostÄpny w pakiecie"),1),l("h2",vd,"OszczÄdzasz "+g(i.value.savings),1),e.offers.length>1?(v(),p("div",fd,[(v(!0),p(Z,null,fe(e.offers,c=>(v(),p("button",{key:c.id,type:"button",role:"radio",class:ie(["vv-packup__choice",{"is-active":c.id===i.value.id}]),"aria-checked":c.id===i.value.id,onClick:d=>o.value=c.id},[l("span",hd,g(c.name),1),l("span",md,"â"+g(c.savings),1)],10,pd))),128))])):C("",!0),l("div",_d,[l("a",{href:i.value.url,class:"vv-packup__cover"},[ce(Ke,{id:i.value.id,title:i.value.name,image:i.value.image},null,8,["id","title","image"])],8,gd),l("div",yd,[l("a",{href:i.value.url,class:"vv-packup__name"},g(i.value.name),9,bd),l("p",kd,g(i.value.items_count)+" tytuÅy w zestawie",1),l("p",wd,[l("strong",$d,g(i.value.price),1),l("s",Sd,g(i.value.separate_total)+" osobno",1)])])]),l("div",Cd,[l("button",{class:"vv-packup__swap",type:"button",disabled:e.busy,onClick:f[1]||(f[1]=c=>a("swap",i.value))}," ZamieÅ na pakiet ",8,xd),l("button",{class:"vv-packup__keep",type:"button",disabled:e.busy,onClick:f[2]||(f[2]=c=>a("keep"))}," ZostaÅ przy 1 szt. ",8,Ed)])],512)])):C("",!0)]),_:1})]))}}),[["__scopeId","data-v-1e351ff0"]]),Pd={class:"vv-minicart"},Ad=["aria-expanded"],Td={key:0,class:"vv-minicart__badge","data-test":"hdr-count"},jd={class:"vv-minicart__head"},Ld={key:0,class:"vv-minicart__head-count"},Md={key:1,class:"vv-minicart__muted"},Id={key:2,class:"vv-minicart__err"}
24,Od={key:3,class:"vv-minicart__empty"},Nd=["href"],Dd={key:4,class:"vv-minicart__list"},Rd=["href"],Fd={class:"vv-minicart__body"},Ud=["href"],qd={key:0,class:"vv-minicart__attrs"},Wd={class:"vv-minicart__controls"},Hd=["aria-busy"],Bd=["disabled","onClick"],Kd={key:0},Vd={key:1,class:"vv-minicart__qty-wait"},Xd=["disabled","onClick"],Zd={class:"vv-minicart__lt"},Gd={key:0,class:"vv-minicart__lt-old"},Jd=["onClick"],Yd={key:5,class:"vv-minicart__upsell"},Qd={class:"vv-minicart__upsell-list"},ev=["href"],tv={class:"vv-minicart__upsell-body"},sv=["href"],nv={class:"vv-minicart__upsell-price"},av={key:0,class:"vv-minicart__upsell-old"},ov=["aria-label","disabled","onClick"],iv={key:6,class:"vv-minicart__foot"},rv={class:"vv-minicart__subtotal"},lv={"data-test":"hdr-total"},cv={key:0,class:"vv-minicart__total-old"},uv=["href"],dv=["href"],vv=Pe(ze({__name:"MiniCart",props:{cartUrl:{},token:{},count:{},freeShippingThreshold:{},catalogUrl:{},checkoutUrl:{},endpoint:{},packEndpoint:{}},setup(e){const t=e,s=yt(),a=K(!1),n=K(null);ds(a,()=>n.value,()=>{a.value=!1});const o=b=>b.cart_quantity??b.quantity??0,i=b=>{const S=b.vv_cover_price_amount??0;return S<=0?null:$s(S*(o(b)||1))},r=D(()=>{let b=0,S=0;for(const z of s.products){const P=z.price_amount??0,Q=o(z)||1;b+=Math.max(z.vv_cover_price_amount??0,P)*Q,S+=P*Q}return b>S+.01?$s(b):null}),u=D(()=>Bn(s.total)),f=b=>{var S,z,P,Q,ge,we;return((P=(z=(S=b.cover)==null?void 0:S.bySize)==null?void 0:z.cart_default)==null?void 0:P.url)||((we=(ge=(Q=b.cover)==null?void 0:Q.bySize)==null?void 0:ge.small_default)==null?void 0:we.url)||void 0},c=K(null);let d,h=!1;Ue(()=>s.productsCount,(b,S)=>{if(!h||!(b>S)||!c.value)return;const z=c.value;z.classList.remove("vv-cart-pulse"),requestAnimationFrame(()=>z.classList.add("vv-cart-pulse")),clearTimeout(d),d=setTimeout(()=>z.classList.remove("vv-cart-pulse"),800)});function m(){s.primed||s.prime(),a.value=!0}const $=()=>!!c.value&&!!(c.value.offsetWidth||c.value.offsetHeight),y=K([]);let E=null;async function L(b){if(!t.packEndpoint)return[];try{const S=t.packEndpoint.includes("?")?"&":"?",P=await(await fetch(`${t.packEndpoint}${S}id_product=${b}`,{headers:{"X-Requested-With":"XMLHttpRequest"}})).json();return Array.isArray(P==null?void 0:P.packs)&&P.packs.length?P.packs:P!=null&&P.pack?[P.pack]:[]}catch{return[]}}Ue(()=>s.addSeq,async()=>{if(!$())return;const b=s.lastAdded;if(b&&t.packEndpoint){const S=`vv-packup-${b.id}`;let z=!0;try{z=!!sessionStorage.getItem(S)}catch{z=!1}if(!z){const P=await L(b.id);if(P.length){try{sessionStorage.setItem(S,"1")}catch{}E={...b},y.value=P;return}}}m()});async function w(b){const S=E;y.value=[],E=null,b&&(S&&await s.remove(S.id,S.idAttr),await s.add(b.id))}function T(){y.value=[],E=null,m()}const M=K([]);let F=!1;const de=D(()=>Math.max(0,(t.freeShippingThreshold??200)-u.value)),te=D(()=>{if(!s.products.length||de.value<=0)return[];const b=new Set(s.products.map(S=>S.id_product));return M.value.filter(S=>S.availability==="in_stock"&&S.price.amount>0&&S.price.amount<=de.value&&!b.has(S.id)).slice(0,3)});async function R(){if(!(F||!t.endpoint)){F=!0;try{const b=await Ss(t.endpoint).fetchListing({idCategory:7,resultsPerPage:12});M.value=b.products}catch{M.value=[]}}}return Ue(a,b=>{b&&s.productsCount>0&&de.value>0&&R()}),Oe(async()=>{s.configure(t.cartUrl,t.token??""),s.listen(),t.count!=null&&!s.primed&&(s.productsCount=t.count),s.drawerHosts+=1,(t.count==null||t.count>0)&&await s.prime(),h=!0}),ya(()=>{s.drawerHosts-=1}),(b,S)=>(v(),p("div",Pd,[l("button",{ref_key:"btnEl",ref:c,class:"vv-minicart__btn",type:"button","aria-expanded":a.value,"aria-label":"Koszyk",onClick:m},[S[4]||(S[4]=l("span",{class:"vv-minicart__icon material-icons","aria-hidden":"true"},"î£",-1)),G(s).productsCount>0?(v(),p("span",Td,g(G(s).productsCount),1)):C("",!0)],8,Ad),(v(),Ne(gt,{to:"body"},[ce(st,{name:"vv-slide"},{default:We(()=>[a.value?(v(),p("div",{key:0,class:"vv-minicart__overlay",onClick:S[3]||(S[3]=Be(z=>a.value=!1,["self"]))},[l("aside",{ref_key:"panelEl",ref:n,class:"vv-minicart__panel",role:"dialog","aria-modal":"true","aria-label":"Koszyk",tabindex:"-1"},[l("header",jd,[S[5]||(S[5]=l("strong",null,"Twój koszyk",-1)),G(s).productsCount?(v(),p("span",Ld,g(G(s).productsCount),1)):C("",!0),l("button",{class:"vv-minicart__close",type:"button","aria-label":"Zamknij",onClick:S[0]||(S[0]=z=>a.value=!1)},"â")]),G(s).products.length?(v(),Ne(Ha,{key:0,class:"vv-minicart__ship",total:u.value,threshold:e.freeShippingThreshold},null,8,["total","threshold"])):C("",!0),G(s).loading&&!G(s).products.length?(v(),p("p",Md,"Åadowanieâ¦")):C("",!0),G(s).error?(v(),p("p",Id,g(G(s).error),1)):C("",!0),!G(s).products.length&&!G(s).loading?(v(),p("div",Od,[S[6]||(S[6]=l("span",{class:"vv-minicart__empty-ico","aria-hidden":"true"},"â¦",-1)),S[7]||(S[7]=l("p",{class:"vv-minicart__empty-title"},"Twój koszyk jest pusty",-1)),S[8]||(S[8]=l("p",{class:"vv-minicart__empty-sub"},"Każda dobra historia od czegoÅ siÄ zaczyna. Znajdź swojÄ
.",-1)),l("a",{href:e.catalogUrl||"/",class:"vv-minicart__empty-cta",onClick:S[1]||(S[1]=z=>a.value=!1)},"PrzeglÄ
daj katalog",8,Nd)])):(v(),p("ul",Dd,[(v(!0),p(Z,null,fe
24(G(s).products,z=>(v(),p("li",{key:`${z.id_product}-${z.id_product_attribute}`,class:"vv-minicart__item","data-test":"hdr-item"},[l("a",{href:z.url,class:"vv-minicart__cover"},[ce(Ke,{id:z.id_product,name:z.name,image:f(z)},null,8,["id","name","image"])],8,Rd),l("div",Fd,[l("a",{href:z.url,class:"vv-minicart__name"},g(z.name),9,Ud),z.attributes_small?(v(),p("span",qd,g(z.attributes_small),1)):C("",!0),l("div",Wd,[l("span",{class:"vv-minicart__qty","aria-busy":G(s).loading?"true":void 0},[l("button",{type:"button","aria-label":"Mniej",disabled:G(s).loading,onClick:P=>G(s).dec(z.id_product,z.id_product_attribute)},"â",8,Bd),G(s).loading?(v(),p("b",Vd,[...S[9]||(S[9]=[l("span",{class:"vv-dots","aria-hidden":"true"},[l("i"),l("i"),l("i")],-1)])])):(v(),p("b",Kd,g(o(z)),1)),l("button",{type:"button","aria-label":"WiÄcej",disabled:G(s).loading,onClick:P=>G(s).inc(z.id_product,z.id_product_attribute)},"+",8,Xd)],8,Hd),l("span",Zd,[i(z)?(v(),p("s",Gd,g(i(z)),1)):C("",!0),ue(" "+g(z.total),1)])])]),l("button",{class:"vv-minicart__rm",type:"button","aria-label":"UsuÅ z koszyka",onClick:P=>G(s).remove(z.id_product,z.id_product_attribute)},"â",8,Jd)]))),128))])),te.value.length?(v(),p("div",Yd,[S[10]||(S[10]=l("p",{class:"vv-minicart__upsell-head"},"DopeÅnij do darmowej dostawy",-1)),l("ul",Qd,[(v(!0),p(Z,null,fe(te.value,z=>{var P;return v(),p("li",{key:z.id,class:"vv-minicart__upsell-item"},[l("a",{href:z.url,class:"vv-minicart__upsell-cover"},[ce(Ke,{id:z.id,title:z.title,author:(P=z.authors[0])==null?void 0:P.name,image:z.cover.url},null,8,["id","title","author","image"])],8,ev),l("div",tv,[l("a",{href:z.url,class:"vv-minicart__upsell-name"},g(z.title),9,sv),l("span",nv,[z.regularPrice&&z.regularPrice.amount>z.price.amount?(v(),p("s",av,g(z.regularPrice.formatted),1)):C("",!0),ue(" "+g(z.price.formatted),1)])]),l("button",{class:"vv-minicart__upsell-add",type:"button","aria-label":`Dodaj â${z.title}â do koszyka`,disabled:G(s).loading,onClick:Q=>G(s).add(z.id)},"Dodaj",8,ov)])}),128))])])):C("",!0),G(s).products.length?(v(),p("footer",iv,[l("div",rv,[S[11]||(S[11]=l("span",null,"Razem",-1)),l("strong",lv,[r.value?(v(),p("s",cv,g(r.value),1)):C("",!0),ue(g(G(s).total),1)])]),l("a",{href:e.checkoutUrl||e.cartUrl,class:"vv-minicart__checkout"},"Przejdź do kasy",8,uv),l("a",{href:e.cartUrl,class:"vv-minicart__viewcart",onClick:S[2]||(S[2]=z=>a.value=!1)},"Zobacz koszyk",8,dv)])):C("",!0)],512)])):C("",!0)]),_:1})])),ce(zd,{offers:y.value,busy:G(s).loading,onSwap:w,onKeep:T},null,8,["offers","busy"])]))}}),[["__scopeId","data-v-cb778d56"]]),fv={class:"vv-add"},pv={key:0,class:"vv-add__variants"},hv={class:"vv-add__group-label"},mv=["onUpdate:modelValue","data-test"],_v=["value"],gv={key:0,class:"vv-add__stock","data-test":"variant-stock"},yv={class:"vv-add__row"},bv={class:"vv-add__qty"},kv=["min"],wv=["disabled"],$v={key:1,class:"vv-add__err"},Sv=Pe(ze({__name:"AddToCart",props:{cartUrl:{},token:{},idProduct:{},minQty:{}},setup(e){const t=e,s=yt(),a=ft(),n=t.minQty&&t.minQty>0?t.minQty:1,o=K(n),i=K(!1),r=K({}),u=K({}),f=K({}),c=D(()=>Object.keys(r.value).length>0);function d(y){const E=document.querySelector(y);if(!(E!=null&&E.textContent))return null;try{return JSON.parse(E.textContent)}catch{return null}}const h=D(()=>{if(!c.value)return 0;const y=Object.values(f.value).map(Number).sort((E,L)=>E-L).join(",");for(const[E,L]of Object.entries(u.value))if([...L.attributes].map(Number).sort((T,M)=>T-M).join(",")===y)return Number(E);return 0}),m=D(()=>{const y=u.value[String(h.value)];return y?y.quantity:null});Oe(()=>{s.configure(t.cartUrl,t.token??"");const y=d("[data-vv-groups]");y&&(r.value=y);const E=d("[data-vv-combinations]");E&&(u.value=E);for(const[L,w]of Object.entries(r.value)){const T=w.default&&w.default>0?w.default:Number(Object.keys(w.attributes)[0]);f.value[L]=T}});async function $(){if(i.value)return;i.value=!0;const y=await s.add(t.idProduct,o.value,h.value);i.value=!1,y&&!y.hasError&&!s.drawerHosts&&a.push("Dodano do koszyka","success",5e3,{label:"Do koszyka â",href:t.cartUrl})}return(y,E)=>
24(v(),p("div",fv,[c.value?(v(),p("div",pv,[(v(!0),p(Z,null,fe(r.value,(L,w)=>(v(),p("div",{key:w,class:"vv-add__group"},[l("label",hv,g(L.name),1),_t(l("select",{"onUpdate:modelValue":T=>f.value[w]=T,class:"vv-add__select","data-test":`variant-${w}`},[(v(!0),p(Z,null,fe(L.attributes,(T,M)=>(v(),p("option",{key:M,value:Number(M)},g(T.name),9,_v))),128))],8,mv),[[ir,f.value[w],void 0,{number:!0}]])]))),128)),m.value!==null?(v(),p("p",gv,"DostÄpne: "+g(m.value)+" szt.",1)):C("",!0)])):C("",!0),l("div",yv,[l("div",bv,[l("button",{type:"button","aria-label":"Mniej",onClick:E[0]||(E[0]=L=>o.value=Math.max(G(n),o.value-1))},"â"),_t(l("input",{"onUpdate:modelValue":E[1]||(E[1]=L=>o.value=L),type:"number",min:G(n),"aria-label":"IloÅÄ"},null,8,kv),[[us,o.value,void 0,{number:!0}]]),l("button",{type:"button","aria-label":"WiÄcej",onClick:E[2]||(E[2]=L=>o.value++)},"+")]),l("button",{class:"vv-add__btn",type:"button","data-test":"pdp-add",disabled:i.value,onClick:$},[E[3]||(E[3]=l("span",{class:"material-icons","aria-hidden":"true"},"î",-1)),ue(" "+g(i.value?"Dodawanieâ¦":"Dodaj do koszyka"),1)],8,wv)]),G(s).error?(v(),p("p",$v,g(G(s).error),1)):C("",!0)]))}}),[["__scopeId","data-v-3af0f7d7"]]),bt=(e,t,s)=>({format:"physical",binding:t,label:t==="hardcover"?"Twarda oprawa":t==="special"?"Edycja kolekcjonerska":"MiÄkka oprawa",price:Me(e),regularPrice:s!=null?Me(s):void 0,available:!0}),Ft=e=>({format:"ebook",label:"E-book (EPUB/MOBI)",price:Me(e),available:!0,isOnline:!0}),Tt=[{id:101,url:"/101-widma-nad-arkham",title:"Widma nad Arkham",authors:[{name:"H.P. Lovecraft",slug:"hp-lovecraft"}],series:{name:"Eony",slug:"eony",volume:4,total:7},imprint:"Vesper",genres:["Horror","Weird fiction"],isbn:"978-83-7731-501-2",description:'Zbiór opowiadaÅ mitologii Cthulhu w nowym, kanonicznym przekÅadzie â od âZewu Cthulhu" po âWidmo nad Innsmouth".',cover:{},dyedEdges:!0,collectible:!0,price:Me(74.9),regularPrice:Me(89),hasDiscount:!0,discountLabel:"-16%",formats:[bt(74.9,"hardcover",89),Ft(39.9)],defaultFormat:"physical",availability:"in_stock",stock:23,rating:{average:4.8,count:214},badges:[{kind:"bestseller",label:"Bestseller"},{kind:"sale",label:"-16%"}]},{id:102,url:"/102-dom-z-listowia",title:"Dom z listowia",authors:[{name:"Mark Z. Danielewski",slug:"mzd"}],imprint:"Vesper",genres:["Horror","Weird fiction"],isbn:"978-83-7731-477-0",description:"PowieÅÄ-labirynt o domu, który jest wiÄkszy w Årodku niż na zewnÄ
trz. Typograficzny koszmar w twardej oprawie.",cover:{},dyedEdges:!0,collectible:!0,price:Me(99),formats:[bt(99,"special")],defaultFormat:"physical",availability:"low_stock",stock:3,rating:{average:4.9,count:96},badges:[{kind:"limited",label:"Edycja limitowana"}]},{id:103,url:"/103-wrota-eonu",title:"Wrota Eonu",authors:[{name:"Algernon Blackwood",slug:"algernon-blackwood"}],series:{name:"Eony",slug:"eony",volume:5,total:7},imprint:"Vesper",genres:["Fantastyka","Weird fiction"],isbn:"978-83-7731-512-8",description:"PiÄ
ty tom cyklu Eony. Wyprawa w gÅÄ
b prastarej puszczy, gdzie czas pÅynie inaczej.",cover:{},dyedEdges:!0,price:Me(64.9),formats:[bt(64.9,"hardcover"),Ft(34.9)],defaultFormat:"physical",availability:"preorder",preorder:{releaseDate:"2026-09-15",shipDate:"2026-09-12"},rating:{average:0,count:0},badges:[{kind:"preorder",label:"Przedsprzedaż"}]},{id:104,url:"/104-stacja-wymiary",title:"Stacja Wymiary",authors:[{name:"Ursula K. Le Guin",slug:"ursula-le-guin"}],series:{name:"Wymiary",slug:"wymiary",volume:1,total:3},imprint:"Vesper",genres:["SF"],isbn:"978-83-7731-444-2",description:"Otwarcie trylogii Wymiary. Pierwszy kontakt na orbicie umierajÄ
cej gwiazdy.",cover:{},price:Me(49.9),formats:[bt(49.9,"paperback"),Ft(27.9)],defaultFormat:"physical",availability:"in_stock",stock:41,rating:{average:4.6,count:158},badges:[{kind:"new",label:"NowoÅÄ"}]},{id:105,url:"/105-ksiega-nocy",title:"KsiÄga Nocy",authors:[{name:"Arthur Machen",slug:"arthur-machen"}],imprint:"Vesper",genres:["Horror","Klasyka"],isbn:"978-83-7731-399-5",description:'Klasyka grozy w nowym przekÅadzie. âWielki bóg Pan" i inne opowieÅci o tym, co czai siÄ tuż pod powierzchniÄ
.',cover:{},dyedEdges:!0,price:Me(54.9),formats:[bt(54.9,"hardcover")],defaultFormat:"physical",availability:"in_stock",stock:12,rating:{average:4.7,count:73},badges:[]},{id:106,url:"/106-tylko-online-czern",title:"CzerÅ, tylko czerÅ",authors:[{name:"Thomas Ligotti",slug:"thomas-ligotti"}],imprint:"Vesper",genres:["Weird fiction","Horror"],isbn:"978-83-7731-588-3",description:"Pesymistyczna proza grozy dostÄpna wyÅÄ
cznie w wersji cyfrowej.",cover:{},price:Me(29.9),formats:[Ft(29.9)],defaultFormat:"ebook",availability:"in_stock",rating:{average:4.4,count:51},badges:[{kind:"tag",label:"Tylko online"}]},{id:107,url:"/107-frankenstein",title:"Frankenstein",authors:[{name:"Mary Shelley",slug:"mary-shelley"}],series:{name:"Klasyka grozy",slug:"klasyka-grozy",volume:2},imprint:"Vesper",genres:["Klasyka","Horror","SF"],isbn:"978-83-7731-201-1",description:"Kanoniczna edycja z barwionymi brzegami i ilustracjami. Pierwsza powieÅÄ science fiction w historii.",cover:{},dyedEdges:!0,collectible:!0,price:Me(59),regularPrice:Me(69),hasDiscount:!0,discountLabel:"-14%",formats:[bt(59,"hardcover",69),Ft(24.9)],defaultFormat:"physical",availability:"in_stock",stock:30,rating:{average:4.9,count:402},badges:[{kind:"bestseller",label:"Bestseller"},{kind:"sale",label:"-14%"}]},{id:108,url:"/108-glebia",title:"GÅÄbia",authors:[{name:"Anna KrzemiÅska",slug:"anna-krzeminska"}],series:{name:"Wymiary",slug:"wymiary",volume:2,total:3},imprint:"Vesper",genres:["SF"],isbn:"978-83-7731-503-6",description:"Drugi tom Wymiarów. Ekspedycja na dno oceanu obcej planety.",cover:{},price:Me(52.9),formats:[bt(52.9,"paperback"),Ft(28.9)],defaultFormat:"physical",availability:"coming_soon",preorder:{releaseDate:"2026-11-03"}
24,badges:[{kind:"preorder",label:"Zapowiedź"}]},{id:109,url:"/109-opowiesci-niesamowite",title:"OpowieÅci niesamowite",authors:[{name:"Edgar Allan Poe",slug:"edgar-allan-poe"}],series:{name:"Klasyka grozy",slug:"klasyka-grozy",volume:1},imprint:"Vesper",genres:["Klasyka","Horror"],isbn:"978-83-7731-188-5",description:"NajsÅynniejsze opowiadania mistrza grozy w jednym, bogato zdobionym tomie.",cover:{},dyedEdges:!0,price:Me(62),formats:[bt(62,"hardcover"),Ft(29.9)],defaultFormat:"physical",availability:"in_stock",stock:18,rating:{average:4.8,count:167},badges:[]},{id:110,url:"/110-dracula",title:"Dracula",authors:[{name:"Bram Stoker",slug:"bram-stoker"}],series:{name:"Klasyka grozy",slug:"klasyka-grozy",volume:3},imprint:"Vesper",genres:["Klasyka","Horror"],isbn:"978-83-7731-222-6",description:"PowieÅÄ wszech czasów o hrabim z Transylwanii. Edycja z czerwonymi barwionymi brzegami.",cover:{},dyedEdges:!0,collectible:!0,price:Me(67),formats:[bt(67,"hardcover"),Ft(31.9)],defaultFormat:"physical",availability:"in_stock",stock:9,rating:{average:4.7,count:289},badges:[{kind:"new",label:"NowoÅÄ"}]},{id:111,url:"/111-noc-w-puszczy",title:"Noc w puszczy",authors:[{name:"Algernon Blackwood",slug:"algernon-blackwood"}],series:{name:"Eony",slug:"eony",volume:6,total:7},imprint:"Vesper",genres:["Fantastyka","Horror"],isbn:"978-83-7731-540-1",description:"Szósty tom Eonów. CoÅ przebudziÅo siÄ miÄdzy drzewami.",cover:{},dyedEdges:!0,price:Me(64.9),formats:[bt(64.9,"hardcover"),Ft(34.9)],defaultFormat:"physical",availability:"out_of_stock",stock:0,rating:{average:4.5,count:88},badges:[]},{id:201,url:"/201-pakiet-eony-1-3",title:"Pakiet: Eony, tomy 1â3",authors:[{name:"Algernon Blackwood",slug:"algernon-blackwood"}],series:{name:"Eony",slug:"eony"},imprint:"Vesper",genres:["Fantastyka"],description:"Trzy pierwsze tomy cyklu Eony w jednym pakiecie â z naliczonÄ
oszczÄdnoÅciÄ
.",cover:{},dyedEdges:!0,price:Me(159),formats:[bt(159,"hardcover")],defaultFormat:"physical",availability:"in_stock",stock:15,rating:{average:4.9,count:64},badges:[{kind:"pack",label:"Pakiet"}],pack:{items:[{id:91,title:"Eony, tom 1: Próg",cover:{}},{id:92,title:"Eony, tom 2: Brama",cover:{}},{id:93,title:"Eony, tom 3: OtchÅaÅ",cover:{}}],regularTotal:Me(194.7),packPrice:Me(159),savings:Me(35.7),savingsPercent:18}}];Tt.filter(e=>e.badges.some(t=>t.kind==="new")),Tt.filter(e=>e.badges.some(t=>t.kind==="bestseller")),Tt.filter(e=>e.availability==="preorder"||e.availability==="coming_soon");const Ar="vv_wishlist";function Cv(){try{return JSON.parse(localStorage.getItem(Ar)||"[]")}catch{return[]}}const Jt=Hn("wishlist",{state:()=>({items:Cv(),openSeq:0,panelOpen:!1}),getters:{count:e=>e.items.length,has:e=>t=>e.items.some(s=>s.id===t)},actions:{requestOpen(){this.openSeq+=1},toggle(e){const t=this.items.findIndex(a=>a.id===e.id),s=t<0;s?this.items.push(e):this.items.splice(t,1),this.persist(),!(s&&this.panelOpen)&&ft().push(s?`Dodano â${e.name}â do listy życzeÅ`:"UsuniÄto z listy życzeÅ")},remove(e){this.items=this.items.filter(t=>t.id!==e),this.persist()},persist(){try{localStorage.setItem(Ar,JSON.stringify(this.items))}catch{}}}});function Cs(){const e=K(new Set),t=K(new Set),s=typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,a=i=>e.value.has(i),n=i=>t.value.has(i);async function o(i,r){if(e.value.has(i))return;e.value=new Set(e.value).add(i);let u=!1;try{u=await r()}finally{const f=new Set(e.value);f.delete(i),e.value=f}u&&!s&&(t.value=new Set(t.value).add(i),window.setTimeout(()=>{const f=new Set(t.value);f.delete(i),t.value=f},1200))}return{isPending:a,isAdded:n,track:o}}const xv={class:"vv-book__media"},Ev={key:0,class:"vv-book__badges"},zv=["aria-pressed","aria-label"],Pv=["href","aria-label"],Av={class:"vv-book__body"},Tv={class:"vv-book__title"},jv=["href"],Lv={key:0,class:"vv-book__meta"},Mv={key:0,class:"vv-book__author"},Iv={key:1,class:"vv-book__series"},Ov=["aria-label"],Nv={class:"vv-book__stars"},Dv={class:"vv-book__rcount"},Rv={key:3,class:"vv-book__release"},Fv={key:4,class:"vv-book__stock vv-book__stock--low"},Uv={key:5,class:"vv-book__stock vv-book__stock--out"},qv={class:"vv-book__foot"},Wv={key:0,class:"vv-book__price"},Hv={key:0,class:"vv-book__old"},Bv={key:1,class:"vv-book__save"},Kv=["disabled","aria-busy"],vs=Pe(ze({__name:"BookCard",props:{book:{},inWishlist:{type:Boolean},pending:{type:Boolean},added:{type:Boolean}},emits:["add","quick","wish"],setup(e,{emit:t}){const s=e,a=t,n=D(()=>s.book),o=D(()=>n.value.authors.map(R=>R.name).join(", ")),i=D(()=>{const R=n.value.series;return R?R.volume?`${R.name}, tom ${R.volume}`:R.name:""}),r=D(()=>!!n.value.rating&&n.value.rating.count>0),u=D(()=>{var R;return(((R=n.value.rating)==null?void 0:R.average)??0)/5*100}),f=D(()=>n.value.formats.find(R=>R.format==="physical")),c=D(()=>n.value.formats.some(R=>R.format==="ebook"&&R.available)),d=D(()=>{var b;const R=(b=f.value)==null?void 0:b.binding;return R==="hardcover"?"Twarda":R==="paperback"?"MiÄkka":R==="special"?"Kolekcjonerska":""}),h=D(()=>d.value||(c.value?"E-book":"")),m=D(()=>!d.value&&c.value),$=D(()=>n.value.availability==="preorder"||n.value.availability==="coming_soon"),y=D(()=>n.value.availability==="out_of_stock"),E=D(()=>n.value.availability==="low_stock"),L=D(()=>n.value.availability==="coming_soon"),w=D(()=>L.value?"Powiadom mnie":y.value?"NiedostÄpna":"Do koszyka"),T=new Intl.DateTimeFormat("pl-PL",{day:"numeric",month:"long",year:"numeric"}),M=D(()=>{var S;const R=(S=n.value.preorder)==null?void 0:S.releaseDate;if(!R)return"";const b=new Date(R);return Number.isNaN(b.getTime())?"":`Premiera: ${T.format(b)}`}),F=R=>`vv-badge vv-badge--${R}`,de={preorder:5,pack:4,tag:3,bestseller:2,limited:2,sale:1},te=D(()=>{let R=n.value.badges;return R.some(b=>b.kind==="preorder")&&(R=R.filter(b=>
24b.kind!=="bestseller")),[...R].sort((b,S)=>(de[S.kind]??0)-(de[b.kind]??0)).slice(0,2)});return(R,b)=>{var S,z;return v(),p("article",{class:ie(["vv-book",{"vv-book--out":y.value}])},[l("div",xv,[te.value.length?(v(),p("ul",Ev,[(v(!0),p(Z,null,fe(te.value,P=>(v(),p("li",{key:P.kind+P.label,class:ie(F(P.kind))},g(P.label),3))),128))])):C("",!0),l("button",{class:ie(["vv-book__wish",{"is-on":e.inWishlist}]),type:"button","aria-pressed":e.inWishlist,"aria-label":e.inWishlist?"UsuÅ z listy życzeÅ":"Dodaj do listy życzeÅ",onClick:b[0]||(b[0]=P=>a("wish",n.value))},g(e.inWishlist?"â¥":"â¡"),11,zv),l("a",{href:n.value.url,class:"vv-book__cover","aria-label":n.value.title},[ce(Ke,{id:n.value.id,title:n.value.title,author:o.value,series:(S=n.value.series)==null?void 0:S.name,volume:(z=n.value.series)==null?void 0:z.volume,"dyed-edges":n.value.dyedEdges,image:n.value.cover.url},null,8,["id","title","author","series","volume","dyed-edges","image"])],8,Pv),l("button",{class:"vv-book__quick",type:"button",onClick:b[1]||(b[1]=P=>a("quick",n.value))},"Szybki podglÄ
d")]),l("div",Av,[l("h3",Tv,[l("a",{href:n.value.url},g(n.value.title),9,jv)]),o.value||h.value?(v(),p("p",Lv,[o.value?(v(),p("span",Mv,g(o.value),1)):C("",!0),h.value?(v(),p("span",{key:1,class:ie(["vv-book__fmt",{"vv-book__fmt--ebook":m.value}])},g(o.value?" · ":"")+g(h.value),3)):C("",!0)])):C("",!0),i.value?(v(),p("p",Iv,g(i.value),1)):C("",!0),r.value?(v(),p("div",{key:2,class:"vv-book__rating",role:"img","aria-label":`Ocena ${n.value.rating.average} na 5`},[l("span",Nv,[l("span",{class:"vv-book__stars-on",style:Wt({width:u.value+"%"})},"â
â
â
â
â
",4),b[3]||(b[3]=l("span",{class:"vv-book__stars-off"},"â
â
â
â
â
",-1))]),l("span",Dv,"("+g(n.value.rating.count)+")",1)],8,Ov)):C("",!0),$.value&&M.value?(v(),p("p",Rv,g(M.value),1)):E.value?(v(),p("p",Fv,"Ostatnie sztuki"+g(n.value.stock?` (${n.value.stock})`:""),1)):y.value?(v(),p("p",Uv,"Obecnie brak na stanie")):C("",!0),l("div",qv,[n.value.price.amount>0?(v(),p("div",Wv,[n.value.regularPrice&&n.value.regularPrice.amount>n.value.price.amount?(v(),p("span",Hv,g(n.value.regularPrice.formatted),1)):C("",!0),l("strong",null,g(n.value.price.formatted),1)])):C("",!0),n.value.pack?(v(),p("p",Bv,"OszczÄdzasz "+g(n.value.pack.savings.formatted),1)):C("",!0),l("button",{class:ie(["vv-book__add",{"vv-book__add--pre":L.value,"is-pending":e.pending}]),type:"button",disabled:y.value||e.pending,"aria-busy":e.pending?"true":void 0,onClick:b[2]||(b[2]=P=>a("add",n.value))},[e.pending?(v(),p(Z,{key:0},[b[4]||(b[4]=l("span",{class:"vv-dots","aria-hidden":"true"},[l("i"),l("i"),l("i")],-1)),b[5]||(b[5]=l("span",{class:"visually-hidden"},"Dodawanieâ¦",-1))],64)):e.added?(v(),p(Z,{key:1},[ue("â Dodano")],64)):(v(),p(Z,{key:2},[ue(g(w.value),1)],64))],10,Kv)])])],2)}}}),[["__scopeId","data-v-97524bc4"]]),Vv=["aria-label"],Xv={class:"vv-quick__img"},Zv={class:"vv-quick__body"},Gv={key:0,class:"vv-quick__author"},Jv={class:"vv-quick__name","data-test":"quick-name"},Yv={key:1,class:"vv-quick__series"},Qv={key:2,class:"vv-quick__desc"},ef={class:"vv-quick__price"},tf={key:0,class:"vv-quick__old"},sf={key:3,class:"vv-quick__lowest30"},nf={class:"vv-quick__actions"},af=["disabled","aria-busy"],of=["aria-label"],rf=["href"],xs=Pe(ze({__name:"QuickView",props:{book:{},inWishlist:{type:Boolean},pending:{type:Boolean},added:{type:Boolean}},emits:["close","add","wish"],setup(e,{emit:t}){const s=e,a=t,n=D(()=>!!s.book),o=K(null);return ds(n,()=>o.value,()=>a("close")),(i,r)=>(v(),Ne(gt,{to:"body"},[ce(st,{name:"vv-fade"},{default:We(()=>{var u,f;return[e.book?(v(),p("div",{key:0,class:"vv-quick__overlay",onClick:r[3]||(r[3]=Be(c=>a("close"),["self"]))},[l("div",{ref_key:"panelEl",ref:o,class:"vv-quick",role:"dialog","aria-modal":"true","aria-label":e.book.title,tabindex:"-1"},[l("button",{class:"vv-quick__x",type:"button","aria-label":"Zamknij",onClick:r[0]||(r[0]=c=>a("close"))},"â"),l("div",Xv,[ce(Ke,{id:e.book.id,title:e.book.title,author:e.book.authors.map(c=>c.name).join(", "),series:(u=e.book.series)==null?void 0:u.name,volume:(f=e.book.series)==null?void 0:f.volume,"dyed-edges":e.book.dyedEdges,image:e.book.cover.url},null,8,["id","title","author","series","volume","dyed-edges","image"])]),l("div",Zv,[e.book.authors.length?(v(),p("p",Gv,g(e.book.authors.map(c=>c.name).join(", ")),1)):C("",!0),l("h3",Jv,g(e.book.title),1),e.book.series?(v(),p("p",Yv,g(e.book.series.name)+g(e.book.series.volume?`, tom ${e.book.series.volume}`:""),1)):C("",!0),e.book.description?(v(),p("p",Qv,g(e.book.description),1)):C("",!0),l("div",ef,[e.book.regularPrice&&e.book.regularPrice.amount>e.book.price.amount?(v(),p("span",tf,g(e.book.regularPrice.formatted),1)):C("",!0),l("strong",null,g(e.book.price.formatted),1)]),e.book.hasDiscount&&e.book.regularPrice&&e.book.lowestPrice30d?(v(),p("p",sf," Najniższa cena z ostatnich 30 dni: "+g(e.book.lowestPrice30d.formatted),1)):C("",!0),l("div",nf,[l("button",{class:ie(["vv-quick__add",{"is-pending":e.pending}]),type:"button","data-test":"quick-add",disabled:e.book.availability==="out_of_stock"||e.pending,"aria-busy":e.pending?"true":void 0,onClick:r[1]||(r[1]=c=>a("add",e.book))},[e.pending?(v(),p(Z,{key:0},[r[4]||(r[4]=l("span",{class:"vv-dots","aria-hidden":"true"},[l("i"),l("i"),l("i")],-1)),r[5]||(r[5]=l("span",{class:"visually-hidden"},"Dodawanieâ¦",-1))],64)):e.added?(v(),p(Z,{key:1},[ue("â Dodano")],64)):(v(),p(Z,{key:2},[ue(g(e.book.availability==="out_of_stock"?"NiedostÄpna":"Do koszyka"),1)],64))],10,af),l("button",{class:ie(["vv-quick__wish",{"is-on":e.inWishlist}]),type:"button","aria-label":e.inWishlist?"UsuÅ z listy życzeÅ":"Dodaj do listy życzeÅ",onClick:r[2]||(r[2]=c=>a("wish",e.book))},g(e.inWishlist?"â¥":"â¡"),11,of)]),l("a",{href:e.book.url,class:"vv-quick__full"},"Zobacz peÅnÄ
stronÄ produktu â",8,rf)])],8,Vv)])):C("",!0)]}),_:1})]))}}),[["__scopeId","data-v-367bfcc9"]]),lf={class:"vv-listing"},cf={class:"vv-listing__main"},uf={class:"vv-listing__hero"},df={class:"vv-listing__kicker"},vf={class:"vv-listing__h1"},ff={key:0,class:"vv-listing__desc"},pf=["aria-expanded"],hf={class:"vv-listing__chips",role:"group","aria-label":"Format"},mf=["disabled","onClick"],_f={key:0,class:"vv-chip__n"},gf=["disabled"],yf={key:0,class:"vv-chip__n"},bf={class:"vv-listing__controls"},kf=["aria-expanded"],wf={id:"vv-author-list",class:"vv-author__list",role:"listbox"},$f=["aria-selected","onClick","onMousemove"],Sf={class:"vv-author__n"},Cf={class:"vv-listing__select"},xf=["value"],Ef={key:1,class:"vv-listing__sortwrap"},zf={class:"vv-listing__select"},Pf=["value","selected"],Af={key:0,class:"vv-listing__spin","aria-hidden":"true"},Tf={class:"vv-view",role:"group","aria-label":"Sposób wyÅwietlania wyników"},jf=["aria-pressed"],Lf=["aria-pressed"],Mf={class:"vv-listing__meta"},If={key:0,class:"vv-skel__line vv-skel__line--meta","aria-hidden":"true"},Of={key:1,class:"vv-listing__count","data-test":"vv-total"},Nf={key:0,class:"vv-grid","aria-hidden":"true"},Df={key:1,class:"vv-listing__empty","data-test":"vv-search-empty"},Rf={class:"vv-listing__empty-title"},Ff={class:"vv-listing__empty-hint"},Uf={key:0,class:"vv-listing__empty-cats","aria-label":"Popularne dziaÅy"},qf=["href"],Wf={key:2,class:"vv-listing__empty","data-test":"vv-refine-empty"},Hf={class:"vv-listing__empty-hint"},Bf={class:"vv-listing__empty-actions"},Kf=["aria-busy"],Vf=["href","aria-label"],Xf={class:"vv-row__body"},Zf=["href"],Gf={class:"vv-row__meta"},Jf={key:0},Yf={key:1,class:"vv-row__fmt"},Qf={class:"vv-row__buy"}
24,ep={key:0,class:"vv-row__price"},tp={key:0},sp=["disabled","onClick"],np={key:5,class:"vv-listing__progress","data-test":"vv-progress"},ap={class:"vv-listing__progress-lbl"},op={class:"vv-listing__progress-track"},ip={key:6,class:"vv-listing__msg","data-test":"vv-loadingmore"},Tr=280,rp=Pe(ze({__name:"ProductListing",props:{endpoint:{},idCategory:{},type:{},cartUrl:{},token:{},categoryName:{},categoryDescription:{},mock:{type:Boolean},resultsPerPage:{},popular:{}},setup(e){const t=e,s=yt(),a=Jt(),n=ft(),o=t.mock?Sr(Tt):Ss(t.endpoint??""),i=t.resultsPerPage??24,r=K([]),u=K([]),f=K(),c=Ht({page:1,pages:1,total:0}),d=Ht({order:"",page:1,loading:!1,initial:!0}),h=K(""),m=K(null),$=K(null);let y=null;const E=()=>t.type==="search",L=K("all"),w=K(!1),T=K("all"),M=K("all"),F=D(()=>{const V=new Map;for(const U of r.value)for(const Se of U.authors)Se.name&&V.set(Se.name,(V.get(Se.name)??0)+1);return[...V.entries()].sort((U,Se)=>U[0].localeCompare(Se[0],"pl")).map(([U,Se])=>({name:U,n:Se}))});function de(V){return M.value==="all"||V.authors.some(U=>U.name===M.value)}const te=K(""),R=K(!1),b=K(-1),S=K(null),z=V=>V.normalize("NFD").replace(/[Ì-ͯ]/g,"").toLowerCase(),P=D(()=>{const V=z(te.value.trim());return V?F.value.filter(U=>z(U.name).includes(V)):F.value});function Q(V){M.value=V,te.value=V,R.value=!1,b.value=-1}function ge(){M.value="all",te.value="",b.value=-1}function we(){R.value=!0,b.value=-1,te.value.trim()===""&&M.value!=="all"&&(M.value="all")}function ke(V){if(V.key==="Escape"){R.value=!1;return}if(!R.value&&(V.key==="ArrowDown"||V.key==="Enter")){R.value=!0;return}if(V.key==="ArrowDown")V.preventDefault(),b.value=Math.min(b.value+1,P.value.length-1);else if(V.key==="ArrowUp")V.preventDefault(),b.value=Math.max(b.value-1,0);else if(V.key==="Enter"){V.preventDefault();const U=P.value[b.value]??P.value[0];U&&Q(U.name)}}function A(V){var U;(U=S.value)!=null&&U.contains(V.relatedTarget)||(R.value=!1,M.value==="all"?te.value="":te.value=M.value)}const O=K("grid");try{localStorage.getItem("vv_listing_view")==="list"&&(O.value="list")}catch{}function X(V){O.value=V;try{localStorage.setItem("vv_listing_view",V)}catch{}}const oe=K(!1),ne=K(null);let re=null;const ye=V=>V.authors.map(U=>U.name).join(", ");function De(V){var J;const U=(J=V.formats.find(rt=>rt.format==="physical"))==null?void 0:J.binding;return(U==="hardcover"?"Oprawa twarda":U==="paperback"?"Oprawa miÄkka":U==="special"?"Kolekcjonerska":"")||(V.formats.some(rt=>rt.format==="ebook")?"E-book":"")}const he=[{key:"all",label:"Cena: dowolna",min:0,max:1/0},{key:"a",label:"do 40 zÅ",min:0,max:40},{key:"b",label:"40â70 zÅ",min:40,max:70},{key:"c",label:"70â120 zÅ",min:70,max:120},{key:"d",label:"powyżej 120 zÅ",min:120,max:1/0}],$e=D(()=>he.find(V=>V.key===T.value)??he[0]);function Ve(V){return L.value==="all"?!0:L.value==="ebook"?V.formats.some(U=>U.format==="ebook"):V.formats.some(U=>U.format==="physical"&&U.binding===L.value)}function pt(V){const U=$e.value;return V.price.amount>=U.min&&V.price.amount<U.max}const Yt=D(()=>r.value.filter(V=>V.availability!=="out_of_stock")),Ge=D(()=>r.value.filter(V=>V.availability==="out_of_stock")),it=D(()=>(W.value&&Ge.value.length?[...Yt.value,...Ge.value]:Yt.value).filter(U=>Ve(U)&&pt(U)&&de(U)&&(!w.value||U.hasDiscount))),_=D(()=>{if(f.value)return{...f.value.price};const V={a:0,b:0,c:0,d:0};for(const U of r.value){const Se=U.price.amount;Se<40?V.a++:Se<70?V.b++:Se<120?V.c++:V.d++}return V}),k=D(()=>{var Se;const V=f.value;if(V)return{all:V.total,hardcover:V.formats.hardcover,paperback:V.formats.paperback,ebook:V.formats.ebook,sale:V.sale};const U={all:r.value.length,hardcover:0,paperback:0,ebook:0,sale:0};for(const J of r.value){J.formats.some(tn=>tn.format==="ebook")&&U.ebook++;const rt=(Se=J.formats.find(tn=>tn.format==="physical"))==null?void 0:Se.binding;rt==="hardcover"?U.hardcover++:rt==="paperback"&&U.paperback++,J.hasDiscount&&U.sale++}return U}),I=D(()=>L.value!=="all"||w.value||T.value!=="all"||M.value!=="all"),W=D(()=>c.page>=c.pages),B=D(()=>I.value?W.value?it.value.length:M.value!=="all"?null:[L.value!=="all",w.value,T.value!=="all"].filter(
24Boolean).length===1&&f.value?L.value!=="all"?k.value[L.value]:w.value?k.value.sale:_.value[T.value]??null:null:c.total),q=V=>{if(V===1)return"tytuÅ";const U=V%10,Se=V%100;return U>=2&&U<=4&&(Se<12||Se>14)?"tytuÅy":"tytuÅów"};function se(){L.value="all",w.value=!1,T.value="all",M.value="all",te.value=""}const Y=[{key:"all",label:"Wszystkie"},{key:"hardcover",label:"Twarda"},{key:"paperback",label:"MiÄkka"},{key:"ebook",label:"E-book"}],ee=D(()=>E()?h.value?`Wyniki: â${h.value}â`:"Wyniki wyszukiwania":(t.categoryName||"Katalog").replace(/^\s*kategoria:\s*/i,"")),H=K(!1),le=D(()=>(t.categoryDescription??"").trim()),x=D(()=>le.value.length>Tr+60),j=D(()=>{if(!x.value||H.value)return le.value;const V=le.value.slice(0,Tr);return V.slice(0,Math.max(V.lastIndexOf(" "),200)).replace(/[\s,;:.]+$/u,"")+"â¦"});async function ae(V=!1){d.loading=!0;try{const U=await o.fetchListing({idCategory:t.idCategory,type:t.type,search:h.value,order:d.order,page:d.page,resultsPerPage:i});r.value=V?[...r.value,...U.products]:U.products,u.value=U.sortOrders,V||(f.value=U.refine??f.value),Object.assign(c,U.pagination)}finally{d.loading=!1,d.initial=!1}}function _e(){d.page=1,ae(!1)}function N(){return $.value?$.value.getBoundingClientRect().top<=window.innerHeight+400:!1}const pe=K(0);async function Ce(V=!1){d.loading||d.page>=c.pages||V&&I.value&&!it.value.length&&pe.value>=2||(d.page+=1,await ae(!0),I.value&&!it.value.length?pe.value+=1:pe.value=0,await ts(),N()&&d.page<c.pages&&Ce(!0))}Ue([L,w,T,M],()=>{pe.value=0,ts(()=>{!it.value.length&&N()&&d.page<c.pages&&Ce(!0)})});function Ie(V){d.order=V.target.value,_e()}const Re=D(()=>d.loading&&!d.initial&&d.page===1),He=Cs();async function Ut(V){if(V.availability!=="out_of_stock"){if(t.mock){n.push(`Dodano â${V.title}â do koszyka`);return}s.configure(t.cartUrl??"",t.token??""),await He.track(V.id,async()=>{const U=await s.add(V.id,1,V.id_product_attribute??0),Se=!!(U&&!U.hasError&&U.cart);return Se&&!s.drawerHosts&&n.push(`Dodano â${V.title}â do koszyka`,"success",5e3,t.cartUrl?{label:"Do koszyka â",href:t.cartUrl}:void 0),Se})}}function en(V){a.toggle({id:V.id,name:V.title,price:V.price.formatted,image:V.cover.url??"",url:V.url})}return Oe(async()=>{t.mock||s.configure(t.cartUrl??"",t.token??"");const V=new URLSearchParams(window.location.search);E()&&(h.value=V.get("s")??""),await ae(!1),y=new IntersectionObserver(Se=>{var J;(J=Se[0])!=null&&J.isIntersecting&&Ce(!0)},{rootMargin:"400px"}),$.value&&y.observe($.value);const U=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--header-h"))||140;re=new IntersectionObserver(([Se])=>{oe.value=!((Se==null?void 0:Se.isIntersecting)??!0)},{rootMargin:`-${U+1}px 0px 0px 0px`}),ne.value&&re.observe(ne.value),await ts(),N()&&d.page<c.pages&&Ce(!0)}),vt(()=>{y==null||y.disconnect(),re==null||re.disconnect()}),(V,U)=>{var Se;return v(),p("div",lf,[l("div",cf,[l("header",uf,[l("p",df,g(E()?"Wyszukiwanie":"Katalog"),1),l("h1",vf,g(ee.value),1),le.value&&!E()?(v(),p("p",ff,[l("span",{class:ie(["vv-listing__desc-text",{"is-clamped":x.value&&!H.value}])},g(j.value),3),x.value?(v(),p("button",{key:0,type:"button",class:"vv-listing__desc-toggle","aria-expanded":H.value,onClick:U[0]||(U[0]=J=>H.value=!H.value)},g(H.value?"ZwiÅ":"Czytaj wiÄcej"),9,pf)):C("",!0)])):C("",!0)]),l("div",{ref_key:"toolbarSentinel",ref:ne,"aria-hidden":"true"},null,512),l("div",{class:ie(["vv-listing__toolbar",{"is-stuck":oe.value}])},[l("div",hf,[(v(),p(Z,null,fe(Y,J=>l("button",{key:J.key,type:"button",class:ie(["vv-chip",{"is-active":L.value===J.key}]),disabled:!d.initial&&J.key!=="all"&&!k.value[J.key],onClick:rt=>L.value=J.key},[ue(g(J.label),1),J.key!=="all"&&!d.initial?(v(),p("span",_f,g(k.value[J.key]),1)):C("",!0)],10,mf)),64)),l("button",{type:"button",class:ie(["vv-chip vv-chip--sale",{"is-active":w.value}]),disabled:!d.initial&&!k.value.sale,onClick:U[1]||(U[1]=J=>w.value=!w.value)},[U[13]||(U[13]=ue("Promocje",-1)),d.initial?C("",!0):(v(),p("span",yf,g(k.value.sale),1))],10,gf)]),l("div",bf,[F.value.length>1?(v(),p("span",{key:0,ref_key:"authorBox",ref:S,class:"vv-author",onFocusout:A},[_t(l("input",{"onUpdate:modelValue":U[2]||(U[2]=J=>te.value=J),type:"text",class:"vv-listing__sort vv-author__input",placeholder:"Autorâ¦",role:"combobox","aria-label":"Filtr autora â wpisz nazwisko","aria-expanded":R.value,"aria-autocomplete":"list","aria-controls":"vv-author-list",autocomplete:"off","data-test":"vv-author",onInput:we,onFocus:U[3]||(U[3]=J=>R.value=!0),onKeydown:ke},null,40,kf),[[us,te.value]]),M.value!=="all"?(v(),p("button",{key:0,t
24ype:"button",class:"vv-author__clear","aria-label":"WyczyÅÄ filtr autora",onMousedown:U[4]||(U[4]=Be(()=>{},["prevent"])),onClick:ge},"â",32)):C("",!0),_t(l("ul",wf,[(v(!0),p(Z,null,fe(P.value,(J,rt)=>(v(),p("li",{key:J.name,role:"option","aria-selected":M.value===J.name,class:ie(["vv-author__opt",{"is-active":rt===b.value}]),onMousedown:U[5]||(U[5]=Be(()=>{},["prevent"])),onClick:tn=>Q(J.name),onMousemove:tn=>b.value=rt},[ue(g(J.name)+" ",1),l("span",Sf,g(J.n),1)],42,$f))),128))],512),[[Hi,R.value&&P.value.length]])],544)):C("",!0),l("span",Cf,[_t(l("select",{"onUpdate:modelValue":U[6]||(U[6]=J=>T.value=J),class:"vv-listing__sort","aria-label":"Filtr ceny"},[(v(),p(Z,null,fe(he,J=>l("option",{key:J.key,value:J.key},g(J.label)+g(J.key!=="all"&&!d.initial?` (${_.value[J.key]})`:""),9,xf)),64))],512),[[ir,T.value]])]),u.value.length?(v(),p("label",Ef,[U[14]||(U[14]=l("span",{class:"vv-listing__sortlbl"},"Sortuj",-1)),l("span",zf,[l("select",{class:"vv-listing__sort","aria-label":"Sortowanie",onChange:Ie},[(v(!0),p(Z,null,fe(u.value,J=>(v(),p("option",{key:J.value,value:J.value,selected:J.current},g(J.label),9,Pf))),128))],32)]),Re.value?(v(),p("span",Af)):C("",!0)])):C("",!0),l("span",Tf,[l("button",{type:"button",class:ie(["vv-view__btn",{"is-active":O.value==="grid"}]),"aria-label":"Widok siatki","aria-pressed":O.value==="grid",onClick:U[7]||(U[7]=J=>X("grid"))},[...U[15]||(U[15]=[Oc('<svg viewBox="0 0 16 16" width="15" height="15" aria-hidden="true" data-v-5582e995><rect x="1" y="1" width="6" height="6" data-v-5582e995></rect><rect x="9" y="1" width="6" height="6" data-v-5582e995></rect><rect x="1" y="9" width="6" height="6" data-v-5582e995></rect><rect x="9" y="9" width="6" height="6" data-v-5582e995></rect></svg>',1)])],10,jf),l("button",{type:"button",class:ie(["vv-view__btn",{"is-active":O.value==="list"}]),"aria-label":"Widok listy","aria-pressed":O.value==="list",onClick:U[8]||(U[8]=J=>X("list")),"data-test":"vv-view-list"},[...U[16]||(U[16]=[l("svg",{viewBox:"0 0 16 16",width:"15",height:"15","aria-hidden":"true"},[l("rect",{x:"1",y:"2",width:"14",height:"2.6"}),l("rect",{x:"1",y:"6.7",width:"14",height:"2.6"}),l("rect",{x:"1",y:"11.4",width:"14",height:"2.6"})],-1)])],10,Lf)])])],2),l("div",Mf,[d.initial?(v(),p("span",If)):(v(),p("span",Of,[B.value!==null?(v(),p(Z,{key:0},[ue(g(B.value)+" "+g(q(B.value)),1)],64)):(v(),p(Z,{key:1},[ue(g(it.value.length)+" pasujÄ
cych z "+g(r.value.length)+" wczytanych",1)],64))])),I.value?(v(),p("button",{key:2,class:"vv-listing__clear",type:"button",onClick:se},"â WyczyÅÄ filtry")):C("",!0)]),d.initial&&d.loading?(v(),p("ul",Nf,[(v(!0),p(Z,null,fe(G(i),J=>(v(),p("li",{key:J,class:"vv-skel"},[...U[17]||(U[17]=[l("div",{class:"vv-skel__cover"},null,-1),l("div",{class:"vv-skel__line vv-skel__line--sm"},null,-1),l("div",{class:"vv-skel__line"},null,-1),l("div",{class:"vv-skel__line vv-skel__line--price"},null,-1)])]))),128))])):E()&&!r.value.length?(v(),p("div",Df,[l("p",Rf,g(h.value?`Brak wyników dla â${h.value}â`:"Wpisz, czego szukasz"),1),l("p",Ff,g(h.value?"Sprawdź pisowniÄ albo spróbuj krótszej, ogólniejszej frazy â wystarczy fragment tytuÅu lub samo nazwisko autora.":"Użyj pola wyszukiwania u góry strony â wystarczy fragment tytuÅu lub nazwisko autora."),1),(Se=e.popular)!=null&&Se.length?(v(),p("nav",Uf,[U[18]||(U[18]=l("span",{class:"vv-listing__empty-lbl"},"Albo zajrzyj do popularnych dziaÅów:",-1)),(v(!0),p(Z,null,fe(e.popular,J=>(v(),p("a",{key:J.url,class:"vv-chip vv-chip--link",href:J.url},g(J.name),9,qf))),128))])):C("",!0)])):!it.value.length&&(I.value||W.value)?(v(),p("div",Wf,[U[19]||(U[19]=l("p",{class:"vv-listing__empty-title"},"Brak tytuÅów speÅniajÄ
cych kryteria",-1)),l("p",Hf,[W.value?(v(),p(Z,{key:1},[ue("PrzejrzeliÅmy caÅy dziaÅ â zmieÅ lub wyczyÅÄ filtry.")],64)):(v(),p(Z,{key:0},[ue("WÅród wczytanych "+g(r.value.length)+" z "+g(c.total)+" tytuÅów nic nie pasuje do wybranych filtrów.",1)],64))]),l("div",Bf,[I.value?(v(),p("button",{key:0,type:"button",class:"vv-listing__empty-cta","data-test":"vv-clear-filters",onClick:se},"WyczyÅÄ filtry")):C("",!0),W.value?C("",!0):(v(),p("button",{key:1,type:"button",class:"vv-listing__more vv-listing__more--inline",onClick:U[9]||(U[9]=J=>Ce(!1))},"Szukaj dalej"))])])):O.value==="list"?(v(),p("ul",{key:3,class:ie(["vv-rows",{"is-reloading":Re.value}]),"data-test":"vv-rows","aria-busy":Re.value?"true":void 0}
24,[(v(!0),p(Z,null,fe(it.value,J=>(v(),p("li",{key:J.id,class:ie(["vv-row",{"is-out":J.availability==="out_of_stock"}])},[l("a",{href:J.url,class:"vv-row__cover","aria-label":J.title,tabindex:"-1"},[ce(Ke,{id:J.id,title:J.title,author:ye(J),image:J.cover.url},null,8,["id","title","author","image"])],8,Vf),l("div",Xf,[l("a",{href:J.url,class:"vv-row__title"},g(J.title),9,Zf),l("p",Gf,[ye(J)?(v(),p("span",Jf,g(ye(J)),1)):C("",!0),De(J)?(v(),p("span",Yf,g(De(J)),1)):C("",!0)])]),l("div",Qf,[J.price.amount>0?(v(),p("span",ep,[J.regularPrice&&J.regularPrice.amount>J.price.amount?(v(),p("s",tp,g(J.regularPrice.formatted),1)):C("",!0),l("strong",null,g(J.price.formatted),1)])):C("",!0),l("button",{type:"button",class:"vv-row__cta",disabled:J.availability==="out_of_stock"||G(He).isPending(J.id),onClick:rt=>Ut(J)},g(J.availability==="out_of_stock"?"NiedostÄpna":G(He).isAdded(J.id)?"â Dodano":"Do koszyka"),9,sp)])],2))),128))],10,Kf)):(v(),Ne(sr,{key:4,tag:"ul",name:"vv-card",class:ie(["vv-grid",{"is-reloading":Re.value}]),"data-test":"vv-grid","aria-busy":Re.value?"true":void 0},{default:We(()=>[(v(!0),p(Z,null,fe(it.value,J=>(v(),p("li",{key:J.id},[ce(vs,{book:J,"in-wishlist":G(a).has(J.id),pending:G(He).isPending(J.id),added:G(He).isAdded(J.id),onAdd:Ut,onQuick:U[10]||(U[10]=rt=>m.value=rt),onWish:en},null,8,["book","in-wishlist","pending","added"])]))),128))]),_:1},8,["class","aria-busy"])),l("div",{ref_key:"sentinel",ref:$,class:"vv-listing__sentinel"},null,512),!I.value&&!W.value&&r.value.length&&c.total?(v(),p("div",np,[l("p",ap,"Wczytano "+g(r.value.length)+" z "+g(c.total),1),l("span",op,[l("span",{class:"vv-listing__progress-fill",style:Wt({width:r.value.length/c.total*100+"%"})},null,4)])])):C("",!0),d.loading&&!d.initial&&d.page>1?(v(),p("p",ip,"DoczytujÄâ¦")):!Re.value&&it.value.length&&c.page<c.pages?(v(),p("button",{key:7,class:"vv-listing__more",type:"button",onClick:U[11]||(U[11]=J=>Ce(!1))},"Pokaż wiÄcej")):C("",!0)]),ce(xs,{book:m.value,"in-wishlist":m.value?G(a).has(m.value.id):!1,pending:m.value?G(He).isPending(m.value.id):!1,added:m.value?G(He).isAdded(m.value.id):!1,onClose:U[12]||(U[12]=J=>m.value=null),onAdd:Ut,onWish:en},null,8,["book","in-wishlist","pending","added"])])}}}),[["__scopeId","data-v-5582e995"]]),lp=["aria-expanded","aria-activedescendant"],cp={key:0,class:"vv-search__drop","data-test":"search-drop"},up={key:0,class:"vv-search__muted"},dp=["aria-busy"],vp=["id","aria-selected","onMouseenter","onClick"],fp={class:"vv-search__thumb"},pp={class:"vv-search__meta"},hp={key:0,class:"vv-search__author"},mp={key:0,class:"vv-search__mark"},_p={class:"vv-search__name"},gp={key:0,class:"vv-search__mark"},yp={class:"vv-search__price"},bp={key:0,class:"vv-search__old"},kp={key:1,class:"vv-search__muted","data-test":"search-noresults"},wp=30,$p=Pe(ze({__name:"SearchBox",props:{endpoint:{},searchUrl:{},mock:{type:Boolean},variant:{}},setup(e){const t=e,s=t.variant??"noir",a=t.mock?Sr(Tt):Ss(t.endpoint??""),n=K(""),o=K([]),i=K(0),r=K(!1),u=K(!1);let f=!1;const c=K(!1),d=K(-1),h=K(null);let m,$=0,y=null;const E=new Map,L=S=>S.authors.map(z=>z.name).join(", ");Ue(n,S=>{if(window.clearTimeout(m),f){f=!1;return}if(d.value=-1,c.value=!1,S.trim().length<2){y==null||y.abort(),y=null,$+=1,o.value=[],r.value=!1,u.value=!1;return}const z=E.get(S.trim().toLowerCase());if(z){y==null||y.abort(),y=null,$+=1,o.value=z.hits,i.value=z.total,c.value=!0,r.value=!0,u.value=!1;return}m=window.setTimeout(w,180)});async function w(){var P;u.value=!0;const S=++$,z=n.value.trim().toLowerCase();y==null||y.abort(),y=new AbortController;try{const Q=await a.fetchListing({type:"search",search:n.value,resultsPerPage:6,light:!0,signal:y.signal});if(S!==$)return;o.value=Q.products.slice(0,6),i.value=((P=Q.pagination)==null?void 0:P.total)??Q.products.length,E.size>=wp&&E.delete(E.keys().next().value),E.set(z,{hits:o.value,total:i.value}),c.value=!0,r.value=!0}catch(Q){if((Q==null?void 0:Q.name)!=="AbortError")throw Q}finally{S===$&&(u.value=!1)}}const T=S=>S.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/Å/g,"l").replace(/Å/g,"L").toLowerCase().charAt(0)||S;function M(S){const z=n.value.trim();if(!z||!S)return{pre:S,hit:"",post:""};const P=Array.from(S),ge=P.map(T).join("").indexOf(Array.from(z).map(T).join(""));if(ge<0)return{pre:S,hit:"",post:""};const we=ge+Array.from(z).length;return{pre:P.slice(0,ge).join(""),hit:P.slice(ge,we).join(""),post:P.slice(we).join("")}}const F=D(()=>o.value.map(S=>({title:M(S.title),author:M(L(S))})));function de(){const S=t.searchUrl??"";S&&n.value.trim().length&&(window.location.href=`${S}?s=${encodeURIComponent(n.value)}`)}function te(S){S.url&&(window.location.href=S.url)}function R(S){!r.value||!o.value.length||(S.key==="ArrowDown"?(S.preventDefault(),d.value=(d.value+1)%o.value.length):S.key==="ArrowUp"?(S.preventDefault(),d.value=d.value<=0?o.value.length-1:d.value-1):S.key==="Enter"&&d.value>=0&&o.value[d.value]&&(S.preventDefault(),te(o.value[d.value])))}function b(S){h.value&&!h.value.contains(S.target)&&(r.value=!1)}return Oe(()=>{document.addEventListener("mousedown",b);const S=window.location.pathname.includes("szukaj")||new URLSearchParams(window.location.search).get("controller")==="search",z=new
24URLSearchParams(window.location.search).get("s");S&&z&&z.trim()&&(f=!0,n.value=z)}),vt(()=>document.removeEventListener("mousedown",b)),(S,z)=>(v(),p("div",{ref_key:"root",ref:h,class:ie(["vv-search",`vv-search--${G(s)}`]),onKeydown:z[2]||(z[2]=qn(P=>r.value=!1,["escape"]))},[l("form",{class:"vv-search__form",role:"search",onSubmit:Be(de,["prevent"])},[z[3]||(z[3]=l("button",{type:"submit",class:"vv-search__btn","aria-label":"Szukaj"},[l("span",{class:"material-icons","aria-hidden":"true"},"")],-1)),_t(l("input",{"onUpdate:modelValue":z[0]||(z[0]=P=>n.value=P),type:"search",class:"vv-search__input",placeholder:"Szukaj tytuÅu, autora lub serii","aria-label":"Szukaj ksiÄ
żek i autorów","data-test":"search-input",role:"combobox","aria-autocomplete":"list","aria-controls":"vv-search-list","aria-expanded":r.value,"aria-activedescendant":d.value>=0&&o.value[d.value]?`vv-sr-opt-${o.value[d.value].id}`:void 0,onFocus:z[1]||(z[1]=P=>r.value=o.value.length>0),onKeydown:R},null,40,lp),[[us,n.value]])],32),r.value&&(o.value.length||u.value||c.value)?(v(),p("div",cp,[u.value?(v(),p("p",up,"Szukamâ¦")):C("",!0),_t(l("ul",{id:"vv-search-list",class:ie(["vv-search__list",{"is-stale":u.value&&o.value.length}]),"aria-busy":u.value?"true":void 0,role:"listbox","aria-label":"Wyniki wyszukiwania"},[(v(!0),p(Z,null,fe(o.value,(P,Q)=>{var ge;return v(),p("li",{id:`vv-sr-opt-${P.id}`,key:P.id,class:ie(["vv-search__hit",{"is-active":Q===d.value}]),role:"option","aria-selected":Q===d.value,"data-test":"search-hit",onMouseenter:we=>d.value=Q,onClick:we=>te(P)},[l("span",fp,[ce(Ke,{id:P.id,title:P.title,series:(ge=P.series)==null?void 0:ge.name,"dyed-edges":P.dyedEdges,image:P.cover.url},null,8,["id","title","series","dyed-edges","image"])]),l("span",pp,[L(P)?(v(),p("span",hp,[ue(g(F.value[Q].author.pre),1),F.value[Q].author.hit?(v(),p("strong",mp,g(F.value[Q].author.hit),1)):C("",!0),ue(g(F.value[Q].author.post),1)])):C("",!0),l("span",_p,[ue(g(F.value[Q].title.pre),1),F.value[Q].title.hit?(v(),p("strong",gp,g(F.value[Q].title.hit),1)):C("",!0),ue(g(F.value[Q].title.post),1)])]),l("span",yp,[P.regularPrice&&P.regularPrice.amount>P.price.amount?(v(),p("s",bp,g(P.regularPrice.formatted),1)):C("",!0),ue(" "+g(P.price.formatted),1)])],42,vp)}),128))],10,dp),[[Hi,o.value.length]]),!u.value&&c.value&&!o.value.length?(v(),p("p",kp,"Brak wyników dla â"+g(n.value)+"â.",1)):C("",!0),o.value.length?(v(),p("button",{key:2,type:"button",class:"vv-search__all",onClick:de},"Zobacz wszystkie wyniki"+g(i.value?` (${i.value})`:"")+" â",1)):C("",!0)])):C("",!0)],34))}}),[["__scopeId","data-v-abc27a2a"]]),Sp={class:"vv-wl"},Cp={key:0,class:"vv-wl__badge","data-test":"wish-count"},xp={class:"vv-wl__head"},Ep={key:0,class:"vv-wl__empty","data-test":"wish-empty"},zp=["href"],Pp={key:1,class:"vv-wl__list"},Ap=["href"],Tp={class:"vv-wl__body"},jp=["href"],Lp={class:"vv-wl__price"},Mp=["href"],Ip=["disabled","aria-label","onClick"],Op=["onClick"],Np=Pe(ze({__name:"WishlistDrawer",props:{cartUrl:{},token:{},catalogUrl:{}},setup(e){const t=e,s=Jt(),a=yt(),n=K(!1),o=K(null),i=K(null);ds(n,()=>i.value,()=>{n.value=!1}),t.cartUrl&&a.configure(t.cartUrl,t.token??""),Ue(()=>s.openSeq,()=>{o.value&&(o.value.offsetWidth||o.value.offsetHeight)&&(n.value=!0)}),Ue(n,c=>{s.panelOpen=c});const r=K([]),u=K([]);async function f(c){if(!(!t.cartUrl||r.value.includes(c.id))){r.value=[...r.value,c.id];try{const d=await a.add(c.id,1,0);d&&!d.hasError&&d.cart?(s.remove(c.id),a.drawerHosts===0&&ft().push(`Dodano â${c.name}â do koszyka`,"success",5e3,t.cartUrl?{label:"Do koszyka â",href:t.cartUrl}:void 0)):u.value=[...u.value,c.id]}catch{u.value=[...u.value,c.id]}finally{r.value=r.value.filter(d=>d!==c.id)}}}return(c,d)=>(v(),p("div",Sp,[l("button",{ref_key:"btnEl",ref:o,class:"vv-wl__btn",type:"button","aria-label":"Lista życzeÅ",onClick:d[0]||(d[0]=h=>n.value=!0)},[d[4]||(d[4]=l("span",{class:"material-icons","aria-hidden":"true"},"",-1)),G(s).count>0?(v(),p("span",Cp,g(G(s).count),1)):C("",!0)],512),(v(),Ne(gt,{to:"body"},[ce(st,{name:"vv-slide"},{default:We(()=>[n.value?(v(),p("div",{key:0,class:"vv-wl__overlay",onClick:d[3]||(d[3]=Be(h=>n.value=!1,["self"]))},[l("aside",{ref_key:"panelEl",ref:i,class:"vv-wl__panel",role:"dialog","aria-modal":"true","aria-label":"Lista życzeÅ",tabindex:"-1"},[l("header",xp,[d[5]||(d[5]=l("strong",null,"Lista życzeÅ",-1)),l("button",{class:"vv-wl__close",type:"button","aria-label":"Zamknij",onClick:d[1]||(d[1]=h=>n.value=!1)}
24,"â")]),G(s).items.length?(v(),p("ul",Pp,[(v(!0),p(Z,null,fe(G(s).items,h=>(v(),p("li",{key:h.id,class:"vv-wl__item","data-test":"wish-item"},[l("a",{href:h.url,class:"vv-wl__thumb"},[ce(Ke,{id:h.id,name:h.name,image:h.image},null,8,["id","name","image"])],8,Ap),l("div",Tp,[l("a",{href:h.url,class:"vv-wl__name"},g(h.name),9,jp),l("span",Lp,g(h.price),1),u.value.includes(h.id)?(v(),p("a",{key:0,href:h.url,class:"vv-wl__goto","data-test":"wish-goto"},"Zobacz produkt",8,Mp)):e.cartUrl?(v(),p("button",{key:1,class:"vv-wl__add",type:"button",disabled:r.value.includes(h.id),"aria-label":`Dodaj â${h.name}â do koszyka`,"data-test":"wish-add",onClick:m=>f(h)},g(r.value.includes(h.id)?"Dodawanieâ¦":"Do koszyka"),9,Ip)):C("",!0)]),l("button",{class:"vv-wl__rm",type:"button","aria-label":"UsuÅ",onClick:m=>G(s).remove(h.id)},"â",8,Op)]))),128))])):(v(),p("div",Ep,[d[6]||(d[6]=l("span",{class:"vv-wl__empty-ico","aria-hidden":"true"},"â¦",-1)),d[7]||(d[7]=l("p",{class:"vv-wl__empty-title"},"Twoja lista życzeÅ jest pusta",-1)),d[8]||(d[8]=l("p",{class:"vv-wl__empty-sub"},"Serce na okÅadce zapamiÄta każdy tytuÅ, do którego chcesz wróciÄ.",-1)),l("a",{href:e.catalogUrl||"/",class:"vv-wl__empty-cta",onClick:d[2]||(d[2]=h=>n.value=!1)},"PrzeglÄ
daj katalog",8,zp)]))],512)])):C("",!0)]),_:1})]))]))}}),[["__scopeId","data-v-141106d0"]]),Dp={class:"vv-toasts",role:"status","aria-live":"polite"},Rp=["onClick"],Fp={class:"vv-toast__icon","aria-hidden":"true"},Up={class:"vv-toast__msg"},qp=["href"],Wp=Pe(ze({__name:"ToastHost",setup(e){const t=ft(),s=a=>a==="error"?"â ":a==="info"?"â¹":"â";return(a,n)=>(v(),Ne(gt,{to:"body"},[l("div",Dp,[ce(sr,{name:"vv-toast"},{default:We(()=>[(v(!0),p(Z,null,fe(G(t).items,o=>(v(),p("div",{key:o.id,class:ie(["vv-toast",`vv-toast--${o.type}`]),"data-test":"toast",onClick:i=>G(t).dismiss(o.id)},[l("span",Fp,g(s(o.type)),1),l("span",Up,g(o.message),1),o.action?(v(),p("a",{key:0,class:"vv-toast__action",href:o.action.href,"data-test":"toast-action",onClick:n[0]||(n[0]=Be(()=>{},["stop"]))},g(o.action.label),9,qp)):C("",!0)],10,Rp))),128))]),_:1})])]))}}),[["__scopeId","data-v-7b28bb9a"]]),jr="vv_recent",Hp=8;function Bp(){try{return JSON.parse(localStorage.getItem(jr)||"[]")}catch{return[]}}const Lr=Hn("recent",{state:()=>({items:Bp()}),actions:{track(e){!e||!e.id||(this.items=[e,...this.items.filter(t=>t.id!==e.id)].slice(0,Hp),this.persist())},persist(){try{localStorage.setItem(jr,JSON.stringify(this.items))}catch{}}}}),Kp={key:0,class:"vv-recent","data-test":"recent"},Vp={class:"vv-recent__grid"},Xp=Pe(ze({__name:"RecentlyViewed",props:{current:{},cartUrl:{},token:{}},setup(e){const t=e,s=Lr(),a=yt(),n=Jt(),o=ft(),i=K(null);Oe(()=>{t.current&&t.current.id&&s.track(t.current),t.cartUrl&&a.configure(t.cartUrl,t.token??"")});const r=D(()=>s.items.filter(h=>{var m;return h.id!==((m=t.current)==null?void 0:m.id)}).slice(0,6)),u=D(()=>r.value.map(h=>{const m=Qs(h.name),$=At(h.price),y=br(h.name);let E=h.regular_price?At(h.regular_price):void 0;return(!E||E.amount<=$.amount)&&(h.wholesale_amount??0)>$.amount+.01&&(E=Me(h.wholesale_amount)),{id:h.id,url:h.url,title:yr(h.name),authors:m?[{name:m}]:[],cover:{url:h.image||void 0},price:$,regularPrice:E,formats:[y?{format:"ebook",price:$,available:!0,isOnline:!0}:{format:"physical",price:$,available:!0}],defaultFormat:y?"ebook":"physical",availability:"in_stock",badges:[]}})),f=Cs();async function c(h){a.configure(t.cartUrl??"",t.token??""),await f.track(h.id,async()=>{const m=await a.add(h.id,1,h.id_product_attribute??0),$=!!(m&&!m.hasError&&m.cart);return $&&!a.drawerHosts&&o.push(`Dodano â${h.title}â do koszyka`,"success",5e3,t.cartUrl?{label:"Do koszyka â",href:t.cartUrl}:void 0),$})}function d(h){n.toggle({id:h.id,name:h.title,price:h.price.formatted,image:h.cover.url??"",url:h.url})}return(h,m)=>r.value.length?(v(),p("section",Kp,[m[2]||(m[2]=l("h2",{class:"vv-recent__title"},"Ostatnio oglÄ
dane",-1)),l("ul",Vp,[(v(!0),p(Z,null,fe(u.value,$=>(v(),p("li",{key:$.id,"data-test":"recent-item"},[ce(vs,{book:$,"in-wishlist":G(n).has($.id),pending:G(f).isPending($.id),added:G(f).isAdded($.id),onAdd:c,onQuick:m[0]||(m[0]=y=>i.value=y),onWish:d},null,8,["book","in-wishlist","pending","added"])]))),128))]),ce(xs,{book:i.value,"in-wishlist":i.value?G(n).has(i.value.id):!1,pending:i.value?G(f).isPending(i.value.id):!1,added:i.value?G(f).isAdded(i.value.id):!1,onClose:m[1]||(m[1]=$=>i.value=null),onAdd:c,onWish:d},null,8,["book","in-wishlist","pending","added"])])):C("",!0)}}),[["__scopeId","data-v-8a9a0a9d"]]),Zp={key:0,class:"vv-strip","data-test":"product-strip"},Gp={class:"vv-strip__grid"},Jp=6,Yp=Pe(ze({__name:"ProductStrip",props:{items:{},cartUrl:{},token:{}},setup(e){const t=e,s=yt(),a=Jt(),n=ft(),o=K(null);Oe(()=>{t.cartUrl&&s.configure(t.cartUrl,t.token??"")});const i=D(()=>(t.items??[]).slice(0,Jp).map(c=>{const d=Qs(c.name),h=At(c.price),m=br(c.name),$=!!c.has_discount&&!!c.regular_price;let y=c.regular_price?At(c.regular_price):void 0;return(!y||y.amount<=h.amount)&&!$&&(c.wholesale_amount??0)>h.amount+.01&&(y=Me(c.wholesale_amount)),{id:c.id,url:c.url,title:yr(c.name),authors:d?[{name:d}]:[],cover:{url:c.image||void 0},price:h,hasDiscount:$,regularPrice:y,formats:[m?{format:"ebook",price:h,available:!0,isOnline:!0}:{format:"physical",price:h,available:!0}],defaultFormat:m?"ebook":"physical",availability:"in_stock",badges:[]}})),r=Cs();async function u(c){s.configure(t.cartUrl??"",t.token??""),await r.track(c.id,async()=>{const d=await s.add(c.id,1,c.id_product_attribute??0),h=!!(d&&!d.hasError&&d.cart);return h&&!s.drawerHosts&&n.push(`Dodano â${c.title}â do koszyka`,"success",5e3,t.cartUrl?{label:"Do koszyka â",href:t.cartUrl}:void 0),h})}function f(c){a.toggle({id:c.id,name:c.title,price:c.price.formatted,image:c.cover.url??"",url:c.url})}return(c,d)=>
24i.value.length?(v(),p("div",Zp,[l("ul",Gp,[(v(!0),p(Z,null,fe(i.value,h=>(v(),p("li",{key:h.id},[ce(vs,{book:h,"in-wishlist":G(a).has(h.id),pending:G(r).isPending(h.id),added:G(r).isAdded(h.id),onAdd:u,onQuick:d[0]||(d[0]=m=>o.value=m),onWish:f},null,8,["book","in-wishlist","pending","added"])]))),128))]),ce(xs,{book:o.value,"in-wishlist":o.value?G(a).has(o.value.id):!1,pending:o.value?G(r).isPending(o.value.id):!1,added:o.value?G(r).isAdded(o.value.id):!1,onClose:d[1]||(d[1]=h=>o.value=null),onAdd:u,onWish:f},null,8,["book","in-wishlist","pending","added"])])):C("",!0)}}),[["__scopeId","data-v-c0300ef5"]]),Qp={key:0,class:"vv-reco","data-test":"recommended"},eh={class:"vv-reco__grid"},th=Pe(ze({__name:"RecommendedShelf",props:{endpoint:{},cartUrl:{},token:{}},setup(e){const t=e,s=Lr(),a=yt(),n=Jt(),o=ft(),i=K(null),r=K([]);Oe(async()=>{if(!t.endpoint)return;t.cartUrl&&a.configure(t.cartUrl,t.token??"");const h=new Set(s.items.map($=>$.id)),m=[...new Set(s.items.map($=>Qs($.name)).filter(Boolean))].slice(0,3);if(m.length)try{const $=t.endpoint.includes("?")?"&":"?",y=await Promise.all(m.map(async w=>(await(await fetch(`${t.endpoint}${$}author=${encodeURIComponent(w)}`,{headers:{"X-Requested-With":"XMLHttpRequest"}})).json()).products??[])),E=[],L=new Set;for(const w of y){for(const T of w){const M=Number(T.id_product??T.id);if(!M||h.has(M)||L.has(M))continue;const F=Kn(T);if(!(F.price.amount<=0)&&!(F.availability!=="in_stock"&&F.availability!=="low_stock")&&(L.add(M),E.push(F),E.length>=8))break}if(E.length>=8)break}r.value=E}catch{}});const u=D(()=>r.value.slice(0,6)),f=Cs();async function c(h){a.configure(t.cartUrl??"",t.token??""),await f.track(h.id,async()=>{const m=await a.add(h.id,1,h.id_product_attribute??0),$=!!(m&&!m.hasError&&m.cart);return $&&!a.drawerHosts&&o.push(`Dodano â${h.title}â do koszyka`,"success",5e3,t.cartUrl?{label:"Do koszyka â",href:t.cartUrl}:void 0),$})}function d(h){n.toggle({id:h.id,name:h.title,price:h.price.formatted,image:h.cover.url??"",url:h.url})}return(h,m)=>u.value.length>=3?(v(),p("section",Qp,[m[2]||(m[2]=l("h2",{class:"vv-reco__title"},"Polecane dla Ciebie",-1)),m[3]||(m[3]=l("p",{class:"vv-reco__sub"},"Na podstawie autorów, których ostatnio oglÄ daÅeÅ â lista zostaje w Twojej przeglÄ darce.",-1)),l("ul",eh,[(v(!0),p(Z,null,fe(u.value,$=>(v(),p("li",{key:$.id},[ce(vs,{book:$,"in-wishlist":G(n).has($.id),pending:G(f).isPending($.id),added:G(f).isAdded($.id),onAdd:c,onQuick:m[0]||(m[0]=y=>i.value=y),onWish:d},null,8,["book","in-wishlist","pending","added"])]))),128))]),ce(xs,{book:i.value,"in-wishlist":i.value?G(n).has(i.value.id):!1,pending:i.value?G(f).isPending(i.value.id):!1,added:i.value?G(f).isAdded(i.value.id):!1,onClose:m[1]||(m[1]=$=>i.value=null),onAdd:c,onWish:d},null,8,["book","in-wishlist","pending","added"])])):C("",!0)}}),[["__scopeId","data-v-f0769e47"]]),sh=["aria-roledescription"],nh=["href","aria-label","aria-hidden","tabindex"],ah=["src","alt","loading"],oh=["aria-hidden"],ih={class:"vv-hero__copy"},rh={class:"vv-hero__kicker"},lh={class:"vv-hero__title"},ch={key:0},uh={class:"vv-hero__sub"},dh=["href"],vh=["href"],fh=["src"],ph={class:"vv-hero__campaign-title"},hh={key:1,class:"vv-hero__campaign-tagline"},mh=["href"],_h={class:"vv-hero__feature-cover"},gh={class:"vv-hero__feature-meta"},yh={class:"vv-hero__feature-name"},bh={class:"vv-hero__feature-price"},kh={class:"vv-hero__dots",role:"tablist","aria-label":"Slajdy"},wh=["aria-selected","aria-label","onClick"],$h=Pe(ze({__name:"Hero",props:{endpoint:{},cartUrl:{},token:{},ctaUrl:{},featuredProductId:{},campaign:{},slides:{},texts:{},mock:{type:Boolean}},setup(e){var de,te,R;const t=e,s=((de=t.texts)==null?void 0:de.kicker)||"Wydawnictwo & KsiÄgarnia",a=(((te=t.texts)==null?void 0:te.title)||`Fantastyka 25Horror 26Science Fiction`).split(` 27`).filter(b=>b.trim()!==""),n=((R=t.texts)==null?void 0:R.sub)||"Starannie wydane ksiÄ Å¼ki dla wymagajÄ cych czytelników â mroczne Åwiaty, których siÄ nie zapomina.",o=K([]),i=()=>!!(t.campaign&&t.campaign.title),r=K(0),u=()=>{var b;return 1+(((b=t.slides)==null?void 0:b.length)??0)},f=K(!1);let c=0;const d=typeof matchMedia<"u"&&matchMedia("(prefers-reduced-motion: reduce)").matches;function h(b){const S=u();r.value=(b%S+S)%S}
27function m(){d||u()<2||c||(c=window.setInterval(()=>{f.value||h(r.value+1)},6e3))}let $=null;function y(b){var S;$=((S=b.touches[0])==null?void 0:S.clientX)??null}function E(b){var z;if($===null)return;const S=(((z=b.changedTouches[0])==null?void 0:z.clientX)??$)-$;$=null,Math.abs(S)>40&&h(r.value+(S<0?1:-1))}vt(()=>{c&&window.clearInterval(c)});const L=b=>b.available_for_order!==!1&&(b.price_amount??0)>0&&b.availability!=="unavailable"&&((b.quantity??0)>0||b.allow_backorder===!0),w=b=>!b.ebook&&!/e[-\s]?book/i.test(b.name),T=b=>b.is_pack===!0||/^pakiet/i.test(b.name),M=b=>/powystawow|uszkodz|outlet|egzemplarz/i.test(b.name);async function F(b){const S=t.endpoint.includes("?")?"&":"?";return(await(await fetch(`${t.endpoint}${S}${b}`,{headers:{"X-Requested-With":"XMLHttpRequest"}})).json()).products??[]}return Oe(async()=>{var b;if((b=document.querySelector(".ps-imageslider"))==null||b.style.setProperty("display","none","important"),m(),!i()&&!(t.mock||!t.endpoint))try{if(t.featuredProductId&&t.featuredProductId>0){const Q=await F(`id_product=${t.featuredProductId}`);if(Q[0]&&L(Q[0])){o.value=[Q[0]];return}}const P=(await F("id_category=2&resultsPerPage=24&order=product.date_add.desc")).filter(Q=>L(Q)&&w(Q)&&!T(Q)&&!M(Q)).find(Q=>Q.image);P&&(o.value=[P])}catch{}}),(b,S)=>(v(),p("section",{class:"vv-hero","data-test":"hero","aria-roledescription":e.slides&&e.slides.length?"karuzela":void 0,onMouseenter:S[2]||(S[2]=z=>f.value=!0),onMouseleave:S[3]||(S[3]=z=>f.value=!1),onFocusin:S[4]||(S[4]=z=>f.value=!0),onFocusout:S[5]||(S[5]=z=>f.value=!1)},[l("div",{class:ie(["vv-hero__stage",{"vv-hero__stage--slider":e.slides&&e.slides.length}]),onTouchstartPassive:y,onTouchendPassive:E},[e.slides&&e.slides.length?(v(!0),p(Z,{key:0},fe(e.slides,(z,P)=>(v(),p("a",{key:z.image,class:ie(["vv-hero__slide",{"is-active":r.value===P+1}]),href:z.url,"aria-label":z.title||"Kampania","aria-hidden":r.value!==P+1,tabindex:r.value===P+1?0:-1},[l("img",{src:z.image,alt:z.title||"",loading:P===0?"eager":"lazy"},null,8,ah)],10,nh))),128)):C("",!0),l("div",{class:ie(["vv-hero__banner",{"vv-hero__banner--slide":e.slides&&e.slides.length,"is-active":r.value===0}]),"aria-hidden":e.slides&&e.slides.length?r.value!==0:void 0},[l("div",ih,[l("p",rh,g(G(s)),1),l("h1",lh,[(v(!0),p(Z,null,fe(G(a),(z,P)=>(v(),p(Z,{key:P},[ue(g(z),1),P<G(a).length-1?(v(),p("br",ch)):C("",!0)],64))),128))]),l("p",uh,g(G(n)),1),e.ctaUrl?(v(),p("a",{key:0,href:e.ctaUrl,class:"vv-hero__cta"},"PrzeglÄ
daj katalog",8,dh)):C("",!0)]),e.campaign&&e.campaign.title?(v(),p("a",{key:0,href:e.campaign.href||e.ctaUrl||"#",class:"vv-hero__campaign","data-test":"hero-campaign"},[S[6]||(S[6]=l("span",{class:"vv-hero__campaign-kicker"},"Wydarzenie",-1)),e.campaign.image?(v(),p("img",{key:0,src:e.campaign.image,alt:"",class:"vv-hero__campaign-img",loading:"lazy"},null,8,fh)):C("",!0),l("span",ph,g(e.campaign.title),1),e.campaign.tagline?(v(),p("span",hh,g(e.campaign.tagline),1)):C("",!0),S[7]||(S[7]=l("span",{class:"vv-hero__campaign-cta"},"Zobacz wiÄcej â",-1))],8,vh)):o.value[0]?(v(),p("a",{key:1,href:o.value[0].url,class:"vv-hero__feature","data-test":"hero-feature"},[S[8]||(S[8]=l("span",{class:"vv-hero__feature-tag"},"Polecamy",-1)),l("span",_h,[ce(Ke,{id:o.value[0].id,name:o.value[0].name,image:o.value[0].image},null,8,["id","name","image"])]),l("span",gh,[l("span",yh,g(o.value[0].name),1),l("span",bh,g(o.value[0].price),1)])],8,mh)):C("",!0)],10,oh),e.slides&&e.slides.length?(v(),p(Z,{key:1},[l("button",{class:"vv-hero__nav vv-hero__nav--prev",type:"button","aria-label":"Poprzedni slajd",onClick:S[0]||(S[0]=z=>h(r.value-1))},"â¹"),l("button",{class:"vv-hero__nav vv-hero__nav--next",type:"button","aria-label":"NastÄpny slajd",onClick:S[1]||(S[1]=z=>h(r.value+1))},"âº"),l("div",kh,[(v(!0),p(Z,null,fe(u(),z=>(v(),p("button",{key:z,type:"button",role:"tab",class:ie(["vv-hero__dot",{"is-active":r.value===z-1}]),"aria-selected":r.value===z-1,"aria-label":z===1?"Ekran gÅówny":`Slajd ${z-1}`,onClick:P=>h(z-1)},null,10,wh))),128))])],64)):C("",!0)],34)],40,sh))}}),[["__scopeId","data-v-98c65cd1"]]),Sh=["aria-label"],Ch={key:0,class:"vv-shelf__headline"},xh={key:0,class:"vv-shelf__kicker"},Eh={class:"vv-shelf__title"},zh={key:1,class:"vv-shelf__tabs",role:"tablist"},Ph=["aria-selected","onClick"],Ah=["href"],Th={key:0,class:"vv-shelf__grid","aria-hidden":"true"},jh={key:1,class:"vv-shelf__empty"},Xn=10,Lh=Pe(ze({__name:"HomeShelf",props:{endpoint:{},cartUrl:{},token:{},idCategory:{},tabCategories:{},mock:{type:Boolean},single:{type:Boolean},heading:{},kicker:{},viewAllHref:{},perPage:{},dark:{type:Boolean}},setup(e){const t=e,s=yt(),a=Jt(),n=ft(),o=[{key:"new",label:"NowoÅci"},{key:"recommended",label:"Polecane"},{key:"bestsellers",label:"Bestsellery"}],i=K("new"),r=K([]),u=K(!1),f=K(null),c=D(()=>t.perPage??Xn);function d(L){switch(L){case"new":return[...Tt].filter(w=>w.availability!=="out_of_stock").sort((w,T)=>T.id-w.id).slice(0,Xn);
27case"recommended":return[...Tt].filter(w=>w.rating).sort((w,T)=>T.rating.average-w.rating.average).slice(0,Xn);case"bestsellers":return Tt.filter(w=>w.badges.some(T=>T.kind==="bestseller")||w.rating!=null&&w.rating.count>150);default:return Tt.slice(0,Xn)}}async function h(L){var w;i.value=L,u.value=!0;try{if(t.mock)await new Promise(T=>setTimeout(T,160)),r.value=d(L);else{const T=((w=t.tabCategories)==null?void 0:w[L])??t.idCategory??2,M=await Ss(t.endpoint??"").fetchListing({idCategory:T,resultsPerPage:c.value});r.value=M.products}}finally{u.value=!1}}const m=Cs();async function $(L){if(L.availability!=="out_of_stock"){if(t.mock){n.push(`Dodano â${L.title}â do koszyka`);return}s.configure(t.cartUrl??"",t.token??""),await m.track(L.id,async()=>{const w=await s.add(L.id,1,L.id_product_attribute??0),T=!!(w&&!w.hasError&&w.cart);return T&&!s.drawerHosts&&n.push(`Dodano â${L.title}â do koszyka`,"success",5e3,t.cartUrl?{label:"Do koszyka â",href:t.cartUrl}:void 0),T})}}function y(L){a.toggle({id:L.id,name:L.title,price:L.price.formatted,image:L.cover.url??"",url:L.url})}async function E(){u.value=!0;try{const L=c.value;if(t.mock)await new Promise(w=>setTimeout(w,160)),r.value=Tt.slice(0,L);else{const w=await Ss(t.endpoint??"").fetchListing({idCategory:t.idCategory??2,resultsPerPage:L});r.value=w.products}}finally{u.value=!1}}return Oe(()=>{t.mock||s.configure(t.cartUrl??"",t.token??""),t.single?E():h("new")}),(L,w)=>(v(),p("section",{class:ie(["vv-shelf",{"vv-shelf--section":e.single,"vv-shelf--dark":e.dark}]),"aria-label":e.single?e.heading:"Polecane tytuÅy"},[l("div",{class:ie(["vv-shelf__head",{"vv-shelf__head--tabs":!e.single}])},[e.single?(v(),p("div",Ch,[e.kicker?(v(),p("p",xh,g(e.kicker),1)):C("",!0),l("h2",Eh,g(e.heading),1)])):C("",!0),e.single?e.viewAllHref?(v(),p("a",{key:2,class:"vv-shelf__viewall",href:e.viewAllHref},"Zobacz wszystkie â",8,Ah)):C("",!0):(v(),p("div",zh,[(v(),p(Z,null,fe(o,T=>l("button",{key:T.key,class:ie(["vv-shelf__tab",{"is-active":i.value===T.key}]),type:"button",role:"tab","aria-selected":i.value===T.key,onClick:M=>h(T.key)},g(T.label),11,Ph)),64))]))],2),u.value?(v(),p("ul",Th,[(v(!0),p(Z,null,fe(c.value,T=>(v(),p("li",{key:T,class:"vv-shelf__skel"},[...w[2]||(w[2]=[l("div",{class:"vv-shelf__skel-cover"},null,-1),l("div",{class:"vv-shelf__skel-line"},null,-1),l("div",{class:"vv-shelf__skel-line vv-shelf__skel-line--sm"},null,-1)])]))),128))])):r.value.length?(v(),Ne(st,{key:2,name:"vv-shelf-fade",mode:"out-in"},{default:We(()=>[(v(),p("ul",{key:i.value,class:"vv-shelf__grid"},[(v(!0),p(Z,null,fe(r.value,T=>(v(),p("li",{key:T.id},[ce(vs,{book:T,"in-wishlist":G(a).has(T.id),pending:G(m).isPending(T.id),added:G(m).isAdded(T.id),onAdd:$,onQuick:w[0]||(w[0]=M=>f.value=M),onWish:y},null,8,["book","in-wishlist","pending","added"])]))),128))]))]),_:1})):(v(),p("p",jh,"Brak tytuÅów w tej sekcji.")),ce(xs,{book:f.value,"in-wishlist":f.value?G(a).has(f.value.id):!1,pending:f.value?G(m).isPending(f.value.id):!1,added:f.value?G(m).isAdded(f.value.id):!1,onClose:w[1]||(w[1]=T=>f.value=null),onAdd:$,onWish:y},null,8,["book","in-wishlist","pending","added"])],10,Sh))}}),[["__scopeId","data-v-221928b8"]]),Mh={class:"vv-pdp"},Ih={class:"vv-pdp__top"},Oh={class:"vv-pdp__gallery"},Nh=["role","tabindex","aria-label","onKeydown"],Dh=["src"],Rh=["src","alt"],Fh={key:2,class:"vv-pdp__placeholder"},Uh={class:"vv-pdp__placeholder-lbl"},qh={key:0,class:"vv-pdp__thumbs"},Wh=["aria-label","aria-pressed","onClick"],Hh=["src"],Bh=["src","alt"],Kh={key:2,class:"vv-pdp__thumb-ph vv-pdp__thumb-ph--edges"},Vh={class:"vv-pdp__meta"},Xh={key:0,class:"vv-pdp__badges"},Zh={key:0,class:"vv-badge vv-badge--ebook"},Gh=["href"],Jh={key:2,class:"vv-pdp__author"},Yh={class:"vv-pdp__title"},Qh={key:3,class:"vv-pdp__series"},em={key:0,class:"vv-pdp__series-prev",href:"#","aria-label":"Poprzedni tom"},tm=["href"],sm={key:1,class:"vv-pdp__series-next",href:"#","aria-label":"NastÄpny tom"},nm={key:4,class:"vv-pdp__rating"},am={class:"vv-stars"},om={class:"vv-pdp__rcount"},im=["innerHTML"],rm={class:"vv-pdp__buybox"},lm={key:0,class:"vv-pdp__formats",role:"radiogroup","aria-label":"Format"},cm=["aria-checked","disabled","onClick"],um={class:"vv-pdp__format-name"},dm={class:"vv-pdp__format-price"},vm={key:0,class:"vv-pdp__format-online"},fm={key:1,class:"vv-pdp__pack-hint"},pm={class:"vv-pdp__price"}
27,hm={key:0,class:"vv-pdp__price-old"},mm={class:"vv-pdp__price-now"},_m={key:1,class:"vv-pdp__shipdate"},gm={key:2,class:"vv-pdp__lowest30"},ym={key:3,class:"vv-pdp__release"},bm={class:"vv-pdp__release-date"},km={key:4,class:"vv-pdp__editions"},wm={class:"vv-pdp__editions-tiles",role:"group","aria-labelledby":"vv-editions-label"},$m={class:"vv-pdp__edition is-current","aria-current":"true"},Sm={class:"vv-pdp__edition-fmt"},Cm={key:0,class:"vv-pdp__edition-price"},xm=["href","aria-label"],Em={class:"vv-pdp__edition-fmt"},zm={key:0,class:"vv-pdp__edition-price"},Pm={key:1,class:"vv-pdp__edition-note vv-pdp__edition-note--na"},Am={key:0,class:"vv-pdp__qty"},Tm=["disabled","aria-busy"],jm=["aria-label"],Lm={class:"vv-pdp__notify-row"},Mm=["aria-invalid"],Im=["disabled"],Om={key:0,class:"vv-pdp__notify-err",role:"alert"},Nm={key:1,class:"vv-pdp__notify-ok",role:"status"},Dm={class:"vv-pdp__trust"},Rm={key:0,class:"vv-pdp__digital"},Fm={key:1,class:"vv-pdp__assure"},Um={class:"vv-pdp__assure-item"},qm={class:"vv-payrow vv-payrow--pdp",role:"group","aria-label":"Bezpieczne pÅatnoÅci"},Wm={class:"vv-payrow__list"},Hm=["src","alt"],Bm={class:"vv-pdp__details"},Km=["href"],Vm={key:0,class:"vv-pdp__pack"},Xm={class:"vv-pdp__h2"},Zm={class:"vv-pdp__pack-count"},Gm={class:"vv-pdp__pack-list"},Jm=["href","aria-label"],Ym={class:"vv-pdp__pack-cover"},Qm={class:"vv-pdp__pack-name"},e_={key:0,class:"vv-pdp__pack-author"},t_={key:1,class:"vv-pdp__pack-price"},s_=["aria-expanded"],n_={class:"vv-pdp__cut",role:"group","aria-label":"OszczÄdnoÅÄ pakietu"},a_={class:"vv-pdp__cut-col"},o_={class:"vv-pdp__cut-old"},i_={class:"vv-pdp__cut-col"},r_={class:"vv-pdp__cut-now"},l_={class:"vv-pdp__cut-col vv-pdp__cut-col--save"},c_={class:"vv-pdp__cut-save"},u_={key:0},d_={key:1,class:"vv-pdp__related"},v_={class:"vv-pdp__h2"},f_={class:"vv-pdp__related-grid"},p_=["aria-label"],h_=["src","alt"],m_={key:3,class:"vv-pdp__lb-count","aria-hidden":"true"},__={key:0,class:"vv-pdp__sticky"},g_={class:"vv-pdp__sticky-cover"},y_={class:"vv-pdp__sticky-meta"},b_={class:"vv-pdp__sticky-title"},k_={key:0,class:"vv-pdp__sticky-price"},w_={key:0,class:"vv-pdp__sticky-old"},$_=["disabled","aria-busy"],S_=Pe(ze({__name:"ProductPanel",props:{book:{},related:{},inWishlist:{type:Boolean},freeShippingThreshold:{},editions:{},notifyUrl:{},searchUrl:{},authorUrl:{},seriesUrl:{},adding:{type:Boolean},added:{type:Boolean}},emits:["add","wish"],setup(e,{emit:t}){var le;const s=e,a=t,n=D(()=>s.book),o=D(()=>n.value.authors.map(x=>x.name).join(", ")),i=K(!1),r=D(()=>{var j;const x=((j=n.value.pack)==null?void 0:j.items)??[];return i.value||x.length<=12?x:x.slice(0,12)}),u=D(()=>{if(!o.value)return"";if(s.authorUrl){const j=s.authorUrl.includes("?")?"&":"?";return`${s.authorUrl}${j}name=${encodeURIComponent(o.value)}`}if(!s.searchUrl)return"";const x=s.searchUrl.includes("?")?"&":"?";return`${s.searchUrl}${x}s=${encodeURIComponent(o.value)}`}),f=D(()=>{var j;if(!s.seriesUrl||!((j=n.value.series)!=null&&j.name))return"";const x=s.seriesUrl.includes("?")?"&":"?";return`${s.seriesUrl}${x}name=${encodeURIComponent(n.value.series.name)}`}),c=K(n.value.defaultFormat??((le=n.value.formats[0])==null?void 0:le.format)??"physical"),d=D(()=>n.value.formats.find(x=>x.format===c.value)??n.value.formats[0]),h=D(()=>{var x;return((x=d.value)==null?void 0:x.price)??n.value.price}),m=D(()=>{var x;return(x=d.value)==null?void 0:x.regularPrice}),$=x=>x.label??(x.format==="ebook"?"E-book":x.format==="audiobook"?"Audiobook":"KsiÄ
żka"),y=D(()=>c.value==="ebook"),E=D(()=>y.value?n.value.badges.filter(x=>x.label.trim().toLowerCase()!=="e-book"):n.value.badges),L=D(()=>n.value.gallery??[]),w=x=>x.toLowerCase().replace(/\s+/gu," ").trim(),T=D(()=>{const x=[{key:"front",label:"Przód"}],j=w(n.value.title);return L.value.forEach((ae,_e)=>{const N=(ae.label??"").trim(),pe=!N||w(N).startsWith(j);x.push({key:`img${_e}`,label:pe?`ZdjÄcie ${_e+2}`:N,image:ae.url,thumb:ae.thumb||ae.url})}),n.value.dyedEdges&&x.push({key:"edges",label:"Brzegi"}),x}),M=K("front"),F=D(()=>T.value.find(x=>x.key===M.value)??T.value[0]),de=D(()=>M.value==="front"?n.value.cover.url:F.value.image),te=D(()=>Vn(de.value));Ue(de,x=>Ka(x),{immediate:!0}),Ue(T,x=>
27x.forEach(j=>Ka(j.thumb)),{immediate:!0});const R=D(()=>T.value.map(x=>({key:x.key,label:x.label,image:x.key==="front"?n.value.cover.url:x.image})).filter(x=>!!x.image)),b=K(!1),S=K(0),z=K(null),P=D(()=>R.value.some(x=>x.key===F.value.key)),Q=D(()=>R.value[S.value]);function ge(){if(!P.value)return;const x=R.value.findIndex(j=>j.key===F.value.key);S.value=x>=0?x:0,b.value=!0}function we(x){const j=R.value.length;j&&(S.value=(S.value+x+j)%j)}ds(b,()=>z.value,()=>{b.value=!1});const ke=D(()=>!!n.value.rating&&n.value.rating.count>0),A=D(()=>{var x;return(((x=n.value.rating)==null?void 0:x.average)??0)/5*100}),O=K(!1),X=D(()=>{var x;return(((x=n.value.description)==null?void 0:x.length)??0)>180}),oe=D(()=>{const x=n.value.description??"";return x?x.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(new RegExp("(Data premiery:\\s*\\d{1,2}\\s+\\p{L}+\\s+\\d{4})","iu"),"<strong>$1</strong>").replace(new RegExp("\\s*(WysyÅamy od\\s+\\d{1,2}\\s+\\p{L}+)","iu"),"<br><strong>$1</strong>"):""}),ne=D(()=>n.value.availability==="preorder"||n.value.availability==="coming_soon"),re=D(()=>{var x;return n.value.availability==="out_of_stock"||!((x=d.value)!=null&&x.available)}),ye=D(()=>{switch(n.value.availability){case"in_stock":return n.value.stock?`W magazynie · ${n.value.stock} szt.`:"W magazynie";case"low_stock":return`Ostatnie sztuki${n.value.stock?` · ${n.value.stock}`:""}`;case"out_of_stock":return"Obecnie brak na stanie";case"preorder":return"Przedsprzedaż";case"coming_soon":return"Zapowiedź";default:return""}}),De=[{k:"paynow",n:"Paynow"},{k:"blik",n:"BLIK"},{k:"mastercard",n:"Mastercard"},{k:"visa",n:"Visa"}],he=D(()=>n.value.availability==="coming_soon"),$e=D(()=>he.value?"Powiadom o premierze":re.value?"Obecnie niedostÄpne":"Dodaj do koszyka"),Ve=new Intl.DateTimeFormat("pl-PL",{day:"numeric",month:"long",year:"numeric"}),pt=D(()=>{const x=n.value.shipDate;if(!x)return"";const j=new Date(x);return Number.isNaN(j.getTime())?"":Ve.format(j)}),Yt=D(()=>{var ae;const x=(ae=n.value.preorder)==null?void 0:ae.releaseDate;if(!x)return"";const j=new Date(x);return Number.isNaN(j.getTime())?"":Ve.format(j)}),Ge=K(1);function it(){re.value||s.adding||a("add",{book:n.value,qty:Ge.value,format:c.value})}const _=K(""),k=K(""),I=K("idle"),W=K("");async function B(){if(!s.notifyUrl||I.value==="sending")return;const x=_.value.trim();if(!x||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(x)){I.value="error",W.value="Podaj poprawny adres e-mail.";return}I.value="sending";try{const ae=await(await fetch(s.notifyUrl,{method:"POST",headers:{"X-Requested-With":"XMLHttpRequest"},body:new URLSearchParams({email:x,id_product:String(n.value.id),website:k.value})})).json();ae!=null&&ae.success?I.value="ok":(I.value="error",W.value=(ae==null?void 0:ae.error)==="invalid_email"?"Podaj poprawny adres e-mail.":"Nie udaÅo siÄ zapisaÄ. Spróbuj ponownie.")}catch{I.value="error",W.value="Nie udaÅo siÄ zapisaÄ. Spróbuj ponownie."}}const q=K(null),se=K(!1);let Y=null;Oe(()=>{!q.value||typeof IntersectionObserver>"u"||(Y=new IntersectionObserver(([x])=>{se.value=!x.isIntersecting&&x.boundingClientRect.top<0},{threshold:0}),Y.observe(q.value))}),Ue(se,x=>{const j=document.documentElement.style;x?j.setProperty("--vv-bottom-bar","77px"):j.removeProperty("--vv-bottom-bar")}),vt(()=>{Y==null||Y.disconnect(),document.documentElement.style.removeProperty("--vv-bottom-bar")});const ee=x=>x==="hardcover"?"Twarda":x==="paperback"?"MiÄkka":x==="special"?"Kolekcjonerska":"â",H=D(()=>{var ae,_e;const x=[];if((ae=n.value.specs)!=null&&ae.length){o.value&&x.push({k:"Autor",v:o.value,href:u.value||void 0});for(const N of n.value.specs)x.push({k:N.label,v:N.value});return n.value.isbn&&x.push({k:"ISBN",v:n.value.isbn}),x}const j=n.value.formats.find(N=>N.format==="physical");return o.value&&x.push({k:"Autor",v:o.value,href:u.value||void 0}),n.value.series&&x.push({k:"Seria",v:n.value.series.volume?`${n.value.series.name}, tom ${n.value.series.volume}`:n.value.series.name}),j!=null&&j.binding&&x.push({k:"Oprawa",v:ee(j.binding)}),x.push({k:"Format",v:n.value.formats.map($).join(", ")}),n.value.isbn&&x.push({k:"ISBN",v:n.value.isbn}),n.value.imprint&&x.push({k:"Wydawnictwo",v:n.value.imprint}),(_e=n.value.genres)!=null&&_e.length&&x.push({k:"Kategorie",v:n.value.genres.join(", ")}),n.value.dyedEdges&&x.push({k:"Brzegi",v:"Barwione"}),x});return(x,j)=>{var ae,_e;return v(),p("div",Mh,[l("div",Ih,[l("div",Oh,[l("div",{class:ie(["vv-pdp__main",{"vv-pdp__main--edges":M.value==="edges","vv-pdp__main--zoom":P.value}]),role:P.value?"button":void 0,tabindex:P.value?0:void 0,"aria-label":P.value?"PowiÄksz zdjÄcie":void 0,onClick:ge,onKeydown:[qn(Be(ge,["prevent"]),["enter"]),qn(Be(ge,["prevent"]),["space"])]},[M.value==="front"?(v(),Ne(Ke,{key:0,id:n.value.id,title:n.value.title,author:o.value,series:(ae=n.value.series)==null?void 0:ae.name,volume:(_e=n.value.series)==null?void 0:_e.volume,"dyed-edges":n.value.dyedEdges,image:n.value.cover.url,eager:!0},null,8,["id","title","author","series","volume","dyed-edges","image"])):F.value.image?(v(),p(Z,{key:1},[te.value?(v(),p("img",{key:0,class:"vv-pdp__photo-blur",src:F.value.image,alt:"","aria-hidden":"true"},null,8,Dh)):C("",!0),l("img",{class:ie(["vv-pdp__photo",{"vv-pdp__photo--contain":te.value}]),src:F.value.image,alt:`${n.value.title} â ${F.value.label}`},null,10,Rh)],64)):(v(),p("div",Fh,[j[13]||(j[13]=l("span",{class:"vv-pdp__placeholder-ico"},"â®",-1)),l("span",Uh,g(F.value.label),1)]))],42,Nh),T.value.length>
271?(v(),p("div",qh,[(v(!0),p(Z,null,fe(T.value,N=>{var pe;return v(),p("button",{key:N.key,type:"button",class:ie(["vv-pdp__thumb",{"is-active":M.value===N.key}]),"aria-label":N.label,"aria-pressed":M.value===N.key,onClick:Ce=>M.value=N.key},[N.key==="front"?(v(),Ne(Ke,{key:0,id:n.value.id,title:n.value.title,series:(pe=n.value.series)==null?void 0:pe.name,"dyed-edges":n.value.dyedEdges,image:n.value.cover.url},null,8,["id","title","series","dyed-edges","image"])):N.thumb?(v(),p(Z,{key:1},[G(Vn)(N.thumb)?(v(),p("img",{key:0,class:"vv-pdp__thumb-blur",src:N.thumb,alt:"","aria-hidden":"true"},null,8,Hh)):C("",!0),l("img",{class:ie(["vv-pdp__thumb-img",{"vv-pdp__thumb-img--contain":G(Vn)(N.thumb)}]),src:N.thumb,alt:N.label,loading:"lazy"},null,10,Bh)],64)):(v(),p("span",Kh,g(N.label.charAt(0)),1))],10,Wh)}),128))])):C("",!0)]),l("div",Vh,[E.value.length||y.value?(v(),p("ul",Xh,[y.value?(v(),p("li",Zh,"E-book")):C("",!0),(v(!0),p(Z,null,fe(E.value,N=>(v(),p("li",{key:N.kind+N.label,class:ie(["vv-badge",`vv-badge--${N.kind}`])},g(N.label),3))),128))])):C("",!0),o.value&&u.value?(v(),p("a",{key:1,class:"vv-pdp__author vv-pdp__author--link",href:u.value,"aria-label":"WiÄcej ksiÄ
żek autora"},g(o.value),9,Gh)):o.value?(v(),p("p",Jh,g(o.value),1)):C("",!0),l("h1",Yh,g(n.value.title),1),n.value.series?(v(),p("p",Qh,[n.value.series.volume&&n.value.series.volume>1?(v(),p("a",em,"â¹")):C("",!0),l("span",null,[f.value?(v(),p("a",{key:0,class:"vv-pdp__series-link",href:f.value,"aria-label":"Wszystkie tomy serii"},g(n.value.series.name),9,tm)):(v(),p(Z,{key:1},[ue(g(n.value.series.name),1)],64)),n.value.series.volume?(v(),p(Z,{key:2},[ue(" · tom "+g(n.value.series.volume),1),n.value.series.total?(v(),p(Z,{key:0},[ue(" z "+g(n.value.series.total),1)],64)):C("",!0)],64)):C("",!0)]),n.value.series.volume&&n.value.series.total&&n.value.series.volume<n.value.series.total?(v(),p("a",sm,"âº")):C("",!0)])):C("",!0),ke.value?(v(),p("div",nm,[l("span",am,[l("span",{class:"vv-stars__on",style:Wt({width:A.value+"%"})},"â
â
â
â
â
",4),j[14]||(j[14]=l("span",{class:"vv-stars__off"},"â
â
â
â
â
",-1))]),l("span",om,g(n.value.rating.average.toFixed(1))+" · "+g(n.value.rating.count)+" opinii",1)])):C("",!0),n.value.description?(v(),p("p",{key:5,class:ie(["vv-pdp__desc",{"is-clamped":X.value&&!O.value}]),innerHTML:oe.value},null,10,im)):C("",!0),X.value?(v(),p("button",{key:6,class:"vv-pdp__more",type:"button",onClick:j[0]||(j[0]=N=>O.value=!O.value)},g(O.value?"ZwiÅ":"Czytaj wiÄcej"),1)):C("",!0),l("div",rm,[n.value.formats.length>1?(v(),p("div",lm,[(v(!0),p(Z,null,fe(n.value.formats,N=>(v(),p("button",{key:N.format,type:"button",class:ie(["vv-pdp__format",{"is-active":c.value===N.format}]),role:"radio","aria-checked":c.value===N.format,disabled:!N.available,onClick:pe=>c.value=N.format},[l("span",um,g($(N)),1),l("span",dm,g(N.price.formatted),1),N.isOnline?(v(),p("span",vm,"Tylko online")):C("",!0)],10,cm))),128))])):C("",!0),n.value.pack&&n.value.pack.savings?(v(),p("p",fm,[j[15]||(j[15]=ue(" W pakiecie oszczÄdzasz ",-1)),l("strong",null,g(n.value.pack.savings.formatted),1),n.value.pack.savingsPercent?(v(),p(Z,{key:0},[ue(" ("+g(G(Fa)(n.value.pack.savingsPercent))+"%)",1)],64)):C("",!0),j[16]||(j[16]=ue(" wzglÄdem zakupu osobno ",-1))])):C("",!0),l("div",pm,[h.value.amount>0?(v(),p(Z,{key:0},[m.value&&m.value.amount>h.value.amount?(v(),p("span",hm,g(m.value.formatted),1)):C("",!0),l("strong",mm,g(h.value.formatted),1)],64)):C("",!0),l("span",{class:ie(["vv-pdp__stock",`vv-pdp__stock--${n.value.availability}`])},g(ye.value),3),pt.value?(v(),p("span",_m,"WysyÅka od "+g(pt.value),1)):C("",!0)]),h.value.amount>0&&m.value&&n.value.lowestPrice30d?(v(),p("p",gm," Najniższa cena z ostatnich 30 dni: "+g(n.value.lowestPrice30d.formatted),1)):C("",!0),ne.value?(v(),p("div",ym,[j[17]||(j[17]=l("span",{class:"vv-pdp__release-kicker"},"Zapowiedź",-1)),l("span",bm,g(Yt.value?`Premiera: ${Yt.value}`:"Wkrótce w sprzedaży"),1)])):C("",!0),e.editions&&e.editions.length?(v(),p("div",km,[j[19]||(j[19]=l("p",{class:"vv-pdp__editions-label",id:"vv-editions-label"},"Wydania",-1)),l("div",wm,[l("span",$m,[l("span",Sm,g(y.value?"E-book":"Wydanie papierowe"),1),h.value.amount>0?(v(),p("span",Cm,g(h.value.formatted),1)):C("",!0),j[18]||(j[18]=l("span",{class:"vv-pdp__edition-note"}
27,"OglÄ
dasz",-1))]),(v(!0),p(Z,null,fe(e.editions,N=>(v(),p("a",{key:N.id,class:"vv-pdp__edition",href:N.url,"aria-label":`${N.format}${N.price?` â ${N.price}`:""}`},[l("span",Em,g(N.format),1),N.price?(v(),p("span",zm,g(N.price),1)):C("",!0),N.available?C("",!0):(v(),p("span",Pm,"obecnie niedostÄpne"))],8,xm))),128))])])):C("",!0),l("div",{ref_key:"buyRef",ref:q,class:"vv-pdp__buy"},[y.value?C("",!0):(v(),p("div",Am,[l("button",{type:"button","aria-label":"Mniej",onClick:j[1]||(j[1]=N=>Ge.value=Math.max(1,Ge.value-1))},"â"),_t(l("input",{"onUpdate:modelValue":j[2]||(j[2]=N=>Ge.value=N),type:"number",min:"1","aria-label":"IloÅÄ"},null,512),[[us,Ge.value,void 0,{number:!0}]]),l("button",{type:"button","aria-label":"WiÄcej",onClick:j[3]||(j[3]=N=>Ge.value++)},"+")])),l("button",{class:ie(["vv-pdp__add",{"vv-pdp__add--pre":he.value,"is-pending":e.adding}]),type:"button",disabled:re.value||e.adding,"aria-busy":e.adding?"true":void 0,onClick:it},[e.adding?(v(),p(Z,{key:0},[j[20]||(j[20]=l("span",{class:"vv-dots","aria-hidden":"true"},[l("i"),l("i"),l("i")],-1)),j[21]||(j[21]=l("span",{class:"visually-hidden"},"Dodawanieâ¦",-1))],64)):e.added?(v(),p(Z,{key:1},[ue("â Dodano")],64)):(v(),p(Z,{key:2},[ue(g($e.value),1)],64))],10,Tm),l("button",{class:ie(["vv-pdp__wish",{"is-on":e.inWishlist}]),type:"button","aria-label":e.inWishlist?"UsuÅ z listy życzeÅ":"Dodaj do listy życzeÅ",onClick:j[4]||(j[4]=N=>a("wish",n.value))},g(e.inWishlist?"â¥":"â¡"),11,jm)],512),re.value&&e.notifyUrl?(v(),p("form",{key:5,class:"vv-pdp__notify",novalidate:"",onSubmit:Be(B,["prevent"])},[j[22]||(j[22]=l("p",{id:"vv-notify-label",class:"vv-pdp__notify-label"},"Powiadom o dostÄpnoÅci",-1)),I.value!=="ok"?(v(),p(Z,{key:0},[l("div",Lm,[_t(l("input",{"onUpdate:modelValue":j[5]||(j[5]=N=>_.value=N),class:"vv-pdp__notify-input",type:"email",name:"email",placeholder:"Twój adres e-mail","aria-labelledby":"vv-notify-label","aria-invalid":I.value==="error",required:""},null,8,Mm),[[us,_.value]]),l("button",{class:"vv-pdp__notify-btn",type:"submit",disabled:I.value==="sending"},"Powiadom mnie",8,Im)]),_t(l("input",{"onUpdate:modelValue":j[6]||(j[6]=N=>k.value=N),class:"vv-pdp__notify-hp",type:"text",name:"website",tabindex:"-1",autocomplete:"off","aria-hidden":"true"},null,512),[[us,k.value]]),I.value==="error"?(v(),p("p",Om,g(W.value),1)):C("",!0)],64)):(v(),p("p",Nm,"â Damy znaÄ, gdy tytuÅ wróci."))],32)):C("",!0),l("div",Dm,[y.value?(v(),p("p",Rm,"Produkt cyfrowy â link do pobrania po zakupie")):(v(),p("p",Fm,[l("span",Um,"Darmowa dostawa od "+g(Math.round(e.freeShippingThreshold??200))+" zÅ",1),j[23]||(j[23]=l("span",{class:"vv-pdp__assure-sep","aria-hidden":"true"},"·",-1)),j[24]||(j[24]=l("span",{class:"vv-pdp__assure-item"},"14 dni na zwrot",-1))])),y.value?C("",!0):(v(),Ne(Ha,{key:2,class:"vv-pdp__ship",total:h.value.amount*Ge.value,threshold:e.freeShippingThreshold},null,8,["total","threshold"])),l("div",qm,[j[25]||(j[25]=l("span",{class:"vv-payrow__label"},"Bezpieczne pÅatnoÅci",-1)),l("ul",Wm,[(v(),p(Z,null,fe(De,N=>l("li",{key:N.k,class:"vv-payrow__item"},[l("img",{src:`/themes/vespervue/assets/img/payments/${N.k}.png`,alt:N.n,height:"20",loading:"lazy"},null,8,Hm)])),64))])])])]),l("dl",Bm,[(v(!0),p(Z,null,fe(H.value,N=>(v(),p("div",{key:N.k,class:"vv-pdp__detail"},[l("dt",null,g(N.k),1),l("dd",null,[N.href?(v(),p("a",{key:0,href:N.href,"aria-label":"WiÄcej ksiÄ
żek autora"},g(N.v),9,Km)):(v(),p(Z,{key:1},[ue(g(N.v),1)],64))])]))),128))])])]),n.value.pack&&n.value.pack.items.length?(v(),p("section",Vm,[l("h2",Xm,[j[26]||(j[26]=ue("W pakiecie ",-1)),l("span",Zm,"· "+g(n.value.pack.items.length)+" "+g(n.value.pack.items.length===1?"tytuÅ":n.value.pack.items.length<5?"tytuÅy":"tytuÅów"),1)]),l("ul",Gm,[(v(!0),p(Z,null,fe(r.value,N=>{var pe,Ce,Ie;return v(),p("li",{key:N.id,class:"vv-pdp__pack-item"},[l("a",{class:"vv-pdp__pack-link",href:N.url||"#","aria-label":N.title},[l("span",Ym,[ce(Ke,{id:N.id,title:N.title,author:(pe=N.authors)==null?void 0:pe.map(Re=>Re.name).join(", "),image:(Ce=N.cover)==null?void 0:Ce.url},null,8,["id","title","author","image"])]),l("span",Qm,[ue(g(N.title),1),N.qty?(v(),p(Z,{key:0},[ue(" à "+g(N.qty),1)],64)):C("",!0)]),(Ie=N.authors)!=null&&Ie.length?(v(),p("span",e_,g(N.authors.map(Re=>Re.name).join(", ")),1)):C("",!0),N.price?(v(),p("span",t_,g(N.price)+g(N.qty?" / szt.":""),1)):C("",!0)],8,Jm)])}),128))]),n.value.pack.items.length>
2712?(v(),p("button",{key:0,type:"button",class:"vv-pdp__pack-more","aria-expanded":i.value?"true":"false",onClick:j[7]||(j[7]=N=>i.value=!i.value)},g(i.value?"ZwiÅ listÄ":`Pokaż wszystkie (${n.value.pack.items.length})`),9,s_)):C("",!0),l("div",n_,[l("div",a_,[j[27]||(j[27]=l("span",{class:"vv-pdp__cut-k"},"KupujÄ
c osobno",-1)),l("s",o_,g(n.value.pack.regularTotal.formatted),1)]),j[30]||(j[30]=l("div",{class:"vv-pdp__cut-arrow","aria-hidden":"true"},"â",-1)),l("div",i_,[j[28]||(j[28]=l("span",{class:"vv-pdp__cut-k"},"W pakiecie",-1)),l("span",r_,g(n.value.pack.packPrice.formatted),1)]),l("div",l_,[j[29]||(j[29]=l("span",{class:"vv-pdp__cut-k"},"OszczÄdzasz",-1)),l("span",c_,[ue(g(n.value.pack.savings.formatted),1),n.value.pack.savingsPercent?(v(),p("small",u_," · "+g(G(Fa)(n.value.pack.savingsPercent))+"%",1)):C("",!0)])])])])):C("",!0),e.related&&e.related.length?(v(),p("section",d_,[l("h2",v_,g(n.value.series?`WiÄcej z serii â${n.value.series.name}â`:"Może CiÄ zainteresowaÄ"),1),l("ul",f_,[(v(!0),p(Z,null,fe(e.related,N=>(v(),p("li",{key:N.id},[ce(vs,{book:N,onAdd:pe=>a("add",{book:N,qty:1,format:N.defaultFormat??"physical"}),onWish:pe=>a("wish",N)},null,8,["book","onAdd","onWish"])]))),128))])])):C("",!0),(v(),Ne(gt,{to:"body"},[ce(st,{name:"vv-lb"},{default:We(()=>{var N;return[b.value?(v(),p("div",{key:0,class:"vv-pdp__lb",onClick:j[12]||(j[12]=Be(pe=>b.value=!1,["self"]))},[l("div",{ref_key:"lightboxEl",ref:z,class:"vv-pdp__lb-panel",role:"dialog","aria-modal":"true","aria-label":`${n.value.title} â ${((N=Q.value)==null?void 0:N.label)??"zdjÄcie"}`,tabindex:"-1",onClick:j[11]||(j[11]=Be(pe=>b.value=!1,["self"]))},[Q.value?(v(),p("img",{key:0,class:"vv-pdp__lb-img",src:Q.value.image,alt:`${n.value.title} â ${Q.value.label}`},null,8,h_)):C("",!0),R.value.length>1?(v(),p("button",{key:1,class:"vv-pdp__lb-nav vv-pdp__lb-nav--prev",type:"button","aria-label":"Poprzednie zdjÄcie",onClick:j[8]||(j[8]=pe=>we(-1))},"â¹")):C("",!0),R.value.length>1?(v(),p("button",{key:2,class:"vv-pdp__lb-nav vv-pdp__lb-nav--next",type:"button","aria-label":"NastÄpne zdjÄcie",onClick:j[9]||(j[9]=pe=>we(1))},"âº")):C("",!0),l("button",{class:"vv-pdp__lb-x",type:"button","aria-label":"Zamknij",onClick:j[10]||(j[10]=pe=>b.value=!1)},"â"),R.value.length>1?(v(),p("p",m_,g(S.value+1)+" / "+g(R.value.length),1)):C("",!0)],8,p_)])):C("",!0)]}),_:1})])),(v(),Ne(gt,{to:"body"},[ce(st,{name:"vv-sticky"},{default:We(()=>[se.value?(v(),p("div",__,[l("span",g_,[ce(Ke,{id:n.value.id,title:n.value.title,image:n.value.cover.url},null,8,["id","title","image"])]),l("span",y_,[l("span",b_,g(n.value.title),1),h.value.amount>0?(v(),p("span",k_,[m.value&&m.value.amount>h.value.amount?(v(),p("s",w_,g(m.value.formatted),1)):C("",!0),ue(" "+g(h.value.formatted),1)])):C("",!0)]),l("button",{class:ie(["vv-pdp__sticky-add",{"vv-pdp__add--pre":he.value,"is-pending":e.adding}]),type:"button",disabled:re.value||e.adding,"aria-busy":e.adding?"true":void 0,onClick:it},[e.adding?(v(),p(Z,{key:0},[j[31]||(j[31]=l("span",{class:"vv-dots","aria-hidden":"true"},[l("i"),l("i"),l("i")],-1)),j[32]||(j[32]=l("span",{class:"visually-hidden"},"Dodawanieâ¦",-1))],64)):e.added?(v(),p(Z,{key:1},[ue("â Dodano")],64)):(v(),p(Z,{key:2},[ue(g($e.value),1)],64))],10,$_)])):C("",!0)]),_:1})]))])}}}),[["__scopeId","data-v-68425e5e"]]),C_={key:0,class:"vv-author-strip","data-test":"author-strip"},x_={class:"vv-author-strip__head"},E_={class:"vv-author-strip__title"},z_={class:"vv-author-strip__grid"},P_=Pe(ze({__name:"ProductPage",props:{raw:{},cartUrl:{},token:{},freeShippingThreshold:{},editionsUrl:{},endpoint:{},notifyUrl:{},searchUrl:{},authorUrl:{},seriesUrl:{}},setup(e){const t=e,s=yt(),a=Jt(),n=ft(),o=D(()=>{const E=Kn(t.raw);return t.raw.isbn&&(E.isbn=t.raw.isbn),E}),i=Cs();async function r({book:E,qty:L}){await i.track(E.id,async()=>{const w=await s.add(E.id,L,0),T=!!(w&&!w.hasError&&w.cart);return T&&!s.drawerHosts&&n.push(`Dodano â${E.title}â do koszyka`,"success",5e3,t.cartUrl?{label:"Do koszyka â",href:t.cartUrl}:void 0),T})}async function u(E){await r({book:E,qty:1})}function f(E){a.toggle({id:E.id,name:E.title,price:E.price.formatted,image:E.cover.url??"",url:E.url})}const c=K([]);
27async function d(){if(!(!t.editionsUrl||!t.raw.id))try{const E=t.editionsUrl.includes("?")?"&":"?",w=await(await fetch(`${t.editionsUrl}${E}id_product=${t.raw.id}`,{headers:{"X-Requested-With":"XMLHttpRequest"}})).json();c.value=Array.isArray(w==null?void 0:w.siblings)?w.siblings.filter(T=>T&&T.id&&T.url&&T.format):[]}catch{c.value=[]}}const h=D(()=>{var E;return((E=o.value.authors[0])==null?void 0:E.name)??""}),m=K([]),$=K(null);async function y(){if(!(!t.endpoint||!h.value||!t.raw.id))try{const E=t.endpoint.includes("?")?"&":"?",w=await(await fetch(`${t.endpoint}${E}author=${encodeURIComponent(h.value)}&exclude=${t.raw.id}`,{headers:{"X-Requested-With":"XMLHttpRequest"}})).json();m.value=Array.isArray(w==null?void 0:w.products)?w.products.map(Kn):[]}catch{m.value=[]}}return Oe(()=>{var E,L,w;s.configure(t.cartUrl,t.token??""),d(),y(),(E=document.querySelector(".product__container"))==null||E.style.setProperty("display","none","important"),(L=document.querySelector("#product_features"))==null||L.style.setProperty("display","none","important"),(w=document.querySelector("#product_details"))==null||w.style.setProperty("display","none","important")}),(E,L)=>(v(),p(Z,null,[ce(S_,{book:o.value,"in-wishlist":G(a).has(o.value.id),"free-shipping-threshold":e.freeShippingThreshold,editions:c.value,"notify-url":e.notifyUrl,"search-url":e.searchUrl,"author-url":e.authorUrl,"series-url":e.seriesUrl,adding:G(i).isPending(o.value.id),added:G(i).isAdded(o.value.id),onAdd:r,onWish:f},null,8,["book","in-wishlist","free-shipping-threshold","editions","notify-url","search-url","author-url","series-url","adding","added"]),m.value.length?(v(),p("section",C_,[l("header",x_,[L[2]||(L[2]=l("p",{class:"vv-author-strip__kicker"},"Od tego samego autora",-1)),l("h2",E_,"Inne ksiÄ
żki: "+g(h.value),1)]),l("ul",z_,[(v(!0),p(Z,null,fe(m.value,w=>(v(),p("li",{key:w.id},[ce(vs,{book:w,"in-wishlist":G(a).has(w.id),pending:G(i).isPending(w.id),added:G(i).isAdded(w.id),onAdd:u,onQuick:L[0]||(L[0]=T=>$.value=T),onWish:f},null,8,["book","in-wishlist","pending","added"])]))),128))]),ce(xs,{book:$.value,"in-wishlist":$.value?G(a).has($.value.id):!1,pending:$.value?G(i).isPending($.value.id):!1,added:$.value?G(i).isAdded($.value.id):!1,onClose:L[1]||(L[1]=w=>$.value=null),onAdd:u,onWish:f},null,8,["book","in-wishlist","pending","added"])])):C("",!0)],64))}}),[["__scopeId","data-v-7ac64eba"]]),A_=e=>{const t=/^\/(\d+)-/.exec(e);return t?Number(t[1]):null};function Va(e){const t=typeof window<"u"?window.vvActiveCats:void 0;if(!Array.isArray(t)||!t.length)return e;const s=new Set(t.map(Number)),a=n=>{const o=A_(n);return o===null||s.has(o)};return e.filter(n=>a(n.href)).map(n=>n.columns?{...n,columns:n.columns.map(o=>({...o,links:o.links.filter(i=>a(i.href))})).filter(o=>o.links.length)}:n)}const T_=[{heading:"Podgatunki",links:[{label:"Horror",href:"/25-horror"},{label:"Science Fiction",href:"/26-science-fiction"},{label:"Weird fiction",href:"/29-weird-fiction"},{label:"Fantasy",href:"/35-fantasy"},{label:"ZÅota era horroru",href:"/30-zlota-era-horroru-w-usa"}]},{heading:"Literatura",links:[{label:"Literatura polska",href:"/27-literatura-polska"},{label:"Literatura zagraniczna",href:"/28-literatura-zagraniczna"}]},{heading:"Serie",links:[{label:"Eony",href:"/32-eony"},{label:"Wymiary",href:"/33-wymiary"}]}],j_=[{heading:"DziaÅy",links:[{label:"Literatura piÄkna",href:"/18-literatura-piekna"},{label:"PowieÅÄ historyczna",href:"/24-powiesc-historyczna"},{label:"Literatura mÅodzieżowa",href:"/15-literatura-mlodziezowa"},{label:"Fantastyka",href:"/19-fantastyka"}]},{heading:"WiÄcej",links:[{label:"Klasyka literatury",href:"/11-klasyka-literatury"},{label:"Historia",href:"/14-historia"},{label:"Biografie",href:"/4-biografie"},{label:"Young Adult",href:"/34-young-adult"}]}],Mr=[{label:"NowoÅci",href:"/9-nowosci"},{label:"Promocje",href:"/23-pakiety"},{label:"Wyprzedaż",href:"/6-wyprzedaz"},{label:"Bestsellery",href:"/7-bestsellery"},{label:"Zapowiedzi",href:"/5-zapowiedzi"},{label:"Blog",href:"/blog"},{label:"E-booki",href:"/37-e-booki"}],Ir=[{label:"Beletrystyka",href:"/10-beletrystyka",columns:j_},{label:"Klasyka literatury",href:"/11-klasyka-literatury"},{label:"Fantastyka",href:"/12-fantastyka",columns:T_},{label:"Eony",href:"/32-eony"},{label:"Wymiary",href:"/33-wymiary"},{label:"Muzyka",href:"/13-muzyka"},{label:"Historia",href:"/14-historia"},{label:"Albumy",href:"/3-albumy"},{label:"Poradniki",href:"/16-poradniki"},{label:"Dla dzieci",href:"/17-dla-dzieci"},{label:"Biografie",href:"/4-biografie"},{label:"Young Adult",href:"/34-young-adult"},{label:"Kolorowanki",href:"/20-kolorowanki"},{label:"Humor",href:"/21-humor"}
27,{label:"Poezja",href:"/22-poezja"},{label:"Pakiety",href:"/23-pakiety"},{label:"Wyprzedaż",href:"/6-wyprzedaz",accent:"blood"},{label:"Zapowiedzi",href:"/5-zapowiedzi"},{label:"Bestsellery",href:"/7-bestsellery"},{label:"NowoÅci",href:"/9-nowosci"},{label:"Preorder",href:"/31-preorder"},{label:"E-booki",href:"/37-e-booki"}],L_=Ir.filter(e=>!Mr.some(t=>t.href===e.href)).map(({label:e,href:t,accent:s})=>({label:e,href:t,accent:s})),M_={class:"vv-mm__bar"},I_=["onMouseenter"],O_=["href","aria-haspopup","aria-expanded","onFocus"],N_={class:"vv-mm__cols"},D_={class:"vv-mm__col-head"},R_={class:"vv-mm__col-list"},F_=["href"],U_=["href"],q_={class:"vv-mm__feat-cover"},W_={class:"vv-mm__feat-meta"},H_={class:"vv-mm__feat-kicker"},B_={class:"vv-mm__feat-title"},K_={key:0,class:"vv-mm__feat-author"},V_={class:"vv-mm__drawer-head"},X_={class:"vv-mm__drawer-list"},Z_={class:"vv-mm__drawer-row"},G_=["href"],J_=["aria-expanded","aria-label","onClick"],Y_={key:0,class:"vv-mm__drawer-sub"},Q_={class:"vv-mm__drawer-subhead"},eg=["href"],tg={class:"vv-mm__drawer-list"},sg={class:"vv-mm__drawer-row"},ng=["href"],ag={class:"vv-mm__drawer-util"},og=["href"],ig=Pe(ze({__name:"MegaMenu",props:{items:{},placeholderHref:{},accountUrl:{}},setup(e){const t=e,s=D(()=>Va(t.items??Mr)),a=Va(L_),n=E=>t.placeholderHref||E,o=K(-1),i=K(!1),r=K(null);ds(i,()=>r.value,()=>{i.value=!1});const u=K(-1);let f;const c=D(()=>o.value>=0?s.value[o.value]:null);function d(E){f&&clearTimeout(f),o.value=E}function h(){f=setTimeout(()=>{o.value=-1},120)}function m(){o.value=-1}const $=Jt();function y(){i.value=!1,$.requestOpen()}return(E,L)=>(v(),p("nav",{class:"vv-mm","aria-label":"Gatunki",onMouseleave:h,onKeydown:qn(m,["escape"])},[l("button",{class:"vv-mm__burger",type:"button",onClick:L[0]||(L[0]=w=>i.value=!0)},[...L[4]||(L[4]=[l("span",{class:"vv-mm__burger-lines","aria-hidden":"true"},[l("span"),l("span"),l("span")],-1),l("span",{class:"vv-mm__burger-label"},"Kategorie",-1)])]),l("ul",M_,[(v(!0),p(Z,null,fe(s.value,(w,T)=>(v(),p("li",{key:w.label,class:"vv-mm__item",onMouseenter:M=>w.columns?d(T):m()},[l("a",{href:n(w.href),class:ie(["vv-mm__link",[`vv-mm__link--${w.accent??"plain"}`,{"is-open":o.value===T}]]),"aria-haspopup":w.columns?"true":void 0,"aria-expanded":w.columns?o.value===T:void 0,onFocus:M=>w.columns?d(T):m()},g(w.label),43,O_)],40,I_))),128))]),ce(st,{name:"vv-mm-fade"},{default:We(()=>[c.value&&c.value.columns?(v(),p("div",{key:0,class:ie(["vv-mm__panel",{"vv-mm__panel--feat":!!c.value.featured}]),onMouseenter:L[1]||(L[1]=w=>d(o.value)),onMouseleave:h},[l("div",N_,[(v(!0),p(Z,null,fe(c.value.columns,w=>(v(),p("div",{key:w.heading,class:"vv-mm__col"},[l("h4",D_,g(w.heading),1),l("ul",R_,[(v(!0),p(Z,null,fe(w.links,T=>(v(),p("li",{key:T.label},[l("a",{href:n(T.href)},g(T.label),9,F_)]))),128))])]))),128))]),c.value.featured?(v(),p("a",{key:0,href:n(c.value.featured.href),class:"vv-mm__feat"},[l("span",q_,[ce(Ke,{id:c.value.featured.coverId,title:c.value.featured.title,author:c.value.featured.author,image:c.value.featured.image,"dyed-edges":c.value.featured.dyedEdges},null,8,["id","title","author","image","dyed-edges"])]),l("span",W_,[l("span",H_,g(c.value.featured.kicker),1),l("span",B_,g(c.value.featured.title),1),c.value.featured.author?(v(),p("span",K_,g(c.value.featured.author),1)):C("",!0)])],8,U_)):C("",!0)],34)):C("",!0)]),_:1}),(v(),Ne(gt,{to:"body"},[ce(st,{name:"vv-mm-slide"},{default:We(()=>[i.value?(v(),p("div",{key:0,class:"vv-mm__overlay",onClick:L[3]||(L[3]=Be(w=>i.value=!1,["self"]))},[l("aside",{ref_key:"drawerEl",ref:r,class:"vv-mm__drawer",role:"dialog","aria-modal":"true","aria-label":"Kategorie",tabindex:"-1"},[l("header",V_,[L[5]||(L[5]=l("strong",null,"Kategorie",-1)),l("button",{class:"vv-mm__drawer-x",type:"button","aria-label":"Zamknij",onClick:L[2]||(L[2]=w=>i.value=!1)},"â")]),l("ul",X_,[(v(!0),p(Z,null,fe(s.value,(w,T)=>(v(),p("li",{key:w.label},[l("div",Z_,[l("a",{href:n(w.href),class:ie(["vv-mm__drawer-link",{"vv-mm__drawer-link--blood":w.accent==="blood"}])},g(w.label),11,G_),w.columns?(v(),p("button",{key:0,class:"vv-mm__drawer
27-toggle",type:"button","aria-expanded":u.value===T,"aria-label":`RozwiÅ ${w.label}`,onClick:M=>u.value=u.value===T?-1:T},g(u.value===T?"â":"+"),9,J_)):C("",!0)]),w.columns&&u.value===T?(v(),p("div",Y_,[(v(!0),p(Z,null,fe(w.columns,M=>(v(),p(Z,{key:M.heading},[l("p",Q_,g(M.heading),1),(v(!0),p(Z,null,fe(M.links,F=>(v(),p("a",{key:F.label,href:n(F.href),class:"vv-mm__drawer-sublink"},g(F.label),9,eg))),128))],64))),128))])):C("",!0)]))),128))]),L[9]||(L[9]=l("p",{class:"vv-mm__drawer-divider"},"KsiÄgozbiór",-1)),l("ul",tg,[(v(!0),p(Z,null,fe(G(a),w=>(v(),p("li",{key:w.href},[l("div",sg,[l("a",{href:n(w.href),class:ie(["vv-mm__drawer-link vv-mm__drawer-link--dept",{"vv-mm__drawer-link--blood":w.accent==="blood"}])},g(w.label),11,ng)])]))),128))]),l("div",ag,[e.accountUrl?(v(),p("a",{key:0,href:e.accountUrl,class:"vv-mm__drawer-utillink"},[...L[6]||(L[6]=[l("span",{class:"material-icons","aria-hidden":"true"},"î¡",-1),ue(" Moje konto ",-1)])],8,og)):C("",!0),l("button",{class:"vv-mm__drawer-utillink",type:"button","data-test":"drawer-wishlist",onClick:y},[L[7]||(L[7]=l("span",{class:"material-icons","aria-hidden":"true"},"",-1)),L[8]||(L[8]=ue(" Lista życzeÅ",-1)),G($).count>0?(v(),p(Z,{key:0},[ue(" ("+g(G($).count)+")",1)],64)):C("",!0)])])],512)])):C("",!0)]),_:1})]))],32))}}),[["__scopeId","data-v-b9b583e0"]]),rg={class:"vv-side__list"},lg=["onMouseenter"],cg=["href","aria-haspopup","aria-expanded","onFocus"],ug={key:0,class:"vv-side__chev","aria-hidden":"true"},dg=["onMouseenter"],vg={class:"vv-side__cols"},fg={class:"vv-side__col-head"},pg={class:"vv-side__col-list"},hg=["href"],mg=["href"],_g={class:"vv-side__feat-cover"},gg={class:"vv-side__feat-meta"},yg={class:"vv-side__feat-kicker"},bg={class:"vv-side__feat-title"},kg={key:0,class:"vv-side__feat-author"},wg=Pe(ze({__name:"SideMenu",props:{items:{},placeholderHref:{}},setup(e){const t=e,s=D(()=>Va(t.items??Ir)),a=d=>t.placeholderHref||d,n=K(null),o=K(-1);let i;function r(d){i&&clearTimeout(i),o.value=d}function u(){i=setTimeout(()=>{o.value=-1},140)}let f;function c(){var m;const d=document.querySelector("#header"),h=(m=n.value)==null?void 0:m.closest(".vv-home__side");d&&h&&(h.style.top=`${d.offsetHeight+14}px`)}return Oe(()=>{c();const d=document.querySelector("#header");d&&"ResizeObserver"in window&&(f=new ResizeObserver(c),f.observe(d)),window.addEventListener("resize",c)}),vt(()=>{f==null||f.disconnect(),window.removeEventListener("resize",c)}),(d,h)=>(v(),p("nav",{ref_key:"root",ref:n,class:"vv-side","aria-label":"Kategorie",onMouseleave:u},[h[0]||(h[0]=l("p",{class:"vv-side__head"},"KsiÄgozbiór",-1)),l("ul",rg,[(v(!0),p(Z,null,fe(s.value,(m,$)=>(v(),p("li",{key:m.label,class:"vv-side__item",onMouseenter:y=>m.columns?r($):u()},[l("a",{href:a(m.href),class:ie(["vv-side__link",{"is-open":o.value===$}]),"aria-haspopup":m.columns?"true":void 0,"aria-expanded":m.columns?o.value===$:void 0,onFocus:y=>m.columns?r($):u()},[l("span",null,g(m.label),1),m.columns?(v(),p("span",ug,"âº")):C("",!0)],42,cg),ce(st,{name:"vv-side-fade"},{default:We(()=>[m.columns&&o.value===$?(v(),p("div",{key:0,class:"vv-side__flyout",onMouseenter:y=>r($),onMouseleave:u},[l("div",vg,[(v(!0),p(Z,null,fe(m.columns,y=>(v(),p("div",{key:y.heading,class:"vv-side__col"},[l("h4",fg,g(y.heading),1),l("ul",pg,[(v(!0),p(Z,null,fe(y.links,E=>(v(),p("li",{key:E.label},[l("a",{href:a(E.href)},g(E.label),9,hg)]))),128))])]))),128))]),m.featured?(v(),p("a",{key:0,href:a(m.featured.href),class:"vv-side__feat"},[l("span",_g,[ce(Ke,{id:m.featured.coverId,title:m.featured.title,author:m.featured.author,"dyed-edges":m.featured.dyedEdges},null,8,["id","title","author","dyed-edges"])]),l("span",gg,[l("span",yg,g(m.featured.kicker),1),l("span",bg,g(m.featured.title),1),m.featured.author?(v(),p("span",kg,g(m.featured.author),1)):C("",!0)])],8,mg)):C("",!0)],40,dg)):C("",!0)]),_:2},1024)],40,lg))),128))])],544))}}),[["__scopeId","data-v-d9c0a964"]]),$g={key:0,class:"vv-sale__title"},Sg={key:1,class:"vv-sale__sep"},Cg={class:"vv-sale__tag"},xg={key:2,class:"vv-sale__code"},Eg={key:3,class:"vv-sale__count"},zg=Pe(ze({__name:"SaleBar",props:{title:{},tagline:{},code:{},endsAt:{},href:{},campaign:{}},setup(e){const t=e,s=D(()=>t.title||""),a=D(()=>t.tagline||"â8,5% na caÅy asortyment"),n=D(()=>`vv_sale_${t.campaign||"default"}`),o=K(!1),i=K(Date.now());let r;const u=D(()=>t.endsAt?new Date(t.endsAt).getTime():NaN),f=D(()=>
27u.value-i.value),c=D(()=>!Number.isNaN(u.value)&&f.value<=0),d=D(()=>!o.value&&!c.value),h=D(()=>Math.max(0,Math.floor(f.value/864e5))),m=D(()=>Math.max(0,Math.floor(f.value%864e5/36e5))),$=D(()=>Math.max(0,Math.floor(f.value%36e5/6e4))),y=D(()=>Number.isNaN(u.value)?"":h.value>0?`${h.value} dni ${m.value} godz.`:`${m.value} godz. ${$.value} min`);function E(){o.value=!0;try{localStorage.setItem(n.value,"1")}catch{}document.documentElement.classList.remove("vv-sale-active")}return Oe(()=>{try{localStorage.getItem(n.value)&&(o.value=!0)}catch{}r=setInterval(()=>{i.value=Date.now()},3e4),d.value&&document.documentElement.classList.add("vv-sale-active")}),vt(()=>{r&&clearInterval(r)}),(L,w)=>(v(),Ne(st,{name:"vv-sale-collapse"},{default:We(()=>[d.value?(v(),Ne(oc(e.href?"a":"div"),{key:0,class:ie(["vv-sale",{"vv-sale--titled":!!s.value}]),href:e.href||void 0},{default:We(()=>[w[1]||(w[1]=l("span",{class:"vv-sale__flame","aria-hidden":"true"},"â¦",-1)),s.value?(v(),p("span",$g,g(s.value),1)):C("",!0),s.value?(v(),p("span",Sg,"·")):C("",!0),l("span",Cg,g(a.value),1),e.code?(v(),p("span",xg,[w[0]||(w[0]=ue("kod ",-1)),l("b",null,g(e.code),1)])):C("",!0),y.value?(v(),p("span",Eg,"koÅczy siÄ za "+g(y.value),1)):C("",!0),l("button",{class:"vv-sale__x",type:"button","aria-label":"Zamknij baner promocji",onClick:Be(E,["prevent","stop"])},"â")]),_:1},8,["class","href"])):C("",!0)]),_:1}))}}),[["__scopeId","data-v-d9f9d65e"]]);let Or=!1;function Nr(e){Or=e}function Pg(){return Or}const Ag={class:"vv-nl__body"},Tg=["disabled"],jg=["disabled"],Lg={key:1,class:"vv-nl__err","data-test":"nl-error"},Mg={key:2,class:"vv-nl__ok","data-test":"nl-done"},Dr="vv_nl_state",Ig=30,Og=Pe(ze({__name:"NewsletterPopup",props:{endpoint:{}},setup(e){const t=e,s=K(!1),a=K(""),n=K(!1),o=K(!1),i=K(""),r=K(null);ds(s,()=>r.value,()=>m());function u(){try{const y=localStorage.getItem(Dr);if(!y)return!1;const E=JSON.parse(y);return!!E.done||typeof E.until=="number"&&Date.now()<E.until}catch{return!1}}let f=0,c=null;function d(){f&&window.clearTimeout(f),c&&window.removeEventListener("scroll",c),f=0,c=null}function h(){d(),!(Pg()||u())&&(s.value=!0)}Oe(()=>{u()||(f=window.setTimeout(h,25e3),c=()=>{const E=document.documentElement.scrollHeight-window.innerHeight;E>0&&window.scrollY/E>=.4&&h()},window.addEventListener("scroll",c,{passive:!0}))}),vt(d);function m(){s.value=!1;try{localStorage.setItem(Dr,JSON.stringify(n.value?{done:!0}:{until:Date.now()+Ig*864e5}))}catch{}}async function $(){if(!o.value){i.value="",o.value=!0;try{const y=new FormData;y.append("email",a.value),y.append("action","0"),y.append("submitNewsletter","1"),y.append("ajax","1");const E=t.endpoint||"/index.php?fc=module&module=ps_emailsubscription&controller=subscription",L=await fetch(E,{method:"POST",body:y,headers:{"X-Requested-With":"XMLHttpRequest"}}),w=await L.json();if(!L.ok||!w||w.nw_error){i.value=w&&w.msg||"Nie udaÅo siÄ zapisaÄ. Spróbuj ponownie.";return}n.value=!0,window.setTimeout(m,2600)}catch{i.value="Nie udaÅo siÄ zapisaÄ. Spróbuj ponownie."}finally{o.value=!1}}}return(y,E)=>(v(),Ne(gt,{to:"body"},[ce(st,{name:"vv-fade"},{default:We(()=>[s.value?(v(),p("div",{key:0,class:"vv-nl__overlay","data-test":"newsletter",onClick:Be(m,["self"])},[l("div",{ref_key:"panelEl",ref:r,class:"vv-nl",role:"dialog","aria-modal":"true","aria-label":"Newsletter",tabindex:"-1"},[l("button",{class:"vv-nl__x",type:"button","aria-label":"Zamknij",onClick:m},"â"),E[3]||(E[3]=l("div",{class:"vv-nl__head"},[l("p",{class:"vv-nl__kicker"},"Newsletter Vespera"),l("h3",{class:"vv-nl__title"},"Premiery, zanim zniknÄ
nakÅady")],-1)),l("div",Ag,[E[2]||(E[2]=l("ul",{class:"vv-nl__perks"},[l("li",null,"zapowiedzi i przedsprzedaże â zanim trafiÄ
na strony"),l("li",null,"wznowienia wyczerpanych tytuÅów â pierwszeÅstwo informacji"),l("li",null,"piszemy tylko, gdy jest o czym â wypiszesz siÄ jednym klikniÄciem")],-1)),n.value?C("",!0):(v(),p("form",{key:0,class:"vv-nl__form",onSubmit:Be($,["prevent"])},[_t(l("input",{"onUpdate:modelValue":E[0]||(E[0]=L=>a.value=L),type:"email",placeholder:"Twój adres e-mail",required:"",disabled:o.value,"data-test":"nl-email"},null,8,Tg),[[us,a.value]]),l("button",{type:"submit",class:"vv-nl__bt
27n",disabled:o.value,"data-test":"nl-submit"},g(o.value?"ZapisujÄâ¦":"ZapisujÄ siÄ"),9,jg)],32)),!n.value&&i.value?(v(),p("p",Lg,g(i.value),1)):C("",!0),n.value?(v(),p("p",Mg,[...E[1]||(E[1]=[l("span",{class:"vv-nl__ok-ico","aria-hidden":"true"},"â",-1),ue(" DziÄkujemy! Twój adres zostaÅ zapisany.",-1)])])):C("",!0),n.value?C("",!0):(v(),p("button",{key:3,class:"vv-nl__later",type:"button",onClick:m},"Nie teraz"))])],512)])):C("",!0)]),_:1})]))}}),[["__scopeId","data-v-94a84d4d"]]),Ng={class:"vv-blog"},Dg={key:0,class:"vv-blog__filters","aria-label":"Kategorie bloga"},Rg=["aria-pressed"],Fg=["aria-pressed","onClick"],Ug={key:1,class:"vv-blog__grid"},qg={class:"vv-blogcard"},Wg=["href","aria-label"],Hg=["src","alt"],Bg={class:"vv-blogcard__word","aria-hidden":"true"},Kg={class:"vv-blogcard__body"},Vg={class:"vv-blogcard__meta"},Xg={class:"vv-blogcard__cat"},Zg={key:0},Gg={class:"vv-blogcard__title"},Jg=["href"],Yg={class:"vv-blogcard__excerpt"},Qg=["href"],ey={key:2,class:"vv-blog__empty"},ty={class:"vv-blog__foot"},sy={key:0,class:"vv-blog__loading"},ny=Pe(ze({__name:"BlogList",props:{endpoint:{},categories:{},initial:{}},setup(e){const t=e,s=!!(t.initial&&t.initial.posts&&t.initial.posts.length),a=K(s?t.initial.posts:[]),n=K(s&&t.initial.page||1),o=K(s?t.initial.pages:1),i=K(s?t.initial.total:0),r=K(!1),u=K(0);async function f(m=!1){r.value=!0;try{const $=`${t.endpoint}&page=${n.value}${u.value?`&category=${u.value}`:""}`,E=await(await fetch($,{headers:{"X-Requested-With":"XMLHttpRequest"}})).json();a.value=m?E.posts:[...a.value,...E.posts],o.value=E.pages,i.value=E.total}catch{}finally{r.value=!1}}function c(m){u.value!==m&&(u.value=m,n.value=1,f(!0))}function d(){n.value<o.value&&(n.value+=1,f(!1))}function h(m){const $=m.target,y=$.closest(".vv-blogcard__media");y&&y.classList.add("is-empty"),$.remove()}return Oe(()=>{s||f(!0)}),(m,$)=>(v(),p("section",Ng,[$[1]||($[1]=l("header",{class:"vv-blog__head"},[l("p",{class:"vv-blog__kicker"},"Wydawnictwo Vesper"),l("h1",{class:"vv-blog__title"},"Z naszego bloga"),l("p",{class:"vv-blog__sub"},"Premiery, zapowiedzi, kulisy wydaÅ i historie zza okÅadek.")],-1)),e.categories&&e.categories.length?(v(),p("nav",Dg,[l("button",{class:ie(["vv-blog__chip",{"is-active":u.value===0}]),"aria-pressed":u.value===0?"true":"false",type:"button",onClick:$[0]||($[0]=y=>c(0))},"Wszystkie",10,Rg),(v(!0),p(Z,null,fe(e.categories,y=>(v(),p("button",{key:y.id,class:ie(["vv-blog__chip",{"is-active":u.value===y.id}]),"aria-pressed":u.value===y.id?"true":"false",type:"button",onClick:E=>c(y.id)},g(y.name),11,Fg))),128))])):C("",!0),a.value.length?(v(),p("ul",Ug,[(v(!0),p(Z,null,fe(a.value,y=>(v(),p("li",{key:y.id},[l("article",qg,[l("a",{href:y.url,class:ie(["vv-blogcard__media",[`is-v${y.id%3}`,{"is-empty":!y.image}]]),"aria-label":y.title},[y.image?(v(),p("img",{key:0,src:y.image,alt:y.title,loading:"lazy",onError:h},null,40,Hg)):C("",!0),l("span",Bg,g(y.category||y.title.charAt(0)),1)],10,Wg),l("div",Kg,[l("p",Vg,[l("span",Xg,g(y.category),1),y.category&&y.date?(v(),p("span",Zg," · ")):C("",!0),ue(g(y.date),1)]),l("h2",Gg,[l("a",{href:y.url},g(y.title),9,Jg)]),l("p",Yg,g(y.excerpt),1),l("a",{href:y.url,class:"vv-blogcard__more"},"Czytaj wiÄcej â",8,Qg)])])]))),128))])):r.value?C("",!0):(v(),p("p",ey,"Brak wpisów w tej kategorii.")),l("div",ty,[r.value?(v(),p("p",sy,"Åadowanieâ¦")):n.value<o.value?(v(),p("button",{key:1,class:"vv-blog__more",type:"button",onClick:d},"Wczytaj starsze wpisy")):C("",!0)])]))}}),[["__scopeId","data-v-a70d6296"]]),ay={class:"vv-post"},oy=["href"],iy={class:"vv-post__head"},ry={class:"vv-post__meta"},ly={key:0,class:"vv-post__cat"},cy={key:1},uy={key:2},dy={class:"vv-post__title"},vy=["src","alt"],fy=["innerHTML"],py={key:0,class:"vv-buy","aria-label":"KsiÄ
żka z tego wpisu"},hy=["href","aria-label"],my=["src","alt"],_y={class:"vv-buy__body"},gy={class:"vv-buy__name"},yy=["href"],by={key:0,class:"vv-buy__author"},ky={class:"vv-buy__row"},wy={key:0,class:"vv-buy__price"},$y=["href"],Sy={class:"vv-post__foot"},Cy=["href"],xy={class:"vv-post__share","aria-label":"UdostÄpnij wpis"},Ey=["href"],zy=["href"],Py={key:1,class:"vv-post__related"},Ay={class:"vv-post__rel-grid"},Ty=["href"],jy=["src","alt"],Ly={class:"vv-relcard__meta"},My={class:"vv-relcard__title"},Iy=Pe(ze({__name:"BlogPost",props:{post:{},blogUrl:{}},setup(e){const t=e,s=ft(),a=D(()=>{const f=(t.post.content||"").replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim();return Math.max(1,Math.round(f.length/900))}),n=D(()=>typeof window<"u"?window.location.href:""),o=D(()=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(n.value)}`),i=D(()=>`https://x.com/intent/post?url=${encodeURIComponent(n.value)}&text=${encodeURIComponent(t.post.title)}`);async function r(){try{await navigator.clipboard.writeText(window.location.href),s.push("Link skopiowany do schowka")}catch{s.push("Nie udaÅo siÄ skopiowaÄ linku","error")}}function u(f){const c=f.target,d=c.closest(".is-img");d&&d.classList.add("is-empty"),c.remove()}return(f,c)=>(v(),p("article",ay,[l("a",{href:e.blogUrl,class:"vv-post__back"},"â WrÃ³Ä na blog",8,oy),l("header",iy,[l("p",ry,[e.post.category?(v(),p("span",ly,g(e.post.category),1)):C("",!0),e.post.category&&e.post.date?(v(),p("span",cy," · ")):C("",!0),ue(g(e.post.date),1),e.post.date||e.post.category?(v(),p("span",uy," · ")):C("",!0),ue(g(a.value)+" min czytania",1)]),l("h1",dy,g(e.post.t
27itle),1)]),l("div",{class:ie(["vv-post__hero is-img",{"is-empty":!e.post.image}])},[e.post.image?(v(),p("img",{key:0,src:e.post.image,alt:e.post.title,onError:u},null,40,vy)):C("",!0),c[0]||(c[0]=l("span",{class:"vv-post__glyph","aria-hidden":"true"},"â¦",-1))],2),l("div",{class:"vv-post__content rich-text",innerHTML:e.post.content},null,8,fy),e.post.product?(v(),p("aside",py,[l("a",{href:e.post.product.url,class:ie(["vv-buy__media is-img",{"is-empty":!e.post.product.image}]),"aria-label":e.post.product.name},[e.post.product.image?(v(),p("img",{key:0,src:e.post.product.image,alt:e.post.product.name,loading:"lazy",onError:u},null,40,my)):C("",!0),c[1]||(c[1]=l("span",{class:"vv-buy__glyph","aria-hidden":"true"},"â¦",-1))],10,hy),l("div",_y,[c[2]||(c[2]=l("p",{class:"vv-buy__kicker"},"Z tego wpisu",-1)),l("p",gy,[l("a",{href:e.post.product.url},g(e.post.product.name),9,yy)]),e.post.product.author?(v(),p("p",by,g(e.post.product.author),1)):C("",!0),l("div",ky,[e.post.product.price?(v(),p("span",wy,g(e.post.product.price),1)):C("",!0),l("a",{href:e.post.product.url,class:"vv-buy__cta"},"Kup ksiÄ
żkÄ",8,$y)])])])):C("",!0),l("footer",Sy,[l("a",{href:e.blogUrl,class:"vv-post__back vv-post__back--btm"},"â Wszystkie wpisy",8,Cy),l("div",xy,[c[3]||(c[3]=l("span",{class:"vv-post__share-label","aria-hidden":"true"},"UdostÄpnij:",-1)),l("button",{type:"button",class:"vv-post__share-btn",onClick:r},"Kopiuj link"),l("a",{class:"vv-post__share-btn",href:o.value,target:"_blank",rel:"noopener nofollow"},"Facebook",8,Ey),l("a",{class:"vv-post__share-btn",href:i.value,target:"_blank",rel:"noopener nofollow"},"X",8,zy)])]),e.post.related&&e.post.related.length?(v(),p("section",Py,[c[5]||(c[5]=l("h2",{class:"vv-post__rel-title"},"Czytaj dalej",-1)),l("ul",Ay,[(v(!0),p(Z,null,fe(e.post.related,d=>(v(),p("li",{key:d.id},[l("a",{href:d.url,class:"vv-relcard"},[l("span",{class:ie(["vv-relcard__media is-img",{"is-empty":!d.image}])},[d.image?(v(),p("img",{key:0,src:d.image,alt:d.title,loading:"lazy",onError:u},null,40,jy)):C("",!0),c[4]||(c[4]=l("span",{class:"vv-relcard__glyph","aria-hidden":"true"},"â¦",-1))],2),l("span",Ly,g(d.category)+" · "+g(d.date),1),l("span",My,g(d.title),1)],8,Ty)]))),128))])])):C("",!0)]))}}),[["__scopeId","data-v-525dda00"]]),Oy={key:0,class:"vv-bt"},Ny={class:"vv-bt__head"},Dy=["href"],Ry={class:"vv-bt__grid"},Fy={class:"vv-bt__card"},Uy=["href","aria-label"],qy=["src","alt"],Wy={class:"vv-bt__meta"},Hy={class:"vv-bt__cat"},By={key:0},Ky={class:"vv-bt__ctitle"},Vy=["href"],Xy={class:"vv-bt__excerpt"},Zy=Pe(ze({__name:"BlogTeaser",props:{endpoint:{},viewAllHref:{}},setup(e){const t=e,s=K([]);Oe(async()=>{try{const o=await(await fetch(`${t.endpoint}&page=1`,{headers:{"X-Requested-With":"XMLHttpRequest"}})).json();s.value=(o.posts||[]).slice(0,4)}catch{}});function a(n){const o=n.target,i=o.closest(".vv-bt__media");i&&i.classList.add("is-empty"),o.remove()}return(n,o)=>s.value.length?(v(),p("section",Oy,[l("header",Ny,[o[0]||(o[0]=l("div",{class:"vv-bt__headline"},[l("p",{class:"vv-bt__kicker"},"AktualnoÅci"),l("h2",{class:"vv-bt__title"},"Z bloga")],-1)),l("a",{href:e.viewAllHref,class:"vv-bt__viewall"},"Wszystkie wpisy â",8,Dy)]),l("ul",Ry,[(v(!0),p(Z,null,fe(s.value,i=>(v(),p("li",{key:i.id},[l("article",Fy,[l("a",{href:i.url,class:ie(["vv-bt__media",{"is-empty":!i.image}]),"aria-label":i.title},[i.image?(v(),p("img",{key:0,src:i.image,alt:i.title,loading:"lazy",onError:a},null,40,qy)):C("",!0),o[1]||(o[1]=l("span",{class:"vv-bt__glyph","aria-hidden":"true"},"â¦",-1))],10,Uy),l("p",Wy,[l("span",Hy,g(i.category),1),i.category&&i.date?(v(),p("span",By," · ")):C("",!0),ue(g(i.date),1)]),l("h3",Ky,[l("a",{href:i.url},g(i.title),9,Vy)]),l("p",Xy,g(i.excerpt),1)])]))),128))])])):C("",!0)}}),[["__scopeId","data-v-3d4a4ee4"]]),Gy={key:0,class:"vv-co-bar","aria-hidden":"true"},Jy={key:0,class:"vv-co-pill",role:"status","aria-live":"polite"},Yy={key:0,class:"vv-co-error",role:"alert"},Rr=".checkout-grid__content .tab-content",Fr=".checkout-grid__aside .cart-summary",Qy="/index.php?fc=module&module=vesperstorefront&controller=emailcheck",eb=Pe(ze({__name:"CheckoutQuick",setup(e){const t=K(!1),s=K(""),a=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function n(){return document.querySelector(Rr)}function o(){var A;(A=n())==null||A.querySelectorAll(".step").forEach(O=>{O.classList.contains("step--unreachable")||O.classList.add("show","active")})}function i(A){return A.closest(".mb-3, .form-group")??A.parentElement}function r(A){if(!(A instanceof HTMLElement)||!A.matches("input, select, textarea"))return!1;const O=n();return!!O&&O.contains(A)}function u(A){if(A.offsetParent===null)return{valid:!0,msg:""};const O=(A.getAttribute("type")||A.type||"").toLowerCase(),X=A.getAttribute("name")||"",oe=A.required;if(O==="checkbox")return oe&&!A.checked?{valid:!1,msg:"To pole jest wymagane."}:{valid:!0,msg:""};const ne=(A.value||"").trim();if(oe&&!ne)return{valid:!1,msg:"To pole jest wymagane."};if(ne){if((O==="email"||/email/i.test(X))&&!a.test(ne))return{valid:!1,msg:"Podaj poprawny adres e-mail."};
27if(/postcode|zip/i.test(X)&&!/^\d{2}-\d{3}$/.test(ne))return{valid:!1,msg:"Kod pocztowy w formacie XX-XXX."};if((O==="tel"||/phone|telefon|mobile/i.test(X))&&ne.replace(/\D/g,"").length<9)return{valid:!1,msg:"Podaj poprawny numer telefonu (min. 9 cyfr)."}}return{valid:!0,msg:""}}function f(A,O){const X=i(A);if(!X)return;const oe=(A.value||"").trim()!=="";X.classList.toggle("vv-fld--invalid",!O.valid),X.classList.toggle("vv-fld--valid",O.valid&&oe&&A.type!=="checkbox"),A.setAttribute("aria-invalid",O.valid?"false":"true");let ne=X.querySelector(".vv-fielderr");O.valid?ne&&(ne.remove(),A.removeAttribute("aria-describedby")):(ne||(ne=document.createElement("p"),ne.className="vv-fielderr",ne.id="vverr-"+((A.id||A.getAttribute("name")||"f").replace(/[^\w-]/g,"")||"f"),X.appendChild(ne)),ne.textContent=O.msg,A.setAttribute("aria-describedby",ne.id))}const c=new Map;function d(A,O){const X=i(A);if(!X)return;const oe=X.querySelector(".vv-email-note");if(!O){oe==null||oe.remove();return}if(oe)return;const ne=document.createElement("p");ne.className="vv-email-note",ne.setAttribute("role","status");const re=document.createElement("span");re.textContent="Masz już konto â ";const ye=document.createElement("button");ye.type="button",ye.className="vv-email-note__login",ye.textContent="zaloguj siÄ",ye.addEventListener("click",()=>{const he=document.querySelector('#personal-information-tabs [data-bs-target="#checkout-login-form"]');he==null||he.click();const $e=document.querySelector("#checkout-login-form [name=email]");$e&&($e.value=(A.value||"").trim(),setTimeout(()=>$e.focus(),150))});const De=document.createElement("span");De.textContent=" â albo kontynuuj jako goÅÄ.",ne.append(re,ye,De),X.appendChild(ne)}async function h(A){var oe;if((A.getAttribute("name")||"")!=="email"||!((oe=A.closest(".step"))!=null&&oe.id.includes("personal"))||A.closest("#checkout-login-form"))return;const O=(A.value||"").trim();if(!a.test(O)){d(A,!1);return}const X=c.get(O);if(X!==void 0){d(A,X);return}try{const re=await(await fetch(Qy+"&email="+encodeURIComponent(O),{headers:{"X-Requested-With":"XMLHttpRequest"}})).json();c.set(O,!!re.exists),(A.value||"").trim()===O&&d(A,!!re.exists)}catch{}}function m(A){const O=A.value.replace(/\D/g,"").slice(0,5),X=O.length>2?O.slice(0,2)+"-"+O.slice(2):O;X!==A.value&&(A.value=X)}const $={firstname:{ac:"given-name"},lastname:{ac:"family-name"},email:{ac:"email"},phone:{ac:"tel",im:"tel"},phone_mobile:{ac:"tel",im:"tel"},company:{ac:"organization"},address1:{ac:"address-line1"},address2:{ac:"address-line2"},postcode:{ac:"postal-code",im:"numeric"},city:{ac:"address-level2"}};function y(){var A;(A=n())==null||A.querySelectorAll("input[name], select[name]").forEach(O=>{const X=$[O.getAttribute("name")||""];X&&(O.getAttribute("autocomplete")||O.setAttribute("autocomplete",X.ac),X.im&&!O.getAttribute("inputmode")&&O.setAttribute("inputmode",X.im))})}function E(){document.querySelectorAll(".js-step-item").forEach(A=>{const O=A.dataset.step?document.getElementById(A.dataset.step):null,X=A.querySelector("button");A.classList.remove("checkout-steps__step--current","checkout-steps__step--success"),O&&(O.classList.contains("step--complete")&&A.classList.add("checkout-steps__step--success"),O.classList.contains("step--current")?(A.classList.add("checkout-steps__step--current"),X==null||X.classList.add("active"),document.querySelectorAll(".checkout-steps__step-mobile").forEach(oe=>{oe.classList.toggle("d-none",oe.dataset.step!==A.dataset.step)})):X==null||X.classList.remove("active"))})}function L(){var X,oe,ne;y();const A=(X=n())==null?void 0:X.querySelector(".step--current");if(!A)return;(oe=n())==null||oe.querySelectorAll("form").forEach(re=>{z(re)&&(re.noValidate=!0)}),(ne=n())==null||ne.querySelectorAll('input[name="phone"]').forEach(re=>{var De;if(re.required)return;re.required=!0;const ye=re.closest(".mb-3")??re.closest(".form-group")??re.parentElement;(De=ye==null?void 0:ye.querySelector("label.form-label, label"))==null||De.classList.add("required"),ye==null||ye.querySelectorAll(".form-text").forEach(he=>{/opcjonaln|optional/i.test(he.textContent??"")&&he.remove()})});const O=[...A.querySelectorAll("input:not([type=hidden]):not([type=checkbox]):not([type=radio]), select, textarea")].find(re=>re.offsetParent!==null);O&&!O.value&&document.activeElement!==O&&O.focus({preventScroll:!0}),E(),te(),T(),w()}function w(){document.querySelectorAll('#checkout [data-ps-action="toggle-password"]').forEach(A=>{if(A.dataset.vvBound==="1")return;const O=A.cloneNode(!0);O.dataset.vvBound="1",A.replaceWith(O),O.addEventListener("click",()=>{const X=O.previousElementSibling;if(!X)return;const oe=X.getAttribute("type")==="text"?"password":"text";
27X.setAttribute("type",oe);const ne=O.firstElementChild;ne&&(ne.innerHTML=oe==="text"?"visibility_off":"visibility");const{textHide:re,textShow:ye}=O.dataset;re&&ye&&O.setAttribute("aria-label",oe==="text"?re:ye)})})}function T(){var oe,ne;if(window.matchMedia("(min-width: 1025px)").matches)return;const A=document.querySelector(".checkout__summary-accordion-header .accordion-button"),O=document.querySelector("#js-checkout-summary");if(!A||!O)return;const X=(ne=(oe=document.querySelector("#js-checkout-summary .cart-summary__line--bold .cart-summary__value, #js-checkout-summary .cart-summary__total .cart-summary__value"))==null?void 0:oe.textContent)==null?void 0:ne.trim();if(X&&!A.querySelector(".vv-sum-total")){const re=document.createElement("span");re.className="vv-sum-total",re.textContent=X,A.appendChild(re)}O.classList.remove("show"),A.classList.add("collapsed"),A.setAttribute("aria-expanded","false")}const M={};function F(A,O){const X=oe=>{var ne;return(((ne=O.querySelector(oe))==null?void 0:ne.value)||"").trim()};if(A.includes("personal"))return[[X("[name=firstname]"),X("[name=lastname]")].filter(Boolean).join(" "),X("[name=email]")].filter(Boolean).join(" · ");if(A.includes("address")){const oe=[X("[name=postcode]"),X("[name=city]")].filter(Boolean).join(" ");return[X("[name=address1]"),oe].filter(Boolean).join(", ")}if(A.includes("delivery")){const oe=O.querySelector('.delivery-option input:checked, input[name^="delivery_option"]:checked'),ne=oe==null?void 0:oe.closest(".delivery-option, li, label");return((ne==null?void 0:ne.textContent)||"").replace(/\s+/g," ").trim().slice(0,60)}return""}function de(A){return M[A.id]||F(A.id,A)}function te(){var A;(A=n())==null||A.querySelectorAll(".step--complete").forEach(O=>{if(O.classList.contains("step--current"))return;const X=O.querySelector(".step__title");if(!X||X.querySelector(".vv-step-summary"))return;const oe=de(O);if(!oe)return;const ne=document.createElement("div");ne.className="vv-step-summary";const re=document.createElement("span");re.className="vv-step-summary__text",re.textContent=oe;const ye=document.createElement("button");ye.type="button",ye.className="vv-step-summary__edit",ye.textContent="Edytuj",ye.addEventListener("click",()=>{var he;const De=O.classList.toggle("vv-editing");ye.textContent=De?"ZwiÅ":"Edytuj",De&&((he=O.querySelector("input:not([type=hidden]):not([type=checkbox]):not([type=radio]), select"))==null||he.focus())}),ne.append(re,ye),X.appendChild(ne)})}function R(A){const O=[...A.querySelectorAll("input:not([type=hidden]), select, textarea")].filter(oe=>oe.offsetParent!==null);let X=null;for(const oe of O){const ne=u(oe);f(oe,ne),!ne.valid&&!X&&(X=oe)}return X?(X.focus({preventScroll:!0}),X.scrollIntoView({behavior:"smooth",block:"center"}),!1):!0}function b(A){var ye,De;const O=A.querySelector(Rr),X=A.querySelector(Fr),oe=n(),ne=document.querySelector(Fr);O&&oe&&(oe.innerHTML=O.innerHTML),X&&ne&&(ne.innerHTML=X.innerHTML),o(),(ye=window.vvMountIslands)==null||ye.call(window),L();const re=(De=n())==null?void 0:De.querySelector(".step--current");requestAnimationFrame(()=>re==null?void 0:re.scrollIntoView({behavior:"smooth",block:"start"}))}async function S(A,O){if(t.value)return;t.value=!0,s.value="";const X=O;X&&(X.disabled=!0,X.classList.add("vv-btn--loading"));const oe=A.closest(".step");if(oe){const ne=F(oe.id,A);ne&&(M[oe.id]=ne)}try{const ne=new FormData(A);X!=null&&X.name&&!ne.has(X.name)&&ne.append(X.name,X.value||"1");const ye=await(await fetch(A.action,{method:"POST",body:ne,headers:{"X-Requested-With":"XMLHttpRequest"},redirect:"follow"})).text();if(!ye)throw new Error("empty response");b(new DOMParser().parseFromString(ye,"text/html"))}catch(ne){s.value="Nie udaÅo siÄ zaktualizowaÄ zamówienia. Sprawdź dane i spróbuj ponownie.",console.warn("[vv-checkout] step submit failed",ne)}finally{t.value=!1,X&&(X.disabled=!1,X.classList.remove("vv-btn--loading"))}}function z(A){try{return new URL(A.action,location.href).pathname===location.pathname}catch{return!1}}function P(A){const O=(A==null?void 0:A.form)??(A==null?void 0:A.closest("form")),X=n();return!O||!X||!X.contains(O)||!z(O)?null:O}function Q(A){var oe,ne;const O=(ne=(oe=A.target)==null?void 0:oe.closest)==null?void 0:ne.call(oe,"button[type=submit], input[type=submit]");if(!O)return;const X=P(O);X&&(R(X)||(A.preventDefault(),A.stopImmediatePropagation()))}function ge(A){const O=P(A.target);O&&(A.preventDefault(),R(O)&&S(O,A.submitter))}
27function we(A){r(A.target)&&(f(A.target,u(A.target)),h(A.target))}function ke(A){var X;const O=A.target;r(O)&&(/postcode|zip/i.test(O.getAttribute("name")||"")&&m(O),(X=i(O))!=null&&X.classList.contains("vv-fld--invalid")&&f(O,u(O)))}return Oe(()=>{o(),L(),document.addEventListener("click",Q,!0),document.addEventListener("submit",ge,!0),document.addEventListener("focusout",we),document.addEventListener("input",ke)}),vt(()=>{document.removeEventListener("click",Q,!0),document.removeEventListener("submit",ge,!0),document.removeEventListener("focusout",we),document.removeEventListener("input",ke)}),(A,O)=>(v(),p(Z,null,[(v(),Ne(gt,{to:"body"},[t.value?(v(),p("div",Gy,[...O[0]||(O[0]=[l("span",null,null,-1)])])):C("",!0),ce(st,{name:"vv-co-fade"},{default:We(()=>[t.value?(v(),p("div",Jy,[...O[1]||(O[1]=[l("span",{class:"vv-co-pill__dot"},null,-1),ue(" AktualizujÄ zamówienie⦠",-1)])])):C("",!0)]),_:1})])),s.value?(v(),p("p",Yy,g(s.value),1)):C("",!0)],64))}}),[["__scopeId","data-v-039a013f"]]),tb=ze({__name:"CartShipBar",props:{total:{},threshold:{}},setup(e){const t=e,s=yt(),a=D(()=>s.total?Bn(s.total):t.total??0);return(n,o)=>a.value>0?(v(),Ne(Ha,{key:0,class:"vv-cart-ship",total:a.value,threshold:e.threshold},null,8,["total","threshold"])):C("",!0)}}),sb={key:0,class:"vv-addons","aria-label":"Dodaj do zamówienia"},nb={key:0,class:"vv-addons__sub"},ab={class:"vv-addons__list"},ob=["href"],ib={class:"vv-addons__body"},rb=["href"],lb={class:"vv-addons__price"},cb={key:0,class:"vv-addons__old"},ub=["aria-label","disabled","onClick"],db=40,vb=Pe(ze({__name:"CartAddons",props:{endpoint:{},cartUrl:{},token:{},threshold:{}},setup(e){const t=e,s=yt(),a=K([]),n=D(()=>t.threshold??200),o=D(()=>Math.max(0,n.value-Bn(s.total))),i=D(()=>{if(!s.productsCount)return[];const r=new Set(s.products.map(u=>u.id_product));return a.value.filter(u=>u.availability==="in_stock"&&u.price.amount>0&&u.price.amount<db&&!r.has(u.id)).slice(0,3)});return Oe(async()=>{s.configure(t.cartUrl,t.token??""),s.listen(),s.prime();try{const r=await Ss(t.endpoint).fetchListing({idCategory:7,resultsPerPage:24,order:"product.price.asc"});a.value=r.products}catch{a.value=[]}}),(r,u)=>i.value.length?(v(),p("section",sb,[u[2]||(u[2]=l("h3",{class:"vv-addons__head"},"Dodaj do zamówienia",-1)),o.value>0?(v(),p("p",nb,[u[0]||(u[0]=ue(" Do ",-1)),u[1]||(u[1]=l("strong",null,"darmowej dostawy",-1)),ue(" (od "+g(n.value)+" zÅ) brakuje "+g(G($s)(o.value)),1)])):C("",!0),l("ul",ab,[(v(!0),p(Z,null,fe(i.value,f=>{var c;return v(),p("li",{key:f.id,class:"vv-addons__item"},[l("a",{href:f.url,class:"vv-addons__cover"},[ce(Ke,{id:f.id,title:f.title,author:(c=f.authors[0])==null?void 0:c.name,image:f.cover.url},null,8,["id","title","author","image"])],8,ob),l("div",ib,[l("a",{href:f.url,class:"vv-addons__name"},g(f.title),9,rb),l("span",lb,[f.regularPrice&&f.regularPrice.amount>f.price.amount?(v(),p("s",cb,g(f.regularPrice.formatted),1)):C("",!0),ue(" "+g(f.price.formatted),1)])]),l("button",{class:"vv-addons__add",type:"button","aria-label":`Dodaj â${f.title}â do zamówienia`,disabled:G(s).loading,onClick:d=>G(s).add(f.id)},"Dodaj",8,ub)])}),128))])])):C("",!0)}}),[["__scopeId","data-v-71f6aee1"]]),fb={class:"vv-consent__inner"},pb={key:0,class:"vv-consent__panel"},hb={class:"vv-consent__cats"},mb={class:"vv-consent__cat-row"},_b=["checked","disabled","aria-label","data-test","onChange"],gb={class:"vv-consent__cat-meta"},yb={class:"vv-consent__cat-name"},bb={key:0,class:"vv-consent__cat-always"},kb={class:"vv-consent__cat-desc"},wb={class:"vv-consent__actions"},$b={key:1,class:"vv-consent__actions"},Xa="vv_consent",Sb=60*60*24*365,Cb=Pe(ze({__name:"ConsentBanner",setup(e){var L,w;function t(){try{const T=localStorage.getItem(Xa);if(!T)return null;const M=JSON.parse(T);return!M||typeof M!="object"||M.necessary!==!0?null:{necessary:!0,analytics:!!M.analytics,marketing:!!M.marketing,ts:Number(M.ts)||0}}catch{return null}}function s(T){try{localStorage.setItem(Xa,JSON.stringify(T))}catch{}try{document.cookie=`${Xa}=${encodeURIComponent(JSON.stringify(T))}; max-age=${Sb}; path=/; SameSite=Lax`}catch{}}const a=K(t()),n=K(!1),o=K(!1),i=K(null),r=Ht({analytics:((L=a.value)==null?void 0:L.analytics)??!1,marketing:((w=a.value)==null?void 0:w.marketing)??!1});function u(T=!1){var M,F;r.analytics=((M=a.value)==null?void 0:M.analytics)??!1,r.marketing=((F=a.value)==null?void 0:F.marketing)??!1,o.value=T,n.value=!0}function f(T,M){const F={necessary:!0,analytics:T,marketing:M,ts:Date.now()};a.value=F,s(F),n.value=!1;try{window.dispatchEvent(new CustomEvent("vv:consent",{detail:F}))}catch{}}const c=()=>f(!0,!0),d=()=>f(!1,!1),h=()=>f(r.analytics,r.marketing);let m=null;function $(){const T=document.documentElement;Nr(n.value),T.classList.toggle("vv-consent-open",n.value),n.value&&i.value?T.style.setProperty("--vv-consent-h",`${i.value.offsetHeight}px`):T.style.removeProperty("--vv-consent-h")}
27Ue([n,o],()=>requestAnimationFrame($)),Oe(()=>{a.value||u(!1),typeof ResizeObserver<"u"&&(m=new ResizeObserver(()=>{n.value&&$()}),Ue(i,(T,M,F)=>{T&&m&&(m.observe(T),F(()=>m==null?void 0:m.unobserve(T)))},{immediate:!0})),document.addEventListener("click",y),window.vvConsent={get:()=>a.value?{...a.value}:null,has:T=>T==="necessary"?!0:a.value?T==="analytics"?a.value.analytics:T==="marketing"?a.value.marketing:!1:!1,open:()=>u(!0)}});function y(T){var F,de;(de=(F=T.target)==null?void 0:F.closest)!=null&&de.call(F,"[data-vv-consent-open]")&&(T.preventDefault(),u(!0))}vt(()=>{document.removeEventListener("click",y),m==null||m.disconnect(),Nr(!1)});const E=D(()=>[{key:"necessary",label:"NiezbÄdne",desc:"Sesja, koszyk, bezpieczeÅstwo â sklep bez nich nie dziaÅa.",locked:!0},{key:"analytics",label:"Analityczne",desc:"Anonimowe statystyki odwiedzin â pomagajÄ
ulepszaÄ ksiÄgarniÄ.",locked:!1},{key:"marketing",label:"Marketingowe",desc:"Personalizacja reklam i treÅci poza sklepem.",locked:!1}]);return(T,M)=>(v(),Ne(gt,{to:"body"},[ce(st,{name:"vv-consent"},{default:We(()=>[n.value?(v(),p("section",{key:0,ref_key:"rootEl",ref:i,class:"vv-consent",role:"region","aria-label":"Zgody na pliki cookies","data-test":"consent-banner"},[l("div",fb,[M[3]||(M[3]=l("div",{class:"vv-consent__copy"},[l("h2",{class:"vv-consent__title"},"Szanujemy TwojÄ
prywatnoÅÄ"),l("p",{class:"vv-consent__text"}," Używamy plików cookies, by ksiÄgarnia dziaÅaÅa poprawnie, a za TwojÄ
zgodÄ
â także do statystyk i marketingu. ")],-1)),o.value?(v(),p("div",pb,[l("ul",hb,[(v(!0),p(Z,null,fe(E.value,F=>(v(),p("li",{key:F.key,class:"vv-consent__cat"},[l("label",mb,[l("input",{class:"vv-consent__check",type:"checkbox",checked:F.locked?!0:r[F.key],disabled:F.locked,"aria-label":F.label,"data-test":`consent-toggle-${F.key}`,onChange:de=>!F.locked&&(r[F.key]=de.target.checked)},null,40,_b),M[2]||(M[2]=l("span",{class:"vv-consent__switch","aria-hidden":"true"},null,-1)),l("span",gb,[l("span",yb,[ue(g(F.label),1),F.locked?(v(),p("span",bb," · zawsze aktywne")):C("",!0)]),l("span",kb,g(F.desc),1)])])]))),128))]),l("div",wb,[l("button",{class:"vv-consent__btn vv-consent__btn--blood",type:"button","data-test":"consent-save",onClick:h},"Zapisz wybór"),l("button",{class:"vv-consent__btn vv-consent__btn--ghost",type:"button",onClick:M[0]||(M[0]=F=>o.value=!1)},"WróÄ")])])):(v(),p("div",$b,[l("button",{class:"vv-consent__btn vv-consent__btn--blood",type:"button","data-test":"consent-accept",onClick:c},"AkceptujÄ wszystkie"),l("button",{class:"vv-consent__btn vv-consent__btn--ghost",type:"button","data-test":"consent-necessary",onClick:d},"Tylko niezbÄdne"),l("button",{class:"vv-consent__link",type:"button","data-test":"consent-customize",onClick:M[1]||(M[1]=F=>o.value=!0)},"Dostosuj")]))])],512)):C("",!0)]),_:1})]))}}),[["__scopeId","data-v-cc304a12"]]),xb=/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/,Eb=["#login-form","#customer-form","form.forgotten-password",'form[data-ps-action="form-validation"] .renew-password',".js-address-form form"].join(", ");function zb(){const e=new Set;return document.querySelectorAll(Eb).forEach(t=>{const s=t instanceof HTMLFormElement?t:t.closest("form");s&&e.add(s)}),[...e]}function Ur(e){return e.closest(".mb-3, .form-group, .form-check")??e.parentElement}function Zn(e){if(e.offsetParent===null)return{valid:!0,msg:""};const t=(e.getAttribute("type")||e.type||"").toLowerCase(),s=e.getAttribute("name")||"",a=e.required;if(t==="checkbox")return a&&!e.checked?{valid:!1,msg:"Zaznacz to pole, aby kontynuowaÄ."}:{valid:!0,msg:""};const n=(e.value||"").trim();if(a&&!n)return{valid:!1,msg:t==="password"?"Podaj hasÅo.":"To pole jest wymagane."};if(n){if((t==="email"||/email/i.test(s))&&!xb.test(n))return{valid:!1,msg:"Podaj poprawny adres e-mail."};const o=parseInt(e.getAttribute("minlength")||"0",10);if(o>0&&n.length<o)return{valid:!1,msg:`HasÅo musi mieÄ co najmniej ${o} znaków.`};if(/postcode|zip/i.test(s)&&!/^\d{2}-\d{3}$/.test(n))return{valid:!1,msg:"Kod pocztowy w formacie XX-XXX."};if((t==="tel"||/phone|telefon|mobile/i.test(s))&&n.replace(/\D/g,"").length<9)return{valid:!1,msg:"Podaj poprawny numer telefonu (min. 9 cyfr)."}}
27return{valid:!0,msg:""}}function Gn(e,t){const s=Ur(e);if(!s)return;const a=(e.value||"").trim()!=="";s.classList.toggle("vv-fld--invalid",!t.valid),s.classList.toggle("vv-fld--valid",t.valid&&a&&e.type!=="checkbox"&&e.tagName!=="SELECT"),e.setAttribute("aria-invalid",t.valid?"false":"true");let n=s.querySelector(".vv-fielderr");t.valid?n&&(n.remove(),e.removeAttribute("aria-describedby")):(n||(n=document.createElement("p"),n.className="vv-fielderr",n.id="vverr-"+((e.id||e.getAttribute("name")||"f").replace(/[^\w-]/g,"")||"f"),s.appendChild(n)),n.textContent=t.msg,e.setAttribute("aria-describedby",n.id))}function Pb(e){const t=[...e.querySelectorAll("input:not([type=hidden]), select, textarea")].filter(a=>a.offsetParent!==null);let s=null;for(const a of t){const n=Zn(a);Gn(a,n),!n.valid&&!s&&(s=a)}return s?(s.focus({preventScroll:!0}),s.scrollIntoView({behavior:"smooth",block:"center"}),!1):!0}function Ab(){const e=zb();if(!e.length)return;const t=s=>s instanceof HTMLElement&&s.matches("input, select, textarea")&&e.some(a=>a.contains(s));document.addEventListener("focusout",s=>{t(s.target)&&Gn(s.target,Zn(s.target))}),document.addEventListener("input",s=>{var n;const a=s.target;t(a)&&(n=Ur(a))!=null&&n.classList.contains("vv-fld--invalid")&&Gn(a,Zn(a))}),document.addEventListener("change",s=>{const a=s.target;t(a)&&(a.type==="checkbox"||a.tagName==="SELECT")&&Gn(a,Zn(a))}),document.addEventListener("click",s=>{var o,i;const a=(i=(o=s.target)==null?void 0:o.closest)==null?void 0:i.call(o,"button[type=submit], input[type=submit]");if(!a)return;const n=a.form??a.closest("form");!n||!e.includes(n)||Pb(n)||(s.preventDefault(),s.stopPropagation())},!0)}function Tb(e,t,s){const a=document.body.style.overflow;document.body.style.overflow="hidden";const n=document.createElement("div");n.className="vv-confirm",n.innerHTML=` 28 <div class="vv-confirm__panel" role="dialog" aria-modal="true" aria-labelledby="vv-confirm-title" aria-describedby="vv-confirm-desc"> 29 <p class="vv-confirm__kicker">Vesper · Konto</p> 30 <h2 class="vv-confirm__title" id="vv-confirm-title">UsunÄ Ä ten adres?</h2> 31 <p class="vv-confirm__desc" id="vv-confirm-desc"></p> 32 <div class="vv-confirm__actions"> 33 <button type="button" class="vv-confirm__cancel">Anuluj</button> 34 <button type="button" class="vv-confirm__ok">UsuÅ adres</button> 35 </div> 36 </div>`,n.querySelector(".vv-confirm__desc").textContent=t?`Adres â${t}â zostanie trwale usuniÄty. Tej operacji nie można cofnÄ Ä.`:"Adres zostanie trwale usuniÄty. Tej operacji nie można cofnÄ Ä.";const o=()=>{document.removeEventListener("keydown",i,!0),n.remove(),document.body.style.overflow=a,document.contains(s)&&s.focus()},i=r=>{if(r.key==="Escape"){r.stopPropagation(),o();return}if(r.key!=="Tab")return;const u=[...n.querySelectorAll("button")],f=u[0],c=u[u.length-1],d=document.activeElement;r.shiftKey&&d===f?(r.preventDefault(),c.focus()):!r.shiftKey&&d===c&&(r.preventDefault(),f.focus())};n.addEventListener("click",r=>{r.target===n&&o()}),n.querySelector(".vv-confirm__cancel").addEventListener("click",o),n.querySelector(".vv-confirm__ok").addEventListener("click",()=>{window.location.href=e}),document.addEventListener("keydown",i,!0),document.body.appendChild(n),n.querySelector(".vv-confirm__cancel").focus()}function jb(){document.addEventListener("click",e=>{var n,o,i,r;const t=(o=(n=e.target)==null?void 0:n.closest)==null?void 0:o.call(n,'[data-link-action="delete-address"]');if(!t||!t.href)return;e.preventDefault(),e.stopPropagation();const s=t.closest(".address-card"),a=((r=(i=s==null?void 0:s.querySelector(".address-card__alias"))==null?void 0:i.textContent)==null?void 0:r.trim())??"";Tb(t.href,a,t)},!0)}function Lb(){document.body.id!=="checkout"&&(Ab(),jb())}function Mb(){const e=document.getElementById("vv-lowest30-data");if(!e)return;let t={};try{t=JSON.parse(e.textContent||"{}")}catch{return}if(!t||typeof t!="object")return;const s=n=>{const o=document.createElement("p");return o.className="vv-lowest30 vv-lowest30--tight",o.textContent=`Najniższa cena z ostatnich 30 dni: ${n}`,o},a=()=>{document.querySelectorAll(".product-line").forEach(n=>{if(n.querySelector(".vv-lowest30"))return;const o=n.querySelector(".product-line__item--prices");if(!o||!o.querySelector(".product-line__item-regular-price"))return;const i=n.querySelector("[data-product-id], [data-id-product]"),r=(i==null?void 0:i.dataset.productId)||
36(i==null?void 0:i.dataset.idProduct)||"",u=r&&t[r];u&&o.appendChild(s(u))}),document.querySelectorAll(".cart-summary-product").forEach(n=>{var f,c;if(n.querySelector(".vv-lowest30"))return;const o=n.querySelector(".cart-summary-product__price");if(!o||!o.querySelector(".value"))return;const i=((f=n.querySelector("a[href]"))==null?void 0:f.getAttribute("href"))||"",r=((c=/\/(\d+)-/.exec(i))==null?void 0:c[1])||"",u=r&&t[r];u&&o.insertAdjacentElement("afterend",s(u))})};a(),new MutationObserver(a).observe(document.body,{childList:!0,subtree:!0})}const Ib={"vv-minicart":vv,"vv-add":Sv,"vv-listing":rp,"vv-search":$p,"vv-wishlist":Np,"vv-toasts":Wp,"vv-recent":Xp,"vv-strip":Yp,"vv-reco":th,"vv-hero":$h,"vv-shelf":Lh,"vv-product":P_,"vv-megamenu":ig,"vv-sidemenu":wg,"vv-salebar":zg,"vv-newsletter":Og,"vv-cover":Ke,"vv-blog":ny,"vv-blogpost":Iy,"vv-blogteaser":Zy,"vv-checkout":eb,"vv-shipbar":tb,"vv-cart-addons":vb,"vv-consent":Cb},Ob=Pu();function qr(){document.querySelectorAll("[data-ps-component]").forEach(e=>{const t=e.dataset.psComponent;if(!t||e.dataset.vvMounted)return;const s=Ib[t];if(!s)return;let a={};if(e.dataset.psData)try{a=JSON.parse(e.dataset.psData)}catch(o){console.warn(`[vespervue] invalid data-ps-data for "${t}"`,o)}const n=xu(s,a);n.use(Ob),n.mount(e),e.dataset.vvMounted="1"})}window.vvMountIslands=qr,document.documentElement.classList.add("vv-js");function Nb(){const e=()=>!!document.querySelector('#checkout, [data-ps-component="vv-checkout"]'),t=()=>{if(e()||document.querySelector(".vv-nav-progress"))return;const s=document.createElement("div");s.className="vv-nav-progress",s.setAttribute("aria-hidden","true"),document.body.appendChild(s)};document.addEventListener("click",s=>{var o,i;if(s.button!==0||s.metaKey||s.ctrlKey||s.shiftKey||s.altKey)return;const a=(i=(o=s.target)==null?void 0:o.closest)==null?void 0:i.call(o,"a[href]");if(!a||a.hasAttribute("download")||a.target&&a.target!=="_self")return;const n=a.getAttribute("href")??"";!n||n.startsWith("#")||/^(javascript|mailto|tel):/i.test(n)||a.origin===window.location.origin&&(a.pathname===window.location.pathname&&a.search===window.location.search&&a.hash||window.setTimeout(()=>{s.defaultPrevented||t()},0))},!0),window.addEventListener("pagehide",()=>t()),window.addEventListener("pageshow",s=>{var a;s.persisted&&((a=document.querySelector(".vv-nav-progress"))==null||a.remove())})}Nb();function Db(){var a,n;const e=()=>{const o=document.getElementById("header");o&&document.documentElement.style.setProperty("--header-h",`${Math.round(o.getBoundingClientRect().height)}px`)};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("load",e,{once:!0}),(n=(a=document.fonts)==null?void 0:a.ready)==null||n.then(e).catch(()=>{});const t=typeof ResizeObserver<"u"?new ResizeObserver(e):null,s=document.getElementById("header");t&&s&&t.observe(s)}function Rb(){const e=document.createElement("button");e.type="button",e.className="vv-totop",e.setAttribute("aria-label","WrÃ³Ä na górÄ"),e.textContent="â",e.addEventListener("click",()=>{const s=window.matchMedia("(prefers-reduced-motion: reduce)").matches;window.scrollTo({top:0,behavior:s?"auto":"smooth"})}),document.body.appendChild(e);const t=()=>{e.classList.toggle("is-visible",window.scrollY>1200)};window.addEventListener("scroll",t,{passive:!0}),t()}function Fb(){const e=[".product-line__image img",".cart-summary-product__image img",".order-confirmation__product-image img",".module-products .thumbnail-container img",".module-products .product-miniature__image-container img"].join(", "),t=a=>{if(a.dataset.vvFit)return;a.dataset.vvFit="1";const n=()=>{const o=zr(a);o!==null&&o>=.95&&a.classList.add("vv-img-contain")};a.complete&&a.naturalWidth>0?n():a.addEventListener("load",n,{once:!0})},s=()=>{document.querySelectorAll(e).forEach(t)};s(),new MutationObserver(s).observe(document.body,{childList:!0,subtree:!0})}function Wr(){qr(),Lb(),Mb(),Rb(),Db(),Fb()}document.readyState!=="loading"?Wr():document.addEventListener("DOMContentLoaded",Wr)})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.