@vkontakte/videoplayer 1.1.49-dev.8ff97d26.0 → 1.1.49-dev.9d1ae4e1.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.49-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.49-dev.9d1ae4e1.0
|
|
3
|
+
* Fri, 08 Nov 2024 07:32:32 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-49/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var Nh=Object.create;var gs=Object.defineProperty,Dh=Object.defineProperties,Oh=Object.getOwnPropertyDescriptor,Fh=Object.getOwnPropertyDescriptors,Hh=Object.getOwnPropertyNames,td=Object.getOwnPropertySymbols,qh=Object.getPrototypeOf,id=Object.prototype.hasOwnProperty,Uh=Object.prototype.propertyIsEnumerable;var Ca=(i,e,t)=>e in i?gs(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Xe=(i,e)=>{for(var t in e||(e={}))id.call(e,t)&&Ca(i,t,e[t]);if(td)for(var t of td(e))Uh.call(e,t)&&Ca(i,t,e[t]);return i},Tt=(i,e)=>Dh(i,Fh(e));var zh=(i,e)=>{for(var t in e)gs(i,t,{get:e[t],enumerable:!0})},nd=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Hh(e))!id.call(i,o)&&o!==t&&gs(i,o,{get:()=>e[o],enumerable:!(n=Oh(e,o))||n.enumerable});return i};var Wh=(i,e,t)=>(t=i!=null?Nh(qh(i)):{},nd(e||!i||!i.__esModule?gs(t,"default",{value:i,enumerable:!0}):t,i)),xh=i=>nd(gs({},"__esModule",{value:!0}),i);var Bi=(i,e,t)=>Ca(i,typeof e!="symbol"?e+"":e,t);var mt=(i,e,t)=>new Promise((n,o)=>{var r=l=>{try{a(t.next(l))}catch(u){o(u)}},s=l=>{try{a(t.throw(l))}catch(u){o(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,s);a((t=t.apply(i,e)).next())});var L8={};zh(L8,{ControlButtonType:()=>Ps,GridTypes:()=>uo,InterfaceLanguage:()=>rs.InterfaceLanguage,MenuItemType:()=>Ts,VERSION:()=>cr,VKNumericLanguage:()=>rs.VKNumericLanguage,VideoFormat:()=>ga.VideoFormat,VideoQuality:()=>ga.VideoQuality,loadVKLangPack:()=>rs.loadVKLangPack,registerPlayerWebComponent:()=>M8});module.exports=xh(L8);function me(){}function re(i,e){for(let t in e)i[t]=e[t];return i}function Sa(i){return i()}function xs(){return Object.create(null)}function ut(i){i.forEach(Sa)}function ii(i){return typeof i=="function"}function F(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Ws;function Mo(i,e){return i===e?!0:(Ws||(Ws=document.createElement("a")),Ws.href=e,i===Ws.href)}function od(i){return Object.keys(i).length===0}function si(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function je(i){let e;return si(i,t=>e=t)(),e}function q(i,e,t){i.$$.on_destroy.push(si(e,t))}function Le(i,e,t,n){if(i){let o=rd(i,e,t,n);return i[0](o)}}function rd(i,e,t,n){return i[1]&&n?re(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let s=rd(e,t,n,r);i.p(s,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ve(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function sd(i){return i==null?"":i}function Pr(i){return i&&ii(i.destroy)?i.destroy:me}var rr=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Ks=class i{constructor(e){Bi(this,"_listeners","WeakMap"in rr?new WeakMap:void 0);Bi(this,"_observer");Bi(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};Ks.entries="WeakMap"in rr?new WeakMap:void 0;var ld=!1;function ad(){ld=!0}function ud(){ld=!1}function _(i,e){i.appendChild(e)}function ge(i,e,t){let n=cd(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,Gh(n,o)}}function cd(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function Gh(i,e){return _(i.head||i,e),e.sheet}function k(i,e,t){i.insertBefore(e,t||null)}function w(i){i.parentNode&&i.parentNode.removeChild(i)}function _i(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function O(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Oe(i){return document.createTextNode(i)}function Y(){return Oe(" ")}function $e(){return Oe("")}function ke(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ci(i){return function(e){return e.preventDefault(),i.call(this,e)}}function yt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ye(i,e){for(let t in e)f(i,t,e[t])}function fd(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function wi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function K(i,e,t){i.classList.toggle(e,!!t)}function dd(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ft(i,e){return new i(e)}var Ho;function Lo(i){Ho=i}function Er(){if(!Ho)throw new Error("Function called outside component initialization");return Ho}function Ht(i){Er().$$.on_mount.push(i)}function ao(i){Er().$$.on_destroy.push(i)}function Ar(i,e){return Er().$$.context.set(i,e),e}function Mr(i){return Er().$$.context.get(i)}function bs(){return Er().$$.context}function Un(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var sr=[];var be=[],Vr=[],Ia=[],pd=Promise.resolve(),Pa=!1;function Ea(){Pa||(Pa=!0,pd.then(dt))}function pn(){return Ea(),pd}function vs(i){Vr.push(i)}function Ue(i){Ia.push(i)}var Ta=new Set,Lr=0;function dt(){if(Lr!==0)return;let i=Ho;do{try{for(;Lr<sr.length;){let e=sr[Lr];Lr++,Lo(e),$h(e.$$)}}catch(e){throw sr.length=0,Lr=0,e}for(Lo(null),sr.length=0,Lr=0;be.length;)be.pop()();for(let e=0;e<Vr.length;e+=1){let t=Vr[e];Ta.has(t)||(Ta.add(t),t())}Vr.length=0}while(sr.length);for(;Ia.length;)Ia.pop()();Pa=!1,Ta.clear(),Lo(i)}function $h(i){if(i.fragment!==null){i.update(),ut(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(vs)}}function _d(i){let e=[],t=[];Vr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Vr=e}var js=new Set,lr;function se(){lr={r:0,c:[],p:lr}}function le(){lr.r||ut(lr.c),lr=lr.p}function d(i,e){i&&i.i&&(js.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(js.has(i))return;js.add(i),lr.c.push(()=>{js.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function It(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function hd(i,e){p(i,1,1,()=>{e.delete(i.key)})}function gd(i,e,t,n,o,r,s,a,l,u,c,m){let h=i.length,y=r.length,g=h,I={};for(;g--;)I[i[g].key]=g;let C=[],V=new Map,S=new Map,v=[];for(g=y;g--;){let L=m(o,r,g),J=t(L),ue=s.get(J);ue?n&&v.push(()=>ue.p(L,e)):(ue=u(J,L),ue.c()),V.set(J,C[g]=ue),J in I&&S.set(J,Math.abs(g-I[J]))}let E=new Set,W=new Set;function D(L){d(L,1),L.m(a,c),s.set(L.key,L),c=L.first,y--}for(;h&&y;){let L=C[y-1],J=i[h-1],ue=L.key,Q=J.key;L===J?(c=L.first,h--,y--):V.has(Q)?!s.has(ue)||E.has(ue)?D(L):W.has(Q)?h--:S.get(ue)>S.get(Q)?(W.add(ue),D(L)):(E.add(Q),h--):(l(J,s),h--)}for(;h--;){let L=i[h];V.has(L.key)||l(L,s)}for(;y;)D(C[y-1]);return ut(v),C}function Fe(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function qo(i){return typeof i=="object"&&i!==null?i:{}}var eg=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],tg=new Set([...eg]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function N(i){i&&i.c()}function R(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),vs(()=>{let r=i.$$.on_mount.map(Sa).filter(ii);i.$$.on_destroy?i.$$.on_destroy.push(...r):ut(r),i.$$.on_mount=[]}),o.forEach(vs)}function B(i,e){let t=i.$$;t.fragment!==null&&(_d(t.after_update),ut(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function ng(i,e){i.$$.dirty[0]===-1&&(sr.push(i),Ea(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function U(i,e,t,n,o,r,s=null,a=[-1]){let l=Ho;Lo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:xs(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:xs(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...y)=>{let g=y.length?y[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&ng(i,m)),h}):[],u.update(),c=!0,ut(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){ad();let m=fd(e.target);u.fragment&&u.fragment.l(m),m.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),R(i,e.target,e.anchor),ud(),dt()}Lo(l)}var og;typeof HTMLElement=="function"&&(og=class extends HTMLElement{constructor(e,t,n){super();Bi(this,"$$ctor");Bi(this,"$$s");Bi(this,"$$c");Bi(this,"$$cn",!1);Bi(this,"$$d",{});Bi(this,"$$r",!1);Bi(this,"$$p_d",{});Bi(this,"$$l",{});Bi(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return mt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=P("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){k(c,a,m)},d:function(c){c&&w(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=dd(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=Aa(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Tt(Xe({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=Aa(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Aa(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Aa(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var H=class{constructor(){Bi(this,"$$");Bi(this,"$$set")}$destroy(){B(this,1),this.$destroy=me}$on(e,t){if(!ii(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!od(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var bd="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(bd);var UH=require("@vkontakte/videoplayer-core"),Jn=require("@vkontakte/videoplayer-shared"),gh=require("@vkontakte/videoplayer-statistics");var Rr=require("@vkontakte/videoplayer-shared");var rg={isMobile:void 0,defaultLanguage:Rr.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Rr.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,autoplayNext:!0,previewNoEmptySpace:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},vd=i=>(0,Rr.fillWithDefault)(i,rg),yd=i=>Ar("ui-config",i),Nt=()=>Mr("ui-config");var ys="vk_player_debug_panel_opened";var wd="videoplayer",kd="videoplayer";var wo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Cd=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Sd=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Td=new Set(["ShiftRight","ShiftLeft"]);var Id=["TIMELINE"],ws=[...Id,"GRAPH_BUTTON"],Ma=[...Id,"PLAY_BUTTON"],Gs=[...ws,"PLAY_BUTTON"];var uo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(uo||{}),ur={xs:0,s:1,m:2,l:3,xl:4};var Br=[];function Qn(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=me){let t,n=new Set;function o(a){if(F(i,a)&&(i=a,t)){let l=!Br.length;for(let u of n)u[1](),Br.push(u,i);if(l){for(let u=0;u<Br.length;u+=2)Br[u][0](Br[u+1]);Br.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function li(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Qn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=ii(g)?g:me},y=o.map((g,I)=>si(g,C=>{u[I]=C,c&=~(1<<I),l&&h()},()=>{c|=1<<I}));return l=!0,h(),function(){ut(y),m(),l=!1}})}var ks=require("@vkontakte/videoplayer-shared"),Pd=require("@vkontakte/videoplayer-core"),Ed=require("@vkontakte/videoplayer-statistics");var Ys="prod",cr="1.1.49-dev.8ff97d26.0";var fr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Ad=Symbol("storeContext"),Md=Symbol("microStoresContext"),Ld=(i,e)=>{Ar(Ad,i),Ar(Md,e),Ys==="dev"&&(window.app={store:i,microStores:e})},nt=()=>{let i=Mr(Ad);return(0,ks.assertNonNullable)(i,"Store context is empty!"),i},zn=()=>{let i=Mr(Md);return(0,ks.assertNonNullable)(i,"MicroStores context is empty!"),i},Mt=(i,e)=>La(i,i.getValue(),e),La=(i,e,t)=>Qn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),Vd=(i,e,t)=>{var V,S,v,E,W,D;let n=i.info,{width:o,height:r}=je(t.ui.playerSize),s=(S=(V=n.throughputEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?S:0,a=(E=(v=n.rttEstimation$.getValue())==null?void 0:v.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${cr} (core: ${Pd.VERSION}, stat: ${Ed.VERSION}, shared: ${ks.VERSION})`,c=je(t.state.errorLog$),m=c.length?`
|
|
6
|
+
"use strict";var Nh=Object.create;var gs=Object.defineProperty,Dh=Object.defineProperties,Oh=Object.getOwnPropertyDescriptor,Fh=Object.getOwnPropertyDescriptors,Hh=Object.getOwnPropertyNames,td=Object.getOwnPropertySymbols,qh=Object.getPrototypeOf,id=Object.prototype.hasOwnProperty,Uh=Object.prototype.propertyIsEnumerable;var Ca=(i,e,t)=>e in i?gs(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Xe=(i,e)=>{for(var t in e||(e={}))id.call(e,t)&&Ca(i,t,e[t]);if(td)for(var t of td(e))Uh.call(e,t)&&Ca(i,t,e[t]);return i},Tt=(i,e)=>Dh(i,Fh(e));var zh=(i,e)=>{for(var t in e)gs(i,t,{get:e[t],enumerable:!0})},nd=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Hh(e))!id.call(i,o)&&o!==t&&gs(i,o,{get:()=>e[o],enumerable:!(n=Oh(e,o))||n.enumerable});return i};var Wh=(i,e,t)=>(t=i!=null?Nh(qh(i)):{},nd(e||!i||!i.__esModule?gs(t,"default",{value:i,enumerable:!0}):t,i)),xh=i=>nd(gs({},"__esModule",{value:!0}),i);var Bi=(i,e,t)=>Ca(i,typeof e!="symbol"?e+"":e,t);var mt=(i,e,t)=>new Promise((n,o)=>{var r=l=>{try{a(t.next(l))}catch(u){o(u)}},s=l=>{try{a(t.throw(l))}catch(u){o(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,s);a((t=t.apply(i,e)).next())});var L8={};zh(L8,{ControlButtonType:()=>Ps,GridTypes:()=>uo,InterfaceLanguage:()=>rs.InterfaceLanguage,MenuItemType:()=>Ts,VERSION:()=>cr,VKNumericLanguage:()=>rs.VKNumericLanguage,VideoFormat:()=>ga.VideoFormat,VideoQuality:()=>ga.VideoQuality,loadVKLangPack:()=>rs.loadVKLangPack,registerPlayerWebComponent:()=>M8});module.exports=xh(L8);function me(){}function re(i,e){for(let t in e)i[t]=e[t];return i}function Sa(i){return i()}function xs(){return Object.create(null)}function ut(i){i.forEach(Sa)}function ii(i){return typeof i=="function"}function F(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Ws;function Mo(i,e){return i===e?!0:(Ws||(Ws=document.createElement("a")),Ws.href=e,i===Ws.href)}function od(i){return Object.keys(i).length===0}function si(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function je(i){let e;return si(i,t=>e=t)(),e}function q(i,e,t){i.$$.on_destroy.push(si(e,t))}function Le(i,e,t,n){if(i){let o=rd(i,e,t,n);return i[0](o)}}function rd(i,e,t,n){return i[1]&&n?re(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let s=rd(e,t,n,r);i.p(s,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ve(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function sd(i){return i==null?"":i}function Pr(i){return i&&ii(i.destroy)?i.destroy:me}var rr=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Ks=class i{constructor(e){Bi(this,"_listeners","WeakMap"in rr?new WeakMap:void 0);Bi(this,"_observer");Bi(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};Ks.entries="WeakMap"in rr?new WeakMap:void 0;var ld=!1;function ad(){ld=!0}function ud(){ld=!1}function _(i,e){i.appendChild(e)}function ge(i,e,t){let n=cd(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,Gh(n,o)}}function cd(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function Gh(i,e){return _(i.head||i,e),e.sheet}function k(i,e,t){i.insertBefore(e,t||null)}function w(i){i.parentNode&&i.parentNode.removeChild(i)}function _i(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function O(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Oe(i){return document.createTextNode(i)}function Y(){return Oe(" ")}function $e(){return Oe("")}function ke(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ci(i){return function(e){return e.preventDefault(),i.call(this,e)}}function yt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ye(i,e){for(let t in e)f(i,t,e[t])}function fd(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function wi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function K(i,e,t){i.classList.toggle(e,!!t)}function dd(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ft(i,e){return new i(e)}var Ho;function Lo(i){Ho=i}function Er(){if(!Ho)throw new Error("Function called outside component initialization");return Ho}function Ht(i){Er().$$.on_mount.push(i)}function ao(i){Er().$$.on_destroy.push(i)}function Ar(i,e){return Er().$$.context.set(i,e),e}function Mr(i){return Er().$$.context.get(i)}function bs(){return Er().$$.context}function Un(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var sr=[];var be=[],Vr=[],Ia=[],pd=Promise.resolve(),Pa=!1;function Ea(){Pa||(Pa=!0,pd.then(dt))}function pn(){return Ea(),pd}function vs(i){Vr.push(i)}function Ue(i){Ia.push(i)}var Ta=new Set,Lr=0;function dt(){if(Lr!==0)return;let i=Ho;do{try{for(;Lr<sr.length;){let e=sr[Lr];Lr++,Lo(e),$h(e.$$)}}catch(e){throw sr.length=0,Lr=0,e}for(Lo(null),sr.length=0,Lr=0;be.length;)be.pop()();for(let e=0;e<Vr.length;e+=1){let t=Vr[e];Ta.has(t)||(Ta.add(t),t())}Vr.length=0}while(sr.length);for(;Ia.length;)Ia.pop()();Pa=!1,Ta.clear(),Lo(i)}function $h(i){if(i.fragment!==null){i.update(),ut(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(vs)}}function _d(i){let e=[],t=[];Vr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Vr=e}var js=new Set,lr;function se(){lr={r:0,c:[],p:lr}}function le(){lr.r||ut(lr.c),lr=lr.p}function d(i,e){i&&i.i&&(js.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(js.has(i))return;js.add(i),lr.c.push(()=>{js.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function It(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function hd(i,e){p(i,1,1,()=>{e.delete(i.key)})}function gd(i,e,t,n,o,r,s,a,l,u,c,m){let h=i.length,y=r.length,g=h,I={};for(;g--;)I[i[g].key]=g;let C=[],V=new Map,S=new Map,v=[];for(g=y;g--;){let L=m(o,r,g),J=t(L),ue=s.get(J);ue?n&&v.push(()=>ue.p(L,e)):(ue=u(J,L),ue.c()),V.set(J,C[g]=ue),J in I&&S.set(J,Math.abs(g-I[J]))}let E=new Set,W=new Set;function D(L){d(L,1),L.m(a,c),s.set(L.key,L),c=L.first,y--}for(;h&&y;){let L=C[y-1],J=i[h-1],ue=L.key,Q=J.key;L===J?(c=L.first,h--,y--):V.has(Q)?!s.has(ue)||E.has(ue)?D(L):W.has(Q)?h--:S.get(ue)>S.get(Q)?(W.add(ue),D(L)):(E.add(Q),h--):(l(J,s),h--)}for(;h--;){let L=i[h];V.has(L.key)||l(L,s)}for(;y;)D(C[y-1]);return ut(v),C}function Fe(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function qo(i){return typeof i=="object"&&i!==null?i:{}}var eg=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],tg=new Set([...eg]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function N(i){i&&i.c()}function R(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),vs(()=>{let r=i.$$.on_mount.map(Sa).filter(ii);i.$$.on_destroy?i.$$.on_destroy.push(...r):ut(r),i.$$.on_mount=[]}),o.forEach(vs)}function B(i,e){let t=i.$$;t.fragment!==null&&(_d(t.after_update),ut(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function ng(i,e){i.$$.dirty[0]===-1&&(sr.push(i),Ea(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function U(i,e,t,n,o,r,s=null,a=[-1]){let l=Ho;Lo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:xs(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:xs(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...y)=>{let g=y.length?y[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&ng(i,m)),h}):[],u.update(),c=!0,ut(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){ad();let m=fd(e.target);u.fragment&&u.fragment.l(m),m.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),R(i,e.target,e.anchor),ud(),dt()}Lo(l)}var og;typeof HTMLElement=="function"&&(og=class extends HTMLElement{constructor(e,t,n){super();Bi(this,"$$ctor");Bi(this,"$$s");Bi(this,"$$c");Bi(this,"$$cn",!1);Bi(this,"$$d",{});Bi(this,"$$r",!1);Bi(this,"$$p_d",{});Bi(this,"$$l",{});Bi(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return mt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=P("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){k(c,a,m)},d:function(c){c&&w(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=dd(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=Aa(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Tt(Xe({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=Aa(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Aa(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Aa(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var H=class{constructor(){Bi(this,"$$");Bi(this,"$$set")}$destroy(){B(this,1),this.$destroy=me}$on(e,t){if(!ii(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!od(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var bd="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(bd);var UH=require("@vkontakte/videoplayer-core"),Jn=require("@vkontakte/videoplayer-shared"),gh=require("@vkontakte/videoplayer-statistics");var Rr=require("@vkontakte/videoplayer-shared");var rg={isMobile:void 0,defaultLanguage:Rr.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Rr.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,autoplayNext:!0,previewNoEmptySpace:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},vd=i=>(0,Rr.fillWithDefault)(i,rg),yd=i=>Ar("ui-config",i),Nt=()=>Mr("ui-config");var ys="vk_player_debug_panel_opened";var wd="videoplayer",kd="videoplayer";var wo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Cd=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Sd=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Td=new Set(["ShiftRight","ShiftLeft"]);var Id=["TIMELINE"],ws=[...Id,"GRAPH_BUTTON"],Ma=[...Id,"PLAY_BUTTON"],Gs=[...ws,"PLAY_BUTTON"];var uo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(uo||{}),ur={xs:0,s:1,m:2,l:3,xl:4};var Br=[];function Qn(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=me){let t,n=new Set;function o(a){if(F(i,a)&&(i=a,t)){let l=!Br.length;for(let u of n)u[1](),Br.push(u,i);if(l){for(let u=0;u<Br.length;u+=2)Br[u][0](Br[u+1]);Br.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function li(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Qn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=ii(g)?g:me},y=o.map((g,I)=>si(g,C=>{u[I]=C,c&=~(1<<I),l&&h()},()=>{c|=1<<I}));return l=!0,h(),function(){ut(y),m(),l=!1}})}var ks=require("@vkontakte/videoplayer-shared"),Pd=require("@vkontakte/videoplayer-core"),Ed=require("@vkontakte/videoplayer-statistics");var Ys="prod",cr="1.1.49-dev.9d1ae4e1.0";var fr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Ad=Symbol("storeContext"),Md=Symbol("microStoresContext"),Ld=(i,e)=>{Ar(Ad,i),Ar(Md,e),Ys==="dev"&&(window.app={store:i,microStores:e})},nt=()=>{let i=Mr(Ad);return(0,ks.assertNonNullable)(i,"Store context is empty!"),i},zn=()=>{let i=Mr(Md);return(0,ks.assertNonNullable)(i,"MicroStores context is empty!"),i},Mt=(i,e)=>La(i,i.getValue(),e),La=(i,e,t)=>Qn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),Vd=(i,e,t)=>{var V,S,v,E,W,D;let n=i.info,{width:o,height:r}=je(t.ui.playerSize),s=(S=(V=n.throughputEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?S:0,a=(E=(v=n.rttEstimation$.getValue())==null?void 0:v.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${cr} (core: ${Pd.VERSION}, stat: ${Ed.VERSION}, shared: ${ks.VERSION})`,c=je(t.state.errorLog$),m=c.length?`
|
|
7
7
|
`+c.map((L,J)=>{var X;let ue=`${J}) Type: ${L.id}
|
|
8
8
|
`,Q=`Message: ${L.message} (${L.thrown})
|
|
9
9
|
`,ee=`Trace: ${(X=L.thrown)==null?void 0:X.stack}
|
package/es2015.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.49-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.49-dev.9d1ae4e1.0
|
|
3
|
+
* Fri, 08 Nov 2024 07:32:32 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-49/doc/
|
|
5
5
|
*/
|
|
6
|
-
var oh=Object.defineProperty,rh=Object.defineProperties;var sh=Object.getOwnPropertyDescriptors;var Hf=Object.getOwnPropertySymbols;var lh=Object.prototype.hasOwnProperty,ah=Object.prototype.propertyIsEnumerable;var ua=(i,e,t)=>e in i?oh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Xe=(i,e)=>{for(var t in e||(e={}))lh.call(e,t)&&ua(i,t,e[t]);if(Hf)for(var t of Hf(e))ah.call(e,t)&&ua(i,t,e[t]);return i},St=(i,e)=>rh(i,sh(e));var Vi=(i,e,t)=>ua(i,typeof e!="symbol"?e+"":e,t);var mt=(i,e,t)=>new Promise((n,o)=>{var r=l=>{try{a(t.next(l))}catch(u){o(u)}},s=l=>{try{a(t.throw(l))}catch(u){o(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,s);a((t=t.apply(i,e)).next())});function me(){}function re(i,e){for(let t in e)i[t]=e[t];return i}function ca(i){return i()}function Es(){return Object.create(null)}function ut(i){i.forEach(ca)}function ti(i){return typeof i=="function"}function F(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Ps;function To(i,e){return i===e?!0:(Ps||(Ps=document.createElement("a")),Ps.href=e,i===Ps.href)}function qf(i){return Object.keys(i).length===0}function ri(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function je(i){let e;return ri(i,t=>e=t)(),e}function q(i,e,t){i.$$.on_destroy.push(ri(e,t))}function Le(i,e,t,n){if(i){let o=Uf(i,e,t,n);return i[0](o)}}function Uf(i,e,t,n){return i[1]&&n?re(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let s=Uf(e,t,n,r);i.p(s,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ve(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function zf(i){return i==null?"":i}function br(i){return i&&ti(i.destroy)?i.destroy:me}var er=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var As=class i{constructor(e){Vi(this,"_listeners","WeakMap"in er?new WeakMap:void 0);Vi(this,"_observer");Vi(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};As.entries="WeakMap"in er?new WeakMap:void 0;var Wf=!1;function xf(){Wf=!0}function Kf(){Wf=!1}function _(i,e){i.appendChild(e)}function ge(i,e,t){let n=jf(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,fh(n,o)}}function jf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function fh(i,e){return _(i.head||i,e),e.sheet}function k(i,e,t){i.insertBefore(e,t||null)}function w(i){i.parentNode&&i.parentNode.removeChild(i)}function pi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function O(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Oe(i){return document.createTextNode(i)}function Y(){return Oe(" ")}function $e(){return Oe("")}function ke(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ui(i){return function(e){return e.preventDefault(),i.call(this,e)}}function vt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ye(i,e){for(let t in e)f(i,t,e[t])}function Gf(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function vi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function K(i,e,t){i.classList.toggle(e,!!t)}function Yf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ot(i,e){return new i(e)}var Ro;function Io(i){Ro=i}function vr(){if(!Ro)throw new Error("Function called outside component initialization");return Ro}function Ft(i){vr().$$.on_mount.push(i)}function oo(i){vr().$$.on_destroy.push(i)}function yr(i,e){return vr().$$.context.set(i,e),e}function wr(i){return vr().$$.context.get(i)}function ts(){return vr().$$.context}function On(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var tr=[];var be=[],Cr=[],da=[],Zf=Promise.resolve(),ma=!1;function pa(){ma||(ma=!0,Zf.then(dt))}function cn(){return pa(),Zf}function is(i){Cr.push(i)}function Ue(i){da.push(i)}var fa=new Set,kr=0;function dt(){if(kr!==0)return;let i=Ro;do{try{for(;kr<tr.length;){let e=tr[kr];kr++,Io(e),gh(e.$$)}}catch(e){throw tr.length=0,kr=0,e}for(Io(null),tr.length=0,kr=0;be.length;)be.pop()();for(let e=0;e<Cr.length;e+=1){let t=Cr[e];fa.has(t)||(fa.add(t),t())}Cr.length=0}while(tr.length);for(;da.length;)da.pop()();ma=!1,fa.clear(),Io(i)}function gh(i){if(i.fragment!==null){i.update(),ut(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(is)}}function Xf(i){let e=[],t=[];Cr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Cr=e}var Ms=new Set,ir;function se(){ir={r:0,c:[],p:ir}}function le(){ir.r||ut(ir.c),ir=ir.p}function d(i,e){i&&i.i&&(Ms.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Ms.has(i))return;Ms.add(i),ir.c.push(()=>{Ms.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Tt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Jf(i,e){p(i,1,1,()=>{e.delete(i.key)})}function $f(i,e,t,n,o,r,s,a,l,u,c,m){let h=i.length,y=r.length,g=h,I={};for(;g--;)I[i[g].key]=g;let C=[],V=new Map,S=new Map,v=[];for(g=y;g--;){let L=m(o,r,g),J=t(L),ue=s.get(J);ue?n&&v.push(()=>ue.p(L,e)):(ue=u(J,L),ue.c()),V.set(J,C[g]=ue),J in I&&S.set(J,Math.abs(g-I[J]))}let E=new Set,W=new Set;function D(L){d(L,1),L.m(a,c),s.set(L.key,L),c=L.first,y--}for(;h&&y;){let L=C[y-1],J=i[h-1],ue=L.key,Q=J.key;L===J?(c=L.first,h--,y--):V.has(Q)?!s.has(ue)||E.has(ue)?D(L):W.has(Q)?h--:S.get(ue)>S.get(Q)?(W.add(ue),D(L)):(E.add(Q),h--):(l(J,s),h--)}for(;h--;){let L=i[h];V.has(L.key)||l(L,s)}for(;y;)D(C[y-1]);return ut(v),C}function Fe(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Bo(i){return typeof i=="object"&&i!==null?i:{}}var bh=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],vh=new Set([...bh]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function N(i){i&&i.c()}function R(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),is(()=>{let r=i.$$.on_mount.map(ca).filter(ti);i.$$.on_destroy?i.$$.on_destroy.push(...r):ut(r),i.$$.on_mount=[]}),o.forEach(is)}function B(i,e){let t=i.$$;t.fragment!==null&&(Xf(t.after_update),ut(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function wh(i,e){i.$$.dirty[0]===-1&&(tr.push(i),pa(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function U(i,e,t,n,o,r,s=null,a=[-1]){let l=Ro;Io(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:Es(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Es(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...y)=>{let g=y.length?y[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&wh(i,m)),h}):[],u.update(),c=!0,ut(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){xf();let m=Gf(e.target);u.fragment&&u.fragment.l(m),m.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),R(i,e.target,e.anchor),Kf(),dt()}Io(l)}var kh;typeof HTMLElement=="function"&&(kh=class extends HTMLElement{constructor(e,t,n){super();Vi(this,"$$ctor");Vi(this,"$$s");Vi(this,"$$c");Vi(this,"$$cn",!1);Vi(this,"$$d",{});Vi(this,"$$r",!1);Vi(this,"$$p_d",{});Vi(this,"$$l",{});Vi(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return mt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=P("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){k(c,a,m)},d:function(c){c&&w(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Yf(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=_a(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:St(Xe({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=_a(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=_a(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function _a(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var H=class{constructor(){Vi(this,"$$");Vi(this,"$$set")}$destroy(){B(this,1),this.$destroy=me}$on(e,t){if(!ti(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!qf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var ed="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ed);import"@vkontakte/videoplayer-core";import{noop as ms,safeStorage as C8,throttleFn as S8,clientChecker as T8}from"@vkontakte/videoplayer-shared";import{SeekAction as I8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as Ch,fillWithDefault as Sh,VideoQuality as Th}from"@vkontakte/videoplayer-shared";var Ih={isMobile:void 0,defaultLanguage:Ch.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Th.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,autoplayNext:!0,previewNoEmptySpace:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},td=i=>Sh(i,Ih),id=i=>yr("ui-config",i),Bt=()=>wr("ui-config");var ns="vk_player_debug_panel_opened";var nd="videoplayer",od="videoplayer";var go={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},rd=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),sd=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),ld=new Set(["ShiftRight","ShiftLeft"]);var ad=["TIMELINE"],os=[...ad,"GRAPH_BUTTON"],ha=[...ad,"PLAY_BUTTON"],Ls=[...os,"PLAY_BUTTON"];var bo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(bo||{}),or={xs:0,s:1,m:2,l:3,xl:4};var Sr=[];function jn(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=me){let t,n=new Set;function o(a){if(F(i,a)&&(i=a,t)){let l=!Sr.length;for(let u of n)u[1](),Sr.push(u,i);if(l){for(let u=0;u<Sr.length;u+=2)Sr[u][0](Sr[u+1]);Sr.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function si(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return jn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=ti(g)?g:me},y=o.map((g,I)=>ri(g,C=>{u[I]=C,c&=~(1<<I),l&&h()},()=>{c|=1<<I}));return l=!0,h(),function(){ut(y),m(),l=!1}})}import{assertNonNullable as ud,VERSION as Ph}from"@vkontakte/videoplayer-shared";import{VERSION as Eh}from"@vkontakte/videoplayer-core";import{VERSION as Ah}from"@vkontakte/videoplayer-statistics";var Vs="prod",Tr="1.1.49-dev.8ff97d26.0";var rr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var cd=Symbol("storeContext"),fd=Symbol("microStoresContext"),dd=(i,e)=>{yr(cd,i),yr(fd,e),Vs==="dev"&&(window.app={store:i,microStores:e})},nt=()=>{let i=wr(cd);return ud(i,"Store context is empty!"),i},Fn=()=>{let i=wr(fd);return ud(i,"MicroStores context is empty!"),i},At=(i,e)=>ga(i,i.getValue(),e),ga=(i,e,t)=>jn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),md=(i,e,t)=>{var V,S,v,E,W,D;let n=i.info,{width:o,height:r}=je(t.ui.playerSize),s=(S=(V=n.throughputEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?S:0,a=(E=(v=n.rttEstimation$.getValue())==null?void 0:v.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Tr} (core: ${Eh}, stat: ${Ah}, shared: ${Ph})`,c=je(t.state.errorLog$),m=c.length?`
|
|
6
|
+
var oh=Object.defineProperty,rh=Object.defineProperties;var sh=Object.getOwnPropertyDescriptors;var Hf=Object.getOwnPropertySymbols;var lh=Object.prototype.hasOwnProperty,ah=Object.prototype.propertyIsEnumerable;var ua=(i,e,t)=>e in i?oh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Xe=(i,e)=>{for(var t in e||(e={}))lh.call(e,t)&&ua(i,t,e[t]);if(Hf)for(var t of Hf(e))ah.call(e,t)&&ua(i,t,e[t]);return i},St=(i,e)=>rh(i,sh(e));var Vi=(i,e,t)=>ua(i,typeof e!="symbol"?e+"":e,t);var mt=(i,e,t)=>new Promise((n,o)=>{var r=l=>{try{a(t.next(l))}catch(u){o(u)}},s=l=>{try{a(t.throw(l))}catch(u){o(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,s);a((t=t.apply(i,e)).next())});function me(){}function re(i,e){for(let t in e)i[t]=e[t];return i}function ca(i){return i()}function Es(){return Object.create(null)}function ut(i){i.forEach(ca)}function ti(i){return typeof i=="function"}function F(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Ps;function To(i,e){return i===e?!0:(Ps||(Ps=document.createElement("a")),Ps.href=e,i===Ps.href)}function qf(i){return Object.keys(i).length===0}function ri(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function je(i){let e;return ri(i,t=>e=t)(),e}function q(i,e,t){i.$$.on_destroy.push(ri(e,t))}function Le(i,e,t,n){if(i){let o=Uf(i,e,t,n);return i[0](o)}}function Uf(i,e,t,n){return i[1]&&n?re(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let s=Uf(e,t,n,r);i.p(s,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ve(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function zf(i){return i==null?"":i}function br(i){return i&&ti(i.destroy)?i.destroy:me}var er=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var As=class i{constructor(e){Vi(this,"_listeners","WeakMap"in er?new WeakMap:void 0);Vi(this,"_observer");Vi(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};As.entries="WeakMap"in er?new WeakMap:void 0;var Wf=!1;function xf(){Wf=!0}function Kf(){Wf=!1}function _(i,e){i.appendChild(e)}function ge(i,e,t){let n=jf(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,fh(n,o)}}function jf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function fh(i,e){return _(i.head||i,e),e.sheet}function k(i,e,t){i.insertBefore(e,t||null)}function w(i){i.parentNode&&i.parentNode.removeChild(i)}function pi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function O(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Oe(i){return document.createTextNode(i)}function Y(){return Oe(" ")}function $e(){return Oe("")}function ke(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ui(i){return function(e){return e.preventDefault(),i.call(this,e)}}function vt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ye(i,e){for(let t in e)f(i,t,e[t])}function Gf(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function vi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function K(i,e,t){i.classList.toggle(e,!!t)}function Yf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ot(i,e){return new i(e)}var Ro;function Io(i){Ro=i}function vr(){if(!Ro)throw new Error("Function called outside component initialization");return Ro}function Ft(i){vr().$$.on_mount.push(i)}function oo(i){vr().$$.on_destroy.push(i)}function yr(i,e){return vr().$$.context.set(i,e),e}function wr(i){return vr().$$.context.get(i)}function ts(){return vr().$$.context}function On(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var tr=[];var be=[],Cr=[],da=[],Zf=Promise.resolve(),ma=!1;function pa(){ma||(ma=!0,Zf.then(dt))}function cn(){return pa(),Zf}function is(i){Cr.push(i)}function Ue(i){da.push(i)}var fa=new Set,kr=0;function dt(){if(kr!==0)return;let i=Ro;do{try{for(;kr<tr.length;){let e=tr[kr];kr++,Io(e),gh(e.$$)}}catch(e){throw tr.length=0,kr=0,e}for(Io(null),tr.length=0,kr=0;be.length;)be.pop()();for(let e=0;e<Cr.length;e+=1){let t=Cr[e];fa.has(t)||(fa.add(t),t())}Cr.length=0}while(tr.length);for(;da.length;)da.pop()();ma=!1,fa.clear(),Io(i)}function gh(i){if(i.fragment!==null){i.update(),ut(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(is)}}function Xf(i){let e=[],t=[];Cr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Cr=e}var Ms=new Set,ir;function se(){ir={r:0,c:[],p:ir}}function le(){ir.r||ut(ir.c),ir=ir.p}function d(i,e){i&&i.i&&(Ms.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Ms.has(i))return;Ms.add(i),ir.c.push(()=>{Ms.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Tt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Jf(i,e){p(i,1,1,()=>{e.delete(i.key)})}function $f(i,e,t,n,o,r,s,a,l,u,c,m){let h=i.length,y=r.length,g=h,I={};for(;g--;)I[i[g].key]=g;let C=[],V=new Map,S=new Map,v=[];for(g=y;g--;){let L=m(o,r,g),J=t(L),ue=s.get(J);ue?n&&v.push(()=>ue.p(L,e)):(ue=u(J,L),ue.c()),V.set(J,C[g]=ue),J in I&&S.set(J,Math.abs(g-I[J]))}let E=new Set,W=new Set;function D(L){d(L,1),L.m(a,c),s.set(L.key,L),c=L.first,y--}for(;h&&y;){let L=C[y-1],J=i[h-1],ue=L.key,Q=J.key;L===J?(c=L.first,h--,y--):V.has(Q)?!s.has(ue)||E.has(ue)?D(L):W.has(Q)?h--:S.get(ue)>S.get(Q)?(W.add(ue),D(L)):(E.add(Q),h--):(l(J,s),h--)}for(;h--;){let L=i[h];V.has(L.key)||l(L,s)}for(;y;)D(C[y-1]);return ut(v),C}function Fe(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Bo(i){return typeof i=="object"&&i!==null?i:{}}var bh=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],vh=new Set([...bh]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function N(i){i&&i.c()}function R(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),is(()=>{let r=i.$$.on_mount.map(ca).filter(ti);i.$$.on_destroy?i.$$.on_destroy.push(...r):ut(r),i.$$.on_mount=[]}),o.forEach(is)}function B(i,e){let t=i.$$;t.fragment!==null&&(Xf(t.after_update),ut(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function wh(i,e){i.$$.dirty[0]===-1&&(tr.push(i),pa(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function U(i,e,t,n,o,r,s=null,a=[-1]){let l=Ro;Io(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:Es(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Es(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...y)=>{let g=y.length?y[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&wh(i,m)),h}):[],u.update(),c=!0,ut(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){xf();let m=Gf(e.target);u.fragment&&u.fragment.l(m),m.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),R(i,e.target,e.anchor),Kf(),dt()}Io(l)}var kh;typeof HTMLElement=="function"&&(kh=class extends HTMLElement{constructor(e,t,n){super();Vi(this,"$$ctor");Vi(this,"$$s");Vi(this,"$$c");Vi(this,"$$cn",!1);Vi(this,"$$d",{});Vi(this,"$$r",!1);Vi(this,"$$p_d",{});Vi(this,"$$l",{});Vi(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return mt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=P("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){k(c,a,m)},d:function(c){c&&w(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Yf(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=_a(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:St(Xe({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=_a(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=_a(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function _a(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var H=class{constructor(){Vi(this,"$$");Vi(this,"$$set")}$destroy(){B(this,1),this.$destroy=me}$on(e,t){if(!ti(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!qf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var ed="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ed);import"@vkontakte/videoplayer-core";import{noop as ms,safeStorage as C8,throttleFn as S8,clientChecker as T8}from"@vkontakte/videoplayer-shared";import{SeekAction as I8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as Ch,fillWithDefault as Sh,VideoQuality as Th}from"@vkontakte/videoplayer-shared";var Ih={isMobile:void 0,defaultLanguage:Ch.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Th.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,autoplayNext:!0,previewNoEmptySpace:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},td=i=>Sh(i,Ih),id=i=>yr("ui-config",i),Bt=()=>wr("ui-config");var ns="vk_player_debug_panel_opened";var nd="videoplayer",od="videoplayer";var go={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},rd=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),sd=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),ld=new Set(["ShiftRight","ShiftLeft"]);var ad=["TIMELINE"],os=[...ad,"GRAPH_BUTTON"],ha=[...ad,"PLAY_BUTTON"],Ls=[...os,"PLAY_BUTTON"];var bo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(bo||{}),or={xs:0,s:1,m:2,l:3,xl:4};var Sr=[];function jn(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=me){let t,n=new Set;function o(a){if(F(i,a)&&(i=a,t)){let l=!Sr.length;for(let u of n)u[1](),Sr.push(u,i);if(l){for(let u=0;u<Sr.length;u+=2)Sr[u][0](Sr[u+1]);Sr.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function si(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return jn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=ti(g)?g:me},y=o.map((g,I)=>ri(g,C=>{u[I]=C,c&=~(1<<I),l&&h()},()=>{c|=1<<I}));return l=!0,h(),function(){ut(y),m(),l=!1}})}import{assertNonNullable as ud,VERSION as Ph}from"@vkontakte/videoplayer-shared";import{VERSION as Eh}from"@vkontakte/videoplayer-core";import{VERSION as Ah}from"@vkontakte/videoplayer-statistics";var Vs="prod",Tr="1.1.49-dev.9d1ae4e1.0";var rr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var cd=Symbol("storeContext"),fd=Symbol("microStoresContext"),dd=(i,e)=>{yr(cd,i),yr(fd,e),Vs==="dev"&&(window.app={store:i,microStores:e})},nt=()=>{let i=wr(cd);return ud(i,"Store context is empty!"),i},Fn=()=>{let i=wr(fd);return ud(i,"MicroStores context is empty!"),i},At=(i,e)=>ga(i,i.getValue(),e),ga=(i,e,t)=>jn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),md=(i,e,t)=>{var V,S,v,E,W,D;let n=i.info,{width:o,height:r}=je(t.ui.playerSize),s=(S=(V=n.throughputEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?S:0,a=(E=(v=n.rttEstimation$.getValue())==null?void 0:v.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Tr} (core: ${Eh}, stat: ${Ah}, shared: ${Ph})`,c=je(t.state.errorLog$),m=c.length?`
|
|
7
7
|
`+c.map((L,J)=>{var X;let ue=`${J}) Type: ${L.id}
|
|
8
8
|
`,Q=`Message: ${L.message} (${L.thrown})
|
|
9
9
|
`,ee=`Trace: ${(X=L.thrown)==null?void 0:X.stack}
|
package/es2018.cjs.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.49-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.49-dev.9d1ae4e1.0
|
|
3
|
+
* Fri, 08 Nov 2024 07:32:32 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-49/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var Ah=Object.create;var ps=Object.defineProperty;var Mh=Object.getOwnPropertyDescriptor;var Lh=Object.getOwnPropertyNames;var Vh=Object.getPrototypeOf,Rh=Object.prototype.hasOwnProperty;var Bh=(i,e,t)=>e in i?ps(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Nh=(i,e)=>{for(var t in e)ps(i,t,{get:e[t],enumerable:!0})},Xf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Lh(e))!Rh.call(i,o)&&o!==t&&ps(i,o,{get:()=>e[o],enumerable:!(n=Mh(e,o))||n.enumerable});return i};var Dh=(i,e,t)=>(t=i!=null?Ah(Vh(i)):{},Xf(e||!i||!i.__esModule?ps(t,"default",{value:i,enumerable:!0}):t,i)),Oh=i=>Xf(ps({},"__esModule",{value:!0}),i);var Li=(i,e,t)=>Bh(i,typeof e!="symbol"?e+"":e,t);var S8={};Nh(S8,{ControlButtonType:()=>Ss,GridTypes:()=>so,InterfaceLanguage:()=>is.InterfaceLanguage,MenuItemType:()=>ks,VERSION:()=>lr,VKNumericLanguage:()=>is.VKNumericLanguage,VideoFormat:()=>pa.VideoFormat,VideoQuality:()=>pa.VideoQuality,loadVKLangPack:()=>is.loadVKLangPack,registerPlayerWebComponent:()=>C8});module.exports=Oh(S8);function me(){}function re(i,e){for(let t in e)i[t]=e[t];return i}function ya(i){return i()}function Us(){return Object.create(null)}function at(i){i.forEach(ya)}function $t(i){return typeof i=="function"}function F(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var qs;function Po(i,e){return i===e?!0:(qs||(qs=document.createElement("a")),qs.href=e,i===qs.href)}function Jf(i){return Object.keys(i).length===0}function ni(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function je(i){let e;return ni(i,t=>e=t)(),e}function q(i,e,t){i.$$.on_destroy.push(ni(e,t))}function Le(i,e,t,n){if(i){let o=$f(i,e,t,n);return i[0](o)}}function $f(i,e,t,n){return i[1]&&n?re(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let s=$f(e,t,n,r);i.p(s,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ve(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function ed(i){return i==null?"":i}function Sr(i){return i&&$t(i.destroy)?i.destroy:me}var ir=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var zs=class i{constructor(e){Li(this,"_listeners","WeakMap"in ir?new WeakMap:void 0);Li(this,"_observer");Li(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};zs.entries="WeakMap"in ir?new WeakMap:void 0;var td=!1;function id(){td=!0}function nd(){td=!1}function _(i,e){i.appendChild(e)}function ge(i,e,t){let n=od(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,qh(n,o)}}function od(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function qh(i,e){return _(i.head||i,e),e.sheet}function k(i,e,t){i.insertBefore(e,t||null)}function w(i){i.parentNode&&i.parentNode.removeChild(i)}function di(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function O(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Oe(i){return document.createTextNode(i)}function Y(){return Oe(" ")}function Je(){return Oe("")}function ke(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function li(i){return function(e){return e.preventDefault(),i.call(this,e)}}function bt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ye(i,e){for(let t in e)f(i,t,e[t])}function rd(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function bi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function K(i,e,t){i.classList.toggle(e,!!t)}function sd(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Nt(i,e){return new i(e)}var Do;function Eo(i){Do=i}function Tr(){if(!Do)throw new Error("Function called outside component initialization");return Do}function Dt(i){Tr().$$.on_mount.push(i)}function ro(i){Tr().$$.on_destroy.push(i)}function Ir(i,e){return Tr().$$.context.set(i,e),e}function Pr(i){return Tr().$$.context.get(i)}function _s(){return Tr().$$.context}function Fn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var nr=[];var be=[],Ar=[],ka=[],ad=Promise.resolve(),Ca=!1;function Sa(){Ca||(Ca=!0,ad.then(ft))}function fn(){return Sa(),ad}function hs(i){Ar.push(i)}function Ue(i){ka.push(i)}var wa=new Set,Er=0;function ft(){if(Er!==0)return;let i=Do;do{try{for(;Er<nr.length;){let e=nr[Er];Er++,Eo(e),jh(e.$$)}}catch(e){throw nr.length=0,Er=0,e}for(Eo(null),nr.length=0,Er=0;be.length;)be.pop()();for(let e=0;e<Ar.length;e+=1){let t=Ar[e];wa.has(t)||(wa.add(t),t())}Ar.length=0}while(nr.length);for(;ka.length;)ka.pop()();Ca=!1,wa.clear(),Eo(i)}function jh(i){if(i.fragment!==null){i.update(),at(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(hs)}}function ud(i){let e=[],t=[];Ar.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Ar=e}var Ws=new Set,or;function se(){or={r:0,c:[],p:or}}function le(){or.r||at(or.c),or=or.p}function d(i,e){i&&i.i&&(Ws.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Ws.has(i))return;Ws.add(i),or.c.push(()=>{Ws.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Ct(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function cd(i,e){p(i,1,1,()=>{e.delete(i.key)})}function fd(i,e,t,n,o,r,s,a,l,u,c,m){let h=i.length,y=r.length,g=h,I={};for(;g--;)I[i[g].key]=g;let C=[],V=new Map,S=new Map,v=[];for(g=y;g--;){let L=m(o,r,g),J=t(L),ue=s.get(J);ue?n&&v.push(()=>ue.p(L,e)):(ue=u(J,L),ue.c()),V.set(J,C[g]=ue),J in I&&S.set(J,Math.abs(g-I[J]))}let E=new Set,W=new Set;function D(L){d(L,1),L.m(a,c),s.set(L.key,L),c=L.first,y--}for(;h&&y;){let L=C[y-1],J=i[h-1],ue=L.key,Q=J.key;L===J?(c=L.first,h--,y--):V.has(Q)?!s.has(ue)||E.has(ue)?D(L):W.has(Q)?h--:S.get(ue)>S.get(Q)?(W.add(ue),D(L)):(E.add(Q),h--):(l(J,s),h--)}for(;h--;){let L=i[h];V.has(L.key)||l(L,s)}for(;y;)D(C[y-1]);return at(v),C}function Fe(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Oo(i){return typeof i=="object"&&i!==null?i:{}}var Gh=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],Yh=new Set([...Gh]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function N(i){i&&i.c()}function R(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),hs(()=>{let r=i.$$.on_mount.map(ya).filter($t);i.$$.on_destroy?i.$$.on_destroy.push(...r):at(r),i.$$.on_mount=[]}),o.forEach(hs)}function B(i,e){let t=i.$$;t.fragment!==null&&(ud(t.after_update),at(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Zh(i,e){i.$$.dirty[0]===-1&&(nr.push(i),Sa(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function U(i,e,t,n,o,r,s=null,a=[-1]){let l=Do;Eo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:Us(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Us(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...y)=>{let g=y.length?y[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&Zh(i,m)),h}):[],u.update(),c=!0,at(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){id();let m=rd(e.target);u.fragment&&u.fragment.l(m),m.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),R(i,e.target,e.anchor),nd(),ft()}Eo(l)}var Xh;typeof HTMLElement=="function"&&(Xh=class extends HTMLElement{constructor(e,t,n){super();Li(this,"$$ctor");Li(this,"$$s");Li(this,"$$c");Li(this,"$$cn",!1);Li(this,"$$d",{});Li(this,"$$r",!1);Li(this,"$$p_d",{});Li(this,"$$l",{});Li(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=P("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){k(c,a,m)},d:function(c){c&&w(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=sd(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=Ta(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=Ta(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ta(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ta(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var H=class{constructor(){Li(this,"$$");Li(this,"$$set")}$destroy(){B(this,1),this.$destroy=me}$on(e,t){if(!$t(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Jf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var dd="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(dd);var _H=require("@vkontakte/videoplayer-core"),Qn=require("@vkontakte/videoplayer-shared"),fh=require("@vkontakte/videoplayer-statistics");var Mr=require("@vkontakte/videoplayer-shared");var Jh={isMobile:void 0,defaultLanguage:Mr.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Mr.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,autoplayNext:!0,previewNoEmptySpace:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},md=i=>(0,Mr.fillWithDefault)(i,Jh),pd=i=>Ir("ui-config",i),Vt=()=>Pr("ui-config");var gs="vk_player_debug_panel_opened";var _d="videoplayer",hd="videoplayer";var bo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},gd=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),bd=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),vd=new Set(["ShiftRight","ShiftLeft"]);var yd=["TIMELINE"],bs=[...yd,"GRAPH_BUTTON"],Ia=[...yd,"PLAY_BUTTON"],xs=[...bs,"PLAY_BUTTON"];var so=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(so||{}),sr={xs:0,s:1,m:2,l:3,xl:4};var Lr=[];function jn(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=me){let t,n=new Set;function o(a){if(F(i,a)&&(i=a,t)){let l=!Lr.length;for(let u of n)u[1](),Lr.push(u,i);if(l){for(let u=0;u<Lr.length;u+=2)Lr[u][0](Lr[u+1]);Lr.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function oi(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return jn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=$t(g)?g:me},y=o.map((g,I)=>ni(g,C=>{u[I]=C,c&=~(1<<I),l&&h()},()=>{c|=1<<I}));return l=!0,h(),function(){at(y),m(),l=!1}})}var vs=require("@vkontakte/videoplayer-shared"),wd=require("@vkontakte/videoplayer-core"),kd=require("@vkontakte/videoplayer-statistics");var Ks="prod",lr="1.1.49-dev.8ff97d26.0";var ar=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Cd=Symbol("storeContext"),Sd=Symbol("microStoresContext"),Td=(i,e)=>{Ir(Cd,i),Ir(Sd,e),Ks==="dev"&&(window.app={store:i,microStores:e})},it=()=>{let i=Pr(Cd);return(0,vs.assertNonNullable)(i,"Store context is empty!"),i},Hn=()=>{let i=Pr(Sd);return(0,vs.assertNonNullable)(i,"MicroStores context is empty!"),i},Pt=(i,e)=>Pa(i,i.getValue(),e),Pa=(i,e,t)=>jn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),Id=(i,e,t)=>{var V,S,v,E,W,D;let n=i.info,{width:o,height:r}=je(t.ui.playerSize),s=(S=(V=n.throughputEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?S:0,a=(E=(v=n.rttEstimation$.getValue())==null?void 0:v.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${lr} (core: ${wd.VERSION}, stat: ${kd.VERSION}, shared: ${vs.VERSION})`,c=je(t.state.errorLog$),m=c.length?`
|
|
6
|
+
"use strict";var Ah=Object.create;var ps=Object.defineProperty;var Mh=Object.getOwnPropertyDescriptor;var Lh=Object.getOwnPropertyNames;var Vh=Object.getPrototypeOf,Rh=Object.prototype.hasOwnProperty;var Bh=(i,e,t)=>e in i?ps(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Nh=(i,e)=>{for(var t in e)ps(i,t,{get:e[t],enumerable:!0})},Xf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Lh(e))!Rh.call(i,o)&&o!==t&&ps(i,o,{get:()=>e[o],enumerable:!(n=Mh(e,o))||n.enumerable});return i};var Dh=(i,e,t)=>(t=i!=null?Ah(Vh(i)):{},Xf(e||!i||!i.__esModule?ps(t,"default",{value:i,enumerable:!0}):t,i)),Oh=i=>Xf(ps({},"__esModule",{value:!0}),i);var Li=(i,e,t)=>Bh(i,typeof e!="symbol"?e+"":e,t);var S8={};Nh(S8,{ControlButtonType:()=>Ss,GridTypes:()=>so,InterfaceLanguage:()=>is.InterfaceLanguage,MenuItemType:()=>ks,VERSION:()=>lr,VKNumericLanguage:()=>is.VKNumericLanguage,VideoFormat:()=>pa.VideoFormat,VideoQuality:()=>pa.VideoQuality,loadVKLangPack:()=>is.loadVKLangPack,registerPlayerWebComponent:()=>C8});module.exports=Oh(S8);function me(){}function re(i,e){for(let t in e)i[t]=e[t];return i}function ya(i){return i()}function Us(){return Object.create(null)}function at(i){i.forEach(ya)}function $t(i){return typeof i=="function"}function F(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var qs;function Po(i,e){return i===e?!0:(qs||(qs=document.createElement("a")),qs.href=e,i===qs.href)}function Jf(i){return Object.keys(i).length===0}function ni(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function je(i){let e;return ni(i,t=>e=t)(),e}function q(i,e,t){i.$$.on_destroy.push(ni(e,t))}function Le(i,e,t,n){if(i){let o=$f(i,e,t,n);return i[0](o)}}function $f(i,e,t,n){return i[1]&&n?re(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let s=$f(e,t,n,r);i.p(s,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ve(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function ed(i){return i==null?"":i}function Sr(i){return i&&$t(i.destroy)?i.destroy:me}var ir=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var zs=class i{constructor(e){Li(this,"_listeners","WeakMap"in ir?new WeakMap:void 0);Li(this,"_observer");Li(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};zs.entries="WeakMap"in ir?new WeakMap:void 0;var td=!1;function id(){td=!0}function nd(){td=!1}function _(i,e){i.appendChild(e)}function ge(i,e,t){let n=od(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,qh(n,o)}}function od(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function qh(i,e){return _(i.head||i,e),e.sheet}function k(i,e,t){i.insertBefore(e,t||null)}function w(i){i.parentNode&&i.parentNode.removeChild(i)}function di(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function O(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Oe(i){return document.createTextNode(i)}function Y(){return Oe(" ")}function Je(){return Oe("")}function ke(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function li(i){return function(e){return e.preventDefault(),i.call(this,e)}}function bt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ye(i,e){for(let t in e)f(i,t,e[t])}function rd(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function bi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function K(i,e,t){i.classList.toggle(e,!!t)}function sd(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Nt(i,e){return new i(e)}var Do;function Eo(i){Do=i}function Tr(){if(!Do)throw new Error("Function called outside component initialization");return Do}function Dt(i){Tr().$$.on_mount.push(i)}function ro(i){Tr().$$.on_destroy.push(i)}function Ir(i,e){return Tr().$$.context.set(i,e),e}function Pr(i){return Tr().$$.context.get(i)}function _s(){return Tr().$$.context}function Fn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var nr=[];var be=[],Ar=[],ka=[],ad=Promise.resolve(),Ca=!1;function Sa(){Ca||(Ca=!0,ad.then(ft))}function fn(){return Sa(),ad}function hs(i){Ar.push(i)}function Ue(i){ka.push(i)}var wa=new Set,Er=0;function ft(){if(Er!==0)return;let i=Do;do{try{for(;Er<nr.length;){let e=nr[Er];Er++,Eo(e),jh(e.$$)}}catch(e){throw nr.length=0,Er=0,e}for(Eo(null),nr.length=0,Er=0;be.length;)be.pop()();for(let e=0;e<Ar.length;e+=1){let t=Ar[e];wa.has(t)||(wa.add(t),t())}Ar.length=0}while(nr.length);for(;ka.length;)ka.pop()();Ca=!1,wa.clear(),Eo(i)}function jh(i){if(i.fragment!==null){i.update(),at(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(hs)}}function ud(i){let e=[],t=[];Ar.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Ar=e}var Ws=new Set,or;function se(){or={r:0,c:[],p:or}}function le(){or.r||at(or.c),or=or.p}function d(i,e){i&&i.i&&(Ws.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Ws.has(i))return;Ws.add(i),or.c.push(()=>{Ws.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Ct(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function cd(i,e){p(i,1,1,()=>{e.delete(i.key)})}function fd(i,e,t,n,o,r,s,a,l,u,c,m){let h=i.length,y=r.length,g=h,I={};for(;g--;)I[i[g].key]=g;let C=[],V=new Map,S=new Map,v=[];for(g=y;g--;){let L=m(o,r,g),J=t(L),ue=s.get(J);ue?n&&v.push(()=>ue.p(L,e)):(ue=u(J,L),ue.c()),V.set(J,C[g]=ue),J in I&&S.set(J,Math.abs(g-I[J]))}let E=new Set,W=new Set;function D(L){d(L,1),L.m(a,c),s.set(L.key,L),c=L.first,y--}for(;h&&y;){let L=C[y-1],J=i[h-1],ue=L.key,Q=J.key;L===J?(c=L.first,h--,y--):V.has(Q)?!s.has(ue)||E.has(ue)?D(L):W.has(Q)?h--:S.get(ue)>S.get(Q)?(W.add(ue),D(L)):(E.add(Q),h--):(l(J,s),h--)}for(;h--;){let L=i[h];V.has(L.key)||l(L,s)}for(;y;)D(C[y-1]);return at(v),C}function Fe(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Oo(i){return typeof i=="object"&&i!==null?i:{}}var Gh=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],Yh=new Set([...Gh]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function N(i){i&&i.c()}function R(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),hs(()=>{let r=i.$$.on_mount.map(ya).filter($t);i.$$.on_destroy?i.$$.on_destroy.push(...r):at(r),i.$$.on_mount=[]}),o.forEach(hs)}function B(i,e){let t=i.$$;t.fragment!==null&&(ud(t.after_update),at(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Zh(i,e){i.$$.dirty[0]===-1&&(nr.push(i),Sa(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function U(i,e,t,n,o,r,s=null,a=[-1]){let l=Do;Eo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:Us(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Us(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...y)=>{let g=y.length?y[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&Zh(i,m)),h}):[],u.update(),c=!0,at(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){id();let m=rd(e.target);u.fragment&&u.fragment.l(m),m.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),R(i,e.target,e.anchor),nd(),ft()}Eo(l)}var Xh;typeof HTMLElement=="function"&&(Xh=class extends HTMLElement{constructor(e,t,n){super();Li(this,"$$ctor");Li(this,"$$s");Li(this,"$$c");Li(this,"$$cn",!1);Li(this,"$$d",{});Li(this,"$$r",!1);Li(this,"$$p_d",{});Li(this,"$$l",{});Li(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=P("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){k(c,a,m)},d:function(c){c&&w(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=sd(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=Ta(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=Ta(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ta(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ta(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var H=class{constructor(){Li(this,"$$");Li(this,"$$set")}$destroy(){B(this,1),this.$destroy=me}$on(e,t){if(!$t(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Jf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var dd="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(dd);var _H=require("@vkontakte/videoplayer-core"),Qn=require("@vkontakte/videoplayer-shared"),fh=require("@vkontakte/videoplayer-statistics");var Mr=require("@vkontakte/videoplayer-shared");var Jh={isMobile:void 0,defaultLanguage:Mr.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Mr.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,autoplayNext:!0,previewNoEmptySpace:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},md=i=>(0,Mr.fillWithDefault)(i,Jh),pd=i=>Ir("ui-config",i),Vt=()=>Pr("ui-config");var gs="vk_player_debug_panel_opened";var _d="videoplayer",hd="videoplayer";var bo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},gd=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),bd=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),vd=new Set(["ShiftRight","ShiftLeft"]);var yd=["TIMELINE"],bs=[...yd,"GRAPH_BUTTON"],Ia=[...yd,"PLAY_BUTTON"],xs=[...bs,"PLAY_BUTTON"];var so=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(so||{}),sr={xs:0,s:1,m:2,l:3,xl:4};var Lr=[];function jn(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=me){let t,n=new Set;function o(a){if(F(i,a)&&(i=a,t)){let l=!Lr.length;for(let u of n)u[1](),Lr.push(u,i);if(l){for(let u=0;u<Lr.length;u+=2)Lr[u][0](Lr[u+1]);Lr.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function oi(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return jn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=$t(g)?g:me},y=o.map((g,I)=>ni(g,C=>{u[I]=C,c&=~(1<<I),l&&h()},()=>{c|=1<<I}));return l=!0,h(),function(){at(y),m(),l=!1}})}var vs=require("@vkontakte/videoplayer-shared"),wd=require("@vkontakte/videoplayer-core"),kd=require("@vkontakte/videoplayer-statistics");var Ks="prod",lr="1.1.49-dev.9d1ae4e1.0";var ar=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Cd=Symbol("storeContext"),Sd=Symbol("microStoresContext"),Td=(i,e)=>{Ir(Cd,i),Ir(Sd,e),Ks==="dev"&&(window.app={store:i,microStores:e})},it=()=>{let i=Pr(Cd);return(0,vs.assertNonNullable)(i,"Store context is empty!"),i},Hn=()=>{let i=Pr(Sd);return(0,vs.assertNonNullable)(i,"MicroStores context is empty!"),i},Pt=(i,e)=>Pa(i,i.getValue(),e),Pa=(i,e,t)=>jn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),Id=(i,e,t)=>{var V,S,v,E,W,D;let n=i.info,{width:o,height:r}=je(t.ui.playerSize),s=(S=(V=n.throughputEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?S:0,a=(E=(v=n.rttEstimation$.getValue())==null?void 0:v.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${lr} (core: ${wd.VERSION}, stat: ${kd.VERSION}, shared: ${vs.VERSION})`,c=je(t.state.errorLog$),m=c.length?`
|
|
7
7
|
`+c.map((L,J)=>{var X;let ue=`${J}) Type: ${L.id}
|
|
8
8
|
`,Q=`Message: ${L.message} (${L.thrown})
|
|
9
9
|
`,ee=`Trace: ${(X=L.thrown)==null?void 0:X.stack}
|
package/es2018.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.49-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.49-dev.9d1ae4e1.0
|
|
3
|
+
* Fri, 08 Nov 2024 07:32:32 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-49/doc/
|
|
5
5
|
*/
|
|
6
|
-
var $_=Object.defineProperty;var eh=(i,e,t)=>e in i?$_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Ai=(i,e,t)=>eh(i,typeof e!="symbol"?e+"":e,t);function me(){}function re(i,e){for(let t in e)i[t]=e[t];return i}function sa(i){return i()}function Ts(){return Object.create(null)}function at(i){i.forEach(sa)}function Jt(i){return typeof i=="function"}function F(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Ss;function ko(i,e){return i===e?!0:(Ss||(Ss=document.createElement("a")),Ss.href=e,i===Ss.href)}function Nf(i){return Object.keys(i).length===0}function ii(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function je(i){let e;return ii(i,t=>e=t)(),e}function q(i,e,t){i.$$.on_destroy.push(ii(e,t))}function Le(i,e,t,n){if(i){let o=Df(i,e,t,n);return i[0](o)}}function Df(i,e,t,n){return i[1]&&n?re(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let s=Df(e,t,n,r);i.p(s,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ve(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Of(i){return i==null?"":i}function _r(i){return i&&Jt(i.destroy)?i.destroy:me}var Xo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Is=class i{constructor(e){Ai(this,"_listeners","WeakMap"in Xo?new WeakMap:void 0);Ai(this,"_observer");Ai(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};Is.entries="WeakMap"in Xo?new WeakMap:void 0;var Ff=!1;function Hf(){Ff=!0}function qf(){Ff=!1}function _(i,e){i.appendChild(e)}function ge(i,e,t){let n=Uf(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,nh(n,o)}}function Uf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function nh(i,e){return _(i.head||i,e),e.sheet}function k(i,e,t){i.insertBefore(e,t||null)}function w(i){i.parentNode&&i.parentNode.removeChild(i)}function fi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function O(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Oe(i){return document.createTextNode(i)}function Y(){return Oe(" ")}function Je(){return Oe("")}function ke(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function si(i){return function(e){return e.preventDefault(),i.call(this,e)}}function gt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ye(i,e){for(let t in e)f(i,t,e[t])}function zf(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function hi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function K(i,e,t){i.classList.toggle(e,!!t)}function Wf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Bt(i,e){return new i(e)}var Mo;function Co(i){Mo=i}function hr(){if(!Mo)throw new Error("Function called outside component initialization");return Mo}function Nt(i){hr().$$.on_mount.push(i)}function to(i){hr().$$.on_destroy.push(i)}function gr(i,e){return hr().$$.context.set(i,e),e}function br(i){return hr().$$.context.get(i)}function Jr(){return hr().$$.context}function Bn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Jo=[];var be=[],yr=[],aa=[],Kf=Promise.resolve(),ua=!1;function ca(){ua||(ua=!0,Kf.then(ft))}function ln(){return ca(),Kf}function $r(i){yr.push(i)}function Ue(i){aa.push(i)}var la=new Set,vr=0;function ft(){if(vr!==0)return;let i=Mo;do{try{for(;vr<Jo.length;){let e=Jo[vr];vr++,Co(e),uh(e.$$)}}catch(e){throw Jo.length=0,vr=0,e}for(Co(null),Jo.length=0,vr=0;be.length;)be.pop()();for(let e=0;e<yr.length;e+=1){let t=yr[e];la.has(t)||(la.add(t),t())}yr.length=0}while(Jo.length);for(;aa.length;)aa.pop()();ua=!1,la.clear(),Co(i)}function uh(i){if(i.fragment!==null){i.update(),at(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach($r)}}function jf(i){let e=[],t=[];yr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),yr=e}var Ps=new Set,$o;function se(){$o={r:0,c:[],p:$o}}function le(){$o.r||at($o.c),$o=$o.p}function d(i,e){i&&i.i&&(Ps.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Ps.has(i))return;Ps.add(i),$o.c.push(()=>{Ps.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function kt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Gf(i,e){p(i,1,1,()=>{e.delete(i.key)})}function Yf(i,e,t,n,o,r,s,a,l,u,c,m){let h=i.length,y=r.length,g=h,I={};for(;g--;)I[i[g].key]=g;let C=[],V=new Map,S=new Map,v=[];for(g=y;g--;){let L=m(o,r,g),J=t(L),ue=s.get(J);ue?n&&v.push(()=>ue.p(L,e)):(ue=u(J,L),ue.c()),V.set(J,C[g]=ue),J in I&&S.set(J,Math.abs(g-I[J]))}let E=new Set,W=new Set;function D(L){d(L,1),L.m(a,c),s.set(L.key,L),c=L.first,y--}for(;h&&y;){let L=C[y-1],J=i[h-1],ue=L.key,Q=J.key;L===J?(c=L.first,h--,y--):V.has(Q)?!s.has(ue)||E.has(ue)?D(L):W.has(Q)?h--:S.get(ue)>S.get(Q)?(W.add(ue),D(L)):(E.add(Q),h--):(l(J,s),h--)}for(;h--;){let L=i[h];V.has(L.key)||l(L,s)}for(;y;)D(C[y-1]);return at(v),C}function Fe(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Lo(i){return typeof i=="object"&&i!==null?i:{}}var ch=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],fh=new Set([...ch]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function N(i){i&&i.c()}function R(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),$r(()=>{let r=i.$$.on_mount.map(sa).filter(Jt);i.$$.on_destroy?i.$$.on_destroy.push(...r):at(r),i.$$.on_mount=[]}),o.forEach($r)}function B(i,e){let t=i.$$;t.fragment!==null&&(jf(t.after_update),at(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function mh(i,e){i.$$.dirty[0]===-1&&(Jo.push(i),ca(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function U(i,e,t,n,o,r,s=null,a=[-1]){let l=Mo;Co(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:Ts(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Ts(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...y)=>{let g=y.length?y[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&mh(i,m)),h}):[],u.update(),c=!0,at(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Hf();let m=zf(e.target);u.fragment&&u.fragment.l(m),m.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),R(i,e.target,e.anchor),qf(),ft()}Co(l)}var ph;typeof HTMLElement=="function"&&(ph=class extends HTMLElement{constructor(e,t,n){super();Ai(this,"$$ctor");Ai(this,"$$s");Ai(this,"$$c");Ai(this,"$$cn",!1);Ai(this,"$$d",{});Ai(this,"$$r",!1);Ai(this,"$$p_d",{});Ai(this,"$$l",{});Ai(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=P("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){k(c,a,m)},d:function(c){c&&w(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Wf(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=fa(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=fa(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=fa(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function fa(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var H=class{constructor(){Ai(this,"$$");Ai(this,"$$set")}$destroy(){B(this,1),this.$destroy=me}$on(e,t){if(!Jt(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Nf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Qf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Qf);import"@vkontakte/videoplayer-core";import{noop as cs,safeStorage as _8,throttleFn as h8,clientChecker as g8}from"@vkontakte/videoplayer-shared";import{SeekAction as b8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as _h,fillWithDefault as hh,VideoQuality as gh}from"@vkontakte/videoplayer-shared";var bh={isMobile:void 0,defaultLanguage:_h.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:gh.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,autoplayNext:!0,previewNoEmptySpace:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Zf=i=>hh(i,bh),Xf=i=>gr("ui-config",i),Lt=()=>br("ui-config");var es="vk_player_debug_panel_opened";var Jf="videoplayer",$f="videoplayer";var po={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ed=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),td=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),id=new Set(["ShiftRight","ShiftLeft"]);var nd=["TIMELINE"],ts=[...nd,"GRAPH_BUTTON"],da=[...nd,"PLAY_BUTTON"],Es=[...ts,"PLAY_BUTTON"];var _o=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(_o||{}),tr={xs:0,s:1,m:2,l:3,xl:4};var wr=[];function Wn(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=me){let t,n=new Set;function o(a){if(F(i,a)&&(i=a,t)){let l=!wr.length;for(let u of n)u[1](),wr.push(u,i);if(l){for(let u=0;u<wr.length;u+=2)wr[u][0](wr[u+1]);wr.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function ni(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Wn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=Jt(g)?g:me},y=o.map((g,I)=>ii(g,C=>{u[I]=C,c&=~(1<<I),l&&h()},()=>{c|=1<<I}));return l=!0,h(),function(){at(y),m(),l=!1}})}import{assertNonNullable as od,VERSION as vh}from"@vkontakte/videoplayer-shared";import{VERSION as yh}from"@vkontakte/videoplayer-core";import{VERSION as wh}from"@vkontakte/videoplayer-statistics";var As="prod",kr="1.1.49-dev.8ff97d26.0";var ir=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var rd=Symbol("storeContext"),sd=Symbol("microStoresContext"),ld=(i,e)=>{gr(rd,i),gr(sd,e),As==="dev"&&(window.app={store:i,microStores:e})},it=()=>{let i=br(rd);return od(i,"Store context is empty!"),i},Nn=()=>{let i=br(sd);return od(i,"MicroStores context is empty!"),i},It=(i,e)=>ma(i,i.getValue(),e),ma=(i,e,t)=>Wn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),ad=(i,e,t)=>{var V,S,v,E,W,D;let n=i.info,{width:o,height:r}=je(t.ui.playerSize),s=(S=(V=n.throughputEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?S:0,a=(E=(v=n.rttEstimation$.getValue())==null?void 0:v.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${kr} (core: ${yh}, stat: ${wh}, shared: ${vh})`,c=je(t.state.errorLog$),m=c.length?`
|
|
6
|
+
var $_=Object.defineProperty;var eh=(i,e,t)=>e in i?$_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Ai=(i,e,t)=>eh(i,typeof e!="symbol"?e+"":e,t);function me(){}function re(i,e){for(let t in e)i[t]=e[t];return i}function sa(i){return i()}function Ts(){return Object.create(null)}function at(i){i.forEach(sa)}function Jt(i){return typeof i=="function"}function F(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Ss;function ko(i,e){return i===e?!0:(Ss||(Ss=document.createElement("a")),Ss.href=e,i===Ss.href)}function Nf(i){return Object.keys(i).length===0}function ii(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function je(i){let e;return ii(i,t=>e=t)(),e}function q(i,e,t){i.$$.on_destroy.push(ii(e,t))}function Le(i,e,t,n){if(i){let o=Df(i,e,t,n);return i[0](o)}}function Df(i,e,t,n){return i[1]&&n?re(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],s=Math.max(e.dirty.length,o.length);for(let a=0;a<s;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let s=Df(e,t,n,r);i.p(s,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ve(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Of(i){return i==null?"":i}function _r(i){return i&&Jt(i.destroy)?i.destroy:me}var Xo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Is=class i{constructor(e){Ai(this,"_listeners","WeakMap"in Xo?new WeakMap:void 0);Ai(this,"_observer");Ai(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};Is.entries="WeakMap"in Xo?new WeakMap:void 0;var Ff=!1;function Hf(){Ff=!0}function qf(){Ff=!1}function _(i,e){i.appendChild(e)}function ge(i,e,t){let n=Uf(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,nh(n,o)}}function Uf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function nh(i,e){return _(i.head||i,e),e.sheet}function k(i,e,t){i.insertBefore(e,t||null)}function w(i){i.parentNode&&i.parentNode.removeChild(i)}function fi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function O(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Oe(i){return document.createTextNode(i)}function Y(){return Oe(" ")}function Je(){return Oe("")}function ke(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function si(i){return function(e){return e.preventDefault(),i.call(this,e)}}function gt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ye(i,e){for(let t in e)f(i,t,e[t])}function zf(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function hi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function K(i,e,t){i.classList.toggle(e,!!t)}function Wf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Bt(i,e){return new i(e)}var Mo;function Co(i){Mo=i}function hr(){if(!Mo)throw new Error("Function called outside component initialization");return Mo}function Nt(i){hr().$$.on_mount.push(i)}function to(i){hr().$$.on_destroy.push(i)}function gr(i,e){return hr().$$.context.set(i,e),e}function br(i){return hr().$$.context.get(i)}function Jr(){return hr().$$.context}function Bn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Jo=[];var be=[],yr=[],aa=[],Kf=Promise.resolve(),ua=!1;function ca(){ua||(ua=!0,Kf.then(ft))}function ln(){return ca(),Kf}function $r(i){yr.push(i)}function Ue(i){aa.push(i)}var la=new Set,vr=0;function ft(){if(vr!==0)return;let i=Mo;do{try{for(;vr<Jo.length;){let e=Jo[vr];vr++,Co(e),uh(e.$$)}}catch(e){throw Jo.length=0,vr=0,e}for(Co(null),Jo.length=0,vr=0;be.length;)be.pop()();for(let e=0;e<yr.length;e+=1){let t=yr[e];la.has(t)||(la.add(t),t())}yr.length=0}while(Jo.length);for(;aa.length;)aa.pop()();ua=!1,la.clear(),Co(i)}function uh(i){if(i.fragment!==null){i.update(),at(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach($r)}}function jf(i){let e=[],t=[];yr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),yr=e}var Ps=new Set,$o;function se(){$o={r:0,c:[],p:$o}}function le(){$o.r||at($o.c),$o=$o.p}function d(i,e){i&&i.i&&(Ps.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Ps.has(i))return;Ps.add(i),$o.c.push(()=>{Ps.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function kt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Gf(i,e){p(i,1,1,()=>{e.delete(i.key)})}function Yf(i,e,t,n,o,r,s,a,l,u,c,m){let h=i.length,y=r.length,g=h,I={};for(;g--;)I[i[g].key]=g;let C=[],V=new Map,S=new Map,v=[];for(g=y;g--;){let L=m(o,r,g),J=t(L),ue=s.get(J);ue?n&&v.push(()=>ue.p(L,e)):(ue=u(J,L),ue.c()),V.set(J,C[g]=ue),J in I&&S.set(J,Math.abs(g-I[J]))}let E=new Set,W=new Set;function D(L){d(L,1),L.m(a,c),s.set(L.key,L),c=L.first,y--}for(;h&&y;){let L=C[y-1],J=i[h-1],ue=L.key,Q=J.key;L===J?(c=L.first,h--,y--):V.has(Q)?!s.has(ue)||E.has(ue)?D(L):W.has(Q)?h--:S.get(ue)>S.get(Q)?(W.add(ue),D(L)):(E.add(Q),h--):(l(J,s),h--)}for(;h--;){let L=i[h];V.has(L.key)||l(L,s)}for(;y;)D(C[y-1]);return at(v),C}function Fe(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let s=i[r],a=e[r];if(a){for(let l in s)l in a||(n[l]=1);for(let l in a)o[l]||(t[l]=a[l],o[l]=1);i[r]=a}else for(let l in s)o[l]=1}for(let s in n)s in t||(t[s]=void 0);return t}function Lo(i){return typeof i=="object"&&i!==null?i:{}}var ch=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],fh=new Set([...ch]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function N(i){i&&i.c()}function R(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),$r(()=>{let r=i.$$.on_mount.map(sa).filter(Jt);i.$$.on_destroy?i.$$.on_destroy.push(...r):at(r),i.$$.on_mount=[]}),o.forEach($r)}function B(i,e){let t=i.$$;t.fragment!==null&&(jf(t.after_update),at(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function mh(i,e){i.$$.dirty[0]===-1&&(Jo.push(i),ca(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function U(i,e,t,n,o,r,s=null,a=[-1]){let l=Mo;Co(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:Ts(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Ts(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...y)=>{let g=y.length?y[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&mh(i,m)),h}):[],u.update(),c=!0,at(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Hf();let m=zf(e.target);u.fragment&&u.fragment.l(m),m.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),R(i,e.target,e.anchor),qf(),ft()}Co(l)}var ph;typeof HTMLElement=="function"&&(ph=class extends HTMLElement{constructor(e,t,n){super();Ai(this,"$$ctor");Ai(this,"$$s");Ai(this,"$$c");Ai(this,"$$cn",!1);Ai(this,"$$d",{});Ai(this,"$$r",!1);Ai(this,"$$p_d",{});Ai(this,"$$l",{});Ai(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let a;return{c:function(){a=P("slot"),s!=="default"&&f(a,"name",s)},m:function(c,m){k(c,a,m)},d:function(c){c&&w(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Wf(this);for(let s of this.$$s)s in o&&(n[s]=[t(s)]);for(let s of this.attributes){let a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=fa(a,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){let a=fa(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let s in this.$$l)for(let a of this.$$l[s]){let l=this.$$c.$on(s,a);this.$$l_u.set(a,l)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=fa(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function fa(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var H=class{constructor(){Ai(this,"$$");Ai(this,"$$set")}$destroy(){B(this,1),this.$destroy=me}$on(e,t){if(!Jt(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Nf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Qf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Qf);import"@vkontakte/videoplayer-core";import{noop as cs,safeStorage as _8,throttleFn as h8,clientChecker as g8}from"@vkontakte/videoplayer-shared";import{SeekAction as b8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as _h,fillWithDefault as hh,VideoQuality as gh}from"@vkontakte/videoplayer-shared";var bh={isMobile:void 0,defaultLanguage:_h.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:gh.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,autoplayNext:!0,previewNoEmptySpace:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Zf=i=>hh(i,bh),Xf=i=>gr("ui-config",i),Lt=()=>br("ui-config");var es="vk_player_debug_panel_opened";var Jf="videoplayer",$f="videoplayer";var po={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ed=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),td=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),id=new Set(["ShiftRight","ShiftLeft"]);var nd=["TIMELINE"],ts=[...nd,"GRAPH_BUTTON"],da=[...nd,"PLAY_BUTTON"],Es=[...ts,"PLAY_BUTTON"];var _o=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(_o||{}),tr={xs:0,s:1,m:2,l:3,xl:4};var wr=[];function Wn(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=me){let t,n=new Set;function o(a){if(F(i,a)&&(i=a,t)){let l=!wr.length;for(let u of n)u[1](),wr.push(u,i);if(l){for(let u=0;u<wr.length;u+=2)wr[u][0](wr[u+1]);wr.length=0}}}function r(a){o(a(i))}function s(a,l=me){let u=[a,l];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:s}}function ni(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Wn(t,(s,a)=>{let l=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let g=e(n?u[0]:u,s,a);r?s(g):m=Jt(g)?g:me},y=o.map((g,I)=>ii(g,C=>{u[I]=C,c&=~(1<<I),l&&h()},()=>{c|=1<<I}));return l=!0,h(),function(){at(y),m(),l=!1}})}import{assertNonNullable as od,VERSION as vh}from"@vkontakte/videoplayer-shared";import{VERSION as yh}from"@vkontakte/videoplayer-core";import{VERSION as wh}from"@vkontakte/videoplayer-statistics";var As="prod",kr="1.1.49-dev.9d1ae4e1.0";var ir=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var rd=Symbol("storeContext"),sd=Symbol("microStoresContext"),ld=(i,e)=>{gr(rd,i),gr(sd,e),As==="dev"&&(window.app={store:i,microStores:e})},it=()=>{let i=br(rd);return od(i,"Store context is empty!"),i},Nn=()=>{let i=br(sd);return od(i,"MicroStores context is empty!"),i},It=(i,e)=>ma(i,i.getValue(),e),ma=(i,e,t)=>Wn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),ad=(i,e,t)=>{var V,S,v,E,W,D;let n=i.info,{width:o,height:r}=je(t.ui.playerSize),s=(S=(V=n.throughputEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?S:0,a=(E=(v=n.rttEstimation$.getValue())==null?void 0:v.toFixed(0))!=null?E:0,l=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${kr} (core: ${yh}, stat: ${wh}, shared: ${vh})`,c=je(t.state.errorLog$),m=c.length?`
|
|
7
7
|
`+c.map((L,J)=>{var X;let ue=`${J}) Type: ${L.id}
|
|
8
8
|
`,Q=`Message: ${L.message} (${L.thrown})
|
|
9
9
|
`,ee=`Trace: ${(X=L.thrown)==null?void 0:X.stack}
|
package/esnext.cjs.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.49-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.49-dev.9d1ae4e1.0
|
|
3
|
+
* Fri, 08 Nov 2024 07:32:32 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-49/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var Ch=Object.create;var Rl=Object.defineProperty;var Sh=Object.getOwnPropertyDescriptor;var Th=Object.getOwnPropertyNames;var Ih=Object.getPrototypeOf,Ph=Object.prototype.hasOwnProperty;var Eh=(i,e)=>{for(var t in e)Rl(i,t,{get:e[t],enumerable:!0})},jf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Th(e))!Ph.call(i,o)&&o!==t&&Rl(i,o,{get:()=>e[o],enumerable:!(n=Sh(e,o))||n.enumerable});return i};var Ah=(i,e,t)=>(t=i!=null?Ch(Ih(i)):{},jf(e||!i||!i.__esModule?Rl(t,"default",{value:i,enumerable:!0}):t,i)),Mh=i=>jf(Rl({},"__esModule",{value:!0}),i);var g8={};Eh(g8,{ControlButtonType:()=>wl,GridTypes:()=>eo,InterfaceLanguage:()=>el.InterfaceLanguage,MenuItemType:()=>vl,VERSION:()=>rr,VKNumericLanguage:()=>el.VKNumericLanguage,VideoFormat:()=>aa.VideoFormat,VideoQuality:()=>aa.VideoQuality,loadVKLangPack:()=>el.loadVKLangPack,registerPlayerWebComponent:()=>h8});module.exports=Mh(g8);function de(){}function re(i,e){for(let t in e)i[t]=e[t];return i}function _a(i){return i()}function Nl(){return Object.create(null)}function rt(i){i.forEach(_a)}function Ut(i){return typeof i=="function"}function R(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Bl;function vo(i,e){return i===e?!0:(Bl||(Bl=document.createElement("a")),Bl.href=e,i===Bl.href)}function Gf(i){return Object.keys(i).length===0}function Kt(i,...e){if(i==null){for(let n of e)n(void 0);return de}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function je(i){let e;return Kt(i,t=>e=t)(),e}function N(i,e,t){i.$$.on_destroy.push(Kt(e,t))}function Le(i,e,t,n){if(i){let o=Yf(i,e,t,n);return i[0](o)}}function Yf(i,e,t,n){return i[1]&&n?re(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let l=Yf(e,t,n,r);i.p(l,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function we(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Qf(i){return i??""}function kr(i){return i&&Ut(i.destroy)?i.destroy:de}var er=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Dl=class i{_listeners="WeakMap"in er?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};Dl.entries="WeakMap"in er?new WeakMap:void 0;var Zf=!1;function Xf(){Zf=!0}function Jf(){Zf=!1}function _(i,e){i.appendChild(e)}function ve(i,e,t){let n=$f(i);if(!n.getElementById(e)){let o=S("style");o.id=e,o.textContent=t,Rh(n,o)}}function $f(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function Rh(i,e){return _(i.head||i,e),e.sheet}function v(i,e,t){i.insertBefore(e,t||null)}function b(i){i.parentNode&&i.parentNode.removeChild(i)}function li(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function S(i){return document.createElement(i)}function V(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Fe(i){return document.createTextNode(i)}function K(){return Fe(" ")}function Ze(){return Fe("")}function Se(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Xt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function ht(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ke(i,e){for(let t in e)f(i,t,e[t])}function ed(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function di(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function z(i,e,t){i.classList.toggle(e,!!t)}function td(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Mt(i,e){return new i(e)}var Mo;function yo(i){Mo=i}function Cr(){if(!Mo)throw new Error("Function called outside component initialization");return Mo}function Lt(i){Cr().$$.on_mount.push(i)}function $n(i){Cr().$$.on_destroy.push(i)}function Sr(i,e){return Cr().$$.context.set(i,e),e}function Tr(i){return Cr().$$.context.get(i)}function dl(){return Cr().$$.context}function Vn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var tr=[];var ye=[],Pr=[],ga=[],nd=Promise.resolve(),ba=!1;function va(){ba||(ba=!0,nd.then(st))}function nn(){return va(),nd}function ml(i){Pr.push(i)}function ze(i){ga.push(i)}var ha=new Set,Ir=0;function st(){if(Ir!==0)return;let i=Mo;do{try{for(;Ir<tr.length;){let e=tr[Ir];Ir++,yo(e),Hh(e.$$)}}catch(e){throw tr.length=0,Ir=0,e}for(yo(null),tr.length=0,Ir=0;ye.length;)ye.pop()();for(let e=0;e<Pr.length;e+=1){let t=Pr[e];ha.has(t)||(ha.add(t),t())}Pr.length=0}while(tr.length);for(;ga.length;)ga.pop()();ba=!1,ha.clear(),yo(i)}function Hh(i){if(i.fragment!==null){i.update(),rt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(ml)}}function od(i){let e=[],t=[];Pr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Pr=e}var Ol=new Set,ir;function le(){ir={r:0,c:[],p:ir}}function se(){ir.r||rt(ir.c),ir=ir.p}function d(i,e){i&&i.i&&(Ol.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Ol.has(i))return;Ol.add(i),ir.c.push(()=>{Ol.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function bt(i){return i?.length!==void 0?i:Array.from(i)}function rd(i,e){p(i,1,1,()=>{e.delete(i.key)})}function ld(i,e,t,n,o,r,l,a,s,u,c,m){let h=i.length,y=r.length,g=h,T={};for(;g--;)T[i[g].key]=g;let w=[],F=new Map,I=new Map,k=[];for(g=y;g--;){let D=m(o,r,g),ne=t(D),ce=l.get(ne);ce?n&&k.push(()=>ce.p(D,e)):(ce=u(ne,D),ce.c()),F.set(ne,w[g]=ce),ne in T&&I.set(ne,Math.abs(g-T[ne]))}let E=new Set,Z=new Set;function H(D){d(D,1),D.m(a,c),l.set(D.key,D),c=D.first,y--}for(;h&&y;){let D=w[y-1],ne=i[h-1],ce=D.key,U=ne.key;D===ne?(c=D.first,h--,y--):F.has(U)?!l.has(ce)||E.has(ce)?H(D):Z.has(U)?h--:I.get(ce)>I.get(U)?(Z.add(ce),H(D)):(E.add(U),h--):(s(ne,l),h--)}for(;h--;){let D=i[h];F.has(D.key)||s(D,l)}for(;y;)H(w[y-1]);return rt(k),w}function He(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function Lo(i){return typeof i=="object"&&i!==null?i:{}}var qh=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],Uh=new Set([...qh]);function xe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function L(i){i&&i.c()}function A(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),ml(()=>{let r=i.$$.on_mount.map(_a).filter(Ut);i.$$.on_destroy?i.$$.on_destroy.push(...r):rt(r),i.$$.on_mount=[]}),o.forEach(ml)}function M(i,e){let t=i.$$;t.fragment!==null&&(od(t.after_update),rt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function xh(i,e){i.$$.dirty[0]===-1&&(tr.push(i),va(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,l=null,a=[-1]){let s=Mo;yo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:de,not_equal:o,bound:Nl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Nl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...y)=>{let g=y.length?y[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&xh(i,m)),h}):[],u.update(),c=!0,rt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Xf();let m=ed(e.target);u.fragment&&u.fragment.l(m),m.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),A(i,e.target,e.anchor),Jf(),st()}yo(s)}var Wh;typeof HTMLElement=="function"&&(Wh=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let l;return{c:function(){l=S("slot"),r!=="default"&&f(l,"name",r)},m:function(u,c){v(u,l,c)},d:function(u){u&&b(l)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=td(this);for(let r of this.$$s)r in n&&(t[r]=[e(r)]);for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=ya(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){let l=ya(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let r in this.$$l)for(let l of this.$$l[r]){let a=this.$$c.$on(r,l);this.$$l_u.set(l,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=ya(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function ya(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var B=class{$$=void 0;$$set=void 0;$destroy(){M(this,1),this.$destroy=de}$on(e,t){if(!Ut(t))return de;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Gf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var sd="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(sd);var oH=require("@vkontakte/videoplayer-core"),Wn=require("@vkontakte/videoplayer-shared"),lh=require("@vkontakte/videoplayer-statistics");var Er=require("@vkontakte/videoplayer-shared");var Kh={isMobile:void 0,defaultLanguage:Er.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Er.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,autoplayNext:!0,previewNoEmptySpace:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},ad=i=>(0,Er.fillWithDefault)(i,Kh),ud=i=>Sr("ui-config",i),Pt=()=>Tr("ui-config");var pl="vk_player_debug_panel_opened";var cd="videoplayer",fd="videoplayer";var uo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},dd=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),md=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),pd=new Set(["ShiftRight","ShiftLeft"]);var _d=["TIMELINE"],_l=[..._d,"GRAPH_BUTTON"],wa=[..._d,"PLAY_BUTTON"],Fl=[..._l,"PLAY_BUTTON"];var eo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(eo||{}),or={xs:0,s:1,m:2,l:3,xl:4};var Ar=[];function qn(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=de){let t,n=new Set;function o(a){if(R(i,a)&&(i=a,t)){let s=!Ar.length;for(let u of n)u[1](),Ar.push(u,i);if(s){for(let u=0;u<Ar.length;u+=2)Ar[u][0](Ar[u+1]);Ar.length=0}}}function r(a){o(a(i))}function l(a,s=de){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||de),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function jt(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return qn(t,(l,a)=>{let s=!1,u=[],c=0,m=de,h=()=>{if(c)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Ut(g)?g:de},y=o.map((g,T)=>Kt(g,w=>{u[T]=w,c&=~(1<<T),s&&h()},()=>{c|=1<<T}));return s=!0,h(),function(){rt(y),m(),s=!1}})}var hl=require("@vkontakte/videoplayer-shared"),hd=require("@vkontakte/videoplayer-core"),gd=require("@vkontakte/videoplayer-statistics");var Hl="prod",rr="1.1.49-dev.8ff97d26.0";var lr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var bd=Symbol("storeContext"),vd=Symbol("microStoresContext"),yd=(i,e)=>{Sr(bd,i),Sr(vd,e),Hl==="dev"&&(window.app={store:i,microStores:e})},Je=()=>{let i=Tr(bd);return(0,hl.assertNonNullable)(i,"Store context is empty!"),i},Rn=()=>{let i=Tr(vd);return(0,hl.assertNonNullable)(i,"MicroStores context is empty!"),i},vt=(i,e)=>ka(i,i.getValue(),e),ka=(i,e,t)=>qn(e,n=>{let o=i.subscribe(r=>{n(r),t?.(r)});return()=>o.unsubscribe()}),wd=(i,e,t)=>{let n=i.info,{width:o,height:r}=je(t.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${rr} (core: ${hd.VERSION}, stat: ${gd.VERSION}, shared: ${hl.VERSION})`,c=je(t.state.errorLog$),m=c.length?`
|
|
6
|
+
"use strict";var Ch=Object.create;var Rl=Object.defineProperty;var Sh=Object.getOwnPropertyDescriptor;var Th=Object.getOwnPropertyNames;var Ih=Object.getPrototypeOf,Ph=Object.prototype.hasOwnProperty;var Eh=(i,e)=>{for(var t in e)Rl(i,t,{get:e[t],enumerable:!0})},jf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Th(e))!Ph.call(i,o)&&o!==t&&Rl(i,o,{get:()=>e[o],enumerable:!(n=Sh(e,o))||n.enumerable});return i};var Ah=(i,e,t)=>(t=i!=null?Ch(Ih(i)):{},jf(e||!i||!i.__esModule?Rl(t,"default",{value:i,enumerable:!0}):t,i)),Mh=i=>jf(Rl({},"__esModule",{value:!0}),i);var g8={};Eh(g8,{ControlButtonType:()=>wl,GridTypes:()=>eo,InterfaceLanguage:()=>el.InterfaceLanguage,MenuItemType:()=>vl,VERSION:()=>rr,VKNumericLanguage:()=>el.VKNumericLanguage,VideoFormat:()=>aa.VideoFormat,VideoQuality:()=>aa.VideoQuality,loadVKLangPack:()=>el.loadVKLangPack,registerPlayerWebComponent:()=>h8});module.exports=Mh(g8);function de(){}function re(i,e){for(let t in e)i[t]=e[t];return i}function _a(i){return i()}function Nl(){return Object.create(null)}function rt(i){i.forEach(_a)}function Ut(i){return typeof i=="function"}function R(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Bl;function vo(i,e){return i===e?!0:(Bl||(Bl=document.createElement("a")),Bl.href=e,i===Bl.href)}function Gf(i){return Object.keys(i).length===0}function Kt(i,...e){if(i==null){for(let n of e)n(void 0);return de}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function je(i){let e;return Kt(i,t=>e=t)(),e}function N(i,e,t){i.$$.on_destroy.push(Kt(e,t))}function Le(i,e,t,n){if(i){let o=Yf(i,e,t,n);return i[0](o)}}function Yf(i,e,t,n){return i[1]&&n?re(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let l=Yf(e,t,n,r);i.p(l,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function we(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Qf(i){return i??""}function kr(i){return i&&Ut(i.destroy)?i.destroy:de}var er=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Dl=class i{_listeners="WeakMap"in er?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};Dl.entries="WeakMap"in er?new WeakMap:void 0;var Zf=!1;function Xf(){Zf=!0}function Jf(){Zf=!1}function _(i,e){i.appendChild(e)}function ve(i,e,t){let n=$f(i);if(!n.getElementById(e)){let o=S("style");o.id=e,o.textContent=t,Rh(n,o)}}function $f(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function Rh(i,e){return _(i.head||i,e),e.sheet}function v(i,e,t){i.insertBefore(e,t||null)}function b(i){i.parentNode&&i.parentNode.removeChild(i)}function li(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function S(i){return document.createElement(i)}function V(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Fe(i){return document.createTextNode(i)}function K(){return Fe(" ")}function Ze(){return Fe("")}function Se(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Xt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function ht(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ke(i,e){for(let t in e)f(i,t,e[t])}function ed(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function di(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function z(i,e,t){i.classList.toggle(e,!!t)}function td(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Mt(i,e){return new i(e)}var Mo;function yo(i){Mo=i}function Cr(){if(!Mo)throw new Error("Function called outside component initialization");return Mo}function Lt(i){Cr().$$.on_mount.push(i)}function $n(i){Cr().$$.on_destroy.push(i)}function Sr(i,e){return Cr().$$.context.set(i,e),e}function Tr(i){return Cr().$$.context.get(i)}function dl(){return Cr().$$.context}function Vn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var tr=[];var ye=[],Pr=[],ga=[],nd=Promise.resolve(),ba=!1;function va(){ba||(ba=!0,nd.then(st))}function nn(){return va(),nd}function ml(i){Pr.push(i)}function ze(i){ga.push(i)}var ha=new Set,Ir=0;function st(){if(Ir!==0)return;let i=Mo;do{try{for(;Ir<tr.length;){let e=tr[Ir];Ir++,yo(e),Hh(e.$$)}}catch(e){throw tr.length=0,Ir=0,e}for(yo(null),tr.length=0,Ir=0;ye.length;)ye.pop()();for(let e=0;e<Pr.length;e+=1){let t=Pr[e];ha.has(t)||(ha.add(t),t())}Pr.length=0}while(tr.length);for(;ga.length;)ga.pop()();ba=!1,ha.clear(),yo(i)}function Hh(i){if(i.fragment!==null){i.update(),rt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(ml)}}function od(i){let e=[],t=[];Pr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Pr=e}var Ol=new Set,ir;function le(){ir={r:0,c:[],p:ir}}function se(){ir.r||rt(ir.c),ir=ir.p}function d(i,e){i&&i.i&&(Ol.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Ol.has(i))return;Ol.add(i),ir.c.push(()=>{Ol.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function bt(i){return i?.length!==void 0?i:Array.from(i)}function rd(i,e){p(i,1,1,()=>{e.delete(i.key)})}function ld(i,e,t,n,o,r,l,a,s,u,c,m){let h=i.length,y=r.length,g=h,T={};for(;g--;)T[i[g].key]=g;let w=[],F=new Map,I=new Map,k=[];for(g=y;g--;){let D=m(o,r,g),ne=t(D),ce=l.get(ne);ce?n&&k.push(()=>ce.p(D,e)):(ce=u(ne,D),ce.c()),F.set(ne,w[g]=ce),ne in T&&I.set(ne,Math.abs(g-T[ne]))}let E=new Set,Z=new Set;function H(D){d(D,1),D.m(a,c),l.set(D.key,D),c=D.first,y--}for(;h&&y;){let D=w[y-1],ne=i[h-1],ce=D.key,U=ne.key;D===ne?(c=D.first,h--,y--):F.has(U)?!l.has(ce)||E.has(ce)?H(D):Z.has(U)?h--:I.get(ce)>I.get(U)?(Z.add(ce),H(D)):(E.add(U),h--):(s(ne,l),h--)}for(;h--;){let D=i[h];F.has(D.key)||s(D,l)}for(;y;)H(w[y-1]);return rt(k),w}function He(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function Lo(i){return typeof i=="object"&&i!==null?i:{}}var qh=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],Uh=new Set([...qh]);function xe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function L(i){i&&i.c()}function A(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),ml(()=>{let r=i.$$.on_mount.map(_a).filter(Ut);i.$$.on_destroy?i.$$.on_destroy.push(...r):rt(r),i.$$.on_mount=[]}),o.forEach(ml)}function M(i,e){let t=i.$$;t.fragment!==null&&(od(t.after_update),rt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function xh(i,e){i.$$.dirty[0]===-1&&(tr.push(i),va(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,l=null,a=[-1]){let s=Mo;yo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:de,not_equal:o,bound:Nl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Nl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...y)=>{let g=y.length?y[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&xh(i,m)),h}):[],u.update(),c=!0,rt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Xf();let m=ed(e.target);u.fragment&&u.fragment.l(m),m.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),A(i,e.target,e.anchor),Jf(),st()}yo(s)}var Wh;typeof HTMLElement=="function"&&(Wh=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let l;return{c:function(){l=S("slot"),r!=="default"&&f(l,"name",r)},m:function(u,c){v(u,l,c)},d:function(u){u&&b(l)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=td(this);for(let r of this.$$s)r in n&&(t[r]=[e(r)]);for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=ya(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){let l=ya(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let r in this.$$l)for(let l of this.$$l[r]){let a=this.$$c.$on(r,l);this.$$l_u.set(l,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=ya(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function ya(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var B=class{$$=void 0;$$set=void 0;$destroy(){M(this,1),this.$destroy=de}$on(e,t){if(!Ut(t))return de;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Gf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var sd="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(sd);var oH=require("@vkontakte/videoplayer-core"),Wn=require("@vkontakte/videoplayer-shared"),lh=require("@vkontakte/videoplayer-statistics");var Er=require("@vkontakte/videoplayer-shared");var Kh={isMobile:void 0,defaultLanguage:Er.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Er.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,autoplayNext:!0,previewNoEmptySpace:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},ad=i=>(0,Er.fillWithDefault)(i,Kh),ud=i=>Sr("ui-config",i),Pt=()=>Tr("ui-config");var pl="vk_player_debug_panel_opened";var cd="videoplayer",fd="videoplayer";var uo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},dd=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),md=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),pd=new Set(["ShiftRight","ShiftLeft"]);var _d=["TIMELINE"],_l=[..._d,"GRAPH_BUTTON"],wa=[..._d,"PLAY_BUTTON"],Fl=[..._l,"PLAY_BUTTON"];var eo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(eo||{}),or={xs:0,s:1,m:2,l:3,xl:4};var Ar=[];function qn(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=de){let t,n=new Set;function o(a){if(R(i,a)&&(i=a,t)){let s=!Ar.length;for(let u of n)u[1](),Ar.push(u,i);if(s){for(let u=0;u<Ar.length;u+=2)Ar[u][0](Ar[u+1]);Ar.length=0}}}function r(a){o(a(i))}function l(a,s=de){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||de),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function jt(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return qn(t,(l,a)=>{let s=!1,u=[],c=0,m=de,h=()=>{if(c)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Ut(g)?g:de},y=o.map((g,T)=>Kt(g,w=>{u[T]=w,c&=~(1<<T),s&&h()},()=>{c|=1<<T}));return s=!0,h(),function(){rt(y),m(),s=!1}})}var hl=require("@vkontakte/videoplayer-shared"),hd=require("@vkontakte/videoplayer-core"),gd=require("@vkontakte/videoplayer-statistics");var Hl="prod",rr="1.1.49-dev.9d1ae4e1.0";var lr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var bd=Symbol("storeContext"),vd=Symbol("microStoresContext"),yd=(i,e)=>{Sr(bd,i),Sr(vd,e),Hl==="dev"&&(window.app={store:i,microStores:e})},Je=()=>{let i=Tr(bd);return(0,hl.assertNonNullable)(i,"Store context is empty!"),i},Rn=()=>{let i=Tr(vd);return(0,hl.assertNonNullable)(i,"MicroStores context is empty!"),i},vt=(i,e)=>ka(i,i.getValue(),e),ka=(i,e,t)=>qn(e,n=>{let o=i.subscribe(r=>{n(r),t?.(r)});return()=>o.unsubscribe()}),wd=(i,e,t)=>{let n=i.info,{width:o,height:r}=je(t.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${rr} (core: ${hd.VERSION}, stat: ${gd.VERSION}, shared: ${hl.VERSION})`,c=je(t.state.errorLog$),m=c.length?`
|
|
7
7
|
`+c.map((F,I)=>{let k=`${I}) Type: ${F.id}
|
|
8
8
|
`,E=`Message: ${F.message} (${F.thrown})
|
|
9
9
|
`,Z=`Trace: ${F.thrown?.stack}
|
package/esnext.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.49-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.49-dev.9d1ae4e1.0
|
|
3
|
+
* Fri, 08 Nov 2024 07:32:32 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-49/doc/
|
|
5
5
|
*/
|
|
6
|
-
function de(){}function re(i,e){for(let t in e)i[t]=e[t];return i}function ta(i){return i()}function vl(){return Object.create(null)}function rt(i){i.forEach(ta)}function qt(i){return typeof i=="function"}function R(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var bl;function po(i,e){return i===e?!0:(bl||(bl=document.createElement("a")),bl.href=e,i===bl.href)}function Mf(i){return Object.keys(i).length===0}function Wt(i,...e){if(i==null){for(let n of e)n(void 0);return de}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function je(i){let e;return Wt(i,t=>e=t)(),e}function N(i,e,t){i.$$.on_destroy.push(Wt(e,t))}function Le(i,e,t,n){if(i){let o=Lf(i,e,t,n);return i[0](o)}}function Lf(i,e,t,n){return i[1]&&n?re(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let l=Lf(e,t,n,r);i.p(l,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function we(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Vf(i){return i??""}function mr(i){return i&&qt(i.destroy)?i.destroy:de}var Qo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var yl=class i{_listeners="WeakMap"in Qo?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};yl.entries="WeakMap"in Qo?new WeakMap:void 0;var Rf=!1;function Bf(){Rf=!0}function Nf(){Rf=!1}function _(i,e){i.appendChild(e)}function ve(i,e,t){let n=Df(i);if(!n.getElementById(e)){let o=S("style");o.id=e,o.textContent=t,Q_(n,o)}}function Df(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function Q_(i,e){return _(i.head||i,e),e.sheet}function v(i,e,t){i.insertBefore(e,t||null)}function b(i){i.parentNode&&i.parentNode.removeChild(i)}function ri(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function S(i){return document.createElement(i)}function V(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Fe(i){return document.createTextNode(i)}function K(){return Fe(" ")}function Ze(){return Fe("")}function Se(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Zt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function _t(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ke(i,e){for(let t in e)f(i,t,e[t])}function Of(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function ci(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function z(i,e,t){i.classList.toggle(e,!!t)}function Ff(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function At(i,e){return new i(e)}var So;function _o(i){So=i}function pr(){if(!So)throw new Error("Function called outside component initialization");return So}function Mt(i){pr().$$.on_mount.push(i)}function Qn(i){pr().$$.on_destroy.push(i)}function _r(i,e){return pr().$$.context.set(i,e),e}function hr(i){return pr().$$.context.get(i)}function Zr(){return pr().$$.context}function En(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Zo=[];var ye=[],br=[],na=[],qf=Promise.resolve(),oa=!1;function ra(){oa||(oa=!0,qf.then(st))}function Ji(){return ra(),qf}function Xr(i){br.push(i)}function ze(i){na.push(i)}var ia=new Set,gr=0;function st(){if(gr!==0)return;let i=So;do{try{for(;gr<Zo.length;){let e=Zo[gr];gr++,_o(e),th(e.$$)}}catch(e){throw Zo.length=0,gr=0,e}for(_o(null),Zo.length=0,gr=0;ye.length;)ye.pop()();for(let e=0;e<br.length;e+=1){let t=br[e];ia.has(t)||(ia.add(t),t())}br.length=0}while(Zo.length);for(;na.length;)na.pop()();oa=!1,ia.clear(),_o(i)}function th(i){if(i.fragment!==null){i.update(),rt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Xr)}}function Uf(i){let e=[],t=[];br.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),br=e}var wl=new Set,Xo;function le(){Xo={r:0,c:[],p:Xo}}function se(){Xo.r||rt(Xo.c),Xo=Xo.p}function d(i,e){i&&i.i&&(wl.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(wl.has(i))return;wl.add(i),Xo.c.push(()=>{wl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function gt(i){return i?.length!==void 0?i:Array.from(i)}function zf(i,e){p(i,1,1,()=>{e.delete(i.key)})}function xf(i,e,t,n,o,r,l,a,s,u,c,m){let h=i.length,y=r.length,g=h,T={};for(;g--;)T[i[g].key]=g;let w=[],F=new Map,I=new Map,k=[];for(g=y;g--;){let D=m(o,r,g),ne=t(D),ce=l.get(ne);ce?n&&k.push(()=>ce.p(D,e)):(ce=u(ne,D),ce.c()),F.set(ne,w[g]=ce),ne in T&&I.set(ne,Math.abs(g-T[ne]))}let E=new Set,Z=new Set;function H(D){d(D,1),D.m(a,c),l.set(D.key,D),c=D.first,y--}for(;h&&y;){let D=w[y-1],ne=i[h-1],ce=D.key,U=ne.key;D===ne?(c=D.first,h--,y--):F.has(U)?!l.has(ce)||E.has(ce)?H(D):Z.has(U)?h--:I.get(ce)>I.get(U)?(Z.add(ce),H(D)):(E.add(U),h--):(s(ne,l),h--)}for(;h--;){let D=i[h];F.has(D.key)||s(D,l)}for(;y;)H(w[y-1]);return rt(k),w}function He(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function To(i){return typeof i=="object"&&i!==null?i:{}}var ih=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],nh=new Set([...ih]);function xe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function L(i){i&&i.c()}function A(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Xr(()=>{let r=i.$$.on_mount.map(ta).filter(qt);i.$$.on_destroy?i.$$.on_destroy.push(...r):rt(r),i.$$.on_mount=[]}),o.forEach(Xr)}function M(i,e){let t=i.$$;t.fragment!==null&&(Uf(t.after_update),rt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function rh(i,e){i.$$.dirty[0]===-1&&(Zo.push(i),ra(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,l=null,a=[-1]){let s=So;_o(i);let u=i.$$={fragment:null,ctx:[],props:r,update:de,not_equal:o,bound:vl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:vl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...y)=>{let g=y.length?y[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&rh(i,m)),h}):[],u.update(),c=!0,rt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Bf();let m=Of(e.target);u.fragment&&u.fragment.l(m),m.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),A(i,e.target,e.anchor),Nf(),st()}_o(s)}var lh;typeof HTMLElement=="function"&&(lh=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let l;return{c:function(){l=S("slot"),r!=="default"&&f(l,"name",r)},m:function(u,c){v(u,l,c)},d:function(u){u&&b(l)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=Ff(this);for(let r of this.$$s)r in n&&(t[r]=[e(r)]);for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=la(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){let l=la(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let r in this.$$l)for(let l of this.$$l[r]){let a=this.$$c.$on(r,l);this.$$l_u.set(l,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=la(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function la(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var B=class{$$=void 0;$$set=void 0;$destroy(){M(this,1),this.$destroy=de}$on(e,t){if(!qt(t))return de;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Mf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Wf="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Wf);import"@vkontakte/videoplayer-core";import{noop as al,safeStorage as s8,throttleFn as a8,clientChecker as u8}from"@vkontakte/videoplayer-shared";import{SeekAction as c8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as sh,fillWithDefault as ah,VideoQuality as uh}from"@vkontakte/videoplayer-shared";var ch={isMobile:void 0,defaultLanguage:sh.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:uh.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,autoplayNext:!0,previewNoEmptySpace:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Kf=i=>ah(i,ch),jf=i=>_r("ui-config",i),It=()=>hr("ui-config");var Jr="vk_player_debug_panel_opened";var Gf="videoplayer",Yf="videoplayer";var ro={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Qf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Zf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Xf=new Set(["ShiftRight","ShiftLeft"]);var Jf=["TIMELINE"],$r=[...Jf,"GRAPH_BUTTON"],sa=[...Jf,"PLAY_BUTTON"],kl=[...$r,"PLAY_BUTTON"];var lo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(lo||{}),$o={xs:0,s:1,m:2,l:3,xl:4};var vr=[];function On(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=de){let t,n=new Set;function o(a){if(R(i,a)&&(i=a,t)){let s=!vr.length;for(let u of n)u[1](),vr.push(u,i);if(s){for(let u=0;u<vr.length;u+=2)vr[u][0](vr[u+1]);vr.length=0}}}function r(a){o(a(i))}function l(a,s=de){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||de),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Kt(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return On(t,(l,a)=>{let s=!1,u=[],c=0,m=de,h=()=>{if(c)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=qt(g)?g:de},y=o.map((g,T)=>Wt(g,w=>{u[T]=w,c&=~(1<<T),s&&h()},()=>{c|=1<<T}));return s=!0,h(),function(){rt(y),m(),s=!1}})}import{assertNonNullable as $f,VERSION as fh}from"@vkontakte/videoplayer-shared";import{VERSION as dh}from"@vkontakte/videoplayer-core";import{VERSION as mh}from"@vkontakte/videoplayer-statistics";var Cl="prod",yr="1.1.49-dev.8ff97d26.0";var er=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var ed=Symbol("storeContext"),td=Symbol("microStoresContext"),id=(i,e)=>{_r(ed,i),_r(td,e),Cl==="dev"&&(window.app={store:i,microStores:e})},Je=()=>{let i=hr(ed);return $f(i,"Store context is empty!"),i},An=()=>{let i=hr(td);return $f(i,"MicroStores context is empty!"),i},bt=(i,e)=>aa(i,i.getValue(),e),aa=(i,e,t)=>On(e,n=>{let o=i.subscribe(r=>{n(r),t?.(r)});return()=>o.unsubscribe()}),nd=(i,e,t)=>{let n=i.info,{width:o,height:r}=je(t.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${yr} (core: ${dh}, stat: ${mh}, shared: ${fh})`,c=je(t.state.errorLog$),m=c.length?`
|
|
6
|
+
function de(){}function re(i,e){for(let t in e)i[t]=e[t];return i}function ta(i){return i()}function vl(){return Object.create(null)}function rt(i){i.forEach(ta)}function qt(i){return typeof i=="function"}function R(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var bl;function po(i,e){return i===e?!0:(bl||(bl=document.createElement("a")),bl.href=e,i===bl.href)}function Mf(i){return Object.keys(i).length===0}function Wt(i,...e){if(i==null){for(let n of e)n(void 0);return de}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function je(i){let e;return Wt(i,t=>e=t)(),e}function N(i,e,t){i.$$.on_destroy.push(Wt(e,t))}function Le(i,e,t,n){if(i){let o=Lf(i,e,t,n);return i[0](o)}}function Lf(i,e,t,n){return i[1]&&n?re(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let l=Lf(e,t,n,r);i.p(l,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function we(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Vf(i){return i??""}function mr(i){return i&&qt(i.destroy)?i.destroy:de}var Qo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var yl=class i{_listeners="WeakMap"in Qo?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};yl.entries="WeakMap"in Qo?new WeakMap:void 0;var Rf=!1;function Bf(){Rf=!0}function Nf(){Rf=!1}function _(i,e){i.appendChild(e)}function ve(i,e,t){let n=Df(i);if(!n.getElementById(e)){let o=S("style");o.id=e,o.textContent=t,Q_(n,o)}}function Df(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function Q_(i,e){return _(i.head||i,e),e.sheet}function v(i,e,t){i.insertBefore(e,t||null)}function b(i){i.parentNode&&i.parentNode.removeChild(i)}function ri(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function S(i){return document.createElement(i)}function V(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Fe(i){return document.createTextNode(i)}function K(){return Fe(" ")}function Ze(){return Fe("")}function Se(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Zt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function _t(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ke(i,e){for(let t in e)f(i,t,e[t])}function Of(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function ci(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function z(i,e,t){i.classList.toggle(e,!!t)}function Ff(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function At(i,e){return new i(e)}var So;function _o(i){So=i}function pr(){if(!So)throw new Error("Function called outside component initialization");return So}function Mt(i){pr().$$.on_mount.push(i)}function Qn(i){pr().$$.on_destroy.push(i)}function _r(i,e){return pr().$$.context.set(i,e),e}function hr(i){return pr().$$.context.get(i)}function Zr(){return pr().$$.context}function En(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Zo=[];var ye=[],br=[],na=[],qf=Promise.resolve(),oa=!1;function ra(){oa||(oa=!0,qf.then(st))}function Ji(){return ra(),qf}function Xr(i){br.push(i)}function ze(i){na.push(i)}var ia=new Set,gr=0;function st(){if(gr!==0)return;let i=So;do{try{for(;gr<Zo.length;){let e=Zo[gr];gr++,_o(e),th(e.$$)}}catch(e){throw Zo.length=0,gr=0,e}for(_o(null),Zo.length=0,gr=0;ye.length;)ye.pop()();for(let e=0;e<br.length;e+=1){let t=br[e];ia.has(t)||(ia.add(t),t())}br.length=0}while(Zo.length);for(;na.length;)na.pop()();oa=!1,ia.clear(),_o(i)}function th(i){if(i.fragment!==null){i.update(),rt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Xr)}}function Uf(i){let e=[],t=[];br.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),br=e}var wl=new Set,Xo;function le(){Xo={r:0,c:[],p:Xo}}function se(){Xo.r||rt(Xo.c),Xo=Xo.p}function d(i,e){i&&i.i&&(wl.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(wl.has(i))return;wl.add(i),Xo.c.push(()=>{wl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function gt(i){return i?.length!==void 0?i:Array.from(i)}function zf(i,e){p(i,1,1,()=>{e.delete(i.key)})}function xf(i,e,t,n,o,r,l,a,s,u,c,m){let h=i.length,y=r.length,g=h,T={};for(;g--;)T[i[g].key]=g;let w=[],F=new Map,I=new Map,k=[];for(g=y;g--;){let D=m(o,r,g),ne=t(D),ce=l.get(ne);ce?n&&k.push(()=>ce.p(D,e)):(ce=u(ne,D),ce.c()),F.set(ne,w[g]=ce),ne in T&&I.set(ne,Math.abs(g-T[ne]))}let E=new Set,Z=new Set;function H(D){d(D,1),D.m(a,c),l.set(D.key,D),c=D.first,y--}for(;h&&y;){let D=w[y-1],ne=i[h-1],ce=D.key,U=ne.key;D===ne?(c=D.first,h--,y--):F.has(U)?!l.has(ce)||E.has(ce)?H(D):Z.has(U)?h--:I.get(ce)>I.get(U)?(Z.add(ce),H(D)):(E.add(U),h--):(s(ne,l),h--)}for(;h--;){let D=i[h];F.has(D.key)||s(D,l)}for(;y;)H(w[y-1]);return rt(k),w}function He(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function To(i){return typeof i=="object"&&i!==null?i:{}}var ih=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],nh=new Set([...ih]);function xe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function L(i){i&&i.c()}function A(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Xr(()=>{let r=i.$$.on_mount.map(ta).filter(qt);i.$$.on_destroy?i.$$.on_destroy.push(...r):rt(r),i.$$.on_mount=[]}),o.forEach(Xr)}function M(i,e){let t=i.$$;t.fragment!==null&&(Uf(t.after_update),rt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function rh(i,e){i.$$.dirty[0]===-1&&(Zo.push(i),ra(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,l=null,a=[-1]){let s=So;_o(i);let u=i.$$={fragment:null,ctx:[],props:r,update:de,not_equal:o,bound:vl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:vl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...y)=>{let g=y.length?y[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&rh(i,m)),h}):[],u.update(),c=!0,rt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Bf();let m=Of(e.target);u.fragment&&u.fragment.l(m),m.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),A(i,e.target,e.anchor),Nf(),st()}_o(s)}var lh;typeof HTMLElement=="function"&&(lh=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let l;return{c:function(){l=S("slot"),r!=="default"&&f(l,"name",r)},m:function(u,c){v(u,l,c)},d:function(u){u&&b(l)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=Ff(this);for(let r of this.$$s)r in n&&(t[r]=[e(r)]);for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=la(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){let l=la(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let r in this.$$l)for(let l of this.$$l[r]){let a=this.$$c.$on(r,l);this.$$l_u.set(l,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=la(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function la(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var B=class{$$=void 0;$$set=void 0;$destroy(){M(this,1),this.$destroy=de}$on(e,t){if(!qt(t))return de;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Mf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Wf="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Wf);import"@vkontakte/videoplayer-core";import{noop as al,safeStorage as s8,throttleFn as a8,clientChecker as u8}from"@vkontakte/videoplayer-shared";import{SeekAction as c8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as sh,fillWithDefault as ah,VideoQuality as uh}from"@vkontakte/videoplayer-shared";var ch={isMobile:void 0,defaultLanguage:sh.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:uh.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,autoplayNext:!0,previewNoEmptySpace:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Kf=i=>ah(i,ch),jf=i=>_r("ui-config",i),It=()=>hr("ui-config");var Jr="vk_player_debug_panel_opened";var Gf="videoplayer",Yf="videoplayer";var ro={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Qf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Zf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Xf=new Set(["ShiftRight","ShiftLeft"]);var Jf=["TIMELINE"],$r=[...Jf,"GRAPH_BUTTON"],sa=[...Jf,"PLAY_BUTTON"],kl=[...$r,"PLAY_BUTTON"];var lo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(lo||{}),$o={xs:0,s:1,m:2,l:3,xl:4};var vr=[];function On(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=de){let t,n=new Set;function o(a){if(R(i,a)&&(i=a,t)){let s=!vr.length;for(let u of n)u[1](),vr.push(u,i);if(s){for(let u=0;u<vr.length;u+=2)vr[u][0](vr[u+1]);vr.length=0}}}function r(a){o(a(i))}function l(a,s=de){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||de),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Kt(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return On(t,(l,a)=>{let s=!1,u=[],c=0,m=de,h=()=>{if(c)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=qt(g)?g:de},y=o.map((g,T)=>Wt(g,w=>{u[T]=w,c&=~(1<<T),s&&h()},()=>{c|=1<<T}));return s=!0,h(),function(){rt(y),m(),s=!1}})}import{assertNonNullable as $f,VERSION as fh}from"@vkontakte/videoplayer-shared";import{VERSION as dh}from"@vkontakte/videoplayer-core";import{VERSION as mh}from"@vkontakte/videoplayer-statistics";var Cl="prod",yr="1.1.49-dev.9d1ae4e1.0";var er=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var ed=Symbol("storeContext"),td=Symbol("microStoresContext"),id=(i,e)=>{_r(ed,i),_r(td,e),Cl==="dev"&&(window.app={store:i,microStores:e})},Je=()=>{let i=hr(ed);return $f(i,"Store context is empty!"),i},An=()=>{let i=hr(td);return $f(i,"MicroStores context is empty!"),i},bt=(i,e)=>aa(i,i.getValue(),e),aa=(i,e,t)=>On(e,n=>{let o=i.subscribe(r=>{n(r),t?.(r)});return()=>o.unsubscribe()}),nd=(i,e,t)=>{let n=i.info,{width:o,height:r}=je(t.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${yr} (core: ${dh}, stat: ${mh}, shared: ${fh})`,c=je(t.state.errorLog$),m=c.length?`
|
|
7
7
|
`+c.map((F,I)=>{let k=`${I}) Type: ${F.id}
|
|
8
8
|
`,E=`Message: ${F.message} (${F.thrown})
|
|
9
9
|
`,Z=`Trace: ${F.thrown?.stack}
|
package/evergreen.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.49-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.49-dev.9d1ae4e1.0
|
|
3
|
+
* Fri, 08 Nov 2024 07:32:32 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-49/doc/
|
|
5
5
|
*/
|
|
6
|
-
function de(){}function re(i,e){for(let t in e)i[t]=e[t];return i}function ta(i){return i()}function vl(){return Object.create(null)}function rt(i){i.forEach(ta)}function qt(i){return typeof i=="function"}function R(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var bl;function po(i,e){return i===e?!0:(bl||(bl=document.createElement("a")),bl.href=e,i===bl.href)}function Mf(i){return Object.keys(i).length===0}function Wt(i,...e){if(i==null){for(let n of e)n(void 0);return de}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function je(i){let e;return Wt(i,t=>e=t)(),e}function N(i,e,t){i.$$.on_destroy.push(Wt(e,t))}function Le(i,e,t,n){if(i){let o=Lf(i,e,t,n);return i[0](o)}}function Lf(i,e,t,n){return i[1]&&n?re(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let l=Lf(e,t,n,r);i.p(l,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function we(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Vf(i){return i??""}function mr(i){return i&&qt(i.destroy)?i.destroy:de}var Qo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var yl=class i{_listeners="WeakMap"in Qo?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};yl.entries="WeakMap"in Qo?new WeakMap:void 0;var Rf=!1;function Bf(){Rf=!0}function Nf(){Rf=!1}function _(i,e){i.appendChild(e)}function ve(i,e,t){let n=Df(i);if(!n.getElementById(e)){let o=S("style");o.id=e,o.textContent=t,Q_(n,o)}}function Df(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function Q_(i,e){return _(i.head||i,e),e.sheet}function v(i,e,t){i.insertBefore(e,t||null)}function b(i){i.parentNode&&i.parentNode.removeChild(i)}function ri(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function S(i){return document.createElement(i)}function V(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Fe(i){return document.createTextNode(i)}function K(){return Fe(" ")}function Ze(){return Fe("")}function Se(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Zt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function _t(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ke(i,e){for(let t in e)f(i,t,e[t])}function Of(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function ci(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function z(i,e,t){i.classList.toggle(e,!!t)}function Ff(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function At(i,e){return new i(e)}var So;function _o(i){So=i}function pr(){if(!So)throw new Error("Function called outside component initialization");return So}function Mt(i){pr().$$.on_mount.push(i)}function Qn(i){pr().$$.on_destroy.push(i)}function _r(i,e){return pr().$$.context.set(i,e),e}function hr(i){return pr().$$.context.get(i)}function Zr(){return pr().$$.context}function En(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Zo=[];var ye=[],br=[],na=[],qf=Promise.resolve(),oa=!1;function ra(){oa||(oa=!0,qf.then(st))}function Ji(){return ra(),qf}function Xr(i){br.push(i)}function ze(i){na.push(i)}var ia=new Set,gr=0;function st(){if(gr!==0)return;let i=So;do{try{for(;gr<Zo.length;){let e=Zo[gr];gr++,_o(e),th(e.$$)}}catch(e){throw Zo.length=0,gr=0,e}for(_o(null),Zo.length=0,gr=0;ye.length;)ye.pop()();for(let e=0;e<br.length;e+=1){let t=br[e];ia.has(t)||(ia.add(t),t())}br.length=0}while(Zo.length);for(;na.length;)na.pop()();oa=!1,ia.clear(),_o(i)}function th(i){if(i.fragment!==null){i.update(),rt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Xr)}}function Uf(i){let e=[],t=[];br.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),br=e}var wl=new Set,Xo;function le(){Xo={r:0,c:[],p:Xo}}function se(){Xo.r||rt(Xo.c),Xo=Xo.p}function d(i,e){i&&i.i&&(wl.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(wl.has(i))return;wl.add(i),Xo.c.push(()=>{wl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function gt(i){return i?.length!==void 0?i:Array.from(i)}function zf(i,e){p(i,1,1,()=>{e.delete(i.key)})}function xf(i,e,t,n,o,r,l,a,s,u,c,m){let h=i.length,y=r.length,g=h,T={};for(;g--;)T[i[g].key]=g;let w=[],F=new Map,I=new Map,k=[];for(g=y;g--;){let D=m(o,r,g),ne=t(D),ce=l.get(ne);ce?n&&k.push(()=>ce.p(D,e)):(ce=u(ne,D),ce.c()),F.set(ne,w[g]=ce),ne in T&&I.set(ne,Math.abs(g-T[ne]))}let E=new Set,Z=new Set;function H(D){d(D,1),D.m(a,c),l.set(D.key,D),c=D.first,y--}for(;h&&y;){let D=w[y-1],ne=i[h-1],ce=D.key,U=ne.key;D===ne?(c=D.first,h--,y--):F.has(U)?!l.has(ce)||E.has(ce)?H(D):Z.has(U)?h--:I.get(ce)>I.get(U)?(Z.add(ce),H(D)):(E.add(U),h--):(s(ne,l),h--)}for(;h--;){let D=i[h];F.has(D.key)||s(D,l)}for(;y;)H(w[y-1]);return rt(k),w}function He(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function To(i){return typeof i=="object"&&i!==null?i:{}}var ih=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],nh=new Set([...ih]);function xe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function L(i){i&&i.c()}function A(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Xr(()=>{let r=i.$$.on_mount.map(ta).filter(qt);i.$$.on_destroy?i.$$.on_destroy.push(...r):rt(r),i.$$.on_mount=[]}),o.forEach(Xr)}function M(i,e){let t=i.$$;t.fragment!==null&&(Uf(t.after_update),rt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function rh(i,e){i.$$.dirty[0]===-1&&(Zo.push(i),ra(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,l=null,a=[-1]){let s=So;_o(i);let u=i.$$={fragment:null,ctx:[],props:r,update:de,not_equal:o,bound:vl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:vl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...y)=>{let g=y.length?y[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&rh(i,m)),h}):[],u.update(),c=!0,rt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Bf();let m=Of(e.target);u.fragment&&u.fragment.l(m),m.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),A(i,e.target,e.anchor),Nf(),st()}_o(s)}var lh;typeof HTMLElement=="function"&&(lh=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let l;return{c:function(){l=S("slot"),r!=="default"&&f(l,"name",r)},m:function(u,c){v(u,l,c)},d:function(u){u&&b(l)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=Ff(this);for(let r of this.$$s)r in n&&(t[r]=[e(r)]);for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=la(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){let l=la(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let r in this.$$l)for(let l of this.$$l[r]){let a=this.$$c.$on(r,l);this.$$l_u.set(l,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=la(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function la(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var B=class{$$=void 0;$$set=void 0;$destroy(){M(this,1),this.$destroy=de}$on(e,t){if(!qt(t))return de;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Mf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Wf="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Wf);import"@vkontakte/videoplayer-core";import{noop as al,safeStorage as s8,throttleFn as a8,clientChecker as u8}from"@vkontakte/videoplayer-shared";import{SeekAction as c8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as sh,fillWithDefault as ah,VideoQuality as uh}from"@vkontakte/videoplayer-shared";var ch={isMobile:void 0,defaultLanguage:sh.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:uh.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,autoplayNext:!0,previewNoEmptySpace:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Kf=i=>ah(i,ch),jf=i=>_r("ui-config",i),It=()=>hr("ui-config");var Jr="vk_player_debug_panel_opened";var Gf="videoplayer",Yf="videoplayer";var ro={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Qf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Zf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Xf=new Set(["ShiftRight","ShiftLeft"]);var Jf=["TIMELINE"],$r=[...Jf,"GRAPH_BUTTON"],sa=[...Jf,"PLAY_BUTTON"],kl=[...$r,"PLAY_BUTTON"];var lo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(lo||{}),$o={xs:0,s:1,m:2,l:3,xl:4};var vr=[];function On(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=de){let t,n=new Set;function o(a){if(R(i,a)&&(i=a,t)){let s=!vr.length;for(let u of n)u[1](),vr.push(u,i);if(s){for(let u=0;u<vr.length;u+=2)vr[u][0](vr[u+1]);vr.length=0}}}function r(a){o(a(i))}function l(a,s=de){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||de),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Kt(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return On(t,(l,a)=>{let s=!1,u=[],c=0,m=de,h=()=>{if(c)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=qt(g)?g:de},y=o.map((g,T)=>Wt(g,w=>{u[T]=w,c&=~(1<<T),s&&h()},()=>{c|=1<<T}));return s=!0,h(),function(){rt(y),m(),s=!1}})}import{assertNonNullable as $f,VERSION as fh}from"@vkontakte/videoplayer-shared";import{VERSION as dh}from"@vkontakte/videoplayer-core";import{VERSION as mh}from"@vkontakte/videoplayer-statistics";var Cl="prod",yr="1.1.49-dev.8ff97d26.0";var er=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var ed=Symbol("storeContext"),td=Symbol("microStoresContext"),id=(i,e)=>{_r(ed,i),_r(td,e),Cl==="dev"&&(window.app={store:i,microStores:e})},Je=()=>{let i=hr(ed);return $f(i,"Store context is empty!"),i},An=()=>{let i=hr(td);return $f(i,"MicroStores context is empty!"),i},bt=(i,e)=>aa(i,i.getValue(),e),aa=(i,e,t)=>On(e,n=>{let o=i.subscribe(r=>{n(r),t?.(r)});return()=>o.unsubscribe()}),nd=(i,e,t)=>{let n=i.info,{width:o,height:r}=je(t.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${yr} (core: ${dh}, stat: ${mh}, shared: ${fh})`,c=je(t.state.errorLog$),m=c.length?`
|
|
6
|
+
function de(){}function re(i,e){for(let t in e)i[t]=e[t];return i}function ta(i){return i()}function vl(){return Object.create(null)}function rt(i){i.forEach(ta)}function qt(i){return typeof i=="function"}function R(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var bl;function po(i,e){return i===e?!0:(bl||(bl=document.createElement("a")),bl.href=e,i===bl.href)}function Mf(i){return Object.keys(i).length===0}function Wt(i,...e){if(i==null){for(let n of e)n(void 0);return de}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function je(i){let e;return Wt(i,t=>e=t)(),e}function N(i,e,t){i.$$.on_destroy.push(Wt(e,t))}function Le(i,e,t,n){if(i){let o=Lf(i,e,t,n);return i[0](o)}}function Lf(i,e,t,n){return i[1]&&n?re(t.ctx.slice(),i[1](n(e))):t.ctx}function Ve(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Re(i,e,t,n,o,r){if(o){let l=Lf(e,t,n,r);i.p(l,o)}}function Be(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function we(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Vf(i){return i??""}function mr(i){return i&&qt(i.destroy)?i.destroy:de}var Qo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var yl=class i{_listeners="WeakMap"in Qo?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};yl.entries="WeakMap"in Qo?new WeakMap:void 0;var Rf=!1;function Bf(){Rf=!0}function Nf(){Rf=!1}function _(i,e){i.appendChild(e)}function ve(i,e,t){let n=Df(i);if(!n.getElementById(e)){let o=S("style");o.id=e,o.textContent=t,Q_(n,o)}}function Df(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function Q_(i,e){return _(i.head||i,e),e.sheet}function v(i,e,t){i.insertBefore(e,t||null)}function b(i){i.parentNode&&i.parentNode.removeChild(i)}function ri(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function S(i){return document.createElement(i)}function V(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Fe(i){return document.createTextNode(i)}function K(){return Fe(" ")}function Ze(){return Fe("")}function Se(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Zt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function _t(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ke(i,e){for(let t in e)f(i,t,e[t])}function Of(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function ci(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function z(i,e,t){i.classList.toggle(e,!!t)}function Ff(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function At(i,e){return new i(e)}var So;function _o(i){So=i}function pr(){if(!So)throw new Error("Function called outside component initialization");return So}function Mt(i){pr().$$.on_mount.push(i)}function Qn(i){pr().$$.on_destroy.push(i)}function _r(i,e){return pr().$$.context.set(i,e),e}function hr(i){return pr().$$.context.get(i)}function Zr(){return pr().$$.context}function En(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Zo=[];var ye=[],br=[],na=[],qf=Promise.resolve(),oa=!1;function ra(){oa||(oa=!0,qf.then(st))}function Ji(){return ra(),qf}function Xr(i){br.push(i)}function ze(i){na.push(i)}var ia=new Set,gr=0;function st(){if(gr!==0)return;let i=So;do{try{for(;gr<Zo.length;){let e=Zo[gr];gr++,_o(e),th(e.$$)}}catch(e){throw Zo.length=0,gr=0,e}for(_o(null),Zo.length=0,gr=0;ye.length;)ye.pop()();for(let e=0;e<br.length;e+=1){let t=br[e];ia.has(t)||(ia.add(t),t())}br.length=0}while(Zo.length);for(;na.length;)na.pop()();oa=!1,ia.clear(),_o(i)}function th(i){if(i.fragment!==null){i.update(),rt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Xr)}}function Uf(i){let e=[],t=[];br.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),br=e}var wl=new Set,Xo;function le(){Xo={r:0,c:[],p:Xo}}function se(){Xo.r||rt(Xo.c),Xo=Xo.p}function d(i,e){i&&i.i&&(wl.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(wl.has(i))return;wl.add(i),Xo.c.push(()=>{wl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function gt(i){return i?.length!==void 0?i:Array.from(i)}function zf(i,e){p(i,1,1,()=>{e.delete(i.key)})}function xf(i,e,t,n,o,r,l,a,s,u,c,m){let h=i.length,y=r.length,g=h,T={};for(;g--;)T[i[g].key]=g;let w=[],F=new Map,I=new Map,k=[];for(g=y;g--;){let D=m(o,r,g),ne=t(D),ce=l.get(ne);ce?n&&k.push(()=>ce.p(D,e)):(ce=u(ne,D),ce.c()),F.set(ne,w[g]=ce),ne in T&&I.set(ne,Math.abs(g-T[ne]))}let E=new Set,Z=new Set;function H(D){d(D,1),D.m(a,c),l.set(D.key,D),c=D.first,y--}for(;h&&y;){let D=w[y-1],ne=i[h-1],ce=D.key,U=ne.key;D===ne?(c=D.first,h--,y--):F.has(U)?!l.has(ce)||E.has(ce)?H(D):Z.has(U)?h--:I.get(ce)>I.get(U)?(Z.add(ce),H(D)):(E.add(U),h--):(s(ne,l),h--)}for(;h--;){let D=i[h];F.has(D.key)||s(D,l)}for(;y;)H(w[y-1]);return rt(k),w}function He(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function To(i){return typeof i=="object"&&i!==null?i:{}}var ih=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],nh=new Set([...ih]);function xe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function L(i){i&&i.c()}function A(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Xr(()=>{let r=i.$$.on_mount.map(ta).filter(qt);i.$$.on_destroy?i.$$.on_destroy.push(...r):rt(r),i.$$.on_mount=[]}),o.forEach(Xr)}function M(i,e){let t=i.$$;t.fragment!==null&&(Uf(t.after_update),rt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function rh(i,e){i.$$.dirty[0]===-1&&(Zo.push(i),ra(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function O(i,e,t,n,o,r,l=null,a=[-1]){let s=So;_o(i);let u=i.$$={fragment:null,ctx:[],props:r,update:de,not_equal:o,bound:vl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:vl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...y)=>{let g=y.length?y[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&rh(i,m)),h}):[],u.update(),c=!0,rt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Bf();let m=Of(e.target);u.fragment&&u.fragment.l(m),m.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),A(i,e.target,e.anchor),Nf(),st()}_o(s)}var lh;typeof HTMLElement=="function"&&(lh=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let l;return{c:function(){l=S("slot"),r!=="default"&&f(l,"name",r)},m:function(u,c){v(u,l,c)},d:function(u){u&&b(l)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=Ff(this);for(let r of this.$$s)r in n&&(t[r]=[e(r)]);for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=la(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){let l=la(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let r in this.$$l)for(let l of this.$$l[r]){let a=this.$$c.$on(r,l);this.$$l_u.set(l,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=la(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function la(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var B=class{$$=void 0;$$set=void 0;$destroy(){M(this,1),this.$destroy=de}$on(e,t){if(!qt(t))return de;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Mf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Wf="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Wf);import"@vkontakte/videoplayer-core";import{noop as al,safeStorage as s8,throttleFn as a8,clientChecker as u8}from"@vkontakte/videoplayer-shared";import{SeekAction as c8}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as sh,fillWithDefault as ah,VideoQuality as uh}from"@vkontakte/videoplayer-shared";var ch={isMobile:void 0,defaultLanguage:sh.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:uh.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,autoplayNext:!0,previewNoEmptySpace:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Kf=i=>ah(i,ch),jf=i=>_r("ui-config",i),It=()=>hr("ui-config");var Jr="vk_player_debug_panel_opened";var Gf="videoplayer",Yf="videoplayer";var ro={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Qf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Zf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Xf=new Set(["ShiftRight","ShiftLeft"]);var Jf=["TIMELINE"],$r=[...Jf,"GRAPH_BUTTON"],sa=[...Jf,"PLAY_BUTTON"],kl=[...$r,"PLAY_BUTTON"];var lo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(lo||{}),$o={xs:0,s:1,m:2,l:3,xl:4};var vr=[];function On(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=de){let t,n=new Set;function o(a){if(R(i,a)&&(i=a,t)){let s=!vr.length;for(let u of n)u[1](),vr.push(u,i);if(s){for(let u=0;u<vr.length;u+=2)vr[u][0](vr[u+1]);vr.length=0}}}function r(a){o(a(i))}function l(a,s=de){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||de),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Kt(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return On(t,(l,a)=>{let s=!1,u=[],c=0,m=de,h=()=>{if(c)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=qt(g)?g:de},y=o.map((g,T)=>Wt(g,w=>{u[T]=w,c&=~(1<<T),s&&h()},()=>{c|=1<<T}));return s=!0,h(),function(){rt(y),m(),s=!1}})}import{assertNonNullable as $f,VERSION as fh}from"@vkontakte/videoplayer-shared";import{VERSION as dh}from"@vkontakte/videoplayer-core";import{VERSION as mh}from"@vkontakte/videoplayer-statistics";var Cl="prod",yr="1.1.49-dev.9d1ae4e1.0";var er=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var ed=Symbol("storeContext"),td=Symbol("microStoresContext"),id=(i,e)=>{_r(ed,i),_r(td,e),Cl==="dev"&&(window.app={store:i,microStores:e})},Je=()=>{let i=hr(ed);return $f(i,"Store context is empty!"),i},An=()=>{let i=hr(td);return $f(i,"MicroStores context is empty!"),i},bt=(i,e)=>aa(i,i.getValue(),e),aa=(i,e,t)=>On(e,n=>{let o=i.subscribe(r=>{n(r),t?.(r)});return()=>o.unsubscribe()}),nd=(i,e,t)=>{let n=i.info,{width:o,height:r}=je(t.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${yr} (core: ${dh}, stat: ${mh}, shared: ${fh})`,c=je(t.state.errorLog$),m=c.length?`
|
|
7
7
|
`+c.map((F,I)=>{let k=`${I}) Type: ${F.id}
|
|
8
8
|
`,E=`Message: ${F.message} (${F.thrown})
|
|
9
9
|
`,Z=`Trace: ${F.thrown?.stack}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer",
|
|
3
|
-
"version": "1.1.49-dev.
|
|
3
|
+
"version": "1.1.49-dev.9d1ae4e1.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.116-dev.
|
|
53
|
-
"@vkontakte/videoplayer-interactive": "1.0.24-dev.
|
|
54
|
-
"@vkontakte/videoplayer-shared": "
|
|
55
|
-
"@vkontakte/videoplayer-statistics": "1.0.63-dev.
|
|
52
|
+
"@vkontakte/videoplayer-core": "2.0.116-dev.9c6ecbce.0",
|
|
53
|
+
"@vkontakte/videoplayer-interactive": "1.0.24-dev.f0ed8340.0",
|
|
54
|
+
"@vkontakte/videoplayer-shared": "1.0.48-dev.e301bc7d.0",
|
|
55
|
+
"@vkontakte/videoplayer-statistics": "1.0.63-dev.57583a58.0"
|
|
56
56
|
}
|
|
57
57
|
}
|