@vkontakte/videoplayer 1.1.36-dev.55db5eff.0 → 1.1.36-dev.911333bb.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 +3 -3
- package/es2015.esm.js +3 -3
- package/es2018.cjs.js +3 -3
- package/es2018.esm.js +3 -3
- package/esnext.cjs.js +3 -3
- package/esnext.esm.js +3 -3
- package/evergreen.esm.js +3 -3
- package/package.json +5 -5
package/es2015.cjs.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.36-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.36-dev.911333bb.0
|
|
3
|
+
* Mon, 03 Jun 2024 06:24:12 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-36/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var a0=Object.create;var Ll=Object.defineProperty,u0=Object.defineProperties,c0=Object.getOwnPropertyDescriptor,f0=Object.getOwnPropertyDescriptors,d0=Object.getOwnPropertyNames,jr=Object.getOwnPropertySymbols,m0=Object.getPrototypeOf,qr=Object.prototype.hasOwnProperty,p0=Object.prototype.propertyIsEnumerable;var Il=(i,e,t)=>e in i?Ll(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,dn=(i,e)=>{for(var t in e||(e={}))qr.call(e,t)&&Il(i,t,e[t]);if(jr)for(var t of jr(e))p0.call(e,t)&&Il(i,t,e[t]);return i},mo=(i,e)=>u0(i,f0(e));var h0=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of d0(e))!qr.call(i,l)&&l!==t&&Ll(i,l,{get:()=>e[l],enumerable:!(n=c0(e,l))||n.enumerable});return i};var Wr=(i,e,t)=>(t=i!=null?a0(m0(i)):{},h0(e||!i||!i.__esModule?Ll(t,"default",{value:i,enumerable:!0}):t,i));var Vl=(i,e,t)=>(Il(i,typeof e!="symbol"?e+"":e,t),t);var xi=(i,e,t)=>new Promise((n,l)=>{var r=a=>{try{s(t.next(a))}catch(c){l(c)}},o=a=>{try{s(t.throw(a))}catch(c){l(c)}},s=a=>a.done?n(a.value):Promise.resolve(a.value).then(r,o);s((t=t.apply(i,e)).next())});var $e=require("@vkontakte/videoplayer-core/es2015.cjs.js"),ne=require("@vkontakte/videoplayer-shared/es2015.cjs.js"),yt=require("@vkontakte/videoplayer-statistics/es2015.cjs.js");require("@vkontakte/videoplayer-interactive/es2015.cjs.js");function fi(i,e,t,n){function l(r){return r instanceof t?r:new t(function(o){o(r)})}return new(t||(t=Promise))(function(r,o){function s(f){try{c(n.next(f))}catch(d){o(d)}}function a(f){try{c(n.throw(f))}catch(d){o(d)}}function c(f){f.done?r(f.value):l(f.value).then(s,a)}c((n=n.apply(i,e||[])).next())})}function K(){}function S1(i,e){for(const t in e)i[t]=e[t];return i}function P1(i){return i()}function Zr(){return Object.create(null)}function nt(i){i.forEach(P1)}function Mn(i){return typeof i=="function"}function be(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Jo;function Kr(i,e){return Jo||(Jo=document.createElement("a")),Jo.href=e,i===Jo.href}function v0(i){return Object.keys(i).length===0}function Qt(i,...e){if(i==null){for(const n of e)n(void 0);return K}const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function tt(i){let e;return Qt(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push(Qt(e,t))}function qn(i,e,t,n){if(i){const l=T1(i,e,t,n);return i[0](l)}}function T1(i,e,t,n){return i[1]&&n?S1(t.ctx.slice(),i[1](n(e))):t.ctx}function Wn(i,e,t,n){if(i[2]&&n){const l=i[2](n(t));if(e.dirty===void 0)return l;if(typeof l=="object"){const r=[],o=Math.max(e.dirty.length,l.length);for(let s=0;s<o;s+=1)r[s]=e.dirty[s]|l[s];return r}return e.dirty|l}return e.dirty}function Zn(i,e,t,n,l,r){if(l){const o=T1(e,t,n,r);i.p(o,l)}}function Kn(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function g0(i){return i==null?"":i}const vl=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function p(i,e){i.appendChild(e)}function Ze(i,e,t){const n=b0(i);if(!n.getElementById(e)){const l=T("style");l.id=e,l.textContent=t,_0(n,l)}}function b0(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function _0(i,e){return p(i.head||i,e),e.sheet}function P(i,e,t){i.insertBefore(e,t||null)}function S(i){i.parentNode&&i.parentNode.removeChild(i)}function Bn(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function N(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function ze(i){return document.createTextNode(i)}function O(){return ze(" ")}function mt(){return ze("")}function ve(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Jt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function st(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function u(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function w0(i){return Array.from(i.childNodes)}function et(i,e){e=""+e,i.data!==e&&(i.data=e)}function Ft(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}let xo;function k0(){if(xo===void 0){xo=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){xo=!0}}return xo}function dr(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");const n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const l=k0();let r;return l?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=ve(window,"message",o=>{o.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=ve(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(l||r&&n.contentWindow)&&r(),S(n)}}function B(i,e,t){i.classList.toggle(e,!!t)}function Dn(i,e){return new i(e)}let Bo;function Mo(i){Bo=i}function Ro(){if(!Bo)throw new Error("Function called outside component initialization");return Bo}function _n(i){Ro().$$.on_mount.push(i)}function gl(i){Ro().$$.on_destroy.push(i)}function nr(i,e){return Ro().$$.context.set(i,e),e}function mr(i){return Ro().$$.context.get(i)}function E1(){return Ro().$$.context}function Po(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const wo=[],Ce=[];let Co=[];const or=[],A1=Promise.resolve();let lr=!1;function I1(){lr||(lr=!0,A1.then(L1))}function Oo(){return I1(),A1}function To(i){Co.push(i)}function qe(i){or.push(i)}const Ml=new Set;let po=0;function L1(){if(po!==0)return;const i=Bo;do{try{for(;po<wo.length;){const e=wo[po];po++,Mo(e),y0(e.$$)}}catch(e){throw wo.length=0,po=0,e}for(Mo(null),wo.length=0,po=0;Ce.length;)Ce.pop()();for(let e=0;e<Co.length;e+=1){const t=Co[e];Ml.has(t)||(Ml.add(t),t())}Co.length=0}while(wo.length);for(;or.length;)or.pop()();lr=!1,Ml.clear(),Mo(i)}function y0(i){if(i.fragment!==null){i.update(),nt(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(To)}}function C0(i){const e=[],t=[];Co.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Co=e}const cl=new Set;let lo;function de(){lo={r:0,c:[],p:lo}}function me(){lo.r||nt(lo.c),lo=lo.p}function m(i,e){i&&i.i&&(cl.delete(i),i.i(e))}function v(i,e,t,n){if(i&&i.o){if(cl.has(i))return;cl.add(i),lo.c.push(()=>{cl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Zt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function S0(i,e){const t={},n={},l={$$scope:1};let r=i.length;for(;r--;){const o=i[r],s=e[r];if(s){for(const a in o)a in s||(n[a]=1);for(const a in s)l[a]||(t[a]=s[a],l[a]=1);i[r]=s}else for(const a in o)l[a]=1}for(const o in n)o in t||(t[o]=void 0);return t}function P0(i){return typeof i=="object"&&i!==null?i:{}}function We(i,e,t){const n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function j(i){i&&i.c()}function F(i,e,t){const{fragment:n,after_update:l}=i.$$;n&&n.m(e,t),To(()=>{const r=i.$$.on_mount.map(P1).filter(Mn);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),l.forEach(To)}function H(i,e){const t=i.$$;t.fragment!==null&&(C0(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function T0(i,e){i.$$.dirty[0]===-1&&(wo.push(i),I1(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function we(i,e,t,n,l,r,o,s=[-1]){const a=Bo;Mo(i);const c=i.$$={fragment:null,ctx:[],props:r,update:K,not_equal:l,bound:Zr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:Zr(),dirty:s,skip_bound:!1,root:e.target||a.$$.root};o&&o(c.root);let f=!1;if(c.ctx=t?t(i,e.props||{},(d,h,..._)=>{const g=_.length?_[0]:h;return c.ctx&&l(c.ctx[d],c.ctx[d]=g)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](g),f&&T0(i,d)),h}):[],c.update(),f=!0,nt(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const d=w0(e.target);c.fragment&&c.fragment.l(d),d.forEach(S)}else c.fragment&&c.fragment.c();e.intro&&m(i.$$.fragment),F(i,e.target,e.anchor),L1()}Mo(a)}class ke{constructor(){Vl(this,"$$");Vl(this,"$$set")}$destroy(){H(this,1),this.$destroy=K}$on(e,t){if(!Mn(t))return K;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const l=n.indexOf(t);l!==-1&&n.splice(l,1)}}$set(e){this.$$set&&!v0(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const E0="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(E0);var Eo;(function(i){i.VK="vk",i.VK_VIDEO="vk_video"})(Eo||(Eo={}));const A0={isMobile:void 0,defaultLanguage:ne.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:Eo.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:ne.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,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{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,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},I0=i=>ne.fillWithDefault(i,A0),L0=i=>nr("ui-config",i),wn=()=>mr("ui-config"),rr="vk_player_debug_panel_opened",V1=300,V0=100,M0="videoplayer",B0="videoplayer";var Ae;(function(i){i.ArrowLeft="ArrowLeft",i.ArrowUp="ArrowUp",i.ArrowRight="ArrowRight",i.ArrowDown="ArrowDown",i.Comma="Comma",i.Period="Period",i.Space="Space",i.KeyM="KeyM",i.KeyF="KeyF",i.KeyK="KeyK",i.KeyL="KeyL",i.KeyJ="KeyJ",i.KeyC="KeyC",i.KeyI="KeyI",i.Digit1="Digit1",i.Digit2="Digit2",i.Digit3="Digit3",i.Digit4="Digit4",i.Digit5="Digit5",i.Digit6="Digit6",i.Digit7="Digit7",i.Digit8="Digit8",i.Digit9="Digit9",i.Digit0="Digit0",i.Numpad1="Numpad1",i.Numpad2="Numpad2",i.Numpad3="Numpad3",i.Numpad4="Numpad4",i.Numpad5="Numpad5",i.Numpad6="Numpad6",i.Numpad7="Numpad7",i.Numpad8="Numpad8",i.Numpad9="Numpad9",i.Numpad0="Numpad0",i.ShiftLeft="ShiftLeft",i.ShiftRight="ShiftRight",i.Slash="Slash",i.Tab="Tab",i.Escape="Escape",i.Enter="Enter"})(Ae||(Ae={}));const Do={[Ae.KeyF]:"f",[Ae.KeyK]:"k",[Ae.KeyC]:"c",[Ae.KeyM]:"m"},N0=new Set([Ae.ArrowLeft,Ae.ArrowRight,Ae.KeyL,Ae.KeyJ]),R0=new Set([Ae.Tab,Ae.Space,Ae.ArrowLeft,Ae.ArrowRight,Ae.ArrowUp,Ae.ArrowDown]),O0=new Set([Ae.ShiftRight,Ae.ShiftLeft]);var dt;(function(i){i.PLAY_BUTTON="PLAY_BUTTON",i.REPLAY_BUTTON="REPLAY_BUTTON",i.NEXT_BUTTON="NEXT_BUTTON",i.PREV_BUTTON="PREV_BUTTON",i.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",i.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",i.SETTINGS_BUTTON="SETTINGS_BUTTON",i.LIVE_BUTTON="LIVE_BUTTON",i.GRAPH_BUTTON="GRAPH_BUTTON",i.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",i.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",i.TIMELINE="TIMELINE",i.VOLUME_BAR="VOLUME_BAR",i.MUTE_BUTTON="MUTE_BUTTON",i.SUBTITLES_BUTTON="SUBTITLES_BUTTON",i.CHROMECAST_BUTTON="CHROMECAST_BUTTON",i.VK_BUTTON="VK_BUTTON",i.EPISODE_BUTTON="EPISODE_BUTTON",i.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",i.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(dt||(dt={}));const Gr=40,M1=260,D0=60,$o=8,B1=[dt.TIMELINE],fl=[...B1,dt.GRAPH_BUTTON],Yr=[...B1,dt.PLAY_BUTTON],N1=[...fl,dt.PLAY_BUTTON];var ko;(function(i){i[i.XS=320]="XS",i[i.S=509]="S",i[i.M=599]="M",i[i.L=699]="L"})(ko||(ko={}));exports.GridTypes=void 0;(function(i){i.XS="xs",i.S="s",i.M="m",i.L="l",i.XL="xl"})(exports.GridTypes||(exports.GridTypes={}));const Ao={[exports.GridTypes.XS]:0,[exports.GridTypes.S]:1,[exports.GridTypes.M]:2,[exports.GridTypes.L]:3,[exports.GridTypes.XL]:4},ho=[];function On(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=K){let t;const n=new Set;function l(s){if(be(i,s)&&(i=s,t)){const a=!ho.length;for(const c of n)c[1](),ho.push(c,i);if(a){for(let c=0;c<ho.length;c+=2)ho[c][0](ho[c+1]);ho.length=0}}}function r(s){l(s(i))}function o(s,a=K){const c=[s,a];return n.add(c),n.size===1&&(t=e(l,r)||K),s(i),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:l,update:r,subscribe:o}}function Oi(i,e,t){const n=!Array.isArray(i),l=n?[i]:i;if(!l.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return On(t,(o,s)=>{let a=!1;const c=[];let f=0,d=K;const h=()=>{if(f)return;d();const g=e(n?c[0]:c,o,s);r?o(g):d=Mn(g)?g:K},_=l.map((g,w)=>Qt(g,b=>{c[w]=b,f&=~(1<<w),a&&h()},()=>{f|=1<<w}));return a=!0,h(),function(){nt(_),d(),a=!1}})}const z0="prod",bl="1.1.36-dev.55db5eff.0",R1=(i,e,t)=>{const n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()},O1=Symbol("storeContext"),D1=Symbol("microStoresContext"),F0=(i,e)=>{nr(O1,i),nr(D1,e)},Ct=()=>{const i=mr(O1);return ne.assertNonNullable(i,"Store context is empty!"),i},zo=()=>{const i=mr(D1);return ne.assertNonNullable(i,"MicroStores context is empty!"),i},kt=(i,e)=>z1(i,i.getValue(),e),z1=(i,e,t)=>On(e,n=>{const l=i.subscribe(r=>{n(r),t==null||t(r)});return()=>l.unsubscribe()}),H0=(i,e,t)=>{var n,l,r,o;const s=i.info,{width:a,height:c}=tt(t.ui.playerSize),f=(l=(n=s.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&l!==void 0?l:0,d=(o=(r=s.rttEstimation$.getValue())===null||r===void 0?void 0:r.toFixed(0))!==null&&o!==void 0?o:0,h=s.isAutoQualityEnabled$.getValue()?"auto":"manual",_=`${bl} (core: ${$e.VERSION}, stat: ${yt.VERSION}, shared: ${ne.VERSION})`,g=tt(t.state.errorLog$),w=g.length?`
|
|
6
|
+
"use strict";var a0=Object.create;var Ll=Object.defineProperty,u0=Object.defineProperties,c0=Object.getOwnPropertyDescriptor,f0=Object.getOwnPropertyDescriptors,d0=Object.getOwnPropertyNames,jr=Object.getOwnPropertySymbols,m0=Object.getPrototypeOf,qr=Object.prototype.hasOwnProperty,p0=Object.prototype.propertyIsEnumerable;var Il=(i,e,t)=>e in i?Ll(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,dn=(i,e)=>{for(var t in e||(e={}))qr.call(e,t)&&Il(i,t,e[t]);if(jr)for(var t of jr(e))p0.call(e,t)&&Il(i,t,e[t]);return i},mo=(i,e)=>u0(i,f0(e));var h0=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of d0(e))!qr.call(i,l)&&l!==t&&Ll(i,l,{get:()=>e[l],enumerable:!(n=c0(e,l))||n.enumerable});return i};var Wr=(i,e,t)=>(t=i!=null?a0(m0(i)):{},h0(e||!i||!i.__esModule?Ll(t,"default",{value:i,enumerable:!0}):t,i));var Vl=(i,e,t)=>(Il(i,typeof e!="symbol"?e+"":e,t),t);var xi=(i,e,t)=>new Promise((n,l)=>{var r=a=>{try{s(t.next(a))}catch(c){l(c)}},o=a=>{try{s(t.throw(a))}catch(c){l(c)}},s=a=>a.done?n(a.value):Promise.resolve(a.value).then(r,o);s((t=t.apply(i,e)).next())});var $e=require("@vkontakte/videoplayer-core/es2015.cjs.js"),ne=require("@vkontakte/videoplayer-shared/es2015.cjs.js"),yt=require("@vkontakte/videoplayer-statistics/es2015.cjs.js");require("@vkontakte/videoplayer-interactive/es2015.cjs.js");function fi(i,e,t,n){function l(r){return r instanceof t?r:new t(function(o){o(r)})}return new(t||(t=Promise))(function(r,o){function s(f){try{c(n.next(f))}catch(d){o(d)}}function a(f){try{c(n.throw(f))}catch(d){o(d)}}function c(f){f.done?r(f.value):l(f.value).then(s,a)}c((n=n.apply(i,e||[])).next())})}function K(){}function S1(i,e){for(const t in e)i[t]=e[t];return i}function P1(i){return i()}function Zr(){return Object.create(null)}function nt(i){i.forEach(P1)}function Mn(i){return typeof i=="function"}function be(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Jo;function Kr(i,e){return Jo||(Jo=document.createElement("a")),Jo.href=e,i===Jo.href}function v0(i){return Object.keys(i).length===0}function Qt(i,...e){if(i==null){for(const n of e)n(void 0);return K}const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function tt(i){let e;return Qt(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push(Qt(e,t))}function qn(i,e,t,n){if(i){const l=T1(i,e,t,n);return i[0](l)}}function T1(i,e,t,n){return i[1]&&n?S1(t.ctx.slice(),i[1](n(e))):t.ctx}function Wn(i,e,t,n){if(i[2]&&n){const l=i[2](n(t));if(e.dirty===void 0)return l;if(typeof l=="object"){const r=[],o=Math.max(e.dirty.length,l.length);for(let s=0;s<o;s+=1)r[s]=e.dirty[s]|l[s];return r}return e.dirty|l}return e.dirty}function Zn(i,e,t,n,l,r){if(l){const o=T1(e,t,n,r);i.p(o,l)}}function Kn(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function g0(i){return i==null?"":i}const vl=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function p(i,e){i.appendChild(e)}function Ze(i,e,t){const n=b0(i);if(!n.getElementById(e)){const l=T("style");l.id=e,l.textContent=t,_0(n,l)}}function b0(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function _0(i,e){return p(i.head||i,e),e.sheet}function P(i,e,t){i.insertBefore(e,t||null)}function S(i){i.parentNode&&i.parentNode.removeChild(i)}function Bn(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function N(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function ze(i){return document.createTextNode(i)}function O(){return ze(" ")}function mt(){return ze("")}function ve(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Jt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function st(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function u(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function w0(i){return Array.from(i.childNodes)}function et(i,e){e=""+e,i.data!==e&&(i.data=e)}function Ft(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}let xo;function k0(){if(xo===void 0){xo=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){xo=!0}}return xo}function dr(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");const n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const l=k0();let r;return l?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=ve(window,"message",o=>{o.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=ve(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(l||r&&n.contentWindow)&&r(),S(n)}}function B(i,e,t){i.classList.toggle(e,!!t)}function Dn(i,e){return new i(e)}let Bo;function Mo(i){Bo=i}function Ro(){if(!Bo)throw new Error("Function called outside component initialization");return Bo}function _n(i){Ro().$$.on_mount.push(i)}function gl(i){Ro().$$.on_destroy.push(i)}function nr(i,e){return Ro().$$.context.set(i,e),e}function mr(i){return Ro().$$.context.get(i)}function E1(){return Ro().$$.context}function Po(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const wo=[],Ce=[];let Co=[];const or=[],A1=Promise.resolve();let lr=!1;function I1(){lr||(lr=!0,A1.then(L1))}function Oo(){return I1(),A1}function To(i){Co.push(i)}function qe(i){or.push(i)}const Ml=new Set;let po=0;function L1(){if(po!==0)return;const i=Bo;do{try{for(;po<wo.length;){const e=wo[po];po++,Mo(e),y0(e.$$)}}catch(e){throw wo.length=0,po=0,e}for(Mo(null),wo.length=0,po=0;Ce.length;)Ce.pop()();for(let e=0;e<Co.length;e+=1){const t=Co[e];Ml.has(t)||(Ml.add(t),t())}Co.length=0}while(wo.length);for(;or.length;)or.pop()();lr=!1,Ml.clear(),Mo(i)}function y0(i){if(i.fragment!==null){i.update(),nt(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(To)}}function C0(i){const e=[],t=[];Co.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Co=e}const cl=new Set;let lo;function de(){lo={r:0,c:[],p:lo}}function me(){lo.r||nt(lo.c),lo=lo.p}function m(i,e){i&&i.i&&(cl.delete(i),i.i(e))}function v(i,e,t,n){if(i&&i.o){if(cl.has(i))return;cl.add(i),lo.c.push(()=>{cl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Zt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function S0(i,e){const t={},n={},l={$$scope:1};let r=i.length;for(;r--;){const o=i[r],s=e[r];if(s){for(const a in o)a in s||(n[a]=1);for(const a in s)l[a]||(t[a]=s[a],l[a]=1);i[r]=s}else for(const a in o)l[a]=1}for(const o in n)o in t||(t[o]=void 0);return t}function P0(i){return typeof i=="object"&&i!==null?i:{}}function We(i,e,t){const n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function j(i){i&&i.c()}function F(i,e,t){const{fragment:n,after_update:l}=i.$$;n&&n.m(e,t),To(()=>{const r=i.$$.on_mount.map(P1).filter(Mn);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),l.forEach(To)}function H(i,e){const t=i.$$;t.fragment!==null&&(C0(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function T0(i,e){i.$$.dirty[0]===-1&&(wo.push(i),I1(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function we(i,e,t,n,l,r,o,s=[-1]){const a=Bo;Mo(i);const c=i.$$={fragment:null,ctx:[],props:r,update:K,not_equal:l,bound:Zr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:Zr(),dirty:s,skip_bound:!1,root:e.target||a.$$.root};o&&o(c.root);let f=!1;if(c.ctx=t?t(i,e.props||{},(d,h,..._)=>{const g=_.length?_[0]:h;return c.ctx&&l(c.ctx[d],c.ctx[d]=g)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](g),f&&T0(i,d)),h}):[],c.update(),f=!0,nt(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const d=w0(e.target);c.fragment&&c.fragment.l(d),d.forEach(S)}else c.fragment&&c.fragment.c();e.intro&&m(i.$$.fragment),F(i,e.target,e.anchor),L1()}Mo(a)}class ke{constructor(){Vl(this,"$$");Vl(this,"$$set")}$destroy(){H(this,1),this.$destroy=K}$on(e,t){if(!Mn(t))return K;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const l=n.indexOf(t);l!==-1&&n.splice(l,1)}}$set(e){this.$$set&&!v0(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const E0="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(E0);var Eo;(function(i){i.VK="vk",i.VK_VIDEO="vk_video"})(Eo||(Eo={}));const A0={isMobile:void 0,defaultLanguage:ne.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:Eo.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:ne.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,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{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,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},I0=i=>ne.fillWithDefault(i,A0),L0=i=>nr("ui-config",i),wn=()=>mr("ui-config"),rr="vk_player_debug_panel_opened",V1=300,V0=100,M0="videoplayer",B0="videoplayer";var Ae;(function(i){i.ArrowLeft="ArrowLeft",i.ArrowUp="ArrowUp",i.ArrowRight="ArrowRight",i.ArrowDown="ArrowDown",i.Comma="Comma",i.Period="Period",i.Space="Space",i.KeyM="KeyM",i.KeyF="KeyF",i.KeyK="KeyK",i.KeyL="KeyL",i.KeyJ="KeyJ",i.KeyC="KeyC",i.KeyI="KeyI",i.Digit1="Digit1",i.Digit2="Digit2",i.Digit3="Digit3",i.Digit4="Digit4",i.Digit5="Digit5",i.Digit6="Digit6",i.Digit7="Digit7",i.Digit8="Digit8",i.Digit9="Digit9",i.Digit0="Digit0",i.Numpad1="Numpad1",i.Numpad2="Numpad2",i.Numpad3="Numpad3",i.Numpad4="Numpad4",i.Numpad5="Numpad5",i.Numpad6="Numpad6",i.Numpad7="Numpad7",i.Numpad8="Numpad8",i.Numpad9="Numpad9",i.Numpad0="Numpad0",i.ShiftLeft="ShiftLeft",i.ShiftRight="ShiftRight",i.Slash="Slash",i.Tab="Tab",i.Escape="Escape",i.Enter="Enter"})(Ae||(Ae={}));const Do={[Ae.KeyF]:"f",[Ae.KeyK]:"k",[Ae.KeyC]:"c",[Ae.KeyM]:"m"},N0=new Set([Ae.ArrowLeft,Ae.ArrowRight,Ae.KeyL,Ae.KeyJ]),R0=new Set([Ae.Tab,Ae.Space,Ae.ArrowLeft,Ae.ArrowRight,Ae.ArrowUp,Ae.ArrowDown]),O0=new Set([Ae.ShiftRight,Ae.ShiftLeft]);var dt;(function(i){i.PLAY_BUTTON="PLAY_BUTTON",i.REPLAY_BUTTON="REPLAY_BUTTON",i.NEXT_BUTTON="NEXT_BUTTON",i.PREV_BUTTON="PREV_BUTTON",i.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",i.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",i.SETTINGS_BUTTON="SETTINGS_BUTTON",i.LIVE_BUTTON="LIVE_BUTTON",i.GRAPH_BUTTON="GRAPH_BUTTON",i.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",i.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",i.TIMELINE="TIMELINE",i.VOLUME_BAR="VOLUME_BAR",i.MUTE_BUTTON="MUTE_BUTTON",i.SUBTITLES_BUTTON="SUBTITLES_BUTTON",i.CHROMECAST_BUTTON="CHROMECAST_BUTTON",i.VK_BUTTON="VK_BUTTON",i.EPISODE_BUTTON="EPISODE_BUTTON",i.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",i.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(dt||(dt={}));const Gr=40,M1=260,D0=60,$o=8,B1=[dt.TIMELINE],fl=[...B1,dt.GRAPH_BUTTON],Yr=[...B1,dt.PLAY_BUTTON],N1=[...fl,dt.PLAY_BUTTON];var ko;(function(i){i[i.XS=320]="XS",i[i.S=509]="S",i[i.M=599]="M",i[i.L=699]="L"})(ko||(ko={}));exports.GridTypes=void 0;(function(i){i.XS="xs",i.S="s",i.M="m",i.L="l",i.XL="xl"})(exports.GridTypes||(exports.GridTypes={}));const Ao={[exports.GridTypes.XS]:0,[exports.GridTypes.S]:1,[exports.GridTypes.M]:2,[exports.GridTypes.L]:3,[exports.GridTypes.XL]:4},ho=[];function On(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=K){let t;const n=new Set;function l(s){if(be(i,s)&&(i=s,t)){const a=!ho.length;for(const c of n)c[1](),ho.push(c,i);if(a){for(let c=0;c<ho.length;c+=2)ho[c][0](ho[c+1]);ho.length=0}}}function r(s){l(s(i))}function o(s,a=K){const c=[s,a];return n.add(c),n.size===1&&(t=e(l,r)||K),s(i),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:l,update:r,subscribe:o}}function Oi(i,e,t){const n=!Array.isArray(i),l=n?[i]:i;if(!l.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return On(t,(o,s)=>{let a=!1;const c=[];let f=0,d=K;const h=()=>{if(f)return;d();const g=e(n?c[0]:c,o,s);r?o(g):d=Mn(g)?g:K},_=l.map((g,w)=>Qt(g,b=>{c[w]=b,f&=~(1<<w),a&&h()},()=>{f|=1<<w}));return a=!0,h(),function(){nt(_),d(),a=!1}})}const z0="prod",bl="1.1.36-dev.911333bb.0",R1=(i,e,t)=>{const n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()},O1=Symbol("storeContext"),D1=Symbol("microStoresContext"),F0=(i,e)=>{nr(O1,i),nr(D1,e)},Ct=()=>{const i=mr(O1);return ne.assertNonNullable(i,"Store context is empty!"),i},zo=()=>{const i=mr(D1);return ne.assertNonNullable(i,"MicroStores context is empty!"),i},kt=(i,e)=>z1(i,i.getValue(),e),z1=(i,e,t)=>On(e,n=>{const l=i.subscribe(r=>{n(r),t==null||t(r)});return()=>l.unsubscribe()}),H0=(i,e,t)=>{var n,l,r,o;const s=i.info,{width:a,height:c}=tt(t.ui.playerSize),f=(l=(n=s.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&l!==void 0?l:0,d=(o=(r=s.rttEstimation$.getValue())===null||r===void 0?void 0:r.toFixed(0))!==null&&o!==void 0?o:0,h=s.isAutoQualityEnabled$.getValue()?"auto":"manual",_=`${bl} (core: ${$e.VERSION}, stat: ${yt.VERSION}, shared: ${ne.VERSION})`,g=tt(t.state.errorLog$),w=g.length?`
|
|
7
7
|
`+g.map((k,y)=>{var M;const q=`${y}) Type: ${k.id}
|
|
8
8
|
`,I=`Message: ${k.message} (${k.thrown})
|
|
9
9
|
`,z=`Trace: ${(M=k.thrown)===null||M===void 0?void 0:M.stack}
|
package/es2015.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.36-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.36-dev.911333bb.0
|
|
3
|
+
* Mon, 03 Jun 2024 06:24:12 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-36/doc/
|
|
5
5
|
*/
|
|
6
|
-
var P0=Object.defineProperty,T0=Object.defineProperties;var E0=Object.getOwnPropertyDescriptors;var os=Object.getOwnPropertySymbols;var I0=Object.prototype.hasOwnProperty,A0=Object.prototype.propertyIsEnumerable;var ql=(i,e,t)=>e in i?P0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,pn=(i,e)=>{for(var t in e||(e={}))I0.call(e,t)&&ql(i,t,e[t]);if(os)for(var t of os(e))A0.call(e,t)&&ql(i,t,e[t]);return i},wo=(i,e)=>T0(i,E0(e));var jl=(i,e,t)=>(ql(i,typeof e!="symbol"?e+"":e,t),t);var en=(i,e,t)=>new Promise((n,l)=>{var r=a=>{try{s(t.next(a))}catch(c){l(c)}},o=a=>{try{s(t.throw(a))}catch(c){l(c)}},s=a=>a.done?n(a.value):Promise.resolve(a.value).then(r,o);s((t=t.apply(i,e)).next())});import{VERSION as L0,ChromecastState as qn,PlaybackState as Kt,VideoQuality as Eo,Player as M0,VideoFormat as Ho}from"@vkontakte/videoplayer-core/es2015.esm.js";import{VideoFormat as s8,VideoQuality as a8}from"@vkontakte/videoplayer-core/es2015.esm.js";import{InterfaceLanguage as Zo,VideoQuality as kl,fillWithDefault as V0,VERSION as B0,assertNonNullable as vt,safeStorage as Dn,isNullable as Pl,Subscription as ro,isNonNullable as Nn,isMacLike as ls,debounceFn as R0,ValueSubject as Sr,getCurrentBrowser as Pr,CurrentClientBrowser as F1,noop as Ge,checkNever as N0,timeCodeToString as O0,Subject as Tn,addScript as D0,Logger as H1,merge as z0,Observable as F0,map as H0,loadVKLangPack as U0,isIOS as Tr,getHighestQuality as q0,throttleFn as Al,CurrentClientDevice as j0,getIOSVersion as W0,detectEmbed as Z0,observeElementSize as K0,isMobile as G0,cloneDeepWith as Y0}from"@vkontakte/videoplayer-shared/es2015.esm.js";import{InterfaceLanguage as c8,VKNumericLanguage as f8,loadVKLangPack as d8}from"@vkontakte/videoplayer-shared/es2015.esm.js";import{VERSION as Q0,SeekAction as qt,OneStat as X0,InteractiveInterfaceClick as Uo}from"@vkontakte/videoplayer-statistics/es2015.esm.js";import"@vkontakte/videoplayer-interactive/es2015.esm.js";function mi(i,e,t,n){function l(r){return r instanceof t?r:new t(function(o){o(r)})}return new(t||(t=Promise))(function(r,o){function s(f){try{c(n.next(f))}catch(d){o(d)}}function a(f){try{c(n.throw(f))}catch(d){o(d)}}function c(f){f.done?r(f.value):l(f.value).then(s,a)}c((n=n.apply(i,e||[])).next())})}function K(){}function U1(i,e){for(const t in e)i[t]=e[t];return i}function q1(i){return i()}function rs(){return Object.create(null)}function it(i){i.forEach(q1)}function On(i){return typeof i=="function"}function ge(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let al;function ss(i,e){return al||(al=document.createElement("a")),al.href=e,i===al.href}function J0(i){return Object.keys(i).length===0}function Jt(i,...e){if(i==null){for(const n of e)n(void 0);return K}const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function et(i){let e;return Jt(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push(Jt(e,t))}function Qn(i,e,t,n){if(i){const l=j1(i,e,t,n);return i[0](l)}}function j1(i,e,t,n){return i[1]&&n?U1(t.ctx.slice(),i[1](n(e))):t.ctx}function Xn(i,e,t,n){if(i[2]&&n){const l=i[2](n(t));if(e.dirty===void 0)return l;if(typeof l=="object"){const r=[],o=Math.max(e.dirty.length,l.length);for(let s=0;s<o;s+=1)r[s]=e.dirty[s]|l[s];return r}return e.dirty|l}return e.dirty}function Jn(i,e,t,n,l,r){if(l){const o=j1(e,t,n,r);i.p(o,l)}}function xn(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function x0(i){return i==null?"":i}const Ll=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function p(i,e){i.appendChild(e)}function We(i,e,t){const n=$0(i);if(!n.getElementById(e)){const l=T("style");l.id=e,l.textContent=t,ed(n,l)}}function $0(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function ed(i,e){return p(i.head||i,e),e.sheet}function P(i,e,t){i.insertBefore(e,t||null)}function S(i){i.parentNode&&i.parentNode.removeChild(i)}function zn(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function R(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function De(i){return document.createTextNode(i)}function O(){return De(" ")}function dt(){return De("")}function he(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 rt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function u(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function td(i){return Array.from(i.childNodes)}function $e(i,e){e=""+e,i.data!==e&&(i.data=e)}function Ft(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}let ul;function id(){if(ul===void 0){ul=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){ul=!0}}return ul}function Er(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");const n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const l=id();let r;return l?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=he(window,"message",o=>{o.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=he(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(l||r&&n.contentWindow)&&r(),S(n)}}function B(i,e,t){i.classList.toggle(e,!!t)}function jn(i,e){return new i(e)}let jo;function qo(i){jo=i}function Ko(){if(!jo)throw new Error("Function called outside component initialization");return jo}function kn(i){Ko().$$.on_mount.push(i)}function Ml(i){Ko().$$.on_destroy.push(i)}function hr(i,e){return Ko().$$.context.set(i,e),e}function Ir(i){return Ko().$$.context.get(i)}function W1(){return Ko().$$.context}function Bo(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const Io=[],ye=[];let Mo=[];const vr=[],Z1=Promise.resolve();let gr=!1;function K1(){gr||(gr=!0,Z1.then(G1))}function Go(){return K1(),Z1}function Ro(i){Mo.push(i)}function qe(i){vr.push(i)}const Wl=new Set;let ko=0;function G1(){if(ko!==0)return;const i=jo;do{try{for(;ko<Io.length;){const e=Io[ko];ko++,qo(e),nd(e.$$)}}catch(e){throw Io.length=0,ko=0,e}for(qo(null),Io.length=0,ko=0;ye.length;)ye.pop()();for(let e=0;e<Mo.length;e+=1){const t=Mo[e];Wl.has(t)||(Wl.add(t),t())}Mo.length=0}while(Io.length);for(;vr.length;)vr.pop()();gr=!1,Wl.clear(),qo(i)}function nd(i){if(i.fragment!==null){i.update(),it(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Ro)}}function od(i){const e=[],t=[];Mo.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Mo=e}const yl=new Set;let mo;function fe(){mo={r:0,c:[],p:mo}}function de(){mo.r||it(mo.c),mo=mo.p}function m(i,e){i&&i.i&&(yl.delete(i),i.i(e))}function v(i,e,t,n){if(i&&i.o){if(yl.has(i))return;yl.add(i),mo.c.push(()=>{yl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Gt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function ld(i,e){const t={},n={},l={$$scope:1};let r=i.length;for(;r--;){const o=i[r],s=e[r];if(s){for(const a in o)a in s||(n[a]=1);for(const a in s)l[a]||(t[a]=s[a],l[a]=1);i[r]=s}else for(const a in o)l[a]=1}for(const o in n)o in t||(t[o]=void 0);return t}function rd(i){return typeof i=="object"&&i!==null?i:{}}function je(i,e,t){const n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function q(i){i&&i.c()}function F(i,e,t){const{fragment:n,after_update:l}=i.$$;n&&n.m(e,t),Ro(()=>{const r=i.$$.on_mount.map(q1).filter(On);i.$$.on_destroy?i.$$.on_destroy.push(...r):it(r),i.$$.on_mount=[]}),l.forEach(Ro)}function H(i,e){const t=i.$$;t.fragment!==null&&(od(t.after_update),it(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function sd(i,e){i.$$.dirty[0]===-1&&(Io.push(i),K1(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function _e(i,e,t,n,l,r,o,s=[-1]){const a=jo;qo(i);const c=i.$$={fragment:null,ctx:[],props:r,update:K,not_equal:l,bound:rs(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:rs(),dirty:s,skip_bound:!1,root:e.target||a.$$.root};o&&o(c.root);let f=!1;if(c.ctx=t?t(i,e.props||{},(d,h,..._)=>{const g=_.length?_[0]:h;return c.ctx&&l(c.ctx[d],c.ctx[d]=g)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](g),f&&sd(i,d)),h}):[],c.update(),f=!0,it(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const d=td(e.target);c.fragment&&c.fragment.l(d),d.forEach(S)}else c.fragment&&c.fragment.c();e.intro&&m(i.$$.fragment),F(i,e.target,e.anchor),G1()}qo(a)}class we{constructor(){jl(this,"$$");jl(this,"$$set")}$destroy(){H(this,1),this.$destroy=K}$on(e,t){if(!On(t))return K;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const l=n.indexOf(t);l!==-1&&n.splice(l,1)}}$set(e){this.$$set&&!J0(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const ad="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ad);var No;(function(i){i.VK="vk",i.VK_VIDEO="vk_video"})(No||(No={}));const ud={isMobile:void 0,defaultLanguage:Zo.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:No.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:kl.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,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{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,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},cd=i=>V0(i,ud),fd=i=>hr("ui-config",i),yn=()=>Ir("ui-config"),br="vk_player_debug_panel_opened",Y1=300,dd=100,md="videoplayer",pd="videoplayer";var Ee;(function(i){i.ArrowLeft="ArrowLeft",i.ArrowUp="ArrowUp",i.ArrowRight="ArrowRight",i.ArrowDown="ArrowDown",i.Comma="Comma",i.Period="Period",i.Space="Space",i.KeyM="KeyM",i.KeyF="KeyF",i.KeyK="KeyK",i.KeyL="KeyL",i.KeyJ="KeyJ",i.KeyC="KeyC",i.KeyI="KeyI",i.Digit1="Digit1",i.Digit2="Digit2",i.Digit3="Digit3",i.Digit4="Digit4",i.Digit5="Digit5",i.Digit6="Digit6",i.Digit7="Digit7",i.Digit8="Digit8",i.Digit9="Digit9",i.Digit0="Digit0",i.Numpad1="Numpad1",i.Numpad2="Numpad2",i.Numpad3="Numpad3",i.Numpad4="Numpad4",i.Numpad5="Numpad5",i.Numpad6="Numpad6",i.Numpad7="Numpad7",i.Numpad8="Numpad8",i.Numpad9="Numpad9",i.Numpad0="Numpad0",i.ShiftLeft="ShiftLeft",i.ShiftRight="ShiftRight",i.Slash="Slash",i.Tab="Tab",i.Escape="Escape",i.Enter="Enter"})(Ee||(Ee={}));const Yo={[Ee.KeyF]:"f",[Ee.KeyK]:"k",[Ee.KeyC]:"c",[Ee.KeyM]:"m"},hd=new Set([Ee.ArrowLeft,Ee.ArrowRight,Ee.KeyL,Ee.KeyJ]),vd=new Set([Ee.Tab,Ee.Space,Ee.ArrowLeft,Ee.ArrowRight,Ee.ArrowUp,Ee.ArrowDown]),gd=new Set([Ee.ShiftRight,Ee.ShiftLeft]);var ft;(function(i){i.PLAY_BUTTON="PLAY_BUTTON",i.REPLAY_BUTTON="REPLAY_BUTTON",i.NEXT_BUTTON="NEXT_BUTTON",i.PREV_BUTTON="PREV_BUTTON",i.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",i.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",i.SETTINGS_BUTTON="SETTINGS_BUTTON",i.LIVE_BUTTON="LIVE_BUTTON",i.GRAPH_BUTTON="GRAPH_BUTTON",i.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",i.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",i.TIMELINE="TIMELINE",i.VOLUME_BAR="VOLUME_BAR",i.MUTE_BUTTON="MUTE_BUTTON",i.SUBTITLES_BUTTON="SUBTITLES_BUTTON",i.CHROMECAST_BUTTON="CHROMECAST_BUTTON",i.VK_BUTTON="VK_BUTTON",i.EPISODE_BUTTON="EPISODE_BUTTON",i.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",i.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(ft||(ft={}));const as=40,Q1=260,bd=60,cl=8,X1=[ft.TIMELINE],Cl=[...X1,ft.GRAPH_BUTTON],us=[...X1,ft.PLAY_BUTTON],J1=[...Cl,ft.PLAY_BUTTON];var Ao;(function(i){i[i.XS=320]="XS",i[i.S=509]="S",i[i.M=599]="M",i[i.L=699]="L"})(Ao||(Ao={}));var Mt;(function(i){i.XS="xs",i.S="s",i.M="m",i.L="l",i.XL="xl"})(Mt||(Mt={}));const Oo={[Mt.XS]:0,[Mt.S]:1,[Mt.M]:2,[Mt.L]:3,[Mt.XL]:4},yo=[];function Un(i,e){return{subscribe:Be(i,e).subscribe}}function Be(i,e=K){let t;const n=new Set;function l(s){if(ge(i,s)&&(i=s,t)){const a=!yo.length;for(const c of n)c[1](),yo.push(c,i);if(a){for(let c=0;c<yo.length;c+=2)yo[c][0](yo[c+1]);yo.length=0}}}function r(s){l(s(i))}function o(s,a=K){const c=[s,a];return n.add(c),n.size===1&&(t=e(l,r)||K),s(i),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:l,update:r,subscribe:o}}function zi(i,e,t){const n=!Array.isArray(i),l=n?[i]:i;if(!l.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return Un(t,(o,s)=>{let a=!1;const c=[];let f=0,d=K;const h=()=>{if(f)return;d();const g=e(n?c[0]:c,o,s);r?o(g):d=On(g)?g:K},_=l.map((g,w)=>Jt(g,b=>{c[w]=b,f&=~(1<<w),a&&h()},()=>{f|=1<<w}));return a=!0,h(),function(){it(_),d(),a=!1}})}const _d="prod",Ar="1.1.36-dev.55db5eff.0",x1=(i,e,t)=>{const n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()},$1=Symbol("storeContext"),ec=Symbol("microStoresContext"),wd=(i,e)=>{hr($1,i),hr(ec,e)},yt=()=>{const i=Ir($1);return vt(i,"Store context is empty!"),i},Qo=()=>{const i=Ir(ec);return vt(i,"MicroStores context is empty!"),i},kt=(i,e)=>tc(i,i.getValue(),e),tc=(i,e,t)=>Un(e,n=>{const l=i.subscribe(r=>{n(r),t==null||t(r)});return()=>l.unsubscribe()}),kd=(i,e,t)=>{var n,l,r,o;const s=i.info,{width:a,height:c}=et(t.ui.playerSize),f=(l=(n=s.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&l!==void 0?l:0,d=(o=(r=s.rttEstimation$.getValue())===null||r===void 0?void 0:r.toFixed(0))!==null&&o!==void 0?o:0,h=s.isAutoQualityEnabled$.getValue()?"auto":"manual",_=`${Ar} (core: ${L0}, stat: ${Q0}, shared: ${B0})`,g=et(t.state.errorLog$),w=g.length?`
|
|
6
|
+
var P0=Object.defineProperty,T0=Object.defineProperties;var E0=Object.getOwnPropertyDescriptors;var os=Object.getOwnPropertySymbols;var I0=Object.prototype.hasOwnProperty,A0=Object.prototype.propertyIsEnumerable;var ql=(i,e,t)=>e in i?P0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,pn=(i,e)=>{for(var t in e||(e={}))I0.call(e,t)&&ql(i,t,e[t]);if(os)for(var t of os(e))A0.call(e,t)&&ql(i,t,e[t]);return i},wo=(i,e)=>T0(i,E0(e));var jl=(i,e,t)=>(ql(i,typeof e!="symbol"?e+"":e,t),t);var en=(i,e,t)=>new Promise((n,l)=>{var r=a=>{try{s(t.next(a))}catch(c){l(c)}},o=a=>{try{s(t.throw(a))}catch(c){l(c)}},s=a=>a.done?n(a.value):Promise.resolve(a.value).then(r,o);s((t=t.apply(i,e)).next())});import{VERSION as L0,ChromecastState as qn,PlaybackState as Kt,VideoQuality as Eo,Player as M0,VideoFormat as Ho}from"@vkontakte/videoplayer-core/es2015.esm.js";import{VideoFormat as s8,VideoQuality as a8}from"@vkontakte/videoplayer-core/es2015.esm.js";import{InterfaceLanguage as Zo,VideoQuality as kl,fillWithDefault as V0,VERSION as B0,assertNonNullable as vt,safeStorage as Dn,isNullable as Pl,Subscription as ro,isNonNullable as Nn,isMacLike as ls,debounceFn as R0,ValueSubject as Sr,getCurrentBrowser as Pr,CurrentClientBrowser as F1,noop as Ge,checkNever as N0,timeCodeToString as O0,Subject as Tn,addScript as D0,Logger as H1,merge as z0,Observable as F0,map as H0,loadVKLangPack as U0,isIOS as Tr,getHighestQuality as q0,throttleFn as Al,CurrentClientDevice as j0,getIOSVersion as W0,detectEmbed as Z0,observeElementSize as K0,isMobile as G0,cloneDeepWith as Y0}from"@vkontakte/videoplayer-shared/es2015.esm.js";import{InterfaceLanguage as c8,VKNumericLanguage as f8,loadVKLangPack as d8}from"@vkontakte/videoplayer-shared/es2015.esm.js";import{VERSION as Q0,SeekAction as qt,OneStat as X0,InteractiveInterfaceClick as Uo}from"@vkontakte/videoplayer-statistics/es2015.esm.js";import"@vkontakte/videoplayer-interactive/es2015.esm.js";function mi(i,e,t,n){function l(r){return r instanceof t?r:new t(function(o){o(r)})}return new(t||(t=Promise))(function(r,o){function s(f){try{c(n.next(f))}catch(d){o(d)}}function a(f){try{c(n.throw(f))}catch(d){o(d)}}function c(f){f.done?r(f.value):l(f.value).then(s,a)}c((n=n.apply(i,e||[])).next())})}function K(){}function U1(i,e){for(const t in e)i[t]=e[t];return i}function q1(i){return i()}function rs(){return Object.create(null)}function it(i){i.forEach(q1)}function On(i){return typeof i=="function"}function ge(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let al;function ss(i,e){return al||(al=document.createElement("a")),al.href=e,i===al.href}function J0(i){return Object.keys(i).length===0}function Jt(i,...e){if(i==null){for(const n of e)n(void 0);return K}const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function et(i){let e;return Jt(i,t=>e=t)(),e}function D(i,e,t){i.$$.on_destroy.push(Jt(e,t))}function Qn(i,e,t,n){if(i){const l=j1(i,e,t,n);return i[0](l)}}function j1(i,e,t,n){return i[1]&&n?U1(t.ctx.slice(),i[1](n(e))):t.ctx}function Xn(i,e,t,n){if(i[2]&&n){const l=i[2](n(t));if(e.dirty===void 0)return l;if(typeof l=="object"){const r=[],o=Math.max(e.dirty.length,l.length);for(let s=0;s<o;s+=1)r[s]=e.dirty[s]|l[s];return r}return e.dirty|l}return e.dirty}function Jn(i,e,t,n,l,r){if(l){const o=j1(e,t,n,r);i.p(o,l)}}function xn(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function x0(i){return i==null?"":i}const Ll=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function p(i,e){i.appendChild(e)}function We(i,e,t){const n=$0(i);if(!n.getElementById(e)){const l=T("style");l.id=e,l.textContent=t,ed(n,l)}}function $0(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function ed(i,e){return p(i.head||i,e),e.sheet}function P(i,e,t){i.insertBefore(e,t||null)}function S(i){i.parentNode&&i.parentNode.removeChild(i)}function zn(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function R(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function De(i){return document.createTextNode(i)}function O(){return De(" ")}function dt(){return De("")}function he(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 rt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function u(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function td(i){return Array.from(i.childNodes)}function $e(i,e){e=""+e,i.data!==e&&(i.data=e)}function Ft(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}let ul;function id(){if(ul===void 0){ul=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){ul=!0}}return ul}function Er(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");const n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const l=id();let r;return l?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=he(window,"message",o=>{o.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=he(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(l||r&&n.contentWindow)&&r(),S(n)}}function B(i,e,t){i.classList.toggle(e,!!t)}function jn(i,e){return new i(e)}let jo;function qo(i){jo=i}function Ko(){if(!jo)throw new Error("Function called outside component initialization");return jo}function kn(i){Ko().$$.on_mount.push(i)}function Ml(i){Ko().$$.on_destroy.push(i)}function hr(i,e){return Ko().$$.context.set(i,e),e}function Ir(i){return Ko().$$.context.get(i)}function W1(){return Ko().$$.context}function Bo(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const Io=[],ye=[];let Mo=[];const vr=[],Z1=Promise.resolve();let gr=!1;function K1(){gr||(gr=!0,Z1.then(G1))}function Go(){return K1(),Z1}function Ro(i){Mo.push(i)}function qe(i){vr.push(i)}const Wl=new Set;let ko=0;function G1(){if(ko!==0)return;const i=jo;do{try{for(;ko<Io.length;){const e=Io[ko];ko++,qo(e),nd(e.$$)}}catch(e){throw Io.length=0,ko=0,e}for(qo(null),Io.length=0,ko=0;ye.length;)ye.pop()();for(let e=0;e<Mo.length;e+=1){const t=Mo[e];Wl.has(t)||(Wl.add(t),t())}Mo.length=0}while(Io.length);for(;vr.length;)vr.pop()();gr=!1,Wl.clear(),qo(i)}function nd(i){if(i.fragment!==null){i.update(),it(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Ro)}}function od(i){const e=[],t=[];Mo.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Mo=e}const yl=new Set;let mo;function fe(){mo={r:0,c:[],p:mo}}function de(){mo.r||it(mo.c),mo=mo.p}function m(i,e){i&&i.i&&(yl.delete(i),i.i(e))}function v(i,e,t,n){if(i&&i.o){if(yl.has(i))return;yl.add(i),mo.c.push(()=>{yl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Gt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function ld(i,e){const t={},n={},l={$$scope:1};let r=i.length;for(;r--;){const o=i[r],s=e[r];if(s){for(const a in o)a in s||(n[a]=1);for(const a in s)l[a]||(t[a]=s[a],l[a]=1);i[r]=s}else for(const a in o)l[a]=1}for(const o in n)o in t||(t[o]=void 0);return t}function rd(i){return typeof i=="object"&&i!==null?i:{}}function je(i,e,t){const n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function q(i){i&&i.c()}function F(i,e,t){const{fragment:n,after_update:l}=i.$$;n&&n.m(e,t),Ro(()=>{const r=i.$$.on_mount.map(q1).filter(On);i.$$.on_destroy?i.$$.on_destroy.push(...r):it(r),i.$$.on_mount=[]}),l.forEach(Ro)}function H(i,e){const t=i.$$;t.fragment!==null&&(od(t.after_update),it(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function sd(i,e){i.$$.dirty[0]===-1&&(Io.push(i),K1(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function _e(i,e,t,n,l,r,o,s=[-1]){const a=jo;qo(i);const c=i.$$={fragment:null,ctx:[],props:r,update:K,not_equal:l,bound:rs(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:rs(),dirty:s,skip_bound:!1,root:e.target||a.$$.root};o&&o(c.root);let f=!1;if(c.ctx=t?t(i,e.props||{},(d,h,..._)=>{const g=_.length?_[0]:h;return c.ctx&&l(c.ctx[d],c.ctx[d]=g)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](g),f&&sd(i,d)),h}):[],c.update(),f=!0,it(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const d=td(e.target);c.fragment&&c.fragment.l(d),d.forEach(S)}else c.fragment&&c.fragment.c();e.intro&&m(i.$$.fragment),F(i,e.target,e.anchor),G1()}qo(a)}class we{constructor(){jl(this,"$$");jl(this,"$$set")}$destroy(){H(this,1),this.$destroy=K}$on(e,t){if(!On(t))return K;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const l=n.indexOf(t);l!==-1&&n.splice(l,1)}}$set(e){this.$$set&&!J0(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const ad="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ad);var No;(function(i){i.VK="vk",i.VK_VIDEO="vk_video"})(No||(No={}));const ud={isMobile:void 0,defaultLanguage:Zo.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:No.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:kl.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,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{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,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},cd=i=>V0(i,ud),fd=i=>hr("ui-config",i),yn=()=>Ir("ui-config"),br="vk_player_debug_panel_opened",Y1=300,dd=100,md="videoplayer",pd="videoplayer";var Ee;(function(i){i.ArrowLeft="ArrowLeft",i.ArrowUp="ArrowUp",i.ArrowRight="ArrowRight",i.ArrowDown="ArrowDown",i.Comma="Comma",i.Period="Period",i.Space="Space",i.KeyM="KeyM",i.KeyF="KeyF",i.KeyK="KeyK",i.KeyL="KeyL",i.KeyJ="KeyJ",i.KeyC="KeyC",i.KeyI="KeyI",i.Digit1="Digit1",i.Digit2="Digit2",i.Digit3="Digit3",i.Digit4="Digit4",i.Digit5="Digit5",i.Digit6="Digit6",i.Digit7="Digit7",i.Digit8="Digit8",i.Digit9="Digit9",i.Digit0="Digit0",i.Numpad1="Numpad1",i.Numpad2="Numpad2",i.Numpad3="Numpad3",i.Numpad4="Numpad4",i.Numpad5="Numpad5",i.Numpad6="Numpad6",i.Numpad7="Numpad7",i.Numpad8="Numpad8",i.Numpad9="Numpad9",i.Numpad0="Numpad0",i.ShiftLeft="ShiftLeft",i.ShiftRight="ShiftRight",i.Slash="Slash",i.Tab="Tab",i.Escape="Escape",i.Enter="Enter"})(Ee||(Ee={}));const Yo={[Ee.KeyF]:"f",[Ee.KeyK]:"k",[Ee.KeyC]:"c",[Ee.KeyM]:"m"},hd=new Set([Ee.ArrowLeft,Ee.ArrowRight,Ee.KeyL,Ee.KeyJ]),vd=new Set([Ee.Tab,Ee.Space,Ee.ArrowLeft,Ee.ArrowRight,Ee.ArrowUp,Ee.ArrowDown]),gd=new Set([Ee.ShiftRight,Ee.ShiftLeft]);var ft;(function(i){i.PLAY_BUTTON="PLAY_BUTTON",i.REPLAY_BUTTON="REPLAY_BUTTON",i.NEXT_BUTTON="NEXT_BUTTON",i.PREV_BUTTON="PREV_BUTTON",i.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",i.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",i.SETTINGS_BUTTON="SETTINGS_BUTTON",i.LIVE_BUTTON="LIVE_BUTTON",i.GRAPH_BUTTON="GRAPH_BUTTON",i.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",i.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",i.TIMELINE="TIMELINE",i.VOLUME_BAR="VOLUME_BAR",i.MUTE_BUTTON="MUTE_BUTTON",i.SUBTITLES_BUTTON="SUBTITLES_BUTTON",i.CHROMECAST_BUTTON="CHROMECAST_BUTTON",i.VK_BUTTON="VK_BUTTON",i.EPISODE_BUTTON="EPISODE_BUTTON",i.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",i.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(ft||(ft={}));const as=40,Q1=260,bd=60,cl=8,X1=[ft.TIMELINE],Cl=[...X1,ft.GRAPH_BUTTON],us=[...X1,ft.PLAY_BUTTON],J1=[...Cl,ft.PLAY_BUTTON];var Ao;(function(i){i[i.XS=320]="XS",i[i.S=509]="S",i[i.M=599]="M",i[i.L=699]="L"})(Ao||(Ao={}));var Mt;(function(i){i.XS="xs",i.S="s",i.M="m",i.L="l",i.XL="xl"})(Mt||(Mt={}));const Oo={[Mt.XS]:0,[Mt.S]:1,[Mt.M]:2,[Mt.L]:3,[Mt.XL]:4},yo=[];function Un(i,e){return{subscribe:Be(i,e).subscribe}}function Be(i,e=K){let t;const n=new Set;function l(s){if(ge(i,s)&&(i=s,t)){const a=!yo.length;for(const c of n)c[1](),yo.push(c,i);if(a){for(let c=0;c<yo.length;c+=2)yo[c][0](yo[c+1]);yo.length=0}}}function r(s){l(s(i))}function o(s,a=K){const c=[s,a];return n.add(c),n.size===1&&(t=e(l,r)||K),s(i),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:l,update:r,subscribe:o}}function zi(i,e,t){const n=!Array.isArray(i),l=n?[i]:i;if(!l.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return Un(t,(o,s)=>{let a=!1;const c=[];let f=0,d=K;const h=()=>{if(f)return;d();const g=e(n?c[0]:c,o,s);r?o(g):d=On(g)?g:K},_=l.map((g,w)=>Jt(g,b=>{c[w]=b,f&=~(1<<w),a&&h()},()=>{f|=1<<w}));return a=!0,h(),function(){it(_),d(),a=!1}})}const _d="prod",Ar="1.1.36-dev.911333bb.0",x1=(i,e,t)=>{const n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()},$1=Symbol("storeContext"),ec=Symbol("microStoresContext"),wd=(i,e)=>{hr($1,i),hr(ec,e)},yt=()=>{const i=Ir($1);return vt(i,"Store context is empty!"),i},Qo=()=>{const i=Ir(ec);return vt(i,"MicroStores context is empty!"),i},kt=(i,e)=>tc(i,i.getValue(),e),tc=(i,e,t)=>Un(e,n=>{const l=i.subscribe(r=>{n(r),t==null||t(r)});return()=>l.unsubscribe()}),kd=(i,e,t)=>{var n,l,r,o;const s=i.info,{width:a,height:c}=et(t.ui.playerSize),f=(l=(n=s.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&l!==void 0?l:0,d=(o=(r=s.rttEstimation$.getValue())===null||r===void 0?void 0:r.toFixed(0))!==null&&o!==void 0?o:0,h=s.isAutoQualityEnabled$.getValue()?"auto":"manual",_=`${Ar} (core: ${L0}, stat: ${Q0}, shared: ${B0})`,g=et(t.state.errorLog$),w=g.length?`
|
|
7
7
|
`+g.map((k,y)=>{var V;const j=`${y}) Type: ${k.id}
|
|
8
8
|
`,A=`Message: ${k.message} (${k.thrown})
|
|
9
9
|
`,z=`Trace: ${(V=k.thrown)===null||V===void 0?void 0:V.stack}
|
package/es2018.cjs.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.36-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.36-dev.911333bb.0
|
|
3
|
+
* Mon, 03 Jun 2024 06:24:12 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-36/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var t0=Object.create;var Pl=Object.defineProperty;var i0=Object.getOwnPropertyDescriptor;var n0=Object.getOwnPropertyNames;var o0=Object.getPrototypeOf,l0=Object.prototype.hasOwnProperty;var r0=(t,e,i)=>e in t?Pl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var s0=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of n0(e))!l0.call(t,l)&&l!==i&&Pl(t,l,{get:()=>e[l],enumerable:!(n=i0(e,l))||n.enumerable});return t};var Dr=(t,e,i)=>(i=t!=null?t0(o0(t)):{},s0(e||!t||!t.__esModule?Pl(i,"default",{value:t,enumerable:!0}):i,t));var Tl=(t,e,i)=>(r0(t,typeof e!="symbol"?e+"":e,i),i);var $e=require("@vkontakte/videoplayer-core/es2018.cjs.js"),ne=require("@vkontakte/videoplayer-shared/es2018.cjs.js"),yt=require("@vkontakte/videoplayer-statistics/es2018.cjs.js");require("@vkontakte/videoplayer-interactive/es2018.cjs.js");function K(){}function g1(t,e){for(const i in e)t[i]=e[i];return t}function b1(t){return t()}function zr(){return Object.create(null)}function nt(t){t.forEach(b1)}function In(t){return typeof t=="function"}function be(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Go;function Fr(t,e){return Go||(Go=document.createElement("a")),Go.href=e,t===Go.href}function a0(t){return Object.keys(t).length===0}function Qt(t,...e){if(t==null){for(const n of e)n(void 0);return K}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function tt(t){let e;return Qt(t,i=>e=i)(),e}function D(t,e,i){t.$$.on_destroy.push(Qt(e,i))}function Hn(t,e,i,n){if(t){const l=_1(t,e,i,n);return t[0](l)}}function _1(t,e,i,n){return t[1]&&n?g1(i.ctx.slice(),t[1](n(e))):i.ctx}function Un(t,e,i,n){if(t[2]&&n){const l=t[2](n(i));if(e.dirty===void 0)return l;if(typeof l=="object"){const r=[],o=Math.max(e.dirty.length,l.length);for(let s=0;s<o;s+=1)r[s]=e.dirty[s]|l[s];return r}return e.dirty|l}return e.dirty}function qn(t,e,i,n,l,r){if(l){const o=_1(e,i,n,r);t.p(o,l)}}function jn(t){if(t.ctx.length>32){const e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function u0(t){return t==null?"":t}const dl=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function p(t,e){t.appendChild(e)}function Ze(t,e,i){const n=c0(t);if(!n.getElementById(e)){const l=T("style");l.id=e,l.textContent=i,f0(n,l)}}function c0(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function f0(t,e){return p(t.head||t,e),e.sheet}function P(t,e,i){t.insertBefore(e,i||null)}function S(t){t.parentNode&&t.parentNode.removeChild(t)}function Ln(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function T(t){return document.createElement(t)}function N(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ze(t){return document.createTextNode(t)}function O(){return ze(" ")}function mt(){return ze("")}function ve(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Jt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function st(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function u(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function d0(t){return Array.from(t.childNodes)}function et(t,e){e=""+e,t.data!==e&&(t.data=e)}function Ft(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}let Yo;function m0(){if(Yo===void 0){Yo=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(t){Yo=!0}}return Yo}function sr(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const l=m0();let r;return l?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=ve(window,"message",o=>{o.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=ve(n.contentWindow,"resize",e),e()}),p(t,n),()=>{(l||r&&n.contentWindow)&&r(),S(n)}}function B(t,e,i){t.classList.toggle(e,!!i)}function Nn(t,e){return new t(e)}let Io;function Ao(t){Io=t}function Vo(){if(!Io)throw new Error("Function called outside component initialization");return Io}function vn(t){Vo().$$.on_mount.push(t)}function ml(t){Vo().$$.on_destroy.push(t)}function xl(t,e){return Vo().$$.context.set(t,e),e}function ar(t){return Vo().$$.context.get(t)}function w1(){return Vo().$$.context}function ko(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const vo=[],Ce=[];let _o=[];const $l=[],k1=Promise.resolve();let er=!1;function y1(){er||(er=!0,k1.then(C1))}function Mo(){return y1(),k1}function yo(t){_o.push(t)}function je(t){$l.push(t)}const El=new Set;let uo=0;function C1(){if(uo!==0)return;const t=Io;do{try{for(;uo<vo.length;){const e=vo[uo];uo++,Ao(e),p0(e.$$)}}catch(e){throw vo.length=0,uo=0,e}for(Ao(null),vo.length=0,uo=0;Ce.length;)Ce.pop()();for(let e=0;e<_o.length;e+=1){const i=_o[e];El.has(i)||(El.add(i),i())}_o.length=0}while(vo.length);for(;$l.length;)$l.pop()();er=!1,El.clear(),Ao(t)}function p0(t){if(t.fragment!==null){t.update(),nt(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(yo)}}function h0(t){const e=[],i=[];_o.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),_o=e}const rl=new Set;let io;function de(){io={r:0,c:[],p:io}}function me(){io.r||nt(io.c),io=io.p}function d(t,e){t&&t.i&&(rl.delete(t),t.i(e))}function v(t,e,i,n){if(t&&t.o){if(rl.has(t))return;rl.add(t),io.c.push(()=>{rl.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Zt(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function v0(t,e){const i={},n={},l={$$scope:1};let r=t.length;for(;r--;){const o=t[r],s=e[r];if(s){for(const a in o)a in s||(n[a]=1);for(const a in s)l[a]||(i[a]=s[a],l[a]=1);t[r]=s}else for(const a in o)l[a]=1}for(const o in n)o in i||(i[o]=void 0);return i}function g0(t){return typeof t=="object"&&t!==null?t:{}}function We(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function q(t){t&&t.c()}function F(t,e,i){const{fragment:n,after_update:l}=t.$$;n&&n.m(e,i),yo(()=>{const r=t.$$.on_mount.map(b1).filter(In);t.$$.on_destroy?t.$$.on_destroy.push(...r):nt(r),t.$$.on_mount=[]}),l.forEach(yo)}function H(t,e){const i=t.$$;i.fragment!==null&&(h0(i.after_update),nt(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function b0(t,e){t.$$.dirty[0]===-1&&(vo.push(t),y1(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function we(t,e,i,n,l,r,o,s=[-1]){const a=Io;Ao(t);const c=t.$$={fragment:null,ctx:[],props:r,update:K,not_equal:l,bound:zr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:zr(),dirty:s,skip_bound:!1,root:e.target||a.$$.root};o&&o(c.root);let f=!1;if(c.ctx=i?i(t,e.props||{},(m,h,..._)=>{const g=_.length?_[0]:h;return c.ctx&&l(c.ctx[m],c.ctx[m]=g)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](g),f&&b0(t,m)),h}):[],c.update(),f=!0,nt(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const m=d0(e.target);c.fragment&&c.fragment.l(m),m.forEach(S)}else c.fragment&&c.fragment.c();e.intro&&d(t.$$.fragment),F(t,e.target,e.anchor),C1()}Ao(a)}class ke{constructor(){Tl(this,"$$");Tl(this,"$$set")}$destroy(){H(this,1),this.$destroy=K}$on(e,i){if(!In(i))return K;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const l=n.indexOf(i);l!==-1&&n.splice(l,1)}}$set(e){this.$$set&&!a0(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const _0="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(_0);var Co;(function(t){t.VK="vk",t.VK_VIDEO="vk_video"})(Co||(Co={}));const w0={isMobile:void 0,defaultLanguage:ne.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:Co.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:ne.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,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{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,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},k0=t=>ne.fillWithDefault(t,w0),y0=t=>xl("ui-config",t),gn=()=>ar("ui-config"),tr="vk_player_debug_panel_opened",S1=300,C0=100,S0="videoplayer",P0="videoplayer";var Ae;(function(t){t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Comma="Comma",t.Period="Period",t.Space="Space",t.KeyM="KeyM",t.KeyF="KeyF",t.KeyK="KeyK",t.KeyL="KeyL",t.KeyJ="KeyJ",t.KeyC="KeyC",t.KeyI="KeyI",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.Digit0="Digit0",t.Numpad1="Numpad1",t.Numpad2="Numpad2",t.Numpad3="Numpad3",t.Numpad4="Numpad4",t.Numpad5="Numpad5",t.Numpad6="Numpad6",t.Numpad7="Numpad7",t.Numpad8="Numpad8",t.Numpad9="Numpad9",t.Numpad0="Numpad0",t.ShiftLeft="ShiftLeft",t.ShiftRight="ShiftRight",t.Slash="Slash",t.Tab="Tab",t.Escape="Escape",t.Enter="Enter"})(Ae||(Ae={}));const Bo={[Ae.KeyF]:"f",[Ae.KeyK]:"k",[Ae.KeyC]:"c",[Ae.KeyM]:"m"},T0=new Set([Ae.ArrowLeft,Ae.ArrowRight,Ae.KeyL,Ae.KeyJ]),E0=new Set([Ae.Tab,Ae.Space,Ae.ArrowLeft,Ae.ArrowRight,Ae.ArrowUp,Ae.ArrowDown]),A0=new Set([Ae.ShiftRight,Ae.ShiftLeft]);var dt;(function(t){t.PLAY_BUTTON="PLAY_BUTTON",t.REPLAY_BUTTON="REPLAY_BUTTON",t.NEXT_BUTTON="NEXT_BUTTON",t.PREV_BUTTON="PREV_BUTTON",t.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",t.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",t.SETTINGS_BUTTON="SETTINGS_BUTTON",t.LIVE_BUTTON="LIVE_BUTTON",t.GRAPH_BUTTON="GRAPH_BUTTON",t.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",t.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",t.TIMELINE="TIMELINE",t.VOLUME_BAR="VOLUME_BAR",t.MUTE_BUTTON="MUTE_BUTTON",t.SUBTITLES_BUTTON="SUBTITLES_BUTTON",t.CHROMECAST_BUTTON="CHROMECAST_BUTTON",t.VK_BUTTON="VK_BUTTON",t.EPISODE_BUTTON="EPISODE_BUTTON",t.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",t.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(dt||(dt={}));const Hr=40,P1=260,I0=60,Qo=8,T1=[dt.TIMELINE],sl=[...T1,dt.GRAPH_BUTTON],Ur=[...T1,dt.PLAY_BUTTON],E1=[...sl,dt.PLAY_BUTTON];var go;(function(t){t[t.XS=320]="XS",t[t.S=509]="S",t[t.M=599]="M",t[t.L=699]="L"})(go||(go={}));exports.GridTypes=void 0;(function(t){t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl"})(exports.GridTypes||(exports.GridTypes={}));const So={[exports.GridTypes.XS]:0,[exports.GridTypes.S]:1,[exports.GridTypes.M]:2,[exports.GridTypes.L]:3,[exports.GridTypes.XL]:4},co=[];function Bn(t,e){return{subscribe:Ne(t,e).subscribe}}function Ne(t,e=K){let i;const n=new Set;function l(s){if(be(t,s)&&(t=s,i)){const a=!co.length;for(const c of n)c[1](),co.push(c,t);if(a){for(let c=0;c<co.length;c+=2)co[c][0](co[c+1]);co.length=0}}}function r(s){l(s(t))}function o(s,a=K){const c=[s,a];return n.add(c),n.size===1&&(i=e(l,r)||K),s(t),()=>{n.delete(c),n.size===0&&i&&(i(),i=null)}}return{set:l,update:r,subscribe:o}}function Ri(t,e,i){const n=!Array.isArray(t),l=n?[t]:t;if(!l.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return Bn(i,(o,s)=>{let a=!1;const c=[];let f=0,m=K;const h=()=>{if(f)return;m();const g=e(n?c[0]:c,o,s);r?o(g):m=In(g)?g:K},_=l.map((g,w)=>Qt(g,b=>{c[w]=b,f&=~(1<<w),a&&h()},()=>{f|=1<<w}));return a=!0,h(),function(){nt(_),m(),a=!1}})}const L0="prod",pl="1.1.36-dev.55db5eff.0",A1=(t,e,i)=>{const n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()},I1=Symbol("storeContext"),L1=Symbol("microStoresContext"),V0=(t,e)=>{xl(I1,t),xl(L1,e)},Ct=()=>{const t=ar(I1);return ne.assertNonNullable(t,"Store context is empty!"),t},No=()=>{const t=ar(L1);return ne.assertNonNullable(t,"MicroStores context is empty!"),t},kt=(t,e)=>V1(t,t.getValue(),e),V1=(t,e,i)=>Bn(e,n=>{const l=t.subscribe(r=>{n(r),i==null||i(r)});return()=>l.unsubscribe()}),M0=(t,e,i)=>{var n,l,r,o;const s=t.info,{width:a,height:c}=tt(i.ui.playerSize),f=(l=(n=s.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&l!==void 0?l:0,m=(o=(r=s.rttEstimation$.getValue())===null||r===void 0?void 0:r.toFixed(0))!==null&&o!==void 0?o:0,h=s.isAutoQualityEnabled$.getValue()?"auto":"manual",_=`${pl} (core: ${$e.VERSION}, stat: ${yt.VERSION}, shared: ${ne.VERSION})`,g=tt(i.state.errorLog$),w=g.length?`
|
|
6
|
+
"use strict";var t0=Object.create;var Pl=Object.defineProperty;var i0=Object.getOwnPropertyDescriptor;var n0=Object.getOwnPropertyNames;var o0=Object.getPrototypeOf,l0=Object.prototype.hasOwnProperty;var r0=(t,e,i)=>e in t?Pl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var s0=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of n0(e))!l0.call(t,l)&&l!==i&&Pl(t,l,{get:()=>e[l],enumerable:!(n=i0(e,l))||n.enumerable});return t};var Dr=(t,e,i)=>(i=t!=null?t0(o0(t)):{},s0(e||!t||!t.__esModule?Pl(i,"default",{value:t,enumerable:!0}):i,t));var Tl=(t,e,i)=>(r0(t,typeof e!="symbol"?e+"":e,i),i);var $e=require("@vkontakte/videoplayer-core/es2018.cjs.js"),ne=require("@vkontakte/videoplayer-shared/es2018.cjs.js"),yt=require("@vkontakte/videoplayer-statistics/es2018.cjs.js");require("@vkontakte/videoplayer-interactive/es2018.cjs.js");function K(){}function g1(t,e){for(const i in e)t[i]=e[i];return t}function b1(t){return t()}function zr(){return Object.create(null)}function nt(t){t.forEach(b1)}function In(t){return typeof t=="function"}function be(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Go;function Fr(t,e){return Go||(Go=document.createElement("a")),Go.href=e,t===Go.href}function a0(t){return Object.keys(t).length===0}function Qt(t,...e){if(t==null){for(const n of e)n(void 0);return K}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function tt(t){let e;return Qt(t,i=>e=i)(),e}function D(t,e,i){t.$$.on_destroy.push(Qt(e,i))}function Hn(t,e,i,n){if(t){const l=_1(t,e,i,n);return t[0](l)}}function _1(t,e,i,n){return t[1]&&n?g1(i.ctx.slice(),t[1](n(e))):i.ctx}function Un(t,e,i,n){if(t[2]&&n){const l=t[2](n(i));if(e.dirty===void 0)return l;if(typeof l=="object"){const r=[],o=Math.max(e.dirty.length,l.length);for(let s=0;s<o;s+=1)r[s]=e.dirty[s]|l[s];return r}return e.dirty|l}return e.dirty}function qn(t,e,i,n,l,r){if(l){const o=_1(e,i,n,r);t.p(o,l)}}function jn(t){if(t.ctx.length>32){const e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function u0(t){return t==null?"":t}const dl=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function p(t,e){t.appendChild(e)}function Ze(t,e,i){const n=c0(t);if(!n.getElementById(e)){const l=T("style");l.id=e,l.textContent=i,f0(n,l)}}function c0(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function f0(t,e){return p(t.head||t,e),e.sheet}function P(t,e,i){t.insertBefore(e,i||null)}function S(t){t.parentNode&&t.parentNode.removeChild(t)}function Ln(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function T(t){return document.createElement(t)}function N(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ze(t){return document.createTextNode(t)}function O(){return ze(" ")}function mt(){return ze("")}function ve(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Jt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function st(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function u(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function d0(t){return Array.from(t.childNodes)}function et(t,e){e=""+e,t.data!==e&&(t.data=e)}function Ft(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}let Yo;function m0(){if(Yo===void 0){Yo=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(t){Yo=!0}}return Yo}function sr(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const l=m0();let r;return l?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=ve(window,"message",o=>{o.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=ve(n.contentWindow,"resize",e),e()}),p(t,n),()=>{(l||r&&n.contentWindow)&&r(),S(n)}}function B(t,e,i){t.classList.toggle(e,!!i)}function Nn(t,e){return new t(e)}let Io;function Ao(t){Io=t}function Vo(){if(!Io)throw new Error("Function called outside component initialization");return Io}function vn(t){Vo().$$.on_mount.push(t)}function ml(t){Vo().$$.on_destroy.push(t)}function xl(t,e){return Vo().$$.context.set(t,e),e}function ar(t){return Vo().$$.context.get(t)}function w1(){return Vo().$$.context}function ko(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const vo=[],Ce=[];let _o=[];const $l=[],k1=Promise.resolve();let er=!1;function y1(){er||(er=!0,k1.then(C1))}function Mo(){return y1(),k1}function yo(t){_o.push(t)}function je(t){$l.push(t)}const El=new Set;let uo=0;function C1(){if(uo!==0)return;const t=Io;do{try{for(;uo<vo.length;){const e=vo[uo];uo++,Ao(e),p0(e.$$)}}catch(e){throw vo.length=0,uo=0,e}for(Ao(null),vo.length=0,uo=0;Ce.length;)Ce.pop()();for(let e=0;e<_o.length;e+=1){const i=_o[e];El.has(i)||(El.add(i),i())}_o.length=0}while(vo.length);for(;$l.length;)$l.pop()();er=!1,El.clear(),Ao(t)}function p0(t){if(t.fragment!==null){t.update(),nt(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(yo)}}function h0(t){const e=[],i=[];_o.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),_o=e}const rl=new Set;let io;function de(){io={r:0,c:[],p:io}}function me(){io.r||nt(io.c),io=io.p}function d(t,e){t&&t.i&&(rl.delete(t),t.i(e))}function v(t,e,i,n){if(t&&t.o){if(rl.has(t))return;rl.add(t),io.c.push(()=>{rl.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Zt(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function v0(t,e){const i={},n={},l={$$scope:1};let r=t.length;for(;r--;){const o=t[r],s=e[r];if(s){for(const a in o)a in s||(n[a]=1);for(const a in s)l[a]||(i[a]=s[a],l[a]=1);t[r]=s}else for(const a in o)l[a]=1}for(const o in n)o in i||(i[o]=void 0);return i}function g0(t){return typeof t=="object"&&t!==null?t:{}}function We(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function q(t){t&&t.c()}function F(t,e,i){const{fragment:n,after_update:l}=t.$$;n&&n.m(e,i),yo(()=>{const r=t.$$.on_mount.map(b1).filter(In);t.$$.on_destroy?t.$$.on_destroy.push(...r):nt(r),t.$$.on_mount=[]}),l.forEach(yo)}function H(t,e){const i=t.$$;i.fragment!==null&&(h0(i.after_update),nt(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function b0(t,e){t.$$.dirty[0]===-1&&(vo.push(t),y1(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function we(t,e,i,n,l,r,o,s=[-1]){const a=Io;Ao(t);const c=t.$$={fragment:null,ctx:[],props:r,update:K,not_equal:l,bound:zr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:zr(),dirty:s,skip_bound:!1,root:e.target||a.$$.root};o&&o(c.root);let f=!1;if(c.ctx=i?i(t,e.props||{},(m,h,..._)=>{const g=_.length?_[0]:h;return c.ctx&&l(c.ctx[m],c.ctx[m]=g)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](g),f&&b0(t,m)),h}):[],c.update(),f=!0,nt(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const m=d0(e.target);c.fragment&&c.fragment.l(m),m.forEach(S)}else c.fragment&&c.fragment.c();e.intro&&d(t.$$.fragment),F(t,e.target,e.anchor),C1()}Ao(a)}class ke{constructor(){Tl(this,"$$");Tl(this,"$$set")}$destroy(){H(this,1),this.$destroy=K}$on(e,i){if(!In(i))return K;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const l=n.indexOf(i);l!==-1&&n.splice(l,1)}}$set(e){this.$$set&&!a0(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const _0="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(_0);var Co;(function(t){t.VK="vk",t.VK_VIDEO="vk_video"})(Co||(Co={}));const w0={isMobile:void 0,defaultLanguage:ne.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:Co.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:ne.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,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{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,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},k0=t=>ne.fillWithDefault(t,w0),y0=t=>xl("ui-config",t),gn=()=>ar("ui-config"),tr="vk_player_debug_panel_opened",S1=300,C0=100,S0="videoplayer",P0="videoplayer";var Ae;(function(t){t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Comma="Comma",t.Period="Period",t.Space="Space",t.KeyM="KeyM",t.KeyF="KeyF",t.KeyK="KeyK",t.KeyL="KeyL",t.KeyJ="KeyJ",t.KeyC="KeyC",t.KeyI="KeyI",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.Digit0="Digit0",t.Numpad1="Numpad1",t.Numpad2="Numpad2",t.Numpad3="Numpad3",t.Numpad4="Numpad4",t.Numpad5="Numpad5",t.Numpad6="Numpad6",t.Numpad7="Numpad7",t.Numpad8="Numpad8",t.Numpad9="Numpad9",t.Numpad0="Numpad0",t.ShiftLeft="ShiftLeft",t.ShiftRight="ShiftRight",t.Slash="Slash",t.Tab="Tab",t.Escape="Escape",t.Enter="Enter"})(Ae||(Ae={}));const Bo={[Ae.KeyF]:"f",[Ae.KeyK]:"k",[Ae.KeyC]:"c",[Ae.KeyM]:"m"},T0=new Set([Ae.ArrowLeft,Ae.ArrowRight,Ae.KeyL,Ae.KeyJ]),E0=new Set([Ae.Tab,Ae.Space,Ae.ArrowLeft,Ae.ArrowRight,Ae.ArrowUp,Ae.ArrowDown]),A0=new Set([Ae.ShiftRight,Ae.ShiftLeft]);var dt;(function(t){t.PLAY_BUTTON="PLAY_BUTTON",t.REPLAY_BUTTON="REPLAY_BUTTON",t.NEXT_BUTTON="NEXT_BUTTON",t.PREV_BUTTON="PREV_BUTTON",t.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",t.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",t.SETTINGS_BUTTON="SETTINGS_BUTTON",t.LIVE_BUTTON="LIVE_BUTTON",t.GRAPH_BUTTON="GRAPH_BUTTON",t.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",t.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",t.TIMELINE="TIMELINE",t.VOLUME_BAR="VOLUME_BAR",t.MUTE_BUTTON="MUTE_BUTTON",t.SUBTITLES_BUTTON="SUBTITLES_BUTTON",t.CHROMECAST_BUTTON="CHROMECAST_BUTTON",t.VK_BUTTON="VK_BUTTON",t.EPISODE_BUTTON="EPISODE_BUTTON",t.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",t.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(dt||(dt={}));const Hr=40,P1=260,I0=60,Qo=8,T1=[dt.TIMELINE],sl=[...T1,dt.GRAPH_BUTTON],Ur=[...T1,dt.PLAY_BUTTON],E1=[...sl,dt.PLAY_BUTTON];var go;(function(t){t[t.XS=320]="XS",t[t.S=509]="S",t[t.M=599]="M",t[t.L=699]="L"})(go||(go={}));exports.GridTypes=void 0;(function(t){t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl"})(exports.GridTypes||(exports.GridTypes={}));const So={[exports.GridTypes.XS]:0,[exports.GridTypes.S]:1,[exports.GridTypes.M]:2,[exports.GridTypes.L]:3,[exports.GridTypes.XL]:4},co=[];function Bn(t,e){return{subscribe:Ne(t,e).subscribe}}function Ne(t,e=K){let i;const n=new Set;function l(s){if(be(t,s)&&(t=s,i)){const a=!co.length;for(const c of n)c[1](),co.push(c,t);if(a){for(let c=0;c<co.length;c+=2)co[c][0](co[c+1]);co.length=0}}}function r(s){l(s(t))}function o(s,a=K){const c=[s,a];return n.add(c),n.size===1&&(i=e(l,r)||K),s(t),()=>{n.delete(c),n.size===0&&i&&(i(),i=null)}}return{set:l,update:r,subscribe:o}}function Ri(t,e,i){const n=!Array.isArray(t),l=n?[t]:t;if(!l.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return Bn(i,(o,s)=>{let a=!1;const c=[];let f=0,m=K;const h=()=>{if(f)return;m();const g=e(n?c[0]:c,o,s);r?o(g):m=In(g)?g:K},_=l.map((g,w)=>Qt(g,b=>{c[w]=b,f&=~(1<<w),a&&h()},()=>{f|=1<<w}));return a=!0,h(),function(){nt(_),m(),a=!1}})}const L0="prod",pl="1.1.36-dev.911333bb.0",A1=(t,e,i)=>{const n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()},I1=Symbol("storeContext"),L1=Symbol("microStoresContext"),V0=(t,e)=>{xl(I1,t),xl(L1,e)},Ct=()=>{const t=ar(I1);return ne.assertNonNullable(t,"Store context is empty!"),t},No=()=>{const t=ar(L1);return ne.assertNonNullable(t,"MicroStores context is empty!"),t},kt=(t,e)=>V1(t,t.getValue(),e),V1=(t,e,i)=>Bn(e,n=>{const l=t.subscribe(r=>{n(r),i==null||i(r)});return()=>l.unsubscribe()}),M0=(t,e,i)=>{var n,l,r,o;const s=t.info,{width:a,height:c}=tt(i.ui.playerSize),f=(l=(n=s.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&l!==void 0?l:0,m=(o=(r=s.rttEstimation$.getValue())===null||r===void 0?void 0:r.toFixed(0))!==null&&o!==void 0?o:0,h=s.isAutoQualityEnabled$.getValue()?"auto":"manual",_=`${pl} (core: ${$e.VERSION}, stat: ${yt.VERSION}, shared: ${ne.VERSION})`,g=tt(i.state.errorLog$),w=g.length?`
|
|
7
7
|
`+g.map((k,y)=>{var M;const j=`${y}) Type: ${k.id}
|
|
8
8
|
`,I=`Message: ${k.message} (${k.thrown})
|
|
9
9
|
`,z=`Trace: ${(M=k.thrown)===null||M===void 0?void 0:M.stack}
|
package/es2018.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.36-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.36-dev.911333bb.0
|
|
3
|
+
* Mon, 03 Jun 2024 06:24:12 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-36/doc/
|
|
5
5
|
*/
|
|
6
|
-
var _0=Object.defineProperty;var w0=(t,e,i)=>e in t?_0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var zl=(t,e,i)=>(w0(t,typeof e!="symbol"?e+"":e,i),i);import{VERSION as k0,ChromecastState as Fn,PlaybackState as Kt,VideoQuality as Co,Player as y0,VideoFormat as Oo}from"@vkontakte/videoplayer-core/es2018.esm.js";import{VideoFormat as x6,VideoQuality as $6}from"@vkontakte/videoplayer-core/es2018.esm.js";import{InterfaceLanguage as Uo,VideoQuality as gl,fillWithDefault as C0,VERSION as S0,assertNonNullable as vt,safeStorage as Rn,isNullable as kl,Subscription as no,isNonNullable as Vn,isMacLike as $r,debounceFn as P0,ValueSubject as _r,getCurrentBrowser as wr,CurrentClientBrowser as B1,noop as Ge,checkNever as T0,timeCodeToString as E0,Subject as Cn,addScript as I0,Logger as R1,merge as A0,Observable as L0,map as M0,loadVKLangPack as V0,isIOS as kr,getHighestQuality as B0,throttleFn as Pl,CurrentClientDevice as R0,getIOSVersion as N0,detectEmbed as O0,observeElementSize as D0,isMobile as z0,cloneDeepWith as F0}from"@vkontakte/videoplayer-shared/es2018.esm.js";import{InterfaceLanguage as t8,VKNumericLanguage as i8,loadVKLangPack as n8}from"@vkontakte/videoplayer-shared/es2018.esm.js";import{VERSION as H0,SeekAction as qt,OneStat as U0,InteractiveInterfaceClick as Do}from"@vkontakte/videoplayer-statistics/es2018.esm.js";import"@vkontakte/videoplayer-interactive/es2018.esm.js";function K(){}function N1(t,e){for(const i in e)t[i]=e[i];return t}function O1(t){return t()}function es(){return Object.create(null)}function it(t){t.forEach(O1)}function Bn(t){return typeof t=="function"}function ge(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let ol;function ts(t,e){return ol||(ol=document.createElement("a")),ol.href=e,t===ol.href}function q0(t){return Object.keys(t).length===0}function Jt(t,...e){if(t==null){for(const n of e)n(void 0);return K}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function et(t){let e;return Jt(t,i=>e=i)(),e}function D(t,e,i){t.$$.on_destroy.push(Jt(e,i))}function Kn(t,e,i,n){if(t){const l=D1(t,e,i,n);return t[0](l)}}function D1(t,e,i,n){return t[1]&&n?N1(i.ctx.slice(),t[1](n(e))):i.ctx}function Gn(t,e,i,n){if(t[2]&&n){const l=t[2](n(i));if(e.dirty===void 0)return l;if(typeof l=="object"){const r=[],o=Math.max(e.dirty.length,l.length);for(let s=0;s<o;s+=1)r[s]=e.dirty[s]|l[s];return r}return e.dirty|l}return e.dirty}function Yn(t,e,i,n,l,r){if(l){const o=D1(e,i,n,r);t.p(o,l)}}function Qn(t){if(t.ctx.length>32){const e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function j0(t){return t==null?"":t}const Tl=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function p(t,e){t.appendChild(e)}function We(t,e,i){const n=W0(t);if(!n.getElementById(e)){const l=T("style");l.id=e,l.textContent=i,Z0(n,l)}}function W0(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Z0(t,e){return p(t.head||t,e),e.sheet}function P(t,e,i){t.insertBefore(e,i||null)}function S(t){t.parentNode&&t.parentNode.removeChild(t)}function Nn(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function T(t){return document.createElement(t)}function R(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function De(t){return document.createTextNode(t)}function O(){return De(" ")}function dt(){return De("")}function he(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function $t(t){return function(e){return e.preventDefault(),t.call(this,e)}}function rt(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function u(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function K0(t){return Array.from(t.childNodes)}function $e(t,e){e=""+e,t.data!==e&&(t.data=e)}function Ft(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}let ll;function G0(){if(ll===void 0){ll=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(t){ll=!0}}return ll}function yr(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const l=G0();let r;return l?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=he(window,"message",o=>{o.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=he(n.contentWindow,"resize",e),e()}),p(t,n),()=>{(l||r&&n.contentWindow)&&r(),S(n)}}function B(t,e,i){t.classList.toggle(e,!!i)}function Hn(t,e){return new t(e)}let Fo;function zo(t){Fo=t}function qo(){if(!Fo)throw new Error("Function called outside component initialization");return Fo}function bn(t){qo().$$.on_mount.push(t)}function El(t){qo().$$.on_destroy.push(t)}function cr(t,e){return qo().$$.context.set(t,e),e}function Cr(t){return qo().$$.context.get(t)}function z1(){return qo().$$.context}function Ao(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const So=[],ye=[];let Eo=[];const fr=[],F1=Promise.resolve();let dr=!1;function H1(){dr||(dr=!0,F1.then(U1))}function jo(){return H1(),F1}function Lo(t){Eo.push(t)}function qe(t){fr.push(t)}const Fl=new Set;let go=0;function U1(){if(go!==0)return;const t=Fo;do{try{for(;go<So.length;){const e=So[go];go++,zo(e),Y0(e.$$)}}catch(e){throw So.length=0,go=0,e}for(zo(null),So.length=0,go=0;ye.length;)ye.pop()();for(let e=0;e<Eo.length;e+=1){const i=Eo[e];Fl.has(i)||(Fl.add(i),i())}Eo.length=0}while(So.length);for(;fr.length;)fr.pop()();dr=!1,Fl.clear(),zo(t)}function Y0(t){if(t.fragment!==null){t.update(),it(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Lo)}}function Q0(t){const e=[],i=[];Eo.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),Eo=e}const bl=new Set;let uo;function fe(){uo={r:0,c:[],p:uo}}function de(){uo.r||it(uo.c),uo=uo.p}function d(t,e){t&&t.i&&(bl.delete(t),t.i(e))}function v(t,e,i,n){if(t&&t.o){if(bl.has(t))return;bl.add(t),uo.c.push(()=>{bl.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Gt(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function X0(t,e){const i={},n={},l={$$scope:1};let r=t.length;for(;r--;){const o=t[r],s=e[r];if(s){for(const a in o)a in s||(n[a]=1);for(const a in s)l[a]||(i[a]=s[a],l[a]=1);t[r]=s}else for(const a in o)l[a]=1}for(const o in n)o in i||(i[o]=void 0);return i}function J0(t){return typeof t=="object"&&t!==null?t:{}}function je(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function q(t){t&&t.c()}function F(t,e,i){const{fragment:n,after_update:l}=t.$$;n&&n.m(e,i),Lo(()=>{const r=t.$$.on_mount.map(O1).filter(Bn);t.$$.on_destroy?t.$$.on_destroy.push(...r):it(r),t.$$.on_mount=[]}),l.forEach(Lo)}function H(t,e){const i=t.$$;i.fragment!==null&&(Q0(i.after_update),it(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function x0(t,e){t.$$.dirty[0]===-1&&(So.push(t),H1(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function _e(t,e,i,n,l,r,o,s=[-1]){const a=Fo;zo(t);const c=t.$$={fragment:null,ctx:[],props:r,update:K,not_equal:l,bound:es(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:es(),dirty:s,skip_bound:!1,root:e.target||a.$$.root};o&&o(c.root);let f=!1;if(c.ctx=i?i(t,e.props||{},(m,h,..._)=>{const g=_.length?_[0]:h;return c.ctx&&l(c.ctx[m],c.ctx[m]=g)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](g),f&&x0(t,m)),h}):[],c.update(),f=!0,it(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const m=K0(e.target);c.fragment&&c.fragment.l(m),m.forEach(S)}else c.fragment&&c.fragment.c();e.intro&&d(t.$$.fragment),F(t,e.target,e.anchor),U1()}zo(a)}class we{constructor(){zl(this,"$$");zl(this,"$$set")}$destroy(){H(this,1),this.$destroy=K}$on(e,i){if(!Bn(i))return K;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const l=n.indexOf(i);l!==-1&&n.splice(l,1)}}$set(e){this.$$set&&!q0(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const $0="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add($0);var Mo;(function(t){t.VK="vk",t.VK_VIDEO="vk_video"})(Mo||(Mo={}));const ed={isMobile:void 0,defaultLanguage:Uo.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:Mo.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:gl.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,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{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,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},td=t=>C0(t,ed),id=t=>cr("ui-config",t),_n=()=>Cr("ui-config"),mr="vk_player_debug_panel_opened",q1=300,nd=100,od="videoplayer",ld="videoplayer";var Ee;(function(t){t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Comma="Comma",t.Period="Period",t.Space="Space",t.KeyM="KeyM",t.KeyF="KeyF",t.KeyK="KeyK",t.KeyL="KeyL",t.KeyJ="KeyJ",t.KeyC="KeyC",t.KeyI="KeyI",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.Digit0="Digit0",t.Numpad1="Numpad1",t.Numpad2="Numpad2",t.Numpad3="Numpad3",t.Numpad4="Numpad4",t.Numpad5="Numpad5",t.Numpad6="Numpad6",t.Numpad7="Numpad7",t.Numpad8="Numpad8",t.Numpad9="Numpad9",t.Numpad0="Numpad0",t.ShiftLeft="ShiftLeft",t.ShiftRight="ShiftRight",t.Slash="Slash",t.Tab="Tab",t.Escape="Escape",t.Enter="Enter"})(Ee||(Ee={}));const Wo={[Ee.KeyF]:"f",[Ee.KeyK]:"k",[Ee.KeyC]:"c",[Ee.KeyM]:"m"},rd=new Set([Ee.ArrowLeft,Ee.ArrowRight,Ee.KeyL,Ee.KeyJ]),sd=new Set([Ee.Tab,Ee.Space,Ee.ArrowLeft,Ee.ArrowRight,Ee.ArrowUp,Ee.ArrowDown]),ad=new Set([Ee.ShiftRight,Ee.ShiftLeft]);var ft;(function(t){t.PLAY_BUTTON="PLAY_BUTTON",t.REPLAY_BUTTON="REPLAY_BUTTON",t.NEXT_BUTTON="NEXT_BUTTON",t.PREV_BUTTON="PREV_BUTTON",t.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",t.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",t.SETTINGS_BUTTON="SETTINGS_BUTTON",t.LIVE_BUTTON="LIVE_BUTTON",t.GRAPH_BUTTON="GRAPH_BUTTON",t.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",t.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",t.TIMELINE="TIMELINE",t.VOLUME_BAR="VOLUME_BAR",t.MUTE_BUTTON="MUTE_BUTTON",t.SUBTITLES_BUTTON="SUBTITLES_BUTTON",t.CHROMECAST_BUTTON="CHROMECAST_BUTTON",t.VK_BUTTON="VK_BUTTON",t.EPISODE_BUTTON="EPISODE_BUTTON",t.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",t.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(ft||(ft={}));const is=40,j1=260,ud=60,rl=8,W1=[ft.TIMELINE],_l=[...W1,ft.GRAPH_BUTTON],ns=[...W1,ft.PLAY_BUTTON],Z1=[..._l,ft.PLAY_BUTTON];var Po;(function(t){t[t.XS=320]="XS",t[t.S=509]="S",t[t.M=599]="M",t[t.L=699]="L"})(Po||(Po={}));var Mt;(function(t){t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl"})(Mt||(Mt={}));const Vo={[Mt.XS]:0,[Mt.S]:1,[Mt.M]:2,[Mt.L]:3,[Mt.XL]:4},bo=[];function zn(t,e){return{subscribe:Be(t,e).subscribe}}function Be(t,e=K){let i;const n=new Set;function l(s){if(ge(t,s)&&(t=s,i)){const a=!bo.length;for(const c of n)c[1](),bo.push(c,t);if(a){for(let c=0;c<bo.length;c+=2)bo[c][0](bo[c+1]);bo.length=0}}}function r(s){l(s(t))}function o(s,a=K){const c=[s,a];return n.add(c),n.size===1&&(i=e(l,r)||K),s(t),()=>{n.delete(c),n.size===0&&i&&(i(),i=null)}}return{set:l,update:r,subscribe:o}}function Di(t,e,i){const n=!Array.isArray(t),l=n?[t]:t;if(!l.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return zn(i,(o,s)=>{let a=!1;const c=[];let f=0,m=K;const h=()=>{if(f)return;m();const g=e(n?c[0]:c,o,s);r?o(g):m=Bn(g)?g:K},_=l.map((g,w)=>Jt(g,b=>{c[w]=b,f&=~(1<<w),a&&h()},()=>{f|=1<<w}));return a=!0,h(),function(){it(_),m(),a=!1}})}const cd="prod",Sr="1.1.36-dev.55db5eff.0",K1=(t,e,i)=>{const n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()},G1=Symbol("storeContext"),Y1=Symbol("microStoresContext"),fd=(t,e)=>{cr(G1,t),cr(Y1,e)},yt=()=>{const t=Cr(G1);return vt(t,"Store context is empty!"),t},Zo=()=>{const t=Cr(Y1);return vt(t,"MicroStores context is empty!"),t},kt=(t,e)=>Q1(t,t.getValue(),e),Q1=(t,e,i)=>zn(e,n=>{const l=t.subscribe(r=>{n(r),i==null||i(r)});return()=>l.unsubscribe()}),dd=(t,e,i)=>{var n,l,r,o;const s=t.info,{width:a,height:c}=et(i.ui.playerSize),f=(l=(n=s.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&l!==void 0?l:0,m=(o=(r=s.rttEstimation$.getValue())===null||r===void 0?void 0:r.toFixed(0))!==null&&o!==void 0?o:0,h=s.isAutoQualityEnabled$.getValue()?"auto":"manual",_=`${Sr} (core: ${k0}, stat: ${H0}, shared: ${S0})`,g=et(i.state.errorLog$),w=g.length?`
|
|
6
|
+
var _0=Object.defineProperty;var w0=(t,e,i)=>e in t?_0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var zl=(t,e,i)=>(w0(t,typeof e!="symbol"?e+"":e,i),i);import{VERSION as k0,ChromecastState as Fn,PlaybackState as Kt,VideoQuality as Co,Player as y0,VideoFormat as Oo}from"@vkontakte/videoplayer-core/es2018.esm.js";import{VideoFormat as x6,VideoQuality as $6}from"@vkontakte/videoplayer-core/es2018.esm.js";import{InterfaceLanguage as Uo,VideoQuality as gl,fillWithDefault as C0,VERSION as S0,assertNonNullable as vt,safeStorage as Rn,isNullable as kl,Subscription as no,isNonNullable as Vn,isMacLike as $r,debounceFn as P0,ValueSubject as _r,getCurrentBrowser as wr,CurrentClientBrowser as B1,noop as Ge,checkNever as T0,timeCodeToString as E0,Subject as Cn,addScript as I0,Logger as R1,merge as A0,Observable as L0,map as M0,loadVKLangPack as V0,isIOS as kr,getHighestQuality as B0,throttleFn as Pl,CurrentClientDevice as R0,getIOSVersion as N0,detectEmbed as O0,observeElementSize as D0,isMobile as z0,cloneDeepWith as F0}from"@vkontakte/videoplayer-shared/es2018.esm.js";import{InterfaceLanguage as t8,VKNumericLanguage as i8,loadVKLangPack as n8}from"@vkontakte/videoplayer-shared/es2018.esm.js";import{VERSION as H0,SeekAction as qt,OneStat as U0,InteractiveInterfaceClick as Do}from"@vkontakte/videoplayer-statistics/es2018.esm.js";import"@vkontakte/videoplayer-interactive/es2018.esm.js";function K(){}function N1(t,e){for(const i in e)t[i]=e[i];return t}function O1(t){return t()}function es(){return Object.create(null)}function it(t){t.forEach(O1)}function Bn(t){return typeof t=="function"}function ge(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let ol;function ts(t,e){return ol||(ol=document.createElement("a")),ol.href=e,t===ol.href}function q0(t){return Object.keys(t).length===0}function Jt(t,...e){if(t==null){for(const n of e)n(void 0);return K}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function et(t){let e;return Jt(t,i=>e=i)(),e}function D(t,e,i){t.$$.on_destroy.push(Jt(e,i))}function Kn(t,e,i,n){if(t){const l=D1(t,e,i,n);return t[0](l)}}function D1(t,e,i,n){return t[1]&&n?N1(i.ctx.slice(),t[1](n(e))):i.ctx}function Gn(t,e,i,n){if(t[2]&&n){const l=t[2](n(i));if(e.dirty===void 0)return l;if(typeof l=="object"){const r=[],o=Math.max(e.dirty.length,l.length);for(let s=0;s<o;s+=1)r[s]=e.dirty[s]|l[s];return r}return e.dirty|l}return e.dirty}function Yn(t,e,i,n,l,r){if(l){const o=D1(e,i,n,r);t.p(o,l)}}function Qn(t){if(t.ctx.length>32){const e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function j0(t){return t==null?"":t}const Tl=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function p(t,e){t.appendChild(e)}function We(t,e,i){const n=W0(t);if(!n.getElementById(e)){const l=T("style");l.id=e,l.textContent=i,Z0(n,l)}}function W0(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Z0(t,e){return p(t.head||t,e),e.sheet}function P(t,e,i){t.insertBefore(e,i||null)}function S(t){t.parentNode&&t.parentNode.removeChild(t)}function Nn(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function T(t){return document.createElement(t)}function R(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function De(t){return document.createTextNode(t)}function O(){return De(" ")}function dt(){return De("")}function he(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function $t(t){return function(e){return e.preventDefault(),t.call(this,e)}}function rt(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function u(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function K0(t){return Array.from(t.childNodes)}function $e(t,e){e=""+e,t.data!==e&&(t.data=e)}function Ft(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}let ll;function G0(){if(ll===void 0){ll=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(t){ll=!0}}return ll}function yr(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const l=G0();let r;return l?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=he(window,"message",o=>{o.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=he(n.contentWindow,"resize",e),e()}),p(t,n),()=>{(l||r&&n.contentWindow)&&r(),S(n)}}function B(t,e,i){t.classList.toggle(e,!!i)}function Hn(t,e){return new t(e)}let Fo;function zo(t){Fo=t}function qo(){if(!Fo)throw new Error("Function called outside component initialization");return Fo}function bn(t){qo().$$.on_mount.push(t)}function El(t){qo().$$.on_destroy.push(t)}function cr(t,e){return qo().$$.context.set(t,e),e}function Cr(t){return qo().$$.context.get(t)}function z1(){return qo().$$.context}function Ao(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const So=[],ye=[];let Eo=[];const fr=[],F1=Promise.resolve();let dr=!1;function H1(){dr||(dr=!0,F1.then(U1))}function jo(){return H1(),F1}function Lo(t){Eo.push(t)}function qe(t){fr.push(t)}const Fl=new Set;let go=0;function U1(){if(go!==0)return;const t=Fo;do{try{for(;go<So.length;){const e=So[go];go++,zo(e),Y0(e.$$)}}catch(e){throw So.length=0,go=0,e}for(zo(null),So.length=0,go=0;ye.length;)ye.pop()();for(let e=0;e<Eo.length;e+=1){const i=Eo[e];Fl.has(i)||(Fl.add(i),i())}Eo.length=0}while(So.length);for(;fr.length;)fr.pop()();dr=!1,Fl.clear(),zo(t)}function Y0(t){if(t.fragment!==null){t.update(),it(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Lo)}}function Q0(t){const e=[],i=[];Eo.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),Eo=e}const bl=new Set;let uo;function fe(){uo={r:0,c:[],p:uo}}function de(){uo.r||it(uo.c),uo=uo.p}function d(t,e){t&&t.i&&(bl.delete(t),t.i(e))}function v(t,e,i,n){if(t&&t.o){if(bl.has(t))return;bl.add(t),uo.c.push(()=>{bl.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Gt(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function X0(t,e){const i={},n={},l={$$scope:1};let r=t.length;for(;r--;){const o=t[r],s=e[r];if(s){for(const a in o)a in s||(n[a]=1);for(const a in s)l[a]||(i[a]=s[a],l[a]=1);t[r]=s}else for(const a in o)l[a]=1}for(const o in n)o in i||(i[o]=void 0);return i}function J0(t){return typeof t=="object"&&t!==null?t:{}}function je(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function q(t){t&&t.c()}function F(t,e,i){const{fragment:n,after_update:l}=t.$$;n&&n.m(e,i),Lo(()=>{const r=t.$$.on_mount.map(O1).filter(Bn);t.$$.on_destroy?t.$$.on_destroy.push(...r):it(r),t.$$.on_mount=[]}),l.forEach(Lo)}function H(t,e){const i=t.$$;i.fragment!==null&&(Q0(i.after_update),it(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function x0(t,e){t.$$.dirty[0]===-1&&(So.push(t),H1(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function _e(t,e,i,n,l,r,o,s=[-1]){const a=Fo;zo(t);const c=t.$$={fragment:null,ctx:[],props:r,update:K,not_equal:l,bound:es(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:es(),dirty:s,skip_bound:!1,root:e.target||a.$$.root};o&&o(c.root);let f=!1;if(c.ctx=i?i(t,e.props||{},(m,h,..._)=>{const g=_.length?_[0]:h;return c.ctx&&l(c.ctx[m],c.ctx[m]=g)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](g),f&&x0(t,m)),h}):[],c.update(),f=!0,it(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const m=K0(e.target);c.fragment&&c.fragment.l(m),m.forEach(S)}else c.fragment&&c.fragment.c();e.intro&&d(t.$$.fragment),F(t,e.target,e.anchor),U1()}zo(a)}class we{constructor(){zl(this,"$$");zl(this,"$$set")}$destroy(){H(this,1),this.$destroy=K}$on(e,i){if(!Bn(i))return K;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const l=n.indexOf(i);l!==-1&&n.splice(l,1)}}$set(e){this.$$set&&!q0(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const $0="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add($0);var Mo;(function(t){t.VK="vk",t.VK_VIDEO="vk_video"})(Mo||(Mo={}));const ed={isMobile:void 0,defaultLanguage:Uo.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:Mo.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:gl.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,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{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,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},td=t=>C0(t,ed),id=t=>cr("ui-config",t),_n=()=>Cr("ui-config"),mr="vk_player_debug_panel_opened",q1=300,nd=100,od="videoplayer",ld="videoplayer";var Ee;(function(t){t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Comma="Comma",t.Period="Period",t.Space="Space",t.KeyM="KeyM",t.KeyF="KeyF",t.KeyK="KeyK",t.KeyL="KeyL",t.KeyJ="KeyJ",t.KeyC="KeyC",t.KeyI="KeyI",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.Digit0="Digit0",t.Numpad1="Numpad1",t.Numpad2="Numpad2",t.Numpad3="Numpad3",t.Numpad4="Numpad4",t.Numpad5="Numpad5",t.Numpad6="Numpad6",t.Numpad7="Numpad7",t.Numpad8="Numpad8",t.Numpad9="Numpad9",t.Numpad0="Numpad0",t.ShiftLeft="ShiftLeft",t.ShiftRight="ShiftRight",t.Slash="Slash",t.Tab="Tab",t.Escape="Escape",t.Enter="Enter"})(Ee||(Ee={}));const Wo={[Ee.KeyF]:"f",[Ee.KeyK]:"k",[Ee.KeyC]:"c",[Ee.KeyM]:"m"},rd=new Set([Ee.ArrowLeft,Ee.ArrowRight,Ee.KeyL,Ee.KeyJ]),sd=new Set([Ee.Tab,Ee.Space,Ee.ArrowLeft,Ee.ArrowRight,Ee.ArrowUp,Ee.ArrowDown]),ad=new Set([Ee.ShiftRight,Ee.ShiftLeft]);var ft;(function(t){t.PLAY_BUTTON="PLAY_BUTTON",t.REPLAY_BUTTON="REPLAY_BUTTON",t.NEXT_BUTTON="NEXT_BUTTON",t.PREV_BUTTON="PREV_BUTTON",t.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",t.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",t.SETTINGS_BUTTON="SETTINGS_BUTTON",t.LIVE_BUTTON="LIVE_BUTTON",t.GRAPH_BUTTON="GRAPH_BUTTON",t.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",t.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",t.TIMELINE="TIMELINE",t.VOLUME_BAR="VOLUME_BAR",t.MUTE_BUTTON="MUTE_BUTTON",t.SUBTITLES_BUTTON="SUBTITLES_BUTTON",t.CHROMECAST_BUTTON="CHROMECAST_BUTTON",t.VK_BUTTON="VK_BUTTON",t.EPISODE_BUTTON="EPISODE_BUTTON",t.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",t.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(ft||(ft={}));const is=40,j1=260,ud=60,rl=8,W1=[ft.TIMELINE],_l=[...W1,ft.GRAPH_BUTTON],ns=[...W1,ft.PLAY_BUTTON],Z1=[..._l,ft.PLAY_BUTTON];var Po;(function(t){t[t.XS=320]="XS",t[t.S=509]="S",t[t.M=599]="M",t[t.L=699]="L"})(Po||(Po={}));var Mt;(function(t){t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl"})(Mt||(Mt={}));const Vo={[Mt.XS]:0,[Mt.S]:1,[Mt.M]:2,[Mt.L]:3,[Mt.XL]:4},bo=[];function zn(t,e){return{subscribe:Be(t,e).subscribe}}function Be(t,e=K){let i;const n=new Set;function l(s){if(ge(t,s)&&(t=s,i)){const a=!bo.length;for(const c of n)c[1](),bo.push(c,t);if(a){for(let c=0;c<bo.length;c+=2)bo[c][0](bo[c+1]);bo.length=0}}}function r(s){l(s(t))}function o(s,a=K){const c=[s,a];return n.add(c),n.size===1&&(i=e(l,r)||K),s(t),()=>{n.delete(c),n.size===0&&i&&(i(),i=null)}}return{set:l,update:r,subscribe:o}}function Di(t,e,i){const n=!Array.isArray(t),l=n?[t]:t;if(!l.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return zn(i,(o,s)=>{let a=!1;const c=[];let f=0,m=K;const h=()=>{if(f)return;m();const g=e(n?c[0]:c,o,s);r?o(g):m=Bn(g)?g:K},_=l.map((g,w)=>Jt(g,b=>{c[w]=b,f&=~(1<<w),a&&h()},()=>{f|=1<<w}));return a=!0,h(),function(){it(_),m(),a=!1}})}const cd="prod",Sr="1.1.36-dev.911333bb.0",K1=(t,e,i)=>{const n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()},G1=Symbol("storeContext"),Y1=Symbol("microStoresContext"),fd=(t,e)=>{cr(G1,t),cr(Y1,e)},yt=()=>{const t=Cr(G1);return vt(t,"Store context is empty!"),t},Zo=()=>{const t=Cr(Y1);return vt(t,"MicroStores context is empty!"),t},kt=(t,e)=>Q1(t,t.getValue(),e),Q1=(t,e,i)=>zn(e,n=>{const l=t.subscribe(r=>{n(r),i==null||i(r)});return()=>l.unsubscribe()}),dd=(t,e,i)=>{var n,l,r,o;const s=t.info,{width:a,height:c}=et(i.ui.playerSize),f=(l=(n=s.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&l!==void 0?l:0,m=(o=(r=s.rttEstimation$.getValue())===null||r===void 0?void 0:r.toFixed(0))!==null&&o!==void 0?o:0,h=s.isAutoQualityEnabled$.getValue()?"auto":"manual",_=`${Sr} (core: ${k0}, stat: ${H0}, shared: ${S0})`,g=et(i.state.errorLog$),w=g.length?`
|
|
7
7
|
`+g.map((k,y)=>{var V;const j=`${y}) Type: ${k.id}
|
|
8
8
|
`,A=`Message: ${k.message} (${k.thrown})
|
|
9
9
|
`,z=`Trace: ${(V=k.thrown)===null||V===void 0?void 0:V.stack}
|
package/esnext.cjs.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.36-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.36-dev.911333bb.0
|
|
3
|
+
* Mon, 03 Jun 2024 06:24:12 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-36/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var sc=Object.create;var ql=Object.defineProperty;var rc=Object.getOwnPropertyDescriptor;var ac=Object.getOwnPropertyNames;var uc=Object.getPrototypeOf,cc=Object.prototype.hasOwnProperty;var fc=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ac(e))!cc.call(t,o)&&o!==i&&ql(t,o,{get:()=>e[o],enumerable:!(n=rc(e,o))||n.enumerable});return t};var jl=(t,e,i)=>(i=t!=null?sc(uc(t)):{},fc(e||!t||!t.__esModule?ql(i,"default",{value:t,enumerable:!0}):i,t));var Je=require("@vkontakte/videoplayer-core/esnext.cjs.js"),te=require("@vkontakte/videoplayer-shared/esnext.cjs.js"),dt=require("@vkontakte/videoplayer-statistics/esnext.cjs.js");require("@vkontakte/videoplayer-interactive/esnext.cjs.js");function j(){}function $a(t,e){for(const i in e)t[i]=e[i];return t}function e1(t){return t()}function Zl(){return Object.create(null)}function it(t){t.forEach(e1)}function bn(t){return typeof t=="function"}function ge(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Io;function Wl(t,e){return Io||(Io=document.createElement("a")),Io.href=e,t===Io.href}function dc(t){return Object.keys(t).length===0}function jt(t,...e){if(t==null){for(const n of e)n(void 0);return j}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function $e(t){let e;return jt(t,i=>e=i)(),e}function D(t,e,i){t.$$.on_destroy.push(jt(e,i))}function Bn(t,e,i,n){if(t){const o=t1(t,e,i,n);return t[0](o)}}function t1(t,e,i,n){return t[1]&&n?$a(i.ctx.slice(),t[1](n(e))):i.ctx}function Nn(t,e,i,n){if(t[2]&&n){const o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){const s=[],l=Math.max(e.dirty.length,o.length);for(let r=0;r<l;r+=1)s[r]=e.dirty[r]|o[r];return s}return e.dirty|o}return e.dirty}function Rn(t,e,i,n,o,s){if(o){const l=t1(e,i,n,s);t.p(l,o)}}function Dn(t){if(t.ctx.length>32){const e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function mc(t){return t??""}const qo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function p(t,e){t.appendChild(e)}function Ze(t,e,i){const n=pc(t);if(!n.getElementById(e)){const o=E("style");o.id=e,o.textContent=i,hc(n,o)}}function pc(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function hc(t,e){return p(t.head||t,e),e.sheet}function T(t,e,i){t.insertBefore(e,i||null)}function S(t){t.parentNode&&t.parentNode.removeChild(t)}function gn(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function E(t){return document.createElement(t)}function N(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ze(t){return document.createTextNode(t)}function R(){return ze(" ")}function ut(){return ze("")}function he(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Wt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function ot(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function u(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function bc(t){return Array.from(t.childNodes)}function xe(t,e){e=""+e,t.data!==e&&(t.data=e)}function Pt(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}let Lo;function gc(){if(Lo===void 0){Lo=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Lo=!0}}return Lo}function bl(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const n=E("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const o=gc();let s;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=he(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{s=he(n.contentWindow,"resize",e),e()}),p(t,n),()=>{(o||s&&n.contentWindow)&&s(),S(n)}}function B(t,e,i){t.classList.toggle(e,!!i)}function Tn(t,e){return new t(e)}let go;function bo(t){go=t}function vo(){if(!go)throw new Error("Function called outside component initialization");return go}function ln(t){vo().$$.on_mount.push(t)}function jo(t){vo().$$.on_destroy.push(t)}function cl(t,e){return vo().$$.context.set(t,e),e}function gl(t){return vo().$$.context.get(t)}function i1(){return vo().$$.context}function so(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const io=[],we=[];let oo=[];const fl=[],n1=Promise.resolve();let dl=!1;function o1(){dl||(dl=!0,n1.then(l1))}function ko(){return o1(),n1}function ro(t){oo.push(t)}function Ue(t){fl.push(t)}const el=new Set;let $n=0;function l1(){if($n!==0)return;const t=go;do{try{for(;$n<io.length;){const e=io[$n];$n++,bo(e),_c(e.$$)}}catch(e){throw io.length=0,$n=0,e}for(bo(null),io.length=0,$n=0;we.length;)we.pop()();for(let e=0;e<oo.length;e+=1){const i=oo[e];el.has(i)||(el.add(i),i())}oo.length=0}while(io.length);for(;fl.length;)fl.pop()();dl=!1,el.clear(),bo(t)}function _c(t){if(t.fragment!==null){t.update(),it(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ro)}}function vc(t){const e=[],i=[];oo.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),oo=e}const zo=new Set;let Yn;function de(){Yn={r:0,c:[],p:Yn}}function me(){Yn.r||it(Yn.c),Yn=Yn.p}function d(t,e){t&&t.i&&(zo.delete(t),t.i(e))}function b(t,e,i,n){if(t&&t.o){if(zo.has(t))return;zo.add(t),Yn.c.push(()=>{zo.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Nt(t){return t?.length!==void 0?t:Array.from(t)}function kc(t,e){const i={},n={},o={$$scope:1};let s=t.length;for(;s--;){const l=t[s],r=e[s];if(r){for(const a in l)a in r||(n[a]=1);for(const a in r)o[a]||(i[a]=r[a],o[a]=1);t[s]=r}else for(const a in l)o[a]=1}for(const l in n)l in i||(i[l]=void 0);return i}function wc(t){return typeof t=="object"&&t!==null?t:{}}function qe(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function F(t){t&&t.c()}function O(t,e,i){const{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),ro(()=>{const s=t.$$.on_mount.map(e1).filter(bn);t.$$.on_destroy?t.$$.on_destroy.push(...s):it(s),t.$$.on_mount=[]}),o.forEach(ro)}function z(t,e){const i=t.$$;i.fragment!==null&&(vc(i.after_update),it(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function yc(t,e){t.$$.dirty[0]===-1&&(io.push(t),o1(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function _e(t,e,i,n,o,s,l,r=[-1]){const a=go;bo(t);const c=t.$$={fragment:null,ctx:[],props:s,update:j,not_equal:o,bound:Zl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:Zl(),dirty:r,skip_bound:!1,root:e.target||a.$$.root};l&&l(c.root);let f=!1;if(c.ctx=i?i(t,e.props||{},(m,h,..._)=>{const g=_.length?_[0]:h;return c.ctx&&o(c.ctx[m],c.ctx[m]=g)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](g),f&&yc(t,m)),h}):[],c.update(),f=!0,it(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const m=bc(e.target);c.fragment&&c.fragment.l(m),m.forEach(S)}else c.fragment&&c.fragment.c();e.intro&&d(t.$$.fragment),O(t,e.target,e.anchor),l1()}bo(a)}class ve{$$=void 0;$$set=void 0;$destroy(){z(this,1),this.$destroy=j}$on(e,i){if(!bn(i))return j;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!dc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Cc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Cc);var ao;(function(t){t.VK="vk",t.VK_VIDEO="vk_video"})(ao||(ao={}));const Pc={isMobile:void 0,defaultLanguage:te.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:ao.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:te.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,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{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,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Sc=t=>te.fillWithDefault(t,Pc),Tc=t=>cl("ui-config",t),sn=()=>gl("ui-config"),ml="vk_player_debug_panel_opened",s1=300,Ec=100,Ac="videoplayer",Ic="videoplayer";var Ae;(function(t){t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Comma="Comma",t.Period="Period",t.Space="Space",t.KeyM="KeyM",t.KeyF="KeyF",t.KeyK="KeyK",t.KeyL="KeyL",t.KeyJ="KeyJ",t.KeyC="KeyC",t.KeyI="KeyI",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.Digit0="Digit0",t.Numpad1="Numpad1",t.Numpad2="Numpad2",t.Numpad3="Numpad3",t.Numpad4="Numpad4",t.Numpad5="Numpad5",t.Numpad6="Numpad6",t.Numpad7="Numpad7",t.Numpad8="Numpad8",t.Numpad9="Numpad9",t.Numpad0="Numpad0",t.ShiftLeft="ShiftLeft",t.ShiftRight="ShiftRight",t.Slash="Slash",t.Tab="Tab",t.Escape="Escape",t.Enter="Enter"})(Ae||(Ae={}));const wo={[Ae.KeyF]:"f",[Ae.KeyK]:"k",[Ae.KeyC]:"c",[Ae.KeyM]:"m"},Lc=new Set([Ae.ArrowLeft,Ae.ArrowRight,Ae.KeyL,Ae.KeyJ]),Vc=new Set([Ae.Tab,Ae.Space,Ae.ArrowLeft,Ae.ArrowRight,Ae.ArrowUp,Ae.ArrowDown]),Mc=new Set([Ae.ShiftRight,Ae.ShiftLeft]);var rt;(function(t){t.PLAY_BUTTON="PLAY_BUTTON",t.REPLAY_BUTTON="REPLAY_BUTTON",t.NEXT_BUTTON="NEXT_BUTTON",t.PREV_BUTTON="PREV_BUTTON",t.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",t.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",t.SETTINGS_BUTTON="SETTINGS_BUTTON",t.LIVE_BUTTON="LIVE_BUTTON",t.GRAPH_BUTTON="GRAPH_BUTTON",t.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",t.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",t.TIMELINE="TIMELINE",t.VOLUME_BAR="VOLUME_BAR",t.MUTE_BUTTON="MUTE_BUTTON",t.SUBTITLES_BUTTON="SUBTITLES_BUTTON",t.CHROMECAST_BUTTON="CHROMECAST_BUTTON",t.VK_BUTTON="VK_BUTTON",t.EPISODE_BUTTON="EPISODE_BUTTON",t.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",t.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(rt||(rt={}));const Kl=40,r1=260,Bc=60,Vo=8,a1=[rt.TIMELINE],Ho=[...a1,rt.GRAPH_BUTTON],Gl=[...a1,rt.PLAY_BUTTON],u1=[...Ho,rt.PLAY_BUTTON];var no;(function(t){t[t.XS=320]="XS",t[t.S=509]="S",t[t.M=599]="M",t[t.L=699]="L"})(no||(no={}));exports.GridTypes=void 0;(function(t){t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl"})(exports.GridTypes||(exports.GridTypes={}));const uo={[exports.GridTypes.XS]:0,[exports.GridTypes.S]:1,[exports.GridTypes.M]:2,[exports.GridTypes.L]:3,[exports.GridTypes.XL]:4},eo=[];function Sn(t,e){return{subscribe:Me(t,e).subscribe}}function Me(t,e=j){let i;const n=new Set;function o(r){if(ge(t,r)&&(t=r,i)){const a=!eo.length;for(const c of n)c[1](),eo.push(c,t);if(a){for(let c=0;c<eo.length;c+=2)eo[c][0](eo[c+1]);eo.length=0}}}function s(r){o(r(t))}function l(r,a=j){const c=[r,a];return n.add(c),n.size===1&&(i=e(o,s)||j),r(t),()=>{n.delete(c),n.size===0&&i&&(i(),i=null)}}return{set:o,update:s,subscribe:l}}function Bi(t,e,i){const n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return Sn(i,(l,r)=>{let a=!1;const c=[];let f=0,m=j;const h=()=>{if(f)return;m();const g=e(n?c[0]:c,l,r);s?l(g):m=bn(g)?g:j},_=o.map((g,k)=>jt(g,v=>{c[k]=v,f&=~(1<<k),a&&h()},()=>{f|=1<<k}));return a=!0,h(),function(){it(_),m(),a=!1}})}const Nc="prod",Zo="1.1.36-dev.55db5eff.0",c1=(t,e,i)=>{const n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()},f1=Symbol("storeContext"),d1=Symbol("microStoresContext"),Rc=(t,e)=>{cl(f1,t),cl(d1,e)},mt=()=>{const t=gl(f1);return te.assertNonNullable(t,"Store context is empty!"),t},yo=()=>{const t=gl(d1);return te.assertNonNullable(t,"MicroStores context is empty!"),t},ft=(t,e)=>m1(t,t.getValue(),e),m1=(t,e,i)=>Sn(e,n=>{const o=t.subscribe(s=>{n(s),i?.(s)});return()=>o.unsubscribe()}),Dc=(t,e,i)=>{const n=t.info,{width:o,height:s}=$e(i.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,r=n.rttEstimation$.getValue()?.toFixed(0)??0,a=n.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Zo} (core: ${Je.VERSION}, stat: ${dt.VERSION}, shared: ${te.VERSION})`,f=$e(i.state.errorLog$),m=f.length?`
|
|
6
|
+
"use strict";var sc=Object.create;var ql=Object.defineProperty;var rc=Object.getOwnPropertyDescriptor;var ac=Object.getOwnPropertyNames;var uc=Object.getPrototypeOf,cc=Object.prototype.hasOwnProperty;var fc=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ac(e))!cc.call(t,o)&&o!==i&&ql(t,o,{get:()=>e[o],enumerable:!(n=rc(e,o))||n.enumerable});return t};var jl=(t,e,i)=>(i=t!=null?sc(uc(t)):{},fc(e||!t||!t.__esModule?ql(i,"default",{value:t,enumerable:!0}):i,t));var Je=require("@vkontakte/videoplayer-core/esnext.cjs.js"),te=require("@vkontakte/videoplayer-shared/esnext.cjs.js"),dt=require("@vkontakte/videoplayer-statistics/esnext.cjs.js");require("@vkontakte/videoplayer-interactive/esnext.cjs.js");function j(){}function $a(t,e){for(const i in e)t[i]=e[i];return t}function e1(t){return t()}function Zl(){return Object.create(null)}function it(t){t.forEach(e1)}function bn(t){return typeof t=="function"}function ge(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Io;function Wl(t,e){return Io||(Io=document.createElement("a")),Io.href=e,t===Io.href}function dc(t){return Object.keys(t).length===0}function jt(t,...e){if(t==null){for(const n of e)n(void 0);return j}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function $e(t){let e;return jt(t,i=>e=i)(),e}function D(t,e,i){t.$$.on_destroy.push(jt(e,i))}function Bn(t,e,i,n){if(t){const o=t1(t,e,i,n);return t[0](o)}}function t1(t,e,i,n){return t[1]&&n?$a(i.ctx.slice(),t[1](n(e))):i.ctx}function Nn(t,e,i,n){if(t[2]&&n){const o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){const s=[],l=Math.max(e.dirty.length,o.length);for(let r=0;r<l;r+=1)s[r]=e.dirty[r]|o[r];return s}return e.dirty|o}return e.dirty}function Rn(t,e,i,n,o,s){if(o){const l=t1(e,i,n,s);t.p(l,o)}}function Dn(t){if(t.ctx.length>32){const e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function mc(t){return t??""}const qo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function p(t,e){t.appendChild(e)}function Ze(t,e,i){const n=pc(t);if(!n.getElementById(e)){const o=E("style");o.id=e,o.textContent=i,hc(n,o)}}function pc(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function hc(t,e){return p(t.head||t,e),e.sheet}function T(t,e,i){t.insertBefore(e,i||null)}function S(t){t.parentNode&&t.parentNode.removeChild(t)}function gn(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function E(t){return document.createElement(t)}function N(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ze(t){return document.createTextNode(t)}function R(){return ze(" ")}function ut(){return ze("")}function he(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Wt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function ot(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function u(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function bc(t){return Array.from(t.childNodes)}function xe(t,e){e=""+e,t.data!==e&&(t.data=e)}function Pt(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}let Lo;function gc(){if(Lo===void 0){Lo=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Lo=!0}}return Lo}function bl(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const n=E("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const o=gc();let s;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=he(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{s=he(n.contentWindow,"resize",e),e()}),p(t,n),()=>{(o||s&&n.contentWindow)&&s(),S(n)}}function B(t,e,i){t.classList.toggle(e,!!i)}function Tn(t,e){return new t(e)}let go;function bo(t){go=t}function vo(){if(!go)throw new Error("Function called outside component initialization");return go}function ln(t){vo().$$.on_mount.push(t)}function jo(t){vo().$$.on_destroy.push(t)}function cl(t,e){return vo().$$.context.set(t,e),e}function gl(t){return vo().$$.context.get(t)}function i1(){return vo().$$.context}function so(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const io=[],we=[];let oo=[];const fl=[],n1=Promise.resolve();let dl=!1;function o1(){dl||(dl=!0,n1.then(l1))}function ko(){return o1(),n1}function ro(t){oo.push(t)}function Ue(t){fl.push(t)}const el=new Set;let $n=0;function l1(){if($n!==0)return;const t=go;do{try{for(;$n<io.length;){const e=io[$n];$n++,bo(e),_c(e.$$)}}catch(e){throw io.length=0,$n=0,e}for(bo(null),io.length=0,$n=0;we.length;)we.pop()();for(let e=0;e<oo.length;e+=1){const i=oo[e];el.has(i)||(el.add(i),i())}oo.length=0}while(io.length);for(;fl.length;)fl.pop()();dl=!1,el.clear(),bo(t)}function _c(t){if(t.fragment!==null){t.update(),it(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ro)}}function vc(t){const e=[],i=[];oo.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),oo=e}const zo=new Set;let Yn;function de(){Yn={r:0,c:[],p:Yn}}function me(){Yn.r||it(Yn.c),Yn=Yn.p}function d(t,e){t&&t.i&&(zo.delete(t),t.i(e))}function b(t,e,i,n){if(t&&t.o){if(zo.has(t))return;zo.add(t),Yn.c.push(()=>{zo.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Nt(t){return t?.length!==void 0?t:Array.from(t)}function kc(t,e){const i={},n={},o={$$scope:1};let s=t.length;for(;s--;){const l=t[s],r=e[s];if(r){for(const a in l)a in r||(n[a]=1);for(const a in r)o[a]||(i[a]=r[a],o[a]=1);t[s]=r}else for(const a in l)o[a]=1}for(const l in n)l in i||(i[l]=void 0);return i}function wc(t){return typeof t=="object"&&t!==null?t:{}}function qe(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function F(t){t&&t.c()}function O(t,e,i){const{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),ro(()=>{const s=t.$$.on_mount.map(e1).filter(bn);t.$$.on_destroy?t.$$.on_destroy.push(...s):it(s),t.$$.on_mount=[]}),o.forEach(ro)}function z(t,e){const i=t.$$;i.fragment!==null&&(vc(i.after_update),it(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function yc(t,e){t.$$.dirty[0]===-1&&(io.push(t),o1(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function _e(t,e,i,n,o,s,l,r=[-1]){const a=go;bo(t);const c=t.$$={fragment:null,ctx:[],props:s,update:j,not_equal:o,bound:Zl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:Zl(),dirty:r,skip_bound:!1,root:e.target||a.$$.root};l&&l(c.root);let f=!1;if(c.ctx=i?i(t,e.props||{},(m,h,..._)=>{const g=_.length?_[0]:h;return c.ctx&&o(c.ctx[m],c.ctx[m]=g)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](g),f&&yc(t,m)),h}):[],c.update(),f=!0,it(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const m=bc(e.target);c.fragment&&c.fragment.l(m),m.forEach(S)}else c.fragment&&c.fragment.c();e.intro&&d(t.$$.fragment),O(t,e.target,e.anchor),l1()}bo(a)}class ve{$$=void 0;$$set=void 0;$destroy(){z(this,1),this.$destroy=j}$on(e,i){if(!bn(i))return j;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!dc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Cc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Cc);var ao;(function(t){t.VK="vk",t.VK_VIDEO="vk_video"})(ao||(ao={}));const Pc={isMobile:void 0,defaultLanguage:te.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:ao.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:te.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,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{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,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Sc=t=>te.fillWithDefault(t,Pc),Tc=t=>cl("ui-config",t),sn=()=>gl("ui-config"),ml="vk_player_debug_panel_opened",s1=300,Ec=100,Ac="videoplayer",Ic="videoplayer";var Ae;(function(t){t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Comma="Comma",t.Period="Period",t.Space="Space",t.KeyM="KeyM",t.KeyF="KeyF",t.KeyK="KeyK",t.KeyL="KeyL",t.KeyJ="KeyJ",t.KeyC="KeyC",t.KeyI="KeyI",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.Digit0="Digit0",t.Numpad1="Numpad1",t.Numpad2="Numpad2",t.Numpad3="Numpad3",t.Numpad4="Numpad4",t.Numpad5="Numpad5",t.Numpad6="Numpad6",t.Numpad7="Numpad7",t.Numpad8="Numpad8",t.Numpad9="Numpad9",t.Numpad0="Numpad0",t.ShiftLeft="ShiftLeft",t.ShiftRight="ShiftRight",t.Slash="Slash",t.Tab="Tab",t.Escape="Escape",t.Enter="Enter"})(Ae||(Ae={}));const wo={[Ae.KeyF]:"f",[Ae.KeyK]:"k",[Ae.KeyC]:"c",[Ae.KeyM]:"m"},Lc=new Set([Ae.ArrowLeft,Ae.ArrowRight,Ae.KeyL,Ae.KeyJ]),Vc=new Set([Ae.Tab,Ae.Space,Ae.ArrowLeft,Ae.ArrowRight,Ae.ArrowUp,Ae.ArrowDown]),Mc=new Set([Ae.ShiftRight,Ae.ShiftLeft]);var rt;(function(t){t.PLAY_BUTTON="PLAY_BUTTON",t.REPLAY_BUTTON="REPLAY_BUTTON",t.NEXT_BUTTON="NEXT_BUTTON",t.PREV_BUTTON="PREV_BUTTON",t.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",t.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",t.SETTINGS_BUTTON="SETTINGS_BUTTON",t.LIVE_BUTTON="LIVE_BUTTON",t.GRAPH_BUTTON="GRAPH_BUTTON",t.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",t.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",t.TIMELINE="TIMELINE",t.VOLUME_BAR="VOLUME_BAR",t.MUTE_BUTTON="MUTE_BUTTON",t.SUBTITLES_BUTTON="SUBTITLES_BUTTON",t.CHROMECAST_BUTTON="CHROMECAST_BUTTON",t.VK_BUTTON="VK_BUTTON",t.EPISODE_BUTTON="EPISODE_BUTTON",t.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",t.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(rt||(rt={}));const Kl=40,r1=260,Bc=60,Vo=8,a1=[rt.TIMELINE],Ho=[...a1,rt.GRAPH_BUTTON],Gl=[...a1,rt.PLAY_BUTTON],u1=[...Ho,rt.PLAY_BUTTON];var no;(function(t){t[t.XS=320]="XS",t[t.S=509]="S",t[t.M=599]="M",t[t.L=699]="L"})(no||(no={}));exports.GridTypes=void 0;(function(t){t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl"})(exports.GridTypes||(exports.GridTypes={}));const uo={[exports.GridTypes.XS]:0,[exports.GridTypes.S]:1,[exports.GridTypes.M]:2,[exports.GridTypes.L]:3,[exports.GridTypes.XL]:4},eo=[];function Sn(t,e){return{subscribe:Me(t,e).subscribe}}function Me(t,e=j){let i;const n=new Set;function o(r){if(ge(t,r)&&(t=r,i)){const a=!eo.length;for(const c of n)c[1](),eo.push(c,t);if(a){for(let c=0;c<eo.length;c+=2)eo[c][0](eo[c+1]);eo.length=0}}}function s(r){o(r(t))}function l(r,a=j){const c=[r,a];return n.add(c),n.size===1&&(i=e(o,s)||j),r(t),()=>{n.delete(c),n.size===0&&i&&(i(),i=null)}}return{set:o,update:s,subscribe:l}}function Bi(t,e,i){const n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return Sn(i,(l,r)=>{let a=!1;const c=[];let f=0,m=j;const h=()=>{if(f)return;m();const g=e(n?c[0]:c,l,r);s?l(g):m=bn(g)?g:j},_=o.map((g,k)=>jt(g,v=>{c[k]=v,f&=~(1<<k),a&&h()},()=>{f|=1<<k}));return a=!0,h(),function(){it(_),m(),a=!1}})}const Nc="prod",Zo="1.1.36-dev.911333bb.0",c1=(t,e,i)=>{const n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()},f1=Symbol("storeContext"),d1=Symbol("microStoresContext"),Rc=(t,e)=>{cl(f1,t),cl(d1,e)},mt=()=>{const t=gl(f1);return te.assertNonNullable(t,"Store context is empty!"),t},yo=()=>{const t=gl(d1);return te.assertNonNullable(t,"MicroStores context is empty!"),t},ft=(t,e)=>m1(t,t.getValue(),e),m1=(t,e,i)=>Sn(e,n=>{const o=t.subscribe(s=>{n(s),i?.(s)});return()=>o.unsubscribe()}),Dc=(t,e,i)=>{const n=t.info,{width:o,height:s}=$e(i.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,r=n.rttEstimation$.getValue()?.toFixed(0)??0,a=n.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Zo} (core: ${Je.VERSION}, stat: ${dt.VERSION}, shared: ${te.VERSION})`,f=$e(i.state.errorLog$),m=f.length?`
|
|
7
7
|
`+f.map((g,k)=>{const v=`${k}) Type: ${g.id}
|
|
8
8
|
`,P=`Message: ${g.message} (${g.thrown})
|
|
9
9
|
`,y=`Trace: ${g.thrown?.stack}
|
package/esnext.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.36-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.36-dev.911333bb.0
|
|
3
|
+
* Mon, 03 Jun 2024 06:24:12 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-36/doc/
|
|
5
5
|
*/
|
|
6
|
-
import{VERSION as Pc,ChromecastState as Vn,PlaybackState as Nt,VideoQuality as uo,Player as Sc,VideoFormat as Po}from"@vkontakte/videoplayer-core/esnext.esm.js";import{VideoFormat as N5,VideoQuality as D5}from"@vkontakte/videoplayer-core/esnext.esm.js";import{InterfaceLanguage as Io,VideoQuality as Qo,fillWithDefault as Tc,VERSION as Ec,assertNonNullable as ut,safeStorage as wn,isNullable as xo,Subscription as Jn,isNonNullable as vn,isMacLike as ls,debounceFn as Ac,ValueSubject as Il,getCurrentBrowser as Ll,CurrentClientBrowser as h1,noop as je,checkNever as Ic,timeCodeToString as Lc,Subject as cn,addScript as Vc,Logger as g1,merge as Mc,Observable as Bc,map as Rc,loadVKLangPack as Nc,isIOS as Vl,getHighestQuality as Dc,throttleFn as tl,CurrentClientDevice as zc,getIOSVersion as Oc,detectEmbed as Hc,observeElementSize as Fc,isMobile as Uc,cloneDeepWith as qc}from"@vkontakte/videoplayer-shared/esnext.esm.js";import{InterfaceLanguage as O5,VKNumericLanguage as H5,loadVKLangPack as F5}from"@vkontakte/videoplayer-shared/esnext.esm.js";import{VERSION as Zc,SeekAction as It,OneStat as Wc,InteractiveInterfaceClick as So}from"@vkontakte/videoplayer-statistics/esnext.esm.js";import"@vkontakte/videoplayer-interactive/esnext.esm.js";function Z(){}function b1(t,e){for(const i in e)t[i]=e[i];return t}function _1(t){return t()}function ss(){return Object.create(null)}function tt(t){t.forEach(_1)}function kn(t){return typeof t=="function"}function ge(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Fo;function rs(t,e){return Fo||(Fo=document.createElement("a")),Fo.href=e,t===Fo.href}function Kc(t){return Object.keys(t).length===0}function Kt(t,...e){if(t==null){for(const n of e)n(void 0);return Z}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function xe(t){let e;return Kt(t,i=>e=i)(),e}function D(t,e,i){t.$$.on_destroy.push(Kt(e,i))}function Hn(t,e,i,n){if(t){const o=v1(t,e,i,n);return t[0](o)}}function v1(t,e,i,n){return t[1]&&n?b1(i.ctx.slice(),t[1](n(e))):i.ctx}function Fn(t,e,i,n){if(t[2]&&n){const o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){const s=[],l=Math.max(e.dirty.length,o.length);for(let r=0;r<l;r+=1)s[r]=e.dirty[r]|o[r];return s}return e.dirty|o}return e.dirty}function Un(t,e,i,n,o,s){if(o){const l=v1(e,i,n,s);t.p(l,o)}}function qn(t){if(t.ctx.length>32){const e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function jc(t){return t??""}const il=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function p(t,e){t.appendChild(e)}function Ze(t,e,i){const n=Gc(t);if(!n.getElementById(e)){const o=E("style");o.id=e,o.textContent=i,Yc(n,o)}}function Gc(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Yc(t,e){return p(t.head||t,e),e.sheet}function T(t,e,i){t.insertBefore(e,i||null)}function S(t){t.parentNode&&t.parentNode.removeChild(t)}function yn(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function E(t){return document.createElement(t)}function R(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ze(t){return document.createTextNode(t)}function N(){return ze(" ")}function at(){return ze("")}function pe(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Gt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function nt(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function u(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function Qc(t){return Array.from(t.childNodes)}function Je(t,e){e=""+e,t.data!==e&&(t.data=e)}function Pt(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}let Uo;function Xc(){if(Uo===void 0){Uo=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Uo=!0}}return Uo}function Ml(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const n=E("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const o=Xc();let s;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=pe(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{s=pe(n.contentWindow,"resize",e),e()}),p(t,n),()=>{(o||s&&n.contentWindow)&&s(),S(n)}}function B(t,e,i){t.classList.toggle(e,!!i)}function Mn(t,e){return new t(e)}let Eo;function To(t){Eo=t}function Lo(){if(!Eo)throw new Error("Function called outside component initialization");return Eo}function rn(t){Lo().$$.on_mount.push(t)}function nl(t){Lo().$$.on_destroy.push(t)}function Cl(t,e){return Lo().$$.context.set(t,e),e}function Bl(t){return Lo().$$.context.get(t)}function k1(){return Lo().$$.context}function ho(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const co=[],ke=[];let mo=[];const Pl=[],w1=Promise.resolve();let Sl=!1;function y1(){Sl||(Sl=!0,w1.then(C1))}function Vo(){return y1(),w1}function go(t){mo.push(t)}function Fe(t){Pl.push(t)}const ml=new Set;let so=0;function C1(){if(so!==0)return;const t=Eo;do{try{for(;so<co.length;){const e=co[so];so++,To(e),Jc(e.$$)}}catch(e){throw co.length=0,so=0,e}for(To(null),co.length=0,so=0;ke.length;)ke.pop()();for(let e=0;e<mo.length;e+=1){const i=mo[e];ml.has(i)||(ml.add(i),i())}mo.length=0}while(co.length);for(;Pl.length;)Pl.pop()();Sl=!1,ml.clear(),To(t)}function Jc(t){if(t.fragment!==null){t.update(),tt(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(go)}}function xc(t){const e=[],i=[];mo.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),mo=e}const Xo=new Set;let to;function fe(){to={r:0,c:[],p:to}}function de(){to.r||tt(to.c),to=to.p}function d(t,e){t&&t.i&&(Xo.delete(t),t.i(e))}function g(t,e,i,n){if(t&&t.o){if(Xo.has(t))return;Xo.add(t),to.c.push(()=>{Xo.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Dt(t){return t?.length!==void 0?t:Array.from(t)}function $c(t,e){const i={},n={},o={$$scope:1};let s=t.length;for(;s--;){const l=t[s],r=e[s];if(r){for(const a in l)a in r||(n[a]=1);for(const a in r)o[a]||(i[a]=r[a],o[a]=1);t[s]=r}else for(const a in l)o[a]=1}for(const l in n)l in i||(i[l]=void 0);return i}function ef(t){return typeof t=="object"&&t!==null?t:{}}function Ue(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function F(t){t&&t.c()}function z(t,e,i){const{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),go(()=>{const s=t.$$.on_mount.map(_1).filter(kn);t.$$.on_destroy?t.$$.on_destroy.push(...s):tt(s),t.$$.on_mount=[]}),o.forEach(go)}function O(t,e){const i=t.$$;i.fragment!==null&&(xc(i.after_update),tt(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function tf(t,e){t.$$.dirty[0]===-1&&(co.push(t),y1(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function be(t,e,i,n,o,s,l,r=[-1]){const a=Eo;To(t);const c=t.$$={fragment:null,ctx:[],props:s,update:Z,not_equal:o,bound:ss(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:ss(),dirty:r,skip_bound:!1,root:e.target||a.$$.root};l&&l(c.root);let f=!1;if(c.ctx=i?i(t,e.props||{},(m,h,..._)=>{const b=_.length?_[0]:h;return c.ctx&&o(c.ctx[m],c.ctx[m]=b)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](b),f&&tf(t,m)),h}):[],c.update(),f=!0,tt(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const m=Qc(e.target);c.fragment&&c.fragment.l(m),m.forEach(S)}else c.fragment&&c.fragment.c();e.intro&&d(t.$$.fragment),z(t,e.target,e.anchor),C1()}To(a)}class _e{$$=void 0;$$set=void 0;$destroy(){O(this,1),this.$destroy=Z}$on(e,i){if(!kn(i))return Z;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Kc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const nf="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(nf);var bo;(function(t){t.VK="vk",t.VK_VIDEO="vk_video"})(bo||(bo={}));const of={isMobile:void 0,defaultLanguage:Io.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:bo.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Qo.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,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{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,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},lf=t=>Tc(t,of),sf=t=>Cl("ui-config",t),an=()=>Bl("ui-config"),Tl="vk_player_debug_panel_opened",P1=300,rf=100,af="videoplayer",uf="videoplayer";var Ee;(function(t){t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Comma="Comma",t.Period="Period",t.Space="Space",t.KeyM="KeyM",t.KeyF="KeyF",t.KeyK="KeyK",t.KeyL="KeyL",t.KeyJ="KeyJ",t.KeyC="KeyC",t.KeyI="KeyI",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.Digit0="Digit0",t.Numpad1="Numpad1",t.Numpad2="Numpad2",t.Numpad3="Numpad3",t.Numpad4="Numpad4",t.Numpad5="Numpad5",t.Numpad6="Numpad6",t.Numpad7="Numpad7",t.Numpad8="Numpad8",t.Numpad9="Numpad9",t.Numpad0="Numpad0",t.ShiftLeft="ShiftLeft",t.ShiftRight="ShiftRight",t.Slash="Slash",t.Tab="Tab",t.Escape="Escape",t.Enter="Enter"})(Ee||(Ee={}));const Mo={[Ee.KeyF]:"f",[Ee.KeyK]:"k",[Ee.KeyC]:"c",[Ee.KeyM]:"m"},cf=new Set([Ee.ArrowLeft,Ee.ArrowRight,Ee.KeyL,Ee.KeyJ]),ff=new Set([Ee.Tab,Ee.Space,Ee.ArrowLeft,Ee.ArrowRight,Ee.ArrowUp,Ee.ArrowDown]),df=new Set([Ee.ShiftRight,Ee.ShiftLeft]);var st;(function(t){t.PLAY_BUTTON="PLAY_BUTTON",t.REPLAY_BUTTON="REPLAY_BUTTON",t.NEXT_BUTTON="NEXT_BUTTON",t.PREV_BUTTON="PREV_BUTTON",t.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",t.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",t.SETTINGS_BUTTON="SETTINGS_BUTTON",t.LIVE_BUTTON="LIVE_BUTTON",t.GRAPH_BUTTON="GRAPH_BUTTON",t.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",t.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",t.TIMELINE="TIMELINE",t.VOLUME_BAR="VOLUME_BAR",t.MUTE_BUTTON="MUTE_BUTTON",t.SUBTITLES_BUTTON="SUBTITLES_BUTTON",t.CHROMECAST_BUTTON="CHROMECAST_BUTTON",t.VK_BUTTON="VK_BUTTON",t.EPISODE_BUTTON="EPISODE_BUTTON",t.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",t.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(st||(st={}));const as=40,S1=260,mf=60,qo=8,T1=[st.TIMELINE],Jo=[...T1,st.GRAPH_BUTTON],us=[...T1,st.PLAY_BUTTON],E1=[...Jo,st.PLAY_BUTTON];var fo;(function(t){t[t.XS=320]="XS",t[t.S=509]="S",t[t.M=599]="M",t[t.L=699]="L"})(fo||(fo={}));var vt;(function(t){t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl"})(vt||(vt={}));const _o={[vt.XS]:0,[vt.S]:1,[vt.M]:2,[vt.L]:3,[vt.XL]:4},ro=[];function Ln(t,e){return{subscribe:Ve(t,e).subscribe}}function Ve(t,e=Z){let i;const n=new Set;function o(r){if(ge(t,r)&&(t=r,i)){const a=!ro.length;for(const c of n)c[1](),ro.push(c,t);if(a){for(let c=0;c<ro.length;c+=2)ro[c][0](ro[c+1]);ro.length=0}}}function s(r){o(r(t))}function l(r,a=Z){const c=[r,a];return n.add(c),n.size===1&&(i=e(o,s)||Z),r(t),()=>{n.delete(c),n.size===0&&i&&(i(),i=null)}}return{set:o,update:s,subscribe:l}}function Ni(t,e,i){const n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return Ln(i,(l,r)=>{let a=!1;const c=[];let f=0,m=Z;const h=()=>{if(f)return;m();const b=e(n?c[0]:c,l,r);s?l(b):m=kn(b)?b:Z},_=o.map((b,k)=>Kt(b,v=>{c[k]=v,f&=~(1<<k),a&&h()},()=>{f|=1<<k}));return a=!0,h(),function(){tt(_),m(),a=!1}})}const pf="prod",Rl="1.1.36-dev.55db5eff.0",A1=(t,e,i)=>{const n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()},I1=Symbol("storeContext"),L1=Symbol("microStoresContext"),hf=(t,e)=>{Cl(I1,t),Cl(L1,e)},dt=()=>{const t=Bl(I1);return ut(t,"Store context is empty!"),t},Bo=()=>{const t=Bl(L1);return ut(t,"MicroStores context is empty!"),t},ft=(t,e)=>V1(t,t.getValue(),e),V1=(t,e,i)=>Ln(e,n=>{const o=t.subscribe(s=>{n(s),i?.(s)});return()=>o.unsubscribe()}),gf=(t,e,i)=>{const n=t.info,{width:o,height:s}=xe(i.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,r=n.rttEstimation$.getValue()?.toFixed(0)??0,a=n.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Rl} (core: ${Pc}, stat: ${Zc}, shared: ${Ec})`,f=xe(i.state.errorLog$),m=f.length?`
|
|
6
|
+
import{VERSION as Pc,ChromecastState as Vn,PlaybackState as Nt,VideoQuality as uo,Player as Sc,VideoFormat as Po}from"@vkontakte/videoplayer-core/esnext.esm.js";import{VideoFormat as N5,VideoQuality as D5}from"@vkontakte/videoplayer-core/esnext.esm.js";import{InterfaceLanguage as Io,VideoQuality as Qo,fillWithDefault as Tc,VERSION as Ec,assertNonNullable as ut,safeStorage as wn,isNullable as xo,Subscription as Jn,isNonNullable as vn,isMacLike as ls,debounceFn as Ac,ValueSubject as Il,getCurrentBrowser as Ll,CurrentClientBrowser as h1,noop as je,checkNever as Ic,timeCodeToString as Lc,Subject as cn,addScript as Vc,Logger as g1,merge as Mc,Observable as Bc,map as Rc,loadVKLangPack as Nc,isIOS as Vl,getHighestQuality as Dc,throttleFn as tl,CurrentClientDevice as zc,getIOSVersion as Oc,detectEmbed as Hc,observeElementSize as Fc,isMobile as Uc,cloneDeepWith as qc}from"@vkontakte/videoplayer-shared/esnext.esm.js";import{InterfaceLanguage as O5,VKNumericLanguage as H5,loadVKLangPack as F5}from"@vkontakte/videoplayer-shared/esnext.esm.js";import{VERSION as Zc,SeekAction as It,OneStat as Wc,InteractiveInterfaceClick as So}from"@vkontakte/videoplayer-statistics/esnext.esm.js";import"@vkontakte/videoplayer-interactive/esnext.esm.js";function Z(){}function b1(t,e){for(const i in e)t[i]=e[i];return t}function _1(t){return t()}function ss(){return Object.create(null)}function tt(t){t.forEach(_1)}function kn(t){return typeof t=="function"}function ge(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Fo;function rs(t,e){return Fo||(Fo=document.createElement("a")),Fo.href=e,t===Fo.href}function Kc(t){return Object.keys(t).length===0}function Kt(t,...e){if(t==null){for(const n of e)n(void 0);return Z}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function xe(t){let e;return Kt(t,i=>e=i)(),e}function D(t,e,i){t.$$.on_destroy.push(Kt(e,i))}function Hn(t,e,i,n){if(t){const o=v1(t,e,i,n);return t[0](o)}}function v1(t,e,i,n){return t[1]&&n?b1(i.ctx.slice(),t[1](n(e))):i.ctx}function Fn(t,e,i,n){if(t[2]&&n){const o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){const s=[],l=Math.max(e.dirty.length,o.length);for(let r=0;r<l;r+=1)s[r]=e.dirty[r]|o[r];return s}return e.dirty|o}return e.dirty}function Un(t,e,i,n,o,s){if(o){const l=v1(e,i,n,s);t.p(l,o)}}function qn(t){if(t.ctx.length>32){const e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function jc(t){return t??""}const il=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function p(t,e){t.appendChild(e)}function Ze(t,e,i){const n=Gc(t);if(!n.getElementById(e)){const o=E("style");o.id=e,o.textContent=i,Yc(n,o)}}function Gc(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Yc(t,e){return p(t.head||t,e),e.sheet}function T(t,e,i){t.insertBefore(e,i||null)}function S(t){t.parentNode&&t.parentNode.removeChild(t)}function yn(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function E(t){return document.createElement(t)}function R(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ze(t){return document.createTextNode(t)}function N(){return ze(" ")}function at(){return ze("")}function pe(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Gt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function nt(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function u(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function Qc(t){return Array.from(t.childNodes)}function Je(t,e){e=""+e,t.data!==e&&(t.data=e)}function Pt(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}let Uo;function Xc(){if(Uo===void 0){Uo=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Uo=!0}}return Uo}function Ml(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const n=E("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const o=Xc();let s;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=pe(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{s=pe(n.contentWindow,"resize",e),e()}),p(t,n),()=>{(o||s&&n.contentWindow)&&s(),S(n)}}function B(t,e,i){t.classList.toggle(e,!!i)}function Mn(t,e){return new t(e)}let Eo;function To(t){Eo=t}function Lo(){if(!Eo)throw new Error("Function called outside component initialization");return Eo}function rn(t){Lo().$$.on_mount.push(t)}function nl(t){Lo().$$.on_destroy.push(t)}function Cl(t,e){return Lo().$$.context.set(t,e),e}function Bl(t){return Lo().$$.context.get(t)}function k1(){return Lo().$$.context}function ho(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const co=[],ke=[];let mo=[];const Pl=[],w1=Promise.resolve();let Sl=!1;function y1(){Sl||(Sl=!0,w1.then(C1))}function Vo(){return y1(),w1}function go(t){mo.push(t)}function Fe(t){Pl.push(t)}const ml=new Set;let so=0;function C1(){if(so!==0)return;const t=Eo;do{try{for(;so<co.length;){const e=co[so];so++,To(e),Jc(e.$$)}}catch(e){throw co.length=0,so=0,e}for(To(null),co.length=0,so=0;ke.length;)ke.pop()();for(let e=0;e<mo.length;e+=1){const i=mo[e];ml.has(i)||(ml.add(i),i())}mo.length=0}while(co.length);for(;Pl.length;)Pl.pop()();Sl=!1,ml.clear(),To(t)}function Jc(t){if(t.fragment!==null){t.update(),tt(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(go)}}function xc(t){const e=[],i=[];mo.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),mo=e}const Xo=new Set;let to;function fe(){to={r:0,c:[],p:to}}function de(){to.r||tt(to.c),to=to.p}function d(t,e){t&&t.i&&(Xo.delete(t),t.i(e))}function g(t,e,i,n){if(t&&t.o){if(Xo.has(t))return;Xo.add(t),to.c.push(()=>{Xo.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Dt(t){return t?.length!==void 0?t:Array.from(t)}function $c(t,e){const i={},n={},o={$$scope:1};let s=t.length;for(;s--;){const l=t[s],r=e[s];if(r){for(const a in l)a in r||(n[a]=1);for(const a in r)o[a]||(i[a]=r[a],o[a]=1);t[s]=r}else for(const a in l)o[a]=1}for(const l in n)l in i||(i[l]=void 0);return i}function ef(t){return typeof t=="object"&&t!==null?t:{}}function Ue(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function F(t){t&&t.c()}function z(t,e,i){const{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),go(()=>{const s=t.$$.on_mount.map(_1).filter(kn);t.$$.on_destroy?t.$$.on_destroy.push(...s):tt(s),t.$$.on_mount=[]}),o.forEach(go)}function O(t,e){const i=t.$$;i.fragment!==null&&(xc(i.after_update),tt(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function tf(t,e){t.$$.dirty[0]===-1&&(co.push(t),y1(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function be(t,e,i,n,o,s,l,r=[-1]){const a=Eo;To(t);const c=t.$$={fragment:null,ctx:[],props:s,update:Z,not_equal:o,bound:ss(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:ss(),dirty:r,skip_bound:!1,root:e.target||a.$$.root};l&&l(c.root);let f=!1;if(c.ctx=i?i(t,e.props||{},(m,h,..._)=>{const b=_.length?_[0]:h;return c.ctx&&o(c.ctx[m],c.ctx[m]=b)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](b),f&&tf(t,m)),h}):[],c.update(),f=!0,tt(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const m=Qc(e.target);c.fragment&&c.fragment.l(m),m.forEach(S)}else c.fragment&&c.fragment.c();e.intro&&d(t.$$.fragment),z(t,e.target,e.anchor),C1()}To(a)}class _e{$$=void 0;$$set=void 0;$destroy(){O(this,1),this.$destroy=Z}$on(e,i){if(!kn(i))return Z;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Kc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const nf="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(nf);var bo;(function(t){t.VK="vk",t.VK_VIDEO="vk_video"})(bo||(bo={}));const of={isMobile:void 0,defaultLanguage:Io.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:bo.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Qo.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,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{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,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},lf=t=>Tc(t,of),sf=t=>Cl("ui-config",t),an=()=>Bl("ui-config"),Tl="vk_player_debug_panel_opened",P1=300,rf=100,af="videoplayer",uf="videoplayer";var Ee;(function(t){t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Comma="Comma",t.Period="Period",t.Space="Space",t.KeyM="KeyM",t.KeyF="KeyF",t.KeyK="KeyK",t.KeyL="KeyL",t.KeyJ="KeyJ",t.KeyC="KeyC",t.KeyI="KeyI",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.Digit0="Digit0",t.Numpad1="Numpad1",t.Numpad2="Numpad2",t.Numpad3="Numpad3",t.Numpad4="Numpad4",t.Numpad5="Numpad5",t.Numpad6="Numpad6",t.Numpad7="Numpad7",t.Numpad8="Numpad8",t.Numpad9="Numpad9",t.Numpad0="Numpad0",t.ShiftLeft="ShiftLeft",t.ShiftRight="ShiftRight",t.Slash="Slash",t.Tab="Tab",t.Escape="Escape",t.Enter="Enter"})(Ee||(Ee={}));const Mo={[Ee.KeyF]:"f",[Ee.KeyK]:"k",[Ee.KeyC]:"c",[Ee.KeyM]:"m"},cf=new Set([Ee.ArrowLeft,Ee.ArrowRight,Ee.KeyL,Ee.KeyJ]),ff=new Set([Ee.Tab,Ee.Space,Ee.ArrowLeft,Ee.ArrowRight,Ee.ArrowUp,Ee.ArrowDown]),df=new Set([Ee.ShiftRight,Ee.ShiftLeft]);var st;(function(t){t.PLAY_BUTTON="PLAY_BUTTON",t.REPLAY_BUTTON="REPLAY_BUTTON",t.NEXT_BUTTON="NEXT_BUTTON",t.PREV_BUTTON="PREV_BUTTON",t.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",t.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",t.SETTINGS_BUTTON="SETTINGS_BUTTON",t.LIVE_BUTTON="LIVE_BUTTON",t.GRAPH_BUTTON="GRAPH_BUTTON",t.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",t.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",t.TIMELINE="TIMELINE",t.VOLUME_BAR="VOLUME_BAR",t.MUTE_BUTTON="MUTE_BUTTON",t.SUBTITLES_BUTTON="SUBTITLES_BUTTON",t.CHROMECAST_BUTTON="CHROMECAST_BUTTON",t.VK_BUTTON="VK_BUTTON",t.EPISODE_BUTTON="EPISODE_BUTTON",t.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",t.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(st||(st={}));const as=40,S1=260,mf=60,qo=8,T1=[st.TIMELINE],Jo=[...T1,st.GRAPH_BUTTON],us=[...T1,st.PLAY_BUTTON],E1=[...Jo,st.PLAY_BUTTON];var fo;(function(t){t[t.XS=320]="XS",t[t.S=509]="S",t[t.M=599]="M",t[t.L=699]="L"})(fo||(fo={}));var vt;(function(t){t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl"})(vt||(vt={}));const _o={[vt.XS]:0,[vt.S]:1,[vt.M]:2,[vt.L]:3,[vt.XL]:4},ro=[];function Ln(t,e){return{subscribe:Ve(t,e).subscribe}}function Ve(t,e=Z){let i;const n=new Set;function o(r){if(ge(t,r)&&(t=r,i)){const a=!ro.length;for(const c of n)c[1](),ro.push(c,t);if(a){for(let c=0;c<ro.length;c+=2)ro[c][0](ro[c+1]);ro.length=0}}}function s(r){o(r(t))}function l(r,a=Z){const c=[r,a];return n.add(c),n.size===1&&(i=e(o,s)||Z),r(t),()=>{n.delete(c),n.size===0&&i&&(i(),i=null)}}return{set:o,update:s,subscribe:l}}function Ni(t,e,i){const n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return Ln(i,(l,r)=>{let a=!1;const c=[];let f=0,m=Z;const h=()=>{if(f)return;m();const b=e(n?c[0]:c,l,r);s?l(b):m=kn(b)?b:Z},_=o.map((b,k)=>Kt(b,v=>{c[k]=v,f&=~(1<<k),a&&h()},()=>{f|=1<<k}));return a=!0,h(),function(){tt(_),m(),a=!1}})}const pf="prod",Rl="1.1.36-dev.911333bb.0",A1=(t,e,i)=>{const n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()},I1=Symbol("storeContext"),L1=Symbol("microStoresContext"),hf=(t,e)=>{Cl(I1,t),Cl(L1,e)},dt=()=>{const t=Bl(I1);return ut(t,"Store context is empty!"),t},Bo=()=>{const t=Bl(L1);return ut(t,"MicroStores context is empty!"),t},ft=(t,e)=>V1(t,t.getValue(),e),V1=(t,e,i)=>Ln(e,n=>{const o=t.subscribe(s=>{n(s),i?.(s)});return()=>o.unsubscribe()}),gf=(t,e,i)=>{const n=t.info,{width:o,height:s}=xe(i.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,r=n.rttEstimation$.getValue()?.toFixed(0)??0,a=n.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Rl} (core: ${Pc}, stat: ${Zc}, shared: ${Ec})`,f=xe(i.state.errorLog$),m=f.length?`
|
|
7
7
|
`+f.map((b,k)=>{const v=`${k}) Type: ${b.id}
|
|
8
8
|
`,P=`Message: ${b.message} (${b.thrown})
|
|
9
9
|
`,y=`Trace: ${b.thrown?.stack}
|
package/evergreen.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.36-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.36-dev.911333bb.0
|
|
3
|
+
* Mon, 03 Jun 2024 06:24:12 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-36/doc/
|
|
5
5
|
*/
|
|
6
|
-
import{VERSION as vc,ChromecastState as Vn,PlaybackState as Nt,VideoQuality as uo,Player as kc,VideoFormat as Po}from"@vkontakte/videoplayer-core/evergreen.esm.js";import{VideoFormat as T5,VideoQuality as E5}from"@vkontakte/videoplayer-core/evergreen.esm.js";import{InterfaceLanguage as Ao,VideoQuality as Qo,fillWithDefault as wc,VERSION as yc,assertNonNullable as ut,safeStorage as wn,isNullable as xo,Subscription as Jn,isNonNullable as vn,isMacLike as os,debounceFn as Cc,ValueSubject as Al,getCurrentBrowser as Ll,CurrentClientBrowser as m1,noop as je,checkNever as Pc,timeCodeToString as Sc,Subject as cn,addScript as Tc,Logger as p1,merge as Ec,Observable as Ic,map as Ac,loadVKLangPack as Lc,isIOS as Vl,getHighestQuality as Vc,throttleFn as tl,CurrentClientDevice as Mc,getIOSVersion as Bc,detectEmbed as Rc,observeElementSize as Nc,isMobile as Dc,cloneDeepWith as zc}from"@vkontakte/videoplayer-shared/evergreen.esm.js";import{InterfaceLanguage as A5,VKNumericLanguage as L5,loadVKLangPack as V5}from"@vkontakte/videoplayer-shared/evergreen.esm.js";import{VERSION as Oc,SeekAction as At,OneStat as Hc,InteractiveInterfaceClick as So}from"@vkontakte/videoplayer-statistics/evergreen.esm.js";import"@vkontakte/videoplayer-interactive/evergreen.esm.js";function Z(){}function h1(t,e){for(const i in e)t[i]=e[i];return t}function g1(t){return t()}function ls(){return Object.create(null)}function tt(t){t.forEach(g1)}function kn(t){return typeof t=="function"}function ge(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Fo;function ss(t,e){return Fo||(Fo=document.createElement("a")),Fo.href=e,t===Fo.href}function Fc(t){return Object.keys(t).length===0}function Kt(t,...e){if(t==null){for(const n of e)n(void 0);return Z}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function xe(t){let e;return Kt(t,i=>e=i)(),e}function D(t,e,i){t.$$.on_destroy.push(Kt(e,i))}function Hn(t,e,i,n){if(t){const o=b1(t,e,i,n);return t[0](o)}}function b1(t,e,i,n){return t[1]&&n?h1(i.ctx.slice(),t[1](n(e))):i.ctx}function Fn(t,e,i,n){if(t[2]&&n){const o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){const s=[],l=Math.max(e.dirty.length,o.length);for(let r=0;r<l;r+=1)s[r]=e.dirty[r]|o[r];return s}return e.dirty|o}return e.dirty}function Un(t,e,i,n,o,s){if(o){const l=b1(e,i,n,s);t.p(l,o)}}function qn(t){if(t.ctx.length>32){const e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function Uc(t){return t??""}const il=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function m(t,e){t.appendChild(e)}function Ze(t,e,i){const n=qc(t);if(!n.getElementById(e)){const o=E("style");o.id=e,o.textContent=i,Zc(n,o)}}function qc(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Zc(t,e){return m(t.head||t,e),e.sheet}function T(t,e,i){t.insertBefore(e,i||null)}function S(t){t.parentNode&&t.parentNode.removeChild(t)}function yn(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function E(t){return document.createElement(t)}function R(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ze(t){return document.createTextNode(t)}function N(){return ze(" ")}function at(){return ze("")}function pe(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Gt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function nt(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function u(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function Wc(t){return Array.from(t.childNodes)}function Je(t,e){e=""+e,t.data!==e&&(t.data=e)}function Pt(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}let Uo;function Kc(){if(Uo===void 0){Uo=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Uo=!0}}return Uo}function Ml(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const n=E("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const o=Kc();let s;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=pe(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{s=pe(n.contentWindow,"resize",e),e()}),m(t,n),()=>{(o||s&&n.contentWindow)&&s(),S(n)}}function B(t,e,i){t.classList.toggle(e,!!i)}function Mn(t,e){return new t(e)}let Eo;function To(t){Eo=t}function Lo(){if(!Eo)throw new Error("Function called outside component initialization");return Eo}function rn(t){Lo().$$.on_mount.push(t)}function nl(t){Lo().$$.on_destroy.push(t)}function Cl(t,e){return Lo().$$.context.set(t,e),e}function Bl(t){return Lo().$$.context.get(t)}function _1(){return Lo().$$.context}function ho(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const co=[],ke=[];let mo=[];const Pl=[],v1=Promise.resolve();let Sl=!1;function k1(){Sl||(Sl=!0,v1.then(w1))}function Vo(){return k1(),v1}function go(t){mo.push(t)}function Fe(t){Pl.push(t)}const ml=new Set;let so=0;function w1(){if(so!==0)return;const t=Eo;do{try{for(;so<co.length;){const e=co[so];so++,To(e),jc(e.$$)}}catch(e){throw co.length=0,so=0,e}for(To(null),co.length=0,so=0;ke.length;)ke.pop()();for(let e=0;e<mo.length;e+=1){const i=mo[e];ml.has(i)||(ml.add(i),i())}mo.length=0}while(co.length);for(;Pl.length;)Pl.pop()();Sl=!1,ml.clear(),To(t)}function jc(t){if(t.fragment!==null){t.update(),tt(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(go)}}function Gc(t){const e=[],i=[];mo.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),mo=e}const Xo=new Set;let to;function fe(){to={r:0,c:[],p:to}}function de(){to.r||tt(to.c),to=to.p}function d(t,e){t&&t.i&&(Xo.delete(t),t.i(e))}function g(t,e,i,n){if(t&&t.o){if(Xo.has(t))return;Xo.add(t),to.c.push(()=>{Xo.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Dt(t){return t?.length!==void 0?t:Array.from(t)}function Yc(t,e){const i={},n={},o={$$scope:1};let s=t.length;for(;s--;){const l=t[s],r=e[s];if(r){for(const a in l)a in r||(n[a]=1);for(const a in r)o[a]||(i[a]=r[a],o[a]=1);t[s]=r}else for(const a in l)o[a]=1}for(const l in n)l in i||(i[l]=void 0);return i}function Qc(t){return typeof t=="object"&&t!==null?t:{}}function Ue(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function F(t){t&&t.c()}function z(t,e,i){const{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),go(()=>{const s=t.$$.on_mount.map(g1).filter(kn);t.$$.on_destroy?t.$$.on_destroy.push(...s):tt(s),t.$$.on_mount=[]}),o.forEach(go)}function O(t,e){const i=t.$$;i.fragment!==null&&(Gc(i.after_update),tt(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function Xc(t,e){t.$$.dirty[0]===-1&&(co.push(t),k1(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function be(t,e,i,n,o,s,l,r=[-1]){const a=Eo;To(t);const c=t.$$={fragment:null,ctx:[],props:s,update:Z,not_equal:o,bound:ls(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:ls(),dirty:r,skip_bound:!1,root:e.target||a.$$.root};l&&l(c.root);let f=!1;if(c.ctx=i?i(t,e.props||{},(p,h,..._)=>{const b=_.length?_[0]:h;return c.ctx&&o(c.ctx[p],c.ctx[p]=b)&&(!c.skip_bound&&c.bound[p]&&c.bound[p](b),f&&Xc(t,p)),h}):[],c.update(),f=!0,tt(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const p=Wc(e.target);c.fragment&&c.fragment.l(p),p.forEach(S)}else c.fragment&&c.fragment.c();e.intro&&d(t.$$.fragment),z(t,e.target,e.anchor),w1()}To(a)}class _e{$$=void 0;$$set=void 0;$destroy(){O(this,1),this.$destroy=Z}$on(e,i){if(!kn(i))return Z;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Fc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Jc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Jc);var bo;(function(t){t.VK="vk",t.VK_VIDEO="vk_video"})(bo||(bo={}));const xc={isMobile:void 0,defaultLanguage:Ao.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:bo.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Qo.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,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{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,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},$c=t=>wc(t,xc),ef=t=>Cl("ui-config",t),an=()=>Bl("ui-config"),Tl="vk_player_debug_panel_opened",y1=300,tf=100,nf="videoplayer",of="videoplayer";var Ee;(function(t){t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Comma="Comma",t.Period="Period",t.Space="Space",t.KeyM="KeyM",t.KeyF="KeyF",t.KeyK="KeyK",t.KeyL="KeyL",t.KeyJ="KeyJ",t.KeyC="KeyC",t.KeyI="KeyI",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.Digit0="Digit0",t.Numpad1="Numpad1",t.Numpad2="Numpad2",t.Numpad3="Numpad3",t.Numpad4="Numpad4",t.Numpad5="Numpad5",t.Numpad6="Numpad6",t.Numpad7="Numpad7",t.Numpad8="Numpad8",t.Numpad9="Numpad9",t.Numpad0="Numpad0",t.ShiftLeft="ShiftLeft",t.ShiftRight="ShiftRight",t.Slash="Slash",t.Tab="Tab",t.Escape="Escape",t.Enter="Enter"})(Ee||(Ee={}));const Mo={[Ee.KeyF]:"f",[Ee.KeyK]:"k",[Ee.KeyC]:"c",[Ee.KeyM]:"m"},lf=new Set([Ee.ArrowLeft,Ee.ArrowRight,Ee.KeyL,Ee.KeyJ]),sf=new Set([Ee.Tab,Ee.Space,Ee.ArrowLeft,Ee.ArrowRight,Ee.ArrowUp,Ee.ArrowDown]),rf=new Set([Ee.ShiftRight,Ee.ShiftLeft]);var st;(function(t){t.PLAY_BUTTON="PLAY_BUTTON",t.REPLAY_BUTTON="REPLAY_BUTTON",t.NEXT_BUTTON="NEXT_BUTTON",t.PREV_BUTTON="PREV_BUTTON",t.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",t.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",t.SETTINGS_BUTTON="SETTINGS_BUTTON",t.LIVE_BUTTON="LIVE_BUTTON",t.GRAPH_BUTTON="GRAPH_BUTTON",t.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",t.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",t.TIMELINE="TIMELINE",t.VOLUME_BAR="VOLUME_BAR",t.MUTE_BUTTON="MUTE_BUTTON",t.SUBTITLES_BUTTON="SUBTITLES_BUTTON",t.CHROMECAST_BUTTON="CHROMECAST_BUTTON",t.VK_BUTTON="VK_BUTTON",t.EPISODE_BUTTON="EPISODE_BUTTON",t.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",t.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(st||(st={}));const rs=40,C1=260,af=60,qo=8,P1=[st.TIMELINE],Jo=[...P1,st.GRAPH_BUTTON],as=[...P1,st.PLAY_BUTTON],S1=[...Jo,st.PLAY_BUTTON];var fo;(function(t){t[t.XS=320]="XS",t[t.S=509]="S",t[t.M=599]="M",t[t.L=699]="L"})(fo||(fo={}));var vt;(function(t){t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl"})(vt||(vt={}));const _o={[vt.XS]:0,[vt.S]:1,[vt.M]:2,[vt.L]:3,[vt.XL]:4},ro=[];function Ln(t,e){return{subscribe:Ve(t,e).subscribe}}function Ve(t,e=Z){let i;const n=new Set;function o(r){if(ge(t,r)&&(t=r,i)){const a=!ro.length;for(const c of n)c[1](),ro.push(c,t);if(a){for(let c=0;c<ro.length;c+=2)ro[c][0](ro[c+1]);ro.length=0}}}function s(r){o(r(t))}function l(r,a=Z){const c=[r,a];return n.add(c),n.size===1&&(i=e(o,s)||Z),r(t),()=>{n.delete(c),n.size===0&&i&&(i(),i=null)}}return{set:o,update:s,subscribe:l}}function Ni(t,e,i){const n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return Ln(i,(l,r)=>{let a=!1;const c=[];let f=0,p=Z;const h=()=>{if(f)return;p();const b=e(n?c[0]:c,l,r);s?l(b):p=kn(b)?b:Z},_=o.map((b,k)=>Kt(b,v=>{c[k]=v,f&=~(1<<k),a&&h()},()=>{f|=1<<k}));return a=!0,h(),function(){tt(_),p(),a=!1}})}const uf="prod",Rl="1.1.36-dev.55db5eff.0",T1=(t,e,i)=>{const n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()},E1=Symbol("storeContext"),I1=Symbol("microStoresContext"),cf=(t,e)=>{Cl(E1,t),Cl(I1,e)},dt=()=>{const t=Bl(E1);return ut(t,"Store context is empty!"),t},Bo=()=>{const t=Bl(I1);return ut(t,"MicroStores context is empty!"),t},ft=(t,e)=>A1(t,t.getValue(),e),A1=(t,e,i)=>Ln(e,n=>{const o=t.subscribe(s=>{n(s),i?.(s)});return()=>o.unsubscribe()}),ff=(t,e,i)=>{const n=t.info,{width:o,height:s}=xe(i.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,r=n.rttEstimation$.getValue()?.toFixed(0)??0,a=n.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Rl} (core: ${vc}, stat: ${Oc}, shared: ${yc})`,f=xe(i.state.errorLog$),p=f.length?`
|
|
6
|
+
import{VERSION as vc,ChromecastState as Vn,PlaybackState as Nt,VideoQuality as uo,Player as kc,VideoFormat as Po}from"@vkontakte/videoplayer-core/evergreen.esm.js";import{VideoFormat as T5,VideoQuality as E5}from"@vkontakte/videoplayer-core/evergreen.esm.js";import{InterfaceLanguage as Ao,VideoQuality as Qo,fillWithDefault as wc,VERSION as yc,assertNonNullable as ut,safeStorage as wn,isNullable as xo,Subscription as Jn,isNonNullable as vn,isMacLike as os,debounceFn as Cc,ValueSubject as Al,getCurrentBrowser as Ll,CurrentClientBrowser as m1,noop as je,checkNever as Pc,timeCodeToString as Sc,Subject as cn,addScript as Tc,Logger as p1,merge as Ec,Observable as Ic,map as Ac,loadVKLangPack as Lc,isIOS as Vl,getHighestQuality as Vc,throttleFn as tl,CurrentClientDevice as Mc,getIOSVersion as Bc,detectEmbed as Rc,observeElementSize as Nc,isMobile as Dc,cloneDeepWith as zc}from"@vkontakte/videoplayer-shared/evergreen.esm.js";import{InterfaceLanguage as A5,VKNumericLanguage as L5,loadVKLangPack as V5}from"@vkontakte/videoplayer-shared/evergreen.esm.js";import{VERSION as Oc,SeekAction as At,OneStat as Hc,InteractiveInterfaceClick as So}from"@vkontakte/videoplayer-statistics/evergreen.esm.js";import"@vkontakte/videoplayer-interactive/evergreen.esm.js";function Z(){}function h1(t,e){for(const i in e)t[i]=e[i];return t}function g1(t){return t()}function ls(){return Object.create(null)}function tt(t){t.forEach(g1)}function kn(t){return typeof t=="function"}function ge(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Fo;function ss(t,e){return Fo||(Fo=document.createElement("a")),Fo.href=e,t===Fo.href}function Fc(t){return Object.keys(t).length===0}function Kt(t,...e){if(t==null){for(const n of e)n(void 0);return Z}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function xe(t){let e;return Kt(t,i=>e=i)(),e}function D(t,e,i){t.$$.on_destroy.push(Kt(e,i))}function Hn(t,e,i,n){if(t){const o=b1(t,e,i,n);return t[0](o)}}function b1(t,e,i,n){return t[1]&&n?h1(i.ctx.slice(),t[1](n(e))):i.ctx}function Fn(t,e,i,n){if(t[2]&&n){const o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){const s=[],l=Math.max(e.dirty.length,o.length);for(let r=0;r<l;r+=1)s[r]=e.dirty[r]|o[r];return s}return e.dirty|o}return e.dirty}function Un(t,e,i,n,o,s){if(o){const l=b1(e,i,n,s);t.p(l,o)}}function qn(t){if(t.ctx.length>32){const e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function Uc(t){return t??""}const il=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function m(t,e){t.appendChild(e)}function Ze(t,e,i){const n=qc(t);if(!n.getElementById(e)){const o=E("style");o.id=e,o.textContent=i,Zc(n,o)}}function qc(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Zc(t,e){return m(t.head||t,e),e.sheet}function T(t,e,i){t.insertBefore(e,i||null)}function S(t){t.parentNode&&t.parentNode.removeChild(t)}function yn(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function E(t){return document.createElement(t)}function R(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ze(t){return document.createTextNode(t)}function N(){return ze(" ")}function at(){return ze("")}function pe(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Gt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function nt(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function u(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function Wc(t){return Array.from(t.childNodes)}function Je(t,e){e=""+e,t.data!==e&&(t.data=e)}function Pt(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}let Uo;function Kc(){if(Uo===void 0){Uo=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Uo=!0}}return Uo}function Ml(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const n=E("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const o=Kc();let s;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=pe(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{s=pe(n.contentWindow,"resize",e),e()}),m(t,n),()=>{(o||s&&n.contentWindow)&&s(),S(n)}}function B(t,e,i){t.classList.toggle(e,!!i)}function Mn(t,e){return new t(e)}let Eo;function To(t){Eo=t}function Lo(){if(!Eo)throw new Error("Function called outside component initialization");return Eo}function rn(t){Lo().$$.on_mount.push(t)}function nl(t){Lo().$$.on_destroy.push(t)}function Cl(t,e){return Lo().$$.context.set(t,e),e}function Bl(t){return Lo().$$.context.get(t)}function _1(){return Lo().$$.context}function ho(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const co=[],ke=[];let mo=[];const Pl=[],v1=Promise.resolve();let Sl=!1;function k1(){Sl||(Sl=!0,v1.then(w1))}function Vo(){return k1(),v1}function go(t){mo.push(t)}function Fe(t){Pl.push(t)}const ml=new Set;let so=0;function w1(){if(so!==0)return;const t=Eo;do{try{for(;so<co.length;){const e=co[so];so++,To(e),jc(e.$$)}}catch(e){throw co.length=0,so=0,e}for(To(null),co.length=0,so=0;ke.length;)ke.pop()();for(let e=0;e<mo.length;e+=1){const i=mo[e];ml.has(i)||(ml.add(i),i())}mo.length=0}while(co.length);for(;Pl.length;)Pl.pop()();Sl=!1,ml.clear(),To(t)}function jc(t){if(t.fragment!==null){t.update(),tt(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(go)}}function Gc(t){const e=[],i=[];mo.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),mo=e}const Xo=new Set;let to;function fe(){to={r:0,c:[],p:to}}function de(){to.r||tt(to.c),to=to.p}function d(t,e){t&&t.i&&(Xo.delete(t),t.i(e))}function g(t,e,i,n){if(t&&t.o){if(Xo.has(t))return;Xo.add(t),to.c.push(()=>{Xo.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Dt(t){return t?.length!==void 0?t:Array.from(t)}function Yc(t,e){const i={},n={},o={$$scope:1};let s=t.length;for(;s--;){const l=t[s],r=e[s];if(r){for(const a in l)a in r||(n[a]=1);for(const a in r)o[a]||(i[a]=r[a],o[a]=1);t[s]=r}else for(const a in l)o[a]=1}for(const l in n)l in i||(i[l]=void 0);return i}function Qc(t){return typeof t=="object"&&t!==null?t:{}}function Ue(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function F(t){t&&t.c()}function z(t,e,i){const{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),go(()=>{const s=t.$$.on_mount.map(g1).filter(kn);t.$$.on_destroy?t.$$.on_destroy.push(...s):tt(s),t.$$.on_mount=[]}),o.forEach(go)}function O(t,e){const i=t.$$;i.fragment!==null&&(Gc(i.after_update),tt(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function Xc(t,e){t.$$.dirty[0]===-1&&(co.push(t),k1(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function be(t,e,i,n,o,s,l,r=[-1]){const a=Eo;To(t);const c=t.$$={fragment:null,ctx:[],props:s,update:Z,not_equal:o,bound:ls(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:ls(),dirty:r,skip_bound:!1,root:e.target||a.$$.root};l&&l(c.root);let f=!1;if(c.ctx=i?i(t,e.props||{},(p,h,..._)=>{const b=_.length?_[0]:h;return c.ctx&&o(c.ctx[p],c.ctx[p]=b)&&(!c.skip_bound&&c.bound[p]&&c.bound[p](b),f&&Xc(t,p)),h}):[],c.update(),f=!0,tt(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const p=Wc(e.target);c.fragment&&c.fragment.l(p),p.forEach(S)}else c.fragment&&c.fragment.c();e.intro&&d(t.$$.fragment),z(t,e.target,e.anchor),w1()}To(a)}class _e{$$=void 0;$$set=void 0;$destroy(){O(this,1),this.$destroy=Z}$on(e,i){if(!kn(i))return Z;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Fc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Jc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Jc);var bo;(function(t){t.VK="vk",t.VK_VIDEO="vk_video"})(bo||(bo={}));const xc={isMobile:void 0,defaultLanguage:Ao.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:bo.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Qo.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,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{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,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},$c=t=>wc(t,xc),ef=t=>Cl("ui-config",t),an=()=>Bl("ui-config"),Tl="vk_player_debug_panel_opened",y1=300,tf=100,nf="videoplayer",of="videoplayer";var Ee;(function(t){t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Comma="Comma",t.Period="Period",t.Space="Space",t.KeyM="KeyM",t.KeyF="KeyF",t.KeyK="KeyK",t.KeyL="KeyL",t.KeyJ="KeyJ",t.KeyC="KeyC",t.KeyI="KeyI",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.Digit0="Digit0",t.Numpad1="Numpad1",t.Numpad2="Numpad2",t.Numpad3="Numpad3",t.Numpad4="Numpad4",t.Numpad5="Numpad5",t.Numpad6="Numpad6",t.Numpad7="Numpad7",t.Numpad8="Numpad8",t.Numpad9="Numpad9",t.Numpad0="Numpad0",t.ShiftLeft="ShiftLeft",t.ShiftRight="ShiftRight",t.Slash="Slash",t.Tab="Tab",t.Escape="Escape",t.Enter="Enter"})(Ee||(Ee={}));const Mo={[Ee.KeyF]:"f",[Ee.KeyK]:"k",[Ee.KeyC]:"c",[Ee.KeyM]:"m"},lf=new Set([Ee.ArrowLeft,Ee.ArrowRight,Ee.KeyL,Ee.KeyJ]),sf=new Set([Ee.Tab,Ee.Space,Ee.ArrowLeft,Ee.ArrowRight,Ee.ArrowUp,Ee.ArrowDown]),rf=new Set([Ee.ShiftRight,Ee.ShiftLeft]);var st;(function(t){t.PLAY_BUTTON="PLAY_BUTTON",t.REPLAY_BUTTON="REPLAY_BUTTON",t.NEXT_BUTTON="NEXT_BUTTON",t.PREV_BUTTON="PREV_BUTTON",t.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",t.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",t.SETTINGS_BUTTON="SETTINGS_BUTTON",t.LIVE_BUTTON="LIVE_BUTTON",t.GRAPH_BUTTON="GRAPH_BUTTON",t.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",t.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",t.TIMELINE="TIMELINE",t.VOLUME_BAR="VOLUME_BAR",t.MUTE_BUTTON="MUTE_BUTTON",t.SUBTITLES_BUTTON="SUBTITLES_BUTTON",t.CHROMECAST_BUTTON="CHROMECAST_BUTTON",t.VK_BUTTON="VK_BUTTON",t.EPISODE_BUTTON="EPISODE_BUTTON",t.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",t.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(st||(st={}));const rs=40,C1=260,af=60,qo=8,P1=[st.TIMELINE],Jo=[...P1,st.GRAPH_BUTTON],as=[...P1,st.PLAY_BUTTON],S1=[...Jo,st.PLAY_BUTTON];var fo;(function(t){t[t.XS=320]="XS",t[t.S=509]="S",t[t.M=599]="M",t[t.L=699]="L"})(fo||(fo={}));var vt;(function(t){t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl"})(vt||(vt={}));const _o={[vt.XS]:0,[vt.S]:1,[vt.M]:2,[vt.L]:3,[vt.XL]:4},ro=[];function Ln(t,e){return{subscribe:Ve(t,e).subscribe}}function Ve(t,e=Z){let i;const n=new Set;function o(r){if(ge(t,r)&&(t=r,i)){const a=!ro.length;for(const c of n)c[1](),ro.push(c,t);if(a){for(let c=0;c<ro.length;c+=2)ro[c][0](ro[c+1]);ro.length=0}}}function s(r){o(r(t))}function l(r,a=Z){const c=[r,a];return n.add(c),n.size===1&&(i=e(o,s)||Z),r(t),()=>{n.delete(c),n.size===0&&i&&(i(),i=null)}}return{set:o,update:s,subscribe:l}}function Ni(t,e,i){const n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return Ln(i,(l,r)=>{let a=!1;const c=[];let f=0,p=Z;const h=()=>{if(f)return;p();const b=e(n?c[0]:c,l,r);s?l(b):p=kn(b)?b:Z},_=o.map((b,k)=>Kt(b,v=>{c[k]=v,f&=~(1<<k),a&&h()},()=>{f|=1<<k}));return a=!0,h(),function(){tt(_),p(),a=!1}})}const uf="prod",Rl="1.1.36-dev.911333bb.0",T1=(t,e,i)=>{const n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()},E1=Symbol("storeContext"),I1=Symbol("microStoresContext"),cf=(t,e)=>{Cl(E1,t),Cl(I1,e)},dt=()=>{const t=Bl(E1);return ut(t,"Store context is empty!"),t},Bo=()=>{const t=Bl(I1);return ut(t,"MicroStores context is empty!"),t},ft=(t,e)=>A1(t,t.getValue(),e),A1=(t,e,i)=>Ln(e,n=>{const o=t.subscribe(s=>{n(s),i?.(s)});return()=>o.unsubscribe()}),ff=(t,e,i)=>{const n=t.info,{width:o,height:s}=xe(i.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,r=n.rttEstimation$.getValue()?.toFixed(0)??0,a=n.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Rl} (core: ${vc}, stat: ${Oc}, shared: ${yc})`,f=xe(i.state.errorLog$),p=f.length?`
|
|
7
7
|
`+f.map((b,k)=>{const v=`${k}) Type: ${b.id}
|
|
8
8
|
`,P=`Message: ${b.message} (${b.thrown})
|
|
9
9
|
`,y=`Trace: ${b.thrown?.stack}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer",
|
|
3
|
-
"version": "1.1.36-dev.
|
|
3
|
+
"version": "1.1.36-dev.911333bb.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.103-dev.
|
|
53
|
-
"@vkontakte/videoplayer-interactive": "1.0.11-dev.
|
|
54
|
-
"@vkontakte/videoplayer-shared": "1.0.
|
|
55
|
-
"@vkontakte/videoplayer-statistics": "1.0.49-dev.
|
|
52
|
+
"@vkontakte/videoplayer-core": "2.0.103-dev.9f90a1c9.0",
|
|
53
|
+
"@vkontakte/videoplayer-interactive": "1.0.11-dev.69ab85c6.0",
|
|
54
|
+
"@vkontakte/videoplayer-shared": "^1.0.35",
|
|
55
|
+
"@vkontakte/videoplayer-statistics": "1.0.49-dev.3dd82646.0"
|
|
56
56
|
}
|
|
57
57
|
}
|