@vkontakte/videoplayer 1.1.32 → 1.1.33-dev.7710e034.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 +4 -4
- package/es2015.esm.js +4 -4
- package/es2018.cjs.js +11 -11
- package/es2018.esm.js +4 -4
- package/esnext.cjs.js +4 -4
- package/esnext.esm.js +4 -4
- package/evergreen.esm.js +4 -4
- package/package.json +3 -3
package/es2015.cjs.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.
|
|
3
|
-
*
|
|
4
|
-
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-
|
|
2
|
+
* @vkontakte/videoplayer v1.1.33-dev.7710e034.0
|
|
3
|
+
* Thu, 11 Apr 2024 09:41:22 GMT
|
|
4
|
+
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-33/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var Nc=Object.create;var $o=Object.defineProperty,Rc=Object.defineProperties,Bc=Object.getOwnPropertyDescriptor,Oc=Object.getOwnPropertyDescriptors,zc=Object.getOwnPropertyNames,$l=Object.getOwnPropertySymbols,Dc=Object.getPrototypeOf,es=Object.prototype.hasOwnProperty,Fc=Object.prototype.propertyIsEnumerable;var xo=(i,e,t)=>e in i?$o(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,qi=(i,e)=>{for(var t in e||(e={}))es.call(e,t)&&xo(i,t,e[t]);if($l)for(var t of $l(e))Fc.call(e,t)&&xo(i,t,e[t]);return i},qn=(i,e)=>Rc(i,Oc(e));var Hc=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of zc(e))!es.call(i,o)&&o!==t&&$o(i,o,{get:()=>e[o],enumerable:!(n=Bc(e,o))||n.enumerable});return i};var ts=(i,e,t)=>(t=i!=null?Nc(Dc(i)):{},Hc(e||!i||!i.__esModule?$o(t,"default",{value:i,enumerable:!0}):t,i));var el=(i,e,t)=>(xo(i,typeof e!="symbol"?e+"":e,t),t);var On=(i,e,t)=>new Promise((n,o)=>{var l=a=>{try{r(t.next(a))}catch(c){o(c)}},s=a=>{try{r(t.throw(a))}catch(c){o(c)}},r=a=>a.done?n(a.value):Promise.resolve(a.value).then(l,s);r((t=t.apply(i,e)).next())});var at=require("@vkontakte/videoplayer-core/es2015.cjs.js"),oe=require("@vkontakte/videoplayer-shared/es2015.cjs.js"),bt=require("@vkontakte/videoplayer-statistics/es2015.cjs.js");function Wi(i,e,t,n){function o(l){return l instanceof t?l:new t(function(s){s(l)})}return new(t||(t=Promise))(function(l,s){function r(f){try{c(n.next(f))}catch(h){s(h)}}function a(f){try{c(n.throw(f))}catch(h){s(h)}}function c(f){f.done?l(f.value):o(f.value).then(r,a)}c((n=n.apply(i,e||[])).next())})}function Z(){}function A1(i,e){for(const t in e)i[t]=e[t];return i}function L1(i){return i()}function is(){return Object.create(null)}function ei(i){i.forEach(L1)}function _n(i){return typeof i=="function"}function we(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Eo;function ns(i,e){return Eo||(Eo=document.createElement("a")),Eo.href=e,i===Eo.href}function Uc(i){return Object.keys(i).length===0}function jo(i,...e){if(i==null){for(const n of e)n(void 0);return Z}const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function rt(i){let e;return jo(i,t=>e=t)(),e}function W(i,e,t){i.$$.on_destroy.push(jo(e,t))}function wn(i,e,t,n){if(i){const o=V1(i,e,t,n);return i[0](o)}}function V1(i,e,t,n){return i[1]&&n?A1(t.ctx.slice(),i[1](n(e))):t.ctx}function kn(i,e,t,n){if(i[2]&&n){const o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){const l=[],s=Math.max(e.dirty.length,o.length);for(let r=0;r<s;r+=1)l[r]=e.dirty[r]|o[r];return l}return e.dirty|o}return e.dirty}function yn(i,e,t,n,o,l){if(o){const s=V1(e,t,n,l);i.p(s,o)}}function Sn(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 jc(i){return i==null?"":i}const I1=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function m(i,e){i.appendChild(e)}function Fe(i,e,t){const n=qc(i);if(!n.getElementById(e)){const o=_("style");o.id=e,o.textContent=t,Wc(n,o)}}function qc(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function Wc(i,e){return m(i.head||i,e),e.sheet}function y(i,e,t){i.insertBefore(e,t||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function ln(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function _(i){return document.createElement(i)}function N(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function He(i){return document.createTextNode(i)}function B(){return He(" ")}function gt(){return He("")}function Ve(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function pi(i){return function(e){return e.preventDefault(),i.call(this,e)}}function ft(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 Zc(i){return Array.from(i.childNodes)}function xe(i,e){e=""+e,i.data!==e&&(i.data=e)}function Rt(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}let Ao;function Gc(){if(Ao===void 0){Ao=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){Ao=!0}}return Ao}function qo(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");const n=_("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 l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=Ve(window,"message",s=>{s.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=Ve(n.contentWindow,"resize",e),e()}),m(i,n),()=>{(o||l&&n.contentWindow)&&l(),k(n)}}function V(i,e,t){i.classList.toggle(e,!!t)}function dn(i,e){return new i(e)}let vo;function po(i){vo=i}function bo(){if(!vo)throw new Error("Function called outside component initialization");return vo}function Qi(i){bo().$$.on_mount.push(i)}function Wo(i){bo().$$.on_destroy.push(i)}function M1(i,e){return bo().$$.context.set(i,e),e}function N1(i){return bo().$$.context.get(i)}function R1(){return bo().$$.context}function to(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const Xn=[],qe=[];let $n=[];const Tl=[],Kc=Promise.resolve();let El=!1;function Yc(){El||(El=!0,Kc.then(B1))}function Fn(i){$n.push(i)}function yt(i){Tl.push(i)}const tl=new Set;let Wn=0;function B1(){if(Wn!==0)return;const i=vo;do{try{for(;Wn<Xn.length;){const e=Xn[Wn];Wn++,po(e),Qc(e.$$)}}catch(e){throw Xn.length=0,Wn=0,e}for(po(null),Xn.length=0,Wn=0;qe.length;)qe.pop()();for(let e=0;e<$n.length;e+=1){const t=$n[e];tl.has(t)||(tl.add(t),t())}$n.length=0}while(Xn.length);for(;Tl.length;)Tl.pop()();El=!1,tl.clear(),po(i)}function Qc(i){if(i.fragment!==null){i.update(),ei(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Fn)}}function Xc(i){const e=[],t=[];$n.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),$n=e}const zo=new Set;let zn;function he(){zn={r:0,c:[],p:zn}}function pe(){zn.r||ei(zn.c),zn=zn.p}function d(i,e){i&&i.i&&(zo.delete(i),i.i(e))}function v(i,e,t,n){if(i&&i.o){if(zo.has(i))return;zo.add(i),zn.c.push(()=>{zo.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function qt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Jc(i,e){const t={},n={},o={$$scope:1};let l=i.length;for(;l--;){const s=i[l],r=e[l];if(r){for(const a in s)a in r||(n[a]=1);for(const a in r)o[a]||(t[a]=r[a],o[a]=1);i[l]=r}else for(const a in s)o[a]=1}for(const s in n)s in t||(t[s]=void 0);return t}function xc(i){return typeof i=="object"&&i!==null?i:{}}function St(i,e,t){const n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function H(i){i&&i.c()}function D(i,e,t){const{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Fn(()=>{const l=i.$$.on_mount.map(L1).filter(_n);i.$$.on_destroy?i.$$.on_destroy.push(...l):ei(l),i.$$.on_mount=[]}),o.forEach(Fn)}function F(i,e){const t=i.$$;t.fragment!==null&&(Xc(t.after_update),ei(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function $c(i,e){i.$$.dirty[0]===-1&&(Xn.push(i),Yc(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function ke(i,e,t,n,o,l,s,r=[-1]){const a=vo;po(i);const c=i.$$={fragment:null,ctx:[],props:l,update:Z,not_equal:o,bound:is(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:is(),dirty:r,skip_bound:!1,root:e.target||a.$$.root};s&&s(c.root);let f=!1;if(c.ctx=t?t(i,e.props||{},(h,g,...p)=>{const b=p.length?p[0]:g;return c.ctx&&o(c.ctx[h],c.ctx[h]=b)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](b),f&&$c(i,h)),g}):[],c.update(),f=!0,ei(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const h=Zc(e.target);c.fragment&&c.fragment.l(h),h.forEach(k)}else c.fragment&&c.fragment.c();e.intro&&d(i.$$.fragment),D(i,e.target,e.anchor),B1()}po(a)}class ye{constructor(){el(this,"$$");el(this,"$$set")}$destroy(){F(this,1),this.$destroy=Z}$on(e,t){if(!_n(t))return Z;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Uc(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 io;(function(i){i.VK="vk",i.VK_VIDEO="vk_video"})(io||(io={}));const t0={isMobile:void 0,defaultLanguage:oe.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:io.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:oe.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},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}},i0=i=>oe.fillWithDefault(i,t0),n0=i=>M1("ui-config",i),Xi=()=>N1("ui-config"),Al="vk_player_debug_panel_opened",O1=300,o0="videoplayer",l0="videoplayer";var We;(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"})(We||(We={}));const s0=new Set([We.ArrowLeft,We.ArrowRight,We.KeyL,We.KeyJ]);var pt;(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"})(pt||(pt={}));const os=40,r0=4,a0=60,fo=8,z1=[pt.TIMELINE],Ll=[...z1,pt.GRAPH_BUTTON],ls=[...z1,pt.PLAY_BUTTON],mo=[...Ll,pt.PLAY_BUTTON];var Jn;(function(i){i[i.XS=320]="XS",i[i.S=509]="S",i[i.M=599]="M",i[i.L=699]="L"})(Jn||(Jn={}));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 no={[exports.GridTypes.XS]:0,[exports.GridTypes.S]:1,[exports.GridTypes.M]:2,[exports.GridTypes.L]:3,[exports.GridTypes.XL]:4},Zn=[];function cn(i,e){return{subscribe:je(i,e).subscribe}}function je(i,e=Z){let t;const n=new Set;function o(r){if(we(i,r)&&(i=r,t)){const a=!Zn.length;for(const c of n)c[1](),Zn.push(c,i);if(a){for(let c=0;c<Zn.length;c+=2)Zn[c][0](Zn[c+1]);Zn.length=0}}}function l(r){o(r(i))}function s(r,a=Z){const c=[r,a];return n.add(c),n.size===1&&(t=e(o,l)||Z),r(i),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:o,update:l,subscribe:s}}function $t(i,e,t){const n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const l=e.length<2;return cn(t,(s,r)=>{let a=!1;const c=[];let f=0,h=Z;const g=()=>{if(f)return;h();const b=e(n?c[0]:c,s,r);l?s(b):h=_n(b)?b:Z},p=o.map((b,L)=>jo(b,w=>{c[L]=w,f&=~(1<<L),a&&g()},()=>{f|=1<<L}));return a=!0,g(),function(){ei(p),h(),a=!1}})}const u0="prod",Zo="1.1.32",D1=(i,e,t)=>{const n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()},F1=Symbol("storeContext"),c0=i=>{M1(F1,i)},Ct=()=>{const i=N1(F1);return oe.assertNonNullable(i,"Store context is empty!"),i},wt=(i,e)=>H1(i,i.getValue(),e),H1=(i,e,t)=>cn(e,n=>{const o=i.subscribe(l=>{n(l),t==null||t(l)});return()=>o.unsubscribe()}),f0=(i,e,t)=>{var n,o,l,s;const r=i.info,{width:a,height:c}=rt(t.ui.playerSize),f=(o=(n=r.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&o!==void 0?o:0,h=(s=(l=r.rttEstimation$.getValue())===null||l===void 0?void 0:l.toFixed(0))!==null&&s!==void 0?s:0,g=r.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Zo} (core: ${at.VERSION}, stat: ${bt.VERSION}, shared: ${oe.VERSION})`,b=rt(t.state.errorLog$),L=b.length?`
|
|
6
|
+
"use strict";var Nc=Object.create;var $o=Object.defineProperty,Rc=Object.defineProperties,Bc=Object.getOwnPropertyDescriptor,Oc=Object.getOwnPropertyDescriptors,zc=Object.getOwnPropertyNames,$l=Object.getOwnPropertySymbols,Dc=Object.getPrototypeOf,es=Object.prototype.hasOwnProperty,Fc=Object.prototype.propertyIsEnumerable;var xo=(i,e,t)=>e in i?$o(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,qi=(i,e)=>{for(var t in e||(e={}))es.call(e,t)&&xo(i,t,e[t]);if($l)for(var t of $l(e))Fc.call(e,t)&&xo(i,t,e[t]);return i},qn=(i,e)=>Rc(i,Oc(e));var Hc=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of zc(e))!es.call(i,o)&&o!==t&&$o(i,o,{get:()=>e[o],enumerable:!(n=Bc(e,o))||n.enumerable});return i};var ts=(i,e,t)=>(t=i!=null?Nc(Dc(i)):{},Hc(e||!i||!i.__esModule?$o(t,"default",{value:i,enumerable:!0}):t,i));var el=(i,e,t)=>(xo(i,typeof e!="symbol"?e+"":e,t),t);var On=(i,e,t)=>new Promise((n,o)=>{var l=a=>{try{r(t.next(a))}catch(c){o(c)}},s=a=>{try{r(t.throw(a))}catch(c){o(c)}},r=a=>a.done?n(a.value):Promise.resolve(a.value).then(l,s);r((t=t.apply(i,e)).next())});var at=require("@vkontakte/videoplayer-core/es2015.cjs.js"),oe=require("@vkontakte/videoplayer-shared/es2015.cjs.js"),bt=require("@vkontakte/videoplayer-statistics/es2015.cjs.js");function Wi(i,e,t,n){function o(l){return l instanceof t?l:new t(function(s){s(l)})}return new(t||(t=Promise))(function(l,s){function r(f){try{c(n.next(f))}catch(h){s(h)}}function a(f){try{c(n.throw(f))}catch(h){s(h)}}function c(f){f.done?l(f.value):o(f.value).then(r,a)}c((n=n.apply(i,e||[])).next())})}function Z(){}function A1(i,e){for(const t in e)i[t]=e[t];return i}function L1(i){return i()}function is(){return Object.create(null)}function ei(i){i.forEach(L1)}function _n(i){return typeof i=="function"}function we(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Eo;function ns(i,e){return Eo||(Eo=document.createElement("a")),Eo.href=e,i===Eo.href}function Uc(i){return Object.keys(i).length===0}function jo(i,...e){if(i==null){for(const n of e)n(void 0);return Z}const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function rt(i){let e;return jo(i,t=>e=t)(),e}function W(i,e,t){i.$$.on_destroy.push(jo(e,t))}function wn(i,e,t,n){if(i){const o=V1(i,e,t,n);return i[0](o)}}function V1(i,e,t,n){return i[1]&&n?A1(t.ctx.slice(),i[1](n(e))):t.ctx}function kn(i,e,t,n){if(i[2]&&n){const o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){const l=[],s=Math.max(e.dirty.length,o.length);for(let r=0;r<s;r+=1)l[r]=e.dirty[r]|o[r];return l}return e.dirty|o}return e.dirty}function yn(i,e,t,n,o,l){if(o){const s=V1(e,t,n,l);i.p(s,o)}}function Sn(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 jc(i){return i==null?"":i}const I1=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function m(i,e){i.appendChild(e)}function Fe(i,e,t){const n=qc(i);if(!n.getElementById(e)){const o=_("style");o.id=e,o.textContent=t,Wc(n,o)}}function qc(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function Wc(i,e){return m(i.head||i,e),e.sheet}function y(i,e,t){i.insertBefore(e,t||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function ln(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function _(i){return document.createElement(i)}function N(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function He(i){return document.createTextNode(i)}function B(){return He(" ")}function gt(){return He("")}function Ve(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function pi(i){return function(e){return e.preventDefault(),i.call(this,e)}}function ft(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 Zc(i){return Array.from(i.childNodes)}function xe(i,e){e=""+e,i.data!==e&&(i.data=e)}function Rt(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}let Ao;function Gc(){if(Ao===void 0){Ao=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){Ao=!0}}return Ao}function qo(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");const n=_("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 l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=Ve(window,"message",s=>{s.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=Ve(n.contentWindow,"resize",e),e()}),m(i,n),()=>{(o||l&&n.contentWindow)&&l(),k(n)}}function V(i,e,t){i.classList.toggle(e,!!t)}function dn(i,e){return new i(e)}let vo;function po(i){vo=i}function bo(){if(!vo)throw new Error("Function called outside component initialization");return vo}function Qi(i){bo().$$.on_mount.push(i)}function Wo(i){bo().$$.on_destroy.push(i)}function M1(i,e){return bo().$$.context.set(i,e),e}function N1(i){return bo().$$.context.get(i)}function R1(){return bo().$$.context}function to(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const Xn=[],qe=[];let $n=[];const Tl=[],Kc=Promise.resolve();let El=!1;function Yc(){El||(El=!0,Kc.then(B1))}function Fn(i){$n.push(i)}function yt(i){Tl.push(i)}const tl=new Set;let Wn=0;function B1(){if(Wn!==0)return;const i=vo;do{try{for(;Wn<Xn.length;){const e=Xn[Wn];Wn++,po(e),Qc(e.$$)}}catch(e){throw Xn.length=0,Wn=0,e}for(po(null),Xn.length=0,Wn=0;qe.length;)qe.pop()();for(let e=0;e<$n.length;e+=1){const t=$n[e];tl.has(t)||(tl.add(t),t())}$n.length=0}while(Xn.length);for(;Tl.length;)Tl.pop()();El=!1,tl.clear(),po(i)}function Qc(i){if(i.fragment!==null){i.update(),ei(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Fn)}}function Xc(i){const e=[],t=[];$n.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),$n=e}const zo=new Set;let zn;function he(){zn={r:0,c:[],p:zn}}function pe(){zn.r||ei(zn.c),zn=zn.p}function d(i,e){i&&i.i&&(zo.delete(i),i.i(e))}function v(i,e,t,n){if(i&&i.o){if(zo.has(i))return;zo.add(i),zn.c.push(()=>{zo.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function qt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Jc(i,e){const t={},n={},o={$$scope:1};let l=i.length;for(;l--;){const s=i[l],r=e[l];if(r){for(const a in s)a in r||(n[a]=1);for(const a in r)o[a]||(t[a]=r[a],o[a]=1);i[l]=r}else for(const a in s)o[a]=1}for(const s in n)s in t||(t[s]=void 0);return t}function xc(i){return typeof i=="object"&&i!==null?i:{}}function St(i,e,t){const n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function H(i){i&&i.c()}function D(i,e,t){const{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Fn(()=>{const l=i.$$.on_mount.map(L1).filter(_n);i.$$.on_destroy?i.$$.on_destroy.push(...l):ei(l),i.$$.on_mount=[]}),o.forEach(Fn)}function F(i,e){const t=i.$$;t.fragment!==null&&(Xc(t.after_update),ei(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function $c(i,e){i.$$.dirty[0]===-1&&(Xn.push(i),Yc(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function ke(i,e,t,n,o,l,s,r=[-1]){const a=vo;po(i);const c=i.$$={fragment:null,ctx:[],props:l,update:Z,not_equal:o,bound:is(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:is(),dirty:r,skip_bound:!1,root:e.target||a.$$.root};s&&s(c.root);let f=!1;if(c.ctx=t?t(i,e.props||{},(h,g,...p)=>{const b=p.length?p[0]:g;return c.ctx&&o(c.ctx[h],c.ctx[h]=b)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](b),f&&$c(i,h)),g}):[],c.update(),f=!0,ei(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const h=Zc(e.target);c.fragment&&c.fragment.l(h),h.forEach(k)}else c.fragment&&c.fragment.c();e.intro&&d(i.$$.fragment),D(i,e.target,e.anchor),B1()}po(a)}class ye{constructor(){el(this,"$$");el(this,"$$set")}$destroy(){F(this,1),this.$destroy=Z}$on(e,t){if(!_n(t))return Z;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Uc(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 io;(function(i){i.VK="vk",i.VK_VIDEO="vk_video"})(io||(io={}));const t0={isMobile:void 0,defaultLanguage:oe.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:io.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:oe.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},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}},i0=i=>oe.fillWithDefault(i,t0),n0=i=>M1("ui-config",i),Xi=()=>N1("ui-config"),Al="vk_player_debug_panel_opened",O1=300,o0="videoplayer",l0="videoplayer";var We;(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"})(We||(We={}));const s0=new Set([We.ArrowLeft,We.ArrowRight,We.KeyL,We.KeyJ]);var pt;(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"})(pt||(pt={}));const os=40,r0=4,a0=60,fo=8,z1=[pt.TIMELINE],Ll=[...z1,pt.GRAPH_BUTTON],ls=[...z1,pt.PLAY_BUTTON],mo=[...Ll,pt.PLAY_BUTTON];var Jn;(function(i){i[i.XS=320]="XS",i[i.S=509]="S",i[i.M=599]="M",i[i.L=699]="L"})(Jn||(Jn={}));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 no={[exports.GridTypes.XS]:0,[exports.GridTypes.S]:1,[exports.GridTypes.M]:2,[exports.GridTypes.L]:3,[exports.GridTypes.XL]:4},Zn=[];function cn(i,e){return{subscribe:je(i,e).subscribe}}function je(i,e=Z){let t;const n=new Set;function o(r){if(we(i,r)&&(i=r,t)){const a=!Zn.length;for(const c of n)c[1](),Zn.push(c,i);if(a){for(let c=0;c<Zn.length;c+=2)Zn[c][0](Zn[c+1]);Zn.length=0}}}function l(r){o(r(i))}function s(r,a=Z){const c=[r,a];return n.add(c),n.size===1&&(t=e(o,l)||Z),r(i),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:o,update:l,subscribe:s}}function $t(i,e,t){const n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const l=e.length<2;return cn(t,(s,r)=>{let a=!1;const c=[];let f=0,h=Z;const g=()=>{if(f)return;h();const b=e(n?c[0]:c,s,r);l?s(b):h=_n(b)?b:Z},p=o.map((b,L)=>jo(b,w=>{c[L]=w,f&=~(1<<L),a&&g()},()=>{f|=1<<L}));return a=!0,g(),function(){ei(p),h(),a=!1}})}const u0="prod",Zo="1.1.33-dev.7710e034.0",D1=(i,e,t)=>{const n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()},F1=Symbol("storeContext"),c0=i=>{M1(F1,i)},Ct=()=>{const i=N1(F1);return oe.assertNonNullable(i,"Store context is empty!"),i},wt=(i,e)=>H1(i,i.getValue(),e),H1=(i,e,t)=>cn(e,n=>{const o=i.subscribe(l=>{n(l),t==null||t(l)});return()=>o.unsubscribe()}),f0=(i,e,t)=>{var n,o,l,s;const r=i.info,{width:a,height:c}=rt(t.ui.playerSize),f=(o=(n=r.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&o!==void 0?o:0,h=(s=(l=r.rttEstimation$.getValue())===null||l===void 0?void 0:l.toFixed(0))!==null&&s!==void 0?s:0,g=r.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Zo} (core: ${at.VERSION}, stat: ${bt.VERSION}, shared: ${oe.VERSION})`,b=rt(t.state.errorLog$),L=b.length?`
|
|
7
7
|
`+b.map((C,I)=>{var M;const J=`${I}) Type: ${C.id}
|
|
8
8
|
`,G=`Message: ${C.message} (${C.thrown})
|
|
9
9
|
`,Y=`Trace: ${(M=C.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.
|
|
3
|
-
*
|
|
4
|
-
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-
|
|
2
|
+
* @vkontakte/videoplayer v1.1.33-dev.7710e034.0
|
|
3
|
+
* Thu, 11 Apr 2024 09:41:22 GMT
|
|
4
|
+
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-33/doc/
|
|
5
5
|
*/
|
|
6
|
-
var Qc=Object.defineProperty,Jc=Object.defineProperties;var xc=Object.getOwnPropertyDescriptors;var ms=Object.getOwnPropertySymbols;var $c=Object.prototype.hasOwnProperty,e0=Object.prototype.propertyIsEnumerable;var cl=(i,e,t)=>e in i?Qc(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Zi=(i,e)=>{for(var t in e||(e={}))$c.call(e,t)&&cl(i,t,e[t]);if(ms)for(var t of ms(e))e0.call(e,t)&&cl(i,t,e[t]);return i},Xn=(i,e)=>Jc(i,xc(e));var fl=(i,e,t)=>(cl(i,typeof e!="symbol"?e+"":e,t),t);var jn=(i,e,t)=>new Promise((n,o)=>{var l=a=>{try{r(t.next(a))}catch(c){o(c)}},s=a=>{try{r(t.throw(a))}catch(c){o(c)}},r=a=>a.done?n(a.value):Promise.resolve(a.value).then(l,s);r((t=t.apply(i,e)).next())});import{VERSION as t0,ChromecastState as gn,PlaybackState as Ti,VideoQuality as io,Player as i0,VideoFormat as wo}from"@vkontakte/videoplayer-core/es2015.esm.js";import{VideoFormat as f8,VideoQuality as d8}from"@vkontakte/videoplayer-core/es2015.esm.js";import{InterfaceLanguage as Ao,VideoQuality as Ko,fillWithDefault as n0,VERSION as o0,assertNonNullable as _t,safeStorage as cn,isNullable as Jo,Subscription as so,isNonNullable as an,isMacLike as hs,debounceFn as U1,ValueSubject as Gl,getCurrentBrowser as Yl,CurrentClientBrowser as j1,noop as it,checkNever as l0,timeCodeToString as s0,isIOS as q1,CurrentClientDevice as r0,getIOSVersion as a0,Subject as tn,addScript as u0,Logger as W1,merge as c0,Observable as f0,map as d0,loadVKLangPack as m0,getHighestQuality as h0,detectEmbed as p0,isMobile as v0,cloneDeepWith as g0}from"@vkontakte/videoplayer-shared/es2015.esm.js";import{InterfaceLanguage as h8,VKNumericLanguage as p8,loadVKLangPack as v8}from"@vkontakte/videoplayer-shared/es2015.esm.js";import{VERSION as b0,SeekAction as zt,OneStat as _0,InteractiveInterfaceClick as ko}from"@vkontakte/videoplayer-statistics/es2015.esm.js";function Gi(i,e,t,n){function o(l){return l instanceof t?l:new t(function(s){s(l)})}return new(t||(t=Promise))(function(l,s){function r(f){try{c(n.next(f))}catch(h){s(h)}}function a(f){try{c(n.throw(f))}catch(h){s(h)}}function c(f){f.done?l(f.value):o(f.value).then(r,a)}c((n=n.apply(i,e||[])).next())})}function Z(){}function Z1(i,e){for(const t in e)i[t]=e[t];return i}function G1(i){return i()}function ps(){return Object.create(null)}function ti(i){i.forEach(G1)}function Sn(i){return typeof i=="function"}function _e(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Do;function vs(i,e){return Do||(Do=document.createElement("a")),Do.href=e,i===Do.href}function w0(i){return Object.keys(i).length===0}function tl(i,...e){if(i==null){for(const n of e)n(void 0);return Z}const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function rt(i){let e;return tl(i,t=>e=t)(),e}function W(i,e,t){i.$$.on_destroy.push(tl(e,t))}function Tn(i,e,t,n){if(i){const o=Y1(i,e,t,n);return i[0](o)}}function Y1(i,e,t,n){return i[1]&&n?Z1(t.ctx.slice(),i[1](n(e))):t.ctx}function En(i,e,t,n){if(i[2]&&n){const o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){const l=[],s=Math.max(e.dirty.length,o.length);for(let r=0;r<s;r+=1)l[r]=e.dirty[r]|o[r];return l}return e.dirty|o}return e.dirty}function An(i,e,t,n,o,l){if(o){const s=Y1(e,t,n,l);i.p(s,o)}}function Ln(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 k0(i){return i==null?"":i}const K1=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function m(i,e){i.appendChild(e)}function De(i,e,t){const n=y0(i);if(!n.getElementById(e)){const o=_("style");o.id=e,o.textContent=t,C0(n,o)}}function y0(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function C0(i,e){return m(i.head||i,e),e.sheet}function y(i,e,t){i.insertBefore(e,t||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function un(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function _(i){return document.createElement(i)}function R(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Fe(i){return document.createTextNode(i)}function B(){return Fe(" ")}function vt(){return Fe("")}function Le(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function vi(i){return function(e){return e.preventDefault(),i.call(this,e)}}function ct(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 P0(i){return Array.from(i.childNodes)}function Je(i,e){e=""+e,i.data!==e&&(i.data=e)}function Nt(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}let Fo;function S0(){if(Fo===void 0){Fo=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){Fo=!0}}return Fo}function il(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");const n=_("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=S0();let l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=Le(window,"message",s=>{s.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=Le(n.contentWindow,"resize",e),e()}),m(i,n),()=>{(o||l&&n.contentWindow)&&l(),k(n)}}function V(i,e,t){i.classList.toggle(e,!!t)}function bn(i,e){return new i(e)}let To;function So(i){To=i}function Lo(){if(!To)throw new Error("Function called outside component initialization");return To}function Ji(i){Lo().$$.on_mount.push(i)}function nl(i){Lo().$$.on_destroy.push(i)}function X1(i,e){return Lo().$$.context.set(i,e),e}function Q1(i){return Lo().$$.context.get(i)}function J1(){return Lo().$$.context}function uo(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const no=[],je=[];let ro=[];const zl=[],T0=Promise.resolve();let Dl=!1;function E0(){Dl||(Dl=!0,T0.then(x1))}function Zn(i){ro.push(i)}function kt(i){zl.push(i)}const dl=new Set;let Qn=0;function x1(){if(Qn!==0)return;const i=To;do{try{for(;Qn<no.length;){const e=no[Qn];Qn++,So(e),A0(e.$$)}}catch(e){throw no.length=0,Qn=0,e}for(So(null),no.length=0,Qn=0;je.length;)je.pop()();for(let e=0;e<ro.length;e+=1){const t=ro[e];dl.has(t)||(dl.add(t),t())}ro.length=0}while(no.length);for(;zl.length;)zl.pop()();Dl=!1,dl.clear(),So(i)}function A0(i){if(i.fragment!==null){i.update(),ti(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Zn)}}function L0(i){const e=[],t=[];ro.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),ro=e}const Xo=new Set;let qn;function me(){qn={r:0,c:[],p:qn}}function he(){qn.r||ti(qn.c),qn=qn.p}function d(i,e){i&&i.i&&(Xo.delete(i),i.i(e))}function v(i,e,t,n){if(i&&i.o){if(Xo.has(i))return;Xo.add(i),qn.c.push(()=>{Xo.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Wt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function V0(i,e){const t={},n={},o={$$scope:1};let l=i.length;for(;l--;){const s=i[l],r=e[l];if(r){for(const a in s)a in r||(n[a]=1);for(const a in r)o[a]||(t[a]=r[a],o[a]=1);i[l]=r}else for(const a in s)o[a]=1}for(const s in n)s in t||(t[s]=void 0);return t}function I0(i){return typeof i=="object"&&i!==null?i:{}}function yt(i,e,t){const n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function H(i){i&&i.c()}function D(i,e,t){const{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Zn(()=>{const l=i.$$.on_mount.map(G1).filter(Sn);i.$$.on_destroy?i.$$.on_destroy.push(...l):ti(l),i.$$.on_mount=[]}),o.forEach(Zn)}function F(i,e){const t=i.$$;t.fragment!==null&&(L0(t.after_update),ti(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function M0(i,e){i.$$.dirty[0]===-1&&(no.push(i),E0(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function we(i,e,t,n,o,l,s,r=[-1]){const a=To;So(i);const c=i.$$={fragment:null,ctx:[],props:l,update:Z,not_equal:o,bound:ps(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:ps(),dirty:r,skip_bound:!1,root:e.target||a.$$.root};s&&s(c.root);let f=!1;if(c.ctx=t?t(i,e.props||{},(h,g,...p)=>{const b=p.length?p[0]:g;return c.ctx&&o(c.ctx[h],c.ctx[h]=b)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](b),f&&M0(i,h)),g}):[],c.update(),f=!0,ti(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const h=P0(e.target);c.fragment&&c.fragment.l(h),h.forEach(k)}else c.fragment&&c.fragment.c();e.intro&&d(i.$$.fragment),D(i,e.target,e.anchor),x1()}So(a)}class ke{constructor(){fl(this,"$$");fl(this,"$$set")}$destroy(){F(this,1),this.$destroy=Z}$on(e,t){if(!Sn(t))return Z;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!w0(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const R0="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(R0);var co;(function(i){i.VK="vk",i.VK_VIDEO="vk_video"})(co||(co={}));const N0={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:co.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Ko.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},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}},B0=i=>n0(i,N0),O0=i=>X1("ui-config",i),xi=()=>Q1("ui-config"),Fl="vk_player_debug_panel_opened",$1=300,z0="videoplayer",D0="videoplayer";var qe;(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"})(qe||(qe={}));const F0=new Set([qe.ArrowLeft,qe.ArrowRight,qe.KeyL,qe.KeyJ]);var ht;(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"})(ht||(ht={}));const gs=40,H0=4,U0=60,yo=8,eu=[ht.TIMELINE],Hl=[...eu,ht.GRAPH_BUTTON],bs=[...eu,ht.PLAY_BUTTON],Co=[...Hl,ht.PLAY_BUTTON];var oo;(function(i){i[i.XS=320]="XS",i[i.S=509]="S",i[i.M=599]="M",i[i.L=699]="L"})(oo||(oo={}));var Et;(function(i){i.XS="xs",i.S="s",i.M="m",i.L="l",i.XL="xl"})(Et||(Et={}));const fo={[Et.XS]:0,[Et.S]:1,[Et.M]:2,[Et.L]:3,[Et.XL]:4},Jn=[];function pn(i,e){return{subscribe:Ue(i,e).subscribe}}function Ue(i,e=Z){let t;const n=new Set;function o(r){if(_e(i,r)&&(i=r,t)){const a=!Jn.length;for(const c of n)c[1](),Jn.push(c,i);if(a){for(let c=0;c<Jn.length;c+=2)Jn[c][0](Jn[c+1]);Jn.length=0}}}function l(r){o(r(i))}function s(r,a=Z){const c=[r,a];return n.add(c),n.size===1&&(t=e(o,l)||Z),r(i),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:o,update:l,subscribe:s}}function ei(i,e,t){const n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const l=e.length<2;return pn(t,(s,r)=>{let a=!1;const c=[];let f=0,h=Z;const g=()=>{if(f)return;h();const b=e(n?c[0]:c,s,r);l?s(b):h=Sn(b)?b:Z},p=o.map((b,L)=>tl(b,w=>{c[L]=w,f&=~(1<<L),a&&g()},()=>{f|=1<<L}));return a=!0,g(),function(){ti(p),h(),a=!1}})}const j0="prod",Kl="1.1.32",tu=(i,e,t)=>{const n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()},iu=Symbol("storeContext"),q0=i=>{X1(iu,i)},Ct=()=>{const i=Q1(iu);return _t(i,"Store context is empty!"),i},bt=(i,e)=>nu(i,i.getValue(),e),nu=(i,e,t)=>pn(e,n=>{const o=i.subscribe(l=>{n(l),t==null||t(l)});return()=>o.unsubscribe()}),W0=(i,e,t)=>{var n,o,l,s;const r=i.info,{width:a,height:c}=rt(t.ui.playerSize),f=(o=(n=r.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&o!==void 0?o:0,h=(s=(l=r.rttEstimation$.getValue())===null||l===void 0?void 0:l.toFixed(0))!==null&&s!==void 0?s:0,g=r.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Kl} (core: ${t0}, stat: ${b0}, shared: ${o0})`,b=rt(t.state.errorLog$),L=b.length?`
|
|
6
|
+
var Qc=Object.defineProperty,Jc=Object.defineProperties;var xc=Object.getOwnPropertyDescriptors;var ms=Object.getOwnPropertySymbols;var $c=Object.prototype.hasOwnProperty,e0=Object.prototype.propertyIsEnumerable;var cl=(i,e,t)=>e in i?Qc(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Zi=(i,e)=>{for(var t in e||(e={}))$c.call(e,t)&&cl(i,t,e[t]);if(ms)for(var t of ms(e))e0.call(e,t)&&cl(i,t,e[t]);return i},Xn=(i,e)=>Jc(i,xc(e));var fl=(i,e,t)=>(cl(i,typeof e!="symbol"?e+"":e,t),t);var jn=(i,e,t)=>new Promise((n,o)=>{var l=a=>{try{r(t.next(a))}catch(c){o(c)}},s=a=>{try{r(t.throw(a))}catch(c){o(c)}},r=a=>a.done?n(a.value):Promise.resolve(a.value).then(l,s);r((t=t.apply(i,e)).next())});import{VERSION as t0,ChromecastState as gn,PlaybackState as Ti,VideoQuality as io,Player as i0,VideoFormat as wo}from"@vkontakte/videoplayer-core/es2015.esm.js";import{VideoFormat as f8,VideoQuality as d8}from"@vkontakte/videoplayer-core/es2015.esm.js";import{InterfaceLanguage as Ao,VideoQuality as Ko,fillWithDefault as n0,VERSION as o0,assertNonNullable as _t,safeStorage as cn,isNullable as Jo,Subscription as so,isNonNullable as an,isMacLike as hs,debounceFn as U1,ValueSubject as Gl,getCurrentBrowser as Yl,CurrentClientBrowser as j1,noop as it,checkNever as l0,timeCodeToString as s0,isIOS as q1,CurrentClientDevice as r0,getIOSVersion as a0,Subject as tn,addScript as u0,Logger as W1,merge as c0,Observable as f0,map as d0,loadVKLangPack as m0,getHighestQuality as h0,detectEmbed as p0,isMobile as v0,cloneDeepWith as g0}from"@vkontakte/videoplayer-shared/es2015.esm.js";import{InterfaceLanguage as h8,VKNumericLanguage as p8,loadVKLangPack as v8}from"@vkontakte/videoplayer-shared/es2015.esm.js";import{VERSION as b0,SeekAction as zt,OneStat as _0,InteractiveInterfaceClick as ko}from"@vkontakte/videoplayer-statistics/es2015.esm.js";function Gi(i,e,t,n){function o(l){return l instanceof t?l:new t(function(s){s(l)})}return new(t||(t=Promise))(function(l,s){function r(f){try{c(n.next(f))}catch(h){s(h)}}function a(f){try{c(n.throw(f))}catch(h){s(h)}}function c(f){f.done?l(f.value):o(f.value).then(r,a)}c((n=n.apply(i,e||[])).next())})}function Z(){}function Z1(i,e){for(const t in e)i[t]=e[t];return i}function G1(i){return i()}function ps(){return Object.create(null)}function ti(i){i.forEach(G1)}function Sn(i){return typeof i=="function"}function _e(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Do;function vs(i,e){return Do||(Do=document.createElement("a")),Do.href=e,i===Do.href}function w0(i){return Object.keys(i).length===0}function tl(i,...e){if(i==null){for(const n of e)n(void 0);return Z}const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function rt(i){let e;return tl(i,t=>e=t)(),e}function W(i,e,t){i.$$.on_destroy.push(tl(e,t))}function Tn(i,e,t,n){if(i){const o=Y1(i,e,t,n);return i[0](o)}}function Y1(i,e,t,n){return i[1]&&n?Z1(t.ctx.slice(),i[1](n(e))):t.ctx}function En(i,e,t,n){if(i[2]&&n){const o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){const l=[],s=Math.max(e.dirty.length,o.length);for(let r=0;r<s;r+=1)l[r]=e.dirty[r]|o[r];return l}return e.dirty|o}return e.dirty}function An(i,e,t,n,o,l){if(o){const s=Y1(e,t,n,l);i.p(s,o)}}function Ln(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 k0(i){return i==null?"":i}const K1=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function m(i,e){i.appendChild(e)}function De(i,e,t){const n=y0(i);if(!n.getElementById(e)){const o=_("style");o.id=e,o.textContent=t,C0(n,o)}}function y0(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function C0(i,e){return m(i.head||i,e),e.sheet}function y(i,e,t){i.insertBefore(e,t||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function un(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function _(i){return document.createElement(i)}function R(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Fe(i){return document.createTextNode(i)}function B(){return Fe(" ")}function vt(){return Fe("")}function Le(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function vi(i){return function(e){return e.preventDefault(),i.call(this,e)}}function ct(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 P0(i){return Array.from(i.childNodes)}function Je(i,e){e=""+e,i.data!==e&&(i.data=e)}function Nt(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}let Fo;function S0(){if(Fo===void 0){Fo=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){Fo=!0}}return Fo}function il(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");const n=_("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=S0();let l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=Le(window,"message",s=>{s.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=Le(n.contentWindow,"resize",e),e()}),m(i,n),()=>{(o||l&&n.contentWindow)&&l(),k(n)}}function V(i,e,t){i.classList.toggle(e,!!t)}function bn(i,e){return new i(e)}let To;function So(i){To=i}function Lo(){if(!To)throw new Error("Function called outside component initialization");return To}function Ji(i){Lo().$$.on_mount.push(i)}function nl(i){Lo().$$.on_destroy.push(i)}function X1(i,e){return Lo().$$.context.set(i,e),e}function Q1(i){return Lo().$$.context.get(i)}function J1(){return Lo().$$.context}function uo(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const no=[],je=[];let ro=[];const zl=[],T0=Promise.resolve();let Dl=!1;function E0(){Dl||(Dl=!0,T0.then(x1))}function Zn(i){ro.push(i)}function kt(i){zl.push(i)}const dl=new Set;let Qn=0;function x1(){if(Qn!==0)return;const i=To;do{try{for(;Qn<no.length;){const e=no[Qn];Qn++,So(e),A0(e.$$)}}catch(e){throw no.length=0,Qn=0,e}for(So(null),no.length=0,Qn=0;je.length;)je.pop()();for(let e=0;e<ro.length;e+=1){const t=ro[e];dl.has(t)||(dl.add(t),t())}ro.length=0}while(no.length);for(;zl.length;)zl.pop()();Dl=!1,dl.clear(),So(i)}function A0(i){if(i.fragment!==null){i.update(),ti(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Zn)}}function L0(i){const e=[],t=[];ro.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),ro=e}const Xo=new Set;let qn;function me(){qn={r:0,c:[],p:qn}}function he(){qn.r||ti(qn.c),qn=qn.p}function d(i,e){i&&i.i&&(Xo.delete(i),i.i(e))}function v(i,e,t,n){if(i&&i.o){if(Xo.has(i))return;Xo.add(i),qn.c.push(()=>{Xo.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Wt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function V0(i,e){const t={},n={},o={$$scope:1};let l=i.length;for(;l--;){const s=i[l],r=e[l];if(r){for(const a in s)a in r||(n[a]=1);for(const a in r)o[a]||(t[a]=r[a],o[a]=1);i[l]=r}else for(const a in s)o[a]=1}for(const s in n)s in t||(t[s]=void 0);return t}function I0(i){return typeof i=="object"&&i!==null?i:{}}function yt(i,e,t){const n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function H(i){i&&i.c()}function D(i,e,t){const{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Zn(()=>{const l=i.$$.on_mount.map(G1).filter(Sn);i.$$.on_destroy?i.$$.on_destroy.push(...l):ti(l),i.$$.on_mount=[]}),o.forEach(Zn)}function F(i,e){const t=i.$$;t.fragment!==null&&(L0(t.after_update),ti(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function M0(i,e){i.$$.dirty[0]===-1&&(no.push(i),E0(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function we(i,e,t,n,o,l,s,r=[-1]){const a=To;So(i);const c=i.$$={fragment:null,ctx:[],props:l,update:Z,not_equal:o,bound:ps(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:ps(),dirty:r,skip_bound:!1,root:e.target||a.$$.root};s&&s(c.root);let f=!1;if(c.ctx=t?t(i,e.props||{},(h,g,...p)=>{const b=p.length?p[0]:g;return c.ctx&&o(c.ctx[h],c.ctx[h]=b)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](b),f&&M0(i,h)),g}):[],c.update(),f=!0,ti(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const h=P0(e.target);c.fragment&&c.fragment.l(h),h.forEach(k)}else c.fragment&&c.fragment.c();e.intro&&d(i.$$.fragment),D(i,e.target,e.anchor),x1()}So(a)}class ke{constructor(){fl(this,"$$");fl(this,"$$set")}$destroy(){F(this,1),this.$destroy=Z}$on(e,t){if(!Sn(t))return Z;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!w0(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const R0="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(R0);var co;(function(i){i.VK="vk",i.VK_VIDEO="vk_video"})(co||(co={}));const N0={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:co.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Ko.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},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}},B0=i=>n0(i,N0),O0=i=>X1("ui-config",i),xi=()=>Q1("ui-config"),Fl="vk_player_debug_panel_opened",$1=300,z0="videoplayer",D0="videoplayer";var qe;(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"})(qe||(qe={}));const F0=new Set([qe.ArrowLeft,qe.ArrowRight,qe.KeyL,qe.KeyJ]);var ht;(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"})(ht||(ht={}));const gs=40,H0=4,U0=60,yo=8,eu=[ht.TIMELINE],Hl=[...eu,ht.GRAPH_BUTTON],bs=[...eu,ht.PLAY_BUTTON],Co=[...Hl,ht.PLAY_BUTTON];var oo;(function(i){i[i.XS=320]="XS",i[i.S=509]="S",i[i.M=599]="M",i[i.L=699]="L"})(oo||(oo={}));var Et;(function(i){i.XS="xs",i.S="s",i.M="m",i.L="l",i.XL="xl"})(Et||(Et={}));const fo={[Et.XS]:0,[Et.S]:1,[Et.M]:2,[Et.L]:3,[Et.XL]:4},Jn=[];function pn(i,e){return{subscribe:Ue(i,e).subscribe}}function Ue(i,e=Z){let t;const n=new Set;function o(r){if(_e(i,r)&&(i=r,t)){const a=!Jn.length;for(const c of n)c[1](),Jn.push(c,i);if(a){for(let c=0;c<Jn.length;c+=2)Jn[c][0](Jn[c+1]);Jn.length=0}}}function l(r){o(r(i))}function s(r,a=Z){const c=[r,a];return n.add(c),n.size===1&&(t=e(o,l)||Z),r(i),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:o,update:l,subscribe:s}}function ei(i,e,t){const n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const l=e.length<2;return pn(t,(s,r)=>{let a=!1;const c=[];let f=0,h=Z;const g=()=>{if(f)return;h();const b=e(n?c[0]:c,s,r);l?s(b):h=Sn(b)?b:Z},p=o.map((b,L)=>tl(b,w=>{c[L]=w,f&=~(1<<L),a&&g()},()=>{f|=1<<L}));return a=!0,g(),function(){ti(p),h(),a=!1}})}const j0="prod",Kl="1.1.33-dev.7710e034.0",tu=(i,e,t)=>{const n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()},iu=Symbol("storeContext"),q0=i=>{X1(iu,i)},Ct=()=>{const i=Q1(iu);return _t(i,"Store context is empty!"),i},bt=(i,e)=>nu(i,i.getValue(),e),nu=(i,e,t)=>pn(e,n=>{const o=i.subscribe(l=>{n(l),t==null||t(l)});return()=>o.unsubscribe()}),W0=(i,e,t)=>{var n,o,l,s;const r=i.info,{width:a,height:c}=rt(t.ui.playerSize),f=(o=(n=r.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&o!==void 0?o:0,h=(s=(l=r.rttEstimation$.getValue())===null||l===void 0?void 0:l.toFixed(0))!==null&&s!==void 0?s:0,g=r.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Kl} (core: ${t0}, stat: ${b0}, shared: ${o0})`,b=rt(t.state.errorLog$),L=b.length?`
|
|
7
7
|
`+b.map((P,I)=>{var M;const J=`${I}) Type: ${P.id}
|
|
8
8
|
`,G=`Message: ${P.message} (${P.thrown})
|
|
9
9
|
`,K=`Trace: ${(M=P.thrown)===null||M===void 0?void 0:M.stack}
|