@vkontakte/videoplayer 1.1.59-dev.50aa90ae.0 → 1.1.59-dev.5ccf8bf2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es2015.cjs.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.59-dev.50aa90ae.0
3
- * Wed, 26 Mar 2025 07:52:41 GMT
2
+ * @vkontakte/videoplayer v1.1.59-dev.5ccf8bf2.0
3
+ * Mon, 31 Mar 2025 07:54:23 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-59/doc/
5
5
  */
6
6
  "use strict";var j_=Object.create;var md=Object.defineProperty,Z_=Object.defineProperties,X_=Object.getOwnPropertyDescriptor,J_=Object.getOwnPropertyDescriptors,e$=Object.getOwnPropertyNames,hv=Object.getOwnPropertySymbols,t$=Object.getPrototypeOf,_v=Object.prototype.hasOwnProperty,i$=Object.prototype.propertyIsEnumerable;var $v=t=>{throw TypeError(t)};var Sf=(t,e,i)=>e in t?md(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,$=(t,e)=>{for(var i in e||(e={}))_v.call(e,i)&&Sf(t,i,e[i]);if(hv)for(var i of hv(e))i$.call(e,i)&&Sf(t,i,e[i]);return t},zt=(t,e)=>Z_(t,J_(e));var o$=(t,e)=>{for(var i in e)md(t,i,{get:e[i],enumerable:!0})},bv=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of e$(e))!_v.call(t,n)&&n!==i&&md(t,n,{get:()=>e[n],enumerable:!(o=X_(e,n))||o.enumerable});return t};var yv=(t,e,i)=>(i=t!=null?j_(t$(t)):{},bv(e||!t||!t.__esModule?md(i,"default",{value:t,enumerable:!0}):i,t)),n$=t=>bv(md({},"__esModule",{value:!0}),t);var An=(t,e,i)=>Sf(t,typeof e!="symbol"?e+"":e,i),Tf=(t,e,i)=>e.has(t)||$v("Cannot "+i);var Vi=(t,e,i)=>(Tf(t,e,"read from private field"),i?i.call(t):e.get(t)),Vs=(t,e,i)=>e.has(t)?$v("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Ua=(t,e,i,o)=>(Tf(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),xv=(t,e,i)=>(Tf(t,e,"access private method"),i);var Ct=(t,e,i)=>new Promise((o,n)=>{var r=a=>{try{d(i.next(a))}catch(c){n(c)}},l=a=>{try{d(i.throw(a))}catch(c){n(c)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(r,l);d((i=i.apply(t,e)).next())});var n3={};o$(n3,{ControlButtonType:()=>qd,GridTypes:()=>Fr,InterfaceLanguage:()=>ud.InterfaceLanguage,MenuItemType:()=>xl,PlayerPhase:()=>Fs,VERSION:()=>xa,VKNumericLanguage:()=>ud.VKNumericLanguage,VideoFormat:()=>Cf.VideoFormat,VideoQuality:()=>Cf.VideoQuality,loadVKLangPack:()=>ud.loadVKLangPack,registerPlayerWebComponent:()=>o3});module.exports=n$(n3);var Ho=Symbol("$state"),fs=Symbol("$state metadata"),vd=Symbol("legacy props"),wv=Symbol("");var _c=!0;var Cv,Sv,If=(Sv=(Cv=globalThis.process)==null?void 0:Cv.env)==null?void 0:Sv.NODE_ENV;If||console.warn("If bundling, conditions should include development or production. If not bundling, conditions or NODE_ENV should include development or production. See https://www.npmjs.com/package/esm-env for tips on setting conditions in popular bundlers and runtimes.");var We=If&&!If.toLowerCase().includes("prod");var Vr=Array.isArray,Tv=Array.prototype.indexOf,gd=Array.from,kf=Object.keys,uo=Object.defineProperty,Mn=Object.getOwnPropertyDescriptor,$c=Object.getOwnPropertyDescriptors,Ef=Object.prototype,Iv=Array.prototype,ms=Object.getPrototypeOf;function Rs(t){return typeof t=="function"}var Yt=()=>{};function kv(t){return t()}function Ns(t){for(var e=0;e<t.length;e++)t[e]()}var bc=!1,Pv=!1,Pf=[],Ev=[];function Av(){bc=!1;let t=Pf.slice();Pf=[],Ns(t)}function r$(){Pv=!1;let t=Ev.slice();Ev=[],Ns(t)}function Zo(t){bc||(bc=!0,queueMicrotask(Av)),Pf.push(t)}function Mv(){bc&&Av(),Pv&&r$()}function yc(t){return t===this.v}function za(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Lv(t,e){return t!==e}function Wa(t){return!za(t,this.v)}function Vv(){if(We){let t=new Error(`derived_references_self
@@ -42,7 +42,7 @@ ${n.map(m=>`
42
42
  ${a}in ${m}`).join("")}
43
43
  `}),uo(t,"component_stack",{value:n});let c=t.stack;if(c){let m=c.split(`
44
44
  `),h=[];for(let _=0;_<m.length;_++){let x=m[_];x.includes("svelte/src/internal")||h.push(x)}uo(t,"stack",{value:h.join(`
45
- `)})}if(sg(t,e),ag(e))throw t}function pg(t,e,i=0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var r=o[n];r.f&2?pg(r,e,i+1):e===r&&(i===0?en(r,2048):r.f&1024&&en(r,4096),Ja(r))}}function Tc(t){var h,_;var e=tn,i=Nn,o=ts,n=jt,r=$s,l=Rr,d=Bt,a=Nr,c=t.f;tn=null,Nn=0,ts=null,jt=c&96?null:t,$s=(c&256)!==0&&(!_s||n===null||a),Rr=null,$d(t.ctx),Nr=!1,Pc++;try{var f=(0,t.fn)(),g=t.deps;if(tn!==null){var m;if(Sd(t,Nn),g!==null&&Nn>0)for(g.length=Nn+tn.length,m=0;m<tn.length;m++)g[Nn+m]=tn[m];else t.deps=g=tn;if(!$s)for(m=Nn;m<g.length;m++)((_=(h=g[m]).reactions)!=null?_:h.reactions=[]).push(t)}else g!==null&&Nn<g.length&&(Sd(t,Nn),g.length=Nn);if(es()&&ts!==null&&!(t.f&6146))for(m=0;m<ts.length;m++)pg(ts[m],t);return n!==null&&Pc++,f}finally{tn=e,Nn=i,ts=o,jt=n,$s=r,Rr=l,$d(d),Nr=a}}function h$(t,e){let i=e.reactions;if(i!==null){var o=Tv.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&e.f&2&&(tn===null||!tn.includes(e))&&(en(e,4096),e.f&768||(e.f^=512),Sc(e),Sd(e,0))}function Sd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)h$(t,i[o])}function Xa(t){var e=t.f;if(!(e&16384)){en(t,1024);var i=At,o=Bt;if(At=t,We){var n=Jo;bd(t.component_function)}try{e&16?gg(t):Gf(t),Qf(t);var r=Tc(t);t.teardown=typeof r=="function"?r:null,t.wv=ug;var l=t.deps;if(We&&Jr&&t.f&2048&&l!==null)for(let a=0;a<l.length;a++){var d=l[a];d.trace_need_increase&&(d.wv=xd(),d.trace_need_increase=void 0,d.trace_v=void 0)}We&&Cd.push(t)}catch(a){ol(a,t,i,o||t.ctx)}finally{At=i,We&&bd(n)}}}function lg(){console.error("Last ten effects were: ",Cd.slice(-10).map(t=>t.fn)),Cd=[]}function fg(){if(tl>1e3){tl=0;try{Dv()}catch(t){if(We&&uo(t,"stack",{value:""}),el!==null)if(We)try{ol(t,el,null,null)}catch(e){throw lg(),e}else ol(t,el,null,null);else throw We&&lg(),t}}tl++}function mg(t){var e=t.length;if(e!==0){fg();var i=_s;_s=!0;try{for(var o=0;o<e;o++){var n=t[o];n.f&1024||(n.f^=1024);var r=[];vg(n,r),_$(r)}}finally{_s=i}}}function _$(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if(!(o.f&24576))try{Bs(o)&&(Xa(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Yf(o):o.fn=null))}catch(n){ol(n,o,null,o.ctx)}}}function $$(){if(wd=!1,tl>1001)return;let t=va;va=[],mg(t),wd||(tl=0,el=null,We&&(Cd=[]))}function Ja(t){kc===cg&&(wd||(wd=!0,queueMicrotask($$))),el=t;for(var e=t;e.parent!==null;){e=e.parent;var i=e.f;if(i&96){if(!(i&1024))return;e.f^=1024}}va.push(e)}function vg(t,e){var i=t.first,o=[];e:for(;i!==null;){var n=i.f,r=(n&32)!==0,l=r&&(n&1024)!==0,d=i.next;if(!l&&!(n&8192))if(n&8){if(r)i.f^=1024;else{var a=jt;try{jt=i,Bs(i)&&Xa(i)}catch(m){ol(m,i,null,i.ctx)}finally{jt=a}}var c=i.first;if(c!==null){i=c;continue}}else n&4&&o.push(i);if(d===null){let m=i.parent;for(;m!==null;){if(t===m)break e;var f=m.next;if(f!==null){i=f;continue e}m=m.parent}}i=d}for(var g=0;g<o.length;g++)c=o[g],e.push(c),vg(c,e)}function u(t){var e=kc,i=va;try{fg();let n=[];kc=g$,va=n,wd=!1,mg(i);var o=t==null?void 0:t();return Mv(),(va.length>0||n.length>0)&&u(),tl=0,el=null,We&&(Cd=[]),o}finally{kc=e,va=i}}function yo(){return Ct(this,null,function*(){yield Promise.resolve(),u()})}function s(t){var e=t.f,i=(e&2)!==0;if(_d!==null&&_d.add(t),jt!==null&&!Nr){Rr!==null&&Rr.includes(t)&&qv();var o=jt.deps;t.rv<Pc&&(t.rv=Pc,tn===null&&o!==null&&o[Nn]===t?Nn++:tn===null?tn=[t]:(!$s||!tn.includes(t))&&tn.push(t))}else if(i&&t.deps===null&&t.effects===null){var n=t,r=n.parent;r!==null&&!(r.f&256)&&(n.f^=256)}if(i&&(n=t,Bs(n)&&Wf(n)),We&&Jr&&hd!==null&&jt!==null&&hd.reaction===jt){if(t.debug)t.debug();else if(t.created){var l=hd.entries.get(t);l===void 0&&(l={read:[]},hd.entries.set(t,l)),l.read.push(gs("TracedAt"))}}return t.v}function Pt(t){var e=Nr;try{return Nr=!0,t()}finally{Nr=e}}var b$=-7169;function en(t,e){t.f=t.f&b$|e}function Lc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Ho in t)Ac(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Ho in i&&Ac(i)}}}function Ac(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{Ac(t[o],e)}catch(n){}let i=ms(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=$c(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}var lt=!1;function fo(t){lt=t}var Tt;function gi(t){if(t===null)throw pa(),vs;return Tt=t}function Ri(){return gi(Eo(Tt))}function y(t){if(lt){if(Eo(Tt)!==null)throw pa(),vs;Tt=t}}function Le(t=1){if(lt){for(var e=t,i=Tt;e--;)i=Eo(i);Tt=i}}function rl(){for(var t=0,e=Tt;;){if(e.nodeType===8){var i=e.data;if(i===la){if(t===0)return e;t-=1}else(i===qa||i===aa)&&(t+=1)}var o=Eo(e);e.remove(),e=o}}function Me(t,e=null,i){var c,f;var o=null;if(We&&Jr&&(o=gs("CreatedAt")),typeof t!="object"||t===null||Ho in t)return t;let n=ms(t);if(n!==Ef&&n!==Iv)return t;var r=new Map,l=Vr(t),d=zi(0);l&&r.set("length",zi(t.length,o));var a;if(We)if(a={parent:e,owners:null},i){let g=(f=(c=i.v)==null?void 0:c[fs])==null?void 0:f.owners;a.owners=g?new Set(g):null}else a.owners=e===null?Bt!==null?new Set([Bt.function]):null:new Set;return new Proxy(t,{defineProperty(g,m,h){(!("value"in h)||h.configurable===!1||h.enumerable===!1||h.writable===!1)&&zv();var _=r.get(m);return _===void 0?(_=zi(h.value,o),r.set(m,_)):j(_,Me(h.value,a)),!0},deleteProperty(g,m){var h=r.get(m);if(h===void 0)m in g&&r.set(m,zi(Zi,o));else{if(l&&typeof m=="string"){var _=r.get("length"),x=Number(m);Number.isInteger(x)&&x<_.v&&j(_,x)}j(h,Zi),hg(d)}return!0},get(g,m,h){var D;if(We&&m===fs)return a;if(m===Ho)return t;var _=r.get(m),x=m in g;if(_===void 0&&(!x||(D=Mn(g,m))!=null&&D.writable)&&(_=zi(Me(x?g[m]:Zi,a),o),r.set(m,_)),_!==void 0){var T=s(_);if(We){var V=T==null?void 0:T[fs];V&&(V==null?void 0:V.parent)!==a&&Nf(a,V)}return T===Zi?void 0:T}return Reflect.get(g,m,h)},getOwnPropertyDescriptor(g,m){var h=Reflect.getOwnPropertyDescriptor(g,m);if(h&&"value"in h){var _=r.get(m);_&&(h.value=s(_))}else if(h===void 0){var x=r.get(m),T=x==null?void 0:x.v;if(x!==void 0&&T!==Zi)return{enumerable:!0,configurable:!0,value:T,writable:!0}}return h},has(g,m){var T;if(We&&m===fs||m===Ho)return!0;var h=r.get(m),_=h!==void 0&&h.v!==Zi||Reflect.has(g,m);if(h!==void 0||At!==null&&(!_||(T=Mn(g,m))!=null&&T.writable)){h===void 0&&(h=zi(_?Me(g[m],a):Zi,o),r.set(m,h));var x=s(h);if(x===Zi)return!1}return _},set(g,m,h,_){var Q;var x=r.get(m),T=m in g;if(l&&m==="length")for(var V=h;V<x.v;V+=1){var D=r.get(V+"");D!==void 0?j(D,Zi):V in g&&(D=zi(Zi,o),r.set(V+"",D))}if(x===void 0?(!T||(Q=Mn(g,m))!=null&&Q.writable)&&(x=zi(void 0,o),j(x,Me(h,a)),r.set(m,x)):(T=x.v!==Zi,j(x,Me(h,a))),We){var R=h==null?void 0:h[fs];R&&(R==null?void 0:R.parent)!==a&&Nf(a,R),tg(a)}var B=Reflect.getOwnPropertyDescriptor(g,m);if(B!=null&&B.set&&B.set.call(_,h),!T){if(l&&typeof m=="string"){var I=r.get("length"),z=Number(m);Number.isInteger(z)&&z>=I.v&&j(I,z+1)}hg(d)}return!0},ownKeys(g){s(d);var m=Reflect.ownKeys(g).filter(x=>{var T=r.get(x);return T===void 0||T.v!==Zi});for(var[h,_]of r)_.v!==Zi&&!(h in g)&&m.push(h);return m},setPrototypeOf(){Wv()}})}function hg(t,e=1){j(t,t.v+e)}function Vc(t){return t!==null&&typeof t=="object"&&Ho in t?t[Ho]:t}function _g(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(r,l){let d=i.call(this,r,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(Vc(this[a])===r){xc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(r,l){let d=o.call(this,r,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(Vc(this[a])===r){xc("array.lastIndexOf(...)");break}}return d},t.includes=function(r,l){let d=n.call(this,r,l);if(!d){for(let a=0;a<this.length;a+=1)if(Vc(this[a])===r){xc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var ga,$g,bg,yg;function Rc(){if(ga===void 0){ga=window,$g=document;var t=Element.prototype,e=Node.prototype;bg=Mn(e,"firstChild").get,yg=Mn(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0,We&&(t.__svelte_meta=null,_g())}}function on(t=""){return document.createTextNode(t)}function hi(t){return bg.call(t)}function Eo(t){return yg.call(t)}function w(t,e){if(!lt)return hi(t);var i=hi(Tt);if(i===null)i=Tt.appendChild(on());else if(e&&i.nodeType!==3){var o=on();return i==null||i.before(o),gi(o),o}return gi(i),i}function ke(t,e){var n,r;if(!lt){var i=hi(t);return i.nodeType===8&&i.data===""?Eo(i):i}if(e&&((n=Tt)==null?void 0:n.nodeType)!==3){var o=on();return(r=Tt)==null||r.before(o),gi(o),o}return Tt}function H(t,e=1,i=!1){let o=lt?Tt:t;for(var n;e--;)n=o,o=Eo(o);if(!lt)return o;var r=o==null?void 0:o.nodeType;if(i&&r!==3){var l=on();return o===null?n==null||n.after(l):o.before(l),gi(l),l}return gi(o),o}function Id(t){t.textContent=""}function Zf(t){At===null&&jt===null&&Bv(t),jt!==null&&jt.f&256&&At===null&&Nv(),Mc&&Rv(t)}function y$(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ha(t,e,i,o=!0){var f;var n=(t&64)!==0,r=At;if(We)for(;r!==null&&r.f&262144;)r=r.parent;var l={ctx:Bt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n?null:r,prev:null,teardown:null,transitions:null,wv:0};if(We&&(l.component_function=Jo),i){var d=_s;try{ja(!0),Xa(l),l.f|=32768}catch(g){throw po(l),g}finally{ja(d)}}else e!==null&&Ja(l);var a=i&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&1048704)===0;if(!a&&!n&&o&&(r!==null&&y$(l,r),jt!==null&&jt.f&2)){var c=jt;((f=c.effects)!=null?f:c.effects=[]).push(l)}return l}function Bn(t){let e=ha(8,null,!1);return en(e,1024),e.teardown=t,e}function at(t){var n;Zf("$effect");var e=At!==null&&(At.f&32)!==0&&Bt!==null&&!Bt.m;if(We&&uo(t,"name",{value:"$effect"}),e){var i=Bt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:At,reaction:jt})}else{var o=fn(t);return o}}function Ka(t){return Zf("$effect.pre"),We&&uo(t,"name",{value:"$effect.pre"}),ko(t)}function Nc(t){let e=ha(64,t,!0);return()=>{po(e)}}function wg(t){let e=ha(64,t,!0);return(i={})=>new Promise(o=>{i.outro?gn(e,()=>{po(e),o(void 0)}):(po(e),o(void 0))})}function fn(t){return ha(4,t,!1)}function ko(t){return ha(8,t,!0)}function N(t,e=[],i=b){let o=e.map(i),n=()=>t(...o.map(s));return We&&uo(n,"name",{value:"{expression}"}),mo(n)}function mo(t,e=0){return ha(24|e,t,!0)}function Xi(t,e=!0){return ha(40,t,!0,e)}function Qf(t){var e=t.teardown;if(e!==null){let i=Mc,o=jt;Kf(!0),bo(null);try{e.call(null)}finally{Kf(i),bo(o)}}}function Gf(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;po(i,e),i=o}}function gg(t){for(var e=t.first;e!==null;){var i=e.next;e.f&32||po(e),e=i}}function po(t,e=!0){var i=!1;if((e||t.f&524288)&&t.nodes_start!==null){for(var o=t.nodes_start,n=t.nodes_end;o!==null;){var r=o===n?null:Eo(o);o.remove(),o=r}i=!0}Gf(t,e&&!i),Sd(t,0),en(t,16384);var l=t.transitions;if(l!==null)for(let a of l)a.stop();Qf(t);var d=t.parent;d!==null&&d.first!==null&&Yf(t),We&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Yf(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function gn(t,e){var i=[];Bc(t,i,!0),Xf(i,()=>{po(t),e&&e()})}function Xf(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Bc(t,e,i){if(!(t.f&8192)){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,r=(o.f&65536)!==0||(o.f&32)!==0;Bc(o,e,r?i:!1),o=n}}}function bs(t){Cg(t,!0)}function Cg(t,e){if(t.f&8192){t.f^=8192,t.f&1024||(t.f^=1024),Bs(t)&&(en(t,2048),Ja(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Cg(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}function Jf(t,e){if(e){let i=document.body;t.autofocus=!0,Zo(()=>{document.activeElement===i&&t.focus()})}}function em(t){var e=jt,i=At;bo(null),Ui(null);try{return t()}finally{bo(e),Ui(i)}}var tm=new Set,Dc=new Set;function _a(t){if(!lt)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function im(t,e,i,o={}){function n(r){if(o.capture||sl.call(e,r),!r.cancelBubble)return em(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Zo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Kt(t,e,i,o,n){var r={capture:o,passive:n},l=im(t,e,i,r);(e===document.body||e===window||e===document)&&Bn(()=>{e.removeEventListener(t,l,r)})}function xt(t){for(var e=0;e<t.length;e++)tm.add(t[e]);for(var i of Dc)i(t)}function sl(t){var D;var e=this,i=e.ownerDocument,o=t.type,n=((D=t.composedPath)==null?void 0:D.call(t))||[],r=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var c=n.indexOf(e);if(c===-1)return;a<=c&&(l=a)}if(r=n[l]||t.target,r!==e){uo(t,"currentTarget",{configurable:!0,get(){return r||i}});var f=jt,g=At;bo(null),Ui(null);try{for(var m,h=[];r!==null;){var _=r.assignedSlot||r.parentNode||r.host||null;try{var x=r["__"+o];if(x!==void 0&&!r.disabled)if(Vr(x)){var[T,...V]=x;T.apply(r,[t,...V])}else x.call(r,t)}catch(R){m?h.push(R):m=R}if(t.cancelBubble||_===e||_===null)break;r=_}if(m){for(let R of h)queueMicrotask(()=>{throw R});throw m}}finally{t.__root=e,delete t.currentTarget,bo(f),Ui(g)}}}var w$;function Sg(){w$=void 0}function al(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function xo(t,e){var i=At;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function U(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,r=!t.startsWith("<!>");return()=>{if(lt)return xo(Tt,null),Tt;n===void 0&&(n=al(r?t:"<!>"+t),i||(n=hi(n)));var l=o?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=hi(l),a=l.lastChild;xo(d,a)}else xo(l,l);return l}}function Ve(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(lt)return xo(Tt,null),Tt;if(!l){var d=al(r),a=hi(d);if(n)for(l=document.createDocumentFragment();hi(a);)l.appendChild(hi(a));else l=hi(a)}var c=l.cloneNode(!0);if(n){var f=hi(c),g=c.lastChild;xo(f,g)}else xo(c,c);return c}}function dr(t=""){if(!lt){var e=on(t+"");return xo(e,e),e}var i=Tt;return i.nodeType!==3&&(i.before(i=on()),gi(i)),xo(i,i),i}function Xe(){if(lt)return xo(Tt,null),Tt;var t=document.createDocumentFragment(),e=document.createComment(""),i=on();return t.append(e,i),xo(e,i),t}function C(t,e){if(lt){At.nodes_end=Tt,Ri();return}t!==null&&t.before(e)}var S$=/\r/g;function Ig(t){t=t.replace(S$,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function kg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var T$=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Eg(t){return T$.includes(t)}var I$=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var k$={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Pg(t){var e;return t=t.toLowerCase(),(e=k$[t])!=null?e:t}var Bw=[...I$,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var E$=["touchstart","touchmove"];function Ag(t){return E$.includes(t)}var P$=["textarea","script","style","title"];function Mg(t){return P$.includes(t)}function om(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var kd=!0;function Oc(t){kd=t}function Ee(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Hc(t,e){return Lg(t,e)}function rm(t,e){var l;Rc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=lt,n=Tt;try{for(var r=hi(i);r&&(r.nodeType!==8||r.data!==qa);)r=Eo(r);if(!r)throw vs;fo(!0),gi(r),Ri();let d=Lg(t,zt($({},e),{anchor:r}));if(Tt===null||Tt.nodeType!==8||Tt.data!==la)throw pa(),vs;return fo(!1),d}catch(d){if(d===vs)return e.recover===!1&&Ov(),Rc(),Id(i),fo(!1),Hc(t,e);throw d}finally{fo(o),gi(n),Sg()}}var ll=new Map;function Lg(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){Rc();var d=new Set,a=g=>{for(var m=0;m<g.length;m++){var h=g[m];if(!d.has(h)){d.add(h);var _=Ag(h);e.addEventListener(h,sl,{passive:_});var x=ll.get(h);x===void 0?(document.addEventListener(h,sl,{passive:_}),ll.set(h,1)):ll.set(h,x+1)}}};a(gd(tm)),Dc.add(a);var c=void 0,f=wg(()=>{var g=i!=null?i:e.appendChild(on());return Xi(()=>{if(r){P({});var m=Bt;m.c=r}n&&(o.$$events=n),lt&&xo(g,null),kd=l,c=t(g,o)||{},kd=!0,lt&&(At.nodes_end=Tt),r&&A()}),()=>{var _;for(var m of d){e.removeEventListener(m,sl);var h=ll.get(m);--h===0?(document.removeEventListener(m,sl),ll.delete(m)):ll.set(m,h)}Dc.delete(a),g!==i&&((_=g.parentNode)==null||_.removeChild(g))}});return nm.set(c,f),c}var nm=new WeakMap;function sm(t,e){let i=nm.get(t);return i?(nm.delete(t),i(e)):(We&&Xv(),Promise.resolve())}var lm;function E(t){return lm=t.target,new am(t)}var ys,cr,am=class{constructor(e){Vs(this,ys);Vs(this,cr);var r,l;var i=new Map,o=(d,a)=>{var c=hs(a);return i.set(d,c),c};let n=new Proxy(zt($({},e.props||{}),{$$events:{}}),{get(d,a){var c;return s((c=i.get(a))!=null?c:o(a,Reflect.get(d,a)))},has(d,a){var c;return a===vd?!0:(s((c=i.get(a))!=null?c:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,c){var f;return j((f=i.get(a))!=null?f:o(a,c),c),Reflect.set(d,a,c)}});Ua(this,cr,(e.hydrate?rm:Hc)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(r=e.intro)!=null?r:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&u(),Ua(this,ys,n.$$events);for(let d of Object.keys(Vi(this,cr)))d==="$set"||d==="$destroy"||d==="$on"||uo(this,d,{get(){return Vi(this,cr)[d]},set(a){Vi(this,cr)[d]=a},enumerable:!0});Vi(this,cr).$set=d=>{Object.assign(n,d)},Vi(this,cr).$destroy=()=>{sm(Vi(this,cr))}}$set(e){Vi(this,cr).$set(e)}$on(e,i){Vi(this,ys)[e]=Vi(this,ys)[e]||[];let o=(...n)=>i.call(this,...n);return Vi(this,ys)[e].push(o),()=>{Vi(this,ys)[e]=Vi(this,ys)[e].filter(n=>n!==o)}}$destroy(){Vi(this,cr).$destroy()}};ys=new WeakMap,cr=new WeakMap;var Vg="5";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Vg);var Rg=new Map;function Ng(t,e){var i=Rg.get(t);i||(i=new Set,Rg.set(t,i)),i.add(e)}function q(t,e,i=!1){lt&&Ri();var o=t,n=null,r=null,l=Zi,d=i?65536:0,a=!1;let c=(g,m=!0)=>{a=!0,f(m,g)},f=(g,m)=>{if(l===(l=g))return;let h=!1;if(lt){let _=o.data===aa;!!l===_&&(o=rl(),gi(o),fo(!1),h=!0)}l?(n?bs(n):m&&(n=Xi(()=>m(o))),r&&gn(r,()=>{r=null})):(r?bs(r):m&&(r=Xi(()=>m(o))),n&&gn(n,()=>{n=null})),h&&fo(!0)};mo(()=>{a=!1,e(c),a||f(null,null)},d),lt&&(o=Tt)}function Ed(t,e,i){lt&&Ri();var o=t,n=Zi,r,l=es()?Lv:za;mo(()=>{l(n,n=e())&&(r&&gn(r),r=Xi(()=>i(o)))}),lt&&(o=Tt)}var Os=null;function um(t){Os=t}function ro(t,e){return e}function O$(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)Bc(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Id(a),a.append(i),o.clear(),Ds(t,e[0].prev,e[r-1].next)}Xf(n,()=>{for(var c=0;c<r;c++){var f=e[c];d||(o.delete(f.k),Ds(t,f.prev,f.next)),po(f.e,!d)}})}function Ei(t,e,i,o,n,r=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var c=t;l=lt?gi(hi(c)):c.appendChild(on())}lt&&Ri();var f=null,g=!1,m=Br(()=>{var h=i();return Vr(h)?h:h==null?[]:gd(h)});mo(()=>{var h=s(m),_=h.length;if(g&&_===0)return;g=_===0;let x=!1;if(lt){var T=l.data===aa;T!==(_===0)&&(l=rl(),gi(l),fo(!1),x=!0)}if(lt){for(var V=null,D,R=0;R<_;R++){if(Tt.nodeType===8&&Tt.data===la){l=Tt,x=!0,fo(!1);break}var B=h[R],I=o(B,R);D=Og(Tt,d,V,null,B,I,R,n,e,i),d.items.set(I,D),V=D}_>0&&gi(rl())}lt||H$(h,d,l,n,e,o,i),r!==null&&(_===0?f?bs(f):f=Xi(()=>r(l)):f!==null&&gn(f,()=>{f=null})),x&&fo(!0),s(m)}),lt&&(l=Tt)}function H$(t,e,i,o,n,r,l){var Se,G,fe,_e;var d=(n&8)!==0,a=(n&3)!==0,c=t.length,f=e.items,g=e.first,m=g,h,_=null,x,T=[],V=[],D,R,B,I;if(d)for(I=0;I<c;I+=1)D=t[I],R=r(D,I),B=f.get(R),B!==void 0&&((Se=B.a)==null||Se.measure(),(x!=null?x:x=new Set).add(B));for(I=0;I<c;I+=1){if(D=t[I],R=r(D,I),B=f.get(R),B===void 0){var z=m?m.e.nodes_start:i;_=Og(z,e,_,_===null?e.first:_.next,D,R,I,o,n,l),f.set(R,_),T=[],V=[],m=_.next;continue}if(a&&F$(B,D,I,n),B.e.f&8192&&(bs(B.e),d&&((G=B.a)==null||G.unfix(),(x!=null?x:x=new Set).delete(B))),B!==m){if(h!==void 0&&h.has(B)){if(T.length<V.length){var Q=V[0],F;_=Q.prev;var Y=T[0],ee=T[T.length-1];for(F=0;F<T.length;F+=1)Bg(T[F],Q,i);for(F=0;F<V.length;F+=1)h.delete(V[F]);Ds(e,Y.prev,ee.next),Ds(e,_,Y),Ds(e,ee,Q),m=Q,_=ee,I-=1,T=[],V=[]}else h.delete(B),Bg(B,m,i),Ds(e,B.prev,B.next),Ds(e,B,_===null?e.first:_.next),Ds(e,_,B),_=B;continue}for(T=[],V=[];m!==null&&m.k!==R;)m.e.f&8192||(h!=null?h:h=new Set).add(m),V.push(m),m=m.next;if(m===null)continue;B=m}T.push(B),_=B,m=B.next}if(m!==null||h!==void 0){for(var ce=h===void 0?[]:gd(h);m!==null;)m.e.f&8192||ce.push(m),m=m.next;var ie=ce.length;if(ie>0){var we=n&4&&c===0?i:null;if(d){for(I=0;I<ie;I+=1)(fe=ce[I].a)==null||fe.measure();for(I=0;I<ie;I+=1)(_e=ce[I].a)==null||_e.fix()}O$(e,ce,we,f)}}d&&Zo(()=>{var Z;if(x!==void 0)for(B of x)(Z=B.a)==null||Z.apply()}),At.first=e.first&&e.first.e,At.last=_&&_.e}function F$(t,e,i,o){o&1&&Za(t.v,e),o&2?Za(t.i,i):t.i=i}function Og(t,e,i,o,n,r,l,d,a,c){var f=Os,g=(a&1)!==0,m=(a&16)===0,h=g?m?hs(n):zi(n):n,_=a&2?zi(l):l;We&&g&&(h.debug=()=>{var T=typeof _=="number"?l:_.v;c()[T]});var x={i:_,v:h,k:r,a:null,e:null,prev:i,next:o};Os=x;try{return x.e=Xi(()=>d(t,h,_,c),lt),x.e.prev=i&&i.e,x.e.next=o&&o.e,i===null?e.first=x:(i.next=x,i.e.next=x.e),o!==null&&(o.prev=x,o.e.prev=x.e),x}finally{Os=f}}function Bg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==o;){var l=Eo(r);n.before(r),r=l}}function Ds(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function U$(t,e,i){var r,l;if(!e||e===Ig(String(i!=null?i:"")))return;let o,n=(r=t.__svelte_meta)==null?void 0:r.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=Jo)!=null&&l[Ti]&&(o=`in ${Jo[Ti]}`),Zv(om(o))}function Pd(t,e,i,o,n){var r=t,l="",d;mo(()=>{var a;if(l===(l=(a=e())!=null?a:"")){lt&&Ri();return}d!==void 0&&(po(d),d=void 0),l!==""&&(d=Xi(()=>{if(lt){for(var c=Tt.data,f=Ri(),g=f;f!==null&&(f.nodeType!==8||f.data!=="");)g=f,f=Eo(f);if(f===null)throw pa(),vs;We&&!n&&U$(f.parentNode,c,l),xo(Tt,g),r=gi(f);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var h=al(m);if((i||o)&&(h=hi(h)),xo(hi(h),h.lastChild),i||o)for(;hi(h);)r.before(hi(h));else r.before(h)}))})}function Ue(t,e,i,o,n){var d;lt&&Ri();var r=(d=e.$$slots)==null?void 0:d[i],l=!1;r===!0&&(r=e[i==="default"?"children":i],l=!0),r===void 0?n!==null&&n(t):r(t,l?()=>o:o)}function wo(t,e,...i){var o=t,n=Yt,r;mo(()=>{n!==(n=e())&&(r&&(po(r),r=null),We&&n==null&&Hv(),r=Xi(()=>n(o,...i)))},65536),lt&&(o=Tt)}function Wi(t,e,i){lt&&Ri();var o=t,n,r;mo(()=>{n!==(n=e())&&(r&&(gn(r),r=null),n&&(r=Xi(()=>i(o,n))))},65536),lt&&(o=Tt)}function Ad(t,e,i,o,n,r){var _;let l=lt;lt&&Ri();var d=We&&r&&((_=Bt)==null?void 0:_.function[Ti]),a,c,f=null;lt&&Tt.nodeType===1&&(f=Tt,Ri());var g=lt?Tt:t,m,h=Os;mo(()=>{let x=e()||null;var T=n?n():i||x==="svg"?da:null;if(x!==a){var V=Os;um(h),m&&(x===null?gn(m,()=>{m=null,c=null}):x===c?bs(m):(po(m),Oc(!1))),x&&x!==c&&(m=Xi(()=>{if(f=lt?f:T?document.createElementNS(T,x):document.createElement(x),We&&r&&(f.__svelte_meta={loc:{file:d,line:r[0],column:r[1]}}),xo(f,f),o){lt&&Mg(x)&&f.append(document.createComment(""));var D=lt?hi(f):f.appendChild(on());lt&&(D===null?fo(!1):gi(D)),o(f,D)}At.nodes_end=f,g.before(f)})),a=x,a&&(c=a),Oc(!0),um(V)}},65536),l&&(fo(!0),gi(g))}function re(t,e){Zo(()=>{var n,r,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(r=lm)==null?void 0:r.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),We&&Ng(e.hash,d)}})}function Hg(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=Hg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Fg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Hg(t))&&(o&&(o+=" "),o+=e);return o}function Md(t){return typeof t=="object"?Fg(t):t!=null?t:""}function Wg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function me(t,e,i,o){var r;var n=(r=t.__attributes)!=null?r:t.__attributes={};if(lt&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||z$(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[wv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&qg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function He(t,e,i,o,n=!1,r=!1,l=!1){var R;let d=lt&&r;d&&fo(!1);var a=e||{},c=t.tagName==="OPTION";for(var f in e)f in i||(i[f]=null);i.class&&(i.class=Md(i.class)),o!==void 0&&(i.class=i.class?i.class+" "+o:o);var g=qg(t),m=(R=t.__attributes)!=null?R:t.__attributes={};for(let B in i){let I=i[B];if(c&&B==="value"&&I==null){t.value=t.__value="",a[B]=I;continue}var h=a[B];if(I!==h){a[B]=I;var _=B[0]+B[1];if(_!=="$$"){if(_==="on"){let z={},Q="$$"+B,F=B.slice(2);var x=Eg(F);if(kg(F)&&(F=F.slice(0,-7),z.capture=!0),!x&&h){if(I!=null)continue;t.removeEventListener(F,a[Q],z),a[Q]=null}if(I!=null)if(x)t[`__${F}`]=I,xt([F]);else{let Y=function(ee){a[B].call(this,ee)};var D=Y;a[Q]=im(F,t,Y,z)}else x&&(t[`__${F}`]=void 0)}else if(B==="style"&&I!=null)t.style.cssText=I+"";else if(B==="autofocus")Jf(t,!!I);else if(!r&&(B==="__value"||B==="value"&&I!=null))t.value=t.__value=I;else if(B==="selected"&&c)Wg(t,I);else{var T=B;n||(T=Pg(T));var V=T==="defaultValue"||T==="defaultChecked";if(I==null&&!r&&!V)if(m[B]=null,T==="value"||T==="checked"){let z=t;if(T==="value"){let Q=z.defaultValue;z.removeAttribute(T),z.defaultValue=Q}else{let Q=z.defaultChecked;z.removeAttribute(T),z.defaultChecked=Q}}else t.removeAttribute(B);else V||g.includes(T)&&(r||typeof I!="string")?t[T]=I:typeof I!="function"&&me(t,T,I)}B==="style"&&"__styles"in t&&(t.__styles={})}}}return d&&fo(!0),a}var Ug=new Map;function qg(t){var e=Ug.get(t.nodeName);if(e)return e;Ug.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=$c(o);for(var r in i)i[r].set&&e.push(r);o=ms(o)}return e}function z$(t,e,i){var o;We&&(e==="srcset"&&W$(t,i)||pm((o=t.getAttribute(e))!=null?o:"",i)||jv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function pm(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function zg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function W$(t,e){var i=zg(t.srcset),o=zg(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(pm(i[l][0],n)||pm(n,i[l][0])))}function nn(t,e,i){var o=t.__className,n=q$(e,i);lt&&t.className===n?t.__className=n:(o!==n||lt&&t.className!==n)&&(e==null&&!i?t.removeAttribute("class"):t.className=n,t.__className=n)}function q$(t,e){return(t==null?"":t)+(e?" "+e:"")}function se(t,e,i){if(i){if(t.classList.contains(e))return;t.classList.add(e)}else{if(!t.classList.contains(e))return;t.classList.remove(e)}}var K$=_c?()=>performance.now():()=>Date.now(),Or={tick:t=>(_c?requestAnimationFrame:Yt)(t),now:()=>K$(),tasks:new Set};function Kg(){let t=Or.now();Or.tasks.forEach(e=>{e.c(t)||(Or.tasks.delete(e),e.f())}),Or.tasks.size!==0&&Or.tick(Kg)}function Qg(t){let e;return Or.tasks.size===0&&Or.tick(Kg),{promise:new Promise(i=>{Or.tasks.add(e={c:t,f:i})}),abort(){Or.tasks.delete(e)}}}function Fc(t,e){t.dispatchEvent(new CustomEvent(e))}function j$(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Gg(t){let e={},i=t.split(";");for(let o of i){let[n,r]=o.split(":");if(!n||r===void 0)break;let l=j$(n.trim());e[l]=r.trim()}return e}var Z$=t=>t;function mm(t,e,i,o){var R;var n=(t&1)!==0,r=(t&2)!==0,l=n&&r,d=(t&4)!==0,a=l?"both":n?"in":"out",c,f=e.inert,g=e.style.overflow,m,h;function _(){var z;var B=jt,I=At;bo(null),Ui(null);try{return c!=null?c:c=i()(e,(z=o==null?void 0:o())!=null?z:{},{direction:a})}finally{bo(B),Ui(I)}}var x={is_global:d,in(){var B;if(e.inert=f,!n){h==null||h.abort(),(B=h==null?void 0:h.reset)==null||B.call(h);return}r||m==null||m.abort(),Fc(e,"introstart"),m=fm(e,_(),h,1,()=>{Fc(e,"introend"),m==null||m.abort(),m=c=void 0,e.style.overflow=g})},out(B){if(!r){B==null||B(),c=void 0;return}e.inert=!0,Fc(e,"outrostart"),h=fm(e,_(),m,0,()=>{Fc(e,"outroend"),B==null||B()})},stop:()=>{m==null||m.abort(),h==null||h.abort()}},T=At;if(((R=T.transitions)!=null?R:T.transitions=[]).push(x),n&&kd){var V=d;if(!V){for(var D=T.parent;D&&D.f&65536;)for(;(D=D.parent)&&!(D.f&16););V=!D||(D.f&32768)!==0}V&&fn(()=>{Pt(()=>x.in())})}}function fm(t,e,i,o,n){var r=o===1;if(Rs(e)){var l,d=!1;return Zo(()=>{if(!d){var T=e({direction:r?"in":"out"});l=fm(t,T,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:Yt,deactivate:Yt,reset:Yt,t:()=>o};let{delay:a=0,css:c,tick:f,easing:g=Z$}=e;var m=[];if(r&&i===void 0&&(f&&f(0,1),c)){var h=Gg(c(0,1));m.push(h,h)}var _=()=>1-o,x=t.animate(m,{duration:a});return x.onfinish=()=>{var Y;var T=(Y=i==null?void 0:i.t())!=null?Y:1-o;i==null||i.abort();var V=o-T,D=e.duration*Math.abs(V),R=[];if(D>0){var B=!1;if(c)for(var I=Math.ceil(D/16.666666666666668),z=0;z<=I;z+=1){var Q=T+V*g(z/I),F=Gg(c(Q,1-Q));R.push(F),B||(B=F.overflow==="hidden")}B&&(t.style.overflow="hidden"),_=()=>{var ee=x.currentTime;return T+V*g(ee/D)},f&&Qg(()=>{if(x.playState!=="running")return!1;var ee=_();return f(ee,1-ee),!0})}x=t.animate(R,{duration:D,fill:"forwards"}),x.onfinish=()=>{_=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=Yt)},deactivate:()=>{n=Yt},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>_()}}var Hs,dl,Ld,zc,Yg,Wc=class Wc{constructor(e){Vs(this,zc);Vs(this,Hs,new WeakMap);Vs(this,dl);Vs(this,Ld);Ua(this,Ld,e)}observe(e,i){var o=Vi(this,Hs).get(e)||new Set;return o.add(i),Vi(this,Hs).set(e,o),xv(this,zc,Yg).call(this).observe(e,Vi(this,Ld)),()=>{var n=Vi(this,Hs).get(e);n.delete(i),n.size===0&&(Vi(this,Hs).delete(e),Vi(this,dl).unobserve(e))}}};Hs=new WeakMap,dl=new WeakMap,Ld=new WeakMap,zc=new WeakSet,Yg=function(){var e;return(e=Vi(this,dl))!=null?e:Ua(this,dl,new ResizeObserver(i=>{for(var o of i){Wc.entries.set(o.target,o);for(var n of Vi(this,Hs).get(o.target)||[])n(o)}}))},An(Wc,"entries",new WeakMap);var vm=Wc;var e1=new vm({box:"border-box"});function os(t,e,i){var o=e1.observe(t,()=>i(t[e]));fn(()=>(Pt(()=>i(t[e])),o))}function jg(t,e){return t===e||(t==null?void 0:t[Ho])===e}function St(t={},e,i,o){return fn(()=>{var n,r;return ko(()=>{n=r,r=(o==null?void 0:o())||[],Pt(()=>{t!==i(...r)&&(e(t,...r),n&&jg(i(...n),t)&&e(null,...n))})}),()=>{Zo(()=>{r&&jg(i(...r),t)&&e(null,...r)})}}),t}function Hr(t=!1){let e=Bt,i=e.l.u;if(!i)return;let o=()=>Lc(e.s);if(t){let n=0,r={},l=b(()=>{let d=!1,a=e.s;for(let c in a)a[c]!==r[c]&&(r[c]=a[c],d=!0);return d&&n++,n});o=()=>s(l)}i.b.length&&Ka(()=>{Zg(e,o),Ns(i.b)}),at(()=>{let n=Pt(()=>i.m.map(kv));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&at(()=>{Zg(e,o),Ns(i.a)})}function Zg(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}function M(t,e,i){var o;t.$$events||(t.$$events={}),(o=t.$$events)[e]||(o[e]=[]),t.$$events[e].push(i)}function L(t){for(var e in t)e in this&&(this[e]=t[e])}if(We){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Uv(e)},set:o=>{i=o}})}};i1=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var i1;function Zt(t){Bt===null&&Qa("onMount"),Xr&&Bt.l!==null?t1(Bt).m.push(t):at(()=>{let e=Pt(t);if(typeof e=="function")return e})}function ur(t){Bt===null&&Qa("onDestroy"),Zt(()=>()=>Pt(t))}function t1(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Vd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),Yt;let o=Pt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var cl=[];function pr(t,e){return{subscribe:Te(t,e).subscribe}}function Te(t,e=Yt){let i=null,o=new Set;function n(d){if(za(t,d)&&(t=d,i)){let a=!cl.length;for(let c of o)c[1](),cl.push(c,t);if(a){for(let c=0;c<cl.length;c+=2)cl[c][0](cl[c+1]);cl.length=0}}}function r(d){n(d(t))}function l(d,a=Yt){let c=[d,a];return o.add(c),o.size===1&&(i=e(n,r)||Yt),d(t),()=>{o.delete(c),o.size===0&&i&&(i(),i=null)}}return{set:n,update:r,subscribe:l}}function _i(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return pr(i,(l,d)=>{let a=!1,c=[],f=0,g=Yt,m=()=>{if(f)return;g();let _=e(o?c[0]:c,l,d);r?l(_):g=typeof _=="function"?_:Yt},h=n.map((_,x)=>Vd(_,T=>{c[x]=T,f&=~(1<<x),a&&m()},()=>{f|=1<<x}));return a=!0,m(),function(){Ns(h),g(),a=!1}})}function Be(t){let e;return Vd(t,i=>e=i)(),e}var qc=!1,gm=Symbol();function k(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:hs(void 0),unsubscribe:Yt};if(o.store!==t&&!(gm in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=Yt;else{var n=!0;o.unsubscribe=Vd(t,l=>{n?o.source.v=l:j(o.source,l)}),n=!1}return t&&gm in i?Be(t):s(o.source)}function Je(){let t={};function e(){Bn(()=>{for(var i in t)t[i].unsubscribe();uo(t,gm,{enumerable:!1,value:!0})})}return[t,e]}function hm(t){var e=qc;try{return qc=!1,[t(),qc]}finally{qc=e}}var a1={get(t,e){if(!t.exclude.includes(e))return s(t.version),e in t.special?t.special[e]():t.props[e]},set(t,e,i){return e in t.special||(t.special[e]=p({get[e](){return t.props[e]}},e,4)),t.special[e](i),Cc(t.version),!0},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},deleteProperty(t,e){return t.exclude.includes(e)||(t.exclude.push(e),Cc(t.version)),!0},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function ze(t,e){return new Proxy({props:t,exclude:e,special:{},version:zi(0)},a1)}var l1={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Rs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];Rs(n)&&(n=n());let r=Mn(n,e);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Rs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Mn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ho||e===vd)return!1;for(let i of t.props)if(Rs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){Rs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function xs(...t){return new Proxy({props:t},l1)}function Xg(t){for(var e=At,i=At;e!==null&&!(e.f&96);)e=e.parent;try{return Ui(e),t()}finally{Ui(i)}}function p(t,e,i,o){var Q,F;var n=(i&1)!==0,r=!Xr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,c;l?[c,a]=hm(()=>t[e]):c=t[e];var f=Ho in t||vd in t,g=l&&((F=(Q=Mn(t,e))==null?void 0:Q.set)!=null?F:f&&e in t&&(Y=>t[e]=Y))||void 0,m=o,h=!0,_=!1,x=()=>(_=!0,h&&(h=!1,d?m=Pt(o):m=o),m);c===void 0&&o!==void 0&&(g&&r&&Fv(e),c=x(),g&&g(c));var T;if(r)T=()=>{var Y=t[e];return Y===void 0?x():(h=!0,_=!1,Y)};else{var V=Xg(()=>(n?b:Br)(()=>t[e]));V.f|=131072,T=()=>{var Y=s(V);return Y!==void 0&&(m=void 0),Y===void 0?m:Y}}if(!(i&4))return T;if(g){var D=t.$$legacy;return function(Y,ee){return arguments.length>0?((!r||!ee||D||a)&&g(ee?T():Y),Y):T()}}var R=!1,B=!1,I=hs(c),z=Xg(()=>b(()=>{var Y=T(),ee=s(I);return R?(R=!1,B=!0,ee):(B=!1,I.v=Y)}));return n||(z.equals=Wa),function(Y,ee){if(_d!==null&&(R=B,T(),s(I)),arguments.length>0){let ce=ee?s(z):r&&l?Me(Y):Y;return z.equals(ce)||(R=!0,j(I,ce),_&&m!==void 0&&(m=ce),Pt(()=>s(z))),Y}return s(z)}}var d1;typeof HTMLElement=="function"&&(d1=class extends HTMLElement{constructor(e,i,o){super();An(this,"$$ctor");An(this,"$$s");An(this,"$$c");An(this,"$$cn",!1);An(this,"$$d",{});An(this,"$$r",!1);An(this,"$$p_d",{});An(this,"$$l",{});An(this,"$$l_u",new Map);An(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}connectedCallback(){return Ct(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(r){return l=>{let d=document.createElement("slot");r!=="default"&&(d.name=r),C(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=c1(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=i(r),o.default=!0):o[r]=i(r));for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=_m(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=E({component:this.$$ctor,target:this.shadowRoot||this,props:zt($({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Nc(()=>{ko(()=>{var r;this.$$r=!0;for(let l of kf(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=_m(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let r in this.$$l)for(let l of this.$$l[r]){let d=this.$$c.$on(r,l);this.$$l_u.set(l,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=_m(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return kf(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function _m(t,e,i,o){var r;let n=(r=i[t])==null?void 0:r.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function c1(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var B_=require("@vkontakte/videoplayer-core/es2015"),JX=require("@vkontakte/videoplayer-core/es2015"),Es=require("@vkontakte/videoplayer-shared/es2015"),D_=require("@vkontakte/videoplayer-statistics/es2015");var $a=require("@vkontakte/videoplayer-shared/es2015");var p1={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:$a.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:$a.VideoQuality.Q_480P,highQualityLimit:$a.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},eh=t=>(0,$a.fillWithDefault)(t,p1),th=t=>Ya("ui-config",t),oi=()=>Ga("ui-config");var Rd="vk_player_debug_panel_opened";var ih="videoplayer",oh="videoplayer";var ns={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},nh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),rh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),sh=new Set(["ShiftRight","ShiftLeft"]);var ah=["TIMELINE"],Nd=[...ah,"GRAPH_BUTTON"],$m=[...ah,"PLAY_BUTTON"],Bd=[...Nd,"PLAY_BUTTON"];var Fr=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Fr||{}),ya={xs:0,s:1,m:2,l:3,xl:4};var Dd=require("@vkontakte/videoplayer-shared/es2015"),lh=require("@vkontakte/videoplayer-core/es2015"),dh=require("@vkontakte/videoplayer-statistics/es2015");var Kc="prod",xa="1.1.59-dev.50aa90ae.0";var wa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var ch=Symbol("storeContext"),uh=Symbol("microStoresContext"),ph=(t,e)=>{Ya(ch,t),Ya(uh,e),Kc==="dev"&&(window.app={store:t,microStores:e})},Fe=()=>{let t=Ga(ch);return(0,Dd.assertNonNullable)(t,"Store context is empty!"),t},Po=()=>{let t=Ga(uh);return(0,Dd.assertNonNullable)(t,"MicroStores context is empty!"),t},ri=(t,e)=>Gc(t,t.getValue(),e),Gc=(t,e,i)=>pr(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),fh=(t,e,i)=>{var V,D,R,B,I,z;let o=t.info,{width:n,height:r}=Be(i.ui.playerSize),l=(D=(V=o.throughputEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?D:0,d=(B=(R=o.rttEstimation$.getValue())==null?void 0:R.toFixed(0))!=null?B:0,a=o.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${xa} (core: ${lh.VERSION}, stat: ${dh.VERSION}, shared: ${Dd.VERSION})`,f=Be(i.state.errorLog$),g=f.length?`
45
+ `)})}if(sg(t,e),ag(e))throw t}function pg(t,e,i=0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var r=o[n];r.f&2?pg(r,e,i+1):e===r&&(i===0?en(r,2048):r.f&1024&&en(r,4096),Ja(r))}}function Tc(t){var h,_;var e=tn,i=Nn,o=ts,n=jt,r=$s,l=Rr,d=Bt,a=Nr,c=t.f;tn=null,Nn=0,ts=null,jt=c&96?null:t,$s=(c&256)!==0&&(!_s||n===null||a),Rr=null,$d(t.ctx),Nr=!1,Pc++;try{var f=(0,t.fn)(),g=t.deps;if(tn!==null){var m;if(Sd(t,Nn),g!==null&&Nn>0)for(g.length=Nn+tn.length,m=0;m<tn.length;m++)g[Nn+m]=tn[m];else t.deps=g=tn;if(!$s)for(m=Nn;m<g.length;m++)((_=(h=g[m]).reactions)!=null?_:h.reactions=[]).push(t)}else g!==null&&Nn<g.length&&(Sd(t,Nn),g.length=Nn);if(es()&&ts!==null&&!(t.f&6146))for(m=0;m<ts.length;m++)pg(ts[m],t);return n!==null&&Pc++,f}finally{tn=e,Nn=i,ts=o,jt=n,$s=r,Rr=l,$d(d),Nr=a}}function h$(t,e){let i=e.reactions;if(i!==null){var o=Tv.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&e.f&2&&(tn===null||!tn.includes(e))&&(en(e,4096),e.f&768||(e.f^=512),Sc(e),Sd(e,0))}function Sd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)h$(t,i[o])}function Xa(t){var e=t.f;if(!(e&16384)){en(t,1024);var i=At,o=Bt;if(At=t,We){var n=Jo;bd(t.component_function)}try{e&16?gg(t):Gf(t),Qf(t);var r=Tc(t);t.teardown=typeof r=="function"?r:null,t.wv=ug;var l=t.deps;if(We&&Jr&&t.f&2048&&l!==null)for(let a=0;a<l.length;a++){var d=l[a];d.trace_need_increase&&(d.wv=xd(),d.trace_need_increase=void 0,d.trace_v=void 0)}We&&Cd.push(t)}catch(a){ol(a,t,i,o||t.ctx)}finally{At=i,We&&bd(n)}}}function lg(){console.error("Last ten effects were: ",Cd.slice(-10).map(t=>t.fn)),Cd=[]}function fg(){if(tl>1e3){tl=0;try{Dv()}catch(t){if(We&&uo(t,"stack",{value:""}),el!==null)if(We)try{ol(t,el,null,null)}catch(e){throw lg(),e}else ol(t,el,null,null);else throw We&&lg(),t}}tl++}function mg(t){var e=t.length;if(e!==0){fg();var i=_s;_s=!0;try{for(var o=0;o<e;o++){var n=t[o];n.f&1024||(n.f^=1024);var r=[];vg(n,r),_$(r)}}finally{_s=i}}}function _$(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if(!(o.f&24576))try{Bs(o)&&(Xa(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Yf(o):o.fn=null))}catch(n){ol(n,o,null,o.ctx)}}}function $$(){if(wd=!1,tl>1001)return;let t=va;va=[],mg(t),wd||(tl=0,el=null,We&&(Cd=[]))}function Ja(t){kc===cg&&(wd||(wd=!0,queueMicrotask($$))),el=t;for(var e=t;e.parent!==null;){e=e.parent;var i=e.f;if(i&96){if(!(i&1024))return;e.f^=1024}}va.push(e)}function vg(t,e){var i=t.first,o=[];e:for(;i!==null;){var n=i.f,r=(n&32)!==0,l=r&&(n&1024)!==0,d=i.next;if(!l&&!(n&8192))if(n&8){if(r)i.f^=1024;else{var a=jt;try{jt=i,Bs(i)&&Xa(i)}catch(m){ol(m,i,null,i.ctx)}finally{jt=a}}var c=i.first;if(c!==null){i=c;continue}}else n&4&&o.push(i);if(d===null){let m=i.parent;for(;m!==null;){if(t===m)break e;var f=m.next;if(f!==null){i=f;continue e}m=m.parent}}i=d}for(var g=0;g<o.length;g++)c=o[g],e.push(c),vg(c,e)}function u(t){var e=kc,i=va;try{fg();let n=[];kc=g$,va=n,wd=!1,mg(i);var o=t==null?void 0:t();return Mv(),(va.length>0||n.length>0)&&u(),tl=0,el=null,We&&(Cd=[]),o}finally{kc=e,va=i}}function yo(){return Ct(this,null,function*(){yield Promise.resolve(),u()})}function s(t){var e=t.f,i=(e&2)!==0;if(_d!==null&&_d.add(t),jt!==null&&!Nr){Rr!==null&&Rr.includes(t)&&qv();var o=jt.deps;t.rv<Pc&&(t.rv=Pc,tn===null&&o!==null&&o[Nn]===t?Nn++:tn===null?tn=[t]:(!$s||!tn.includes(t))&&tn.push(t))}else if(i&&t.deps===null&&t.effects===null){var n=t,r=n.parent;r!==null&&!(r.f&256)&&(n.f^=256)}if(i&&(n=t,Bs(n)&&Wf(n)),We&&Jr&&hd!==null&&jt!==null&&hd.reaction===jt){if(t.debug)t.debug();else if(t.created){var l=hd.entries.get(t);l===void 0&&(l={read:[]},hd.entries.set(t,l)),l.read.push(gs("TracedAt"))}}return t.v}function Pt(t){var e=Nr;try{return Nr=!0,t()}finally{Nr=e}}var b$=-7169;function en(t,e){t.f=t.f&b$|e}function Lc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Ho in t)Ac(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Ho in i&&Ac(i)}}}function Ac(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{Ac(t[o],e)}catch(n){}let i=ms(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=$c(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}var lt=!1;function fo(t){lt=t}var Tt;function gi(t){if(t===null)throw pa(),vs;return Tt=t}function Ri(){return gi(Eo(Tt))}function y(t){if(lt){if(Eo(Tt)!==null)throw pa(),vs;Tt=t}}function Le(t=1){if(lt){for(var e=t,i=Tt;e--;)i=Eo(i);Tt=i}}function rl(){for(var t=0,e=Tt;;){if(e.nodeType===8){var i=e.data;if(i===la){if(t===0)return e;t-=1}else(i===qa||i===aa)&&(t+=1)}var o=Eo(e);e.remove(),e=o}}function Me(t,e=null,i){var c,f;var o=null;if(We&&Jr&&(o=gs("CreatedAt")),typeof t!="object"||t===null||Ho in t)return t;let n=ms(t);if(n!==Ef&&n!==Iv)return t;var r=new Map,l=Vr(t),d=zi(0);l&&r.set("length",zi(t.length,o));var a;if(We)if(a={parent:e,owners:null},i){let g=(f=(c=i.v)==null?void 0:c[fs])==null?void 0:f.owners;a.owners=g?new Set(g):null}else a.owners=e===null?Bt!==null?new Set([Bt.function]):null:new Set;return new Proxy(t,{defineProperty(g,m,h){(!("value"in h)||h.configurable===!1||h.enumerable===!1||h.writable===!1)&&zv();var _=r.get(m);return _===void 0?(_=zi(h.value,o),r.set(m,_)):j(_,Me(h.value,a)),!0},deleteProperty(g,m){var h=r.get(m);if(h===void 0)m in g&&r.set(m,zi(Zi,o));else{if(l&&typeof m=="string"){var _=r.get("length"),x=Number(m);Number.isInteger(x)&&x<_.v&&j(_,x)}j(h,Zi),hg(d)}return!0},get(g,m,h){var D;if(We&&m===fs)return a;if(m===Ho)return t;var _=r.get(m),x=m in g;if(_===void 0&&(!x||(D=Mn(g,m))!=null&&D.writable)&&(_=zi(Me(x?g[m]:Zi,a),o),r.set(m,_)),_!==void 0){var T=s(_);if(We){var V=T==null?void 0:T[fs];V&&(V==null?void 0:V.parent)!==a&&Nf(a,V)}return T===Zi?void 0:T}return Reflect.get(g,m,h)},getOwnPropertyDescriptor(g,m){var h=Reflect.getOwnPropertyDescriptor(g,m);if(h&&"value"in h){var _=r.get(m);_&&(h.value=s(_))}else if(h===void 0){var x=r.get(m),T=x==null?void 0:x.v;if(x!==void 0&&T!==Zi)return{enumerable:!0,configurable:!0,value:T,writable:!0}}return h},has(g,m){var T;if(We&&m===fs||m===Ho)return!0;var h=r.get(m),_=h!==void 0&&h.v!==Zi||Reflect.has(g,m);if(h!==void 0||At!==null&&(!_||(T=Mn(g,m))!=null&&T.writable)){h===void 0&&(h=zi(_?Me(g[m],a):Zi,o),r.set(m,h));var x=s(h);if(x===Zi)return!1}return _},set(g,m,h,_){var Q;var x=r.get(m),T=m in g;if(l&&m==="length")for(var V=h;V<x.v;V+=1){var D=r.get(V+"");D!==void 0?j(D,Zi):V in g&&(D=zi(Zi,o),r.set(V+"",D))}if(x===void 0?(!T||(Q=Mn(g,m))!=null&&Q.writable)&&(x=zi(void 0,o),j(x,Me(h,a)),r.set(m,x)):(T=x.v!==Zi,j(x,Me(h,a))),We){var R=h==null?void 0:h[fs];R&&(R==null?void 0:R.parent)!==a&&Nf(a,R),tg(a)}var B=Reflect.getOwnPropertyDescriptor(g,m);if(B!=null&&B.set&&B.set.call(_,h),!T){if(l&&typeof m=="string"){var I=r.get("length"),z=Number(m);Number.isInteger(z)&&z>=I.v&&j(I,z+1)}hg(d)}return!0},ownKeys(g){s(d);var m=Reflect.ownKeys(g).filter(x=>{var T=r.get(x);return T===void 0||T.v!==Zi});for(var[h,_]of r)_.v!==Zi&&!(h in g)&&m.push(h);return m},setPrototypeOf(){Wv()}})}function hg(t,e=1){j(t,t.v+e)}function Vc(t){return t!==null&&typeof t=="object"&&Ho in t?t[Ho]:t}function _g(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(r,l){let d=i.call(this,r,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(Vc(this[a])===r){xc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(r,l){let d=o.call(this,r,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(Vc(this[a])===r){xc("array.lastIndexOf(...)");break}}return d},t.includes=function(r,l){let d=n.call(this,r,l);if(!d){for(let a=0;a<this.length;a+=1)if(Vc(this[a])===r){xc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var ga,$g,bg,yg;function Rc(){if(ga===void 0){ga=window,$g=document;var t=Element.prototype,e=Node.prototype;bg=Mn(e,"firstChild").get,yg=Mn(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0,We&&(t.__svelte_meta=null,_g())}}function on(t=""){return document.createTextNode(t)}function hi(t){return bg.call(t)}function Eo(t){return yg.call(t)}function w(t,e){if(!lt)return hi(t);var i=hi(Tt);if(i===null)i=Tt.appendChild(on());else if(e&&i.nodeType!==3){var o=on();return i==null||i.before(o),gi(o),o}return gi(i),i}function ke(t,e){var n,r;if(!lt){var i=hi(t);return i.nodeType===8&&i.data===""?Eo(i):i}if(e&&((n=Tt)==null?void 0:n.nodeType)!==3){var o=on();return(r=Tt)==null||r.before(o),gi(o),o}return Tt}function H(t,e=1,i=!1){let o=lt?Tt:t;for(var n;e--;)n=o,o=Eo(o);if(!lt)return o;var r=o==null?void 0:o.nodeType;if(i&&r!==3){var l=on();return o===null?n==null||n.after(l):o.before(l),gi(l),l}return gi(o),o}function Id(t){t.textContent=""}function Zf(t){At===null&&jt===null&&Bv(t),jt!==null&&jt.f&256&&At===null&&Nv(),Mc&&Rv(t)}function y$(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ha(t,e,i,o=!0){var f;var n=(t&64)!==0,r=At;if(We)for(;r!==null&&r.f&262144;)r=r.parent;var l={ctx:Bt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n?null:r,prev:null,teardown:null,transitions:null,wv:0};if(We&&(l.component_function=Jo),i){var d=_s;try{ja(!0),Xa(l),l.f|=32768}catch(g){throw po(l),g}finally{ja(d)}}else e!==null&&Ja(l);var a=i&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&1048704)===0;if(!a&&!n&&o&&(r!==null&&y$(l,r),jt!==null&&jt.f&2)){var c=jt;((f=c.effects)!=null?f:c.effects=[]).push(l)}return l}function Bn(t){let e=ha(8,null,!1);return en(e,1024),e.teardown=t,e}function at(t){var n;Zf("$effect");var e=At!==null&&(At.f&32)!==0&&Bt!==null&&!Bt.m;if(We&&uo(t,"name",{value:"$effect"}),e){var i=Bt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:At,reaction:jt})}else{var o=fn(t);return o}}function Ka(t){return Zf("$effect.pre"),We&&uo(t,"name",{value:"$effect.pre"}),ko(t)}function Nc(t){let e=ha(64,t,!0);return()=>{po(e)}}function wg(t){let e=ha(64,t,!0);return(i={})=>new Promise(o=>{i.outro?gn(e,()=>{po(e),o(void 0)}):(po(e),o(void 0))})}function fn(t){return ha(4,t,!1)}function ko(t){return ha(8,t,!0)}function N(t,e=[],i=b){let o=e.map(i),n=()=>t(...o.map(s));return We&&uo(n,"name",{value:"{expression}"}),mo(n)}function mo(t,e=0){return ha(24|e,t,!0)}function Xi(t,e=!0){return ha(40,t,!0,e)}function Qf(t){var e=t.teardown;if(e!==null){let i=Mc,o=jt;Kf(!0),bo(null);try{e.call(null)}finally{Kf(i),bo(o)}}}function Gf(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;po(i,e),i=o}}function gg(t){for(var e=t.first;e!==null;){var i=e.next;e.f&32||po(e),e=i}}function po(t,e=!0){var i=!1;if((e||t.f&524288)&&t.nodes_start!==null){for(var o=t.nodes_start,n=t.nodes_end;o!==null;){var r=o===n?null:Eo(o);o.remove(),o=r}i=!0}Gf(t,e&&!i),Sd(t,0),en(t,16384);var l=t.transitions;if(l!==null)for(let a of l)a.stop();Qf(t);var d=t.parent;d!==null&&d.first!==null&&Yf(t),We&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Yf(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function gn(t,e){var i=[];Bc(t,i,!0),Xf(i,()=>{po(t),e&&e()})}function Xf(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Bc(t,e,i){if(!(t.f&8192)){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,r=(o.f&65536)!==0||(o.f&32)!==0;Bc(o,e,r?i:!1),o=n}}}function bs(t){Cg(t,!0)}function Cg(t,e){if(t.f&8192){t.f^=8192,t.f&1024||(t.f^=1024),Bs(t)&&(en(t,2048),Ja(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Cg(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}function Jf(t,e){if(e){let i=document.body;t.autofocus=!0,Zo(()=>{document.activeElement===i&&t.focus()})}}function em(t){var e=jt,i=At;bo(null),Ui(null);try{return t()}finally{bo(e),Ui(i)}}var tm=new Set,Dc=new Set;function _a(t){if(!lt)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function im(t,e,i,o={}){function n(r){if(o.capture||sl.call(e,r),!r.cancelBubble)return em(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Zo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Kt(t,e,i,o,n){var r={capture:o,passive:n},l=im(t,e,i,r);(e===document.body||e===window||e===document)&&Bn(()=>{e.removeEventListener(t,l,r)})}function xt(t){for(var e=0;e<t.length;e++)tm.add(t[e]);for(var i of Dc)i(t)}function sl(t){var D;var e=this,i=e.ownerDocument,o=t.type,n=((D=t.composedPath)==null?void 0:D.call(t))||[],r=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var c=n.indexOf(e);if(c===-1)return;a<=c&&(l=a)}if(r=n[l]||t.target,r!==e){uo(t,"currentTarget",{configurable:!0,get(){return r||i}});var f=jt,g=At;bo(null),Ui(null);try{for(var m,h=[];r!==null;){var _=r.assignedSlot||r.parentNode||r.host||null;try{var x=r["__"+o];if(x!==void 0&&!r.disabled)if(Vr(x)){var[T,...V]=x;T.apply(r,[t,...V])}else x.call(r,t)}catch(R){m?h.push(R):m=R}if(t.cancelBubble||_===e||_===null)break;r=_}if(m){for(let R of h)queueMicrotask(()=>{throw R});throw m}}finally{t.__root=e,delete t.currentTarget,bo(f),Ui(g)}}}var w$;function Sg(){w$=void 0}function al(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function xo(t,e){var i=At;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function U(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,r=!t.startsWith("<!>");return()=>{if(lt)return xo(Tt,null),Tt;n===void 0&&(n=al(r?t:"<!>"+t),i||(n=hi(n)));var l=o?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=hi(l),a=l.lastChild;xo(d,a)}else xo(l,l);return l}}function Ve(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(lt)return xo(Tt,null),Tt;if(!l){var d=al(r),a=hi(d);if(n)for(l=document.createDocumentFragment();hi(a);)l.appendChild(hi(a));else l=hi(a)}var c=l.cloneNode(!0);if(n){var f=hi(c),g=c.lastChild;xo(f,g)}else xo(c,c);return c}}function dr(t=""){if(!lt){var e=on(t+"");return xo(e,e),e}var i=Tt;return i.nodeType!==3&&(i.before(i=on()),gi(i)),xo(i,i),i}function Xe(){if(lt)return xo(Tt,null),Tt;var t=document.createDocumentFragment(),e=document.createComment(""),i=on();return t.append(e,i),xo(e,i),t}function C(t,e){if(lt){At.nodes_end=Tt,Ri();return}t!==null&&t.before(e)}var S$=/\r/g;function Ig(t){t=t.replace(S$,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function kg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var T$=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Eg(t){return T$.includes(t)}var I$=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var k$={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Pg(t){var e;return t=t.toLowerCase(),(e=k$[t])!=null?e:t}var Bw=[...I$,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var E$=["touchstart","touchmove"];function Ag(t){return E$.includes(t)}var P$=["textarea","script","style","title"];function Mg(t){return P$.includes(t)}function om(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var kd=!0;function Oc(t){kd=t}function Ee(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Hc(t,e){return Lg(t,e)}function rm(t,e){var l;Rc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=lt,n=Tt;try{for(var r=hi(i);r&&(r.nodeType!==8||r.data!==qa);)r=Eo(r);if(!r)throw vs;fo(!0),gi(r),Ri();let d=Lg(t,zt($({},e),{anchor:r}));if(Tt===null||Tt.nodeType!==8||Tt.data!==la)throw pa(),vs;return fo(!1),d}catch(d){if(d===vs)return e.recover===!1&&Ov(),Rc(),Id(i),fo(!1),Hc(t,e);throw d}finally{fo(o),gi(n),Sg()}}var ll=new Map;function Lg(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){Rc();var d=new Set,a=g=>{for(var m=0;m<g.length;m++){var h=g[m];if(!d.has(h)){d.add(h);var _=Ag(h);e.addEventListener(h,sl,{passive:_});var x=ll.get(h);x===void 0?(document.addEventListener(h,sl,{passive:_}),ll.set(h,1)):ll.set(h,x+1)}}};a(gd(tm)),Dc.add(a);var c=void 0,f=wg(()=>{var g=i!=null?i:e.appendChild(on());return Xi(()=>{if(r){P({});var m=Bt;m.c=r}n&&(o.$$events=n),lt&&xo(g,null),kd=l,c=t(g,o)||{},kd=!0,lt&&(At.nodes_end=Tt),r&&A()}),()=>{var _;for(var m of d){e.removeEventListener(m,sl);var h=ll.get(m);--h===0?(document.removeEventListener(m,sl),ll.delete(m)):ll.set(m,h)}Dc.delete(a),g!==i&&((_=g.parentNode)==null||_.removeChild(g))}});return nm.set(c,f),c}var nm=new WeakMap;function sm(t,e){let i=nm.get(t);return i?(nm.delete(t),i(e)):(We&&Xv(),Promise.resolve())}var lm;function E(t){return lm=t.target,new am(t)}var ys,cr,am=class{constructor(e){Vs(this,ys);Vs(this,cr);var r,l;var i=new Map,o=(d,a)=>{var c=hs(a);return i.set(d,c),c};let n=new Proxy(zt($({},e.props||{}),{$$events:{}}),{get(d,a){var c;return s((c=i.get(a))!=null?c:o(a,Reflect.get(d,a)))},has(d,a){var c;return a===vd?!0:(s((c=i.get(a))!=null?c:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,c){var f;return j((f=i.get(a))!=null?f:o(a,c),c),Reflect.set(d,a,c)}});Ua(this,cr,(e.hydrate?rm:Hc)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(r=e.intro)!=null?r:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&u(),Ua(this,ys,n.$$events);for(let d of Object.keys(Vi(this,cr)))d==="$set"||d==="$destroy"||d==="$on"||uo(this,d,{get(){return Vi(this,cr)[d]},set(a){Vi(this,cr)[d]=a},enumerable:!0});Vi(this,cr).$set=d=>{Object.assign(n,d)},Vi(this,cr).$destroy=()=>{sm(Vi(this,cr))}}$set(e){Vi(this,cr).$set(e)}$on(e,i){Vi(this,ys)[e]=Vi(this,ys)[e]||[];let o=(...n)=>i.call(this,...n);return Vi(this,ys)[e].push(o),()=>{Vi(this,ys)[e]=Vi(this,ys)[e].filter(n=>n!==o)}}$destroy(){Vi(this,cr).$destroy()}};ys=new WeakMap,cr=new WeakMap;var Vg="5";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Vg);var Rg=new Map;function Ng(t,e){var i=Rg.get(t);i||(i=new Set,Rg.set(t,i)),i.add(e)}function q(t,e,i=!1){lt&&Ri();var o=t,n=null,r=null,l=Zi,d=i?65536:0,a=!1;let c=(g,m=!0)=>{a=!0,f(m,g)},f=(g,m)=>{if(l===(l=g))return;let h=!1;if(lt){let _=o.data===aa;!!l===_&&(o=rl(),gi(o),fo(!1),h=!0)}l?(n?bs(n):m&&(n=Xi(()=>m(o))),r&&gn(r,()=>{r=null})):(r?bs(r):m&&(r=Xi(()=>m(o))),n&&gn(n,()=>{n=null})),h&&fo(!0)};mo(()=>{a=!1,e(c),a||f(null,null)},d),lt&&(o=Tt)}function Ed(t,e,i){lt&&Ri();var o=t,n=Zi,r,l=es()?Lv:za;mo(()=>{l(n,n=e())&&(r&&gn(r),r=Xi(()=>i(o)))}),lt&&(o=Tt)}var Os=null;function um(t){Os=t}function ro(t,e){return e}function O$(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)Bc(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Id(a),a.append(i),o.clear(),Ds(t,e[0].prev,e[r-1].next)}Xf(n,()=>{for(var c=0;c<r;c++){var f=e[c];d||(o.delete(f.k),Ds(t,f.prev,f.next)),po(f.e,!d)}})}function Ei(t,e,i,o,n,r=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var c=t;l=lt?gi(hi(c)):c.appendChild(on())}lt&&Ri();var f=null,g=!1,m=Br(()=>{var h=i();return Vr(h)?h:h==null?[]:gd(h)});mo(()=>{var h=s(m),_=h.length;if(g&&_===0)return;g=_===0;let x=!1;if(lt){var T=l.data===aa;T!==(_===0)&&(l=rl(),gi(l),fo(!1),x=!0)}if(lt){for(var V=null,D,R=0;R<_;R++){if(Tt.nodeType===8&&Tt.data===la){l=Tt,x=!0,fo(!1);break}var B=h[R],I=o(B,R);D=Og(Tt,d,V,null,B,I,R,n,e,i),d.items.set(I,D),V=D}_>0&&gi(rl())}lt||H$(h,d,l,n,e,o,i),r!==null&&(_===0?f?bs(f):f=Xi(()=>r(l)):f!==null&&gn(f,()=>{f=null})),x&&fo(!0),s(m)}),lt&&(l=Tt)}function H$(t,e,i,o,n,r,l){var Se,G,fe,_e;var d=(n&8)!==0,a=(n&3)!==0,c=t.length,f=e.items,g=e.first,m=g,h,_=null,x,T=[],V=[],D,R,B,I;if(d)for(I=0;I<c;I+=1)D=t[I],R=r(D,I),B=f.get(R),B!==void 0&&((Se=B.a)==null||Se.measure(),(x!=null?x:x=new Set).add(B));for(I=0;I<c;I+=1){if(D=t[I],R=r(D,I),B=f.get(R),B===void 0){var z=m?m.e.nodes_start:i;_=Og(z,e,_,_===null?e.first:_.next,D,R,I,o,n,l),f.set(R,_),T=[],V=[],m=_.next;continue}if(a&&F$(B,D,I,n),B.e.f&8192&&(bs(B.e),d&&((G=B.a)==null||G.unfix(),(x!=null?x:x=new Set).delete(B))),B!==m){if(h!==void 0&&h.has(B)){if(T.length<V.length){var Q=V[0],F;_=Q.prev;var Y=T[0],ee=T[T.length-1];for(F=0;F<T.length;F+=1)Bg(T[F],Q,i);for(F=0;F<V.length;F+=1)h.delete(V[F]);Ds(e,Y.prev,ee.next),Ds(e,_,Y),Ds(e,ee,Q),m=Q,_=ee,I-=1,T=[],V=[]}else h.delete(B),Bg(B,m,i),Ds(e,B.prev,B.next),Ds(e,B,_===null?e.first:_.next),Ds(e,_,B),_=B;continue}for(T=[],V=[];m!==null&&m.k!==R;)m.e.f&8192||(h!=null?h:h=new Set).add(m),V.push(m),m=m.next;if(m===null)continue;B=m}T.push(B),_=B,m=B.next}if(m!==null||h!==void 0){for(var ce=h===void 0?[]:gd(h);m!==null;)m.e.f&8192||ce.push(m),m=m.next;var ie=ce.length;if(ie>0){var we=n&4&&c===0?i:null;if(d){for(I=0;I<ie;I+=1)(fe=ce[I].a)==null||fe.measure();for(I=0;I<ie;I+=1)(_e=ce[I].a)==null||_e.fix()}O$(e,ce,we,f)}}d&&Zo(()=>{var Z;if(x!==void 0)for(B of x)(Z=B.a)==null||Z.apply()}),At.first=e.first&&e.first.e,At.last=_&&_.e}function F$(t,e,i,o){o&1&&Za(t.v,e),o&2?Za(t.i,i):t.i=i}function Og(t,e,i,o,n,r,l,d,a,c){var f=Os,g=(a&1)!==0,m=(a&16)===0,h=g?m?hs(n):zi(n):n,_=a&2?zi(l):l;We&&g&&(h.debug=()=>{var T=typeof _=="number"?l:_.v;c()[T]});var x={i:_,v:h,k:r,a:null,e:null,prev:i,next:o};Os=x;try{return x.e=Xi(()=>d(t,h,_,c),lt),x.e.prev=i&&i.e,x.e.next=o&&o.e,i===null?e.first=x:(i.next=x,i.e.next=x.e),o!==null&&(o.prev=x,o.e.prev=x.e),x}finally{Os=f}}function Bg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==o;){var l=Eo(r);n.before(r),r=l}}function Ds(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function U$(t,e,i){var r,l;if(!e||e===Ig(String(i!=null?i:"")))return;let o,n=(r=t.__svelte_meta)==null?void 0:r.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=Jo)!=null&&l[Ti]&&(o=`in ${Jo[Ti]}`),Zv(om(o))}function Pd(t,e,i,o,n){var r=t,l="",d;mo(()=>{var a;if(l===(l=(a=e())!=null?a:"")){lt&&Ri();return}d!==void 0&&(po(d),d=void 0),l!==""&&(d=Xi(()=>{if(lt){for(var c=Tt.data,f=Ri(),g=f;f!==null&&(f.nodeType!==8||f.data!=="");)g=f,f=Eo(f);if(f===null)throw pa(),vs;We&&!n&&U$(f.parentNode,c,l),xo(Tt,g),r=gi(f);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var h=al(m);if((i||o)&&(h=hi(h)),xo(hi(h),h.lastChild),i||o)for(;hi(h);)r.before(hi(h));else r.before(h)}))})}function Ue(t,e,i,o,n){var d;lt&&Ri();var r=(d=e.$$slots)==null?void 0:d[i],l=!1;r===!0&&(r=e[i==="default"?"children":i],l=!0),r===void 0?n!==null&&n(t):r(t,l?()=>o:o)}function wo(t,e,...i){var o=t,n=Yt,r;mo(()=>{n!==(n=e())&&(r&&(po(r),r=null),We&&n==null&&Hv(),r=Xi(()=>n(o,...i)))},65536),lt&&(o=Tt)}function Wi(t,e,i){lt&&Ri();var o=t,n,r;mo(()=>{n!==(n=e())&&(r&&(gn(r),r=null),n&&(r=Xi(()=>i(o,n))))},65536),lt&&(o=Tt)}function Ad(t,e,i,o,n,r){var _;let l=lt;lt&&Ri();var d=We&&r&&((_=Bt)==null?void 0:_.function[Ti]),a,c,f=null;lt&&Tt.nodeType===1&&(f=Tt,Ri());var g=lt?Tt:t,m,h=Os;mo(()=>{let x=e()||null;var T=n?n():i||x==="svg"?da:null;if(x!==a){var V=Os;um(h),m&&(x===null?gn(m,()=>{m=null,c=null}):x===c?bs(m):(po(m),Oc(!1))),x&&x!==c&&(m=Xi(()=>{if(f=lt?f:T?document.createElementNS(T,x):document.createElement(x),We&&r&&(f.__svelte_meta={loc:{file:d,line:r[0],column:r[1]}}),xo(f,f),o){lt&&Mg(x)&&f.append(document.createComment(""));var D=lt?hi(f):f.appendChild(on());lt&&(D===null?fo(!1):gi(D)),o(f,D)}At.nodes_end=f,g.before(f)})),a=x,a&&(c=a),Oc(!0),um(V)}},65536),l&&(fo(!0),gi(g))}function re(t,e){Zo(()=>{var n,r,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(r=lm)==null?void 0:r.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),We&&Ng(e.hash,d)}})}function Hg(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=Hg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Fg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Hg(t))&&(o&&(o+=" "),o+=e);return o}function Md(t){return typeof t=="object"?Fg(t):t!=null?t:""}function Wg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function me(t,e,i,o){var r;var n=(r=t.__attributes)!=null?r:t.__attributes={};if(lt&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||z$(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[wv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&qg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function He(t,e,i,o,n=!1,r=!1,l=!1){var R;let d=lt&&r;d&&fo(!1);var a=e||{},c=t.tagName==="OPTION";for(var f in e)f in i||(i[f]=null);i.class&&(i.class=Md(i.class)),o!==void 0&&(i.class=i.class?i.class+" "+o:o);var g=qg(t),m=(R=t.__attributes)!=null?R:t.__attributes={};for(let B in i){let I=i[B];if(c&&B==="value"&&I==null){t.value=t.__value="",a[B]=I;continue}var h=a[B];if(I!==h){a[B]=I;var _=B[0]+B[1];if(_!=="$$"){if(_==="on"){let z={},Q="$$"+B,F=B.slice(2);var x=Eg(F);if(kg(F)&&(F=F.slice(0,-7),z.capture=!0),!x&&h){if(I!=null)continue;t.removeEventListener(F,a[Q],z),a[Q]=null}if(I!=null)if(x)t[`__${F}`]=I,xt([F]);else{let Y=function(ee){a[B].call(this,ee)};var D=Y;a[Q]=im(F,t,Y,z)}else x&&(t[`__${F}`]=void 0)}else if(B==="style"&&I!=null)t.style.cssText=I+"";else if(B==="autofocus")Jf(t,!!I);else if(!r&&(B==="__value"||B==="value"&&I!=null))t.value=t.__value=I;else if(B==="selected"&&c)Wg(t,I);else{var T=B;n||(T=Pg(T));var V=T==="defaultValue"||T==="defaultChecked";if(I==null&&!r&&!V)if(m[B]=null,T==="value"||T==="checked"){let z=t;if(T==="value"){let Q=z.defaultValue;z.removeAttribute(T),z.defaultValue=Q}else{let Q=z.defaultChecked;z.removeAttribute(T),z.defaultChecked=Q}}else t.removeAttribute(B);else V||g.includes(T)&&(r||typeof I!="string")?t[T]=I:typeof I!="function"&&me(t,T,I)}B==="style"&&"__styles"in t&&(t.__styles={})}}}return d&&fo(!0),a}var Ug=new Map;function qg(t){var e=Ug.get(t.nodeName);if(e)return e;Ug.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=$c(o);for(var r in i)i[r].set&&e.push(r);o=ms(o)}return e}function z$(t,e,i){var o;We&&(e==="srcset"&&W$(t,i)||pm((o=t.getAttribute(e))!=null?o:"",i)||jv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function pm(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function zg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function W$(t,e){var i=zg(t.srcset),o=zg(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(pm(i[l][0],n)||pm(n,i[l][0])))}function nn(t,e,i){var o=t.__className,n=q$(e,i);lt&&t.className===n?t.__className=n:(o!==n||lt&&t.className!==n)&&(e==null&&!i?t.removeAttribute("class"):t.className=n,t.__className=n)}function q$(t,e){return(t==null?"":t)+(e?" "+e:"")}function se(t,e,i){if(i){if(t.classList.contains(e))return;t.classList.add(e)}else{if(!t.classList.contains(e))return;t.classList.remove(e)}}var K$=_c?()=>performance.now():()=>Date.now(),Or={tick:t=>(_c?requestAnimationFrame:Yt)(t),now:()=>K$(),tasks:new Set};function Kg(){let t=Or.now();Or.tasks.forEach(e=>{e.c(t)||(Or.tasks.delete(e),e.f())}),Or.tasks.size!==0&&Or.tick(Kg)}function Qg(t){let e;return Or.tasks.size===0&&Or.tick(Kg),{promise:new Promise(i=>{Or.tasks.add(e={c:t,f:i})}),abort(){Or.tasks.delete(e)}}}function Fc(t,e){t.dispatchEvent(new CustomEvent(e))}function j$(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Gg(t){let e={},i=t.split(";");for(let o of i){let[n,r]=o.split(":");if(!n||r===void 0)break;let l=j$(n.trim());e[l]=r.trim()}return e}var Z$=t=>t;function mm(t,e,i,o){var R;var n=(t&1)!==0,r=(t&2)!==0,l=n&&r,d=(t&4)!==0,a=l?"both":n?"in":"out",c,f=e.inert,g=e.style.overflow,m,h;function _(){var z;var B=jt,I=At;bo(null),Ui(null);try{return c!=null?c:c=i()(e,(z=o==null?void 0:o())!=null?z:{},{direction:a})}finally{bo(B),Ui(I)}}var x={is_global:d,in(){var B;if(e.inert=f,!n){h==null||h.abort(),(B=h==null?void 0:h.reset)==null||B.call(h);return}r||m==null||m.abort(),Fc(e,"introstart"),m=fm(e,_(),h,1,()=>{Fc(e,"introend"),m==null||m.abort(),m=c=void 0,e.style.overflow=g})},out(B){if(!r){B==null||B(),c=void 0;return}e.inert=!0,Fc(e,"outrostart"),h=fm(e,_(),m,0,()=>{Fc(e,"outroend"),B==null||B()})},stop:()=>{m==null||m.abort(),h==null||h.abort()}},T=At;if(((R=T.transitions)!=null?R:T.transitions=[]).push(x),n&&kd){var V=d;if(!V){for(var D=T.parent;D&&D.f&65536;)for(;(D=D.parent)&&!(D.f&16););V=!D||(D.f&32768)!==0}V&&fn(()=>{Pt(()=>x.in())})}}function fm(t,e,i,o,n){var r=o===1;if(Rs(e)){var l,d=!1;return Zo(()=>{if(!d){var T=e({direction:r?"in":"out"});l=fm(t,T,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:Yt,deactivate:Yt,reset:Yt,t:()=>o};let{delay:a=0,css:c,tick:f,easing:g=Z$}=e;var m=[];if(r&&i===void 0&&(f&&f(0,1),c)){var h=Gg(c(0,1));m.push(h,h)}var _=()=>1-o,x=t.animate(m,{duration:a});return x.onfinish=()=>{var Y;var T=(Y=i==null?void 0:i.t())!=null?Y:1-o;i==null||i.abort();var V=o-T,D=e.duration*Math.abs(V),R=[];if(D>0){var B=!1;if(c)for(var I=Math.ceil(D/16.666666666666668),z=0;z<=I;z+=1){var Q=T+V*g(z/I),F=Gg(c(Q,1-Q));R.push(F),B||(B=F.overflow==="hidden")}B&&(t.style.overflow="hidden"),_=()=>{var ee=x.currentTime;return T+V*g(ee/D)},f&&Qg(()=>{if(x.playState!=="running")return!1;var ee=_();return f(ee,1-ee),!0})}x=t.animate(R,{duration:D,fill:"forwards"}),x.onfinish=()=>{_=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=Yt)},deactivate:()=>{n=Yt},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>_()}}var Hs,dl,Ld,zc,Yg,Wc=class Wc{constructor(e){Vs(this,zc);Vs(this,Hs,new WeakMap);Vs(this,dl);Vs(this,Ld);Ua(this,Ld,e)}observe(e,i){var o=Vi(this,Hs).get(e)||new Set;return o.add(i),Vi(this,Hs).set(e,o),xv(this,zc,Yg).call(this).observe(e,Vi(this,Ld)),()=>{var n=Vi(this,Hs).get(e);n.delete(i),n.size===0&&(Vi(this,Hs).delete(e),Vi(this,dl).unobserve(e))}}};Hs=new WeakMap,dl=new WeakMap,Ld=new WeakMap,zc=new WeakSet,Yg=function(){var e;return(e=Vi(this,dl))!=null?e:Ua(this,dl,new ResizeObserver(i=>{for(var o of i){Wc.entries.set(o.target,o);for(var n of Vi(this,Hs).get(o.target)||[])n(o)}}))},An(Wc,"entries",new WeakMap);var vm=Wc;var e1=new vm({box:"border-box"});function os(t,e,i){var o=e1.observe(t,()=>i(t[e]));fn(()=>(Pt(()=>i(t[e])),o))}function jg(t,e){return t===e||(t==null?void 0:t[Ho])===e}function St(t={},e,i,o){return fn(()=>{var n,r;return ko(()=>{n=r,r=(o==null?void 0:o())||[],Pt(()=>{t!==i(...r)&&(e(t,...r),n&&jg(i(...n),t)&&e(null,...n))})}),()=>{Zo(()=>{r&&jg(i(...r),t)&&e(null,...r)})}}),t}function Hr(t=!1){let e=Bt,i=e.l.u;if(!i)return;let o=()=>Lc(e.s);if(t){let n=0,r={},l=b(()=>{let d=!1,a=e.s;for(let c in a)a[c]!==r[c]&&(r[c]=a[c],d=!0);return d&&n++,n});o=()=>s(l)}i.b.length&&Ka(()=>{Zg(e,o),Ns(i.b)}),at(()=>{let n=Pt(()=>i.m.map(kv));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&at(()=>{Zg(e,o),Ns(i.a)})}function Zg(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}function M(t,e,i){var o;t.$$events||(t.$$events={}),(o=t.$$events)[e]||(o[e]=[]),t.$$events[e].push(i)}function L(t){for(var e in t)e in this&&(this[e]=t[e])}if(We){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Uv(e)},set:o=>{i=o}})}};i1=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var i1;function Zt(t){Bt===null&&Qa("onMount"),Xr&&Bt.l!==null?t1(Bt).m.push(t):at(()=>{let e=Pt(t);if(typeof e=="function")return e})}function ur(t){Bt===null&&Qa("onDestroy"),Zt(()=>()=>Pt(t))}function t1(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Vd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),Yt;let o=Pt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var cl=[];function pr(t,e){return{subscribe:Te(t,e).subscribe}}function Te(t,e=Yt){let i=null,o=new Set;function n(d){if(za(t,d)&&(t=d,i)){let a=!cl.length;for(let c of o)c[1](),cl.push(c,t);if(a){for(let c=0;c<cl.length;c+=2)cl[c][0](cl[c+1]);cl.length=0}}}function r(d){n(d(t))}function l(d,a=Yt){let c=[d,a];return o.add(c),o.size===1&&(i=e(n,r)||Yt),d(t),()=>{o.delete(c),o.size===0&&i&&(i(),i=null)}}return{set:n,update:r,subscribe:l}}function _i(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return pr(i,(l,d)=>{let a=!1,c=[],f=0,g=Yt,m=()=>{if(f)return;g();let _=e(o?c[0]:c,l,d);r?l(_):g=typeof _=="function"?_:Yt},h=n.map((_,x)=>Vd(_,T=>{c[x]=T,f&=~(1<<x),a&&m()},()=>{f|=1<<x}));return a=!0,m(),function(){Ns(h),g(),a=!1}})}function Be(t){let e;return Vd(t,i=>e=i)(),e}var qc=!1,gm=Symbol();function k(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:hs(void 0),unsubscribe:Yt};if(o.store!==t&&!(gm in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=Yt;else{var n=!0;o.unsubscribe=Vd(t,l=>{n?o.source.v=l:j(o.source,l)}),n=!1}return t&&gm in i?Be(t):s(o.source)}function Je(){let t={};function e(){Bn(()=>{for(var i in t)t[i].unsubscribe();uo(t,gm,{enumerable:!1,value:!0})})}return[t,e]}function hm(t){var e=qc;try{return qc=!1,[t(),qc]}finally{qc=e}}var a1={get(t,e){if(!t.exclude.includes(e))return s(t.version),e in t.special?t.special[e]():t.props[e]},set(t,e,i){return e in t.special||(t.special[e]=p({get[e](){return t.props[e]}},e,4)),t.special[e](i),Cc(t.version),!0},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},deleteProperty(t,e){return t.exclude.includes(e)||(t.exclude.push(e),Cc(t.version)),!0},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function ze(t,e){return new Proxy({props:t,exclude:e,special:{},version:zi(0)},a1)}var l1={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Rs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];Rs(n)&&(n=n());let r=Mn(n,e);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Rs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Mn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ho||e===vd)return!1;for(let i of t.props)if(Rs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){Rs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function xs(...t){return new Proxy({props:t},l1)}function Xg(t){for(var e=At,i=At;e!==null&&!(e.f&96);)e=e.parent;try{return Ui(e),t()}finally{Ui(i)}}function p(t,e,i,o){var Q,F;var n=(i&1)!==0,r=!Xr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,c;l?[c,a]=hm(()=>t[e]):c=t[e];var f=Ho in t||vd in t,g=l&&((F=(Q=Mn(t,e))==null?void 0:Q.set)!=null?F:f&&e in t&&(Y=>t[e]=Y))||void 0,m=o,h=!0,_=!1,x=()=>(_=!0,h&&(h=!1,d?m=Pt(o):m=o),m);c===void 0&&o!==void 0&&(g&&r&&Fv(e),c=x(),g&&g(c));var T;if(r)T=()=>{var Y=t[e];return Y===void 0?x():(h=!0,_=!1,Y)};else{var V=Xg(()=>(n?b:Br)(()=>t[e]));V.f|=131072,T=()=>{var Y=s(V);return Y!==void 0&&(m=void 0),Y===void 0?m:Y}}if(!(i&4))return T;if(g){var D=t.$$legacy;return function(Y,ee){return arguments.length>0?((!r||!ee||D||a)&&g(ee?T():Y),Y):T()}}var R=!1,B=!1,I=hs(c),z=Xg(()=>b(()=>{var Y=T(),ee=s(I);return R?(R=!1,B=!0,ee):(B=!1,I.v=Y)}));return n||(z.equals=Wa),function(Y,ee){if(_d!==null&&(R=B,T(),s(I)),arguments.length>0){let ce=ee?s(z):r&&l?Me(Y):Y;return z.equals(ce)||(R=!0,j(I,ce),_&&m!==void 0&&(m=ce),Pt(()=>s(z))),Y}return s(z)}}var d1;typeof HTMLElement=="function"&&(d1=class extends HTMLElement{constructor(e,i,o){super();An(this,"$$ctor");An(this,"$$s");An(this,"$$c");An(this,"$$cn",!1);An(this,"$$d",{});An(this,"$$r",!1);An(this,"$$p_d",{});An(this,"$$l",{});An(this,"$$l_u",new Map);An(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}connectedCallback(){return Ct(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(r){return l=>{let d=document.createElement("slot");r!=="default"&&(d.name=r),C(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=c1(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=i(r),o.default=!0):o[r]=i(r));for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=_m(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=E({component:this.$$ctor,target:this.shadowRoot||this,props:zt($({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Nc(()=>{ko(()=>{var r;this.$$r=!0;for(let l of kf(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=_m(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let r in this.$$l)for(let l of this.$$l[r]){let d=this.$$c.$on(r,l);this.$$l_u.set(l,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=_m(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return kf(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function _m(t,e,i,o){var r;let n=(r=i[t])==null?void 0:r.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function c1(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var B_=require("@vkontakte/videoplayer-core/es2015"),JX=require("@vkontakte/videoplayer-core/es2015"),Es=require("@vkontakte/videoplayer-shared/es2015"),D_=require("@vkontakte/videoplayer-statistics/es2015");var $a=require("@vkontakte/videoplayer-shared/es2015");var p1={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:$a.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:$a.VideoQuality.Q_480P,highQualityLimit:$a.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},eh=t=>(0,$a.fillWithDefault)(t,p1),th=t=>Ya("ui-config",t),oi=()=>Ga("ui-config");var Rd="vk_player_debug_panel_opened";var ih="videoplayer",oh="videoplayer";var ns={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},nh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),rh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),sh=new Set(["ShiftRight","ShiftLeft"]);var ah=["TIMELINE"],Nd=[...ah,"GRAPH_BUTTON"],$m=[...ah,"PLAY_BUTTON"],Bd=[...Nd,"PLAY_BUTTON"];var Fr=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Fr||{}),ya={xs:0,s:1,m:2,l:3,xl:4};var Dd=require("@vkontakte/videoplayer-shared/es2015"),lh=require("@vkontakte/videoplayer-core/es2015"),dh=require("@vkontakte/videoplayer-statistics/es2015");var Kc="prod",xa="1.1.59-dev.5ccf8bf2.0";var wa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var ch=Symbol("storeContext"),uh=Symbol("microStoresContext"),ph=(t,e)=>{Ya(ch,t),Ya(uh,e),Kc==="dev"&&(window.app={store:t,microStores:e})},Fe=()=>{let t=Ga(ch);return(0,Dd.assertNonNullable)(t,"Store context is empty!"),t},Po=()=>{let t=Ga(uh);return(0,Dd.assertNonNullable)(t,"MicroStores context is empty!"),t},ri=(t,e)=>Gc(t,t.getValue(),e),Gc=(t,e,i)=>pr(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),fh=(t,e,i)=>{var V,D,R,B,I,z;let o=t.info,{width:n,height:r}=Be(i.ui.playerSize),l=(D=(V=o.throughputEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?D:0,d=(B=(R=o.rttEstimation$.getValue())==null?void 0:R.toFixed(0))!=null?B:0,a=o.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${xa} (core: ${lh.VERSION}, stat: ${dh.VERSION}, shared: ${Dd.VERSION})`,f=Be(i.state.errorLog$),g=f.length?`
46
46
  `+f.map((Q,F)=>{var ie;let Y=`${F}) Type: ${Q.id}
47
47
  `,ee=`Message: ${Q.message} (${Q.thrown})
48
48
  `,ce=`Trace: ${(ie=Q.thrown)==null?void 0:ie.stack}
package/es2015.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.59-dev.50aa90ae.0
3
- * Wed, 26 Mar 2025 07:52:41 GMT
2
+ * @vkontakte/videoplayer v1.1.59-dev.5ccf8bf2.0
3
+ * Mon, 31 Mar 2025 07:54:23 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-59/doc/
5
5
  */
6
6
  var M_=Object.defineProperty,L_=Object.defineProperties;var V_=Object.getOwnPropertyDescriptors;var Hm=Object.getOwnPropertySymbols;var R_=Object.prototype.hasOwnProperty,N_=Object.prototype.propertyIsEnumerable;var Fm=t=>{throw TypeError(t)};var sf=(t,e,i)=>e in t?M_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,$=(t,e)=>{for(var i in e||(e={}))R_.call(e,i)&&sf(t,i,e[i]);if(Hm)for(var i of Hm(e))N_.call(e,i)&&sf(t,i,e[i]);return t},Ft=(t,e)=>L_(t,V_(e));var En=(t,e,i)=>sf(t,typeof e!="symbol"?e+"":e,i),af=(t,e,i)=>e.has(t)||Fm("Cannot "+i);var Mi=(t,e,i)=>(af(t,e,"read from private field"),i?i.call(t):e.get(t)),Ms=(t,e,i)=>e.has(t)?Fm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),La=(t,e,i,o)=>(af(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Um=(t,e,i)=>(af(t,e,"access private method"),i);var wt=(t,e,i)=>new Promise((o,n)=>{var r=a=>{try{d(i.next(a))}catch(c){n(c)}},l=a=>{try{d(i.throw(a))}catch(c){n(c)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(r,l);d((i=i.apply(t,e)).next())});var Bo=Symbol("$state"),us=Symbol("$state metadata"),jl=Symbol("legacy props"),zm=Symbol("");var Zd=!0;var Wm,qm,lf=(qm=(Wm=globalThis.process)==null?void 0:Wm.env)==null?void 0:qm.NODE_ENV;lf||console.warn("If bundling, conditions should include development or production. If not bundling, conditions or NODE_ENV should include development or production. See https://www.npmjs.com/package/esm-env for tips on setting conditions in popular bundlers and runtimes.");var We=lf&&!lf.toLowerCase().includes("prod");var Lr=Array.isArray,Km=Array.prototype.indexOf,Zl=Array.from,df=Object.keys,so=Object.defineProperty,Pn=Object.getOwnPropertyDescriptor,Xd=Object.getOwnPropertyDescriptors,cf=Object.prototype,Qm=Array.prototype,ps=Object.getPrototypeOf;function Ls(t){return typeof t=="function"}var Qt=()=>{};function Gm(t){return t()}function Vs(t){for(var e=0;e<t.length;e++)t[e]()}var Jd=!1,jm=!1,uf=[],Ym=[];function Zm(){Jd=!1;let t=uf.slice();uf=[],Vs(t)}function B_(){jm=!1;let t=Ym.slice();Ym=[],Vs(t)}function Yo(t){Jd||(Jd=!0,queueMicrotask(Zm)),uf.push(t)}function Xm(){Jd&&Zm(),jm&&B_()}function ec(t){return t===this.v}function Va(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Jm(t,e){return t!==e}function Ra(t){return!Va(t,this.v)}function ev(){if(We){let t=new Error(`derived_references_self
@@ -42,7 +42,7 @@ ${n.map(m=>`
42
42
  ${a}in ${m}`).join("")}
43
43
  `}),so(t,"component_stack",{value:n});let c=t.stack;if(c){let m=c.split(`
44
44
  `),h=[];for(let _=0;_<m.length;_++){let x=m[_];x.includes("svelte/src/internal")||h.push(x)}so(t,"stack",{value:h.join(`
45
- `)})}if(Tv(t,e),Iv(e))throw t}function Mv(t,e,i=0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var r=o[n];r.f&2?Mv(r,e,i+1):e===r&&(i===0?Xo(r,2048):r.f&1024&&Xo(r,4096),Wa(r))}}function rc(t){var h,_;var e=Jo,i=Vn,o=Jr,n=Gt,r=hs,l=Vr,d=Rt,a=Rr,c=t.f;Jo=null,Vn=0,Jr=null,Gt=c&96?null:t,hs=(c&256)!==0&&(!gs||n===null||a),Vr=null,ed(t.ctx),Rr=!1,dc++;try{var f=(0,t.fn)(),g=t.deps;if(Jo!==null){var m;if(sd(t,Vn),g!==null&&Vn>0)for(g.length=Vn+Jo.length,m=0;m<Jo.length;m++)g[Vn+m]=Jo[m];else t.deps=g=Jo;if(!hs)for(m=Vn;m<g.length;m++)((_=(h=g[m]).reactions)!=null?_:h.reactions=[]).push(t)}else g!==null&&Vn<g.length&&(sd(t,Vn),g.length=Vn);if(Xr()&&Jr!==null&&!(t.f&6146))for(m=0;m<Jr.length;m++)Mv(Jr[m],t);return n!==null&&dc++,f}finally{Jo=e,Vn=i,Jr=o,Gt=n,hs=r,Vr=l,ed(d),Rr=a}}function Y_(t,e){let i=e.reactions;if(i!==null){var o=Km.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&e.f&2&&(Jo===null||!Jo.includes(e))&&(Xo(e,4096),e.f&768||(e.f^=512),nc(e),sd(e,0))}function sd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)Y_(t,i[o])}function za(t){var e=t.f;if(!(e&16384)){Xo(t,1024);var i=Et,o=Rt;if(Et=t,We){var n=Zo;td(t.component_function)}try{e&16?Nv(t):Ef(t),kf(t);var r=rc(t);t.teardown=typeof r=="function"?r:null,t.wv=Av;var l=t.deps;if(We&&Zr&&t.f&2048&&l!==null)for(let a=0;a<l.length;a++){var d=l[a];d.trace_need_increase&&(d.wv=od(),d.trace_need_increase=void 0,d.trace_v=void 0)}We&&rd.push(t)}catch(a){Ga(a,t,i,o||t.ctx)}finally{Et=i,We&&td(n)}}}function kv(){console.error("Last ten effects were: ",rd.slice(-10).map(t=>t.fn)),rd=[]}function Lv(){if(Ka>1e3){Ka=0;try{nv()}catch(t){if(We&&so(t,"stack",{value:""}),qa!==null)if(We)try{Ga(t,qa,null,null)}catch(e){throw kv(),e}else Ga(t,qa,null,null);else throw We&&kv(),t}}Ka++}function Vv(t){var e=t.length;if(e!==0){Lv();var i=gs;gs=!0;try{for(var o=0;o<e;o++){var n=t[o];n.f&1024||(n.f^=1024);var r=[];Rv(n,r),j_(r)}}finally{gs=i}}}function j_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if(!(o.f&24576))try{Rs(o)&&(za(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Pf(o):o.fn=null))}catch(n){Ga(n,o,null,o.ctx)}}}function Z_(){if(nd=!1,Ka>1001)return;let t=ca;ca=[],Vv(t),nd||(Ka=0,qa=null,We&&(rd=[]))}function Wa(t){ac===Pv&&(nd||(nd=!0,queueMicrotask(Z_))),qa=t;for(var e=t;e.parent!==null;){e=e.parent;var i=e.f;if(i&96){if(!(i&1024))return;e.f^=1024}}ca.push(e)}function Rv(t,e){var i=t.first,o=[];e:for(;i!==null;){var n=i.f,r=(n&32)!==0,l=r&&(n&1024)!==0,d=i.next;if(!l&&!(n&8192))if(n&8){if(r)i.f^=1024;else{var a=Gt;try{Gt=i,Rs(i)&&za(i)}catch(m){Ga(m,i,null,i.ctx)}finally{Gt=a}}var c=i.first;if(c!==null){i=c;continue}}else n&4&&o.push(i);if(d===null){let m=i.parent;for(;m!==null;){if(t===m)break e;var f=m.next;if(f!==null){i=f;continue e}m=m.parent}}i=d}for(var g=0;g<o.length;g++)c=o[g],e.push(c),Rv(c,e)}function u(t){var e=ac,i=ca;try{Lv();let n=[];ac=G_,ca=n,nd=!1,Vv(i);var o=t==null?void 0:t();return Xm(),(ca.length>0||n.length>0)&&u(),Ka=0,qa=null,We&&(rd=[]),o}finally{ac=e,ca=i}}function ho(){return wt(this,null,function*(){yield Promise.resolve(),u()})}function s(t){var e=t.f,i=(e&2)!==0;if(Jl!==null&&Jl.add(t),Gt!==null&&!Rr){Vr!==null&&Vr.includes(t)&&uv();var o=Gt.deps;t.rv<dc&&(t.rv=dc,Jo===null&&o!==null&&o[Vn]===t?Vn++:Jo===null?Jo=[t]:(!hs||!Jo.includes(t))&&Jo.push(t))}else if(i&&t.deps===null&&t.effects===null){var n=t,r=n.parent;r!==null&&!(r.f&256)&&(n.f^=256)}if(i&&(n=t,Rs(n)&&Sf(n)),We&&Zr&&Xl!==null&&Gt!==null&&Xl.reaction===Gt){if(t.debug)t.debug();else if(t.created){var l=Xl.entries.get(t);l===void 0&&(l={read:[]},Xl.entries.set(t,l)),l.read.push(ms("TracedAt"))}}return t.v}function kt(t){var e=Rr;try{return Rr=!0,t()}finally{Rr=e}}var X_=-7169;function Xo(t,e){t.f=t.f&X_|e}function pc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Bo in t)cc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Bo in i&&cc(i)}}}function cc(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{cc(t[o],e)}catch(n){}let i=ps(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Xd(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}var at=!1;function lo(t){at=t}var St;function vi(t){if(t===null)throw aa(),fs;return St=t}function Li(){return vi(To(St))}function y(t){if(at){if(To(St)!==null)throw aa(),fs;St=t}}function Le(t=1){if(at){for(var e=t,i=St;e--;)i=To(i);St=i}}function ja(){for(var t=0,e=St;;){if(e.nodeType===8){var i=e.data;if(i===oa){if(t===0)return e;t-=1}else(i===Na||i===ia)&&(t+=1)}var o=To(e);e.remove(),e=o}}function Me(t,e=null,i){var c,f;var o=null;if(We&&Zr&&(o=ms("CreatedAt")),typeof t!="object"||t===null||Bo in t)return t;let n=ps(t);if(n!==cf&&n!==Qm)return t;var r=new Map,l=Lr(t),d=Hi(0);l&&r.set("length",Hi(t.length,o));var a;if(We)if(a={parent:e,owners:null},i){let g=(f=(c=i.v)==null?void 0:c[us])==null?void 0:f.owners;a.owners=g?new Set(g):null}else a.owners=e===null?Rt!==null?new Set([Rt.function]):null:new Set;return new Proxy(t,{defineProperty(g,m,h){(!("value"in h)||h.configurable===!1||h.enumerable===!1||h.writable===!1)&&dv();var _=r.get(m);return _===void 0?(_=Hi(h.value,o),r.set(m,_)):j(_,Me(h.value,a)),!0},deleteProperty(g,m){var h=r.get(m);if(h===void 0)m in g&&r.set(m,Hi(Yi,o));else{if(l&&typeof m=="string"){var _=r.get("length"),x=Number(m);Number.isInteger(x)&&x<_.v&&j(_,x)}j(h,Yi),Bv(d)}return!0},get(g,m,h){var D;if(We&&m===us)return a;if(m===Bo)return t;var _=r.get(m),x=m in g;if(_===void 0&&(!x||(D=Pn(g,m))!=null&&D.writable)&&(_=Hi(Me(x?g[m]:Yi,a),o),r.set(m,_)),_!==void 0){var T=s(_);if(We){var V=T==null?void 0:T[us];V&&(V==null?void 0:V.parent)!==a&&hf(a,V)}return T===Yi?void 0:T}return Reflect.get(g,m,h)},getOwnPropertyDescriptor(g,m){var h=Reflect.getOwnPropertyDescriptor(g,m);if(h&&"value"in h){var _=r.get(m);_&&(h.value=s(_))}else if(h===void 0){var x=r.get(m),T=x==null?void 0:x.v;if(x!==void 0&&T!==Yi)return{enumerable:!0,configurable:!0,value:T,writable:!0}}return h},has(g,m){var T;if(We&&m===us||m===Bo)return!0;var h=r.get(m),_=h!==void 0&&h.v!==Yi||Reflect.has(g,m);if(h!==void 0||Et!==null&&(!_||(T=Pn(g,m))!=null&&T.writable)){h===void 0&&(h=Hi(_?Me(g[m],a):Yi,o),r.set(m,h));var x=s(h);if(x===Yi)return!1}return _},set(g,m,h,_){var Q;var x=r.get(m),T=m in g;if(l&&m==="length")for(var V=h;V<x.v;V+=1){var D=r.get(V+"");D!==void 0?j(D,Yi):V in g&&(D=Hi(Yi,o),r.set(V+"",D))}if(x===void 0?(!T||(Q=Pn(g,m))!=null&&Q.writable)&&(x=Hi(void 0,o),j(x,Me(h,a)),r.set(m,x)):(T=x.v!==Yi,j(x,Me(h,a))),We){var R=h==null?void 0:h[us];R&&(R==null?void 0:R.parent)!==a&&hf(a,R),yv(a)}var B=Reflect.getOwnPropertyDescriptor(g,m);if(B!=null&&B.set&&B.set.call(_,h),!T){if(l&&typeof m=="string"){var I=r.get("length"),z=Number(m);Number.isInteger(z)&&z>=I.v&&j(I,z+1)}Bv(d)}return!0},ownKeys(g){s(d);var m=Reflect.ownKeys(g).filter(x=>{var T=r.get(x);return T===void 0||T.v!==Yi});for(var[h,_]of r)_.v!==Yi&&!(h in g)&&m.push(h);return m},setPrototypeOf(){cv()}})}function Bv(t,e=1){j(t,t.v+e)}function fc(t){return t!==null&&typeof t=="object"&&Bo in t?t[Bo]:t}function Dv(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(r,l){let d=i.call(this,r,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(fc(this[a])===r){tc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(r,l){let d=o.call(this,r,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(fc(this[a])===r){tc("array.lastIndexOf(...)");break}}return d},t.includes=function(r,l){let d=n.call(this,r,l);if(!d){for(let a=0;a<this.length;a+=1)if(fc(this[a])===r){tc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var ua,Ov,Hv,Fv;function mc(){if(ua===void 0){ua=window,Ov=document;var t=Element.prototype,e=Node.prototype;Hv=Pn(e,"firstChild").get,Fv=Pn(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0,We&&(t.__svelte_meta=null,Dv())}}function en(t=""){return document.createTextNode(t)}function gi(t){return Hv.call(t)}function To(t){return Fv.call(t)}function w(t,e){if(!at)return gi(t);var i=gi(St);if(i===null)i=St.appendChild(en());else if(e&&i.nodeType!==3){var o=en();return i==null||i.before(o),vi(o),o}return vi(i),i}function ke(t,e){var n,r;if(!at){var i=gi(t);return i.nodeType===8&&i.data===""?To(i):i}if(e&&((n=St)==null?void 0:n.nodeType)!==3){var o=en();return(r=St)==null||r.before(o),vi(o),o}return St}function H(t,e=1,i=!1){let o=at?St:t;for(var n;e--;)n=o,o=To(o);if(!at)return o;var r=o==null?void 0:o.nodeType;if(i&&r!==3){var l=en();return o===null?n==null||n.after(l):o.before(l),vi(l),l}return vi(o),o}function ld(t){t.textContent=""}function Mf(t){Et===null&&Gt===null&&ov(t),Gt!==null&&Gt.f&256&&Et===null&&iv(),uc&&tv(t)}function J_(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function pa(t,e,i,o=!0){var f;var n=(t&64)!==0,r=Et;if(We)for(;r!==null&&r.f&262144;)r=r.parent;var l={ctx:Rt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n?null:r,prev:null,teardown:null,transitions:null,wv:0};if(We&&(l.component_function=Zo),i){var d=gs;try{Fa(!0),za(l),l.f|=32768}catch(g){throw ao(l),g}finally{Fa(d)}}else e!==null&&Wa(l);var a=i&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&1048704)===0;if(!a&&!n&&o&&(r!==null&&J_(l,r),Gt!==null&&Gt.f&2)){var c=Gt;((f=c.effects)!=null?f:c.effects=[]).push(l)}return l}function Rn(t){let e=pa(8,null,!1);return Xo(e,1024),e.teardown=t,e}function st(t){var n;Mf("$effect");var e=Et!==null&&(Et.f&32)!==0&&Rt!==null&&!Rt.m;if(We&&so(t,"name",{value:"$effect"}),e){var i=Rt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:Et,reaction:Gt})}else{var o=cn(t);return o}}function Ba(t){return Mf("$effect.pre"),We&&so(t,"name",{value:"$effect.pre"}),So(t)}function vc(t){let e=pa(64,t,!0);return()=>{ao(e)}}function zv(t){let e=pa(64,t,!0);return(i={})=>new Promise(o=>{i.outro?fn(e,()=>{ao(e),o(void 0)}):(ao(e),o(void 0))})}function cn(t){return pa(4,t,!1)}function So(t){return pa(8,t,!0)}function N(t,e=[],i=b){let o=e.map(i),n=()=>t(...o.map(s));return We&&so(n,"name",{value:"{expression}"}),co(n)}function co(t,e=0){return pa(24|e,t,!0)}function ji(t,e=!0){return pa(40,t,!0,e)}function kf(t){var e=t.teardown;if(e!==null){let i=uc,o=Gt;If(!0),go(null);try{e.call(null)}finally{If(i),go(o)}}}function Ef(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;ao(i,e),i=o}}function Nv(t){for(var e=t.first;e!==null;){var i=e.next;e.f&32||ao(e),e=i}}function ao(t,e=!0){var i=!1;if((e||t.f&524288)&&t.nodes_start!==null){for(var o=t.nodes_start,n=t.nodes_end;o!==null;){var r=o===n?null:To(o);o.remove(),o=r}i=!0}Ef(t,e&&!i),sd(t,0),Xo(t,16384);var l=t.transitions;if(l!==null)for(let a of l)a.stop();kf(t);var d=t.parent;d!==null&&d.first!==null&&Pf(t),We&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Pf(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function fn(t,e){var i=[];gc(t,i,!0),Lf(i,()=>{ao(t),e&&e()})}function Lf(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function gc(t,e,i){if(!(t.f&8192)){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,r=(o.f&65536)!==0||(o.f&32)!==0;gc(o,e,r?i:!1),o=n}}}function _s(t){Wv(t,!0)}function Wv(t,e){if(t.f&8192){t.f^=8192,t.f&1024||(t.f^=1024),Rs(t)&&(Xo(t,2048),Wa(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Wv(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}function Vf(t,e){if(e){let i=document.body;t.autofocus=!0,Yo(()=>{document.activeElement===i&&t.focus()})}}function Rf(t){var e=Gt,i=Et;go(null),Oi(null);try{return t()}finally{go(e),Oi(i)}}var Nf=new Set,hc=new Set;function fa(t){if(!at)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Bf(t,e,i,o={}){function n(r){if(o.capture||Za.call(e,r),!r.cancelBubble)return Rf(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Yo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Wt(t,e,i,o,n){var r={capture:o,passive:n},l=Bf(t,e,i,r);(e===document.body||e===window||e===document)&&Rn(()=>{e.removeEventListener(t,l,r)})}function yt(t){for(var e=0;e<t.length;e++)Nf.add(t[e]);for(var i of hc)i(t)}function Za(t){var D;var e=this,i=e.ownerDocument,o=t.type,n=((D=t.composedPath)==null?void 0:D.call(t))||[],r=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var c=n.indexOf(e);if(c===-1)return;a<=c&&(l=a)}if(r=n[l]||t.target,r!==e){so(t,"currentTarget",{configurable:!0,get(){return r||i}});var f=Gt,g=Et;go(null),Oi(null);try{for(var m,h=[];r!==null;){var _=r.assignedSlot||r.parentNode||r.host||null;try{var x=r["__"+o];if(x!==void 0&&!r.disabled)if(Lr(x)){var[T,...V]=x;T.apply(r,[t,...V])}else x.call(r,t)}catch(R){m?h.push(R):m=R}if(t.cancelBubble||_===e||_===null)break;r=_}if(m){for(let R of h)queueMicrotask(()=>{throw R});throw m}}finally{t.__root=e,delete t.currentTarget,go(f),Oi(g)}}}var t$;function qv(){t$=void 0}function Xa(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function _o(t,e){var i=Et;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function U(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,r=!t.startsWith("<!>");return()=>{if(at)return _o(St,null),St;n===void 0&&(n=Xa(r?t:"<!>"+t),i||(n=gi(n)));var l=o?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=gi(l),a=l.lastChild;_o(d,a)}else _o(l,l);return l}}function Ve(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(at)return _o(St,null),St;if(!l){var d=Xa(r),a=gi(d);if(n)for(l=document.createDocumentFragment();gi(a);)l.appendChild(gi(a));else l=gi(a)}var c=l.cloneNode(!0);if(n){var f=gi(c),g=c.lastChild;_o(f,g)}else _o(c,c);return c}}function lr(t=""){if(!at){var e=en(t+"");return _o(e,e),e}var i=St;return i.nodeType!==3&&(i.before(i=en()),vi(i)),_o(i,i),i}function Xe(){if(at)return _o(St,null),St;var t=document.createDocumentFragment(),e=document.createComment(""),i=en();return t.append(e,i),_o(e,i),t}function C(t,e){if(at){Et.nodes_end=St,Li();return}t!==null&&t.before(e)}var o$=/\r/g;function Qv(t){t=t.replace(o$,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Gv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var n$=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Yv(t){return n$.includes(t)}var r$=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var s$={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function jv(t){var e;return t=t.toLowerCase(),(e=s$[t])!=null?e:t}var x7=[...r$,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var a$=["touchstart","touchmove"];function Zv(t){return a$.includes(t)}var l$=["textarea","script","style","title"];function Xv(t){return l$.includes(t)}function Df(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var dd=!0;function _c(t){dd=t}function Ee(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function $c(t,e){return Jv(t,e)}function Hf(t,e){var l;mc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=at,n=St;try{for(var r=gi(i);r&&(r.nodeType!==8||r.data!==Na);)r=To(r);if(!r)throw fs;lo(!0),vi(r),Li();let d=Jv(t,Ft($({},e),{anchor:r}));if(St===null||St.nodeType!==8||St.data!==oa)throw aa(),fs;return lo(!1),d}catch(d){if(d===fs)return e.recover===!1&&rv(),mc(),ld(i),lo(!1),$c(t,e);throw d}finally{lo(o),vi(n),qv()}}var Ja=new Map;function Jv(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){mc();var d=new Set,a=g=>{for(var m=0;m<g.length;m++){var h=g[m];if(!d.has(h)){d.add(h);var _=Zv(h);e.addEventListener(h,Za,{passive:_});var x=Ja.get(h);x===void 0?(document.addEventListener(h,Za,{passive:_}),Ja.set(h,1)):Ja.set(h,x+1)}}};a(Zl(Nf)),hc.add(a);var c=void 0,f=zv(()=>{var g=i!=null?i:e.appendChild(en());return ji(()=>{if(r){P({});var m=Rt;m.c=r}n&&(o.$$events=n),at&&_o(g,null),dd=l,c=t(g,o)||{},dd=!0,at&&(Et.nodes_end=St),r&&A()}),()=>{var _;for(var m of d){e.removeEventListener(m,Za);var h=Ja.get(m);--h===0?(document.removeEventListener(m,Za),Ja.delete(m)):Ja.set(m,h)}hc.delete(a),g!==i&&((_=g.parentNode)==null||_.removeChild(g))}});return Of.set(c,f),c}var Of=new WeakMap;function Ff(t,e){let i=Of.get(t);return i?(Of.delete(t),i(e)):(We&&_v(),Promise.resolve())}var zf;function E(t){return zf=t.target,new Uf(t)}var $s,dr,Uf=class{constructor(e){Ms(this,$s);Ms(this,dr);var r,l;var i=new Map,o=(d,a)=>{var c=vs(a);return i.set(d,c),c};let n=new Proxy(Ft($({},e.props||{}),{$$events:{}}),{get(d,a){var c;return s((c=i.get(a))!=null?c:o(a,Reflect.get(d,a)))},has(d,a){var c;return a===jl?!0:(s((c=i.get(a))!=null?c:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,c){var f;return j((f=i.get(a))!=null?f:o(a,c),c),Reflect.set(d,a,c)}});La(this,dr,(e.hydrate?Hf:$c)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(r=e.intro)!=null?r:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&u(),La(this,$s,n.$$events);for(let d of Object.keys(Mi(this,dr)))d==="$set"||d==="$destroy"||d==="$on"||so(this,d,{get(){return Mi(this,dr)[d]},set(a){Mi(this,dr)[d]=a},enumerable:!0});Mi(this,dr).$set=d=>{Object.assign(n,d)},Mi(this,dr).$destroy=()=>{Ff(Mi(this,dr))}}$set(e){Mi(this,dr).$set(e)}$on(e,i){Mi(this,$s)[e]=Mi(this,$s)[e]||[];let o=(...n)=>i.call(this,...n);return Mi(this,$s)[e].push(o),()=>{Mi(this,$s)[e]=Mi(this,$s)[e].filter(n=>n!==o)}}$destroy(){Mi(this,dr).$destroy()}};$s=new WeakMap,dr=new WeakMap;var eg="5";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(eg);var tg=new Map;function ig(t,e){var i=tg.get(t);i||(i=new Set,tg.set(t,i)),i.add(e)}function q(t,e,i=!1){at&&Li();var o=t,n=null,r=null,l=Yi,d=i?65536:0,a=!1;let c=(g,m=!0)=>{a=!0,f(m,g)},f=(g,m)=>{if(l===(l=g))return;let h=!1;if(at){let _=o.data===ia;!!l===_&&(o=ja(),vi(o),lo(!1),h=!0)}l?(n?_s(n):m&&(n=ji(()=>m(o))),r&&fn(r,()=>{r=null})):(r?_s(r):m&&(r=ji(()=>m(o))),n&&fn(n,()=>{n=null})),h&&lo(!0)};co(()=>{a=!1,e(c),a||f(null,null)},d),at&&(o=St)}function cd(t,e,i){at&&Li();var o=t,n=Yi,r,l=Xr()?Jm:Va;co(()=>{l(n,n=e())&&(r&&fn(r),r=ji(()=>i(o)))}),at&&(o=St)}var Bs=null;function Kf(t){Bs=t}function to(t,e){return e}function h$(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)gc(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;ld(a),a.append(i),o.clear(),Ns(t,e[0].prev,e[r-1].next)}Lf(n,()=>{for(var c=0;c<r;c++){var f=e[c];d||(o.delete(f.k),Ns(t,f.prev,f.next)),ao(f.e,!d)}})}function Ii(t,e,i,o,n,r=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var c=t;l=at?vi(gi(c)):c.appendChild(en())}at&&Li();var f=null,g=!1,m=Nr(()=>{var h=i();return Lr(h)?h:h==null?[]:Zl(h)});co(()=>{var h=s(m),_=h.length;if(g&&_===0)return;g=_===0;let x=!1;if(at){var T=l.data===ia;T!==(_===0)&&(l=ja(),vi(l),lo(!1),x=!0)}if(at){for(var V=null,D,R=0;R<_;R++){if(St.nodeType===8&&St.data===oa){l=St,x=!0,lo(!1);break}var B=h[R],I=o(B,R);D=rg(St,d,V,null,B,I,R,n,e,i),d.items.set(I,D),V=D}_>0&&vi(ja())}at||_$(h,d,l,n,e,o,i),r!==null&&(_===0?f?_s(f):f=ji(()=>r(l)):f!==null&&fn(f,()=>{f=null})),x&&lo(!0),s(m)}),at&&(l=St)}function _$(t,e,i,o,n,r,l){var Se,G,fe,_e;var d=(n&8)!==0,a=(n&3)!==0,c=t.length,f=e.items,g=e.first,m=g,h,_=null,x,T=[],V=[],D,R,B,I;if(d)for(I=0;I<c;I+=1)D=t[I],R=r(D,I),B=f.get(R),B!==void 0&&((Se=B.a)==null||Se.measure(),(x!=null?x:x=new Set).add(B));for(I=0;I<c;I+=1){if(D=t[I],R=r(D,I),B=f.get(R),B===void 0){var z=m?m.e.nodes_start:i;_=rg(z,e,_,_===null?e.first:_.next,D,R,I,o,n,l),f.set(R,_),T=[],V=[],m=_.next;continue}if(a&&$$(B,D,I,n),B.e.f&8192&&(_s(B.e),d&&((G=B.a)==null||G.unfix(),(x!=null?x:x=new Set).delete(B))),B!==m){if(h!==void 0&&h.has(B)){if(T.length<V.length){var Q=V[0],F;_=Q.prev;var Y=T[0],ee=T[T.length-1];for(F=0;F<T.length;F+=1)og(T[F],Q,i);for(F=0;F<V.length;F+=1)h.delete(V[F]);Ns(e,Y.prev,ee.next),Ns(e,_,Y),Ns(e,ee,Q),m=Q,_=ee,I-=1,T=[],V=[]}else h.delete(B),og(B,m,i),Ns(e,B.prev,B.next),Ns(e,B,_===null?e.first:_.next),Ns(e,_,B),_=B;continue}for(T=[],V=[];m!==null&&m.k!==R;)m.e.f&8192||(h!=null?h:h=new Set).add(m),V.push(m),m=m.next;if(m===null)continue;B=m}T.push(B),_=B,m=B.next}if(m!==null||h!==void 0){for(var ce=h===void 0?[]:Zl(h);m!==null;)m.e.f&8192||ce.push(m),m=m.next;var ie=ce.length;if(ie>0){var we=n&4&&c===0?i:null;if(d){for(I=0;I<ie;I+=1)(fe=ce[I].a)==null||fe.measure();for(I=0;I<ie;I+=1)(_e=ce[I].a)==null||_e.fix()}h$(e,ce,we,f)}}d&&Yo(()=>{var Z;if(x!==void 0)for(B of x)(Z=B.a)==null||Z.apply()}),Et.first=e.first&&e.first.e,Et.last=_&&_.e}function $$(t,e,i,o){o&1&&Ua(t.v,e),o&2?Ua(t.i,i):t.i=i}function rg(t,e,i,o,n,r,l,d,a,c){var f=Bs,g=(a&1)!==0,m=(a&16)===0,h=g?m?vs(n):Hi(n):n,_=a&2?Hi(l):l;We&&g&&(h.debug=()=>{var T=typeof _=="number"?l:_.v;c()[T]});var x={i:_,v:h,k:r,a:null,e:null,prev:i,next:o};Bs=x;try{return x.e=ji(()=>d(t,h,_,c),at),x.e.prev=i&&i.e,x.e.next=o&&o.e,i===null?e.first=x:(i.next=x,i.e.next=x.e),o!==null&&(o.prev=x,o.e.prev=x.e),x}finally{Bs=f}}function og(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==o;){var l=To(r);n.before(r),r=l}}function Ns(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function b$(t,e,i){var r,l;if(!e||e===Qv(String(i!=null?i:"")))return;let o,n=(r=t.__svelte_meta)==null?void 0:r.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=Zo)!=null&&l[Ci]&&(o=`in ${Zo[Ci]}`),hv(Df(o))}function ud(t,e,i,o,n){var r=t,l="",d;co(()=>{var a;if(l===(l=(a=e())!=null?a:"")){at&&Li();return}d!==void 0&&(ao(d),d=void 0),l!==""&&(d=ji(()=>{if(at){for(var c=St.data,f=Li(),g=f;f!==null&&(f.nodeType!==8||f.data!=="");)g=f,f=To(f);if(f===null)throw aa(),fs;We&&!n&&b$(f.parentNode,c,l),_o(St,g),r=vi(f);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var h=Xa(m);if((i||o)&&(h=gi(h)),_o(gi(h),h.lastChild),i||o)for(;gi(h);)r.before(gi(h));else r.before(h)}))})}function Ue(t,e,i,o,n){var d;at&&Li();var r=(d=e.$$slots)==null?void 0:d[i],l=!1;r===!0&&(r=e[i==="default"?"children":i],l=!0),r===void 0?n!==null&&n(t):r(t,l?()=>o:o)}function $o(t,e,...i){var o=t,n=Qt,r;co(()=>{n!==(n=e())&&(r&&(ao(r),r=null),We&&n==null&&sv(),r=ji(()=>n(o,...i)))},65536),at&&(o=St)}function Fi(t,e,i){at&&Li();var o=t,n,r;co(()=>{n!==(n=e())&&(r&&(fn(r),r=null),n&&(r=ji(()=>i(o,n))))},65536),at&&(o=St)}function pd(t,e,i,o,n,r){var _;let l=at;at&&Li();var d=We&&r&&((_=Rt)==null?void 0:_.function[Ci]),a,c,f=null;at&&St.nodeType===1&&(f=St,Li());var g=at?St:t,m,h=Bs;co(()=>{let x=e()||null;var T=n?n():i||x==="svg"?na:null;if(x!==a){var V=Bs;Kf(h),m&&(x===null?fn(m,()=>{m=null,c=null}):x===c?_s(m):(ao(m),_c(!1))),x&&x!==c&&(m=ji(()=>{if(f=at?f:T?document.createElementNS(T,x):document.createElement(x),We&&r&&(f.__svelte_meta={loc:{file:d,line:r[0],column:r[1]}}),_o(f,f),o){at&&Xv(x)&&f.append(document.createComment(""));var D=at?gi(f):f.appendChild(en());at&&(D===null?lo(!1):vi(D)),o(f,D)}Et.nodes_end=f,g.before(f)})),a=x,a&&(c=a),_c(!0),Kf(V)}},65536),l&&(lo(!0),vi(g))}function re(t,e){Yo(()=>{var n,r,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(r=zf)==null?void 0:r.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),We&&ig(e.hash,d)}})}function sg(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=sg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function ag(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=sg(t))&&(o&&(o+=" "),o+=e);return o}function fd(t){return typeof t=="object"?ag(t):t!=null?t:""}function cg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function me(t,e,i,o){var r;var n=(r=t.__attributes)!=null?r:t.__attributes={};if(at&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||y$(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[zm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&ug(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function He(t,e,i,o,n=!1,r=!1,l=!1){var R;let d=at&&r;d&&lo(!1);var a=e||{},c=t.tagName==="OPTION";for(var f in e)f in i||(i[f]=null);i.class&&(i.class=fd(i.class)),o!==void 0&&(i.class=i.class?i.class+" "+o:o);var g=ug(t),m=(R=t.__attributes)!=null?R:t.__attributes={};for(let B in i){let I=i[B];if(c&&B==="value"&&I==null){t.value=t.__value="",a[B]=I;continue}var h=a[B];if(I!==h){a[B]=I;var _=B[0]+B[1];if(_!=="$$"){if(_==="on"){let z={},Q="$$"+B,F=B.slice(2);var x=Yv(F);if(Gv(F)&&(F=F.slice(0,-7),z.capture=!0),!x&&h){if(I!=null)continue;t.removeEventListener(F,a[Q],z),a[Q]=null}if(I!=null)if(x)t[`__${F}`]=I,yt([F]);else{let Y=function(ee){a[B].call(this,ee)};var D=Y;a[Q]=Bf(F,t,Y,z)}else x&&(t[`__${F}`]=void 0)}else if(B==="style"&&I!=null)t.style.cssText=I+"";else if(B==="autofocus")Vf(t,!!I);else if(!r&&(B==="__value"||B==="value"&&I!=null))t.value=t.__value=I;else if(B==="selected"&&c)cg(t,I);else{var T=B;n||(T=jv(T));var V=T==="defaultValue"||T==="defaultChecked";if(I==null&&!r&&!V)if(m[B]=null,T==="value"||T==="checked"){let z=t;if(T==="value"){let Q=z.defaultValue;z.removeAttribute(T),z.defaultValue=Q}else{let Q=z.defaultChecked;z.removeAttribute(T),z.defaultChecked=Q}}else t.removeAttribute(B);else V||g.includes(T)&&(r||typeof I!="string")?t[T]=I:typeof I!="function"&&me(t,T,I)}B==="style"&&"__styles"in t&&(t.__styles={})}}}return d&&lo(!0),a}var lg=new Map;function ug(t){var e=lg.get(t.nodeName);if(e)return e;lg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Xd(o);for(var r in i)i[r].set&&e.push(r);o=ps(o)}return e}function y$(t,e,i){var o;We&&(e==="srcset"&&x$(t,i)||Qf((o=t.getAttribute(e))!=null?o:"",i)||gv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Qf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function dg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function x$(t,e){var i=dg(t.srcset),o=dg(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(Qf(i[l][0],n)||Qf(n,i[l][0])))}function tn(t,e,i){var o=t.__className,n=w$(e,i);at&&t.className===n?t.__className=n:(o!==n||at&&t.className!==n)&&(e==null&&!i?t.removeAttribute("class"):t.className=n,t.__className=n)}function w$(t,e){return(t==null?"":t)+(e?" "+e:"")}function se(t,e,i){if(i){if(t.classList.contains(e))return;t.classList.add(e)}else{if(!t.classList.contains(e))return;t.classList.remove(e)}}var C$=Zd?()=>performance.now():()=>Date.now(),Dr={tick:t=>(Zd?requestAnimationFrame:Qt)(t),now:()=>C$(),tasks:new Set};function pg(){let t=Dr.now();Dr.tasks.forEach(e=>{e.c(t)||(Dr.tasks.delete(e),e.f())}),Dr.tasks.size!==0&&Dr.tick(pg)}function fg(t){let e;return Dr.tasks.size===0&&Dr.tick(pg),{promise:new Promise(i=>{Dr.tasks.add(e={c:t,f:i})}),abort(){Dr.tasks.delete(e)}}}function bc(t,e){t.dispatchEvent(new CustomEvent(e))}function k$(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function mg(t){let e={},i=t.split(";");for(let o of i){let[n,r]=o.split(":");if(!n||r===void 0)break;let l=k$(n.trim());e[l]=r.trim()}return e}var E$=t=>t;function Yf(t,e,i,o){var R;var n=(t&1)!==0,r=(t&2)!==0,l=n&&r,d=(t&4)!==0,a=l?"both":n?"in":"out",c,f=e.inert,g=e.style.overflow,m,h;function _(){var z;var B=Gt,I=Et;go(null),Oi(null);try{return c!=null?c:c=i()(e,(z=o==null?void 0:o())!=null?z:{},{direction:a})}finally{go(B),Oi(I)}}var x={is_global:d,in(){var B;if(e.inert=f,!n){h==null||h.abort(),(B=h==null?void 0:h.reset)==null||B.call(h);return}r||m==null||m.abort(),bc(e,"introstart"),m=Gf(e,_(),h,1,()=>{bc(e,"introend"),m==null||m.abort(),m=c=void 0,e.style.overflow=g})},out(B){if(!r){B==null||B(),c=void 0;return}e.inert=!0,bc(e,"outrostart"),h=Gf(e,_(),m,0,()=>{bc(e,"outroend"),B==null||B()})},stop:()=>{m==null||m.abort(),h==null||h.abort()}},T=Et;if(((R=T.transitions)!=null?R:T.transitions=[]).push(x),n&&dd){var V=d;if(!V){for(var D=T.parent;D&&D.f&65536;)for(;(D=D.parent)&&!(D.f&16););V=!D||(D.f&32768)!==0}V&&cn(()=>{kt(()=>x.in())})}}function Gf(t,e,i,o,n){var r=o===1;if(Ls(e)){var l,d=!1;return Yo(()=>{if(!d){var T=e({direction:r?"in":"out"});l=Gf(t,T,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:Qt,deactivate:Qt,reset:Qt,t:()=>o};let{delay:a=0,css:c,tick:f,easing:g=E$}=e;var m=[];if(r&&i===void 0&&(f&&f(0,1),c)){var h=mg(c(0,1));m.push(h,h)}var _=()=>1-o,x=t.animate(m,{duration:a});return x.onfinish=()=>{var Y;var T=(Y=i==null?void 0:i.t())!=null?Y:1-o;i==null||i.abort();var V=o-T,D=e.duration*Math.abs(V),R=[];if(D>0){var B=!1;if(c)for(var I=Math.ceil(D/16.666666666666668),z=0;z<=I;z+=1){var Q=T+V*g(z/I),F=mg(c(Q,1-Q));R.push(F),B||(B=F.overflow==="hidden")}B&&(t.style.overflow="hidden"),_=()=>{var ee=x.currentTime;return T+V*g(ee/D)},f&&fg(()=>{if(x.playState!=="running")return!1;var ee=_();return f(ee,1-ee),!0})}x=t.animate(R,{duration:D,fill:"forwards"}),x.onfinish=()=>{_=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=Qt)},deactivate:()=>{n=Qt},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>_()}}var Ds,el,md,xc,vg,wc=class wc{constructor(e){Ms(this,xc);Ms(this,Ds,new WeakMap);Ms(this,el);Ms(this,md);La(this,md,e)}observe(e,i){var o=Mi(this,Ds).get(e)||new Set;return o.add(i),Mi(this,Ds).set(e,o),Um(this,xc,vg).call(this).observe(e,Mi(this,md)),()=>{var n=Mi(this,Ds).get(e);n.delete(i),n.size===0&&(Mi(this,Ds).delete(e),Mi(this,el).unobserve(e))}}};Ds=new WeakMap,el=new WeakMap,md=new WeakMap,xc=new WeakSet,vg=function(){var e;return(e=Mi(this,el))!=null?e:La(this,el,new ResizeObserver(i=>{for(var o of i){wc.entries.set(o.target,o);for(var n of Mi(this,Ds).get(o.target)||[])n(o)}}))},En(wc,"entries",new WeakMap);var jf=wc;var M$=new jf({box:"border-box"});function ts(t,e,i){var o=M$.observe(t,()=>i(t[e]));cn(()=>(kt(()=>i(t[e])),o))}function gg(t,e){return t===e||(t==null?void 0:t[Bo])===e}function Ct(t={},e,i,o){return cn(()=>{var n,r;return So(()=>{n=r,r=(o==null?void 0:o())||[],kt(()=>{t!==i(...r)&&(e(t,...r),n&&gg(i(...n),t)&&e(null,...n))})}),()=>{Yo(()=>{r&&gg(i(...r),t)&&e(null,...r)})}}),t}function Or(t=!1){let e=Rt,i=e.l.u;if(!i)return;let o=()=>pc(e.s);if(t){let n=0,r={},l=b(()=>{let d=!1,a=e.s;for(let c in a)a[c]!==r[c]&&(r[c]=a[c],d=!0);return d&&n++,n});o=()=>s(l)}i.b.length&&Ba(()=>{hg(e,o),Vs(i.b)}),st(()=>{let n=kt(()=>i.m.map(Gm));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&st(()=>{hg(e,o),Vs(i.a)})}function hg(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}function M(t,e,i){var o;t.$$events||(t.$$events={}),(o=t.$$events)[e]||(o[e]=[]),t.$$events[e].push(i)}function L(t){for(var e in t)e in this&&(this[e]=t[e])}if(We){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;lv(e)},set:o=>{i=o}})}};V$=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var V$;function Yt(t){Rt===null&&Da("onMount"),jr&&Rt.l!==null?L$(Rt).m.push(t):st(()=>{let e=kt(t);if(typeof e=="function")return e})}function cr(t){Rt===null&&Da("onDestroy"),Yt(()=>()=>kt(t))}function L$(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function vd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),Qt;let o=kt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var tl=[];function ur(t,e){return{subscribe:Te(t,e).subscribe}}function Te(t,e=Qt){let i=null,o=new Set;function n(d){if(Va(t,d)&&(t=d,i)){let a=!tl.length;for(let c of o)c[1](),tl.push(c,t);if(a){for(let c=0;c<tl.length;c+=2)tl[c][0](tl[c+1]);tl.length=0}}}function r(d){n(d(t))}function l(d,a=Qt){let c=[d,a];return o.add(c),o.size===1&&(i=e(n,r)||Qt),d(t),()=>{o.delete(c),o.size===0&&i&&(i(),i=null)}}return{set:n,update:r,subscribe:l}}function hi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return ur(i,(l,d)=>{let a=!1,c=[],f=0,g=Qt,m=()=>{if(f)return;g();let _=e(o?c[0]:c,l,d);r?l(_):g=typeof _=="function"?_:Qt},h=n.map((_,x)=>vd(_,T=>{c[x]=T,f&=~(1<<x),a&&m()},()=>{f|=1<<x}));return a=!0,m(),function(){Vs(h),g(),a=!1}})}function Be(t){let e;return vd(t,i=>e=i)(),e}var Cc=!1,Zf=Symbol();function k(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:vs(void 0),unsubscribe:Qt};if(o.store!==t&&!(Zf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=Qt;else{var n=!0;o.unsubscribe=vd(t,l=>{n?o.source.v=l:j(o.source,l)}),n=!1}return t&&Zf in i?Be(t):s(o.source)}function Je(){let t={};function e(){Rn(()=>{for(var i in t)t[i].unsubscribe();so(t,Zf,{enumerable:!1,value:!0})})}return[t,e]}function Xf(t){var e=Cc;try{return Cc=!1,[t(),Cc]}finally{Cc=e}}var O$={get(t,e){if(!t.exclude.includes(e))return s(t.version),e in t.special?t.special[e]():t.props[e]},set(t,e,i){return e in t.special||(t.special[e]=p({get[e](){return t.props[e]}},e,4)),t.special[e](i),oc(t.version),!0},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},deleteProperty(t,e){return t.exclude.includes(e)||(t.exclude.push(e),oc(t.version)),!0},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function ze(t,e){return new Proxy({props:t,exclude:e,special:{},version:Hi(0)},O$)}var H$={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ls(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];Ls(n)&&(n=n());let r=Pn(n,e);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ls(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Pn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Bo||e===jl)return!1;for(let i of t.props)if(Ls(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){Ls(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function bs(...t){return new Proxy({props:t},H$)}function _g(t){for(var e=Et,i=Et;e!==null&&!(e.f&96);)e=e.parent;try{return Oi(e),t()}finally{Oi(i)}}function p(t,e,i,o){var Q,F;var n=(i&1)!==0,r=!jr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,c;l?[c,a]=Xf(()=>t[e]):c=t[e];var f=Bo in t||jl in t,g=l&&((F=(Q=Pn(t,e))==null?void 0:Q.set)!=null?F:f&&e in t&&(Y=>t[e]=Y))||void 0,m=o,h=!0,_=!1,x=()=>(_=!0,h&&(h=!1,d?m=kt(o):m=o),m);c===void 0&&o!==void 0&&(g&&r&&av(e),c=x(),g&&g(c));var T;if(r)T=()=>{var Y=t[e];return Y===void 0?x():(h=!0,_=!1,Y)};else{var V=_g(()=>(n?b:Nr)(()=>t[e]));V.f|=131072,T=()=>{var Y=s(V);return Y!==void 0&&(m=void 0),Y===void 0?m:Y}}if(!(i&4))return T;if(g){var D=t.$$legacy;return function(Y,ee){return arguments.length>0?((!r||!ee||D||a)&&g(ee?T():Y),Y):T()}}var R=!1,B=!1,I=vs(c),z=_g(()=>b(()=>{var Y=T(),ee=s(I);return R?(R=!1,B=!0,ee):(B=!1,I.v=Y)}));return n||(z.equals=Ra),function(Y,ee){if(Jl!==null&&(R=B,T(),s(I)),arguments.length>0){let ce=ee?s(z):r&&l?Me(Y):Y;return z.equals(ce)||(R=!0,j(I,ce),_&&m!==void 0&&(m=ce),kt(()=>s(z))),Y}return s(z)}}var F$;typeof HTMLElement=="function"&&(F$=class extends HTMLElement{constructor(e,i,o){super();En(this,"$$ctor");En(this,"$$s");En(this,"$$c");En(this,"$$cn",!1);En(this,"$$d",{});En(this,"$$r",!1);En(this,"$$p_d",{});En(this,"$$l",{});En(this,"$$l_u",new Map);En(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}connectedCallback(){return wt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(r){return l=>{let d=document.createElement("slot");r!=="default"&&(d.name=r),C(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=U$(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=i(r),o.default=!0):o[r]=i(r));for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=Jf(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=E({component:this.$$ctor,target:this.shadowRoot||this,props:Ft($({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=vc(()=>{So(()=>{var r;this.$$r=!0;for(let l of df(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=Jf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let r in this.$$l)for(let l of this.$$l[r]){let d=this.$$c.$on(r,l);this.$$l_u.set(l,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Jf(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return df(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Jf(t,e,i,o){var r;let n=(r=i[t])==null?void 0:r.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function U$(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}import{clientChecker as i3}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-core/es2015";import{noop as qp,safeStorage as o3,throttleFn as n3}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as r3}from"@vkontakte/videoplayer-statistics/es2015";import{InterfaceLanguage as W$,fillWithDefault as q$,VideoQuality as bg}from"@vkontakte/videoplayer-shared/es2015";var K$={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:W$.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:bg.Q_480P,highQualityLimit:bg.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},yg=t=>q$(t,K$),xg=t=>Ha("ui-config",t),ti=()=>Oa("ui-config");var gd="vk_player_debug_panel_opened";var wg="videoplayer",Cg="videoplayer";var is={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Sg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Tg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Ig=new Set(["ShiftRight","ShiftLeft"]);var kg=["TIMELINE"],hd=[...kg,"GRAPH_BUTTON"],em=[...kg,"PLAY_BUTTON"],_d=[...hd,"PLAY_BUTTON"];var os=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(os||{}),va={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Eg,VERSION as Q$}from"@vkontakte/videoplayer-shared/es2015";import{VERSION as G$}from"@vkontakte/videoplayer-core/es2015";import{VERSION as Y$}from"@vkontakte/videoplayer-statistics/es2015";var Sc="prod",il="1.1.59-dev.50aa90ae.0";var ga=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Pg=Symbol("storeContext"),Ag=Symbol("microStoresContext"),Mg=(t,e)=>{Ha(Pg,t),Ha(Ag,e),Sc==="dev"&&(window.app={store:t,microStores:e})},Fe=()=>{let t=Oa(Pg);return Eg(t,"Store context is empty!"),t},Io=()=>{let t=Oa(Ag);return Eg(t,"MicroStores context is empty!"),t},ri=(t,e)=>Ic(t,t.getValue(),e),Ic=(t,e,i)=>ur(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),Lg=(t,e,i)=>{var V,D,R,B,I,z;let o=t.info,{width:n,height:r}=Be(i.ui.playerSize),l=(D=(V=o.throughputEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?D:0,d=(B=(R=o.rttEstimation$.getValue())==null?void 0:R.toFixed(0))!=null?B:0,a=o.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${il} (core: ${G$}, stat: ${Y$}, shared: ${Q$})`,f=Be(i.state.errorLog$),g=f.length?`
45
+ `)})}if(Tv(t,e),Iv(e))throw t}function Mv(t,e,i=0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var r=o[n];r.f&2?Mv(r,e,i+1):e===r&&(i===0?Xo(r,2048):r.f&1024&&Xo(r,4096),Wa(r))}}function rc(t){var h,_;var e=Jo,i=Vn,o=Jr,n=Gt,r=hs,l=Vr,d=Rt,a=Rr,c=t.f;Jo=null,Vn=0,Jr=null,Gt=c&96?null:t,hs=(c&256)!==0&&(!gs||n===null||a),Vr=null,ed(t.ctx),Rr=!1,dc++;try{var f=(0,t.fn)(),g=t.deps;if(Jo!==null){var m;if(sd(t,Vn),g!==null&&Vn>0)for(g.length=Vn+Jo.length,m=0;m<Jo.length;m++)g[Vn+m]=Jo[m];else t.deps=g=Jo;if(!hs)for(m=Vn;m<g.length;m++)((_=(h=g[m]).reactions)!=null?_:h.reactions=[]).push(t)}else g!==null&&Vn<g.length&&(sd(t,Vn),g.length=Vn);if(Xr()&&Jr!==null&&!(t.f&6146))for(m=0;m<Jr.length;m++)Mv(Jr[m],t);return n!==null&&dc++,f}finally{Jo=e,Vn=i,Jr=o,Gt=n,hs=r,Vr=l,ed(d),Rr=a}}function Y_(t,e){let i=e.reactions;if(i!==null){var o=Km.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&e.f&2&&(Jo===null||!Jo.includes(e))&&(Xo(e,4096),e.f&768||(e.f^=512),nc(e),sd(e,0))}function sd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)Y_(t,i[o])}function za(t){var e=t.f;if(!(e&16384)){Xo(t,1024);var i=Et,o=Rt;if(Et=t,We){var n=Zo;td(t.component_function)}try{e&16?Nv(t):Ef(t),kf(t);var r=rc(t);t.teardown=typeof r=="function"?r:null,t.wv=Av;var l=t.deps;if(We&&Zr&&t.f&2048&&l!==null)for(let a=0;a<l.length;a++){var d=l[a];d.trace_need_increase&&(d.wv=od(),d.trace_need_increase=void 0,d.trace_v=void 0)}We&&rd.push(t)}catch(a){Ga(a,t,i,o||t.ctx)}finally{Et=i,We&&td(n)}}}function kv(){console.error("Last ten effects were: ",rd.slice(-10).map(t=>t.fn)),rd=[]}function Lv(){if(Ka>1e3){Ka=0;try{nv()}catch(t){if(We&&so(t,"stack",{value:""}),qa!==null)if(We)try{Ga(t,qa,null,null)}catch(e){throw kv(),e}else Ga(t,qa,null,null);else throw We&&kv(),t}}Ka++}function Vv(t){var e=t.length;if(e!==0){Lv();var i=gs;gs=!0;try{for(var o=0;o<e;o++){var n=t[o];n.f&1024||(n.f^=1024);var r=[];Rv(n,r),j_(r)}}finally{gs=i}}}function j_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if(!(o.f&24576))try{Rs(o)&&(za(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Pf(o):o.fn=null))}catch(n){Ga(n,o,null,o.ctx)}}}function Z_(){if(nd=!1,Ka>1001)return;let t=ca;ca=[],Vv(t),nd||(Ka=0,qa=null,We&&(rd=[]))}function Wa(t){ac===Pv&&(nd||(nd=!0,queueMicrotask(Z_))),qa=t;for(var e=t;e.parent!==null;){e=e.parent;var i=e.f;if(i&96){if(!(i&1024))return;e.f^=1024}}ca.push(e)}function Rv(t,e){var i=t.first,o=[];e:for(;i!==null;){var n=i.f,r=(n&32)!==0,l=r&&(n&1024)!==0,d=i.next;if(!l&&!(n&8192))if(n&8){if(r)i.f^=1024;else{var a=Gt;try{Gt=i,Rs(i)&&za(i)}catch(m){Ga(m,i,null,i.ctx)}finally{Gt=a}}var c=i.first;if(c!==null){i=c;continue}}else n&4&&o.push(i);if(d===null){let m=i.parent;for(;m!==null;){if(t===m)break e;var f=m.next;if(f!==null){i=f;continue e}m=m.parent}}i=d}for(var g=0;g<o.length;g++)c=o[g],e.push(c),Rv(c,e)}function u(t){var e=ac,i=ca;try{Lv();let n=[];ac=G_,ca=n,nd=!1,Vv(i);var o=t==null?void 0:t();return Xm(),(ca.length>0||n.length>0)&&u(),Ka=0,qa=null,We&&(rd=[]),o}finally{ac=e,ca=i}}function ho(){return wt(this,null,function*(){yield Promise.resolve(),u()})}function s(t){var e=t.f,i=(e&2)!==0;if(Jl!==null&&Jl.add(t),Gt!==null&&!Rr){Vr!==null&&Vr.includes(t)&&uv();var o=Gt.deps;t.rv<dc&&(t.rv=dc,Jo===null&&o!==null&&o[Vn]===t?Vn++:Jo===null?Jo=[t]:(!hs||!Jo.includes(t))&&Jo.push(t))}else if(i&&t.deps===null&&t.effects===null){var n=t,r=n.parent;r!==null&&!(r.f&256)&&(n.f^=256)}if(i&&(n=t,Rs(n)&&Sf(n)),We&&Zr&&Xl!==null&&Gt!==null&&Xl.reaction===Gt){if(t.debug)t.debug();else if(t.created){var l=Xl.entries.get(t);l===void 0&&(l={read:[]},Xl.entries.set(t,l)),l.read.push(ms("TracedAt"))}}return t.v}function kt(t){var e=Rr;try{return Rr=!0,t()}finally{Rr=e}}var X_=-7169;function Xo(t,e){t.f=t.f&X_|e}function pc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Bo in t)cc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Bo in i&&cc(i)}}}function cc(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{cc(t[o],e)}catch(n){}let i=ps(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Xd(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}var at=!1;function lo(t){at=t}var St;function vi(t){if(t===null)throw aa(),fs;return St=t}function Li(){return vi(To(St))}function y(t){if(at){if(To(St)!==null)throw aa(),fs;St=t}}function Le(t=1){if(at){for(var e=t,i=St;e--;)i=To(i);St=i}}function ja(){for(var t=0,e=St;;){if(e.nodeType===8){var i=e.data;if(i===oa){if(t===0)return e;t-=1}else(i===Na||i===ia)&&(t+=1)}var o=To(e);e.remove(),e=o}}function Me(t,e=null,i){var c,f;var o=null;if(We&&Zr&&(o=ms("CreatedAt")),typeof t!="object"||t===null||Bo in t)return t;let n=ps(t);if(n!==cf&&n!==Qm)return t;var r=new Map,l=Lr(t),d=Hi(0);l&&r.set("length",Hi(t.length,o));var a;if(We)if(a={parent:e,owners:null},i){let g=(f=(c=i.v)==null?void 0:c[us])==null?void 0:f.owners;a.owners=g?new Set(g):null}else a.owners=e===null?Rt!==null?new Set([Rt.function]):null:new Set;return new Proxy(t,{defineProperty(g,m,h){(!("value"in h)||h.configurable===!1||h.enumerable===!1||h.writable===!1)&&dv();var _=r.get(m);return _===void 0?(_=Hi(h.value,o),r.set(m,_)):j(_,Me(h.value,a)),!0},deleteProperty(g,m){var h=r.get(m);if(h===void 0)m in g&&r.set(m,Hi(Yi,o));else{if(l&&typeof m=="string"){var _=r.get("length"),x=Number(m);Number.isInteger(x)&&x<_.v&&j(_,x)}j(h,Yi),Bv(d)}return!0},get(g,m,h){var D;if(We&&m===us)return a;if(m===Bo)return t;var _=r.get(m),x=m in g;if(_===void 0&&(!x||(D=Pn(g,m))!=null&&D.writable)&&(_=Hi(Me(x?g[m]:Yi,a),o),r.set(m,_)),_!==void 0){var T=s(_);if(We){var V=T==null?void 0:T[us];V&&(V==null?void 0:V.parent)!==a&&hf(a,V)}return T===Yi?void 0:T}return Reflect.get(g,m,h)},getOwnPropertyDescriptor(g,m){var h=Reflect.getOwnPropertyDescriptor(g,m);if(h&&"value"in h){var _=r.get(m);_&&(h.value=s(_))}else if(h===void 0){var x=r.get(m),T=x==null?void 0:x.v;if(x!==void 0&&T!==Yi)return{enumerable:!0,configurable:!0,value:T,writable:!0}}return h},has(g,m){var T;if(We&&m===us||m===Bo)return!0;var h=r.get(m),_=h!==void 0&&h.v!==Yi||Reflect.has(g,m);if(h!==void 0||Et!==null&&(!_||(T=Pn(g,m))!=null&&T.writable)){h===void 0&&(h=Hi(_?Me(g[m],a):Yi,o),r.set(m,h));var x=s(h);if(x===Yi)return!1}return _},set(g,m,h,_){var Q;var x=r.get(m),T=m in g;if(l&&m==="length")for(var V=h;V<x.v;V+=1){var D=r.get(V+"");D!==void 0?j(D,Yi):V in g&&(D=Hi(Yi,o),r.set(V+"",D))}if(x===void 0?(!T||(Q=Pn(g,m))!=null&&Q.writable)&&(x=Hi(void 0,o),j(x,Me(h,a)),r.set(m,x)):(T=x.v!==Yi,j(x,Me(h,a))),We){var R=h==null?void 0:h[us];R&&(R==null?void 0:R.parent)!==a&&hf(a,R),yv(a)}var B=Reflect.getOwnPropertyDescriptor(g,m);if(B!=null&&B.set&&B.set.call(_,h),!T){if(l&&typeof m=="string"){var I=r.get("length"),z=Number(m);Number.isInteger(z)&&z>=I.v&&j(I,z+1)}Bv(d)}return!0},ownKeys(g){s(d);var m=Reflect.ownKeys(g).filter(x=>{var T=r.get(x);return T===void 0||T.v!==Yi});for(var[h,_]of r)_.v!==Yi&&!(h in g)&&m.push(h);return m},setPrototypeOf(){cv()}})}function Bv(t,e=1){j(t,t.v+e)}function fc(t){return t!==null&&typeof t=="object"&&Bo in t?t[Bo]:t}function Dv(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(r,l){let d=i.call(this,r,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(fc(this[a])===r){tc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(r,l){let d=o.call(this,r,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(fc(this[a])===r){tc("array.lastIndexOf(...)");break}}return d},t.includes=function(r,l){let d=n.call(this,r,l);if(!d){for(let a=0;a<this.length;a+=1)if(fc(this[a])===r){tc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var ua,Ov,Hv,Fv;function mc(){if(ua===void 0){ua=window,Ov=document;var t=Element.prototype,e=Node.prototype;Hv=Pn(e,"firstChild").get,Fv=Pn(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0,We&&(t.__svelte_meta=null,Dv())}}function en(t=""){return document.createTextNode(t)}function gi(t){return Hv.call(t)}function To(t){return Fv.call(t)}function w(t,e){if(!at)return gi(t);var i=gi(St);if(i===null)i=St.appendChild(en());else if(e&&i.nodeType!==3){var o=en();return i==null||i.before(o),vi(o),o}return vi(i),i}function ke(t,e){var n,r;if(!at){var i=gi(t);return i.nodeType===8&&i.data===""?To(i):i}if(e&&((n=St)==null?void 0:n.nodeType)!==3){var o=en();return(r=St)==null||r.before(o),vi(o),o}return St}function H(t,e=1,i=!1){let o=at?St:t;for(var n;e--;)n=o,o=To(o);if(!at)return o;var r=o==null?void 0:o.nodeType;if(i&&r!==3){var l=en();return o===null?n==null||n.after(l):o.before(l),vi(l),l}return vi(o),o}function ld(t){t.textContent=""}function Mf(t){Et===null&&Gt===null&&ov(t),Gt!==null&&Gt.f&256&&Et===null&&iv(),uc&&tv(t)}function J_(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function pa(t,e,i,o=!0){var f;var n=(t&64)!==0,r=Et;if(We)for(;r!==null&&r.f&262144;)r=r.parent;var l={ctx:Rt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n?null:r,prev:null,teardown:null,transitions:null,wv:0};if(We&&(l.component_function=Zo),i){var d=gs;try{Fa(!0),za(l),l.f|=32768}catch(g){throw ao(l),g}finally{Fa(d)}}else e!==null&&Wa(l);var a=i&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&1048704)===0;if(!a&&!n&&o&&(r!==null&&J_(l,r),Gt!==null&&Gt.f&2)){var c=Gt;((f=c.effects)!=null?f:c.effects=[]).push(l)}return l}function Rn(t){let e=pa(8,null,!1);return Xo(e,1024),e.teardown=t,e}function st(t){var n;Mf("$effect");var e=Et!==null&&(Et.f&32)!==0&&Rt!==null&&!Rt.m;if(We&&so(t,"name",{value:"$effect"}),e){var i=Rt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:Et,reaction:Gt})}else{var o=cn(t);return o}}function Ba(t){return Mf("$effect.pre"),We&&so(t,"name",{value:"$effect.pre"}),So(t)}function vc(t){let e=pa(64,t,!0);return()=>{ao(e)}}function zv(t){let e=pa(64,t,!0);return(i={})=>new Promise(o=>{i.outro?fn(e,()=>{ao(e),o(void 0)}):(ao(e),o(void 0))})}function cn(t){return pa(4,t,!1)}function So(t){return pa(8,t,!0)}function N(t,e=[],i=b){let o=e.map(i),n=()=>t(...o.map(s));return We&&so(n,"name",{value:"{expression}"}),co(n)}function co(t,e=0){return pa(24|e,t,!0)}function ji(t,e=!0){return pa(40,t,!0,e)}function kf(t){var e=t.teardown;if(e!==null){let i=uc,o=Gt;If(!0),go(null);try{e.call(null)}finally{If(i),go(o)}}}function Ef(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;ao(i,e),i=o}}function Nv(t){for(var e=t.first;e!==null;){var i=e.next;e.f&32||ao(e),e=i}}function ao(t,e=!0){var i=!1;if((e||t.f&524288)&&t.nodes_start!==null){for(var o=t.nodes_start,n=t.nodes_end;o!==null;){var r=o===n?null:To(o);o.remove(),o=r}i=!0}Ef(t,e&&!i),sd(t,0),Xo(t,16384);var l=t.transitions;if(l!==null)for(let a of l)a.stop();kf(t);var d=t.parent;d!==null&&d.first!==null&&Pf(t),We&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Pf(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function fn(t,e){var i=[];gc(t,i,!0),Lf(i,()=>{ao(t),e&&e()})}function Lf(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function gc(t,e,i){if(!(t.f&8192)){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,r=(o.f&65536)!==0||(o.f&32)!==0;gc(o,e,r?i:!1),o=n}}}function _s(t){Wv(t,!0)}function Wv(t,e){if(t.f&8192){t.f^=8192,t.f&1024||(t.f^=1024),Rs(t)&&(Xo(t,2048),Wa(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Wv(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}function Vf(t,e){if(e){let i=document.body;t.autofocus=!0,Yo(()=>{document.activeElement===i&&t.focus()})}}function Rf(t){var e=Gt,i=Et;go(null),Oi(null);try{return t()}finally{go(e),Oi(i)}}var Nf=new Set,hc=new Set;function fa(t){if(!at)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Bf(t,e,i,o={}){function n(r){if(o.capture||Za.call(e,r),!r.cancelBubble)return Rf(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Yo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Wt(t,e,i,o,n){var r={capture:o,passive:n},l=Bf(t,e,i,r);(e===document.body||e===window||e===document)&&Rn(()=>{e.removeEventListener(t,l,r)})}function yt(t){for(var e=0;e<t.length;e++)Nf.add(t[e]);for(var i of hc)i(t)}function Za(t){var D;var e=this,i=e.ownerDocument,o=t.type,n=((D=t.composedPath)==null?void 0:D.call(t))||[],r=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var c=n.indexOf(e);if(c===-1)return;a<=c&&(l=a)}if(r=n[l]||t.target,r!==e){so(t,"currentTarget",{configurable:!0,get(){return r||i}});var f=Gt,g=Et;go(null),Oi(null);try{for(var m,h=[];r!==null;){var _=r.assignedSlot||r.parentNode||r.host||null;try{var x=r["__"+o];if(x!==void 0&&!r.disabled)if(Lr(x)){var[T,...V]=x;T.apply(r,[t,...V])}else x.call(r,t)}catch(R){m?h.push(R):m=R}if(t.cancelBubble||_===e||_===null)break;r=_}if(m){for(let R of h)queueMicrotask(()=>{throw R});throw m}}finally{t.__root=e,delete t.currentTarget,go(f),Oi(g)}}}var t$;function qv(){t$=void 0}function Xa(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function _o(t,e){var i=Et;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function U(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,r=!t.startsWith("<!>");return()=>{if(at)return _o(St,null),St;n===void 0&&(n=Xa(r?t:"<!>"+t),i||(n=gi(n)));var l=o?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=gi(l),a=l.lastChild;_o(d,a)}else _o(l,l);return l}}function Ve(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(at)return _o(St,null),St;if(!l){var d=Xa(r),a=gi(d);if(n)for(l=document.createDocumentFragment();gi(a);)l.appendChild(gi(a));else l=gi(a)}var c=l.cloneNode(!0);if(n){var f=gi(c),g=c.lastChild;_o(f,g)}else _o(c,c);return c}}function lr(t=""){if(!at){var e=en(t+"");return _o(e,e),e}var i=St;return i.nodeType!==3&&(i.before(i=en()),vi(i)),_o(i,i),i}function Xe(){if(at)return _o(St,null),St;var t=document.createDocumentFragment(),e=document.createComment(""),i=en();return t.append(e,i),_o(e,i),t}function C(t,e){if(at){Et.nodes_end=St,Li();return}t!==null&&t.before(e)}var o$=/\r/g;function Qv(t){t=t.replace(o$,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Gv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var n$=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Yv(t){return n$.includes(t)}var r$=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var s$={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function jv(t){var e;return t=t.toLowerCase(),(e=s$[t])!=null?e:t}var x7=[...r$,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var a$=["touchstart","touchmove"];function Zv(t){return a$.includes(t)}var l$=["textarea","script","style","title"];function Xv(t){return l$.includes(t)}function Df(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var dd=!0;function _c(t){dd=t}function Ee(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function $c(t,e){return Jv(t,e)}function Hf(t,e){var l;mc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=at,n=St;try{for(var r=gi(i);r&&(r.nodeType!==8||r.data!==Na);)r=To(r);if(!r)throw fs;lo(!0),vi(r),Li();let d=Jv(t,Ft($({},e),{anchor:r}));if(St===null||St.nodeType!==8||St.data!==oa)throw aa(),fs;return lo(!1),d}catch(d){if(d===fs)return e.recover===!1&&rv(),mc(),ld(i),lo(!1),$c(t,e);throw d}finally{lo(o),vi(n),qv()}}var Ja=new Map;function Jv(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){mc();var d=new Set,a=g=>{for(var m=0;m<g.length;m++){var h=g[m];if(!d.has(h)){d.add(h);var _=Zv(h);e.addEventListener(h,Za,{passive:_});var x=Ja.get(h);x===void 0?(document.addEventListener(h,Za,{passive:_}),Ja.set(h,1)):Ja.set(h,x+1)}}};a(Zl(Nf)),hc.add(a);var c=void 0,f=zv(()=>{var g=i!=null?i:e.appendChild(en());return ji(()=>{if(r){P({});var m=Rt;m.c=r}n&&(o.$$events=n),at&&_o(g,null),dd=l,c=t(g,o)||{},dd=!0,at&&(Et.nodes_end=St),r&&A()}),()=>{var _;for(var m of d){e.removeEventListener(m,Za);var h=Ja.get(m);--h===0?(document.removeEventListener(m,Za),Ja.delete(m)):Ja.set(m,h)}hc.delete(a),g!==i&&((_=g.parentNode)==null||_.removeChild(g))}});return Of.set(c,f),c}var Of=new WeakMap;function Ff(t,e){let i=Of.get(t);return i?(Of.delete(t),i(e)):(We&&_v(),Promise.resolve())}var zf;function E(t){return zf=t.target,new Uf(t)}var $s,dr,Uf=class{constructor(e){Ms(this,$s);Ms(this,dr);var r,l;var i=new Map,o=(d,a)=>{var c=vs(a);return i.set(d,c),c};let n=new Proxy(Ft($({},e.props||{}),{$$events:{}}),{get(d,a){var c;return s((c=i.get(a))!=null?c:o(a,Reflect.get(d,a)))},has(d,a){var c;return a===jl?!0:(s((c=i.get(a))!=null?c:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,c){var f;return j((f=i.get(a))!=null?f:o(a,c),c),Reflect.set(d,a,c)}});La(this,dr,(e.hydrate?Hf:$c)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(r=e.intro)!=null?r:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&u(),La(this,$s,n.$$events);for(let d of Object.keys(Mi(this,dr)))d==="$set"||d==="$destroy"||d==="$on"||so(this,d,{get(){return Mi(this,dr)[d]},set(a){Mi(this,dr)[d]=a},enumerable:!0});Mi(this,dr).$set=d=>{Object.assign(n,d)},Mi(this,dr).$destroy=()=>{Ff(Mi(this,dr))}}$set(e){Mi(this,dr).$set(e)}$on(e,i){Mi(this,$s)[e]=Mi(this,$s)[e]||[];let o=(...n)=>i.call(this,...n);return Mi(this,$s)[e].push(o),()=>{Mi(this,$s)[e]=Mi(this,$s)[e].filter(n=>n!==o)}}$destroy(){Mi(this,dr).$destroy()}};$s=new WeakMap,dr=new WeakMap;var eg="5";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(eg);var tg=new Map;function ig(t,e){var i=tg.get(t);i||(i=new Set,tg.set(t,i)),i.add(e)}function q(t,e,i=!1){at&&Li();var o=t,n=null,r=null,l=Yi,d=i?65536:0,a=!1;let c=(g,m=!0)=>{a=!0,f(m,g)},f=(g,m)=>{if(l===(l=g))return;let h=!1;if(at){let _=o.data===ia;!!l===_&&(o=ja(),vi(o),lo(!1),h=!0)}l?(n?_s(n):m&&(n=ji(()=>m(o))),r&&fn(r,()=>{r=null})):(r?_s(r):m&&(r=ji(()=>m(o))),n&&fn(n,()=>{n=null})),h&&lo(!0)};co(()=>{a=!1,e(c),a||f(null,null)},d),at&&(o=St)}function cd(t,e,i){at&&Li();var o=t,n=Yi,r,l=Xr()?Jm:Va;co(()=>{l(n,n=e())&&(r&&fn(r),r=ji(()=>i(o)))}),at&&(o=St)}var Bs=null;function Kf(t){Bs=t}function to(t,e){return e}function h$(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)gc(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;ld(a),a.append(i),o.clear(),Ns(t,e[0].prev,e[r-1].next)}Lf(n,()=>{for(var c=0;c<r;c++){var f=e[c];d||(o.delete(f.k),Ns(t,f.prev,f.next)),ao(f.e,!d)}})}function Ii(t,e,i,o,n,r=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var c=t;l=at?vi(gi(c)):c.appendChild(en())}at&&Li();var f=null,g=!1,m=Nr(()=>{var h=i();return Lr(h)?h:h==null?[]:Zl(h)});co(()=>{var h=s(m),_=h.length;if(g&&_===0)return;g=_===0;let x=!1;if(at){var T=l.data===ia;T!==(_===0)&&(l=ja(),vi(l),lo(!1),x=!0)}if(at){for(var V=null,D,R=0;R<_;R++){if(St.nodeType===8&&St.data===oa){l=St,x=!0,lo(!1);break}var B=h[R],I=o(B,R);D=rg(St,d,V,null,B,I,R,n,e,i),d.items.set(I,D),V=D}_>0&&vi(ja())}at||_$(h,d,l,n,e,o,i),r!==null&&(_===0?f?_s(f):f=ji(()=>r(l)):f!==null&&fn(f,()=>{f=null})),x&&lo(!0),s(m)}),at&&(l=St)}function _$(t,e,i,o,n,r,l){var Se,G,fe,_e;var d=(n&8)!==0,a=(n&3)!==0,c=t.length,f=e.items,g=e.first,m=g,h,_=null,x,T=[],V=[],D,R,B,I;if(d)for(I=0;I<c;I+=1)D=t[I],R=r(D,I),B=f.get(R),B!==void 0&&((Se=B.a)==null||Se.measure(),(x!=null?x:x=new Set).add(B));for(I=0;I<c;I+=1){if(D=t[I],R=r(D,I),B=f.get(R),B===void 0){var z=m?m.e.nodes_start:i;_=rg(z,e,_,_===null?e.first:_.next,D,R,I,o,n,l),f.set(R,_),T=[],V=[],m=_.next;continue}if(a&&$$(B,D,I,n),B.e.f&8192&&(_s(B.e),d&&((G=B.a)==null||G.unfix(),(x!=null?x:x=new Set).delete(B))),B!==m){if(h!==void 0&&h.has(B)){if(T.length<V.length){var Q=V[0],F;_=Q.prev;var Y=T[0],ee=T[T.length-1];for(F=0;F<T.length;F+=1)og(T[F],Q,i);for(F=0;F<V.length;F+=1)h.delete(V[F]);Ns(e,Y.prev,ee.next),Ns(e,_,Y),Ns(e,ee,Q),m=Q,_=ee,I-=1,T=[],V=[]}else h.delete(B),og(B,m,i),Ns(e,B.prev,B.next),Ns(e,B,_===null?e.first:_.next),Ns(e,_,B),_=B;continue}for(T=[],V=[];m!==null&&m.k!==R;)m.e.f&8192||(h!=null?h:h=new Set).add(m),V.push(m),m=m.next;if(m===null)continue;B=m}T.push(B),_=B,m=B.next}if(m!==null||h!==void 0){for(var ce=h===void 0?[]:Zl(h);m!==null;)m.e.f&8192||ce.push(m),m=m.next;var ie=ce.length;if(ie>0){var we=n&4&&c===0?i:null;if(d){for(I=0;I<ie;I+=1)(fe=ce[I].a)==null||fe.measure();for(I=0;I<ie;I+=1)(_e=ce[I].a)==null||_e.fix()}h$(e,ce,we,f)}}d&&Yo(()=>{var Z;if(x!==void 0)for(B of x)(Z=B.a)==null||Z.apply()}),Et.first=e.first&&e.first.e,Et.last=_&&_.e}function $$(t,e,i,o){o&1&&Ua(t.v,e),o&2?Ua(t.i,i):t.i=i}function rg(t,e,i,o,n,r,l,d,a,c){var f=Bs,g=(a&1)!==0,m=(a&16)===0,h=g?m?vs(n):Hi(n):n,_=a&2?Hi(l):l;We&&g&&(h.debug=()=>{var T=typeof _=="number"?l:_.v;c()[T]});var x={i:_,v:h,k:r,a:null,e:null,prev:i,next:o};Bs=x;try{return x.e=ji(()=>d(t,h,_,c),at),x.e.prev=i&&i.e,x.e.next=o&&o.e,i===null?e.first=x:(i.next=x,i.e.next=x.e),o!==null&&(o.prev=x,o.e.prev=x.e),x}finally{Bs=f}}function og(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==o;){var l=To(r);n.before(r),r=l}}function Ns(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function b$(t,e,i){var r,l;if(!e||e===Qv(String(i!=null?i:"")))return;let o,n=(r=t.__svelte_meta)==null?void 0:r.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=Zo)!=null&&l[Ci]&&(o=`in ${Zo[Ci]}`),hv(Df(o))}function ud(t,e,i,o,n){var r=t,l="",d;co(()=>{var a;if(l===(l=(a=e())!=null?a:"")){at&&Li();return}d!==void 0&&(ao(d),d=void 0),l!==""&&(d=ji(()=>{if(at){for(var c=St.data,f=Li(),g=f;f!==null&&(f.nodeType!==8||f.data!=="");)g=f,f=To(f);if(f===null)throw aa(),fs;We&&!n&&b$(f.parentNode,c,l),_o(St,g),r=vi(f);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var h=Xa(m);if((i||o)&&(h=gi(h)),_o(gi(h),h.lastChild),i||o)for(;gi(h);)r.before(gi(h));else r.before(h)}))})}function Ue(t,e,i,o,n){var d;at&&Li();var r=(d=e.$$slots)==null?void 0:d[i],l=!1;r===!0&&(r=e[i==="default"?"children":i],l=!0),r===void 0?n!==null&&n(t):r(t,l?()=>o:o)}function $o(t,e,...i){var o=t,n=Qt,r;co(()=>{n!==(n=e())&&(r&&(ao(r),r=null),We&&n==null&&sv(),r=ji(()=>n(o,...i)))},65536),at&&(o=St)}function Fi(t,e,i){at&&Li();var o=t,n,r;co(()=>{n!==(n=e())&&(r&&(fn(r),r=null),n&&(r=ji(()=>i(o,n))))},65536),at&&(o=St)}function pd(t,e,i,o,n,r){var _;let l=at;at&&Li();var d=We&&r&&((_=Rt)==null?void 0:_.function[Ci]),a,c,f=null;at&&St.nodeType===1&&(f=St,Li());var g=at?St:t,m,h=Bs;co(()=>{let x=e()||null;var T=n?n():i||x==="svg"?na:null;if(x!==a){var V=Bs;Kf(h),m&&(x===null?fn(m,()=>{m=null,c=null}):x===c?_s(m):(ao(m),_c(!1))),x&&x!==c&&(m=ji(()=>{if(f=at?f:T?document.createElementNS(T,x):document.createElement(x),We&&r&&(f.__svelte_meta={loc:{file:d,line:r[0],column:r[1]}}),_o(f,f),o){at&&Xv(x)&&f.append(document.createComment(""));var D=at?gi(f):f.appendChild(en());at&&(D===null?lo(!1):vi(D)),o(f,D)}Et.nodes_end=f,g.before(f)})),a=x,a&&(c=a),_c(!0),Kf(V)}},65536),l&&(lo(!0),vi(g))}function re(t,e){Yo(()=>{var n,r,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(r=zf)==null?void 0:r.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),We&&ig(e.hash,d)}})}function sg(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=sg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function ag(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=sg(t))&&(o&&(o+=" "),o+=e);return o}function fd(t){return typeof t=="object"?ag(t):t!=null?t:""}function cg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function me(t,e,i,o){var r;var n=(r=t.__attributes)!=null?r:t.__attributes={};if(at&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||y$(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[zm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&ug(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function He(t,e,i,o,n=!1,r=!1,l=!1){var R;let d=at&&r;d&&lo(!1);var a=e||{},c=t.tagName==="OPTION";for(var f in e)f in i||(i[f]=null);i.class&&(i.class=fd(i.class)),o!==void 0&&(i.class=i.class?i.class+" "+o:o);var g=ug(t),m=(R=t.__attributes)!=null?R:t.__attributes={};for(let B in i){let I=i[B];if(c&&B==="value"&&I==null){t.value=t.__value="",a[B]=I;continue}var h=a[B];if(I!==h){a[B]=I;var _=B[0]+B[1];if(_!=="$$"){if(_==="on"){let z={},Q="$$"+B,F=B.slice(2);var x=Yv(F);if(Gv(F)&&(F=F.slice(0,-7),z.capture=!0),!x&&h){if(I!=null)continue;t.removeEventListener(F,a[Q],z),a[Q]=null}if(I!=null)if(x)t[`__${F}`]=I,yt([F]);else{let Y=function(ee){a[B].call(this,ee)};var D=Y;a[Q]=Bf(F,t,Y,z)}else x&&(t[`__${F}`]=void 0)}else if(B==="style"&&I!=null)t.style.cssText=I+"";else if(B==="autofocus")Vf(t,!!I);else if(!r&&(B==="__value"||B==="value"&&I!=null))t.value=t.__value=I;else if(B==="selected"&&c)cg(t,I);else{var T=B;n||(T=jv(T));var V=T==="defaultValue"||T==="defaultChecked";if(I==null&&!r&&!V)if(m[B]=null,T==="value"||T==="checked"){let z=t;if(T==="value"){let Q=z.defaultValue;z.removeAttribute(T),z.defaultValue=Q}else{let Q=z.defaultChecked;z.removeAttribute(T),z.defaultChecked=Q}}else t.removeAttribute(B);else V||g.includes(T)&&(r||typeof I!="string")?t[T]=I:typeof I!="function"&&me(t,T,I)}B==="style"&&"__styles"in t&&(t.__styles={})}}}return d&&lo(!0),a}var lg=new Map;function ug(t){var e=lg.get(t.nodeName);if(e)return e;lg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Xd(o);for(var r in i)i[r].set&&e.push(r);o=ps(o)}return e}function y$(t,e,i){var o;We&&(e==="srcset"&&x$(t,i)||Qf((o=t.getAttribute(e))!=null?o:"",i)||gv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Qf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function dg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function x$(t,e){var i=dg(t.srcset),o=dg(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(Qf(i[l][0],n)||Qf(n,i[l][0])))}function tn(t,e,i){var o=t.__className,n=w$(e,i);at&&t.className===n?t.__className=n:(o!==n||at&&t.className!==n)&&(e==null&&!i?t.removeAttribute("class"):t.className=n,t.__className=n)}function w$(t,e){return(t==null?"":t)+(e?" "+e:"")}function se(t,e,i){if(i){if(t.classList.contains(e))return;t.classList.add(e)}else{if(!t.classList.contains(e))return;t.classList.remove(e)}}var C$=Zd?()=>performance.now():()=>Date.now(),Dr={tick:t=>(Zd?requestAnimationFrame:Qt)(t),now:()=>C$(),tasks:new Set};function pg(){let t=Dr.now();Dr.tasks.forEach(e=>{e.c(t)||(Dr.tasks.delete(e),e.f())}),Dr.tasks.size!==0&&Dr.tick(pg)}function fg(t){let e;return Dr.tasks.size===0&&Dr.tick(pg),{promise:new Promise(i=>{Dr.tasks.add(e={c:t,f:i})}),abort(){Dr.tasks.delete(e)}}}function bc(t,e){t.dispatchEvent(new CustomEvent(e))}function k$(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function mg(t){let e={},i=t.split(";");for(let o of i){let[n,r]=o.split(":");if(!n||r===void 0)break;let l=k$(n.trim());e[l]=r.trim()}return e}var E$=t=>t;function Yf(t,e,i,o){var R;var n=(t&1)!==0,r=(t&2)!==0,l=n&&r,d=(t&4)!==0,a=l?"both":n?"in":"out",c,f=e.inert,g=e.style.overflow,m,h;function _(){var z;var B=Gt,I=Et;go(null),Oi(null);try{return c!=null?c:c=i()(e,(z=o==null?void 0:o())!=null?z:{},{direction:a})}finally{go(B),Oi(I)}}var x={is_global:d,in(){var B;if(e.inert=f,!n){h==null||h.abort(),(B=h==null?void 0:h.reset)==null||B.call(h);return}r||m==null||m.abort(),bc(e,"introstart"),m=Gf(e,_(),h,1,()=>{bc(e,"introend"),m==null||m.abort(),m=c=void 0,e.style.overflow=g})},out(B){if(!r){B==null||B(),c=void 0;return}e.inert=!0,bc(e,"outrostart"),h=Gf(e,_(),m,0,()=>{bc(e,"outroend"),B==null||B()})},stop:()=>{m==null||m.abort(),h==null||h.abort()}},T=Et;if(((R=T.transitions)!=null?R:T.transitions=[]).push(x),n&&dd){var V=d;if(!V){for(var D=T.parent;D&&D.f&65536;)for(;(D=D.parent)&&!(D.f&16););V=!D||(D.f&32768)!==0}V&&cn(()=>{kt(()=>x.in())})}}function Gf(t,e,i,o,n){var r=o===1;if(Ls(e)){var l,d=!1;return Yo(()=>{if(!d){var T=e({direction:r?"in":"out"});l=Gf(t,T,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:Qt,deactivate:Qt,reset:Qt,t:()=>o};let{delay:a=0,css:c,tick:f,easing:g=E$}=e;var m=[];if(r&&i===void 0&&(f&&f(0,1),c)){var h=mg(c(0,1));m.push(h,h)}var _=()=>1-o,x=t.animate(m,{duration:a});return x.onfinish=()=>{var Y;var T=(Y=i==null?void 0:i.t())!=null?Y:1-o;i==null||i.abort();var V=o-T,D=e.duration*Math.abs(V),R=[];if(D>0){var B=!1;if(c)for(var I=Math.ceil(D/16.666666666666668),z=0;z<=I;z+=1){var Q=T+V*g(z/I),F=mg(c(Q,1-Q));R.push(F),B||(B=F.overflow==="hidden")}B&&(t.style.overflow="hidden"),_=()=>{var ee=x.currentTime;return T+V*g(ee/D)},f&&fg(()=>{if(x.playState!=="running")return!1;var ee=_();return f(ee,1-ee),!0})}x=t.animate(R,{duration:D,fill:"forwards"}),x.onfinish=()=>{_=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=Qt)},deactivate:()=>{n=Qt},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>_()}}var Ds,el,md,xc,vg,wc=class wc{constructor(e){Ms(this,xc);Ms(this,Ds,new WeakMap);Ms(this,el);Ms(this,md);La(this,md,e)}observe(e,i){var o=Mi(this,Ds).get(e)||new Set;return o.add(i),Mi(this,Ds).set(e,o),Um(this,xc,vg).call(this).observe(e,Mi(this,md)),()=>{var n=Mi(this,Ds).get(e);n.delete(i),n.size===0&&(Mi(this,Ds).delete(e),Mi(this,el).unobserve(e))}}};Ds=new WeakMap,el=new WeakMap,md=new WeakMap,xc=new WeakSet,vg=function(){var e;return(e=Mi(this,el))!=null?e:La(this,el,new ResizeObserver(i=>{for(var o of i){wc.entries.set(o.target,o);for(var n of Mi(this,Ds).get(o.target)||[])n(o)}}))},En(wc,"entries",new WeakMap);var jf=wc;var M$=new jf({box:"border-box"});function ts(t,e,i){var o=M$.observe(t,()=>i(t[e]));cn(()=>(kt(()=>i(t[e])),o))}function gg(t,e){return t===e||(t==null?void 0:t[Bo])===e}function Ct(t={},e,i,o){return cn(()=>{var n,r;return So(()=>{n=r,r=(o==null?void 0:o())||[],kt(()=>{t!==i(...r)&&(e(t,...r),n&&gg(i(...n),t)&&e(null,...n))})}),()=>{Yo(()=>{r&&gg(i(...r),t)&&e(null,...r)})}}),t}function Or(t=!1){let e=Rt,i=e.l.u;if(!i)return;let o=()=>pc(e.s);if(t){let n=0,r={},l=b(()=>{let d=!1,a=e.s;for(let c in a)a[c]!==r[c]&&(r[c]=a[c],d=!0);return d&&n++,n});o=()=>s(l)}i.b.length&&Ba(()=>{hg(e,o),Vs(i.b)}),st(()=>{let n=kt(()=>i.m.map(Gm));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&st(()=>{hg(e,o),Vs(i.a)})}function hg(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}function M(t,e,i){var o;t.$$events||(t.$$events={}),(o=t.$$events)[e]||(o[e]=[]),t.$$events[e].push(i)}function L(t){for(var e in t)e in this&&(this[e]=t[e])}if(We){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;lv(e)},set:o=>{i=o}})}};V$=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var V$;function Yt(t){Rt===null&&Da("onMount"),jr&&Rt.l!==null?L$(Rt).m.push(t):st(()=>{let e=kt(t);if(typeof e=="function")return e})}function cr(t){Rt===null&&Da("onDestroy"),Yt(()=>()=>kt(t))}function L$(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function vd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),Qt;let o=kt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var tl=[];function ur(t,e){return{subscribe:Te(t,e).subscribe}}function Te(t,e=Qt){let i=null,o=new Set;function n(d){if(Va(t,d)&&(t=d,i)){let a=!tl.length;for(let c of o)c[1](),tl.push(c,t);if(a){for(let c=0;c<tl.length;c+=2)tl[c][0](tl[c+1]);tl.length=0}}}function r(d){n(d(t))}function l(d,a=Qt){let c=[d,a];return o.add(c),o.size===1&&(i=e(n,r)||Qt),d(t),()=>{o.delete(c),o.size===0&&i&&(i(),i=null)}}return{set:n,update:r,subscribe:l}}function hi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return ur(i,(l,d)=>{let a=!1,c=[],f=0,g=Qt,m=()=>{if(f)return;g();let _=e(o?c[0]:c,l,d);r?l(_):g=typeof _=="function"?_:Qt},h=n.map((_,x)=>vd(_,T=>{c[x]=T,f&=~(1<<x),a&&m()},()=>{f|=1<<x}));return a=!0,m(),function(){Vs(h),g(),a=!1}})}function Be(t){let e;return vd(t,i=>e=i)(),e}var Cc=!1,Zf=Symbol();function k(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:vs(void 0),unsubscribe:Qt};if(o.store!==t&&!(Zf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=Qt;else{var n=!0;o.unsubscribe=vd(t,l=>{n?o.source.v=l:j(o.source,l)}),n=!1}return t&&Zf in i?Be(t):s(o.source)}function Je(){let t={};function e(){Rn(()=>{for(var i in t)t[i].unsubscribe();so(t,Zf,{enumerable:!1,value:!0})})}return[t,e]}function Xf(t){var e=Cc;try{return Cc=!1,[t(),Cc]}finally{Cc=e}}var O$={get(t,e){if(!t.exclude.includes(e))return s(t.version),e in t.special?t.special[e]():t.props[e]},set(t,e,i){return e in t.special||(t.special[e]=p({get[e](){return t.props[e]}},e,4)),t.special[e](i),oc(t.version),!0},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},deleteProperty(t,e){return t.exclude.includes(e)||(t.exclude.push(e),oc(t.version)),!0},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function ze(t,e){return new Proxy({props:t,exclude:e,special:{},version:Hi(0)},O$)}var H$={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ls(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];Ls(n)&&(n=n());let r=Pn(n,e);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ls(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Pn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Bo||e===jl)return!1;for(let i of t.props)if(Ls(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){Ls(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function bs(...t){return new Proxy({props:t},H$)}function _g(t){for(var e=Et,i=Et;e!==null&&!(e.f&96);)e=e.parent;try{return Oi(e),t()}finally{Oi(i)}}function p(t,e,i,o){var Q,F;var n=(i&1)!==0,r=!jr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,c;l?[c,a]=Xf(()=>t[e]):c=t[e];var f=Bo in t||jl in t,g=l&&((F=(Q=Pn(t,e))==null?void 0:Q.set)!=null?F:f&&e in t&&(Y=>t[e]=Y))||void 0,m=o,h=!0,_=!1,x=()=>(_=!0,h&&(h=!1,d?m=kt(o):m=o),m);c===void 0&&o!==void 0&&(g&&r&&av(e),c=x(),g&&g(c));var T;if(r)T=()=>{var Y=t[e];return Y===void 0?x():(h=!0,_=!1,Y)};else{var V=_g(()=>(n?b:Nr)(()=>t[e]));V.f|=131072,T=()=>{var Y=s(V);return Y!==void 0&&(m=void 0),Y===void 0?m:Y}}if(!(i&4))return T;if(g){var D=t.$$legacy;return function(Y,ee){return arguments.length>0?((!r||!ee||D||a)&&g(ee?T():Y),Y):T()}}var R=!1,B=!1,I=vs(c),z=_g(()=>b(()=>{var Y=T(),ee=s(I);return R?(R=!1,B=!0,ee):(B=!1,I.v=Y)}));return n||(z.equals=Ra),function(Y,ee){if(Jl!==null&&(R=B,T(),s(I)),arguments.length>0){let ce=ee?s(z):r&&l?Me(Y):Y;return z.equals(ce)||(R=!0,j(I,ce),_&&m!==void 0&&(m=ce),kt(()=>s(z))),Y}return s(z)}}var F$;typeof HTMLElement=="function"&&(F$=class extends HTMLElement{constructor(e,i,o){super();En(this,"$$ctor");En(this,"$$s");En(this,"$$c");En(this,"$$cn",!1);En(this,"$$d",{});En(this,"$$r",!1);En(this,"$$p_d",{});En(this,"$$l",{});En(this,"$$l_u",new Map);En(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}connectedCallback(){return wt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(r){return l=>{let d=document.createElement("slot");r!=="default"&&(d.name=r),C(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=U$(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=i(r),o.default=!0):o[r]=i(r));for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=Jf(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=E({component:this.$$ctor,target:this.shadowRoot||this,props:Ft($({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=vc(()=>{So(()=>{var r;this.$$r=!0;for(let l of df(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=Jf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let r in this.$$l)for(let l of this.$$l[r]){let d=this.$$c.$on(r,l);this.$$l_u.set(l,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Jf(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return df(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Jf(t,e,i,o){var r;let n=(r=i[t])==null?void 0:r.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function U$(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}import{clientChecker as i3}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-core/es2015";import{noop as qp,safeStorage as o3,throttleFn as n3}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as r3}from"@vkontakte/videoplayer-statistics/es2015";import{InterfaceLanguage as W$,fillWithDefault as q$,VideoQuality as bg}from"@vkontakte/videoplayer-shared/es2015";var K$={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:W$.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:bg.Q_480P,highQualityLimit:bg.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},yg=t=>q$(t,K$),xg=t=>Ha("ui-config",t),ti=()=>Oa("ui-config");var gd="vk_player_debug_panel_opened";var wg="videoplayer",Cg="videoplayer";var is={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Sg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Tg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Ig=new Set(["ShiftRight","ShiftLeft"]);var kg=["TIMELINE"],hd=[...kg,"GRAPH_BUTTON"],em=[...kg,"PLAY_BUTTON"],_d=[...hd,"PLAY_BUTTON"];var os=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(os||{}),va={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Eg,VERSION as Q$}from"@vkontakte/videoplayer-shared/es2015";import{VERSION as G$}from"@vkontakte/videoplayer-core/es2015";import{VERSION as Y$}from"@vkontakte/videoplayer-statistics/es2015";var Sc="prod",il="1.1.59-dev.5ccf8bf2.0";var ga=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Pg=Symbol("storeContext"),Ag=Symbol("microStoresContext"),Mg=(t,e)=>{Ha(Pg,t),Ha(Ag,e),Sc==="dev"&&(window.app={store:t,microStores:e})},Fe=()=>{let t=Oa(Pg);return Eg(t,"Store context is empty!"),t},Io=()=>{let t=Oa(Ag);return Eg(t,"MicroStores context is empty!"),t},ri=(t,e)=>Ic(t,t.getValue(),e),Ic=(t,e,i)=>ur(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),Lg=(t,e,i)=>{var V,D,R,B,I,z;let o=t.info,{width:n,height:r}=Be(i.ui.playerSize),l=(D=(V=o.throughputEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?D:0,d=(B=(R=o.rttEstimation$.getValue())==null?void 0:R.toFixed(0))!=null?B:0,a=o.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${il} (core: ${G$}, stat: ${Y$}, shared: ${Q$})`,f=Be(i.state.errorLog$),g=f.length?`
46
46
  `+f.map((Q,F)=>{var ie;let Y=`${F}) Type: ${Q.id}
47
47
  `,ee=`Message: ${Q.message} (${Q.thrown})
48
48
  `,ce=`Trace: ${(ie=Q.thrown)==null?void 0:ie.stack}