@vkontakte/videoplayer 1.1.48-dev.bc5f783d.0 → 1.1.48-dev.e2b9d2a6.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,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.48-dev.bc5f783d.0
3
- * Fri, 18 Oct 2024 09:42:46 GMT
2
+ * @vkontakte/videoplayer v1.1.48-dev.e2b9d2a6.0
3
+ * Mon, 21 Oct 2024 21:48:44 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-48/doc/
5
5
  */
6
- "use strict";var wh=Object.create;var ds=Object.defineProperty,kh=Object.defineProperties,Ch=Object.getOwnPropertyDescriptor,Sh=Object.getOwnPropertyDescriptors,Th=Object.getOwnPropertyNames,Wf=Object.getOwnPropertySymbols,Ih=Object.getPrototypeOf,Kf=Object.prototype.hasOwnProperty,Ph=Object.prototype.propertyIsEnumerable;var fa=(i,e,t)=>e in i?ds(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Qe=(i,e)=>{for(var t in e||(e={}))Kf.call(e,t)&&fa(i,t,e[t]);if(Wf)for(var t of Wf(e))Ph.call(e,t)&&fa(i,t,e[t]);return i},kt=(i,e)=>kh(i,Sh(e));var Eh=(i,e)=>{for(var t in e)ds(i,t,{get:e[t],enumerable:!0})},xf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Th(e))!Kf.call(i,o)&&o!==t&&ds(i,o,{get:()=>e[o],enumerable:!(n=Ch(e,o))||n.enumerable});return i};var jf=(i,e,t)=>(t=i!=null?wh(Ih(i)):{},xf(e||!i||!i.__esModule?ds(t,"default",{value:i,enumerable:!0}):t,i)),Ah=i=>xf(ds({},"__esModule",{value:!0}),i);var Ai=(i,e,t)=>fa(i,typeof e!="symbol"?e+"":e,t);var pt=(i,e,t)=>new Promise((n,o)=>{var r=l=>{try{a(t.next(l))}catch(u){o(u)}},s=l=>{try{a(t.throw(l))}catch(u){o(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,s);a((t=t.apply(i,e)).next())});var cy={};Eh(cy,{ControlButtonType:()=>ws,GridTypes:()=>_o,InterfaceLanguage:()=>os.InterfaceLanguage,MenuItemType:()=>vs,VERSION:()=>ur,VKNumericLanguage:()=>os.VKNumericLanguage,VideoFormat:()=>sa.VideoFormat,VideoQuality:()=>sa.VideoQuality,loadVKLangPack:()=>os.loadVKLangPack,registerPlayerWebComponent:()=>uy});module.exports=Ah(cy);function me(){}function se(i,e){for(let t in e)i[t]=e[t];return i}function da(i){return i()}function Ds(){return Object.create(null)}function ft(i){i.forEach(da)}function ei(i){return typeof i=="function"}function B(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Ns;function So(i,e){return i===e?!0:(Ns||(Ns=document.createElement("a")),Ns.href=e,i===Ns.href)}function Gf(i){return Object.keys(i).length===0}function ti(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ye(i){let e;return ti(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push(ti(e,t))}function Le(i,e,t,n){if(i){let o=Yf(i,e,t,n);return i[0](o)}}function Yf(i,e,t,n){return i[1]&&n?se(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let s=Yf(e,t,n,r);i.p(s,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Qf(i){return i==null?"":i}function Pr(i){return i&&ei(i.destroy)?i.destroy:me}var or=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Os=class i{constructor(e){Ai(this,"_listeners","WeakMap"in or?new WeakMap:void 0);Ai(this,"_observer");Ai(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};Os.entries="WeakMap"in or?new WeakMap:void 0;var Zf=!1;function Xf(){Zf=!0}function Jf(){Zf=!1}function _(i,e){i.appendChild(e)}function be(i,e,t){let n=$f(i);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=t,Vh(n,o)}}function $f(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function Vh(i,e){return _(i.head||i,e),e.sheet}function w(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function ui(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function I(i){return document.createElement(i)}function M(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function qe(i){return document.createTextNode(i)}function Y(){return qe(" ")}function Je(){return qe("")}function ke(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ci(i){return function(e){return e.preventDefault(),i.call(this,e)}}function wt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)f(i,t,e[t])}function ed(i){return Array.from(i.childNodes)}function Ge(i,e){e=""+e,i.data!==e&&(i.data=e)}function gi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function G(i,e,t){i.classList.toggle(e,!!t)}function td(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ht(i,e){return new i(e)}var Do;function To(i){Do=i}function Er(){if(!Do)throw new Error("Function called outside component initialization");return Do}function Ot(i){Er().$$.on_mount.push(i)}function io(i){Er().$$.on_destroy.push(i)}function Ar(i,e){return Er().$$.context.set(i,e),e}function Mr(i){return Er().$$.context.get(i)}function ms(){return Er().$$.context}function Hn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var rr=[];var ve=[],Vr=[],pa=[],nd=Promise.resolve(),_a=!1;function ha(){_a||(_a=!0,nd.then(Fs))}function no(){return ha(),nd}function ps(i){Vr.push(i)}function Ue(i){pa.push(i)}var ma=new Set,Lr=0;function Fs(){if(Lr!==0)return;let i=Do;do{try{for(;Lr<rr.length;){let e=rr[Lr];Lr++,To(e),Fh(e.$$)}}catch(e){throw rr.length=0,Lr=0,e}for(To(null),rr.length=0,Lr=0;ve.length;)ve.pop()();for(let e=0;e<Vr.length;e+=1){let t=Vr[e];ma.has(t)||(ma.add(t),t())}Vr.length=0}while(rr.length);for(;pa.length;)pa.pop()();_a=!1,ma.clear(),To(i)}function Fh(i){if(i.fragment!==null){i.update(),ft(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(ps)}}function od(i){let e=[],t=[];Vr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Vr=e}var Hs=new Set,sr;function ae(){sr={r:0,c:[],p:sr}}function ue(){sr.r||ft(sr.c),sr=sr.p}function d(i,e){i&&i.i&&(Hs.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Hs.has(i))return;Hs.add(i),sr.c.push(()=>{Hs.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Ct(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function He(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Oo(i){return typeof i=="object"&&i!==null?i:{}}var Hh=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],qh=new Set([...Hh]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function L(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),ps(()=>{let r=i.$$.on_mount.map(da).filter(ei);i.$$.on_destroy?i.$$.on_destroy.push(...r):ft(r),i.$$.on_mount=[]}),o.forEach(ps)}function V(i,e){let t=i.$$;t.fragment!==null&&(od(t.after_update),ft(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function zh(i,e){i.$$.dirty[0]===-1&&(rr.push(i),ha(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,s=null,a=[-1]){let l=Do;To(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:Ds(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Ds(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...C)=>{let g=C.length?C[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&zh(i,m)),h}):[],u.update(),c=!0,ft(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Xf();let m=ed(e.target);u.fragment&&u.fragment.l(m),m.forEach(y)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),L(i,e.target,e.anchor),Jf(),Fs()}To(l)}var Wh;typeof HTMLElement=="function"&&(Wh=class extends HTMLElement{constructor(e,t,n){super();Ai(this,"$$ctor");Ai(this,"$$s");Ai(this,"$$c");Ai(this,"$$cn",!1);Ai(this,"$$d",{});Ai(this,"$$r",!1);Ai(this,"$$p_d",{});Ai(this,"$$l",{});Ai(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return pt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=I("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){w(c,a,m)},d:function(c){c&&y(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=td(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=ga(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:kt(Qe({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=ga(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=ga(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ga(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){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(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var N=class{constructor(){Ai(this,"$$");Ai(this,"$$set")}$destroy(){V(this,1),this.$destroy=me}$on(e,t){if(!ei(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Gf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var rd="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(rd);var ZF=require("@vkontakte/videoplayer-core"),Zn=require("@vkontakte/videoplayer-shared"),nh=require("@vkontakte/videoplayer-statistics");var Rr=require("@vkontakte/videoplayer-shared");var Kh={isMobile:void 0,defaultLanguage:Rr.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:Rr.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,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,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,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,autoplayNext:!0},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},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},sd=i=>(0,Rr.fillWithDefault)(i,Kh),ld=i=>Ar("ui-config",i),Zt=()=>Mr("ui-config");var _s="vk_player_debug_panel_opened";var ad="videoplayer",ud="videoplayer";var po={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},cd=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),fd=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),dd=new Set(["ShiftRight","ShiftLeft"]);var md=["TIMELINE"],hs=[...md,"GRAPH_BUTTON"],ba=[...md,"PLAY_BUTTON"],qs=[...hs,"PLAY_BUTTON"];var _o=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(_o||{}),ar={xs:0,s:1,m:2,l:3,xl:4};var Br=[];function Yn(i,e){return{subscribe:Oe(i,e).subscribe}}function Oe(i,e=me){let t,n=new Set;function o(a){if(B(i,a)&&(i=a,t)){let l=!Br.length;for(let u of n)u[1](),Br.push(u,i);if(l){for(let u=0;u<Br.length;u+=2)Br[u][0](Br[u+1]);Br.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function ii(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Yn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=ei(g)?g:me},C=o.map((g,S)=>ti(g,k=>{u[S]=k,c&=~(1<<S),l&&h()},()=>{c|=1<<S}));return l=!0,h(),function(){ft(C),m(),l=!1}})}var gs=require("@vkontakte/videoplayer-shared"),pd=require("@vkontakte/videoplayer-core"),_d=require("@vkontakte/videoplayer-statistics");var Us="prod",ur="1.1.48-dev.bc5f783d.0";var cr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var hd=Symbol("storeContext"),gd=Symbol("microStoresContext"),bd=(i,e)=>{Ar(hd,i),Ar(gd,e),Us==="dev"&&(window.app={store:i,microStores:e})},ot=()=>{let i=Mr(hd);return(0,gs.assertNonNullable)(i,"Store context is empty!"),i},qn=()=>{let i=Mr(gd);return(0,gs.assertNonNullable)(i,"MicroStores context is empty!"),i},At=(i,e)=>va(i,i.getValue(),e),va=(i,e,t)=>Yn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),vd=(i,e,t)=>{var F,T,v,E,H,U;let n=i.info,{width:o,height:r}=Ye(t.ui.playerSize),s=(T=(F=n.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?T:0,a=(E=(v=n.rttEstimation$.getValue())==null?void 0:v.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${ur} (core: ${pd.VERSION}, stat: ${_d.VERSION}, shared: ${gs.VERSION})`,c=Ye(t.state.errorLog$),m=c.length?`
6
+ "use strict";var wh=Object.create;var ds=Object.defineProperty,kh=Object.defineProperties,Ch=Object.getOwnPropertyDescriptor,Sh=Object.getOwnPropertyDescriptors,Th=Object.getOwnPropertyNames,Wf=Object.getOwnPropertySymbols,Ih=Object.getPrototypeOf,Kf=Object.prototype.hasOwnProperty,Ph=Object.prototype.propertyIsEnumerable;var fa=(i,e,t)=>e in i?ds(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Qe=(i,e)=>{for(var t in e||(e={}))Kf.call(e,t)&&fa(i,t,e[t]);if(Wf)for(var t of Wf(e))Ph.call(e,t)&&fa(i,t,e[t]);return i},kt=(i,e)=>kh(i,Sh(e));var Eh=(i,e)=>{for(var t in e)ds(i,t,{get:e[t],enumerable:!0})},xf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Th(e))!Kf.call(i,o)&&o!==t&&ds(i,o,{get:()=>e[o],enumerable:!(n=Ch(e,o))||n.enumerable});return i};var jf=(i,e,t)=>(t=i!=null?wh(Ih(i)):{},xf(e||!i||!i.__esModule?ds(t,"default",{value:i,enumerable:!0}):t,i)),Ah=i=>xf(ds({},"__esModule",{value:!0}),i);var Ai=(i,e,t)=>fa(i,typeof e!="symbol"?e+"":e,t);var pt=(i,e,t)=>new Promise((n,o)=>{var r=l=>{try{a(t.next(l))}catch(u){o(u)}},s=l=>{try{a(t.throw(l))}catch(u){o(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,s);a((t=t.apply(i,e)).next())});var cy={};Eh(cy,{ControlButtonType:()=>ws,GridTypes:()=>_o,InterfaceLanguage:()=>os.InterfaceLanguage,MenuItemType:()=>vs,VERSION:()=>ur,VKNumericLanguage:()=>os.VKNumericLanguage,VideoFormat:()=>sa.VideoFormat,VideoQuality:()=>sa.VideoQuality,loadVKLangPack:()=>os.loadVKLangPack,registerPlayerWebComponent:()=>uy});module.exports=Ah(cy);function me(){}function se(i,e){for(let t in e)i[t]=e[t];return i}function da(i){return i()}function Ds(){return Object.create(null)}function ft(i){i.forEach(da)}function ei(i){return typeof i=="function"}function B(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Ns;function So(i,e){return i===e?!0:(Ns||(Ns=document.createElement("a")),Ns.href=e,i===Ns.href)}function Gf(i){return Object.keys(i).length===0}function ti(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ye(i){let e;return ti(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push(ti(e,t))}function Le(i,e,t,n){if(i){let o=Yf(i,e,t,n);return i[0](o)}}function Yf(i,e,t,n){return i[1]&&n?se(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let s=Yf(e,t,n,r);i.p(s,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Qf(i){return i==null?"":i}function Pr(i){return i&&ei(i.destroy)?i.destroy:me}var or=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Os=class i{constructor(e){Ai(this,"_listeners","WeakMap"in or?new WeakMap:void 0);Ai(this,"_observer");Ai(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};Os.entries="WeakMap"in or?new WeakMap:void 0;var Zf=!1;function Xf(){Zf=!0}function Jf(){Zf=!1}function _(i,e){i.appendChild(e)}function be(i,e,t){let n=$f(i);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=t,Vh(n,o)}}function $f(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function Vh(i,e){return _(i.head||i,e),e.sheet}function w(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function ui(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function I(i){return document.createElement(i)}function M(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function qe(i){return document.createTextNode(i)}function Y(){return qe(" ")}function Je(){return qe("")}function ke(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ci(i){return function(e){return e.preventDefault(),i.call(this,e)}}function wt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)f(i,t,e[t])}function ed(i){return Array.from(i.childNodes)}function Ge(i,e){e=""+e,i.data!==e&&(i.data=e)}function gi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function G(i,e,t){i.classList.toggle(e,!!t)}function td(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ht(i,e){return new i(e)}var Do;function To(i){Do=i}function Er(){if(!Do)throw new Error("Function called outside component initialization");return Do}function Ot(i){Er().$$.on_mount.push(i)}function io(i){Er().$$.on_destroy.push(i)}function Ar(i,e){return Er().$$.context.set(i,e),e}function Mr(i){return Er().$$.context.get(i)}function ms(){return Er().$$.context}function Hn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var rr=[];var ve=[],Vr=[],pa=[],nd=Promise.resolve(),_a=!1;function ha(){_a||(_a=!0,nd.then(Fs))}function no(){return ha(),nd}function ps(i){Vr.push(i)}function Ue(i){pa.push(i)}var ma=new Set,Lr=0;function Fs(){if(Lr!==0)return;let i=Do;do{try{for(;Lr<rr.length;){let e=rr[Lr];Lr++,To(e),Fh(e.$$)}}catch(e){throw rr.length=0,Lr=0,e}for(To(null),rr.length=0,Lr=0;ve.length;)ve.pop()();for(let e=0;e<Vr.length;e+=1){let t=Vr[e];ma.has(t)||(ma.add(t),t())}Vr.length=0}while(rr.length);for(;pa.length;)pa.pop()();_a=!1,ma.clear(),To(i)}function Fh(i){if(i.fragment!==null){i.update(),ft(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(ps)}}function od(i){let e=[],t=[];Vr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Vr=e}var Hs=new Set,sr;function ae(){sr={r:0,c:[],p:sr}}function ue(){sr.r||ft(sr.c),sr=sr.p}function d(i,e){i&&i.i&&(Hs.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Hs.has(i))return;Hs.add(i),sr.c.push(()=>{Hs.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Ct(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function He(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Oo(i){return typeof i=="object"&&i!==null?i:{}}var Hh=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],qh=new Set([...Hh]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function L(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),ps(()=>{let r=i.$$.on_mount.map(da).filter(ei);i.$$.on_destroy?i.$$.on_destroy.push(...r):ft(r),i.$$.on_mount=[]}),o.forEach(ps)}function V(i,e){let t=i.$$;t.fragment!==null&&(od(t.after_update),ft(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function zh(i,e){i.$$.dirty[0]===-1&&(rr.push(i),ha(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,s=null,a=[-1]){let l=Do;To(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:Ds(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Ds(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...C)=>{let g=C.length?C[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&zh(i,m)),h}):[],u.update(),c=!0,ft(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Xf();let m=ed(e.target);u.fragment&&u.fragment.l(m),m.forEach(y)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),L(i,e.target,e.anchor),Jf(),Fs()}To(l)}var Wh;typeof HTMLElement=="function"&&(Wh=class extends HTMLElement{constructor(e,t,n){super();Ai(this,"$$ctor");Ai(this,"$$s");Ai(this,"$$c");Ai(this,"$$cn",!1);Ai(this,"$$d",{});Ai(this,"$$r",!1);Ai(this,"$$p_d",{});Ai(this,"$$l",{});Ai(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return pt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=I("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){w(c,a,m)},d:function(c){c&&y(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=td(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=ga(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:kt(Qe({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=ga(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=ga(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ga(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){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(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var N=class{constructor(){Ai(this,"$$");Ai(this,"$$set")}$destroy(){V(this,1),this.$destroy=me}$on(e,t){if(!ei(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Gf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var rd="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(rd);var ZF=require("@vkontakte/videoplayer-core"),Zn=require("@vkontakte/videoplayer-shared"),nh=require("@vkontakte/videoplayer-statistics");var Rr=require("@vkontakte/videoplayer-shared");var Kh={isMobile:void 0,defaultLanguage:Rr.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:Rr.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,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,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,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,autoplayNext:!0},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},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},sd=i=>(0,Rr.fillWithDefault)(i,Kh),ld=i=>Ar("ui-config",i),Zt=()=>Mr("ui-config");var _s="vk_player_debug_panel_opened";var ad="videoplayer",ud="videoplayer";var po={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},cd=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),fd=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),dd=new Set(["ShiftRight","ShiftLeft"]);var md=["TIMELINE"],hs=[...md,"GRAPH_BUTTON"],ba=[...md,"PLAY_BUTTON"],qs=[...hs,"PLAY_BUTTON"];var _o=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(_o||{}),ar={xs:0,s:1,m:2,l:3,xl:4};var Br=[];function Yn(i,e){return{subscribe:Oe(i,e).subscribe}}function Oe(i,e=me){let t,n=new Set;function o(a){if(B(i,a)&&(i=a,t)){let l=!Br.length;for(let u of n)u[1](),Br.push(u,i);if(l){for(let u=0;u<Br.length;u+=2)Br[u][0](Br[u+1]);Br.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function ii(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Yn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=ei(g)?g:me},C=o.map((g,S)=>ti(g,k=>{u[S]=k,c&=~(1<<S),l&&h()},()=>{c|=1<<S}));return l=!0,h(),function(){ft(C),m(),l=!1}})}var gs=require("@vkontakte/videoplayer-shared"),pd=require("@vkontakte/videoplayer-core"),_d=require("@vkontakte/videoplayer-statistics");var Us="prod",ur="1.1.48-dev.e2b9d2a6.0";var cr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var hd=Symbol("storeContext"),gd=Symbol("microStoresContext"),bd=(i,e)=>{Ar(hd,i),Ar(gd,e),Us==="dev"&&(window.app={store:i,microStores:e})},ot=()=>{let i=Mr(hd);return(0,gs.assertNonNullable)(i,"Store context is empty!"),i},qn=()=>{let i=Mr(gd);return(0,gs.assertNonNullable)(i,"MicroStores context is empty!"),i},At=(i,e)=>va(i,i.getValue(),e),va=(i,e,t)=>Yn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),vd=(i,e,t)=>{var F,T,v,E,H,U;let n=i.info,{width:o,height:r}=Ye(t.ui.playerSize),s=(T=(F=n.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?T:0,a=(E=(v=n.rttEstimation$.getValue())==null?void 0:v.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${ur} (core: ${pd.VERSION}, stat: ${_d.VERSION}, shared: ${gs.VERSION})`,c=Ye(t.state.errorLog$),m=c.length?`
7
7
  `+c.map((W,ne)=>{var oe;let de=`${ne}) Type: ${W.id}
8
8
  `,q=`Message: ${W.message} (${W.thrown})
9
9
  `,X=`Trace: ${(oe=W.thrown)==null?void 0:oe.stack}
package/es2015.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.48-dev.bc5f783d.0
3
- * Fri, 18 Oct 2024 09:42:46 GMT
2
+ * @vkontakte/videoplayer v1.1.48-dev.e2b9d2a6.0
3
+ * Mon, 21 Oct 2024 21:48:44 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-48/doc/
5
5
  */
6
- var K_=Object.defineProperty,x_=Object.defineProperties;var j_=Object.getOwnPropertyDescriptors;var Ef=Object.getOwnPropertySymbols;var G_=Object.prototype.hasOwnProperty,Y_=Object.prototype.propertyIsEnumerable;var Jl=(i,e,t)=>e in i?K_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Qe=(i,e)=>{for(var t in e||(e={}))G_.call(e,t)&&Jl(i,t,e[t]);if(Ef)for(var t of Ef(e))Y_.call(e,t)&&Jl(i,t,e[t]);return i},yt=(i,e)=>x_(i,j_(e));var Pi=(i,e,t)=>Jl(i,typeof e!="symbol"?e+"":e,t);var mt=(i,e,t)=>new Promise((n,o)=>{var r=l=>{try{a(t.next(l))}catch(u){o(u)}},s=l=>{try{a(t.throw(l))}catch(u){o(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,s);a((t=t.apply(i,e)).next())});function me(){}function se(i,e){for(let t in e)i[t]=e[t];return i}function $l(i){return i()}function ws(){return Object.create(null)}function ft(i){i.forEach($l)}function Jt(i){return typeof i=="function"}function B(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var ys;function vo(i,e){return i===e?!0:(ys||(ys=document.createElement("a")),ys.href=e,i===ys.href)}function Af(i){return Object.keys(i).length===0}function $t(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ye(i){let e;return $t(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push($t(e,t))}function Le(i,e,t,n){if(i){let o=Mf(i,e,t,n);return i[0](o)}}function Mf(i,e,t,n){return i[1]&&n?se(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let s=Mf(e,t,n,r);i.p(s,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Lf(i){return i==null?"":i}function vr(i){return i&&Jt(i.destroy)?i.destroy:me}var er=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var ks=class i{constructor(e){Pi(this,"_listeners","WeakMap"in er?new WeakMap:void 0);Pi(this,"_observer");Pi(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};ks.entries="WeakMap"in er?new WeakMap:void 0;var Vf=!1;function Rf(){Vf=!0}function Bf(){Vf=!1}function _(i,e){i.appendChild(e)}function be(i,e,t){let n=Nf(i);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=t,X_(n,o)}}function Nf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function X_(i,e){return _(i.head||i,e),e.sheet}function w(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function li(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function I(i){return document.createElement(i)}function M(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function qe(i){return document.createTextNode(i)}function Y(){return qe(" ")}function Je(){return qe("")}function ke(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ai(i){return function(e){return e.preventDefault(),i.call(this,e)}}function vt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)f(i,t,e[t])}function Df(i){return Array.from(i.childNodes)}function Ge(i,e){e=""+e,i.data!==e&&(i.data=e)}function _i(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function G(i,e,t){i.classList.toggle(e,!!t)}function Of(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ot(i,e){return new i(e)}var Lo;function yo(i){Lo=i}function yr(){if(!Lo)throw new Error("Function called outside component initialization");return Lo}function Nt(i){yr().$$.on_mount.push(i)}function $n(i){yr().$$.on_destroy.push(i)}function wr(i,e){return yr().$$.context.set(i,e),e}function kr(i){return yr().$$.context.get(i)}function Xr(){return yr().$$.context}function Dn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var tr=[];var ve=[],Sr=[],ta=[],Hf=Promise.resolve(),ia=!1;function na(){ia||(ia=!0,Hf.then(Cs))}function eo(){return na(),Hf}function Jr(i){Sr.push(i)}function Ue(i){ta.push(i)}var ea=new Set,Cr=0;function Cs(){if(Cr!==0)return;let i=Lo;do{try{for(;Cr<tr.length;){let e=tr[Cr];Cr++,yo(e),nh(e.$$)}}catch(e){throw tr.length=0,Cr=0,e}for(yo(null),tr.length=0,Cr=0;ve.length;)ve.pop()();for(let e=0;e<Sr.length;e+=1){let t=Sr[e];ea.has(t)||(ea.add(t),t())}Sr.length=0}while(tr.length);for(;ta.length;)ta.pop()();ia=!1,ea.clear(),yo(i)}function nh(i){if(i.fragment!==null){i.update(),ft(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Jr)}}function qf(i){let e=[],t=[];Sr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Sr=e}var Ss=new Set,ir;function ae(){ir={r:0,c:[],p:ir}}function ue(){ir.r||ft(ir.c),ir=ir.p}function d(i,e){i&&i.i&&(Ss.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Ss.has(i))return;Ss.add(i),ir.c.push(()=>{Ss.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function wt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function He(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Vo(i){return typeof i=="object"&&i!==null?i:{}}var oh=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],rh=new Set([...oh]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function L(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Jr(()=>{let r=i.$$.on_mount.map($l).filter(Jt);i.$$.on_destroy?i.$$.on_destroy.push(...r):ft(r),i.$$.on_mount=[]}),o.forEach(Jr)}function V(i,e){let t=i.$$;t.fragment!==null&&(qf(t.after_update),ft(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function lh(i,e){i.$$.dirty[0]===-1&&(tr.push(i),na(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,s=null,a=[-1]){let l=Lo;yo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:ws(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:ws(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...C)=>{let g=C.length?C[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&lh(i,m)),h}):[],u.update(),c=!0,ft(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Rf();let m=Df(e.target);u.fragment&&u.fragment.l(m),m.forEach(y)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),L(i,e.target,e.anchor),Bf(),Cs()}yo(l)}var ah;typeof HTMLElement=="function"&&(ah=class extends HTMLElement{constructor(e,t,n){super();Pi(this,"$$ctor");Pi(this,"$$s");Pi(this,"$$c");Pi(this,"$$cn",!1);Pi(this,"$$d",{});Pi(this,"$$r",!1);Pi(this,"$$p_d",{});Pi(this,"$$l",{});Pi(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return mt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=I("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){w(c,a,m)},d:function(c){c&&y(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Of(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=oa(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:yt(Qe({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=oa(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=oa(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function oa(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){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(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var N=class{constructor(){Pi(this,"$$");Pi(this,"$$set")}$destroy(){V(this,1),this.$destroy=me}$on(e,t){if(!Jt(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Af(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Uf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Uf);import"@vkontakte/videoplayer-core";import{noop as as,safeStorage as ny,throttleFn as oy,clientChecker as ry}from"@vkontakte/videoplayer-shared";import{SeekAction as sy}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as uh,fillWithDefault as ch,VideoQuality as fh}from"@vkontakte/videoplayer-shared";var dh={isMobile:void 0,defaultLanguage:uh.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:fh.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,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,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,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,autoplayNext:!0},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},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},zf=i=>ch(i,dh),Wf=i=>wr("ui-config",i),Yt=()=>kr("ui-config");var $r="vk_player_debug_panel_opened";var Kf="videoplayer",xf="videoplayer";var fo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},jf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Gf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Yf=new Set(["ShiftRight","ShiftLeft"]);var Qf=["TIMELINE"],es=[...Qf,"GRAPH_BUTTON"],ra=[...Qf,"PLAY_BUTTON"],Ts=[...es,"PLAY_BUTTON"];var wo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(wo||{}),or={xs:0,s:1,m:2,l:3,xl:4};var Tr=[];function jn(i,e){return{subscribe:Oe(i,e).subscribe}}function Oe(i,e=me){let t,n=new Set;function o(a){if(B(i,a)&&(i=a,t)){let l=!Tr.length;for(let u of n)u[1](),Tr.push(u,i);if(l){for(let u=0;u<Tr.length;u+=2)Tr[u][0](Tr[u+1]);Tr.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function ei(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return jn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=Jt(g)?g:me},C=o.map((g,S)=>$t(g,k=>{u[S]=k,c&=~(1<<S),l&&h()},()=>{c|=1<<S}));return l=!0,h(),function(){ft(C),m(),l=!1}})}import{assertNonNullable as Zf,VERSION as mh}from"@vkontakte/videoplayer-shared";import{VERSION as ph}from"@vkontakte/videoplayer-core";import{VERSION as _h}from"@vkontakte/videoplayer-statistics";var Is="prod",Ir="1.1.48-dev.bc5f783d.0";var rr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Xf=Symbol("storeContext"),Jf=Symbol("microStoresContext"),$f=(i,e)=>{wr(Xf,i),wr(Jf,e),Is==="dev"&&(window.app={store:i,microStores:e})},ot=()=>{let i=kr(Xf);return Zf(i,"Store context is empty!"),i},On=()=>{let i=kr(Jf);return Zf(i,"MicroStores context is empty!"),i},Pt=(i,e)=>sa(i,i.getValue(),e),sa=(i,e,t)=>jn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),ed=(i,e,t)=>{var F,T,v,E,H,U;let n=i.info,{width:o,height:r}=Ye(t.ui.playerSize),s=(T=(F=n.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?T:0,a=(E=(v=n.rttEstimation$.getValue())==null?void 0:v.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Ir} (core: ${ph}, stat: ${_h}, shared: ${mh})`,c=Ye(t.state.errorLog$),m=c.length?`
6
+ var K_=Object.defineProperty,x_=Object.defineProperties;var j_=Object.getOwnPropertyDescriptors;var Ef=Object.getOwnPropertySymbols;var G_=Object.prototype.hasOwnProperty,Y_=Object.prototype.propertyIsEnumerable;var Jl=(i,e,t)=>e in i?K_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Qe=(i,e)=>{for(var t in e||(e={}))G_.call(e,t)&&Jl(i,t,e[t]);if(Ef)for(var t of Ef(e))Y_.call(e,t)&&Jl(i,t,e[t]);return i},yt=(i,e)=>x_(i,j_(e));var Pi=(i,e,t)=>Jl(i,typeof e!="symbol"?e+"":e,t);var mt=(i,e,t)=>new Promise((n,o)=>{var r=l=>{try{a(t.next(l))}catch(u){o(u)}},s=l=>{try{a(t.throw(l))}catch(u){o(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,s);a((t=t.apply(i,e)).next())});function me(){}function se(i,e){for(let t in e)i[t]=e[t];return i}function $l(i){return i()}function ws(){return Object.create(null)}function ft(i){i.forEach($l)}function Jt(i){return typeof i=="function"}function B(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var ys;function vo(i,e){return i===e?!0:(ys||(ys=document.createElement("a")),ys.href=e,i===ys.href)}function Af(i){return Object.keys(i).length===0}function $t(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ye(i){let e;return $t(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push($t(e,t))}function Le(i,e,t,n){if(i){let o=Mf(i,e,t,n);return i[0](o)}}function Mf(i,e,t,n){return i[1]&&n?se(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let s=Mf(e,t,n,r);i.p(s,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Lf(i){return i==null?"":i}function vr(i){return i&&Jt(i.destroy)?i.destroy:me}var er=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var ks=class i{constructor(e){Pi(this,"_listeners","WeakMap"in er?new WeakMap:void 0);Pi(this,"_observer");Pi(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};ks.entries="WeakMap"in er?new WeakMap:void 0;var Vf=!1;function Rf(){Vf=!0}function Bf(){Vf=!1}function _(i,e){i.appendChild(e)}function be(i,e,t){let n=Nf(i);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=t,X_(n,o)}}function Nf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function X_(i,e){return _(i.head||i,e),e.sheet}function w(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function li(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function I(i){return document.createElement(i)}function M(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function qe(i){return document.createTextNode(i)}function Y(){return qe(" ")}function Je(){return qe("")}function ke(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ai(i){return function(e){return e.preventDefault(),i.call(this,e)}}function vt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)f(i,t,e[t])}function Df(i){return Array.from(i.childNodes)}function Ge(i,e){e=""+e,i.data!==e&&(i.data=e)}function _i(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function G(i,e,t){i.classList.toggle(e,!!t)}function Of(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ot(i,e){return new i(e)}var Lo;function yo(i){Lo=i}function yr(){if(!Lo)throw new Error("Function called outside component initialization");return Lo}function Nt(i){yr().$$.on_mount.push(i)}function $n(i){yr().$$.on_destroy.push(i)}function wr(i,e){return yr().$$.context.set(i,e),e}function kr(i){return yr().$$.context.get(i)}function Xr(){return yr().$$.context}function Dn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var tr=[];var ve=[],Sr=[],ta=[],Hf=Promise.resolve(),ia=!1;function na(){ia||(ia=!0,Hf.then(Cs))}function eo(){return na(),Hf}function Jr(i){Sr.push(i)}function Ue(i){ta.push(i)}var ea=new Set,Cr=0;function Cs(){if(Cr!==0)return;let i=Lo;do{try{for(;Cr<tr.length;){let e=tr[Cr];Cr++,yo(e),nh(e.$$)}}catch(e){throw tr.length=0,Cr=0,e}for(yo(null),tr.length=0,Cr=0;ve.length;)ve.pop()();for(let e=0;e<Sr.length;e+=1){let t=Sr[e];ea.has(t)||(ea.add(t),t())}Sr.length=0}while(tr.length);for(;ta.length;)ta.pop()();ia=!1,ea.clear(),yo(i)}function nh(i){if(i.fragment!==null){i.update(),ft(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Jr)}}function qf(i){let e=[],t=[];Sr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Sr=e}var Ss=new Set,ir;function ae(){ir={r:0,c:[],p:ir}}function ue(){ir.r||ft(ir.c),ir=ir.p}function d(i,e){i&&i.i&&(Ss.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Ss.has(i))return;Ss.add(i),ir.c.push(()=>{Ss.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function wt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function He(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Vo(i){return typeof i=="object"&&i!==null?i:{}}var oh=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],rh=new Set([...oh]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function L(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Jr(()=>{let r=i.$$.on_mount.map($l).filter(Jt);i.$$.on_destroy?i.$$.on_destroy.push(...r):ft(r),i.$$.on_mount=[]}),o.forEach(Jr)}function V(i,e){let t=i.$$;t.fragment!==null&&(qf(t.after_update),ft(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function lh(i,e){i.$$.dirty[0]===-1&&(tr.push(i),na(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,s=null,a=[-1]){let l=Lo;yo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:ws(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:ws(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...C)=>{let g=C.length?C[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&lh(i,m)),h}):[],u.update(),c=!0,ft(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Rf();let m=Df(e.target);u.fragment&&u.fragment.l(m),m.forEach(y)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),L(i,e.target,e.anchor),Bf(),Cs()}yo(l)}var ah;typeof HTMLElement=="function"&&(ah=class extends HTMLElement{constructor(e,t,n){super();Pi(this,"$$ctor");Pi(this,"$$s");Pi(this,"$$c");Pi(this,"$$cn",!1);Pi(this,"$$d",{});Pi(this,"$$r",!1);Pi(this,"$$p_d",{});Pi(this,"$$l",{});Pi(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return mt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=I("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){w(c,a,m)},d:function(c){c&&y(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Of(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=oa(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:yt(Qe({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=oa(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=oa(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function oa(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){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(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var N=class{constructor(){Pi(this,"$$");Pi(this,"$$set")}$destroy(){V(this,1),this.$destroy=me}$on(e,t){if(!Jt(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Af(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Uf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Uf);import"@vkontakte/videoplayer-core";import{noop as as,safeStorage as ny,throttleFn as oy,clientChecker as ry}from"@vkontakte/videoplayer-shared";import{SeekAction as sy}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as uh,fillWithDefault as ch,VideoQuality as fh}from"@vkontakte/videoplayer-shared";var dh={isMobile:void 0,defaultLanguage:uh.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:fh.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,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,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,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,autoplayNext:!0},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},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},zf=i=>ch(i,dh),Wf=i=>wr("ui-config",i),Yt=()=>kr("ui-config");var $r="vk_player_debug_panel_opened";var Kf="videoplayer",xf="videoplayer";var fo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},jf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Gf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Yf=new Set(["ShiftRight","ShiftLeft"]);var Qf=["TIMELINE"],es=[...Qf,"GRAPH_BUTTON"],ra=[...Qf,"PLAY_BUTTON"],Ts=[...es,"PLAY_BUTTON"];var wo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(wo||{}),or={xs:0,s:1,m:2,l:3,xl:4};var Tr=[];function jn(i,e){return{subscribe:Oe(i,e).subscribe}}function Oe(i,e=me){let t,n=new Set;function o(a){if(B(i,a)&&(i=a,t)){let l=!Tr.length;for(let u of n)u[1](),Tr.push(u,i);if(l){for(let u=0;u<Tr.length;u+=2)Tr[u][0](Tr[u+1]);Tr.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function ei(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return jn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=Jt(g)?g:me},C=o.map((g,S)=>$t(g,k=>{u[S]=k,c&=~(1<<S),l&&h()},()=>{c|=1<<S}));return l=!0,h(),function(){ft(C),m(),l=!1}})}import{assertNonNullable as Zf,VERSION as mh}from"@vkontakte/videoplayer-shared";import{VERSION as ph}from"@vkontakte/videoplayer-core";import{VERSION as _h}from"@vkontakte/videoplayer-statistics";var Is="prod",Ir="1.1.48-dev.e2b9d2a6.0";var rr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Xf=Symbol("storeContext"),Jf=Symbol("microStoresContext"),$f=(i,e)=>{wr(Xf,i),wr(Jf,e),Is==="dev"&&(window.app={store:i,microStores:e})},ot=()=>{let i=kr(Xf);return Zf(i,"Store context is empty!"),i},On=()=>{let i=kr(Jf);return Zf(i,"MicroStores context is empty!"),i},Pt=(i,e)=>sa(i,i.getValue(),e),sa=(i,e,t)=>jn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),ed=(i,e,t)=>{var F,T,v,E,H,U;let n=i.info,{width:o,height:r}=Ye(t.ui.playerSize),s=(T=(F=n.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?T:0,a=(E=(v=n.rttEstimation$.getValue())==null?void 0:v.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Ir} (core: ${ph}, stat: ${_h}, shared: ${mh})`,c=Ye(t.state.errorLog$),m=c.length?`
7
7
  `+c.map((W,ne)=>{var oe;let de=`${ne}) Type: ${W.id}
8
8
  `,q=`Message: ${W.message} (${W.thrown})
9
9
  `,X=`Trace: ${(oe=W.thrown)==null?void 0:oe.stack}
package/es2018.cjs.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.48-dev.bc5f783d.0
3
- * Fri, 18 Oct 2024 09:42:46 GMT
2
+ * @vkontakte/videoplayer v1.1.48-dev.e2b9d2a6.0
3
+ * Mon, 21 Oct 2024 21:48:44 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-48/doc/
5
5
  */
6
- "use strict";var _h=Object.create;var us=Object.defineProperty;var hh=Object.getOwnPropertyDescriptor;var gh=Object.getOwnPropertyNames;var bh=Object.getPrototypeOf,vh=Object.prototype.hasOwnProperty;var yh=(i,e,t)=>e in i?us(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var wh=(i,e)=>{for(var t in e)us(i,t,{get:e[t],enumerable:!0})},Hf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of gh(e))!vh.call(i,o)&&o!==t&&us(i,o,{get:()=>e[o],enumerable:!(n=hh(e,o))||n.enumerable});return i};var qf=(i,e,t)=>(t=i!=null?_h(bh(i)):{},Hf(e||!i||!i.__esModule?us(t,"default",{value:i,enumerable:!0}):t,i)),kh=i=>Hf(us({},"__esModule",{value:!0}),i);var Ii=(i,e,t)=>yh(i,typeof e!="symbol"?e+"":e,t);var ny={};wh(ny,{ControlButtonType:()=>bs,GridTypes:()=>fo,InterfaceLanguage:()=>ts.InterfaceLanguage,MenuItemType:()=>hs,VERSION:()=>sr,VKNumericLanguage:()=>ts.VKNumericLanguage,VideoFormat:()=>na.VideoFormat,VideoQuality:()=>na.VideoQuality,loadVKLangPack:()=>ts.loadVKLangPack,registerPlayerWebComponent:()=>iy});module.exports=kh(ny);function me(){}function se(i,e){for(let t in e)i[t]=e[t];return i}function aa(i){return i()}function Rs(){return Object.create(null)}function ct(i){i.forEach(aa)}function Xt(i){return typeof i=="function"}function B(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Vs;function wo(i,e){return i===e?!0:(Vs||(Vs=document.createElement("a")),Vs.href=e,i===Vs.href)}function Uf(i){return Object.keys(i).length===0}function Jt(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ye(i){let e;return Jt(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push(Jt(e,t))}function Le(i,e,t,n){if(i){let o=zf(i,e,t,n);return i[0](o)}}function zf(i,e,t,n){return i[1]&&n?se(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let s=zf(e,t,n,r);i.p(s,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Wf(i){return i==null?"":i}function Sr(i){return i&&Xt(i.destroy)?i.destroy:me}var tr=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Bs=class i{constructor(e){Ii(this,"_listeners","WeakMap"in tr?new WeakMap:void 0);Ii(this,"_observer");Ii(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};Bs.entries="WeakMap"in tr?new WeakMap:void 0;var Kf=!1;function xf(){Kf=!0}function jf(){Kf=!1}function _(i,e){i.appendChild(e)}function be(i,e,t){let n=Gf(i);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=t,Th(n,o)}}function Gf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function Th(i,e){return _(i.head||i,e),e.sheet}function w(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function si(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function I(i){return document.createElement(i)}function M(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function qe(i){return document.createTextNode(i)}function Y(){return qe(" ")}function Xe(){return qe("")}function ke(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function li(i){return function(e){return e.preventDefault(),i.call(this,e)}}function vt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)f(i,t,e[t])}function Yf(i){return Array.from(i.childNodes)}function Ge(i,e){e=""+e,i.data!==e&&(i.data=e)}function pi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function G(i,e,t){i.classList.toggle(e,!!t)}function Qf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Dt(i,e){return new i(e)}var Ro;function ko(i){Ro=i}function Tr(){if(!Ro)throw new Error("Function called outside component initialization");return Ro}function Bt(i){Tr().$$.on_mount.push(i)}function $n(i){Tr().$$.on_destroy.push(i)}function Ir(i,e){return Tr().$$.context.set(i,e),e}function Pr(i){return Tr().$$.context.get(i)}function cs(){return Tr().$$.context}function Dn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var ir=[];var ve=[],Ar=[],ca=[],Xf=Promise.resolve(),fa=!1;function da(){fa||(fa=!0,Xf.then(Ns))}function eo(){return da(),Xf}function fs(i){Ar.push(i)}function Ue(i){ca.push(i)}var ua=new Set,Er=0;function Ns(){if(Er!==0)return;let i=Ro;do{try{for(;Er<ir.length;){let e=ir[Er];Er++,ko(e),Lh(e.$$)}}catch(e){throw ir.length=0,Er=0,e}for(ko(null),ir.length=0,Er=0;ve.length;)ve.pop()();for(let e=0;e<Ar.length;e+=1){let t=Ar[e];ua.has(t)||(ua.add(t),t())}Ar.length=0}while(ir.length);for(;ca.length;)ca.pop()();fa=!1,ua.clear(),ko(i)}function Lh(i){if(i.fragment!==null){i.update(),ct(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(fs)}}function Jf(i){let e=[],t=[];Ar.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Ar=e}var Ds=new Set,nr;function ae(){nr={r:0,c:[],p:nr}}function ue(){nr.r||ct(nr.c),nr=nr.p}function d(i,e){i&&i.i&&(Ds.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Ds.has(i))return;Ds.add(i),nr.c.push(()=>{Ds.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function yt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function He(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Bo(i){return typeof i=="object"&&i!==null?i:{}}var Vh=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],Rh=new Set([...Vh]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function L(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),fs(()=>{let r=i.$$.on_mount.map(aa).filter(Xt);i.$$.on_destroy?i.$$.on_destroy.push(...r):ct(r),i.$$.on_mount=[]}),o.forEach(fs)}function V(i,e){let t=i.$$;t.fragment!==null&&(Jf(t.after_update),ct(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Nh(i,e){i.$$.dirty[0]===-1&&(ir.push(i),da(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,s=null,a=[-1]){let l=Ro;ko(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:Rs(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Rs(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...C)=>{let g=C.length?C[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&Nh(i,m)),h}):[],u.update(),c=!0,ct(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){xf();let m=Yf(e.target);u.fragment&&u.fragment.l(m),m.forEach(y)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),L(i,e.target,e.anchor),jf(),Ns()}ko(l)}var Dh;typeof HTMLElement=="function"&&(Dh=class extends HTMLElement{constructor(e,t,n){super();Ii(this,"$$ctor");Ii(this,"$$s");Ii(this,"$$c");Ii(this,"$$cn",!1);Ii(this,"$$d",{});Ii(this,"$$r",!1);Ii(this,"$$p_d",{});Ii(this,"$$l",{});Ii(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=I("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){w(c,a,m)},d:function(c){c&&y(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Qf(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=ma(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=ma(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=ma(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ma(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){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(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var N=class{constructor(){Ii(this,"$$");Ii(this,"$$set")}$destroy(){V(this,1),this.$destroy=me}$on(e,t){if(!Xt(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Uf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var $f="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add($f);var TF=require("@vkontakte/videoplayer-core"),Gn=require("@vkontakte/videoplayer-shared"),X_=require("@vkontakte/videoplayer-statistics");var Mr=require("@vkontakte/videoplayer-shared");var Oh={isMobile:void 0,defaultLanguage:Mr.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:Mr.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,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,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,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,autoplayNext:!0},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},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},ed=i=>(0,Mr.fillWithDefault)(i,Oh),td=i=>Ir("ui-config",i),Gt=()=>Pr("ui-config");var ds="vk_player_debug_panel_opened";var id="videoplayer",nd="videoplayer";var co={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},od=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),rd=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),sd=new Set(["ShiftRight","ShiftLeft"]);var ld=["TIMELINE"],ms=[...ld,"GRAPH_BUTTON"],pa=[...ld,"PLAY_BUTTON"],Os=[...ms,"PLAY_BUTTON"];var fo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(fo||{}),rr={xs:0,s:1,m:2,l:3,xl:4};var Lr=[];function xn(i,e){return{subscribe:Oe(i,e).subscribe}}function Oe(i,e=me){let t,n=new Set;function o(a){if(B(i,a)&&(i=a,t)){let l=!Lr.length;for(let u of n)u[1](),Lr.push(u,i);if(l){for(let u=0;u<Lr.length;u+=2)Lr[u][0](Lr[u+1]);Lr.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function $t(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return xn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=Xt(g)?g:me},C=o.map((g,S)=>Jt(g,k=>{u[S]=k,c&=~(1<<S),l&&h()},()=>{c|=1<<S}));return l=!0,h(),function(){ct(C),m(),l=!1}})}var ps=require("@vkontakte/videoplayer-shared"),ad=require("@vkontakte/videoplayer-core"),ud=require("@vkontakte/videoplayer-statistics");var Fs="prod",sr="1.1.48-dev.bc5f783d.0";var lr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var cd=Symbol("storeContext"),fd=Symbol("microStoresContext"),dd=(i,e)=>{Ir(cd,i),Ir(fd,e),Fs==="dev"&&(window.app={store:i,microStores:e})},nt=()=>{let i=Pr(cd);return(0,ps.assertNonNullable)(i,"Store context is empty!"),i},On=()=>{let i=Pr(fd);return(0,ps.assertNonNullable)(i,"MicroStores context is empty!"),i},It=(i,e)=>_a(i,i.getValue(),e),_a=(i,e,t)=>xn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),md=(i,e,t)=>{var F,T,v,E,H,U;let n=i.info,{width:o,height:r}=Ye(t.ui.playerSize),s=(T=(F=n.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?T:0,a=(E=(v=n.rttEstimation$.getValue())==null?void 0:v.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${sr} (core: ${ad.VERSION}, stat: ${ud.VERSION}, shared: ${ps.VERSION})`,c=Ye(t.state.errorLog$),m=c.length?`
6
+ "use strict";var _h=Object.create;var us=Object.defineProperty;var hh=Object.getOwnPropertyDescriptor;var gh=Object.getOwnPropertyNames;var bh=Object.getPrototypeOf,vh=Object.prototype.hasOwnProperty;var yh=(i,e,t)=>e in i?us(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var wh=(i,e)=>{for(var t in e)us(i,t,{get:e[t],enumerable:!0})},Hf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of gh(e))!vh.call(i,o)&&o!==t&&us(i,o,{get:()=>e[o],enumerable:!(n=hh(e,o))||n.enumerable});return i};var qf=(i,e,t)=>(t=i!=null?_h(bh(i)):{},Hf(e||!i||!i.__esModule?us(t,"default",{value:i,enumerable:!0}):t,i)),kh=i=>Hf(us({},"__esModule",{value:!0}),i);var Ii=(i,e,t)=>yh(i,typeof e!="symbol"?e+"":e,t);var ny={};wh(ny,{ControlButtonType:()=>bs,GridTypes:()=>fo,InterfaceLanguage:()=>ts.InterfaceLanguage,MenuItemType:()=>hs,VERSION:()=>sr,VKNumericLanguage:()=>ts.VKNumericLanguage,VideoFormat:()=>na.VideoFormat,VideoQuality:()=>na.VideoQuality,loadVKLangPack:()=>ts.loadVKLangPack,registerPlayerWebComponent:()=>iy});module.exports=kh(ny);function me(){}function se(i,e){for(let t in e)i[t]=e[t];return i}function aa(i){return i()}function Rs(){return Object.create(null)}function ct(i){i.forEach(aa)}function Xt(i){return typeof i=="function"}function B(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Vs;function wo(i,e){return i===e?!0:(Vs||(Vs=document.createElement("a")),Vs.href=e,i===Vs.href)}function Uf(i){return Object.keys(i).length===0}function Jt(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ye(i){let e;return Jt(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push(Jt(e,t))}function Le(i,e,t,n){if(i){let o=zf(i,e,t,n);return i[0](o)}}function zf(i,e,t,n){return i[1]&&n?se(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let s=zf(e,t,n,r);i.p(s,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Wf(i){return i==null?"":i}function Sr(i){return i&&Xt(i.destroy)?i.destroy:me}var tr=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Bs=class i{constructor(e){Ii(this,"_listeners","WeakMap"in tr?new WeakMap:void 0);Ii(this,"_observer");Ii(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};Bs.entries="WeakMap"in tr?new WeakMap:void 0;var Kf=!1;function xf(){Kf=!0}function jf(){Kf=!1}function _(i,e){i.appendChild(e)}function be(i,e,t){let n=Gf(i);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=t,Th(n,o)}}function Gf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function Th(i,e){return _(i.head||i,e),e.sheet}function w(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function si(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function I(i){return document.createElement(i)}function M(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function qe(i){return document.createTextNode(i)}function Y(){return qe(" ")}function Xe(){return qe("")}function ke(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function li(i){return function(e){return e.preventDefault(),i.call(this,e)}}function vt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)f(i,t,e[t])}function Yf(i){return Array.from(i.childNodes)}function Ge(i,e){e=""+e,i.data!==e&&(i.data=e)}function pi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function G(i,e,t){i.classList.toggle(e,!!t)}function Qf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Dt(i,e){return new i(e)}var Ro;function ko(i){Ro=i}function Tr(){if(!Ro)throw new Error("Function called outside component initialization");return Ro}function Bt(i){Tr().$$.on_mount.push(i)}function $n(i){Tr().$$.on_destroy.push(i)}function Ir(i,e){return Tr().$$.context.set(i,e),e}function Pr(i){return Tr().$$.context.get(i)}function cs(){return Tr().$$.context}function Dn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var ir=[];var ve=[],Ar=[],ca=[],Xf=Promise.resolve(),fa=!1;function da(){fa||(fa=!0,Xf.then(Ns))}function eo(){return da(),Xf}function fs(i){Ar.push(i)}function Ue(i){ca.push(i)}var ua=new Set,Er=0;function Ns(){if(Er!==0)return;let i=Ro;do{try{for(;Er<ir.length;){let e=ir[Er];Er++,ko(e),Lh(e.$$)}}catch(e){throw ir.length=0,Er=0,e}for(ko(null),ir.length=0,Er=0;ve.length;)ve.pop()();for(let e=0;e<Ar.length;e+=1){let t=Ar[e];ua.has(t)||(ua.add(t),t())}Ar.length=0}while(ir.length);for(;ca.length;)ca.pop()();fa=!1,ua.clear(),ko(i)}function Lh(i){if(i.fragment!==null){i.update(),ct(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(fs)}}function Jf(i){let e=[],t=[];Ar.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Ar=e}var Ds=new Set,nr;function ae(){nr={r:0,c:[],p:nr}}function ue(){nr.r||ct(nr.c),nr=nr.p}function d(i,e){i&&i.i&&(Ds.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Ds.has(i))return;Ds.add(i),nr.c.push(()=>{Ds.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function yt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function He(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Bo(i){return typeof i=="object"&&i!==null?i:{}}var Vh=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],Rh=new Set([...Vh]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function L(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),fs(()=>{let r=i.$$.on_mount.map(aa).filter(Xt);i.$$.on_destroy?i.$$.on_destroy.push(...r):ct(r),i.$$.on_mount=[]}),o.forEach(fs)}function V(i,e){let t=i.$$;t.fragment!==null&&(Jf(t.after_update),ct(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Nh(i,e){i.$$.dirty[0]===-1&&(ir.push(i),da(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,s=null,a=[-1]){let l=Ro;ko(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:Rs(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Rs(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...C)=>{let g=C.length?C[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&Nh(i,m)),h}):[],u.update(),c=!0,ct(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){xf();let m=Yf(e.target);u.fragment&&u.fragment.l(m),m.forEach(y)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),L(i,e.target,e.anchor),jf(),Ns()}ko(l)}var Dh;typeof HTMLElement=="function"&&(Dh=class extends HTMLElement{constructor(e,t,n){super();Ii(this,"$$ctor");Ii(this,"$$s");Ii(this,"$$c");Ii(this,"$$cn",!1);Ii(this,"$$d",{});Ii(this,"$$r",!1);Ii(this,"$$p_d",{});Ii(this,"$$l",{});Ii(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=I("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){w(c,a,m)},d:function(c){c&&y(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Qf(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=ma(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=ma(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=ma(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ma(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){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(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var N=class{constructor(){Ii(this,"$$");Ii(this,"$$set")}$destroy(){V(this,1),this.$destroy=me}$on(e,t){if(!Xt(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Uf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var $f="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add($f);var TF=require("@vkontakte/videoplayer-core"),Gn=require("@vkontakte/videoplayer-shared"),X_=require("@vkontakte/videoplayer-statistics");var Mr=require("@vkontakte/videoplayer-shared");var Oh={isMobile:void 0,defaultLanguage:Mr.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:Mr.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,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,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,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,autoplayNext:!0},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},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},ed=i=>(0,Mr.fillWithDefault)(i,Oh),td=i=>Ir("ui-config",i),Gt=()=>Pr("ui-config");var ds="vk_player_debug_panel_opened";var id="videoplayer",nd="videoplayer";var co={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},od=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),rd=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),sd=new Set(["ShiftRight","ShiftLeft"]);var ld=["TIMELINE"],ms=[...ld,"GRAPH_BUTTON"],pa=[...ld,"PLAY_BUTTON"],Os=[...ms,"PLAY_BUTTON"];var fo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(fo||{}),rr={xs:0,s:1,m:2,l:3,xl:4};var Lr=[];function xn(i,e){return{subscribe:Oe(i,e).subscribe}}function Oe(i,e=me){let t,n=new Set;function o(a){if(B(i,a)&&(i=a,t)){let l=!Lr.length;for(let u of n)u[1](),Lr.push(u,i);if(l){for(let u=0;u<Lr.length;u+=2)Lr[u][0](Lr[u+1]);Lr.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function $t(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return xn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=Xt(g)?g:me},C=o.map((g,S)=>Jt(g,k=>{u[S]=k,c&=~(1<<S),l&&h()},()=>{c|=1<<S}));return l=!0,h(),function(){ct(C),m(),l=!1}})}var ps=require("@vkontakte/videoplayer-shared"),ad=require("@vkontakte/videoplayer-core"),ud=require("@vkontakte/videoplayer-statistics");var Fs="prod",sr="1.1.48-dev.e2b9d2a6.0";var lr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var cd=Symbol("storeContext"),fd=Symbol("microStoresContext"),dd=(i,e)=>{Ir(cd,i),Ir(fd,e),Fs==="dev"&&(window.app={store:i,microStores:e})},nt=()=>{let i=Pr(cd);return(0,ps.assertNonNullable)(i,"Store context is empty!"),i},On=()=>{let i=Pr(fd);return(0,ps.assertNonNullable)(i,"MicroStores context is empty!"),i},It=(i,e)=>_a(i,i.getValue(),e),_a=(i,e,t)=>xn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),md=(i,e,t)=>{var F,T,v,E,H,U;let n=i.info,{width:o,height:r}=Ye(t.ui.playerSize),s=(T=(F=n.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?T:0,a=(E=(v=n.rttEstimation$.getValue())==null?void 0:v.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${sr} (core: ${ad.VERSION}, stat: ${ud.VERSION}, shared: ${ps.VERSION})`,c=Ye(t.state.errorLog$),m=c.length?`
7
7
  `+c.map((W,ne)=>{var oe;let de=`${ne}) Type: ${W.id}
8
8
  `,q=`Message: ${W.message} (${W.thrown})
9
9
  `,X=`Trace: ${(oe=W.thrown)==null?void 0:oe.stack}
package/es2018.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.48-dev.bc5f783d.0
3
- * Fri, 18 Oct 2024 09:42:46 GMT
2
+ * @vkontakte/videoplayer v1.1.48-dev.e2b9d2a6.0
3
+ * Mon, 21 Oct 2024 21:48:44 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-48/doc/
5
5
  */
6
- var H_=Object.defineProperty;var q_=(i,e,t)=>e in i?H_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Si=(i,e,t)=>q_(i,typeof e!="symbol"?e+"":e,t);function me(){}function se(i,e){for(let t in e)i[t]=e[t];return i}function Ql(i){return i()}function bs(){return Object.create(null)}function ct(i){i.forEach(Ql)}function Qt(i){return typeof i=="function"}function B(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var gs;function ho(i,e){return i===e?!0:(gs||(gs=document.createElement("a")),gs.href=e,i===gs.href)}function Sf(i){return Object.keys(i).length===0}function Zt(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ye(i){let e;return Zt(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push(Zt(e,t))}function Le(i,e,t,n){if(i){let o=Tf(i,e,t,n);return i[0](o)}}function Tf(i,e,t,n){return i[1]&&n?se(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let s=Tf(e,t,n,r);i.p(s,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function If(i){return i==null?"":i}function hr(i){return i&&Qt(i.destroy)?i.destroy:me}var Xo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var vs=class i{constructor(e){Si(this,"_listeners","WeakMap"in Xo?new WeakMap:void 0);Si(this,"_observer");Si(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};vs.entries="WeakMap"in Xo?new WeakMap:void 0;var Pf=!1;function Ef(){Pf=!0}function Af(){Pf=!1}function _(i,e){i.appendChild(e)}function be(i,e,t){let n=Mf(i);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=t,W_(n,o)}}function Mf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function W_(i,e){return _(i.head||i,e),e.sheet}function w(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function oi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function I(i){return document.createElement(i)}function M(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function qe(i){return document.createTextNode(i)}function Y(){return qe(" ")}function Xe(){return qe("")}function ke(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ri(i){return function(e){return e.preventDefault(),i.call(this,e)}}function gt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)f(i,t,e[t])}function Lf(i){return Array.from(i.childNodes)}function Ge(i,e){e=""+e,i.data!==e&&(i.data=e)}function di(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function G(i,e,t){i.classList.toggle(e,!!t)}function Vf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Bt(i,e){return new i(e)}var Eo;function go(i){Eo=i}function gr(){if(!Eo)throw new Error("Function called outside component initialization");return Eo}function Vt(i){gr().$$.on_mount.push(i)}function Zn(i){gr().$$.on_destroy.push(i)}function br(i,e){return gr().$$.context.set(i,e),e}function vr(i){return gr().$$.context.get(i)}function Yr(){return gr().$$.context}function Rn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Jo=[];var ve=[],wr=[],Xl=[],Bf=Promise.resolve(),Jl=!1;function $l(){Jl||(Jl=!0,Bf.then(ys))}function Xn(){return $l(),Bf}function Qr(i){wr.push(i)}function Ue(i){Xl.push(i)}var Zl=new Set,yr=0;function ys(){if(yr!==0)return;let i=Eo;do{try{for(;yr<Jo.length;){let e=Jo[yr];yr++,go(e),Q_(e.$$)}}catch(e){throw Jo.length=0,yr=0,e}for(go(null),Jo.length=0,yr=0;ve.length;)ve.pop()();for(let e=0;e<wr.length;e+=1){let t=wr[e];Zl.has(t)||(Zl.add(t),t())}wr.length=0}while(Jo.length);for(;Xl.length;)Xl.pop()();Jl=!1,Zl.clear(),go(i)}function Q_(i){if(i.fragment!==null){i.update(),ct(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Qr)}}function Nf(i){let e=[],t=[];wr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),wr=e}var ws=new Set,$o;function ae(){$o={r:0,c:[],p:$o}}function ue(){$o.r||ct($o.c),$o=$o.p}function d(i,e){i&&i.i&&(ws.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(ws.has(i))return;ws.add(i),$o.c.push(()=>{ws.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function bt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function He(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Ao(i){return typeof i=="object"&&i!==null?i:{}}var Z_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],X_=new Set([...Z_]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function L(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Qr(()=>{let r=i.$$.on_mount.map(Ql).filter(Qt);i.$$.on_destroy?i.$$.on_destroy.push(...r):ct(r),i.$$.on_mount=[]}),o.forEach(Qr)}function V(i,e){let t=i.$$;t.fragment!==null&&(Nf(t.after_update),ct(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function $_(i,e){i.$$.dirty[0]===-1&&(Jo.push(i),$l(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,s=null,a=[-1]){let l=Eo;go(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:bs(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:bs(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...C)=>{let g=C.length?C[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&$_(i,m)),h}):[],u.update(),c=!0,ct(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Ef();let m=Lf(e.target);u.fragment&&u.fragment.l(m),m.forEach(y)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),L(i,e.target,e.anchor),Af(),ys()}go(l)}var eh;typeof HTMLElement=="function"&&(eh=class extends HTMLElement{constructor(e,t,n){super();Si(this,"$$ctor");Si(this,"$$s");Si(this,"$$c");Si(this,"$$cn",!1);Si(this,"$$d",{});Si(this,"$$r",!1);Si(this,"$$p_d",{});Si(this,"$$l",{});Si(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=I("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){w(c,a,m)},d:function(c){c&&y(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Vf(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=ea(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=ea(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=ea(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ea(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){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(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var N=class{constructor(){Si(this,"$$");Si(this,"$$set")}$destroy(){V(this,1),this.$destroy=me}$on(e,t){if(!Qt(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Sf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Df="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Df);import"@vkontakte/videoplayer-core";import{noop as rs,safeStorage as Q8,throttleFn as Z8,clientChecker as X8}from"@vkontakte/videoplayer-shared";import{SeekAction as J8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as th,fillWithDefault as ih,VideoQuality as nh}from"@vkontakte/videoplayer-shared";var oh={isMobile:void 0,defaultLanguage:th.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:nh.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,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,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,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,autoplayNext:!0},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},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Of=i=>ih(i,oh),Ff=i=>br("ui-config",i),xt=()=>vr("ui-config");var Zr="vk_player_debug_panel_opened";var Hf="videoplayer",qf="videoplayer";var ao={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Uf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),zf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Wf=new Set(["ShiftRight","ShiftLeft"]);var Kf=["TIMELINE"],Xr=[...Kf,"GRAPH_BUTTON"],ta=[...Kf,"PLAY_BUTTON"],ks=[...Xr,"PLAY_BUTTON"];var bo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(bo||{}),tr={xs:0,s:1,m:2,l:3,xl:4};var kr=[];function Wn(i,e){return{subscribe:Oe(i,e).subscribe}}function Oe(i,e=me){let t,n=new Set;function o(a){if(B(i,a)&&(i=a,t)){let l=!kr.length;for(let u of n)u[1](),kr.push(u,i);if(l){for(let u=0;u<kr.length;u+=2)kr[u][0](kr[u+1]);kr.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function Xt(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Wn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=Qt(g)?g:me},C=o.map((g,S)=>Zt(g,k=>{u[S]=k,c&=~(1<<S),l&&h()},()=>{c|=1<<S}));return l=!0,h(),function(){ct(C),m(),l=!1}})}import{assertNonNullable as xf,VERSION as rh}from"@vkontakte/videoplayer-shared";import{VERSION as sh}from"@vkontakte/videoplayer-core";import{VERSION as lh}from"@vkontakte/videoplayer-statistics";var Cs="prod",Cr="1.1.48-dev.bc5f783d.0";var ir=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var jf=Symbol("storeContext"),Gf=Symbol("microStoresContext"),Yf=(i,e)=>{br(jf,i),br(Gf,e),Cs==="dev"&&(window.app={store:i,microStores:e})},nt=()=>{let i=vr(jf);return xf(i,"Store context is empty!"),i},Bn=()=>{let i=vr(Gf);return xf(i,"MicroStores context is empty!"),i},St=(i,e)=>ia(i,i.getValue(),e),ia=(i,e,t)=>Wn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),Qf=(i,e,t)=>{var F,T,v,E,H,U;let n=i.info,{width:o,height:r}=Ye(t.ui.playerSize),s=(T=(F=n.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?T:0,a=(E=(v=n.rttEstimation$.getValue())==null?void 0:v.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Cr} (core: ${sh}, stat: ${lh}, shared: ${rh})`,c=Ye(t.state.errorLog$),m=c.length?`
6
+ var H_=Object.defineProperty;var q_=(i,e,t)=>e in i?H_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Si=(i,e,t)=>q_(i,typeof e!="symbol"?e+"":e,t);function me(){}function se(i,e){for(let t in e)i[t]=e[t];return i}function Ql(i){return i()}function bs(){return Object.create(null)}function ct(i){i.forEach(Ql)}function Qt(i){return typeof i=="function"}function B(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var gs;function ho(i,e){return i===e?!0:(gs||(gs=document.createElement("a")),gs.href=e,i===gs.href)}function Sf(i){return Object.keys(i).length===0}function Zt(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ye(i){let e;return Zt(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push(Zt(e,t))}function Le(i,e,t,n){if(i){let o=Tf(i,e,t,n);return i[0](o)}}function Tf(i,e,t,n){return i[1]&&n?se(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let s=Tf(e,t,n,r);i.p(s,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function If(i){return i==null?"":i}function hr(i){return i&&Qt(i.destroy)?i.destroy:me}var Xo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var vs=class i{constructor(e){Si(this,"_listeners","WeakMap"in Xo?new WeakMap:void 0);Si(this,"_observer");Si(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};vs.entries="WeakMap"in Xo?new WeakMap:void 0;var Pf=!1;function Ef(){Pf=!0}function Af(){Pf=!1}function _(i,e){i.appendChild(e)}function be(i,e,t){let n=Mf(i);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=t,W_(n,o)}}function Mf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function W_(i,e){return _(i.head||i,e),e.sheet}function w(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function oi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function I(i){return document.createElement(i)}function M(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function qe(i){return document.createTextNode(i)}function Y(){return qe(" ")}function Xe(){return qe("")}function ke(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ri(i){return function(e){return e.preventDefault(),i.call(this,e)}}function gt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)f(i,t,e[t])}function Lf(i){return Array.from(i.childNodes)}function Ge(i,e){e=""+e,i.data!==e&&(i.data=e)}function di(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function G(i,e,t){i.classList.toggle(e,!!t)}function Vf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Bt(i,e){return new i(e)}var Eo;function go(i){Eo=i}function gr(){if(!Eo)throw new Error("Function called outside component initialization");return Eo}function Vt(i){gr().$$.on_mount.push(i)}function Zn(i){gr().$$.on_destroy.push(i)}function br(i,e){return gr().$$.context.set(i,e),e}function vr(i){return gr().$$.context.get(i)}function Yr(){return gr().$$.context}function Rn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Jo=[];var ve=[],wr=[],Xl=[],Bf=Promise.resolve(),Jl=!1;function $l(){Jl||(Jl=!0,Bf.then(ys))}function Xn(){return $l(),Bf}function Qr(i){wr.push(i)}function Ue(i){Xl.push(i)}var Zl=new Set,yr=0;function ys(){if(yr!==0)return;let i=Eo;do{try{for(;yr<Jo.length;){let e=Jo[yr];yr++,go(e),Q_(e.$$)}}catch(e){throw Jo.length=0,yr=0,e}for(go(null),Jo.length=0,yr=0;ve.length;)ve.pop()();for(let e=0;e<wr.length;e+=1){let t=wr[e];Zl.has(t)||(Zl.add(t),t())}wr.length=0}while(Jo.length);for(;Xl.length;)Xl.pop()();Jl=!1,Zl.clear(),go(i)}function Q_(i){if(i.fragment!==null){i.update(),ct(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Qr)}}function Nf(i){let e=[],t=[];wr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),wr=e}var ws=new Set,$o;function ae(){$o={r:0,c:[],p:$o}}function ue(){$o.r||ct($o.c),$o=$o.p}function d(i,e){i&&i.i&&(ws.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(ws.has(i))return;ws.add(i),$o.c.push(()=>{ws.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function bt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function He(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Ao(i){return typeof i=="object"&&i!==null?i:{}}var Z_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],X_=new Set([...Z_]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function L(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Qr(()=>{let r=i.$$.on_mount.map(Ql).filter(Qt);i.$$.on_destroy?i.$$.on_destroy.push(...r):ct(r),i.$$.on_mount=[]}),o.forEach(Qr)}function V(i,e){let t=i.$$;t.fragment!==null&&(Nf(t.after_update),ct(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function $_(i,e){i.$$.dirty[0]===-1&&(Jo.push(i),$l(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,s=null,a=[-1]){let l=Eo;go(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:bs(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:bs(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...C)=>{let g=C.length?C[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&$_(i,m)),h}):[],u.update(),c=!0,ct(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Ef();let m=Lf(e.target);u.fragment&&u.fragment.l(m),m.forEach(y)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),L(i,e.target,e.anchor),Af(),ys()}go(l)}var eh;typeof HTMLElement=="function"&&(eh=class extends HTMLElement{constructor(e,t,n){super();Si(this,"$$ctor");Si(this,"$$s");Si(this,"$$c");Si(this,"$$cn",!1);Si(this,"$$d",{});Si(this,"$$r",!1);Si(this,"$$p_d",{});Si(this,"$$l",{});Si(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=I("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){w(c,a,m)},d:function(c){c&&y(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Vf(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=ea(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=ea(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=ea(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ea(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){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(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var N=class{constructor(){Si(this,"$$");Si(this,"$$set")}$destroy(){V(this,1),this.$destroy=me}$on(e,t){if(!Qt(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Sf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Df="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Df);import"@vkontakte/videoplayer-core";import{noop as rs,safeStorage as Q8,throttleFn as Z8,clientChecker as X8}from"@vkontakte/videoplayer-shared";import{SeekAction as J8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as th,fillWithDefault as ih,VideoQuality as nh}from"@vkontakte/videoplayer-shared";var oh={isMobile:void 0,defaultLanguage:th.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:nh.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,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,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,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,autoplayNext:!0},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},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Of=i=>ih(i,oh),Ff=i=>br("ui-config",i),xt=()=>vr("ui-config");var Zr="vk_player_debug_panel_opened";var Hf="videoplayer",qf="videoplayer";var ao={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Uf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),zf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Wf=new Set(["ShiftRight","ShiftLeft"]);var Kf=["TIMELINE"],Xr=[...Kf,"GRAPH_BUTTON"],ta=[...Kf,"PLAY_BUTTON"],ks=[...Xr,"PLAY_BUTTON"];var bo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(bo||{}),tr={xs:0,s:1,m:2,l:3,xl:4};var kr=[];function Wn(i,e){return{subscribe:Oe(i,e).subscribe}}function Oe(i,e=me){let t,n=new Set;function o(a){if(B(i,a)&&(i=a,t)){let l=!kr.length;for(let u of n)u[1](),kr.push(u,i);if(l){for(let u=0;u<kr.length;u+=2)kr[u][0](kr[u+1]);kr.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function Xt(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Wn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=Qt(g)?g:me},C=o.map((g,S)=>Zt(g,k=>{u[S]=k,c&=~(1<<S),l&&h()},()=>{c|=1<<S}));return l=!0,h(),function(){ct(C),m(),l=!1}})}import{assertNonNullable as xf,VERSION as rh}from"@vkontakte/videoplayer-shared";import{VERSION as sh}from"@vkontakte/videoplayer-core";import{VERSION as lh}from"@vkontakte/videoplayer-statistics";var Cs="prod",Cr="1.1.48-dev.e2b9d2a6.0";var ir=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var jf=Symbol("storeContext"),Gf=Symbol("microStoresContext"),Yf=(i,e)=>{br(jf,i),br(Gf,e),Cs==="dev"&&(window.app={store:i,microStores:e})},nt=()=>{let i=vr(jf);return xf(i,"Store context is empty!"),i},Bn=()=>{let i=vr(Gf);return xf(i,"MicroStores context is empty!"),i},St=(i,e)=>ia(i,i.getValue(),e),ia=(i,e,t)=>Wn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),Qf=(i,e,t)=>{var F,T,v,E,H,U;let n=i.info,{width:o,height:r}=Ye(t.ui.playerSize),s=(T=(F=n.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?T:0,a=(E=(v=n.rttEstimation$.getValue())==null?void 0:v.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Cr} (core: ${sh}, stat: ${lh}, shared: ${rh})`,c=Ye(t.state.errorLog$),m=c.length?`
7
7
  `+c.map((W,ne)=>{var oe;let de=`${ne}) Type: ${W.id}
8
8
  `,q=`Message: ${W.message} (${W.thrown})
9
9
  `,X=`Trace: ${(oe=W.thrown)==null?void 0:oe.stack}
package/esnext.cjs.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.48-dev.bc5f783d.0
3
- * Fri, 18 Oct 2024 09:42:46 GMT
2
+ * @vkontakte/videoplayer v1.1.48-dev.e2b9d2a6.0
3
+ * Mon, 21 Oct 2024 21:48:44 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-48/doc/
5
5
  */
6
- "use strict";var uh=Object.create;var Pl=Object.defineProperty;var ch=Object.getOwnPropertyDescriptor;var fh=Object.getOwnPropertyNames;var dh=Object.getPrototypeOf,mh=Object.prototype.hasOwnProperty;var ph=(i,e)=>{for(var t in e)Pl(i,t,{get:e[t],enumerable:!0})},Nf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of fh(e))!mh.call(i,o)&&o!==t&&Pl(i,o,{get:()=>e[o],enumerable:!(n=ch(e,o))||n.enumerable});return i};var Df=(i,e,t)=>(t=i!=null?uh(dh(i)):{},Nf(e||!i||!i.__esModule?Pl(t,"default",{value:i,enumerable:!0}):t,i)),_h=i=>Nf(Pl({},"__esModule",{value:!0}),i);var Z8={};ph(Z8,{ControlButtonType:()=>gl,GridTypes:()=>ro,InterfaceLanguage:()=>el.InterfaceLanguage,MenuItemType:()=>_l,VERSION:()=>nr,VKNumericLanguage:()=>el.VKNumericLanguage,VideoFormat:()=>$s.VideoFormat,VideoQuality:()=>$s.VideoQuality,loadVKLangPack:()=>el.loadVKLangPack,registerPlayerWebComponent:()=>Q8});module.exports=_h(Z8);function de(){}function oe(i,e){for(let t in e)i[t]=e[t];return i}function oa(i){return i()}function Al(){return Object.create(null)}function st(i){i.forEach(oa)}function jt(i){return typeof i=="function"}function B(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var El;function go(i,e){return i===e?!0:(El||(El=document.createElement("a")),El.href=e,i===El.href)}function Of(i){return Object.keys(i).length===0}function Gt(i,...e){if(i==null){for(let n of e)n(void 0);return de}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ge(i){let e;return Gt(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push(Gt(e,t))}function Ae(i,e,t,n){if(i){let o=Ff(i,e,t,n);return i[0](o)}}function Ff(i,e,t,n){return i[1]&&n?oe(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Le(i,e,t,n,o,r){if(o){let l=Ff(e,t,n,r);i.p(l,o)}}function Ve(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ke(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Hf(i){return i??""}function Cr(i){return i&&jt(i.destroy)?i.destroy:de}var Jo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Ml=class i{_listeners="WeakMap"in Jo?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};Ml.entries="WeakMap"in Jo?new WeakMap:void 0;var qf=!1;function Uf(){qf=!0}function zf(){qf=!1}function _(i,e){i.appendChild(e)}function ve(i,e,t){let n=Wf(i);if(!n.getElementById(e)){let o=S("style");o.id=e,o.textContent=t,bh(n,o)}}function Wf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function bh(i,e){return _(i.head||i,e),e.sheet}function v(i,e,t){i.insertBefore(e,t||null)}function b(i){i.parentNode&&i.parentNode.removeChild(i)}function ei(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function S(i){return document.createElement(i)}function M(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Oe(i){return document.createTextNode(i)}function x(){return Oe(" ")}function Qe(){return Oe("")}function Se(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ti(i){return function(e){return e.preventDefault(),i.call(this,e)}}function _t(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)f(i,t,e[t])}function Kf(i){return Array.from(i.childNodes)}function xe(i,e){e=""+e,i.data!==e&&(i.data=e)}function ai(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function W(i,e,t){i.classList.toggle(e,!!t)}function xf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Pt(i,e){return new i(e)}var Mo;function bo(i){Mo=i}function Sr(){if(!Mo)throw new Error("Function called outside component initialization");return Mo}function Ct(i){Sr().$$.on_mount.push(i)}function Xn(i){Sr().$$.on_destroy.push(i)}function Tr(i,e){return Sr().$$.context.set(i,e),e}function Ir(i){return Sr().$$.context.get(i)}function ul(){return Sr().$$.context}function Ln(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var $o=[];var ye=[],Er=[],la=[],Gf=Promise.resolve(),sa=!1;function aa(){sa||(sa=!0,Gf.then(Ll))}function Jn(){return aa(),Gf}function cl(i){Er.push(i)}function qe(i){la.push(i)}var ra=new Set,Pr=0;function Ll(){if(Pr!==0)return;let i=Mo;do{try{for(;Pr<$o.length;){let e=$o[Pr];Pr++,bo(e),Sh(e.$$)}}catch(e){throw $o.length=0,Pr=0,e}for(bo(null),$o.length=0,Pr=0;ye.length;)ye.pop()();for(let e=0;e<Er.length;e+=1){let t=Er[e];ra.has(t)||(ra.add(t),t())}Er.length=0}while($o.length);for(;la.length;)la.pop()();sa=!1,ra.clear(),bo(i)}function Sh(i){if(i.fragment!==null){i.update(),st(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(cl)}}function Yf(i){let e=[],t=[];Er.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Er=e}var Vl=new Set,er;function se(){er={r:0,c:[],p:er}}function ae(){er.r||st(er.c),er=er.p}function d(i,e){i&&i.i&&(Vl.delete(i),i.i(e))}function m(i,e,t,n){if(i&&i.o){if(Vl.has(i))return;Vl.add(i),er.c.push(()=>{Vl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function gt(i){return i?.length!==void 0?i:Array.from(i)}function De(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function Lo(i){return typeof i=="object"&&i!==null?i:{}}var Th=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],Ih=new Set([...Th]);function Ue(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function L(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),cl(()=>{let r=i.$$.on_mount.map(oa).filter(jt);i.$$.on_destroy?i.$$.on_destroy.push(...r):st(r),i.$$.on_mount=[]}),o.forEach(cl)}function V(i,e){let t=i.$$;t.fragment!==null&&(Yf(t.after_update),st(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Eh(i,e){i.$$.dirty[0]===-1&&($o.push(i),aa(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,l=null,a=[-1]){let s=Mo;bo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:de,not_equal:o,bound:Al(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Al(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(p,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),c&&Eh(i,p)),h}):[],u.update(),c=!0,st(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Uf();let p=Kf(e.target);u.fragment&&u.fragment.l(p),p.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),L(i,e.target,e.anchor),zf(),Ll()}bo(s)}var Ah;typeof HTMLElement=="function"&&(Ah=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let l;return{c:function(){l=S("slot"),r!=="default"&&f(l,"name",r)},m:function(u,c){v(u,l,c)},d:function(u){u&&b(l)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=xf(this);for(let r of this.$$s)r in n&&(t[r]=[e(r)]);for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=ua(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=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){let l=ua(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let r in this.$$l)for(let l of this.$$l[r]){let a=this.$$c.$on(r,l);this.$$l_u.set(l,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=ua(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function ua(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var N=class{$$=void 0;$$set=void 0;$destroy(){V(this,1),this.$destroy=de}$on(e,t){if(!jt(t))return de;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Of(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Qf="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Qf);var pF=require("@vkontakte/videoplayer-core"),xn=require("@vkontakte/videoplayer-shared"),G_=require("@vkontakte/videoplayer-statistics");var Ar=require("@vkontakte/videoplayer-shared");var Mh={isMobile:void 0,defaultLanguage:Ar.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:Ar.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,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,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,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,autoplayNext:!0},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},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Zf=i=>(0,Ar.fillWithDefault)(i,Mh),Xf=i=>Tr("ui-config",i),qt=()=>Ir("ui-config");var fl="vk_player_debug_panel_opened";var Jf="videoplayer",$f="videoplayer";var oo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ed=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),td=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),id=new Set(["ShiftRight","ShiftLeft"]);var nd=["TIMELINE"],dl=[...nd,"GRAPH_BUTTON"],ca=[...nd,"PLAY_BUTTON"],Rl=[...dl,"PLAY_BUTTON"];var ro=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(ro||{}),ir={xs:0,s:1,m:2,l:3,xl:4};var Mr=[];function zn(i,e){return{subscribe:Be(i,e).subscribe}}function Be(i,e=de){let t,n=new Set;function o(a){if(B(i,a)&&(i=a,t)){let s=!Mr.length;for(let u of n)u[1](),Mr.push(u,i);if(s){for(let u=0;u<Mr.length;u+=2)Mr[u][0](Mr[u+1]);Mr.length=0}}}function r(a){o(a(i))}function l(a,s=de){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||de),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Yt(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return zn(t,(l,a)=>{let s=!1,u=[],c=0,p=de,h=()=>{if(c)return;p();let g=e(n?u[0]:u,l,a);r?l(g):p=jt(g)?g:de},k=o.map((g,T)=>Gt(g,y=>{u[T]=y,c&=~(1<<T),s&&h()},()=>{c|=1<<T}));return s=!0,h(),function(){st(k),p(),s=!1}})}var ml=require("@vkontakte/videoplayer-shared"),od=require("@vkontakte/videoplayer-core"),rd=require("@vkontakte/videoplayer-statistics");var Bl="prod",nr="1.1.48-dev.bc5f783d.0";var or=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var ld=Symbol("storeContext"),sd=Symbol("microStoresContext"),ad=(i,e)=>{Tr(ld,i),Tr(sd,e),Bl==="dev"&&(window.app={store:i,microStores:e})},Je=()=>{let i=Ir(ld);return(0,ml.assertNonNullable)(i,"Store context is empty!"),i},Vn=()=>{let i=Ir(sd);return(0,ml.assertNonNullable)(i,"MicroStores context is empty!"),i},vt=(i,e)=>fa(i,i.getValue(),e),fa=(i,e,t)=>zn(e,n=>{let o=i.subscribe(r=>{n(r),t?.(r)});return()=>o.unsubscribe()}),ud=(i,e,t)=>{let n=i.info,{width:o,height:r}=Ge(t.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${nr} (core: ${od.VERSION}, stat: ${rd.VERSION}, shared: ${ml.VERSION})`,c=Ge(t.state.errorLog$),p=c.length?`
6
+ "use strict";var uh=Object.create;var Pl=Object.defineProperty;var ch=Object.getOwnPropertyDescriptor;var fh=Object.getOwnPropertyNames;var dh=Object.getPrototypeOf,mh=Object.prototype.hasOwnProperty;var ph=(i,e)=>{for(var t in e)Pl(i,t,{get:e[t],enumerable:!0})},Nf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of fh(e))!mh.call(i,o)&&o!==t&&Pl(i,o,{get:()=>e[o],enumerable:!(n=ch(e,o))||n.enumerable});return i};var Df=(i,e,t)=>(t=i!=null?uh(dh(i)):{},Nf(e||!i||!i.__esModule?Pl(t,"default",{value:i,enumerable:!0}):t,i)),_h=i=>Nf(Pl({},"__esModule",{value:!0}),i);var Z8={};ph(Z8,{ControlButtonType:()=>gl,GridTypes:()=>ro,InterfaceLanguage:()=>el.InterfaceLanguage,MenuItemType:()=>_l,VERSION:()=>nr,VKNumericLanguage:()=>el.VKNumericLanguage,VideoFormat:()=>$s.VideoFormat,VideoQuality:()=>$s.VideoQuality,loadVKLangPack:()=>el.loadVKLangPack,registerPlayerWebComponent:()=>Q8});module.exports=_h(Z8);function de(){}function oe(i,e){for(let t in e)i[t]=e[t];return i}function oa(i){return i()}function Al(){return Object.create(null)}function st(i){i.forEach(oa)}function jt(i){return typeof i=="function"}function B(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var El;function go(i,e){return i===e?!0:(El||(El=document.createElement("a")),El.href=e,i===El.href)}function Of(i){return Object.keys(i).length===0}function Gt(i,...e){if(i==null){for(let n of e)n(void 0);return de}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ge(i){let e;return Gt(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push(Gt(e,t))}function Ae(i,e,t,n){if(i){let o=Ff(i,e,t,n);return i[0](o)}}function Ff(i,e,t,n){return i[1]&&n?oe(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Le(i,e,t,n,o,r){if(o){let l=Ff(e,t,n,r);i.p(l,o)}}function Ve(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ke(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Hf(i){return i??""}function Cr(i){return i&&jt(i.destroy)?i.destroy:de}var Jo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Ml=class i{_listeners="WeakMap"in Jo?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};Ml.entries="WeakMap"in Jo?new WeakMap:void 0;var qf=!1;function Uf(){qf=!0}function zf(){qf=!1}function _(i,e){i.appendChild(e)}function ve(i,e,t){let n=Wf(i);if(!n.getElementById(e)){let o=S("style");o.id=e,o.textContent=t,bh(n,o)}}function Wf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function bh(i,e){return _(i.head||i,e),e.sheet}function v(i,e,t){i.insertBefore(e,t||null)}function b(i){i.parentNode&&i.parentNode.removeChild(i)}function ei(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function S(i){return document.createElement(i)}function M(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Oe(i){return document.createTextNode(i)}function x(){return Oe(" ")}function Qe(){return Oe("")}function Se(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ti(i){return function(e){return e.preventDefault(),i.call(this,e)}}function _t(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)f(i,t,e[t])}function Kf(i){return Array.from(i.childNodes)}function xe(i,e){e=""+e,i.data!==e&&(i.data=e)}function ai(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function W(i,e,t){i.classList.toggle(e,!!t)}function xf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Pt(i,e){return new i(e)}var Mo;function bo(i){Mo=i}function Sr(){if(!Mo)throw new Error("Function called outside component initialization");return Mo}function Ct(i){Sr().$$.on_mount.push(i)}function Xn(i){Sr().$$.on_destroy.push(i)}function Tr(i,e){return Sr().$$.context.set(i,e),e}function Ir(i){return Sr().$$.context.get(i)}function ul(){return Sr().$$.context}function Ln(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var $o=[];var ye=[],Er=[],la=[],Gf=Promise.resolve(),sa=!1;function aa(){sa||(sa=!0,Gf.then(Ll))}function Jn(){return aa(),Gf}function cl(i){Er.push(i)}function qe(i){la.push(i)}var ra=new Set,Pr=0;function Ll(){if(Pr!==0)return;let i=Mo;do{try{for(;Pr<$o.length;){let e=$o[Pr];Pr++,bo(e),Sh(e.$$)}}catch(e){throw $o.length=0,Pr=0,e}for(bo(null),$o.length=0,Pr=0;ye.length;)ye.pop()();for(let e=0;e<Er.length;e+=1){let t=Er[e];ra.has(t)||(ra.add(t),t())}Er.length=0}while($o.length);for(;la.length;)la.pop()();sa=!1,ra.clear(),bo(i)}function Sh(i){if(i.fragment!==null){i.update(),st(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(cl)}}function Yf(i){let e=[],t=[];Er.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Er=e}var Vl=new Set,er;function se(){er={r:0,c:[],p:er}}function ae(){er.r||st(er.c),er=er.p}function d(i,e){i&&i.i&&(Vl.delete(i),i.i(e))}function m(i,e,t,n){if(i&&i.o){if(Vl.has(i))return;Vl.add(i),er.c.push(()=>{Vl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function gt(i){return i?.length!==void 0?i:Array.from(i)}function De(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function Lo(i){return typeof i=="object"&&i!==null?i:{}}var Th=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],Ih=new Set([...Th]);function Ue(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function L(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),cl(()=>{let r=i.$$.on_mount.map(oa).filter(jt);i.$$.on_destroy?i.$$.on_destroy.push(...r):st(r),i.$$.on_mount=[]}),o.forEach(cl)}function V(i,e){let t=i.$$;t.fragment!==null&&(Yf(t.after_update),st(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Eh(i,e){i.$$.dirty[0]===-1&&($o.push(i),aa(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,l=null,a=[-1]){let s=Mo;bo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:de,not_equal:o,bound:Al(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Al(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(p,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),c&&Eh(i,p)),h}):[],u.update(),c=!0,st(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Uf();let p=Kf(e.target);u.fragment&&u.fragment.l(p),p.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),L(i,e.target,e.anchor),zf(),Ll()}bo(s)}var Ah;typeof HTMLElement=="function"&&(Ah=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let l;return{c:function(){l=S("slot"),r!=="default"&&f(l,"name",r)},m:function(u,c){v(u,l,c)},d:function(u){u&&b(l)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=xf(this);for(let r of this.$$s)r in n&&(t[r]=[e(r)]);for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=ua(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=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){let l=ua(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let r in this.$$l)for(let l of this.$$l[r]){let a=this.$$c.$on(r,l);this.$$l_u.set(l,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=ua(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function ua(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var N=class{$$=void 0;$$set=void 0;$destroy(){V(this,1),this.$destroy=de}$on(e,t){if(!jt(t))return de;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Of(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Qf="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Qf);var pF=require("@vkontakte/videoplayer-core"),xn=require("@vkontakte/videoplayer-shared"),G_=require("@vkontakte/videoplayer-statistics");var Ar=require("@vkontakte/videoplayer-shared");var Mh={isMobile:void 0,defaultLanguage:Ar.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:Ar.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,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,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,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,autoplayNext:!0},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},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Zf=i=>(0,Ar.fillWithDefault)(i,Mh),Xf=i=>Tr("ui-config",i),qt=()=>Ir("ui-config");var fl="vk_player_debug_panel_opened";var Jf="videoplayer",$f="videoplayer";var oo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ed=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),td=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),id=new Set(["ShiftRight","ShiftLeft"]);var nd=["TIMELINE"],dl=[...nd,"GRAPH_BUTTON"],ca=[...nd,"PLAY_BUTTON"],Rl=[...dl,"PLAY_BUTTON"];var ro=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(ro||{}),ir={xs:0,s:1,m:2,l:3,xl:4};var Mr=[];function zn(i,e){return{subscribe:Be(i,e).subscribe}}function Be(i,e=de){let t,n=new Set;function o(a){if(B(i,a)&&(i=a,t)){let s=!Mr.length;for(let u of n)u[1](),Mr.push(u,i);if(s){for(let u=0;u<Mr.length;u+=2)Mr[u][0](Mr[u+1]);Mr.length=0}}}function r(a){o(a(i))}function l(a,s=de){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||de),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Yt(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return zn(t,(l,a)=>{let s=!1,u=[],c=0,p=de,h=()=>{if(c)return;p();let g=e(n?u[0]:u,l,a);r?l(g):p=jt(g)?g:de},k=o.map((g,T)=>Gt(g,y=>{u[T]=y,c&=~(1<<T),s&&h()},()=>{c|=1<<T}));return s=!0,h(),function(){st(k),p(),s=!1}})}var ml=require("@vkontakte/videoplayer-shared"),od=require("@vkontakte/videoplayer-core"),rd=require("@vkontakte/videoplayer-statistics");var Bl="prod",nr="1.1.48-dev.e2b9d2a6.0";var or=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var ld=Symbol("storeContext"),sd=Symbol("microStoresContext"),ad=(i,e)=>{Tr(ld,i),Tr(sd,e),Bl==="dev"&&(window.app={store:i,microStores:e})},Je=()=>{let i=Ir(ld);return(0,ml.assertNonNullable)(i,"Store context is empty!"),i},Vn=()=>{let i=Ir(sd);return(0,ml.assertNonNullable)(i,"MicroStores context is empty!"),i},vt=(i,e)=>fa(i,i.getValue(),e),fa=(i,e,t)=>zn(e,n=>{let o=i.subscribe(r=>{n(r),t?.(r)});return()=>o.unsubscribe()}),ud=(i,e,t)=>{let n=i.info,{width:o,height:r}=Ge(t.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${nr} (core: ${od.VERSION}, stat: ${rd.VERSION}, shared: ${ml.VERSION})`,c=Ge(t.state.errorLog$),p=c.length?`
7
7
  `+c.map((F,I)=>{let w=`${I}) Type: ${F.id}
8
8
  `,E=`Message: ${F.message} (${F.thrown})
9
9
  `,Y=`Trace: ${F.thrown?.stack}
package/esnext.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.48-dev.bc5f783d.0
3
- * Fri, 18 Oct 2024 09:42:46 GMT
2
+ * @vkontakte/videoplayer v1.1.48-dev.e2b9d2a6.0
3
+ * Mon, 21 Oct 2024 21:48:44 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-48/doc/
5
5
  */
6
- function de(){}function oe(i,e){for(let t in e)i[t]=e[t];return i}function xs(i){return i()}function pl(){return Object.create(null)}function st(i){i.forEach(xs)}function Kt(i){return typeof i=="function"}function B(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var ml;function fo(i,e){return i===e?!0:(ml||(ml=document.createElement("a")),ml.href=e,i===ml.href)}function yf(i){return Object.keys(i).length===0}function xt(i,...e){if(i==null){for(let n of e)n(void 0);return de}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ge(i){let e;return xt(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push(xt(e,t))}function Ae(i,e,t,n){if(i){let o=kf(i,e,t,n);return i[0](o)}}function kf(i,e,t,n){return i[1]&&n?oe(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Le(i,e,t,n,o,r){if(o){let l=kf(e,t,n,r);i.p(l,o)}}function Ve(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ke(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function wf(i){return i??""}function _r(i){return i&&Kt(i.destroy)?i.destroy:de}var Yo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var _l=class i{_listeners="WeakMap"in Yo?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};_l.entries="WeakMap"in Yo?new WeakMap:void 0;var Cf=!1;function Sf(){Cf=!0}function Tf(){Cf=!1}function _(i,e){i.appendChild(e)}function ve(i,e,t){let n=If(i);if(!n.getElementById(e)){let o=S("style");o.id=e,o.textContent=t,N_(n,o)}}function If(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function N_(i,e){return _(i.head||i,e),e.sheet}function v(i,e,t){i.insertBefore(e,t||null)}function b(i){i.parentNode&&i.parentNode.removeChild(i)}function Jt(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function S(i){return document.createElement(i)}function M(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Oe(i){return document.createTextNode(i)}function x(){return Oe(" ")}function Qe(){return Oe("")}function Se(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function $t(i){return function(e){return e.preventDefault(),i.call(this,e)}}function mt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)f(i,t,e[t])}function Pf(i){return Array.from(i.childNodes)}function xe(i,e){e=""+e,i.data!==e&&(i.data=e)}function li(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function W(i,e,t){i.classList.toggle(e,!!t)}function Ef(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Tt(i,e){return new i(e)}var To;function mo(i){To=i}function hr(){if(!To)throw new Error("Function called outside component initialization");return To}function kt(i){hr().$$.on_mount.push(i)}function Yn(i){hr().$$.on_destroy.push(i)}function gr(i,e){return hr().$$.context.set(i,e),e}function br(i){return hr().$$.context.get(i)}function Yr(){return hr().$$.context}function En(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Qo=[];var ye=[],yr=[],Gs=[],Mf=Promise.resolve(),Ys=!1;function Qs(){Ys||(Ys=!0,Mf.then(hl))}function Qn(){return Qs(),Mf}function Qr(i){yr.push(i)}function qe(i){Gs.push(i)}var js=new Set,vr=0;function hl(){if(vr!==0)return;let i=To;do{try{for(;vr<Qo.length;){let e=Qo[vr];vr++,mo(e),U_(e.$$)}}catch(e){throw Qo.length=0,vr=0,e}for(mo(null),Qo.length=0,vr=0;ye.length;)ye.pop()();for(let e=0;e<yr.length;e+=1){let t=yr[e];js.has(t)||(js.add(t),t())}yr.length=0}while(Qo.length);for(;Gs.length;)Gs.pop()();Ys=!1,js.clear(),mo(i)}function U_(i){if(i.fragment!==null){i.update(),st(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Qr)}}function Lf(i){let e=[],t=[];yr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),yr=e}var gl=new Set,Zo;function se(){Zo={r:0,c:[],p:Zo}}function ae(){Zo.r||st(Zo.c),Zo=Zo.p}function d(i,e){i&&i.i&&(gl.delete(i),i.i(e))}function m(i,e,t,n){if(i&&i.o){if(gl.has(i))return;gl.add(i),Zo.c.push(()=>{gl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function _t(i){return i?.length!==void 0?i:Array.from(i)}function De(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function Io(i){return typeof i=="object"&&i!==null?i:{}}var z_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],W_=new Set([...z_]);function Ue(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function L(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Qr(()=>{let r=i.$$.on_mount.map(xs).filter(Kt);i.$$.on_destroy?i.$$.on_destroy.push(...r):st(r),i.$$.on_mount=[]}),o.forEach(Qr)}function V(i,e){let t=i.$$;t.fragment!==null&&(Lf(t.after_update),st(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function x_(i,e){i.$$.dirty[0]===-1&&(Qo.push(i),Qs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,l=null,a=[-1]){let s=To;mo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:de,not_equal:o,bound:pl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:pl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(p,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),c&&x_(i,p)),h}):[],u.update(),c=!0,st(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Sf();let p=Pf(e.target);u.fragment&&u.fragment.l(p),p.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),L(i,e.target,e.anchor),Tf(),hl()}mo(s)}var j_;typeof HTMLElement=="function"&&(j_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let l;return{c:function(){l=S("slot"),r!=="default"&&f(l,"name",r)},m:function(u,c){v(u,l,c)},d:function(u){u&&b(l)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=Ef(this);for(let r of this.$$s)r in n&&(t[r]=[e(r)]);for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=Zs(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=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){let l=Zs(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let r in this.$$l)for(let l of this.$$l[r]){let a=this.$$c.$on(r,l);this.$$l_u.set(l,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=Zs(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function Zs(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var N=class{$$=void 0;$$set=void 0;$destroy(){V(this,1),this.$destroy=de}$on(e,t){if(!Kt(t))return de;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!yf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Vf="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Vf);import"@vkontakte/videoplayer-core";import{noop as rl,safeStorage as U8,throttleFn as z8,clientChecker as W8}from"@vkontakte/videoplayer-shared";import{SeekAction as K8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as G_,fillWithDefault as Y_,VideoQuality as Q_}from"@vkontakte/videoplayer-shared";var Z_={isMobile:void 0,defaultLanguage:G_.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:Q_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,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,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,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,autoplayNext:!0},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},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Rf=i=>Y_(i,Z_),Bf=i=>gr("ui-config",i),Ft=()=>br("ui-config");var Zr="vk_player_debug_panel_opened";var Nf="videoplayer",Df="videoplayer";var io={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Of=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Ff=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Hf=new Set(["ShiftRight","ShiftLeft"]);var qf=["TIMELINE"],Xr=[...qf,"GRAPH_BUTTON"],Xs=[...qf,"PLAY_BUTTON"],bl=[...Xr,"PLAY_BUTTON"];var po=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(po||{}),Jo={xs:0,s:1,m:2,l:3,xl:4};var kr=[];function qn(i,e){return{subscribe:Be(i,e).subscribe}}function Be(i,e=de){let t,n=new Set;function o(a){if(B(i,a)&&(i=a,t)){let s=!kr.length;for(let u of n)u[1](),kr.push(u,i);if(s){for(let u=0;u<kr.length;u+=2)kr[u][0](kr[u+1]);kr.length=0}}}function r(a){o(a(i))}function l(a,s=de){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||de),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function jt(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return qn(t,(l,a)=>{let s=!1,u=[],c=0,p=de,h=()=>{if(c)return;p();let g=e(n?u[0]:u,l,a);r?l(g):p=Kt(g)?g:de},k=o.map((g,T)=>xt(g,y=>{u[T]=y,c&=~(1<<T),s&&h()},()=>{c|=1<<T}));return s=!0,h(),function(){st(k),p(),s=!1}})}import{assertNonNullable as Uf,VERSION as X_}from"@vkontakte/videoplayer-shared";import{VERSION as J_}from"@vkontakte/videoplayer-core";import{VERSION as $_}from"@vkontakte/videoplayer-statistics";var vl="prod",wr="1.1.48-dev.bc5f783d.0";var $o=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var zf=Symbol("storeContext"),Wf=Symbol("microStoresContext"),Kf=(i,e)=>{gr(zf,i),gr(Wf,e),vl==="dev"&&(window.app={store:i,microStores:e})},Je=()=>{let i=br(zf);return Uf(i,"Store context is empty!"),i},An=()=>{let i=br(Wf);return Uf(i,"MicroStores context is empty!"),i},gt=(i,e)=>Js(i,i.getValue(),e),Js=(i,e,t)=>qn(e,n=>{let o=i.subscribe(r=>{n(r),t?.(r)});return()=>o.unsubscribe()}),xf=(i,e,t)=>{let n=i.info,{width:o,height:r}=Ge(t.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${wr} (core: ${J_}, stat: ${$_}, shared: ${X_})`,c=Ge(t.state.errorLog$),p=c.length?`
6
+ function de(){}function oe(i,e){for(let t in e)i[t]=e[t];return i}function xs(i){return i()}function pl(){return Object.create(null)}function st(i){i.forEach(xs)}function Kt(i){return typeof i=="function"}function B(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var ml;function fo(i,e){return i===e?!0:(ml||(ml=document.createElement("a")),ml.href=e,i===ml.href)}function yf(i){return Object.keys(i).length===0}function xt(i,...e){if(i==null){for(let n of e)n(void 0);return de}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ge(i){let e;return xt(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push(xt(e,t))}function Ae(i,e,t,n){if(i){let o=kf(i,e,t,n);return i[0](o)}}function kf(i,e,t,n){return i[1]&&n?oe(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Le(i,e,t,n,o,r){if(o){let l=kf(e,t,n,r);i.p(l,o)}}function Ve(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ke(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function wf(i){return i??""}function _r(i){return i&&Kt(i.destroy)?i.destroy:de}var Yo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var _l=class i{_listeners="WeakMap"in Yo?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};_l.entries="WeakMap"in Yo?new WeakMap:void 0;var Cf=!1;function Sf(){Cf=!0}function Tf(){Cf=!1}function _(i,e){i.appendChild(e)}function ve(i,e,t){let n=If(i);if(!n.getElementById(e)){let o=S("style");o.id=e,o.textContent=t,N_(n,o)}}function If(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function N_(i,e){return _(i.head||i,e),e.sheet}function v(i,e,t){i.insertBefore(e,t||null)}function b(i){i.parentNode&&i.parentNode.removeChild(i)}function Jt(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function S(i){return document.createElement(i)}function M(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Oe(i){return document.createTextNode(i)}function x(){return Oe(" ")}function Qe(){return Oe("")}function Se(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function $t(i){return function(e){return e.preventDefault(),i.call(this,e)}}function mt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)f(i,t,e[t])}function Pf(i){return Array.from(i.childNodes)}function xe(i,e){e=""+e,i.data!==e&&(i.data=e)}function li(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function W(i,e,t){i.classList.toggle(e,!!t)}function Ef(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Tt(i,e){return new i(e)}var To;function mo(i){To=i}function hr(){if(!To)throw new Error("Function called outside component initialization");return To}function kt(i){hr().$$.on_mount.push(i)}function Yn(i){hr().$$.on_destroy.push(i)}function gr(i,e){return hr().$$.context.set(i,e),e}function br(i){return hr().$$.context.get(i)}function Yr(){return hr().$$.context}function En(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Qo=[];var ye=[],yr=[],Gs=[],Mf=Promise.resolve(),Ys=!1;function Qs(){Ys||(Ys=!0,Mf.then(hl))}function Qn(){return Qs(),Mf}function Qr(i){yr.push(i)}function qe(i){Gs.push(i)}var js=new Set,vr=0;function hl(){if(vr!==0)return;let i=To;do{try{for(;vr<Qo.length;){let e=Qo[vr];vr++,mo(e),U_(e.$$)}}catch(e){throw Qo.length=0,vr=0,e}for(mo(null),Qo.length=0,vr=0;ye.length;)ye.pop()();for(let e=0;e<yr.length;e+=1){let t=yr[e];js.has(t)||(js.add(t),t())}yr.length=0}while(Qo.length);for(;Gs.length;)Gs.pop()();Ys=!1,js.clear(),mo(i)}function U_(i){if(i.fragment!==null){i.update(),st(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Qr)}}function Lf(i){let e=[],t=[];yr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),yr=e}var gl=new Set,Zo;function se(){Zo={r:0,c:[],p:Zo}}function ae(){Zo.r||st(Zo.c),Zo=Zo.p}function d(i,e){i&&i.i&&(gl.delete(i),i.i(e))}function m(i,e,t,n){if(i&&i.o){if(gl.has(i))return;gl.add(i),Zo.c.push(()=>{gl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function _t(i){return i?.length!==void 0?i:Array.from(i)}function De(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function Io(i){return typeof i=="object"&&i!==null?i:{}}var z_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],W_=new Set([...z_]);function Ue(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function L(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Qr(()=>{let r=i.$$.on_mount.map(xs).filter(Kt);i.$$.on_destroy?i.$$.on_destroy.push(...r):st(r),i.$$.on_mount=[]}),o.forEach(Qr)}function V(i,e){let t=i.$$;t.fragment!==null&&(Lf(t.after_update),st(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function x_(i,e){i.$$.dirty[0]===-1&&(Qo.push(i),Qs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,l=null,a=[-1]){let s=To;mo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:de,not_equal:o,bound:pl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:pl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(p,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),c&&x_(i,p)),h}):[],u.update(),c=!0,st(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Sf();let p=Pf(e.target);u.fragment&&u.fragment.l(p),p.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),L(i,e.target,e.anchor),Tf(),hl()}mo(s)}var j_;typeof HTMLElement=="function"&&(j_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let l;return{c:function(){l=S("slot"),r!=="default"&&f(l,"name",r)},m:function(u,c){v(u,l,c)},d:function(u){u&&b(l)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=Ef(this);for(let r of this.$$s)r in n&&(t[r]=[e(r)]);for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=Zs(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=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){let l=Zs(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let r in this.$$l)for(let l of this.$$l[r]){let a=this.$$c.$on(r,l);this.$$l_u.set(l,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=Zs(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function Zs(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var N=class{$$=void 0;$$set=void 0;$destroy(){V(this,1),this.$destroy=de}$on(e,t){if(!Kt(t))return de;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!yf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Vf="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Vf);import"@vkontakte/videoplayer-core";import{noop as rl,safeStorage as U8,throttleFn as z8,clientChecker as W8}from"@vkontakte/videoplayer-shared";import{SeekAction as K8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as G_,fillWithDefault as Y_,VideoQuality as Q_}from"@vkontakte/videoplayer-shared";var Z_={isMobile:void 0,defaultLanguage:G_.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:Q_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,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,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,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,autoplayNext:!0},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},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Rf=i=>Y_(i,Z_),Bf=i=>gr("ui-config",i),Ft=()=>br("ui-config");var Zr="vk_player_debug_panel_opened";var Nf="videoplayer",Df="videoplayer";var io={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Of=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Ff=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Hf=new Set(["ShiftRight","ShiftLeft"]);var qf=["TIMELINE"],Xr=[...qf,"GRAPH_BUTTON"],Xs=[...qf,"PLAY_BUTTON"],bl=[...Xr,"PLAY_BUTTON"];var po=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(po||{}),Jo={xs:0,s:1,m:2,l:3,xl:4};var kr=[];function qn(i,e){return{subscribe:Be(i,e).subscribe}}function Be(i,e=de){let t,n=new Set;function o(a){if(B(i,a)&&(i=a,t)){let s=!kr.length;for(let u of n)u[1](),kr.push(u,i);if(s){for(let u=0;u<kr.length;u+=2)kr[u][0](kr[u+1]);kr.length=0}}}function r(a){o(a(i))}function l(a,s=de){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||de),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function jt(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return qn(t,(l,a)=>{let s=!1,u=[],c=0,p=de,h=()=>{if(c)return;p();let g=e(n?u[0]:u,l,a);r?l(g):p=Kt(g)?g:de},k=o.map((g,T)=>xt(g,y=>{u[T]=y,c&=~(1<<T),s&&h()},()=>{c|=1<<T}));return s=!0,h(),function(){st(k),p(),s=!1}})}import{assertNonNullable as Uf,VERSION as X_}from"@vkontakte/videoplayer-shared";import{VERSION as J_}from"@vkontakte/videoplayer-core";import{VERSION as $_}from"@vkontakte/videoplayer-statistics";var vl="prod",wr="1.1.48-dev.e2b9d2a6.0";var $o=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var zf=Symbol("storeContext"),Wf=Symbol("microStoresContext"),Kf=(i,e)=>{gr(zf,i),gr(Wf,e),vl==="dev"&&(window.app={store:i,microStores:e})},Je=()=>{let i=br(zf);return Uf(i,"Store context is empty!"),i},An=()=>{let i=br(Wf);return Uf(i,"MicroStores context is empty!"),i},gt=(i,e)=>Js(i,i.getValue(),e),Js=(i,e,t)=>qn(e,n=>{let o=i.subscribe(r=>{n(r),t?.(r)});return()=>o.unsubscribe()}),xf=(i,e,t)=>{let n=i.info,{width:o,height:r}=Ge(t.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${wr} (core: ${J_}, stat: ${$_}, shared: ${X_})`,c=Ge(t.state.errorLog$),p=c.length?`
7
7
  `+c.map((F,I)=>{let w=`${I}) Type: ${F.id}
8
8
  `,E=`Message: ${F.message} (${F.thrown})
9
9
  `,Y=`Trace: ${F.thrown?.stack}
package/evergreen.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.48-dev.bc5f783d.0
3
- * Fri, 18 Oct 2024 09:42:46 GMT
2
+ * @vkontakte/videoplayer v1.1.48-dev.e2b9d2a6.0
3
+ * Mon, 21 Oct 2024 21:48:44 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-48/doc/
5
5
  */
6
- function de(){}function oe(i,e){for(let t in e)i[t]=e[t];return i}function xs(i){return i()}function pl(){return Object.create(null)}function st(i){i.forEach(xs)}function Kt(i){return typeof i=="function"}function B(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var ml;function fo(i,e){return i===e?!0:(ml||(ml=document.createElement("a")),ml.href=e,i===ml.href)}function yf(i){return Object.keys(i).length===0}function xt(i,...e){if(i==null){for(let n of e)n(void 0);return de}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ge(i){let e;return xt(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push(xt(e,t))}function Ae(i,e,t,n){if(i){let o=kf(i,e,t,n);return i[0](o)}}function kf(i,e,t,n){return i[1]&&n?oe(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Le(i,e,t,n,o,r){if(o){let l=kf(e,t,n,r);i.p(l,o)}}function Ve(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ke(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function wf(i){return i??""}function _r(i){return i&&Kt(i.destroy)?i.destroy:de}var Yo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var _l=class i{_listeners="WeakMap"in Yo?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};_l.entries="WeakMap"in Yo?new WeakMap:void 0;var Cf=!1;function Sf(){Cf=!0}function Tf(){Cf=!1}function _(i,e){i.appendChild(e)}function ve(i,e,t){let n=If(i);if(!n.getElementById(e)){let o=S("style");o.id=e,o.textContent=t,N_(n,o)}}function If(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function N_(i,e){return _(i.head||i,e),e.sheet}function v(i,e,t){i.insertBefore(e,t||null)}function b(i){i.parentNode&&i.parentNode.removeChild(i)}function Jt(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function S(i){return document.createElement(i)}function M(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Oe(i){return document.createTextNode(i)}function x(){return Oe(" ")}function Qe(){return Oe("")}function Se(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function $t(i){return function(e){return e.preventDefault(),i.call(this,e)}}function mt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)f(i,t,e[t])}function Pf(i){return Array.from(i.childNodes)}function xe(i,e){e=""+e,i.data!==e&&(i.data=e)}function li(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function W(i,e,t){i.classList.toggle(e,!!t)}function Ef(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Tt(i,e){return new i(e)}var To;function mo(i){To=i}function hr(){if(!To)throw new Error("Function called outside component initialization");return To}function kt(i){hr().$$.on_mount.push(i)}function Yn(i){hr().$$.on_destroy.push(i)}function gr(i,e){return hr().$$.context.set(i,e),e}function br(i){return hr().$$.context.get(i)}function Yr(){return hr().$$.context}function En(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Qo=[];var ye=[],yr=[],Gs=[],Mf=Promise.resolve(),Ys=!1;function Qs(){Ys||(Ys=!0,Mf.then(hl))}function Qn(){return Qs(),Mf}function Qr(i){yr.push(i)}function qe(i){Gs.push(i)}var js=new Set,vr=0;function hl(){if(vr!==0)return;let i=To;do{try{for(;vr<Qo.length;){let e=Qo[vr];vr++,mo(e),U_(e.$$)}}catch(e){throw Qo.length=0,vr=0,e}for(mo(null),Qo.length=0,vr=0;ye.length;)ye.pop()();for(let e=0;e<yr.length;e+=1){let t=yr[e];js.has(t)||(js.add(t),t())}yr.length=0}while(Qo.length);for(;Gs.length;)Gs.pop()();Ys=!1,js.clear(),mo(i)}function U_(i){if(i.fragment!==null){i.update(),st(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Qr)}}function Lf(i){let e=[],t=[];yr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),yr=e}var gl=new Set,Zo;function se(){Zo={r:0,c:[],p:Zo}}function ae(){Zo.r||st(Zo.c),Zo=Zo.p}function d(i,e){i&&i.i&&(gl.delete(i),i.i(e))}function m(i,e,t,n){if(i&&i.o){if(gl.has(i))return;gl.add(i),Zo.c.push(()=>{gl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function _t(i){return i?.length!==void 0?i:Array.from(i)}function De(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function Io(i){return typeof i=="object"&&i!==null?i:{}}var z_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],W_=new Set([...z_]);function Ue(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function L(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Qr(()=>{let r=i.$$.on_mount.map(xs).filter(Kt);i.$$.on_destroy?i.$$.on_destroy.push(...r):st(r),i.$$.on_mount=[]}),o.forEach(Qr)}function V(i,e){let t=i.$$;t.fragment!==null&&(Lf(t.after_update),st(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function x_(i,e){i.$$.dirty[0]===-1&&(Qo.push(i),Qs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,l=null,a=[-1]){let s=To;mo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:de,not_equal:o,bound:pl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:pl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(p,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),c&&x_(i,p)),h}):[],u.update(),c=!0,st(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Sf();let p=Pf(e.target);u.fragment&&u.fragment.l(p),p.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),L(i,e.target,e.anchor),Tf(),hl()}mo(s)}var j_;typeof HTMLElement=="function"&&(j_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let l;return{c:function(){l=S("slot"),r!=="default"&&f(l,"name",r)},m:function(u,c){v(u,l,c)},d:function(u){u&&b(l)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=Ef(this);for(let r of this.$$s)r in n&&(t[r]=[e(r)]);for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=Zs(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=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){let l=Zs(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let r in this.$$l)for(let l of this.$$l[r]){let a=this.$$c.$on(r,l);this.$$l_u.set(l,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=Zs(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function Zs(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var N=class{$$=void 0;$$set=void 0;$destroy(){V(this,1),this.$destroy=de}$on(e,t){if(!Kt(t))return de;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!yf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Vf="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Vf);import"@vkontakte/videoplayer-core";import{noop as rl,safeStorage as U8,throttleFn as z8,clientChecker as W8}from"@vkontakte/videoplayer-shared";import{SeekAction as K8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as G_,fillWithDefault as Y_,VideoQuality as Q_}from"@vkontakte/videoplayer-shared";var Z_={isMobile:void 0,defaultLanguage:G_.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:Q_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,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,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,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,autoplayNext:!0},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},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Rf=i=>Y_(i,Z_),Bf=i=>gr("ui-config",i),Ft=()=>br("ui-config");var Zr="vk_player_debug_panel_opened";var Nf="videoplayer",Df="videoplayer";var io={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Of=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Ff=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Hf=new Set(["ShiftRight","ShiftLeft"]);var qf=["TIMELINE"],Xr=[...qf,"GRAPH_BUTTON"],Xs=[...qf,"PLAY_BUTTON"],bl=[...Xr,"PLAY_BUTTON"];var po=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(po||{}),Jo={xs:0,s:1,m:2,l:3,xl:4};var kr=[];function qn(i,e){return{subscribe:Be(i,e).subscribe}}function Be(i,e=de){let t,n=new Set;function o(a){if(B(i,a)&&(i=a,t)){let s=!kr.length;for(let u of n)u[1](),kr.push(u,i);if(s){for(let u=0;u<kr.length;u+=2)kr[u][0](kr[u+1]);kr.length=0}}}function r(a){o(a(i))}function l(a,s=de){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||de),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function jt(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return qn(t,(l,a)=>{let s=!1,u=[],c=0,p=de,h=()=>{if(c)return;p();let g=e(n?u[0]:u,l,a);r?l(g):p=Kt(g)?g:de},k=o.map((g,T)=>xt(g,y=>{u[T]=y,c&=~(1<<T),s&&h()},()=>{c|=1<<T}));return s=!0,h(),function(){st(k),p(),s=!1}})}import{assertNonNullable as Uf,VERSION as X_}from"@vkontakte/videoplayer-shared";import{VERSION as J_}from"@vkontakte/videoplayer-core";import{VERSION as $_}from"@vkontakte/videoplayer-statistics";var vl="prod",wr="1.1.48-dev.bc5f783d.0";var $o=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var zf=Symbol("storeContext"),Wf=Symbol("microStoresContext"),Kf=(i,e)=>{gr(zf,i),gr(Wf,e),vl==="dev"&&(window.app={store:i,microStores:e})},Je=()=>{let i=br(zf);return Uf(i,"Store context is empty!"),i},An=()=>{let i=br(Wf);return Uf(i,"MicroStores context is empty!"),i},gt=(i,e)=>Js(i,i.getValue(),e),Js=(i,e,t)=>qn(e,n=>{let o=i.subscribe(r=>{n(r),t?.(r)});return()=>o.unsubscribe()}),xf=(i,e,t)=>{let n=i.info,{width:o,height:r}=Ge(t.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${wr} (core: ${J_}, stat: ${$_}, shared: ${X_})`,c=Ge(t.state.errorLog$),p=c.length?`
6
+ function de(){}function oe(i,e){for(let t in e)i[t]=e[t];return i}function xs(i){return i()}function pl(){return Object.create(null)}function st(i){i.forEach(xs)}function Kt(i){return typeof i=="function"}function B(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var ml;function fo(i,e){return i===e?!0:(ml||(ml=document.createElement("a")),ml.href=e,i===ml.href)}function yf(i){return Object.keys(i).length===0}function xt(i,...e){if(i==null){for(let n of e)n(void 0);return de}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ge(i){let e;return xt(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push(xt(e,t))}function Ae(i,e,t,n){if(i){let o=kf(i,e,t,n);return i[0](o)}}function kf(i,e,t,n){return i[1]&&n?oe(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Le(i,e,t,n,o,r){if(o){let l=kf(e,t,n,r);i.p(l,o)}}function Ve(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ke(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function wf(i){return i??""}function _r(i){return i&&Kt(i.destroy)?i.destroy:de}var Yo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var _l=class i{_listeners="WeakMap"in Yo?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};_l.entries="WeakMap"in Yo?new WeakMap:void 0;var Cf=!1;function Sf(){Cf=!0}function Tf(){Cf=!1}function _(i,e){i.appendChild(e)}function ve(i,e,t){let n=If(i);if(!n.getElementById(e)){let o=S("style");o.id=e,o.textContent=t,N_(n,o)}}function If(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function N_(i,e){return _(i.head||i,e),e.sheet}function v(i,e,t){i.insertBefore(e,t||null)}function b(i){i.parentNode&&i.parentNode.removeChild(i)}function Jt(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function S(i){return document.createElement(i)}function M(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Oe(i){return document.createTextNode(i)}function x(){return Oe(" ")}function Qe(){return Oe("")}function Se(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function $t(i){return function(e){return e.preventDefault(),i.call(this,e)}}function mt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)f(i,t,e[t])}function Pf(i){return Array.from(i.childNodes)}function xe(i,e){e=""+e,i.data!==e&&(i.data=e)}function li(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function W(i,e,t){i.classList.toggle(e,!!t)}function Ef(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Tt(i,e){return new i(e)}var To;function mo(i){To=i}function hr(){if(!To)throw new Error("Function called outside component initialization");return To}function kt(i){hr().$$.on_mount.push(i)}function Yn(i){hr().$$.on_destroy.push(i)}function gr(i,e){return hr().$$.context.set(i,e),e}function br(i){return hr().$$.context.get(i)}function Yr(){return hr().$$.context}function En(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Qo=[];var ye=[],yr=[],Gs=[],Mf=Promise.resolve(),Ys=!1;function Qs(){Ys||(Ys=!0,Mf.then(hl))}function Qn(){return Qs(),Mf}function Qr(i){yr.push(i)}function qe(i){Gs.push(i)}var js=new Set,vr=0;function hl(){if(vr!==0)return;let i=To;do{try{for(;vr<Qo.length;){let e=Qo[vr];vr++,mo(e),U_(e.$$)}}catch(e){throw Qo.length=0,vr=0,e}for(mo(null),Qo.length=0,vr=0;ye.length;)ye.pop()();for(let e=0;e<yr.length;e+=1){let t=yr[e];js.has(t)||(js.add(t),t())}yr.length=0}while(Qo.length);for(;Gs.length;)Gs.pop()();Ys=!1,js.clear(),mo(i)}function U_(i){if(i.fragment!==null){i.update(),st(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Qr)}}function Lf(i){let e=[],t=[];yr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),yr=e}var gl=new Set,Zo;function se(){Zo={r:0,c:[],p:Zo}}function ae(){Zo.r||st(Zo.c),Zo=Zo.p}function d(i,e){i&&i.i&&(gl.delete(i),i.i(e))}function m(i,e,t,n){if(i&&i.o){if(gl.has(i))return;gl.add(i),Zo.c.push(()=>{gl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function _t(i){return i?.length!==void 0?i:Array.from(i)}function De(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function Io(i){return typeof i=="object"&&i!==null?i:{}}var z_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],W_=new Set([...z_]);function Ue(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function L(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Qr(()=>{let r=i.$$.on_mount.map(xs).filter(Kt);i.$$.on_destroy?i.$$.on_destroy.push(...r):st(r),i.$$.on_mount=[]}),o.forEach(Qr)}function V(i,e){let t=i.$$;t.fragment!==null&&(Lf(t.after_update),st(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function x_(i,e){i.$$.dirty[0]===-1&&(Qo.push(i),Qs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,l=null,a=[-1]){let s=To;mo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:de,not_equal:o,bound:pl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:pl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(p,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),c&&x_(i,p)),h}):[],u.update(),c=!0,st(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Sf();let p=Pf(e.target);u.fragment&&u.fragment.l(p),p.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),L(i,e.target,e.anchor),Tf(),hl()}mo(s)}var j_;typeof HTMLElement=="function"&&(j_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let l;return{c:function(){l=S("slot"),r!=="default"&&f(l,"name",r)},m:function(u,c){v(u,l,c)},d:function(u){u&&b(l)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=Ef(this);for(let r of this.$$s)r in n&&(t[r]=[e(r)]);for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=Zs(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=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){let l=Zs(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let r in this.$$l)for(let l of this.$$l[r]){let a=this.$$c.$on(r,l);this.$$l_u.set(l,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=Zs(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function Zs(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var N=class{$$=void 0;$$set=void 0;$destroy(){V(this,1),this.$destroy=de}$on(e,t){if(!Kt(t))return de;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!yf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Vf="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Vf);import"@vkontakte/videoplayer-core";import{noop as rl,safeStorage as U8,throttleFn as z8,clientChecker as W8}from"@vkontakte/videoplayer-shared";import{SeekAction as K8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as G_,fillWithDefault as Y_,VideoQuality as Q_}from"@vkontakte/videoplayer-shared";var Z_={isMobile:void 0,defaultLanguage:G_.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:Q_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,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,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,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,autoplayNext:!0},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},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Rf=i=>Y_(i,Z_),Bf=i=>gr("ui-config",i),Ft=()=>br("ui-config");var Zr="vk_player_debug_panel_opened";var Nf="videoplayer",Df="videoplayer";var io={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Of=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Ff=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Hf=new Set(["ShiftRight","ShiftLeft"]);var qf=["TIMELINE"],Xr=[...qf,"GRAPH_BUTTON"],Xs=[...qf,"PLAY_BUTTON"],bl=[...Xr,"PLAY_BUTTON"];var po=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(po||{}),Jo={xs:0,s:1,m:2,l:3,xl:4};var kr=[];function qn(i,e){return{subscribe:Be(i,e).subscribe}}function Be(i,e=de){let t,n=new Set;function o(a){if(B(i,a)&&(i=a,t)){let s=!kr.length;for(let u of n)u[1](),kr.push(u,i);if(s){for(let u=0;u<kr.length;u+=2)kr[u][0](kr[u+1]);kr.length=0}}}function r(a){o(a(i))}function l(a,s=de){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||de),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function jt(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return qn(t,(l,a)=>{let s=!1,u=[],c=0,p=de,h=()=>{if(c)return;p();let g=e(n?u[0]:u,l,a);r?l(g):p=Kt(g)?g:de},k=o.map((g,T)=>xt(g,y=>{u[T]=y,c&=~(1<<T),s&&h()},()=>{c|=1<<T}));return s=!0,h(),function(){st(k),p(),s=!1}})}import{assertNonNullable as Uf,VERSION as X_}from"@vkontakte/videoplayer-shared";import{VERSION as J_}from"@vkontakte/videoplayer-core";import{VERSION as $_}from"@vkontakte/videoplayer-statistics";var vl="prod",wr="1.1.48-dev.e2b9d2a6.0";var $o=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var zf=Symbol("storeContext"),Wf=Symbol("microStoresContext"),Kf=(i,e)=>{gr(zf,i),gr(Wf,e),vl==="dev"&&(window.app={store:i,microStores:e})},Je=()=>{let i=br(zf);return Uf(i,"Store context is empty!"),i},An=()=>{let i=br(Wf);return Uf(i,"MicroStores context is empty!"),i},gt=(i,e)=>Js(i,i.getValue(),e),Js=(i,e,t)=>qn(e,n=>{let o=i.subscribe(r=>{n(r),t?.(r)});return()=>o.unsubscribe()}),xf=(i,e,t)=>{let n=i.info,{width:o,height:r}=Ge(t.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${wr} (core: ${J_}, stat: ${$_}, shared: ${X_})`,c=Ge(t.state.errorLog$),p=c.length?`
7
7
  `+c.map((F,I)=>{let w=`${I}) Type: ${F.id}
8
8
  `,E=`Message: ${F.message} (${F.thrown})
9
9
  `,Y=`Trace: ${F.thrown?.stack}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/videoplayer",
3
- "version": "1.1.48-dev.bc5f783d.0",
3
+ "version": "1.1.48-dev.e2b9d2a6.0",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -49,9 +49,9 @@
49
49
  "**/*.d.ts"
50
50
  ],
51
51
  "dependencies": {
52
- "@vkontakte/videoplayer-core": "2.0.115-dev.4b123642.0",
53
- "@vkontakte/videoplayer-interactive": "1.0.23-dev.d35f212e.0",
54
- "@vkontakte/videoplayer-shared": "1.0.47-dev.2703e861.0",
55
- "@vkontakte/videoplayer-statistics": "1.0.62-dev.bcf7e98d.0"
52
+ "@vkontakte/videoplayer-core": "2.0.115-dev.2251eeb9.0",
53
+ "@vkontakte/videoplayer-interactive": "1.0.23-dev.1cf67269.0",
54
+ "@vkontakte/videoplayer-shared": "^1.0.46",
55
+ "@vkontakte/videoplayer-statistics": "1.0.62-dev.bc1b5d47.0"
56
56
  }
57
57
  }