@vkontakte/videoplayer-shared 1.0.38-dev.f95926c1.0 → 1.0.39-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015.cjs.js +4 -4
- package/es2015.esm.js +4 -4
- package/es2018.cjs.js +4 -4
- package/es2018.esm.js +4 -4
- package/esnext.cjs.js +4 -4
- package/esnext.esm.js +4 -4
- package/evergreen.esm.js +4 -4
- package/package.json +1 -1
- package/types/utils/clientChecker.d.ts +54 -0
- package/types/utils/cloneDeepWith.d.ts +1 -1
- package/types/utils/detectEmbed.d.ts +1 -1
- package/types/utils/index.d.ts +1 -2
- package/types/utils/detectBrowser.d.ts +0 -32
package/es2015.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer-shared v1.0.
|
|
3
|
-
* Wed, 21 Aug 2024
|
|
4
|
-
* https://st.mycdn.me/static/vkontakte-videoplayer/1-0-
|
|
2
|
+
* @vkontakte/videoplayer-shared v1.0.39-beta.0
|
|
3
|
+
* Wed, 21 Aug 2024 12:53:10 GMT
|
|
4
|
+
* https://st.mycdn.me/static/vkontakte-videoplayer/1-0-39/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var Q=Object.defineProperty,ft=Object.defineProperties,mt=Object.getOwnPropertyDescriptor,Tt=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertyNames,Ie=Object.getOwnPropertySymbols;var he=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable;var ge=Math.pow,xe=(t,e,r)=>e in t?Q(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e||(e={}))he.call(e,r)&&xe(t,r,e[r]);if(Ie)for(var r of Ie(e))It.call(e,r)&&xe(t,r,e[r]);return t},_=(t,e)=>ft(t,Tt(e));var ye=(t,e)=>{for(var r in e)Q(t,r,{get:e[r],enumerable:!0})},xt=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of vt(e))!he.call(t,i)&&i!==r&&Q(t,i,{get:()=>e[i],enumerable:!(n=mt(e,i))||n.enumerable});return t};var ht=t=>xt(Q({},"__esModule",{value:!0}),t);var D=(t,e,r)=>new Promise((n,i)=>{var s=a=>{try{o(r.next(a))}catch(p){i(p)}},u=a=>{try{o(r.throw(a))}catch(p){i(p)}},o=a=>a.done?n(a.value):Promise.resolve(a.value).then(s,u);o((r=r.apply(t,e)).next())});var Vt={};ye(Vt,{CurrentClientBrowser:()=>H,CurrentClientDevice:()=>K,ErrorCategory:()=>it,InterfaceLanguage:()=>at,Logger:()=>U,Observable:()=>l,Subject:()=>x,Subscription:()=>m,VERSION:()=>Oe,VKNumericLanguage:()=>st,ValueSubject:()=>k,VideoQuality:()=>z,abortable:()=>Pe,addScript:()=>Ce,areQualitiesExact:()=>Ke,assertEmptyArray:()=>Re,assertNever:()=>I,assertNonNullable:()=>Ee,assertNotEmptyArray:()=>Ae,assertNullable:()=>Se,assertQualityIsExact:()=>$e,buffer:()=>Z,checkNever:()=>we,clearVideoElement:()=>Ze,cloneDeep:()=>Xe,cloneDeepWith:()=>C,combine:()=>Y,debounce:()=>te,debounceFn:()=>G,detectEmbed:()=>Ue,fillWithDefault:()=>Ye,filter:()=>ie,filterChanged:()=>ae,fromEvent:()=>nt,getCurrentBrowser:()=>R,getExponentialDelay:()=>De,getHighestQuality:()=>je,getIOSVersion:()=>Ne,interval:()=>tt,isAndroid:()=>Ve,isHigher:()=>Be,isHigherOrEqual:()=>Fe,isIOS:()=>Me,isInvariantQuality:()=>W,isLower:()=>j,isLowerOrEqual:()=>ze,isMacLike:()=>Qe,isMobile:()=>_e,isNonNullable:()=>y,isNullable:()=>B,loadVKLangPack:()=>Pt,map:()=>L,mapTo:()=>ue,merge:()=>X,noop:()=>h,now:()=>Le,observableFrom:()=>rt,observeElementSize:()=>Je,once:()=>ce,pairwise:()=>be,safeStorage:()=>F,tap:()=>fe,throttle:()=>ne,throttleFn:()=>q,timeCodeToString:()=>At,timeout:()=>et,videoHeightToQuality:()=>Ge,videoQualityToHeight:()=>He,videoSizeToQuality:()=>qe});module.exports=ht(Vt);var Oe="1.0.38-dev.f95926c1.0";var m=class{constructor(){this.subscriptions=[]}unsubscribe(){let e=this.subscriptions;this.subscriptions=[],e.forEach(r=>typeof r=="function"?r():r.unsubscribe())}add(e){return this.subscriptions.push(e),this}};var I=t=>{throw new Error(`${t} is value of unexpected type`)},we=t=>{};var h=()=>{};var l=class{constructor(e){e&&(this._subscribe=e)}subscribe(e,r){var u;let n;r?typeof r=="function"?n={next:r,error:h}:n={next:o=>r.next(o),error:o=>{var a;return(a=r.error)==null?void 0:a.call(r,o)}}:n={next:h,error:h};let i=typeof e=="function"?{next:o=>{try{e(o)}catch(a){n.next(a)}},error:o=>n.next(o)}:{next:o=>e.next(o),error:o=>e.error?e.error(o):n.next(o)},s;try{s=this._subscribe(i)}catch(o){(u=i.error)==null||u.call(i,o)}return new m().add(()=>{switch(i.next=h,i.error=h,typeof s){case"function":s();return;case"object":s.unsubscribe();return;case"undefined":return;default:return I(s)}})}pipe(...e){return e.reduce((r,n)=>n(r),this)}_subscribe(e){}};var x=class extends l{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(r){this.subscribers.forEach(n=>n.next(r))}error(r){this.subscribers.forEach(n=>{var i;return(i=n.error)==null?void 0:i.call(n,r)})}_subscribe(r){let n=this.keyCounter++;return this.subscribers.set(n,r),new m().add(()=>this.subscribers.delete(n))}};var U=class{constructor(){this.log$=new x;this.logs=[];this.log=e=>{let r=_(w({},e),{timestamp:Date.now()});this.logs.push(r),this.log$.next(r)};this.getAllLogs=()=>this.logs}createCustomLog(e){return(...r)=>{let n;try{n=e(...r)}catch(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(e){return this.createCustomLog(r=>w({component:e},r))}};function Ee(t,e='Assertion "value is not nullable" failed'){if(t==null)throw new Error(e)}function Se(t,e='Assertion "value is nullable" failed'){if(t!=null)throw new Error(e)}function y(t){return typeof t!="undefined"&&t!==null}function B(t){return t==null}function Ae(t,e){if(!(t!=null&&t.length))throw new Error(e)}function Re(t,e){if(t!=null&&t.length)throw new Error(e)}var Ce=(t,e,r)=>new Promise((n,i)=>{e.addEventListener("abort",()=>{o(),p.remove()});let s=()=>{o(),i()},u=()=>{o(),n()},o=()=>{a&&clearTimeout(a),p.removeEventListener("load",u),p.removeEventListener("error",s)},a;r&&(a=window.setTimeout(s,r));let p=document.createElement("script");p.addEventListener("load",u),p.addEventListener("error",s),p.src=t,document.head.appendChild(p)});var ke,Le=typeof((ke=window.performance)==null?void 0:ke.now)=="function"?()=>window.performance.now():()=>Date.now();var Pe=(t,e)=>(...r)=>D(void 0,null,function*(){var u;let n=e(...r),i=t.aborted,s;for(;!i&&!t.aborted;)try{let o=yield n.next(s);i=(u=o.done)!=null?u:!1,s=o.value}catch(o){yield n.throw(o)}return s});var H=(c=>(c.Unknown="Unknown",c.Yandex="Yandex",c.Chrome="Chrome",c.Chromium="Chromium",c.Firefox="Firefox",c.Safari="Safari",c.Opera="Opera",c.Edge="Edge",c.SamsungBrowser="SamsungBrowser",c.Rest="Rest",c))(H||{}),K=(a=>(a.Unknown="Unknown",a.Android="Android",a.iPhone="iPhone",a.iPad="iPad",a.iPod="iPod",a.RestMobile="RestMobile",a.Mac="Mac",a.Desktop="Desktop",a))(K||{}),R=()=>{let{userAgent:t}=window.navigator,e=/yabrowser/i.test(t)?"Yandex":void 0,r=/samsungbrowser/i.test(t)?"SamsungBrowser":void 0,n=/chrome|crios/i.test(t)?"Chrome":void 0,i=/chromium/i.test(t)?"Chromium":void 0,s=/firefox|fxios/i.test(t)?"Firefox":void 0,u=/webkit|safari|khtml/i.test(t)?"Safari":void 0,o=/opr\//i.test(t)?"Opera":void 0,a=/edg/i.test(t)?"Edge":void 0,p=/android/i.test(t)?"Android":void 0,c=/iphone/i.test(t)?"iPhone":void 0,d=/ipad/i.test(t)?"iPad":void 0,S=/ipod/i.test(t)?"iPod":void 0,P=/mac/i.test(t)?"Mac":void 0,A=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(t)?"RestMobile":void 0;return{browser:e||r||s||o||a||n||i||u||"Rest",device:p||c||d||S||A||P||"Desktop"}},Me=(t=!1)=>{let r=["iPhone","iPad","iPod"].includes(R().device);if(!t)return r;let{userAgent:n,maxTouchPoints:i}=window.navigator;return!!(r||/macintosh/i.test(n)&&i>0)},Ne=()=>{let{userAgent:t}=window.navigator,e=t.match(/Version\/(\d+(\.\d+)?)/i);if(!e)return null;let r=e[1],n=parseFloat(r);return isNaN(n)?null:n},Ve=()=>R().device==="Android",Qe=()=>["Mac","iPhone","iPad","iPod"].includes(R().device),_e=()=>{var t,e;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((t=navigator.appVersion)!=null?t:navigator.userAgent)||((e=navigator==null?void 0:navigator.userAgentData)==null?void 0:e.mobile)};var De=(t,{start:e=0,factor:r=2,max:n=1/0,min:i=e,random:s=0}={})=>{let u=e;return u*=ge(r,t),u*=1+(Math.random()*s*2-s),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var F={};ye(F,{clear:()=>St,get:()=>yt,has:()=>wt,isPersistent:()=>gt,remove:()=>Et,set:()=>Ot});var f,O,$=`vk-videoplayer-dummy-key-${Math.random()}`,E=()=>{if(O!==void 0)return O;try{localStorage.setItem($,"test"),localStorage.removeItem($),O=0}catch(t){if(t instanceof DOMException||t instanceof TypeError)try{sessionStorage.getItem($),O=1}catch(e){if(e instanceof DOMException||e instanceof TypeError)O=2;else throw e}else throw t}return O===2&&(f=new Map),O},gt=()=>E()===0,yt=t=>{var r,n;let e=E();switch(e){case 0:return(r=localStorage.getItem(t))!=null?r:void 0;case 1:return(n=sessionStorage.getItem(t))!=null?n:void 0;case 2:return f==null?void 0:f.get(t);default:I(e)}},Ot=(t,e)=>{let r=E();switch(r){case 0:try{localStorage.setItem(t,e)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(t,e)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void(f==null?void 0:f.set(t,e));default:I(r)}},wt=t=>{var r;let e=E();switch(e){case 0:return t in localStorage;case 1:return t in sessionStorage;case 2:return(r=f==null?void 0:f.has(t))!=null?r:!1;default:return I(e),!1}},Et=t=>{let e=E();switch(e){case 0:return localStorage.removeItem(t);case 1:return sessionStorage.removeItem(t);case 2:return void(f==null?void 0:f.delete(t));default:I(e)}},St=()=>{let t=E();switch(t){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return f==null?void 0:f.clear();default:I(t)}};var Ue=()=>{let t,e;try{t=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?t=!0:(t=!1,console.error(n))}try{window.location.ancestorOrigins&&(e=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!e&&document.referrer&&(e=document.referrer)}catch(n){console.error(n)}let r=e?new URL(e).hostname:void 0;return{isEmbed:t,host:r}};var z=(c=>(c.INVARIANT="Invariant quality",c.Q_144P="144p",c.Q_240P="240p",c.Q_360P="360p",c.Q_480P="480p",c.Q_720P="720p",c.Q_1080P="1080p",c.Q_1440P="1440p",c.Q_2160P="2160p",c.Q_4320P="4320p",c))(z||{});var T={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},Be=(t,e)=>T[t].height>T[e].height,Fe=(t,e)=>T[t].height>=T[e].height,j=(t,e)=>T[t].height<T[e].height,ze=(t,e)=>T[t].height<=T[e].height,je=t=>t.sort((e,r)=>e===r?0:e==="Invariant quality"?1:r==="Invariant quality"?-1:j(e,r)?1:-1)[0],We=Object.keys(T).sort((t,e)=>j(t,e)?-1:1),Ge=(t,e=.02)=>[...We].find(n=>T[n].height*(1+e)>=t),qe=({width:t,height:e})=>{let r=Math.min(t,e),n=Math.max(t,e);return We.find(i=>{let s=T[i];return s.width>=n&&s.height>=r})},He=t=>T[t].height,W=t=>t==="Invariant quality",Ke=t=>t.every(e=>!W(e));function $e(t){if(W(t))throw new Error("Expected exact quality")}var Ye=(t,e)=>{let r={};for(let n of Object.keys(e)){let i=e[n],s=t[n];Array.isArray(i)&&Array.isArray(s)?r[n]=s:typeof i=="object"&&typeof s=="object"?r[n]=Ye(s,i):r[n]=n in t?s:i}return r};var At=t=>{let e="";return t>=3600&&(e+=Math.floor(t/3600)+"h",t=t%3600),t>=60&&(e+=Math.floor(t/60)+"m",t=t%60),t>0&&(e+=Math.floor(t)+"s"),e};function G(t,e=0,r){let n,i,s,u,o,a,p=0,c=!1,d=!1,S=!0,P=!e&&e!==0&&typeof window.requestAnimationFrame=="function";r&&(c=!!r.leading,d="maxWait"in r,s=r!=null&&r.maxWait?Math.max(+(r==null?void 0:r.maxWait)||0,e):s,S="trailing"in r?!!r.trailing:S);function A(b){let v=n,g=i;return n=i=void 0,p=b,u=t.apply(g,v),u}function M(b,v){return P?(o&&window.cancelAnimationFrame(o),window.requestAnimationFrame(b)):setTimeout(b,v)}function lt(b){if(P){window.cancelAnimationFrame(b);return}clearTimeout(b)}function ut(b){return p=b,o=M(N,e),c?A(b):u}function ct(b){let v=b-a,g=b-p,ve=e-v;return d?Math.min(ve,s-g):ve}function me(b){let v=b-a,g=b-p;return a===void 0||v>=e||v<0||d&&g>=s}function N(){let b=Date.now();if(me(b))return Te(b);o=M(N,ct(b))}function Te(b){return o=void 0,S&&n?A(b):(n=i=void 0,u)}function pt(){o!==void 0&<(o),p=0,n=a=i=o=void 0}function bt(){return o===void 0?u:Te(Date.now())}function dt(){return o!==void 0}function V(...b){let v=Date.now(),g=me(v);if(n=b,i=this,a=v,g){if(o===void 0)return ut(a);if(d)return o=M(N,e),A(a)}return o===void 0&&(o=M(N,e)),u}return V.cancel=pt,V.flush=bt,V.pending=dt,V}var q=(t,e=0,r)=>G(t,e,_(w(w({},{leading:!0,trailing:!0}),r),{maxWait:e}));var C=(t,e)=>{if(t===null||typeof t!="object")return t;let r=Array.isArray(t)?[]:{};for(let n in t){if(typeof e=="function"){let i=e(t[n],n,t,r);if(i!==void 0){r[n]=i;continue}}typeof t[n]=="object"?r[n]=C(t[n],e):r[n]=t[n]}return r};var Xe=t=>C(t);var Rt=300,Je=(t,e=Rt)=>new l(r=>{let{width:n,height:i}=t.getBoundingClientRect();if(r.next({width:n,height:i}),!window.ResizeObserver)return;let s=new ResizeObserver(q(u=>{let o=u[0];if(!o)return;let a,p;o.contentBoxSize&&o.contentBoxSize[0]?(p=o.contentBoxSize[0].blockSize,a=o.contentBoxSize[0].inlineSize):o.contentRect&&(a=o.contentRect.width,p=o.contentRect.height),y(a)&&y(p)&&r.next({width:a,height:p})},e));return s.observe(t),()=>s.disconnect()});var Ze=t=>{t.removeAttribute("src"),t.load()};var k=class extends x{constructor(r){super();this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let n=super._subscribe(r);return r.next(this.value),n}};function Y(t){return new l(e=>{let r={},n=Object.keys(t).length,i=s=>u=>{s in r||n--,r[s]=u,n===0&&e.next(r)};return Object.entries(t).reduce((s,[u,o])=>s.add(o.subscribe(i(u))),new m)})}function X(...t){return new l(e=>t.reduce((r,n)=>r.add(n.subscribe(e)),new m))}var et=t=>new l(e=>{let r=window.setTimeout(()=>{try{e.next()}catch(n){if(e.error)e.error(n);else throw n}},t);return()=>window.clearTimeout(r)});var tt=t=>new l(e=>{let r=window.setInterval(()=>e.next(),t);return()=>{r&&(window.clearInterval(r),r=void 0)}});var rt=t=>new l(e=>{t.forEach(r=>e.next(r))});var nt=(t,e)=>new l(r=>{let n=i=>r.next(i);return t.addEventListener(e,n),()=>t.removeEventListener(e,n)});function Z(t){return e=>new l(r=>e.subscribe(new J(r,t)))}var J=class{constructor(e,r){this.destination=e;this.size=r;this.lastValues=[]}next(e){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(e),this.destination.next(this.lastValues)}error(e){var r,n;(n=(r=this.destination).error)==null||n.call(r,e)}};var Ct={leading:!1,trailing:!0};function te(t,e=Ct){return r=>new l(n=>r.subscribe(new ee(n,t,e)))}var ee=class{constructor(e,r,n){this.destination=e;this.time=r;this.config=n}next(e){this.lastValue=e,y(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(e),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(r){if(this.destination.error)this.destination.error(r);else throw r}this.timeout=void 0},this.time)}error(e){var r,n;(n=(r=this.destination).error)==null||n.call(r,e)}};var kt={leading:!0,trailing:!1};function ne(t,e=kt){return r=>new l(n=>r.subscribe(new re(n,t,e)))}var re=class{constructor(e,r,n){this.destination=e;this.time=r;this.config=n}next(e){this.lastValue=e,B(this.timeout)&&(this.config.leading&&this.destination.next(e),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(e){var r,n;(n=(r=this.destination).error)==null||n.call(r,e)}};function ie(t){return e=>new l(r=>e.subscribe(new oe(r,t)))}var oe=class{constructor(e,r){this.destination=e;this.predicate=r}next(e){let r;try{r=this.predicate(e)}catch(n){throw this.error(n),n}r&&this.destination.next(e)}error(e){var r,n;(n=(r=this.destination).error)==null||n.call(r,e)}};function ae(t=(e,r)=>e===r){return e=>new l(r=>e.subscribe(new se(r,t)))}var ot={},se=class{constructor(e,r){this.destination=e;this.predicate=r;this.lastValue=ot}next(e){let r;try{r=this.lastValue===ot||!this.predicate(this.lastValue,e),this.lastValue=e}catch(n){throw this.error(n),n}r&&this.destination.next(e)}error(e){var r,n;(n=(r=this.destination).error)==null||n.call(r,e)}};function L(t){return e=>new l(r=>e.subscribe(new le(r,t)))}var le=class{constructor(e,r){this.destination=e;this.mapper=r}next(e){let r;try{r=this.mapper(e)}catch(n){throw this.error(n),n}this.destination.next(r)}error(e){var r,n;(n=(r=this.destination).error)==null||n.call(r,e)}};function ue(t){return L(()=>t)}function ce(){return t=>new l(e=>{let r=!1,n=!1,i=t.subscribe(s=>{r||(r=!0,e.next(s)),n&&i.unsubscribe()},s=>{var u;r=!0,(u=e.error)==null||u.call(e,s),n&&i.unsubscribe()});return n=!0,r&&i.unsubscribe(),i})}function be(){return t=>new l(e=>t.subscribe(new pe(e)))}var pe=class{constructor(e){this.destination=e;this.hasLast=!1}next(e){let r=this.last;if(this.last=e,!this.hasLast){this.hasLast=!0;return}this.destination.next([r,e])}error(e){var r,n;(n=(r=this.destination).error)==null||n.call(r,e)}};function fe(t){return e=>new l(r=>e.subscribe(new de(r,t)))}var de=class{constructor(e,r){this.destination=e;this.effect=r}next(e){try{this.effect(e)}catch(r){throw this.error(r),r}this.destination.next(e)}error(e){var r,n;(n=(r=this.destination).error)==null||n.call(r,e)}};var it=(o=>(o.NETWORK="network",o.VIDEO_PIPELINE="video_pipeline",o.EXTERNAL_API="external_api",o.PARSER="parser",o.DOM="dom",o.WTF="wtf",o.FATAL="fatal",o))(it||{});var st=(d=>(d.Armenian="58",d.Azerbaijani="57",d.Belarusian="114",d.English="3",d.Kazakh="97",d.Portuguese="73",d.Russian="0",d.Spanish="4",d.Ukrainian="1",d.Uzbek="65",d.Vietnamese="75",d))(st||{}),Lt="vk.com",Pt=(t,e,r)=>D(void 0,null,function*(){let n=new URL(`https://${Lt}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",e),t!==void 0&&n.searchParams.set("lang",t);let s=yield(yield fetch(n.toString())).json();return Mt(s,r)}),Mt=(t,e)=>Object.fromEntries(Object.entries(t.keys).map(([r,n])=>[r.substring(`${e}_`.length),Nt(n)])),Nt=t=>Array.isArray(t)?t[0]:t;var at=(r=>(r.RU="ru",r.EN="en",r))(at||{});
|
|
6
|
+
"use strict";var pa=Object.create;var te=Object.defineProperty,fa=Object.defineProperties,va=Object.getOwnPropertyDescriptor,ba=Object.getOwnPropertyDescriptors,da=Object.getOwnPropertyNames,_t=Object.getOwnPropertySymbols,Ta=Object.getPrototypeOf,Ct=Object.prototype.hasOwnProperty,ma=Object.prototype.propertyIsEnumerable;var Lt=Math.pow,At=(e,r,t)=>r in e?te(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,z=(e,r)=>{for(var t in r||(r={}))Ct.call(r,t)&&At(e,t,r[t]);if(_t)for(var t of _t(r))ma.call(r,t)&&At(e,t,r[t]);return e},ge=(e,r)=>fa(e,ba(r));var o=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Nt=(e,r)=>{for(var t in r)te(e,t,{get:r[t],enumerable:!0})},jt=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of da(r))!Ct.call(e,i)&&i!==t&&te(e,i,{get:()=>r[i],enumerable:!(n=va(r,i))||n.enumerable});return e};var ha=(e,r,t)=>(t=e!=null?pa(Ta(e)):{},jt(r||!e||!e.__esModule?te(t,"default",{value:e,enumerable:!0}):t,e)),ya=e=>jt(te({},"__esModule",{value:!0}),e);var Ie=(e,r,t)=>new Promise((n,i)=>{var s=c=>{try{a(t.next(c))}catch(l){i(l)}},u=c=>{try{a(t.throw(c))}catch(l){i(l)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(s,u);a((t=t.apply(e,r)).next())});var A=o((id,hn)=>{"use strict";hn.exports=function(e){try{return!!e()}catch(r){return!0}}});var ue=o((od,yn)=>{"use strict";var _a=A();yn.exports=!_a(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var N=o((sd,On)=>{"use strict";var gn=ue(),In=Function.prototype,Er=In.call,Aa=gn&&In.bind.bind(Er,Er);On.exports=gn?Aa:function(e){return function(){return Er.apply(e,arguments)}}});var Ce=o((ad,wn)=>{"use strict";var xn=N(),Ca=xn({}.toString),La=xn("".slice);wn.exports=function(e){return La(Ca(e),8,-1)}});var Sn=o((ud,En)=>{"use strict";var Na=N(),ja=A(),Ma=Ce(),Sr=Object,ka=Na("".split);En.exports=ja(function(){return!Sr("z").propertyIsEnumerable(0)})?function(e){return Ma(e)==="String"?ka(e,""):Sr(e)}:Sr});var Le=o((ld,qn)=>{"use strict";qn.exports=function(e){return e==null}});var Ne=o((cd,Rn)=>{"use strict";var Va=Le(),Da=TypeError;Rn.exports=function(e){if(Va(e))throw new Da("Can't call method on "+e);return e}});var H=o((pd,Pn)=>{"use strict";var Fa=Sn(),Ua=Ne();Pn.exports=function(e){return Fa(Ua(e))}});var An=o((fd,_n)=>{"use strict";_n.exports=function(){}});var Q=o((vd,Cn)=>{"use strict";Cn.exports={}});var w=o((qr,Ln)=>{"use strict";var le=function(e){return e&&e.Math===Math&&e};Ln.exports=le(typeof globalThis=="object"&&globalThis)||le(typeof window=="object"&&window)||le(typeof self=="object"&&self)||le(typeof global=="object"&&global)||le(typeof qr=="object"&&qr)||function(){return this}()||Function("return this")()});var E=o((bd,Nn)=>{"use strict";var Rr=typeof document=="object"&&document.all;Nn.exports=typeof Rr=="undefined"&&Rr!==void 0?function(e){return typeof e=="function"||e===Rr}:function(e){return typeof e=="function"}});var kn=o((dd,Mn)=>{"use strict";var Ga=w(),Ba=E(),jn=Ga.WeakMap;Mn.exports=Ba(jn)&&/native code/.test(String(jn))});var j=o((Td,Vn)=>{"use strict";var Qa=E();Vn.exports=function(e){return typeof e=="object"?e!==null:Qa(e)}});var C=o((md,Dn)=>{"use strict";var Wa=A();Dn.exports=!Wa(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var _r=o((hd,Un)=>{"use strict";var $a=w(),Fn=j(),Pr=$a.document,za=Fn(Pr)&&Fn(Pr.createElement);Un.exports=function(e){return za?Pr.createElement(e):{}}});var Ar=o((yd,Gn)=>{"use strict";var Ya=C(),Ka=A(),Ha=_r();Gn.exports=!Ya&&!Ka(function(){return Object.defineProperty(Ha("div"),"a",{get:function(){return 7}}).a!==7})});var Cr=o((gd,Bn)=>{"use strict";var Xa=C(),Ja=A();Bn.exports=Xa&&Ja(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var W=o((Id,Qn)=>{"use strict";var Za=j(),eu=String,ru=TypeError;Qn.exports=function(e){if(Za(e))return e;throw new ru(eu(e)+" is not an object")}});var F=o((Od,Wn)=>{"use strict";var tu=ue(),je=Function.prototype.call;Wn.exports=tu?je.bind(je):function(){return je.apply(je,arguments)}});var Me=o((xd,$n)=>{"use strict";$n.exports={}});var jr=o((wd,Yn)=>{"use strict";var Lr=Me(),Nr=w(),nu=E(),zn=function(e){return nu(e)?e:void 0};Yn.exports=function(e,r){return arguments.length<2?zn(Lr[e])||zn(Nr[e]):Lr[e]&&Lr[e][r]||Nr[e]&&Nr[e][r]}});var Mr=o((Ed,Kn)=>{"use strict";var iu=N();Kn.exports=iu({}.isPrototypeOf)});var Zn=o((Sd,Jn)=>{"use strict";var ou=w(),Hn=ou.navigator,Xn=Hn&&Hn.userAgent;Jn.exports=Xn?String(Xn):""});var si=o((qd,oi)=>{"use strict";var ii=w(),kr=Zn(),ei=ii.process,ri=ii.Deno,ti=ei&&ei.versions||ri&&ri.version,ni=ti&&ti.v8,R,ke;ni&&(R=ni.split("."),ke=R[0]>0&&R[0]<4?1:+(R[0]+R[1]));!ke&&kr&&(R=kr.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=kr.match(/Chrome\/(\d+)/),R&&(ke=+R[1])));oi.exports=ke});var Vr=o((Rd,ui)=>{"use strict";var ai=si(),su=A(),au=w(),uu=au.String;ui.exports=!!Object.getOwnPropertySymbols&&!su(function(){var e=Symbol("symbol detection");return!uu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ai&&ai<41})});var Dr=o((Pd,li)=>{"use strict";var lu=Vr();li.exports=lu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Fr=o((_d,ci)=>{"use strict";var cu=jr(),pu=E(),fu=Mr(),vu=Dr(),bu=Object;ci.exports=vu?function(e){return typeof e=="symbol"}:function(e){var r=cu("Symbol");return pu(r)&&fu(r.prototype,bu(e))}});var Ve=o((Ad,pi)=>{"use strict";var du=String;pi.exports=function(e){try{return du(e)}catch(r){return"Object"}}});var ce=o((Cd,fi)=>{"use strict";var Tu=E(),mu=Ve(),hu=TypeError;fi.exports=function(e){if(Tu(e))return e;throw new hu(mu(e)+" is not a function")}});var De=o((Ld,vi)=>{"use strict";var yu=ce(),gu=Le();vi.exports=function(e,r){var t=e[r];return gu(t)?void 0:yu(t)}});var di=o((Nd,bi)=>{"use strict";var Ur=F(),Gr=E(),Br=j(),Iu=TypeError;bi.exports=function(e,r){var t,n;if(r==="string"&&Gr(t=e.toString)&&!Br(n=Ur(t,e))||Gr(t=e.valueOf)&&!Br(n=Ur(t,e))||r!=="string"&&Gr(t=e.toString)&&!Br(n=Ur(t,e)))return n;throw new Iu("Can't convert object to primitive value")}});var pe=o((jd,Ti)=>{"use strict";Ti.exports=!0});var yi=o((Md,hi)=>{"use strict";var mi=w(),Ou=Object.defineProperty;hi.exports=function(e,r){try{Ou(mi,e,{value:r,configurable:!0,writable:!0})}catch(t){mi[e]=r}return r}});var Fe=o((kd,Oi)=>{"use strict";var xu=pe(),wu=w(),Eu=yi(),gi="__core-js_shared__",Ii=Oi.exports=wu[gi]||Eu(gi,{});(Ii.versions||(Ii.versions=[])).push({version:"3.38.0",mode:xu?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Qr=o((Vd,wi)=>{"use strict";var xi=Fe();wi.exports=function(e,r){return xi[e]||(xi[e]=r||{})}});var Wr=o((Dd,Ei)=>{"use strict";var Su=Ne(),qu=Object;Ei.exports=function(e){return qu(Su(e))}});var M=o((Fd,Si)=>{"use strict";var Ru=N(),Pu=Wr(),_u=Ru({}.hasOwnProperty);Si.exports=Object.hasOwn||function(r,t){return _u(Pu(r),t)}});var $r=o((Ud,qi)=>{"use strict";var Au=N(),Cu=0,Lu=Math.random(),Nu=Au(1 .toString);qi.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Nu(++Cu+Lu,36)}});var k=o((Gd,Pi)=>{"use strict";var ju=w(),Mu=Qr(),Ri=M(),ku=$r(),Vu=Vr(),Du=Dr(),X=ju.Symbol,zr=Mu("wks"),Fu=Du?X.for||X:X&&X.withoutSetter||ku;Pi.exports=function(e){return Ri(zr,e)||(zr[e]=Vu&&Ri(X,e)?X[e]:Fu("Symbol."+e)),zr[e]}});var Li=o((Bd,Ci)=>{"use strict";var Uu=F(),_i=j(),Ai=Fr(),Gu=De(),Bu=di(),Qu=k(),Wu=TypeError,$u=Qu("toPrimitive");Ci.exports=function(e,r){if(!_i(e)||Ai(e))return e;var t=Gu(e,$u),n;if(t){if(r===void 0&&(r="default"),n=Uu(t,e,r),!_i(n)||Ai(n))return n;throw new Wu("Can't convert object to primitive value")}return r===void 0&&(r="number"),Bu(e,r)}});var Yr=o((Qd,Ni)=>{"use strict";var zu=Li(),Yu=Fr();Ni.exports=function(e){var r=zu(e,"string");return Yu(r)?r:r+""}});var J=o(Mi=>{"use strict";var Ku=C(),Hu=Ar(),Xu=Cr(),Ue=W(),ji=Yr(),Ju=TypeError,Kr=Object.defineProperty,Zu=Object.getOwnPropertyDescriptor,Hr="enumerable",Xr="configurable",Jr="writable";Mi.f=Ku?Xu?function(r,t,n){if(Ue(r),t=ji(t),Ue(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Jr in n&&!n[Jr]){var i=Zu(r,t);i&&i[Jr]&&(r[t]=n.value,n={configurable:Xr in n?n[Xr]:i[Xr],enumerable:Hr in n?n[Hr]:i[Hr],writable:!1})}return Kr(r,t,n)}:Kr:function(r,t,n){if(Ue(r),t=ji(t),Ue(n),Hu)try{return Kr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new Ju("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var fe=o(($d,ki)=>{"use strict";ki.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Z=o((zd,Vi)=>{"use strict";var el=C(),rl=J(),tl=fe();Vi.exports=el?function(e,r,t){return rl.f(e,r,tl(1,t))}:function(e,r,t){return e[r]=t,e}});var Ge=o((Yd,Fi)=>{"use strict";var nl=Qr(),il=$r(),Di=nl("keys");Fi.exports=function(e){return Di[e]||(Di[e]=il(e))}});var Be=o((Kd,Ui)=>{"use strict";Ui.exports={}});var Wi=o((Hd,Qi)=>{"use strict";var ol=kn(),Bi=w(),sl=j(),al=Z(),Zr=M(),et=Fe(),ul=Ge(),ll=Be(),Gi="Object already initialized",rt=Bi.TypeError,cl=Bi.WeakMap,Qe,ve,We,pl=function(e){return We(e)?ve(e):Qe(e,{})},fl=function(e){return function(r){var t;if(!sl(r)||(t=ve(r)).type!==e)throw new rt("Incompatible receiver, "+e+" required");return t}};ol||et.state?(P=et.state||(et.state=new cl),P.get=P.get,P.has=P.has,P.set=P.set,Qe=function(e,r){if(P.has(e))throw new rt(Gi);return r.facade=e,P.set(e,r),r},ve=function(e){return P.get(e)||{}},We=function(e){return P.has(e)}):($=ul("state"),ll[$]=!0,Qe=function(e,r){if(Zr(e,$))throw new rt(Gi);return r.facade=e,al(e,$,r),r},ve=function(e){return Zr(e,$)?e[$]:{}},We=function(e){return Zr(e,$)});var P,$;Qi.exports={set:Qe,get:ve,has:We,enforce:pl,getterFor:fl}});var Hi=o((Xd,Ki)=>{"use strict";var vl=ue(),Yi=Function.prototype,$i=Yi.apply,zi=Yi.call;Ki.exports=typeof Reflect=="object"&&Reflect.apply||(vl?zi.bind($i):function(){return zi.apply($i,arguments)})});var tt=o((Jd,Xi)=>{"use strict";var bl=Ce(),dl=N();Xi.exports=function(e){if(bl(e)==="Function")return dl(e)}});var ro=o(eo=>{"use strict";var Ji={}.propertyIsEnumerable,Zi=Object.getOwnPropertyDescriptor,Tl=Zi&&!Ji.call({1:2},1);eo.f=Tl?function(r){var t=Zi(this,r);return!!t&&t.enumerable}:Ji});var io=o(no=>{"use strict";var ml=C(),hl=F(),yl=ro(),gl=fe(),Il=H(),Ol=Yr(),xl=M(),wl=Ar(),to=Object.getOwnPropertyDescriptor;no.f=ml?to:function(r,t){if(r=Il(r),t=Ol(t),wl)try{return to(r,t)}catch(n){}if(xl(r,t))return gl(!hl(yl.f,r,t),r[t])}});var so=o((rT,oo)=>{"use strict";var El=A(),Sl=E(),ql=/#|\.prototype\./,be=function(e,r){var t=Pl[Rl(e)];return t===Al?!0:t===_l?!1:Sl(r)?El(r):!!r},Rl=be.normalize=function(e){return String(e).replace(ql,".").toLowerCase()},Pl=be.data={},_l=be.NATIVE="N",Al=be.POLYFILL="P";oo.exports=be});var nt=o((tT,uo)=>{"use strict";var ao=tt(),Cl=ce(),Ll=ue(),Nl=ao(ao.bind);uo.exports=function(e,r){return Cl(e),r===void 0?e:Ll?Nl(e,r):function(){return e.apply(r,arguments)}}});var it=o((nT,co)=>{"use strict";var de=w(),jl=Hi(),Ml=tt(),kl=E(),Vl=io().f,Dl=so(),ee=Me(),Fl=nt(),re=Z(),lo=M();Fe();var Ul=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return jl(e,this,arguments)};return r.prototype=e.prototype,r};co.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,s=e.proto,u=n?de:i?de[t]:de[t]&&de[t].prototype,a=n?ee:ee[t]||re(ee,t,{})[t],c=a.prototype,l,p,f,b,d,m,h,I,y;for(b in r)l=Dl(n?b:t+(i?".":"#")+b,e.forced),p=!l&&u&&lo(u,b),m=a[b],p&&(e.dontCallGetSet?(y=Vl(u,b),h=y&&y.value):h=u[b]),d=p&&h?h:r[b],!(!l&&!s&&typeof m==typeof d)&&(e.bind&&p?I=Fl(d,de):e.wrap&&p?I=Ul(d):s&&kl(d)?I=Ml(d):I=d,(e.sham||d&&d.sham||m&&m.sham)&&re(I,"sham",!0),re(a,b,I),s&&(f=t+"Prototype",lo(ee,f)||re(ee,f,{}),re(ee[f],b,d),e.real&&c&&(l||!c[b])&&re(c,b,d)))}});var vo=o((iT,fo)=>{"use strict";var ot=C(),Gl=M(),po=Function.prototype,Bl=ot&&Object.getOwnPropertyDescriptor,st=Gl(po,"name"),Ql=st&&function(){}.name==="something",Wl=st&&(!ot||ot&&Bl(po,"name").configurable);fo.exports={EXISTS:st,PROPER:Ql,CONFIGURABLE:Wl}});var To=o((oT,bo)=>{"use strict";var $l=Math.ceil,zl=Math.floor;bo.exports=Math.trunc||function(r){var t=+r;return(t>0?zl:$l)(t)}});var at=o((sT,mo)=>{"use strict";var Yl=To();mo.exports=function(e){var r=+e;return r!==r||r===0?0:Yl(r)}});var yo=o((aT,ho)=>{"use strict";var Kl=at(),Hl=Math.max,Xl=Math.min;ho.exports=function(e,r){var t=Kl(e);return t<0?Hl(t+r,0):Xl(t,r)}});var Io=o((uT,go)=>{"use strict";var Jl=at(),Zl=Math.min;go.exports=function(e){var r=Jl(e);return r>0?Zl(r,9007199254740991):0}});var ut=o((lT,Oo)=>{"use strict";var ec=Io();Oo.exports=function(e){return ec(e.length)}});var Eo=o((cT,wo)=>{"use strict";var rc=H(),tc=yo(),nc=ut(),xo=function(e){return function(r,t,n){var i=rc(r),s=nc(i);if(s===0)return!e&&-1;var u=tc(n,s),a;if(e&&t!==t){for(;s>u;)if(a=i[u++],a!==a)return!0}else for(;s>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};wo.exports={includes:xo(!0),indexOf:xo(!1)}});var Ro=o((pT,qo)=>{"use strict";var ic=N(),lt=M(),oc=H(),sc=Eo().indexOf,ac=Be(),So=ic([].push);qo.exports=function(e,r){var t=oc(e),n=0,i=[],s;for(s in t)!lt(ac,s)&<(t,s)&&So(i,s);for(;r.length>n;)lt(t,s=r[n++])&&(~sc(i,s)||So(i,s));return i}});var ct=o((fT,Po)=>{"use strict";Po.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Ao=o((vT,_o)=>{"use strict";var uc=Ro(),lc=ct();_o.exports=Object.keys||function(r){return uc(r,lc)}});var Lo=o(Co=>{"use strict";var cc=C(),pc=Cr(),fc=J(),vc=W(),bc=H(),dc=Ao();Co.f=cc&&!pc?Object.defineProperties:function(r,t){vc(r);for(var n=bc(t),i=dc(t),s=i.length,u=0,a;s>u;)fc.f(r,a=i[u++],n[a]);return r}});var jo=o((dT,No)=>{"use strict";var Tc=jr();No.exports=Tc("document","documentElement")});var bt=o((TT,Go)=>{"use strict";var mc=W(),hc=Lo(),Mo=ct(),yc=Be(),gc=jo(),Ic=_r(),Oc=Ge(),ko=">",Vo="<",ft="prototype",vt="script",Fo=Oc("IE_PROTO"),pt=function(){},Uo=function(e){return Vo+vt+ko+e+Vo+"/"+vt+ko},Do=function(e){e.write(Uo("")),e.close();var r=e.parentWindow.Object;return e=null,r},xc=function(){var e=Ic("iframe"),r="java"+vt+":",t;return e.style.display="none",gc.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Uo("document.F=Object")),t.close(),t.F},$e,ze=function(){try{$e=new ActiveXObject("htmlfile")}catch(r){}ze=typeof document!="undefined"?document.domain&&$e?Do($e):xc():Do($e);for(var e=Mo.length;e--;)delete ze[ft][Mo[e]];return ze()};yc[Fo]=!0;Go.exports=Object.create||function(r,t){var n;return r!==null?(pt[ft]=mc(r),n=new pt,pt[ft]=null,n[Fo]=r):n=ze(),t===void 0?n:hc.f(n,t)}});var Qo=o((mT,Bo)=>{"use strict";var wc=A();Bo.exports=!wc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Tt=o((hT,$o)=>{"use strict";var Ec=M(),Sc=E(),qc=Wr(),Rc=Ge(),Pc=Qo(),Wo=Rc("IE_PROTO"),dt=Object,_c=dt.prototype;$o.exports=Pc?dt.getPrototypeOf:function(e){var r=qc(e);if(Ec(r,Wo))return r[Wo];var t=r.constructor;return Sc(t)&&r instanceof t?t.prototype:r instanceof dt?_c:null}});var mt=o((yT,zo)=>{"use strict";var Ac=Z();zo.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Ac(e,r,t),e}});var It=o((gT,Ho)=>{"use strict";var Cc=A(),Lc=E(),Nc=j(),jc=bt(),Yo=Tt(),Mc=mt(),kc=k(),Vc=pe(),gt=kc("iterator"),Ko=!1,V,ht,yt;[].keys&&(yt=[].keys(),"next"in yt?(ht=Yo(Yo(yt)),ht!==Object.prototype&&(V=ht)):Ko=!0);var Dc=!Nc(V)||Cc(function(){var e={};return V[gt].call(e)!==e});Dc?V={}:Vc&&(V=jc(V));Lc(V[gt])||Mc(V,gt,function(){return this});Ho.exports={IteratorPrototype:V,BUGGY_SAFARI_ITERATORS:Ko}});var Ye=o((IT,Jo)=>{"use strict";var Fc=k(),Uc=Fc("toStringTag"),Xo={};Xo[Uc]="z";Jo.exports=String(Xo)==="[object z]"});var Ot=o((OT,Zo)=>{"use strict";var Gc=Ye(),Bc=E(),Ke=Ce(),Qc=k(),Wc=Qc("toStringTag"),$c=Object,zc=Ke(function(){return arguments}())==="Arguments",Yc=function(e,r){try{return e[r]}catch(t){}};Zo.exports=Gc?Ke:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=Yc(r=$c(e),Wc))=="string"?t:zc?Ke(r):(n=Ke(r))==="Object"&&Bc(r.callee)?"Arguments":n}});var rs=o((xT,es)=>{"use strict";var Kc=Ye(),Hc=Ot();es.exports=Kc?{}.toString:function(){return"[object "+Hc(this)+"]"}});var He=o((wT,ns)=>{"use strict";var Xc=Ye(),Jc=J().f,Zc=Z(),ep=M(),rp=rs(),tp=k(),ts=tp("toStringTag");ns.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(ep(i,ts)||Jc(i,ts,{configurable:!0,value:r}),n&&!Xc&&Zc(i,"toString",rp))}});var os=o((ET,is)=>{"use strict";var np=It().IteratorPrototype,ip=bt(),op=fe(),sp=He(),ap=Q(),up=function(){return this};is.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=ip(np,{next:op(+!n,t)}),sp(e,i,!1,!0),ap[i]=up,e}});var as=o((ST,ss)=>{"use strict";var lp=N(),cp=ce();ss.exports=function(e,r,t){try{return lp(cp(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var ls=o((qT,us)=>{"use strict";var pp=j();us.exports=function(e){return pp(e)||e===null}});var ps=o((RT,cs)=>{"use strict";var fp=ls(),vp=String,bp=TypeError;cs.exports=function(e){if(fp(e))return e;throw new bp("Can't set "+vp(e)+" as a prototype")}});var vs=o((PT,fs)=>{"use strict";var dp=as(),Tp=j(),mp=Ne(),hp=ps();fs.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=dp(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,s){return mp(i),hp(s),Tp(i)&&(e?t(i,s):i.__proto__=s),i}}():void 0)});var ws=o((_T,xs)=>{"use strict";var yp=it(),gp=F(),Xe=pe(),Is=vo(),Ip=E(),Op=os(),bs=Tt(),ds=vs(),xp=He(),wp=Z(),xt=mt(),Ep=k(),Ts=Q(),Os=It(),Sp=Is.PROPER,qp=Is.CONFIGURABLE,ms=Os.IteratorPrototype,Je=Os.BUGGY_SAFARI_ITERATORS,Te=Ep("iterator"),hs="keys",me="values",ys="entries",gs=function(){return this};xs.exports=function(e,r,t,n,i,s,u){Op(t,r,n);var a=function(y){if(y===i&&b)return b;if(!Je&&y&&y in p)return p[y];switch(y){case hs:return function(){return new t(this,y)};case me:return function(){return new t(this,y)};case ys:return function(){return new t(this,y)}}return function(){return new t(this)}},c=r+" Iterator",l=!1,p=e.prototype,f=p[Te]||p["@@iterator"]||i&&p[i],b=!Je&&f||a(i),d=r==="Array"&&p.entries||f,m,h,I;if(d&&(m=bs(d.call(new e)),m!==Object.prototype&&m.next&&(!Xe&&bs(m)!==ms&&(ds?ds(m,ms):Ip(m[Te])||xt(m,Te,gs)),xp(m,c,!0,!0),Xe&&(Ts[c]=gs))),Sp&&i===me&&f&&f.name!==me&&(!Xe&&qp?wp(p,"name",me):(l=!0,b=function(){return gp(f,this)})),i)if(h={values:a(me),keys:s?b:a(hs),entries:a(ys)},u)for(I in h)(Je||l||!(I in p))&&xt(p,I,h[I]);else yp({target:r,proto:!0,forced:Je||l},h);return(!Xe||u)&&p[Te]!==b&&xt(p,Te,b,{name:i}),Ts[r]=b,h}});var Ss=o((AT,Es)=>{"use strict";Es.exports=function(e,r){return{value:e,done:r}}});var Et=o((CT,As)=>{"use strict";var Rp=H(),wt=An(),qs=Q(),Ps=Wi(),Pp=J().f,_p=ws(),Ze=Ss(),Ap=pe(),Cp=C(),_s="Array Iterator",Lp=Ps.set,Np=Ps.getterFor(_s);As.exports=_p(Array,"Array",function(e,r){Lp(this,{type:_s,target:Rp(e),index:0,kind:r})},function(){var e=Np(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,Ze(void 0,!0);switch(e.kind){case"keys":return Ze(t,!1);case"values":return Ze(r[t],!1)}return Ze([t,r[t]],!1)},"values");var Rs=qs.Arguments=qs.Array;wt("keys");wt("values");wt("entries");if(!Ap&&Cp&&Rs.name!=="values")try{Pp(Rs,"name",{value:"values"})}catch(e){}});var Ls=o((LT,Cs)=>{"use strict";var jp=k(),Mp=Q(),kp=jp("iterator"),Vp=Array.prototype;Cs.exports=function(e){return e!==void 0&&(Mp.Array===e||Vp[kp]===e)}});var St=o((NT,js)=>{"use strict";var Dp=Ot(),Ns=De(),Fp=Le(),Up=Q(),Gp=k(),Bp=Gp("iterator");js.exports=function(e){if(!Fp(e))return Ns(e,Bp)||Ns(e,"@@iterator")||Up[Dp(e)]}});var ks=o((jT,Ms)=>{"use strict";var Qp=F(),Wp=ce(),$p=W(),zp=Ve(),Yp=St(),Kp=TypeError;Ms.exports=function(e,r){var t=arguments.length<2?Yp(e):r;if(Wp(t))return $p(Qp(t,e));throw new Kp(zp(e)+" is not iterable")}});var Fs=o((MT,Ds)=>{"use strict";var Hp=F(),Vs=W(),Xp=De();Ds.exports=function(e,r,t){var n,i;Vs(e);try{if(n=Xp(e,"return"),!n){if(r==="throw")throw t;return t}n=Hp(n,e)}catch(s){i=!0,n=s}if(r==="throw")throw t;if(i)throw n;return Vs(n),t}});var Ws=o((kT,Qs)=>{"use strict";var Jp=nt(),Zp=F(),ef=W(),rf=Ve(),tf=Ls(),nf=ut(),Us=Mr(),of=ks(),sf=St(),Gs=Fs(),af=TypeError,er=function(e,r){this.stopped=e,this.result=r},Bs=er.prototype;Qs.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),s=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),a=!!(t&&t.INTERRUPTED),c=Jp(r,n),l,p,f,b,d,m,h,I=function(g){return l&&Gs(l,"normal",g),new er(!0,g)},y=function(g){return i?(ef(g),a?c(g[0],g[1],I):c(g[0],g[1])):a?c(g,I):c(g)};if(s)l=e.iterator;else if(u)l=e;else{if(p=sf(e),!p)throw new af(rf(e)+" is not iterable");if(tf(p)){for(f=0,b=nf(e);b>f;f++)if(d=y(e[f]),d&&Us(Bs,d))return d;return new er(!1)}l=of(e,p)}for(m=s?e.next:l.next;!(h=Zp(m,l)).done;){try{d=y(h.value)}catch(g){Gs(l,"throw",g)}if(typeof d=="object"&&d&&Us(Bs,d))return d}return new er(!1)}});var zs=o((VT,$s)=>{"use strict";var uf=C(),lf=J(),cf=fe();$s.exports=function(e,r,t){uf?lf.f(e,r,cf(0,t)):e[r]=t}});var Ys=o(()=>{"use strict";var pf=it(),ff=Ws(),vf=zs();pf({target:"Object",stat:!0},{fromEntries:function(r){var t={};return ff(r,function(n,i){vf(t,n,i)},{AS_ENTRIES:!0}),t}})});var Hs=o((UT,Ks)=>{"use strict";Et();Ys();var bf=Me();Ks.exports=bf.Object.fromEntries});var Js=o((GT,Xs)=>{"use strict";Xs.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var ea=o(()=>{"use strict";Et();var df=Js(),Tf=w(),mf=He(),Zs=Q();for(rr in df)mf(Tf[rr],rr),Zs[rr]=Zs.Array;var rr});var ta=o((WT,ra)=>{"use strict";var hf=Hs();ea();ra.exports=hf});var ia=o(($T,na)=>{"use strict";var yf=ta();na.exports=yf});var wf={};Nt(wf,{ErrorCategory:()=>dn,InterfaceLanguage:()=>aa,Logger:()=>Oe,Observable:()=>v,Subject:()=>L,Subscription:()=>x,VERSION:()=>Mt,VKNumericLanguage:()=>sa,ValueSubject:()=>ie,VideoQuality:()=>Ee,abortable:()=>Wt,addScript:()=>Gt,areQualitiesExact:()=>nn,assertEmptyArray:()=>Ut,assertNever:()=>_,assertNonNullable:()=>Vt,assertNotEmptyArray:()=>Ft,assertNullable:()=>Dt,assertQualityIsExact:()=>on,buffer:()=>ur,checkNever:()=>kt,clearVideoElement:()=>ln,clientChecker:()=>$t,cloneDeep:()=>an,cloneDeepWith:()=>ne,combine:()=>or,debounce:()=>cr,debounceFn:()=>Re,detectEmbed:()=>Yt,fillWithDefault:()=>sn,filter:()=>br,filterChanged:()=>Tr,fromEvent:()=>vn,getExponentialDelay:()=>zt,getHighestQuality:()=>Jt,interval:()=>pn,isHigher:()=>Kt,isHigherOrEqual:()=>Ht,isInvariantQuality:()=>qe,isLower:()=>Se,isLowerOrEqual:()=>Xt,isMobile:()=>nr,isNonNullable:()=>G,isNullable:()=>xe,loadVKLangPack:()=>If,map:()=>oe,mapTo:()=>hr,merge:()=>sr,noop:()=>D,now:()=>Qt,observableFrom:()=>fn,observeElementSize:()=>un,once:()=>yr,pairwise:()=>Ir,safeStorage:()=>we,tap:()=>xr,throttle:()=>fr,throttleFn:()=>Pe,timeCodeToString:()=>Sa,timeout:()=>cn,videoHeightToQuality:()=>en,videoQualityToHeight:()=>tn,videoSizeToQuality:()=>rn});module.exports=ya(wf);var Mt="1.0.39-beta.0";var x=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}};var _=e=>{throw new Error(`${e} is value of unexpected type`)},kt=e=>{};var D=()=>{};var v=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:D}:n={next:a=>t.next(a),error:a=>{var c;return(c=t.error)==null?void 0:c.call(t,a)}}:n={next:D,error:D};let i=typeof r=="function"?{next:a=>{try{r(a)}catch(c){n.next(c)}},error:a=>n.next(a)}:{next:a=>r.next(a),error:a=>r.error?r.error(a):n.next(a)},s;try{s=this._subscribe(i)}catch(a){(u=i.error)==null||u.call(i,a)}return new x().add(()=>{switch(i.next=D,i.error=D,typeof s){case"function":s();return;case"object":s.unsubscribe();return;case"undefined":return;default:return _(s)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var L=class extends v{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{var i;return(i=n.error)==null?void 0:i.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new x().add(()=>this.subscribers.delete(n))}};var Oe=class{constructor(){this.log$=new L;this.logs=[];this.log=r=>{let t=ge(z({},r),{timestamp:Date.now()});this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>z({component:r},t))}};function Vt(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Dt(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function G(e){return typeof e!="undefined"&&e!==null}function xe(e){return e==null}function Ft(e,r){if(!(e!=null&&e.length))throw new Error(r)}function Ut(e,r){if(e!=null&&e.length)throw new Error(r)}var Gt=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{a(),l.remove()});let s=()=>{a(),i()},u=()=>{a(),n()},a=()=>{c&&clearTimeout(c),l.removeEventListener("load",u),l.removeEventListener("error",s)},c;t&&(c=window.setTimeout(s,t));let l=document.createElement("script");l.addEventListener("load",u),l.addEventListener("error",s),l.src=e,document.head.appendChild(l)});var Bt,Qt=typeof((Bt=window.performance)==null?void 0:Bt.now)=="function"?()=>window.performance.now():()=>Date.now();var Wt=(e,r)=>(...t)=>Ie(void 0,null,function*(){var u;let n=r(...t),i=e.aborted,s;for(;!i&&!e.aborted;)try{let a=yield n.next(s);i=(u=a.done)!=null?u:!1,s=a.value}catch(a){yield n.throw(a)}return s});var nr=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!=null?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.mobile)},tr=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return["iPhone","iPad","iPod"].includes(this.device)}get isMac(){return this.device==="Mac"}get isApple(){return this.isIOS||this.isMac}get isIphoneOrOldIpad(){if(!this.isApple||!this.isTouch)return!1;let r=this.device==="iPad"||(window==null?void 0:window.screen.width)>700,t=this._iosVersion;return!r||r&&!!t&&t<16}get isAndroid(){return this.device==="Android"}get isMobile(){return this._isMobile}get iOSVersion(){return this._iosVersion}get macVersion(){return this._macVersion}get isYandex(){return this.browser==="Yandex"}get isSafari(){return this.browser==="Safari"}get isSamsungBrowser(){return this.browser==="SamsungBrowser"}get isHDR(){return this._isHdr}detect(){var n;let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!((n=matchMedia("(dynamic-range: high)"))!=null&&n.matches)}catch(i){console.error(i)}try{this._isMobile=nr()}catch(i){console.error(i)}this.detectBrowser(r),this.detectDevice(r),this.isIOS&&this.detectIOSVersion(),this.isMac&&this.detectMacVersion()}detectBrowser(r){try{let t=/yabrowser/i.test(r)?"Yandex":void 0,n=/samsungbrowser/i.test(r)?"SamsungBrowser":void 0,i=/chrome|crios/i.test(r)?"Chrome":void 0,s=/chromium/i.test(r)?"Chromium":void 0,u=/firefox|fxios/i.test(r)?"Firefox":void 0,a=/webkit|safari|khtml/i.test(r)?"Safari":void 0,c=/opr\//i.test(r)?"Opera":void 0,l=/edg/i.test(r)?"Edge":void 0;this._currentBrowser=t||n||u||c||l||i||s||a||"Rest"}catch(t){console.error(t)}}detectDevice(r){try{let t=/android/i.test(r)?"Android":void 0,n=/iphone/i.test(r)?"iPhone":void 0,i=/ipad/i.test(r)?"iPad":void 0,s=/ipod/i.test(r)?"iPod":void 0,u=/mac/i.test(r)?"Mac":void 0,a=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||i||s||a||u||"Desktop"}catch(t){console.error(t)}}detectIOSVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+(\.\d+)?)/i);if(!t)return;let n=t[1],i=parseFloat(n);if(isNaN(i))return;this._iosVersion=i}catch(r){console.error(r)}}detectMacVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+)/);if(!t)return;let n=t[1],i=parseInt(n,10);if(isNaN(i))return;this._macVersion=i}catch(r){console.error(r)}}},$t=new tr;var zt=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:s=0}={})=>{let u=r;return u*=Lt(t,e),u*=1+(Math.random()*s*2-s),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var we={};Nt(we,{clear:()=>Ea,get:()=>Ia,has:()=>xa,isPersistent:()=>ga,remove:()=>wa,set:()=>Oa});var O,B,ir=`vk-videoplayer-dummy-key-${Math.random()}`,Y=()=>{if(B!==void 0)return B;try{localStorage.setItem(ir,"test"),localStorage.removeItem(ir),B=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(ir),B=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)B=2;else throw r}else throw e}return B===2&&(O=new Map),B},ga=()=>Y()===0,Ia=e=>{var t,n;let r=Y();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return O==null?void 0:O.get(e);default:_(r)}},Oa=(e,r)=>{let t=Y();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void(O==null?void 0:O.set(e,r));default:_(t)}},xa=e=>{var t;let r=Y();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=O==null?void 0:O.has(e))!=null?t:!1;default:return _(r),!1}},wa=e=>{let r=Y();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void(O==null?void 0:O.delete(e));default:_(r)}},Ea=()=>{let e=Y();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return O==null?void 0:O.clear();default:_(e)}};var Yt=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}let t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};var Ee=(p=>(p.INVARIANT="Invariant quality",p.Q_144P="144p",p.Q_240P="240p",p.Q_360P="360p",p.Q_480P="480p",p.Q_720P="720p",p.Q_1080P="1080p",p.Q_1440P="1440p",p.Q_2160P="2160p",p.Q_4320P="4320p",p))(Ee||{});var S={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},Kt=(e,r)=>S[e].height>S[r].height,Ht=(e,r)=>S[e].height>=S[r].height,Se=(e,r)=>S[e].height<S[r].height,Xt=(e,r)=>S[e].height<=S[r].height,Jt=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Se(r,t)?1:-1)[0],Zt=Object.keys(S).sort((e,r)=>Se(e,r)?-1:1),en=(e,r=.02)=>[...Zt].find(n=>S[n].height*(1+r)>=e),rn=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return Zt.find(i=>{let s=S[i];return s.width>=n&&s.height>=t})},tn=e=>S[e].height,qe=e=>e==="Invariant quality",nn=e=>e.every(r=>!qe(r));function on(e){if(qe(e))throw new Error("Expected exact quality")}var sn=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],s=e[n];Array.isArray(i)&&Array.isArray(s)?t[n]=s:typeof i=="object"&&typeof s=="object"?t[n]=sn(s,i):t[n]=n in e?s:i}return t};var Sa=e=>{let r="";return e>=3600&&(r+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(r+=Math.floor(e/60)+"m",e=e%60),e>0&&(r+=Math.floor(e)+"s"),r};function Re(e,r=0,t){let n,i,s,u,a,c,l=0,p=!1,f=!1,b=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(p=!!t.leading,f="maxWait"in t,s=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):s,b="trailing"in t?!!t.trailing:b);function m(T){let q=n,U=i;return n=i=void 0,l=T,u=e.apply(U,q),u}function h(T,q){return d?(a&&window.cancelAnimationFrame(a),window.requestAnimationFrame(T)):setTimeout(T,q)}function I(T){if(d){window.cancelAnimationFrame(T);return}clearTimeout(T)}function y(T){return l=T,a=h(he,r),p?m(T):u}function g(T){let q=T-c,U=T-l,Pt=r-q;return f?Math.min(Pt,s-U):Pt}function qt(T){let q=T-c,U=T-l;return c===void 0||q>=r||q<0||f&&U>=s}function he(){let T=Date.now();if(qt(T))return Rt(T);a=h(he,g(T))}function Rt(T){return a=void 0,b&&n?m(T):(n=i=void 0,u)}function ua(){a!==void 0&&I(a),l=0,n=c=i=a=void 0}function la(){return a===void 0?u:Rt(Date.now())}function ca(){return a!==void 0}function ye(...T){let q=Date.now(),U=qt(q);if(n=T,i=this,c=q,U){if(a===void 0)return y(c);if(f)return a=h(he,r),m(c)}return a===void 0&&(a=h(he,r)),u}return ye.cancel=ua,ye.flush=la,ye.pending=ca,ye}var Pe=(e,r=0,t)=>Re(e,r,ge(z(z({},{leading:!0,trailing:!0}),t),{maxWait:r}));var ne=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let i=r(e[n],n,e,t);if(i!==void 0){t[n]=i;continue}}typeof e[n]=="object"?t[n]=ne(e[n],r):t[n]=e[n]}return t};var an=e=>ne(e);var qa=300,un=(e,r=qa)=>new v(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let s=new ResizeObserver(Pe(u=>{let a=u[0];if(!a)return;let c,l;a.contentBoxSize&&a.contentBoxSize[0]?(l=a.contentBoxSize[0].blockSize,c=a.contentBoxSize[0].inlineSize):a.contentRect&&(c=a.contentRect.width,l=a.contentRect.height),G(c)&&G(l)&&t.next({width:c,height:l})},r));return s.observe(e),()=>s.disconnect()});var ln=e=>{e.removeAttribute("src"),e.load()};var ie=class extends L{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};function or(e){return new v(r=>{let t={},n=Object.keys(e).length,i=s=>u=>{s in t||n--,t[s]=u,n===0&&r.next(t)};return Object.entries(e).reduce((s,[u,a])=>s.add(a.subscribe(i(u))),new x)})}function sr(...e){return new v(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new x))}var cn=e=>new v(r=>{let t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)});var pn=e=>new v(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var fn=e=>new v(r=>{e.forEach(t=>r.next(t))});var vn=(e,r)=>new v(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function ur(e){return r=>new v(t=>r.subscribe(new ar(t,e)))}var ar=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Ra={leading:!1,trailing:!0};function cr(e,r=Ra){return t=>new v(n=>t.subscribe(new lr(n,e,r)))}var lr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,G(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Pa={leading:!0,trailing:!1};function fr(e,r=Pa){return t=>new v(n=>t.subscribe(new pr(n,e,r)))}var pr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,xe(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function br(e){return r=>new v(t=>r.subscribe(new vr(t,e)))}var vr=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Tr(e=(r,t)=>r===t){return r=>new v(t=>r.subscribe(new dr(t,e)))}var bn={},dr=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=bn}next(r){let t;try{t=this.lastValue===bn||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function oe(e){return r=>new v(t=>r.subscribe(new mr(t,e)))}var mr=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function hr(e){return oe(()=>e)}function yr(){return e=>new v(r=>{let t=!1,n=!1,i=e.subscribe(s=>{t||(t=!0,r.next(s)),n&&i.unsubscribe()},s=>{var u;t=!0,(u=r.error)==null||u.call(r,s),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function Ir(){return e=>new v(r=>e.subscribe(new gr(r)))}var gr=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function xr(e){return r=>new v(t=>r.subscribe(new Or(t,e)))}var Or=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var dn=(a=>(a.NETWORK="network",a.VIDEO_PIPELINE="video_pipeline",a.EXTERNAL_API="external_api",a.PARSER="parser",a.DOM="dom",a.WTF="wtf",a.FATAL="fatal",a))(dn||{});var _e=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let i=0,s=n.length;i<s;i++)if(n[i].callback===t){n.splice(i,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let i=0,s=n.length;i<s;i++){let u=n[i];try{u.callback.call(this,r)}catch(a){Promise.resolve().then(()=>{throw a})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},K=class extends _e{constructor(){super(),this.listeners||_e.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}},se=class{constructor(){Object.defineProperty(this,"signal",{value:new K,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(i){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(i){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(se.prototype[Symbol.toStringTag]="AbortController",K.prototype[Symbol.toStringTag]="AbortSignal");function Ae(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function wr(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!Ae({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:s};let s=t;(s&&!s.prototype.hasOwnProperty("signal")||i)&&(s=function(l,p){let f;p&&p.signal&&(f=p.signal,delete p.signal);let b=new t(l,p);return f&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:f}),b},s.prototype=t.prototype);let u=r;return{fetch:(c,l)=>{let p=s&&s.prototype.isPrototypeOf(c)?c.signal:l?l.signal:void 0;if(p){let f;try{f=new DOMException("Aborted","AbortError")}catch(d){f=new Error("Aborted"),f.name="AbortError"}if(p.aborted)return Promise.reject(f);let b=new Promise((d,m)=>{p.addEventListener("abort",()=>m(f),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([b,u(c,l)])}return u(c,l)},Request:s}}var ae=Ae({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),Tn=ae?wr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,mn=ae?Tn.fetch:window.fetch,ed=ae?Tn.Request:window.Request,rd=ae?se:window.AbortController,td=ae?K:window.AbortSignal;var oa=ha(ia(),1);var sa=(f=>(f.Armenian="58",f.Azerbaijani="57",f.Belarusian="114",f.English="3",f.Kazakh="97",f.Portuguese="73",f.Russian="0",f.Spanish="4",f.Ukrainian="1",f.Uzbek="65",f.Vietnamese="75",f))(sa||{}),gf="vk.com",If=(e,r,t)=>Ie(void 0,null,function*(){let n=new URL(`https://${gf}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let s=yield(yield mn(n.toString())).json();return Of(s,t)}),Of=(e,r)=>(0,oa.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),xf(n)])),xf=e=>Array.isArray(e)?e[0]:e;var aa=(t=>(t.RU="ru",t.EN="en",t))(aa||{});
|
package/es2015.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer-shared v1.0.
|
|
3
|
-
* Wed, 21 Aug 2024
|
|
4
|
-
* https://st.mycdn.me/static/vkontakte-videoplayer/1-0-
|
|
2
|
+
* @vkontakte/videoplayer-shared v1.0.39-beta.0
|
|
3
|
+
* Wed, 21 Aug 2024 12:53:10 GMT
|
|
4
|
+
* https://st.mycdn.me/static/vkontakte-videoplayer/1-0-39/doc/
|
|
5
5
|
*/
|
|
6
|
-
var se=Object.defineProperty,ke=Object.defineProperties;var Le=Object.getOwnPropertyDescriptors;var oe=Object.getOwnPropertySymbols;var Pe=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable;var ae=Math.pow,ie=(t,e,r)=>e in t?se(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,O=(t,e)=>{for(var r in e||(e={}))Pe.call(e,r)&&ie(t,r,e[r]);if(oe)for(var r of oe(e))Me.call(e,r)&&ie(t,r,e[r]);return t},P=(t,e)=>ke(t,Le(e));var Ne=(t,e)=>{for(var r in e)se(t,r,{get:e[r],enumerable:!0})};var M=(t,e,r)=>new Promise((n,i)=>{var s=a=>{try{o(r.next(a))}catch(p){i(p)}},l=a=>{try{o(r.throw(a))}catch(p){i(p)}},o=a=>a.done?n(a.value):Promise.resolve(a.value).then(s,l);o((r=r.apply(t,e)).next())});var Ve="1.0.38-dev.f95926c1.0";var m=class{constructor(){this.subscriptions=[]}unsubscribe(){let e=this.subscriptions;this.subscriptions=[],e.forEach(r=>typeof r=="function"?r():r.unsubscribe())}add(e){return this.subscriptions.push(e),this}};var I=t=>{throw new Error(`${t} is value of unexpected type`)},Qe=t=>{};var g=()=>{};var u=class{constructor(e){e&&(this._subscribe=e)}subscribe(e,r){var l;let n;r?typeof r=="function"?n={next:r,error:g}:n={next:o=>r.next(o),error:o=>{var a;return(a=r.error)==null?void 0:a.call(r,o)}}:n={next:g,error:g};let i=typeof e=="function"?{next:o=>{try{e(o)}catch(a){n.next(a)}},error:o=>n.next(o)}:{next:o=>e.next(o),error:o=>e.error?e.error(o):n.next(o)},s;try{s=this._subscribe(i)}catch(o){(l=i.error)==null||l.call(i,o)}return new m().add(()=>{switch(i.next=g,i.error=g,typeof s){case"function":s();return;case"object":s.unsubscribe();return;case"undefined":return;default:return I(s)}})}pipe(...e){return e.reduce((r,n)=>n(r),this)}_subscribe(e){}};var x=class extends u{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(r){this.subscribers.forEach(n=>n.next(r))}error(r){this.subscribers.forEach(n=>{var i;return(i=n.error)==null?void 0:i.call(n,r)})}_subscribe(r){let n=this.keyCounter++;return this.subscribers.set(n,r),new m().add(()=>this.subscribers.delete(n))}};var D=class{constructor(){this.log$=new x;this.logs=[];this.log=e=>{let r=P(O({},e),{timestamp:Date.now()});this.logs.push(r),this.log$.next(r)};this.getAllLogs=()=>this.logs}createCustomLog(e){return(...r)=>{let n;try{n=e(...r)}catch(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(e){return this.createCustomLog(r=>O({component:e},r))}};function _e(t,e='Assertion "value is not nullable" failed'){if(t==null)throw new Error(e)}function De(t,e='Assertion "value is nullable" failed'){if(t!=null)throw new Error(e)}function w(t){return typeof t!="undefined"&&t!==null}function U(t){return t==null}function Ue(t,e){if(!(t!=null&&t.length))throw new Error(e)}function Be(t,e){if(t!=null&&t.length)throw new Error(e)}var Fe=(t,e,r)=>new Promise((n,i)=>{e.addEventListener("abort",()=>{o(),p.remove()});let s=()=>{o(),i()},l=()=>{o(),n()},o=()=>{a&&clearTimeout(a),p.removeEventListener("load",l),p.removeEventListener("error",s)},a;r&&(a=window.setTimeout(s,r));let p=document.createElement("script");p.addEventListener("load",l),p.addEventListener("error",s),p.src=t,document.head.appendChild(p)});var le,ze=typeof((le=window.performance)==null?void 0:le.now)=="function"?()=>window.performance.now():()=>Date.now();var je=(t,e)=>(...r)=>M(void 0,null,function*(){var l;let n=e(...r),i=t.aborted,s;for(;!i&&!t.aborted;)try{let o=yield n.next(s);i=(l=o.done)!=null?l:!1,s=o.value}catch(o){yield n.throw(o)}return s});var ue=(c=>(c.Unknown="Unknown",c.Yandex="Yandex",c.Chrome="Chrome",c.Chromium="Chromium",c.Firefox="Firefox",c.Safari="Safari",c.Opera="Opera",c.Edge="Edge",c.SamsungBrowser="SamsungBrowser",c.Rest="Rest",c))(ue||{}),ce=(a=>(a.Unknown="Unknown",a.Android="Android",a.iPhone="iPhone",a.iPad="iPad",a.iPod="iPod",a.RestMobile="RestMobile",a.Mac="Mac",a.Desktop="Desktop",a))(ce||{}),N=()=>{let{userAgent:t}=window.navigator,e=/yabrowser/i.test(t)?"Yandex":void 0,r=/samsungbrowser/i.test(t)?"SamsungBrowser":void 0,n=/chrome|crios/i.test(t)?"Chrome":void 0,i=/chromium/i.test(t)?"Chromium":void 0,s=/firefox|fxios/i.test(t)?"Firefox":void 0,l=/webkit|safari|khtml/i.test(t)?"Safari":void 0,o=/opr\//i.test(t)?"Opera":void 0,a=/edg/i.test(t)?"Edge":void 0,p=/android/i.test(t)?"Android":void 0,c=/iphone/i.test(t)?"iPhone":void 0,d=/ipad/i.test(t)?"iPad":void 0,S=/ipod/i.test(t)?"iPod":void 0,R=/mac/i.test(t)?"Mac":void 0,A=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(t)?"RestMobile":void 0;return{browser:e||r||s||o||a||n||i||l||"Rest",device:p||c||d||S||A||R||"Desktop"}},We=(t=!1)=>{let r=["iPhone","iPad","iPod"].includes(N().device);if(!t)return r;let{userAgent:n,maxTouchPoints:i}=window.navigator;return!!(r||/macintosh/i.test(n)&&i>0)},Ge=()=>{let{userAgent:t}=window.navigator,e=t.match(/Version\/(\d+(\.\d+)?)/i);if(!e)return null;let r=e[1],n=parseFloat(r);return isNaN(n)?null:n},qe=()=>N().device==="Android",He=()=>["Mac","iPhone","iPad","iPod"].includes(N().device),Ke=()=>{var t,e;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((t=navigator.appVersion)!=null?t:navigator.userAgent)||((e=navigator==null?void 0:navigator.userAgentData)==null?void 0:e.mobile)};var $e=(t,{start:e=0,factor:r=2,max:n=1/0,min:i=e,random:s=0}={})=>{let l=e;return l*=ae(r,t),l*=1+(Math.random()*s*2-s),l=Math.round(l),l=Math.min(l,n),l=Math.max(l,i),l};var F={};Ne(F,{clear:()=>tt,get:()=>Xe,has:()=>Ze,isPersistent:()=>Ye,remove:()=>et,set:()=>Je});var f,y,B=`vk-videoplayer-dummy-key-${Math.random()}`,E=()=>{if(y!==void 0)return y;try{localStorage.setItem(B,"test"),localStorage.removeItem(B),y=0}catch(t){if(t instanceof DOMException||t instanceof TypeError)try{sessionStorage.getItem(B),y=1}catch(e){if(e instanceof DOMException||e instanceof TypeError)y=2;else throw e}else throw t}return y===2&&(f=new Map),y},Ye=()=>E()===0,Xe=t=>{var r,n;let e=E();switch(e){case 0:return(r=localStorage.getItem(t))!=null?r:void 0;case 1:return(n=sessionStorage.getItem(t))!=null?n:void 0;case 2:return f==null?void 0:f.get(t);default:I(e)}},Je=(t,e)=>{let r=E();switch(r){case 0:try{localStorage.setItem(t,e)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(t,e)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void(f==null?void 0:f.set(t,e));default:I(r)}},Ze=t=>{var r;let e=E();switch(e){case 0:return t in localStorage;case 1:return t in sessionStorage;case 2:return(r=f==null?void 0:f.has(t))!=null?r:!1;default:return I(e),!1}},et=t=>{let e=E();switch(e){case 0:return localStorage.removeItem(t);case 1:return sessionStorage.removeItem(t);case 2:return void(f==null?void 0:f.delete(t));default:I(e)}},tt=()=>{let t=E();switch(t){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return f==null?void 0:f.clear();default:I(t)}};var rt=()=>{let t,e;try{t=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?t=!0:(t=!1,console.error(n))}try{window.location.ancestorOrigins&&(e=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!e&&document.referrer&&(e=document.referrer)}catch(n){console.error(n)}let r=e?new URL(e).hostname:void 0;return{isEmbed:t,host:r}};var z=(c=>(c.INVARIANT="Invariant quality",c.Q_144P="144p",c.Q_240P="240p",c.Q_360P="360p",c.Q_480P="480p",c.Q_720P="720p",c.Q_1080P="1080p",c.Q_1440P="1440p",c.Q_2160P="2160p",c.Q_4320P="4320p",c))(z||{});var T={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},nt=(t,e)=>T[t].height>T[e].height,ot=(t,e)=>T[t].height>=T[e].height,j=(t,e)=>T[t].height<T[e].height,it=(t,e)=>T[t].height<=T[e].height,st=t=>t.sort((e,r)=>e===r?0:e==="Invariant quality"?1:r==="Invariant quality"?-1:j(e,r)?1:-1)[0],pe=Object.keys(T).sort((t,e)=>j(t,e)?-1:1),at=(t,e=.02)=>[...pe].find(n=>T[n].height*(1+e)>=t),lt=({width:t,height:e})=>{let r=Math.min(t,e),n=Math.max(t,e);return pe.find(i=>{let s=T[i];return s.width>=n&&s.height>=r})},ut=t=>T[t].height,W=t=>t==="Invariant quality",ct=t=>t.every(e=>!W(e));function pt(t){if(W(t))throw new Error("Expected exact quality")}var bt=(t,e)=>{let r={};for(let n of Object.keys(e)){let i=e[n],s=t[n];Array.isArray(i)&&Array.isArray(s)?r[n]=s:typeof i=="object"&&typeof s=="object"?r[n]=bt(s,i):r[n]=n in t?s:i}return r};var ar=t=>{let e="";return t>=3600&&(e+=Math.floor(t/3600)+"h",t=t%3600),t>=60&&(e+=Math.floor(t/60)+"m",t=t%60),t>0&&(e+=Math.floor(t)+"s"),e};function G(t,e=0,r){let n,i,s,l,o,a,p=0,c=!1,d=!1,S=!0,R=!e&&e!==0&&typeof window.requestAnimationFrame=="function";r&&(c=!!r.leading,d="maxWait"in r,s=r!=null&&r.maxWait?Math.max(+(r==null?void 0:r.maxWait)||0,e):s,S="trailing"in r?!!r.trailing:S);function A(b){let v=n,h=i;return n=i=void 0,p=b,l=t.apply(h,v),l}function C(b,v){return R?(o&&window.cancelAnimationFrame(o),window.requestAnimationFrame(b)):setTimeout(b,v)}function we(b){if(R){window.cancelAnimationFrame(b);return}clearTimeout(b)}function Ee(b){return p=b,o=C(k,e),c?A(b):l}function Se(b){let v=b-a,h=b-p,ne=e-v;return d?Math.min(ne,s-h):ne}function te(b){let v=b-a,h=b-p;return a===void 0||v>=e||v<0||d&&h>=s}function k(){let b=Date.now();if(te(b))return re(b);o=C(k,Se(b))}function re(b){return o=void 0,S&&n?A(b):(n=i=void 0,l)}function Ae(){o!==void 0&&we(o),p=0,n=a=i=o=void 0}function Re(){return o===void 0?l:re(Date.now())}function Ce(){return o!==void 0}function L(...b){let v=Date.now(),h=te(v);if(n=b,i=this,a=v,h){if(o===void 0)return Ee(a);if(d)return o=C(k,e),A(a)}return o===void 0&&(o=C(k,e)),l}return L.cancel=Ae,L.flush=Re,L.pending=Ce,L}var q=(t,e=0,r)=>G(t,e,P(O(O({},{leading:!0,trailing:!0}),r),{maxWait:e}));var V=(t,e)=>{if(t===null||typeof t!="object")return t;let r=Array.isArray(t)?[]:{};for(let n in t){if(typeof e=="function"){let i=e(t[n],n,t,r);if(i!==void 0){r[n]=i;continue}}typeof t[n]=="object"?r[n]=V(t[n],e):r[n]=t[n]}return r};var dt=t=>V(t);var ft=300,mt=(t,e=ft)=>new u(r=>{let{width:n,height:i}=t.getBoundingClientRect();if(r.next({width:n,height:i}),!window.ResizeObserver)return;let s=new ResizeObserver(q(l=>{let o=l[0];if(!o)return;let a,p;o.contentBoxSize&&o.contentBoxSize[0]?(p=o.contentBoxSize[0].blockSize,a=o.contentBoxSize[0].inlineSize):o.contentRect&&(a=o.contentRect.width,p=o.contentRect.height),w(a)&&w(p)&&r.next({width:a,height:p})},e));return s.observe(t),()=>s.disconnect()});var Tt=t=>{t.removeAttribute("src"),t.load()};var Q=class extends x{constructor(r){super();this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let n=super._subscribe(r);return r.next(this.value),n}};function be(t){return new u(e=>{let r={},n=Object.keys(t).length,i=s=>l=>{s in r||n--,r[s]=l,n===0&&e.next(r)};return Object.entries(t).reduce((s,[l,o])=>s.add(o.subscribe(i(l))),new m)})}function de(...t){return new u(e=>t.reduce((r,n)=>r.add(n.subscribe(e)),new m))}var vt=t=>new u(e=>{let r=window.setTimeout(()=>{try{e.next()}catch(n){if(e.error)e.error(n);else throw n}},t);return()=>window.clearTimeout(r)});var It=t=>new u(e=>{let r=window.setInterval(()=>e.next(),t);return()=>{r&&(window.clearInterval(r),r=void 0)}});var xt=t=>new u(e=>{t.forEach(r=>e.next(r))});var ht=(t,e)=>new u(r=>{let n=i=>r.next(i);return t.addEventListener(e,n),()=>t.removeEventListener(e,n)});function fe(t){return e=>new u(r=>e.subscribe(new H(r,t)))}var H=class{constructor(e,r){this.destination=e;this.size=r;this.lastValues=[]}next(e){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(e),this.destination.next(this.lastValues)}error(e){var r,n;(n=(r=this.destination).error)==null||n.call(r,e)}};var gt={leading:!1,trailing:!0};function me(t,e=gt){return r=>new u(n=>r.subscribe(new K(n,t,e)))}var K=class{constructor(e,r,n){this.destination=e;this.time=r;this.config=n}next(e){this.lastValue=e,w(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(e),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(r){if(this.destination.error)this.destination.error(r);else throw r}this.timeout=void 0},this.time)}error(e){var r,n;(n=(r=this.destination).error)==null||n.call(r,e)}};var yt={leading:!0,trailing:!1};function Te(t,e=yt){return r=>new u(n=>r.subscribe(new $(n,t,e)))}var $=class{constructor(e,r,n){this.destination=e;this.time=r;this.config=n}next(e){this.lastValue=e,U(this.timeout)&&(this.config.leading&&this.destination.next(e),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(e){var r,n;(n=(r=this.destination).error)==null||n.call(r,e)}};function ve(t){return e=>new u(r=>e.subscribe(new Y(r,t)))}var Y=class{constructor(e,r){this.destination=e;this.predicate=r}next(e){let r;try{r=this.predicate(e)}catch(n){throw this.error(n),n}r&&this.destination.next(e)}error(e){var r,n;(n=(r=this.destination).error)==null||n.call(r,e)}};function xe(t=(e,r)=>e===r){return e=>new u(r=>e.subscribe(new X(r,t)))}var Ie={},X=class{constructor(e,r){this.destination=e;this.predicate=r;this.lastValue=Ie}next(e){let r;try{r=this.lastValue===Ie||!this.predicate(this.lastValue,e),this.lastValue=e}catch(n){throw this.error(n),n}r&&this.destination.next(e)}error(e){var r,n;(n=(r=this.destination).error)==null||n.call(r,e)}};function _(t){return e=>new u(r=>e.subscribe(new J(r,t)))}var J=class{constructor(e,r){this.destination=e;this.mapper=r}next(e){let r;try{r=this.mapper(e)}catch(n){throw this.error(n),n}this.destination.next(r)}error(e){var r,n;(n=(r=this.destination).error)==null||n.call(r,e)}};function he(t){return _(()=>t)}function ge(){return t=>new u(e=>{let r=!1,n=!1,i=t.subscribe(s=>{r||(r=!0,e.next(s)),n&&i.unsubscribe()},s=>{var l;r=!0,(l=e.error)==null||l.call(e,s),n&&i.unsubscribe()});return n=!0,r&&i.unsubscribe(),i})}function ye(){return t=>new u(e=>t.subscribe(new Z(e)))}var Z=class{constructor(e){this.destination=e;this.hasLast=!1}next(e){let r=this.last;if(this.last=e,!this.hasLast){this.hasLast=!0;return}this.destination.next([r,e])}error(e){var r,n;(n=(r=this.destination).error)==null||n.call(r,e)}};function Oe(t){return e=>new u(r=>e.subscribe(new ee(r,t)))}var ee=class{constructor(e,r){this.destination=e;this.effect=r}next(e){try{this.effect(e)}catch(r){throw this.error(r),r}this.destination.next(e)}error(e){var r,n;(n=(r=this.destination).error)==null||n.call(r,e)}};var Ot=(o=>(o.NETWORK="network",o.VIDEO_PIPELINE="video_pipeline",o.EXTERNAL_API="external_api",o.PARSER="parser",o.DOM="dom",o.WTF="wtf",o.FATAL="fatal",o))(Ot||{});var wt=(d=>(d.Armenian="58",d.Azerbaijani="57",d.Belarusian="114",d.English="3",d.Kazakh="97",d.Portuguese="73",d.Russian="0",d.Spanish="4",d.Ukrainian="1",d.Uzbek="65",d.Vietnamese="75",d))(wt||{}),Et="vk.com",Zn=(t,e,r)=>M(void 0,null,function*(){let n=new URL(`https://${Et}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",e),t!==void 0&&n.searchParams.set("lang",t);let s=yield(yield fetch(n.toString())).json();return St(s,r)}),St=(t,e)=>Object.fromEntries(Object.entries(t.keys).map(([r,n])=>[r.substring(`${e}_`.length),At(n)])),At=t=>Array.isArray(t)?t[0]:t;var Rt=(r=>(r.RU="ru",r.EN="en",r))(Rt||{});export{ue as CurrentClientBrowser,ce as CurrentClientDevice,Ot as ErrorCategory,Rt as InterfaceLanguage,D as Logger,u as Observable,x as Subject,m as Subscription,Ve as VERSION,wt as VKNumericLanguage,Q as ValueSubject,z as VideoQuality,je as abortable,Fe as addScript,ct as areQualitiesExact,Be as assertEmptyArray,I as assertNever,_e as assertNonNullable,Ue as assertNotEmptyArray,De as assertNullable,pt as assertQualityIsExact,fe as buffer,Qe as checkNever,Tt as clearVideoElement,dt as cloneDeep,V as cloneDeepWith,be as combine,me as debounce,G as debounceFn,rt as detectEmbed,bt as fillWithDefault,ve as filter,xe as filterChanged,ht as fromEvent,N as getCurrentBrowser,$e as getExponentialDelay,st as getHighestQuality,Ge as getIOSVersion,It as interval,qe as isAndroid,nt as isHigher,ot as isHigherOrEqual,We as isIOS,W as isInvariantQuality,j as isLower,it as isLowerOrEqual,He as isMacLike,Ke as isMobile,w as isNonNullable,U as isNullable,Zn as loadVKLangPack,_ as map,he as mapTo,de as merge,g as noop,ze as now,xt as observableFrom,mt as observeElementSize,ge as once,ye as pairwise,F as safeStorage,Oe as tap,Te as throttle,q as throttleFn,ar as timeCodeToString,vt as timeout,at as videoHeightToQuality,ut as videoQualityToHeight,lt as videoSizeToQuality};
|
|
6
|
+
var As=Object.create;var Te=Object.defineProperty,Cs=Object.defineProperties,Ls=Object.getOwnPropertyDescriptor,Ns=Object.getOwnPropertyDescriptors,js=Object.getOwnPropertyNames,ht=Object.getOwnPropertySymbols,Ms=Object.getPrototypeOf,gt=Object.prototype.hasOwnProperty,ks=Object.prototype.propertyIsEnumerable;var It=Math.pow,yt=(e,r,t)=>r in e?Te(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,$=(e,r)=>{for(var t in r||(r={}))gt.call(r,t)&&yt(e,t,r[t]);if(ht)for(var t of ht(r))ks.call(r,t)&&yt(e,t,r[t]);return e},me=(e,r)=>Cs(e,Ns(r));var o=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Vs=(e,r)=>{for(var t in r)Te(e,t,{get:r[t],enumerable:!0})},Ds=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of js(r))!gt.call(e,i)&&i!==t&&Te(e,i,{get:()=>r[i],enumerable:!(n=Ls(r,i))||n.enumerable});return e};var Fs=(e,r,t)=>(t=e!=null?As(Ms(e)):{},Ds(r||!e||!e.__esModule?Te(t,"default",{value:e,enumerable:!0}):t,e));var he=(e,r,t)=>new Promise((n,i)=>{var s=c=>{try{a(t.next(c))}catch(l){i(l)}},u=c=>{try{a(t.throw(c))}catch(l){i(l)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(s,u);a((t=t.apply(e,r)).next())});var _=o((rd,Dt)=>{"use strict";Dt.exports=function(e){try{return!!e()}catch(r){return!0}}});var ie=o((td,Ft)=>{"use strict";var Sa=_();Ft.exports=!Sa(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var L=o((nd,Bt)=>{"use strict";var Ut=ie(),Gt=Function.prototype,vr=Gt.call,qa=Ut&&Gt.bind.bind(vr,vr);Bt.exports=Ut?qa:function(e){return function(){return vr.apply(e,arguments)}}});var we=o((id,Wt)=>{"use strict";var Qt=L(),Ra=Qt({}.toString),Pa=Qt("".slice);Wt.exports=function(e){return Pa(Ra(e),8,-1)}});var zt=o((od,$t)=>{"use strict";var _a=L(),Aa=_(),Ca=we(),br=Object,La=_a("".split);$t.exports=Aa(function(){return!br("z").propertyIsEnumerable(0)})?function(e){return Ca(e)==="String"?La(e,""):br(e)}:br});var Ee=o((sd,Yt)=>{"use strict";Yt.exports=function(e){return e==null}});var Se=o((ad,Kt)=>{"use strict";var Na=Ee(),ja=TypeError;Kt.exports=function(e){if(Na(e))throw new ja("Can't call method on "+e);return e}});var H=o((ud,Ht)=>{"use strict";var Ma=zt(),ka=Se();Ht.exports=function(e){return Ma(ka(e))}});var Jt=o((ld,Xt)=>{"use strict";Xt.exports=function(){}});var B=o((cd,Zt)=>{"use strict";Zt.exports={}});var x=o((dr,en)=>{"use strict";var oe=function(e){return e&&e.Math===Math&&e};en.exports=oe(typeof globalThis=="object"&&globalThis)||oe(typeof window=="object"&&window)||oe(typeof self=="object"&&self)||oe(typeof global=="object"&&global)||oe(typeof dr=="object"&&dr)||function(){return this}()||Function("return this")()});var w=o((pd,rn)=>{"use strict";var Tr=typeof document=="object"&&document.all;rn.exports=typeof Tr=="undefined"&&Tr!==void 0?function(e){return typeof e=="function"||e===Tr}:function(e){return typeof e=="function"}});var on=o((fd,nn)=>{"use strict";var Va=x(),Da=w(),tn=Va.WeakMap;nn.exports=Da(tn)&&/native code/.test(String(tn))});var N=o((vd,sn)=>{"use strict";var Fa=w();sn.exports=function(e){return typeof e=="object"?e!==null:Fa(e)}});var A=o((bd,an)=>{"use strict";var Ua=_();an.exports=!Ua(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var hr=o((dd,ln)=>{"use strict";var Ga=x(),un=N(),mr=Ga.document,Ba=un(mr)&&un(mr.createElement);ln.exports=function(e){return Ba?mr.createElement(e):{}}});var yr=o((Td,cn)=>{"use strict";var Qa=A(),Wa=_(),$a=hr();cn.exports=!Qa&&!Wa(function(){return Object.defineProperty($a("div"),"a",{get:function(){return 7}}).a!==7})});var gr=o((md,pn)=>{"use strict";var za=A(),Ya=_();pn.exports=za&&Ya(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Q=o((hd,fn)=>{"use strict";var Ka=N(),Ha=String,Xa=TypeError;fn.exports=function(e){if(Ka(e))return e;throw new Xa(Ha(e)+" is not an object")}});var D=o((yd,vn)=>{"use strict";var Ja=ie(),qe=Function.prototype.call;vn.exports=Ja?qe.bind(qe):function(){return qe.apply(qe,arguments)}});var Re=o((gd,bn)=>{"use strict";bn.exports={}});var xr=o((Id,Tn)=>{"use strict";var Ir=Re(),Or=x(),Za=w(),dn=function(e){return Za(e)?e:void 0};Tn.exports=function(e,r){return arguments.length<2?dn(Ir[e])||dn(Or[e]):Ir[e]&&Ir[e][r]||Or[e]&&Or[e][r]}});var wr=o((Od,mn)=>{"use strict";var eu=L();mn.exports=eu({}.isPrototypeOf)});var In=o((xd,gn)=>{"use strict";var ru=x(),hn=ru.navigator,yn=hn&&hn.userAgent;gn.exports=yn?String(yn):""});var Rn=o((wd,qn)=>{"use strict";var Sn=x(),Er=In(),On=Sn.process,xn=Sn.Deno,wn=On&&On.versions||xn&&xn.version,En=wn&&wn.v8,R,Pe;En&&(R=En.split("."),Pe=R[0]>0&&R[0]<4?1:+(R[0]+R[1]));!Pe&&Er&&(R=Er.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=Er.match(/Chrome\/(\d+)/),R&&(Pe=+R[1])));qn.exports=Pe});var Sr=o((Ed,_n)=>{"use strict";var Pn=Rn(),tu=_(),nu=x(),iu=nu.String;_n.exports=!!Object.getOwnPropertySymbols&&!tu(function(){var e=Symbol("symbol detection");return!iu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Pn&&Pn<41})});var qr=o((Sd,An)=>{"use strict";var ou=Sr();An.exports=ou&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Rr=o((qd,Cn)=>{"use strict";var su=xr(),au=w(),uu=wr(),lu=qr(),cu=Object;Cn.exports=lu?function(e){return typeof e=="symbol"}:function(e){var r=su("Symbol");return au(r)&&uu(r.prototype,cu(e))}});var _e=o((Rd,Ln)=>{"use strict";var pu=String;Ln.exports=function(e){try{return pu(e)}catch(r){return"Object"}}});var se=o((Pd,Nn)=>{"use strict";var fu=w(),vu=_e(),bu=TypeError;Nn.exports=function(e){if(fu(e))return e;throw new bu(vu(e)+" is not a function")}});var Ae=o((_d,jn)=>{"use strict";var du=se(),Tu=Ee();jn.exports=function(e,r){var t=e[r];return Tu(t)?void 0:du(t)}});var kn=o((Ad,Mn)=>{"use strict";var Pr=D(),_r=w(),Ar=N(),mu=TypeError;Mn.exports=function(e,r){var t,n;if(r==="string"&&_r(t=e.toString)&&!Ar(n=Pr(t,e))||_r(t=e.valueOf)&&!Ar(n=Pr(t,e))||r!=="string"&&_r(t=e.toString)&&!Ar(n=Pr(t,e)))return n;throw new mu("Can't convert object to primitive value")}});var ae=o((Cd,Vn)=>{"use strict";Vn.exports=!0});var Un=o((Ld,Fn)=>{"use strict";var Dn=x(),hu=Object.defineProperty;Fn.exports=function(e,r){try{hu(Dn,e,{value:r,configurable:!0,writable:!0})}catch(t){Dn[e]=r}return r}});var Ce=o((Nd,Qn)=>{"use strict";var yu=ae(),gu=x(),Iu=Un(),Gn="__core-js_shared__",Bn=Qn.exports=gu[Gn]||Iu(Gn,{});(Bn.versions||(Bn.versions=[])).push({version:"3.38.0",mode:yu?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Cr=o((jd,$n)=>{"use strict";var Wn=Ce();$n.exports=function(e,r){return Wn[e]||(Wn[e]=r||{})}});var Lr=o((Md,zn)=>{"use strict";var Ou=Se(),xu=Object;zn.exports=function(e){return xu(Ou(e))}});var j=o((kd,Yn)=>{"use strict";var wu=L(),Eu=Lr(),Su=wu({}.hasOwnProperty);Yn.exports=Object.hasOwn||function(r,t){return Su(Eu(r),t)}});var Nr=o((Vd,Kn)=>{"use strict";var qu=L(),Ru=0,Pu=Math.random(),_u=qu(1 .toString);Kn.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+_u(++Ru+Pu,36)}});var M=o((Dd,Xn)=>{"use strict";var Au=x(),Cu=Cr(),Hn=j(),Lu=Nr(),Nu=Sr(),ju=qr(),X=Au.Symbol,jr=Cu("wks"),Mu=ju?X.for||X:X&&X.withoutSetter||Lu;Xn.exports=function(e){return Hn(jr,e)||(jr[e]=Nu&&Hn(X,e)?X[e]:Mu("Symbol."+e)),jr[e]}});var ri=o((Fd,ei)=>{"use strict";var ku=D(),Jn=N(),Zn=Rr(),Vu=Ae(),Du=kn(),Fu=M(),Uu=TypeError,Gu=Fu("toPrimitive");ei.exports=function(e,r){if(!Jn(e)||Zn(e))return e;var t=Vu(e,Gu),n;if(t){if(r===void 0&&(r="default"),n=ku(t,e,r),!Jn(n)||Zn(n))return n;throw new Uu("Can't convert object to primitive value")}return r===void 0&&(r="number"),Du(e,r)}});var Mr=o((Ud,ti)=>{"use strict";var Bu=ri(),Qu=Rr();ti.exports=function(e){var r=Bu(e,"string");return Qu(r)?r:r+""}});var J=o(ii=>{"use strict";var Wu=A(),$u=yr(),zu=gr(),Le=Q(),ni=Mr(),Yu=TypeError,kr=Object.defineProperty,Ku=Object.getOwnPropertyDescriptor,Vr="enumerable",Dr="configurable",Fr="writable";ii.f=Wu?zu?function(r,t,n){if(Le(r),t=ni(t),Le(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Fr in n&&!n[Fr]){var i=Ku(r,t);i&&i[Fr]&&(r[t]=n.value,n={configurable:Dr in n?n[Dr]:i[Dr],enumerable:Vr in n?n[Vr]:i[Vr],writable:!1})}return kr(r,t,n)}:kr:function(r,t,n){if(Le(r),t=ni(t),Le(n),$u)try{return kr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new Yu("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var ue=o((Bd,oi)=>{"use strict";oi.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Z=o((Qd,si)=>{"use strict";var Hu=A(),Xu=J(),Ju=ue();si.exports=Hu?function(e,r,t){return Xu.f(e,r,Ju(1,t))}:function(e,r,t){return e[r]=t,e}});var Ne=o((Wd,ui)=>{"use strict";var Zu=Cr(),el=Nr(),ai=Zu("keys");ui.exports=function(e){return ai[e]||(ai[e]=el(e))}});var je=o(($d,li)=>{"use strict";li.exports={}});var vi=o((zd,fi)=>{"use strict";var rl=on(),pi=x(),tl=N(),nl=Z(),Ur=j(),Gr=Ce(),il=Ne(),ol=je(),ci="Object already initialized",Br=pi.TypeError,sl=pi.WeakMap,Me,le,ke,al=function(e){return ke(e)?le(e):Me(e,{})},ul=function(e){return function(r){var t;if(!tl(r)||(t=le(r)).type!==e)throw new Br("Incompatible receiver, "+e+" required");return t}};rl||Gr.state?(P=Gr.state||(Gr.state=new sl),P.get=P.get,P.has=P.has,P.set=P.set,Me=function(e,r){if(P.has(e))throw new Br(ci);return r.facade=e,P.set(e,r),r},le=function(e){return P.get(e)||{}},ke=function(e){return P.has(e)}):(W=il("state"),ol[W]=!0,Me=function(e,r){if(Ur(e,W))throw new Br(ci);return r.facade=e,nl(e,W,r),r},le=function(e){return Ur(e,W)?e[W]:{}},ke=function(e){return Ur(e,W)});var P,W;fi.exports={set:Me,get:le,has:ke,enforce:al,getterFor:ul}});var hi=o((Yd,mi)=>{"use strict";var ll=ie(),Ti=Function.prototype,bi=Ti.apply,di=Ti.call;mi.exports=typeof Reflect=="object"&&Reflect.apply||(ll?di.bind(bi):function(){return di.apply(bi,arguments)})});var Qr=o((Kd,yi)=>{"use strict";var cl=we(),pl=L();yi.exports=function(e){if(cl(e)==="Function")return pl(e)}});var xi=o(Oi=>{"use strict";var gi={}.propertyIsEnumerable,Ii=Object.getOwnPropertyDescriptor,fl=Ii&&!gi.call({1:2},1);Oi.f=fl?function(r){var t=Ii(this,r);return!!t&&t.enumerable}:gi});var Si=o(Ei=>{"use strict";var vl=A(),bl=D(),dl=xi(),Tl=ue(),ml=H(),hl=Mr(),yl=j(),gl=yr(),wi=Object.getOwnPropertyDescriptor;Ei.f=vl?wi:function(r,t){if(r=ml(r),t=hl(t),gl)try{return wi(r,t)}catch(n){}if(yl(r,t))return Tl(!bl(dl.f,r,t),r[t])}});var Ri=o((Jd,qi)=>{"use strict";var Il=_(),Ol=w(),xl=/#|\.prototype\./,ce=function(e,r){var t=El[wl(e)];return t===ql?!0:t===Sl?!1:Ol(r)?Il(r):!!r},wl=ce.normalize=function(e){return String(e).replace(xl,".").toLowerCase()},El=ce.data={},Sl=ce.NATIVE="N",ql=ce.POLYFILL="P";qi.exports=ce});var Wr=o((Zd,_i)=>{"use strict";var Pi=Qr(),Rl=se(),Pl=ie(),_l=Pi(Pi.bind);_i.exports=function(e,r){return Rl(e),r===void 0?e:Pl?_l(e,r):function(){return e.apply(r,arguments)}}});var $r=o((eT,Ci)=>{"use strict";var pe=x(),Al=hi(),Cl=Qr(),Ll=w(),Nl=Si().f,jl=Ri(),ee=Re(),Ml=Wr(),re=Z(),Ai=j();Ce();var kl=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return Al(e,this,arguments)};return r.prototype=e.prototype,r};Ci.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,s=e.proto,u=n?pe:i?pe[t]:pe[t]&&pe[t].prototype,a=n?ee:ee[t]||re(ee,t,{})[t],c=a.prototype,l,p,f,b,d,m,h,I,y;for(b in r)l=jl(n?b:t+(i?".":"#")+b,e.forced),p=!l&&u&&Ai(u,b),m=a[b],p&&(e.dontCallGetSet?(y=Nl(u,b),h=y&&y.value):h=u[b]),d=p&&h?h:r[b],!(!l&&!s&&typeof m==typeof d)&&(e.bind&&p?I=Ml(d,pe):e.wrap&&p?I=kl(d):s&&Ll(d)?I=Cl(d):I=d,(e.sham||d&&d.sham||m&&m.sham)&&re(I,"sham",!0),re(a,b,I),s&&(f=t+"Prototype",Ai(ee,f)||re(ee,f,{}),re(ee[f],b,d),e.real&&c&&(l||!c[b])&&re(c,b,d)))}});var ji=o((rT,Ni)=>{"use strict";var zr=A(),Vl=j(),Li=Function.prototype,Dl=zr&&Object.getOwnPropertyDescriptor,Yr=Vl(Li,"name"),Fl=Yr&&function(){}.name==="something",Ul=Yr&&(!zr||zr&&Dl(Li,"name").configurable);Ni.exports={EXISTS:Yr,PROPER:Fl,CONFIGURABLE:Ul}});var ki=o((tT,Mi)=>{"use strict";var Gl=Math.ceil,Bl=Math.floor;Mi.exports=Math.trunc||function(r){var t=+r;return(t>0?Bl:Gl)(t)}});var Kr=o((nT,Vi)=>{"use strict";var Ql=ki();Vi.exports=function(e){var r=+e;return r!==r||r===0?0:Ql(r)}});var Fi=o((iT,Di)=>{"use strict";var Wl=Kr(),$l=Math.max,zl=Math.min;Di.exports=function(e,r){var t=Wl(e);return t<0?$l(t+r,0):zl(t,r)}});var Gi=o((oT,Ui)=>{"use strict";var Yl=Kr(),Kl=Math.min;Ui.exports=function(e){var r=Yl(e);return r>0?Kl(r,9007199254740991):0}});var Hr=o((sT,Bi)=>{"use strict";var Hl=Gi();Bi.exports=function(e){return Hl(e.length)}});var $i=o((aT,Wi)=>{"use strict";var Xl=H(),Jl=Fi(),Zl=Hr(),Qi=function(e){return function(r,t,n){var i=Xl(r),s=Zl(i);if(s===0)return!e&&-1;var u=Jl(n,s),a;if(e&&t!==t){for(;s>u;)if(a=i[u++],a!==a)return!0}else for(;s>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};Wi.exports={includes:Qi(!0),indexOf:Qi(!1)}});var Ki=o((uT,Yi)=>{"use strict";var ec=L(),Xr=j(),rc=H(),tc=$i().indexOf,nc=je(),zi=ec([].push);Yi.exports=function(e,r){var t=rc(e),n=0,i=[],s;for(s in t)!Xr(nc,s)&&Xr(t,s)&&zi(i,s);for(;r.length>n;)Xr(t,s=r[n++])&&(~tc(i,s)||zi(i,s));return i}});var Jr=o((lT,Hi)=>{"use strict";Hi.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Ji=o((cT,Xi)=>{"use strict";var ic=Ki(),oc=Jr();Xi.exports=Object.keys||function(r){return ic(r,oc)}});var eo=o(Zi=>{"use strict";var sc=A(),ac=gr(),uc=J(),lc=Q(),cc=H(),pc=Ji();Zi.f=sc&&!ac?Object.defineProperties:function(r,t){lc(r);for(var n=cc(t),i=pc(t),s=i.length,u=0,a;s>u;)uc.f(r,a=i[u++],n[a]);return r}});var to=o((fT,ro)=>{"use strict";var fc=xr();ro.exports=fc("document","documentElement")});var tt=o((vT,lo)=>{"use strict";var vc=Q(),bc=eo(),no=Jr(),dc=je(),Tc=to(),mc=hr(),hc=Ne(),io=">",oo="<",et="prototype",rt="script",ao=hc("IE_PROTO"),Zr=function(){},uo=function(e){return oo+rt+io+e+oo+"/"+rt+io},so=function(e){e.write(uo("")),e.close();var r=e.parentWindow.Object;return e=null,r},yc=function(){var e=mc("iframe"),r="java"+rt+":",t;return e.style.display="none",Tc.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(uo("document.F=Object")),t.close(),t.F},Ve,De=function(){try{Ve=new ActiveXObject("htmlfile")}catch(r){}De=typeof document!="undefined"?document.domain&&Ve?so(Ve):yc():so(Ve);for(var e=no.length;e--;)delete De[et][no[e]];return De()};dc[ao]=!0;lo.exports=Object.create||function(r,t){var n;return r!==null?(Zr[et]=vc(r),n=new Zr,Zr[et]=null,n[ao]=r):n=De(),t===void 0?n:bc.f(n,t)}});var po=o((bT,co)=>{"use strict";var gc=_();co.exports=!gc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var it=o((dT,vo)=>{"use strict";var Ic=j(),Oc=w(),xc=Lr(),wc=Ne(),Ec=po(),fo=wc("IE_PROTO"),nt=Object,Sc=nt.prototype;vo.exports=Ec?nt.getPrototypeOf:function(e){var r=xc(e);if(Ic(r,fo))return r[fo];var t=r.constructor;return Oc(t)&&r instanceof t?t.prototype:r instanceof nt?Sc:null}});var ot=o((TT,bo)=>{"use strict";var qc=Z();bo.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:qc(e,r,t),e}});var lt=o((mT,ho)=>{"use strict";var Rc=_(),Pc=w(),_c=N(),Ac=tt(),To=it(),Cc=ot(),Lc=M(),Nc=ae(),ut=Lc("iterator"),mo=!1,k,st,at;[].keys&&(at=[].keys(),"next"in at?(st=To(To(at)),st!==Object.prototype&&(k=st)):mo=!0);var jc=!_c(k)||Rc(function(){var e={};return k[ut].call(e)!==e});jc?k={}:Nc&&(k=Ac(k));Pc(k[ut])||Cc(k,ut,function(){return this});ho.exports={IteratorPrototype:k,BUGGY_SAFARI_ITERATORS:mo}});var Fe=o((hT,go)=>{"use strict";var Mc=M(),kc=Mc("toStringTag"),yo={};yo[kc]="z";go.exports=String(yo)==="[object z]"});var ct=o((yT,Io)=>{"use strict";var Vc=Fe(),Dc=w(),Ue=we(),Fc=M(),Uc=Fc("toStringTag"),Gc=Object,Bc=Ue(function(){return arguments}())==="Arguments",Qc=function(e,r){try{return e[r]}catch(t){}};Io.exports=Vc?Ue:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=Qc(r=Gc(e),Uc))=="string"?t:Bc?Ue(r):(n=Ue(r))==="Object"&&Dc(r.callee)?"Arguments":n}});var xo=o((gT,Oo)=>{"use strict";var Wc=Fe(),$c=ct();Oo.exports=Wc?{}.toString:function(){return"[object "+$c(this)+"]"}});var Ge=o((IT,Eo)=>{"use strict";var zc=Fe(),Yc=J().f,Kc=Z(),Hc=j(),Xc=xo(),Jc=M(),wo=Jc("toStringTag");Eo.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(Hc(i,wo)||Yc(i,wo,{configurable:!0,value:r}),n&&!zc&&Kc(i,"toString",Xc))}});var qo=o((OT,So)=>{"use strict";var Zc=lt().IteratorPrototype,ep=tt(),rp=ue(),tp=Ge(),np=B(),ip=function(){return this};So.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=ep(Zc,{next:rp(+!n,t)}),tp(e,i,!1,!0),np[i]=ip,e}});var Po=o((xT,Ro)=>{"use strict";var op=L(),sp=se();Ro.exports=function(e,r,t){try{return op(sp(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var Ao=o((wT,_o)=>{"use strict";var ap=N();_o.exports=function(e){return ap(e)||e===null}});var Lo=o((ET,Co)=>{"use strict";var up=Ao(),lp=String,cp=TypeError;Co.exports=function(e){if(up(e))return e;throw new cp("Can't set "+lp(e)+" as a prototype")}});var jo=o((ST,No)=>{"use strict";var pp=Po(),fp=N(),vp=Se(),bp=Lo();No.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=pp(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,s){return vp(i),bp(s),fp(i)&&(e?t(i,s):i.__proto__=s),i}}():void 0)});var $o=o((qT,Wo)=>{"use strict";var dp=$r(),Tp=D(),Be=ae(),Bo=ji(),mp=w(),hp=qo(),Mo=it(),ko=jo(),yp=Ge(),gp=Z(),pt=ot(),Ip=M(),Vo=B(),Qo=lt(),Op=Bo.PROPER,xp=Bo.CONFIGURABLE,Do=Qo.IteratorPrototype,Qe=Qo.BUGGY_SAFARI_ITERATORS,fe=Ip("iterator"),Fo="keys",ve="values",Uo="entries",Go=function(){return this};Wo.exports=function(e,r,t,n,i,s,u){hp(t,r,n);var a=function(y){if(y===i&&b)return b;if(!Qe&&y&&y in p)return p[y];switch(y){case Fo:return function(){return new t(this,y)};case ve:return function(){return new t(this,y)};case Uo:return function(){return new t(this,y)}}return function(){return new t(this)}},c=r+" Iterator",l=!1,p=e.prototype,f=p[fe]||p["@@iterator"]||i&&p[i],b=!Qe&&f||a(i),d=r==="Array"&&p.entries||f,m,h,I;if(d&&(m=Mo(d.call(new e)),m!==Object.prototype&&m.next&&(!Be&&Mo(m)!==Do&&(ko?ko(m,Do):mp(m[fe])||pt(m,fe,Go)),yp(m,c,!0,!0),Be&&(Vo[c]=Go))),Op&&i===ve&&f&&f.name!==ve&&(!Be&&xp?gp(p,"name",ve):(l=!0,b=function(){return Tp(f,this)})),i)if(h={values:a(ve),keys:s?b:a(Fo),entries:a(Uo)},u)for(I in h)(Qe||l||!(I in p))&&pt(p,I,h[I]);else dp({target:r,proto:!0,forced:Qe||l},h);return(!Be||u)&&p[fe]!==b&&pt(p,fe,b,{name:i}),Vo[r]=b,h}});var Yo=o((RT,zo)=>{"use strict";zo.exports=function(e,r){return{value:e,done:r}}});var vt=o((PT,Zo)=>{"use strict";var wp=H(),ft=Jt(),Ko=B(),Xo=vi(),Ep=J().f,Sp=$o(),We=Yo(),qp=ae(),Rp=A(),Jo="Array Iterator",Pp=Xo.set,_p=Xo.getterFor(Jo);Zo.exports=Sp(Array,"Array",function(e,r){Pp(this,{type:Jo,target:wp(e),index:0,kind:r})},function(){var e=_p(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,We(void 0,!0);switch(e.kind){case"keys":return We(t,!1);case"values":return We(r[t],!1)}return We([t,r[t]],!1)},"values");var Ho=Ko.Arguments=Ko.Array;ft("keys");ft("values");ft("entries");if(!qp&&Rp&&Ho.name!=="values")try{Ep(Ho,"name",{value:"values"})}catch(e){}});var rs=o((_T,es)=>{"use strict";var Ap=M(),Cp=B(),Lp=Ap("iterator"),Np=Array.prototype;es.exports=function(e){return e!==void 0&&(Cp.Array===e||Np[Lp]===e)}});var bt=o((AT,ns)=>{"use strict";var jp=ct(),ts=Ae(),Mp=Ee(),kp=B(),Vp=M(),Dp=Vp("iterator");ns.exports=function(e){if(!Mp(e))return ts(e,Dp)||ts(e,"@@iterator")||kp[jp(e)]}});var os=o((CT,is)=>{"use strict";var Fp=D(),Up=se(),Gp=Q(),Bp=_e(),Qp=bt(),Wp=TypeError;is.exports=function(e,r){var t=arguments.length<2?Qp(e):r;if(Up(t))return Gp(Fp(t,e));throw new Wp(Bp(e)+" is not iterable")}});var us=o((LT,as)=>{"use strict";var $p=D(),ss=Q(),zp=Ae();as.exports=function(e,r,t){var n,i;ss(e);try{if(n=zp(e,"return"),!n){if(r==="throw")throw t;return t}n=$p(n,e)}catch(s){i=!0,n=s}if(r==="throw")throw t;if(i)throw n;return ss(n),t}});var vs=o((NT,fs)=>{"use strict";var Yp=Wr(),Kp=D(),Hp=Q(),Xp=_e(),Jp=rs(),Zp=Hr(),ls=wr(),ef=os(),rf=bt(),cs=us(),tf=TypeError,$e=function(e,r){this.stopped=e,this.result=r},ps=$e.prototype;fs.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),s=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),a=!!(t&&t.INTERRUPTED),c=Yp(r,n),l,p,f,b,d,m,h,I=function(g){return l&&cs(l,"normal",g),new $e(!0,g)},y=function(g){return i?(Hp(g),a?c(g[0],g[1],I):c(g[0],g[1])):a?c(g,I):c(g)};if(s)l=e.iterator;else if(u)l=e;else{if(p=rf(e),!p)throw new tf(Xp(e)+" is not iterable");if(Jp(p)){for(f=0,b=Zp(e);b>f;f++)if(d=y(e[f]),d&&ls(ps,d))return d;return new $e(!1)}l=ef(e,p)}for(m=s?e.next:l.next;!(h=Kp(m,l)).done;){try{d=y(h.value)}catch(g){cs(l,"throw",g)}if(typeof d=="object"&&d&&ls(ps,d))return d}return new $e(!1)}});var ds=o((jT,bs)=>{"use strict";var nf=A(),of=J(),sf=ue();bs.exports=function(e,r,t){nf?of.f(e,r,sf(0,t)):e[r]=t}});var Ts=o(()=>{"use strict";var af=$r(),uf=vs(),lf=ds();af({target:"Object",stat:!0},{fromEntries:function(r){var t={};return uf(r,function(n,i){lf(t,n,i)},{AS_ENTRIES:!0}),t}})});var hs=o((VT,ms)=>{"use strict";vt();Ts();var cf=Re();ms.exports=cf.Object.fromEntries});var gs=o((DT,ys)=>{"use strict";ys.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var Os=o(()=>{"use strict";vt();var pf=gs(),ff=x(),vf=Ge(),Is=B();for(ze in pf)vf(ff[ze],ze),Is[ze]=Is.Array;var ze});var ws=o((GT,xs)=>{"use strict";var bf=hs();Os();xs.exports=bf});var Ss=o((BT,Es)=>{"use strict";var df=ws();Es.exports=df});var Us="1.0.39-beta.0";var E=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}};var C=e=>{throw new Error(`${e} is value of unexpected type`)},Gs=e=>{};var U=()=>{};var v=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:U}:n={next:a=>t.next(a),error:a=>{var c;return(c=t.error)==null?void 0:c.call(t,a)}}:n={next:U,error:U};let i=typeof r=="function"?{next:a=>{try{r(a)}catch(c){n.next(c)}},error:a=>n.next(a)}:{next:a=>r.next(a),error:a=>r.error?r.error(a):n.next(a)},s;try{s=this._subscribe(i)}catch(a){(u=i.error)==null||u.call(i,a)}return new E().add(()=>{switch(i.next=U,i.error=U,typeof s){case"function":s();return;case"object":s.unsubscribe();return;case"undefined":return;default:return C(s)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var V=class extends v{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{var i;return(i=n.error)==null?void 0:i.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new E().add(()=>this.subscribers.delete(n))}};var Ye=class{constructor(){this.log$=new V;this.logs=[];this.log=r=>{let t=me($({},r),{timestamp:Date.now()});this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>$({component:r},t))}};function Bs(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Qs(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function z(e){return typeof e!="undefined"&&e!==null}function Ke(e){return e==null}function Ws(e,r){if(!(e!=null&&e.length))throw new Error(r)}function $s(e,r){if(e!=null&&e.length)throw new Error(r)}var zs=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{a(),l.remove()});let s=()=>{a(),i()},u=()=>{a(),n()},a=()=>{c&&clearTimeout(c),l.removeEventListener("load",u),l.removeEventListener("error",s)},c;t&&(c=window.setTimeout(s,t));let l=document.createElement("script");l.addEventListener("load",u),l.addEventListener("error",s),l.src=e,document.head.appendChild(l)});var Ot,Ys=typeof((Ot=window.performance)==null?void 0:Ot.now)=="function"?()=>window.performance.now():()=>Date.now();var Ks=(e,r)=>(...t)=>he(void 0,null,function*(){var u;let n=r(...t),i=e.aborted,s;for(;!i&&!e.aborted;)try{let a=yield n.next(s);i=(u=a.done)!=null?u:!1,s=a.value}catch(a){yield n.throw(a)}return s});var xt=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!=null?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.mobile)},He=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return["iPhone","iPad","iPod"].includes(this.device)}get isMac(){return this.device==="Mac"}get isApple(){return this.isIOS||this.isMac}get isIphoneOrOldIpad(){if(!this.isApple||!this.isTouch)return!1;let r=this.device==="iPad"||(window==null?void 0:window.screen.width)>700,t=this._iosVersion;return!r||r&&!!t&&t<16}get isAndroid(){return this.device==="Android"}get isMobile(){return this._isMobile}get iOSVersion(){return this._iosVersion}get macVersion(){return this._macVersion}get isYandex(){return this.browser==="Yandex"}get isSafari(){return this.browser==="Safari"}get isSamsungBrowser(){return this.browser==="SamsungBrowser"}get isHDR(){return this._isHdr}detect(){var n;let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!((n=matchMedia("(dynamic-range: high)"))!=null&&n.matches)}catch(i){console.error(i)}try{this._isMobile=xt()}catch(i){console.error(i)}this.detectBrowser(r),this.detectDevice(r),this.isIOS&&this.detectIOSVersion(),this.isMac&&this.detectMacVersion()}detectBrowser(r){try{let t=/yabrowser/i.test(r)?"Yandex":void 0,n=/samsungbrowser/i.test(r)?"SamsungBrowser":void 0,i=/chrome|crios/i.test(r)?"Chrome":void 0,s=/chromium/i.test(r)?"Chromium":void 0,u=/firefox|fxios/i.test(r)?"Firefox":void 0,a=/webkit|safari|khtml/i.test(r)?"Safari":void 0,c=/opr\//i.test(r)?"Opera":void 0,l=/edg/i.test(r)?"Edge":void 0;this._currentBrowser=t||n||u||c||l||i||s||a||"Rest"}catch(t){console.error(t)}}detectDevice(r){try{let t=/android/i.test(r)?"Android":void 0,n=/iphone/i.test(r)?"iPhone":void 0,i=/ipad/i.test(r)?"iPad":void 0,s=/ipod/i.test(r)?"iPod":void 0,u=/mac/i.test(r)?"Mac":void 0,a=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||i||s||a||u||"Desktop"}catch(t){console.error(t)}}detectIOSVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+(\.\d+)?)/i);if(!t)return;let n=t[1],i=parseFloat(n);if(isNaN(i))return;this._iosVersion=i}catch(r){console.error(r)}}detectMacVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+)/);if(!t)return;let n=t[1],i=parseInt(n,10);if(isNaN(i))return;this._macVersion=i}catch(r){console.error(r)}}},Hs=new He;var Xs=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:s=0}={})=>{let u=r;return u*=It(t,e),u*=1+(Math.random()*s*2-s),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var Je={};Vs(Je,{clear:()=>na,get:()=>Zs,has:()=>ra,isPersistent:()=>Js,remove:()=>ta,set:()=>ea});var O,G,Xe=`vk-videoplayer-dummy-key-${Math.random()}`,Y=()=>{if(G!==void 0)return G;try{localStorage.setItem(Xe,"test"),localStorage.removeItem(Xe),G=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(Xe),G=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)G=2;else throw r}else throw e}return G===2&&(O=new Map),G},Js=()=>Y()===0,Zs=e=>{var t,n;let r=Y();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return O==null?void 0:O.get(e);default:C(r)}},ea=(e,r)=>{let t=Y();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void(O==null?void 0:O.set(e,r));default:C(t)}},ra=e=>{var t;let r=Y();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=O==null?void 0:O.has(e))!=null?t:!1;default:return C(r),!1}},ta=e=>{let r=Y();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void(O==null?void 0:O.delete(e));default:C(r)}},na=()=>{let e=Y();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return O==null?void 0:O.clear();default:C(e)}};var ia=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}let t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};var Ze=(p=>(p.INVARIANT="Invariant quality",p.Q_144P="144p",p.Q_240P="240p",p.Q_360P="360p",p.Q_480P="480p",p.Q_720P="720p",p.Q_1080P="1080p",p.Q_1440P="1440p",p.Q_2160P="2160p",p.Q_4320P="4320p",p))(Ze||{});var S={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},oa=(e,r)=>S[e].height>S[r].height,sa=(e,r)=>S[e].height>=S[r].height,er=(e,r)=>S[e].height<S[r].height,aa=(e,r)=>S[e].height<=S[r].height,ua=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:er(r,t)?1:-1)[0],wt=Object.keys(S).sort((e,r)=>er(e,r)?-1:1),la=(e,r=.02)=>[...wt].find(n=>S[n].height*(1+r)>=e),ca=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return wt.find(i=>{let s=S[i];return s.width>=n&&s.height>=t})},pa=e=>S[e].height,rr=e=>e==="Invariant quality",fa=e=>e.every(r=>!rr(r));function va(e){if(rr(e))throw new Error("Expected exact quality")}var ba=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],s=e[n];Array.isArray(i)&&Array.isArray(s)?t[n]=s:typeof i=="object"&&typeof s=="object"?t[n]=ba(s,i):t[n]=n in e?s:i}return t};var Zf=e=>{let r="";return e>=3600&&(r+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(r+=Math.floor(e/60)+"m",e=e%60),e>0&&(r+=Math.floor(e)+"s"),r};function tr(e,r=0,t){let n,i,s,u,a,c,l=0,p=!1,f=!1,b=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(p=!!t.leading,f="maxWait"in t,s=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):s,b="trailing"in t?!!t.trailing:b);function m(T){let q=n,F=i;return n=i=void 0,l=T,u=e.apply(F,q),u}function h(T,q){return d?(a&&window.cancelAnimationFrame(a),window.requestAnimationFrame(T)):setTimeout(T,q)}function I(T){if(d){window.cancelAnimationFrame(T);return}clearTimeout(T)}function y(T){return l=T,a=h(be,r),p?m(T):u}function g(T){let q=T-c,F=T-l,mt=r-q;return f?Math.min(mt,s-F):mt}function dt(T){let q=T-c,F=T-l;return c===void 0||q>=r||q<0||f&&F>=s}function be(){let T=Date.now();if(dt(T))return Tt(T);a=h(be,g(T))}function Tt(T){return a=void 0,b&&n?m(T):(n=i=void 0,u)}function Rs(){a!==void 0&&I(a),l=0,n=c=i=a=void 0}function Ps(){return a===void 0?u:Tt(Date.now())}function _s(){return a!==void 0}function de(...T){let q=Date.now(),F=dt(q);if(n=T,i=this,c=q,F){if(a===void 0)return y(c);if(f)return a=h(be,r),m(c)}return a===void 0&&(a=h(be,r)),u}return de.cancel=Rs,de.flush=Ps,de.pending=_s,de}var nr=(e,r=0,t)=>tr(e,r,me($($({},{leading:!0,trailing:!0}),t),{maxWait:r}));var ye=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let i=r(e[n],n,e,t);if(i!==void 0){t[n]=i;continue}}typeof e[n]=="object"?t[n]=ye(e[n],r):t[n]=e[n]}return t};var da=e=>ye(e);var Ta=300,ma=(e,r=Ta)=>new v(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let s=new ResizeObserver(nr(u=>{let a=u[0];if(!a)return;let c,l;a.contentBoxSize&&a.contentBoxSize[0]?(l=a.contentBoxSize[0].blockSize,c=a.contentBoxSize[0].inlineSize):a.contentRect&&(c=a.contentRect.width,l=a.contentRect.height),z(c)&&z(l)&&t.next({width:c,height:l})},r));return s.observe(e),()=>s.disconnect()});var ha=e=>{e.removeAttribute("src"),e.load()};var ge=class extends V{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};function Et(e){return new v(r=>{let t={},n=Object.keys(e).length,i=s=>u=>{s in t||n--,t[s]=u,n===0&&r.next(t)};return Object.entries(e).reduce((s,[u,a])=>s.add(a.subscribe(i(u))),new E)})}function St(...e){return new v(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new E))}var ya=e=>new v(r=>{let t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)});var ga=e=>new v(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var Ia=e=>new v(r=>{e.forEach(t=>r.next(t))});var Oa=(e,r)=>new v(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function qt(e){return r=>new v(t=>r.subscribe(new ir(t,e)))}var ir=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var xa={leading:!1,trailing:!0};function Rt(e,r=xa){return t=>new v(n=>t.subscribe(new or(n,e,r)))}var or=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,z(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var wa={leading:!0,trailing:!1};function Pt(e,r=wa){return t=>new v(n=>t.subscribe(new sr(n,e,r)))}var sr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,Ke(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function _t(e){return r=>new v(t=>r.subscribe(new ar(t,e)))}var ar=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Ct(e=(r,t)=>r===t){return r=>new v(t=>r.subscribe(new ur(t,e)))}var At={},ur=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=At}next(r){let t;try{t=this.lastValue===At||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Ie(e){return r=>new v(t=>r.subscribe(new lr(t,e)))}var lr=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Lt(e){return Ie(()=>e)}function Nt(){return e=>new v(r=>{let t=!1,n=!1,i=e.subscribe(s=>{t||(t=!0,r.next(s)),n&&i.unsubscribe()},s=>{var u;t=!0,(u=r.error)==null||u.call(r,s),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function jt(){return e=>new v(r=>e.subscribe(new cr(r)))}var cr=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Mt(e){return r=>new v(t=>r.subscribe(new pr(t,e)))}var pr=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Ea=(a=>(a.NETWORK="network",a.VIDEO_PIPELINE="video_pipeline",a.EXTERNAL_API="external_api",a.PARSER="parser",a.DOM="dom",a.WTF="wtf",a.FATAL="fatal",a))(Ea||{});var Oe=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let i=0,s=n.length;i<s;i++)if(n[i].callback===t){n.splice(i,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let i=0,s=n.length;i<s;i++){let u=n[i];try{u.callback.call(this,r)}catch(a){Promise.resolve().then(()=>{throw a})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},K=class extends Oe{constructor(){super(),this.listeners||Oe.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}},te=class{constructor(){Object.defineProperty(this,"signal",{value:new K,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(i){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(i){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(te.prototype[Symbol.toStringTag]="AbortController",K.prototype[Symbol.toStringTag]="AbortSignal");function xe(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function fr(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!xe({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:s};let s=t;(s&&!s.prototype.hasOwnProperty("signal")||i)&&(s=function(l,p){let f;p&&p.signal&&(f=p.signal,delete p.signal);let b=new t(l,p);return f&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:f}),b},s.prototype=t.prototype);let u=r;return{fetch:(c,l)=>{let p=s&&s.prototype.isPrototypeOf(c)?c.signal:l?l.signal:void 0;if(p){let f;try{f=new DOMException("Aborted","AbortError")}catch(d){f=new Error("Aborted"),f.name="AbortError"}if(p.aborted)return Promise.reject(f);let b=new Promise((d,m)=>{p.addEventListener("abort",()=>m(f),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([b,u(c,l)])}return u(c,l)},Request:s}}var ne=xe({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),kt=ne?fr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,Vt=ne?kt.fetch:window.fetch,Xb=ne?kt.Request:window.Request,Jb=ne?te:window.AbortController,Zb=ne?K:window.AbortSignal;var qs=Fs(Ss(),1);var Tf=(f=>(f.Armenian="58",f.Azerbaijani="57",f.Belarusian="114",f.English="3",f.Kazakh="97",f.Portuguese="73",f.Russian="0",f.Spanish="4",f.Ukrainian="1",f.Uzbek="65",f.Vietnamese="75",f))(Tf||{}),mf="vk.com",WT=(e,r,t)=>he(void 0,null,function*(){let n=new URL(`https://${mf}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let s=yield(yield Vt(n.toString())).json();return hf(s,t)}),hf=(e,r)=>(0,qs.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),yf(n)])),yf=e=>Array.isArray(e)?e[0]:e;var gf=(t=>(t.RU="ru",t.EN="en",t))(gf||{});export{Ea as ErrorCategory,gf as InterfaceLanguage,Ye as Logger,v as Observable,V as Subject,E as Subscription,Us as VERSION,Tf as VKNumericLanguage,ge as ValueSubject,Ze as VideoQuality,Ks as abortable,zs as addScript,fa as areQualitiesExact,$s as assertEmptyArray,C as assertNever,Bs as assertNonNullable,Ws as assertNotEmptyArray,Qs as assertNullable,va as assertQualityIsExact,qt as buffer,Gs as checkNever,ha as clearVideoElement,Hs as clientChecker,da as cloneDeep,ye as cloneDeepWith,Et as combine,Rt as debounce,tr as debounceFn,ia as detectEmbed,ba as fillWithDefault,_t as filter,Ct as filterChanged,Oa as fromEvent,Xs as getExponentialDelay,ua as getHighestQuality,ga as interval,oa as isHigher,sa as isHigherOrEqual,rr as isInvariantQuality,er as isLower,aa as isLowerOrEqual,xt as isMobile,z as isNonNullable,Ke as isNullable,WT as loadVKLangPack,Ie as map,Lt as mapTo,St as merge,U as noop,Ys as now,Ia as observableFrom,ma as observeElementSize,Nt as once,jt as pairwise,Je as safeStorage,Mt as tap,Pt as throttle,nr as throttleFn,Zf as timeCodeToString,ya as timeout,la as videoHeightToQuality,pa as videoQualityToHeight,ca as videoSizeToQuality};
|
package/es2018.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer-shared v1.0.
|
|
3
|
-
* Wed, 21 Aug 2024
|
|
4
|
-
* https://st.mycdn.me/static/vkontakte-videoplayer/1-0-
|
|
2
|
+
* @vkontakte/videoplayer-shared v1.0.39-beta.0
|
|
3
|
+
* Wed, 21 Aug 2024 12:53:10 GMT
|
|
4
|
+
* https://st.mycdn.me/static/vkontakte-videoplayer/1-0-39/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var j=Object.defineProperty;var at=Object.getOwnPropertyDescriptor;var lt=Object.getOwnPropertyNames;var ut=Object.prototype.hasOwnProperty;var me=(t,e)=>{for(var r in e)j(t,r,{get:e[r],enumerable:!0})},ct=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of lt(e))!ut.call(t,i)&&i!==r&&j(t,i,{get:()=>e[i],enumerable:!(n=at(e,i))||n.enumerable});return t};var pt=t=>ct(j({},"__esModule",{value:!0}),t);var St={};me(St,{CurrentClientBrowser:()=>W,CurrentClientDevice:()=>G,ErrorCategory:()=>Je,InterfaceLanguage:()=>et,Logger:()=>V,Observable:()=>a,Subject:()=>x,Subscription:()=>m,VERSION:()=>Te,VKNumericLanguage:()=>Ze,ValueSubject:()=>C,VideoQuality:()=>D,abortable:()=>Ee,addScript:()=>ye,areQualitiesExact:()=>Fe,assertEmptyArray:()=>ge,assertNever:()=>I,assertNonNullable:()=>Ie,assertNotEmptyArray:()=>he,assertNullable:()=>xe,assertQualityIsExact:()=>ze,buffer:()=>Y,checkNever:()=>ve,clearVideoElement:()=>qe,cloneDeep:()=>We,cloneDeepWith:()=>R,combine:()=>H,debounce:()=>J,debounceFn:()=>F,detectEmbed:()=>Pe,fillWithDefault:()=>je,filter:()=>re,filterChanged:()=>oe,fromEvent:()=>Ye,getCurrentBrowser:()=>A,getExponentialDelay:()=>Le,getHighestQuality:()=>Qe,getIOSVersion:()=>Ae,interval:()=>Ke,isAndroid:()=>Re,isHigher:()=>Me,isHigherOrEqual:()=>Ne,isIOS:()=>Se,isInvariantQuality:()=>B,isLower:()=>U,isLowerOrEqual:()=>Ve,isMacLike:()=>Ce,isMobile:()=>ke,isNonNullable:()=>y,isNullable:()=>Q,loadVKLangPack:()=>Ot,map:()=>k,mapTo:()=>se,merge:()=>K,noop:()=>h,now:()=>we,observableFrom:()=>$e,observeElementSize:()=>Ge,once:()=>ae,pairwise:()=>ue,safeStorage:()=>_,tap:()=>pe,throttle:()=>ee,throttleFn:()=>z,timeCodeToString:()=>It,timeout:()=>He,videoHeightToQuality:()=>De,videoQualityToHeight:()=>Be,videoSizeToQuality:()=>Ue});module.exports=pt(St);var Te="1.0.38-dev.f95926c1.0";var m=class{constructor(){this.subscriptions=[]}unsubscribe(){let e=this.subscriptions;this.subscriptions=[],e.forEach(r=>typeof r=="function"?r():r.unsubscribe())}add(e){return this.subscriptions.push(e),this}};var I=t=>{throw new Error(`${t} is value of unexpected type`)},ve=t=>{};var h=()=>{};var a=class{constructor(e){e&&(this._subscribe=e)}subscribe(e,r){var l;let n;r?typeof r=="function"?n={next:r,error:h}:n={next:o=>r.next(o),error:o=>{var u;return(u=r.error)==null?void 0:u.call(r,o)}}:n={next:h,error:h};let i=typeof e=="function"?{next:o=>{try{e(o)}catch(u){n.next(u)}},error:o=>n.next(o)}:{next:o=>e.next(o),error:o=>e.error?e.error(o):n.next(o)},s;try{s=this._subscribe(i)}catch(o){(l=i.error)==null||l.call(i,o)}return new m().add(()=>{switch(i.next=h,i.error=h,typeof s){case"function":s();return;case"object":s.unsubscribe();return;case"undefined":return;default:return I(s)}})}pipe(...e){return e.reduce((r,n)=>n(r),this)}_subscribe(e){}};var x=class extends a{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(r){this.subscribers.forEach(n=>n.next(r))}error(r){this.subscribers.forEach(n=>{var i;return(i=n.error)==null?void 0:i.call(n,r)})}_subscribe(r){let n=this.keyCounter++;return this.subscribers.set(n,r),new m().add(()=>this.subscribers.delete(n))}};var V=class{constructor(){this.log$=new x;this.logs=[];this.log=e=>{let r={...e,timestamp:Date.now()};this.logs.push(r),this.log$.next(r)};this.getAllLogs=()=>this.logs}createCustomLog(e){return(...r)=>{let n;try{n=e(...r)}catch(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(e){return this.createCustomLog(r=>({component:e,...r}))}};function Ie(t,e='Assertion "value is not nullable" failed'){if(t==null)throw new Error(e)}function xe(t,e='Assertion "value is nullable" failed'){if(t!=null)throw new Error(e)}function y(t){return typeof t!="undefined"&&t!==null}function Q(t){return t==null}function he(t,e){if(!(t!=null&&t.length))throw new Error(e)}function ge(t,e){if(t!=null&&t.length)throw new Error(e)}var ye=(t,e,r)=>new Promise((n,i)=>{e.addEventListener("abort",()=>{o(),b.remove()});let s=()=>{o(),i()},l=()=>{o(),n()},o=()=>{u&&clearTimeout(u),b.removeEventListener("load",l),b.removeEventListener("error",s)},u;r&&(u=window.setTimeout(s,r));let b=document.createElement("script");b.addEventListener("load",l),b.addEventListener("error",s),b.src=t,document.head.appendChild(b)});var Oe,we=typeof((Oe=window.performance)==null?void 0:Oe.now)=="function"?()=>window.performance.now():()=>Date.now();var Ee=(t,e)=>async(...r)=>{var l;let n=e(...r),i=t.aborted,s;for(;!i&&!t.aborted;)try{let o=await n.next(s);i=(l=o.done)!=null?l:!1,s=o.value}catch(o){await n.throw(o)}return s};var W=(c=>(c.Unknown="Unknown",c.Yandex="Yandex",c.Chrome="Chrome",c.Chromium="Chromium",c.Firefox="Firefox",c.Safari="Safari",c.Opera="Opera",c.Edge="Edge",c.SamsungBrowser="SamsungBrowser",c.Rest="Rest",c))(W||{}),G=(u=>(u.Unknown="Unknown",u.Android="Android",u.iPhone="iPhone",u.iPad="iPad",u.iPod="iPod",u.RestMobile="RestMobile",u.Mac="Mac",u.Desktop="Desktop",u))(G||{}),A=()=>{let{userAgent:t}=window.navigator,e=/yabrowser/i.test(t)?"Yandex":void 0,r=/samsungbrowser/i.test(t)?"SamsungBrowser":void 0,n=/chrome|crios/i.test(t)?"Chrome":void 0,i=/chromium/i.test(t)?"Chromium":void 0,s=/firefox|fxios/i.test(t)?"Firefox":void 0,l=/webkit|safari|khtml/i.test(t)?"Safari":void 0,o=/opr\//i.test(t)?"Opera":void 0,u=/edg/i.test(t)?"Edge":void 0,b=/android/i.test(t)?"Android":void 0,c=/iphone/i.test(t)?"iPhone":void 0,d=/ipad/i.test(t)?"iPad":void 0,E=/ipod/i.test(t)?"iPod":void 0,L=/mac/i.test(t)?"Mac":void 0,S=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(t)?"RestMobile":void 0;return{browser:e||r||s||o||u||n||i||l||"Rest",device:b||c||d||E||S||L||"Desktop"}},Se=(t=!1)=>{let r=["iPhone","iPad","iPod"].includes(A().device);if(!t)return r;let{userAgent:n,maxTouchPoints:i}=window.navigator;return!!(r||/macintosh/i.test(n)&&i>0)},Ae=()=>{let{userAgent:t}=window.navigator,e=t.match(/Version\/(\d+(\.\d+)?)/i);if(!e)return null;let r=e[1],n=parseFloat(r);return isNaN(n)?null:n},Re=()=>A().device==="Android",Ce=()=>["Mac","iPhone","iPad","iPod"].includes(A().device),ke=()=>{var t,e;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((t=navigator.appVersion)!=null?t:navigator.userAgent)||((e=navigator==null?void 0:navigator.userAgentData)==null?void 0:e.mobile)};var Le=(t,{start:e=0,factor:r=2,max:n=1/0,min:i=e,random:s=0}={})=>{let l=e;return l*=r**t,l*=1+(Math.random()*s*2-s),l=Math.round(l),l=Math.min(l,n),l=Math.max(l,i),l};var _={};me(_,{clear:()=>vt,get:()=>dt,has:()=>mt,isPersistent:()=>bt,remove:()=>Tt,set:()=>ft});var f,O,q=`vk-videoplayer-dummy-key-${Math.random()}`,w=()=>{if(O!==void 0)return O;try{localStorage.setItem(q,"test"),localStorage.removeItem(q),O=0}catch(t){if(t instanceof DOMException||t instanceof TypeError)try{sessionStorage.getItem(q),O=1}catch(e){if(e instanceof DOMException||e instanceof TypeError)O=2;else throw e}else throw t}return O===2&&(f=new Map),O},bt=()=>w()===0,dt=t=>{var r,n;let e=w();switch(e){case 0:return(r=localStorage.getItem(t))!=null?r:void 0;case 1:return(n=sessionStorage.getItem(t))!=null?n:void 0;case 2:return f==null?void 0:f.get(t);default:I(e)}},ft=(t,e)=>{let r=w();switch(r){case 0:try{localStorage.setItem(t,e)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(t,e)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void(f==null?void 0:f.set(t,e));default:I(r)}},mt=t=>{var r;let e=w();switch(e){case 0:return t in localStorage;case 1:return t in sessionStorage;case 2:return(r=f==null?void 0:f.has(t))!=null?r:!1;default:return I(e),!1}},Tt=t=>{let e=w();switch(e){case 0:return localStorage.removeItem(t);case 1:return sessionStorage.removeItem(t);case 2:return void(f==null?void 0:f.delete(t));default:I(e)}},vt=()=>{let t=w();switch(t){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return f==null?void 0:f.clear();default:I(t)}};var Pe=()=>{let t,e;try{t=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?t=!0:(t=!1,console.error(n))}try{window.location.ancestorOrigins&&(e=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!e&&document.referrer&&(e=document.referrer)}catch(n){console.error(n)}let r=e?new URL(e).hostname:void 0;return{isEmbed:t,host:r}};var D=(c=>(c.INVARIANT="Invariant quality",c.Q_144P="144p",c.Q_240P="240p",c.Q_360P="360p",c.Q_480P="480p",c.Q_720P="720p",c.Q_1080P="1080p",c.Q_1440P="1440p",c.Q_2160P="2160p",c.Q_4320P="4320p",c))(D||{});var T={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},Me=(t,e)=>T[t].height>T[e].height,Ne=(t,e)=>T[t].height>=T[e].height,U=(t,e)=>T[t].height<T[e].height,Ve=(t,e)=>T[t].height<=T[e].height,Qe=t=>t.sort((e,r)=>e===r?0:e==="Invariant quality"?1:r==="Invariant quality"?-1:U(e,r)?1:-1)[0],_e=Object.keys(T).sort((t,e)=>U(t,e)?-1:1),De=(t,e=.02)=>[..._e].find(n=>T[n].height*(1+e)>=t),Ue=({width:t,height:e})=>{let r=Math.min(t,e),n=Math.max(t,e);return _e.find(i=>{let s=T[i];return s.width>=n&&s.height>=r})},Be=t=>T[t].height,B=t=>t==="Invariant quality",Fe=t=>t.every(e=>!B(e));function ze(t){if(B(t))throw new Error("Expected exact quality")}var je=(t,e)=>{let r={};for(let n of Object.keys(e)){let i=e[n],s=t[n];Array.isArray(i)&&Array.isArray(s)?r[n]=s:typeof i=="object"&&typeof s=="object"?r[n]=je(s,i):r[n]=n in t?s:i}return r};var It=t=>{let e="";return t>=3600&&(e+=Math.floor(t/3600)+"h",t=t%3600),t>=60&&(e+=Math.floor(t/60)+"m",t=t%60),t>0&&(e+=Math.floor(t)+"s"),e};function F(t,e=0,r){let n,i,s,l,o,u,b=0,c=!1,d=!1,E=!0,L=!e&&e!==0&&typeof window.requestAnimationFrame=="function";r&&(c=!!r.leading,d="maxWait"in r,s=r!=null&&r.maxWait?Math.max(+(r==null?void 0:r.maxWait)||0,e):s,E="trailing"in r?!!r.trailing:E);function S(p){let v=n,g=i;return n=i=void 0,b=p,l=t.apply(g,v),l}function P(p,v){return L?(o&&window.cancelAnimationFrame(o),window.requestAnimationFrame(p)):setTimeout(p,v)}function tt(p){if(L){window.cancelAnimationFrame(p);return}clearTimeout(p)}function rt(p){return b=p,o=P(M,e),c?S(p):l}function nt(p){let v=p-u,g=p-b,fe=e-v;return d?Math.min(fe,s-g):fe}function be(p){let v=p-u,g=p-b;return u===void 0||v>=e||v<0||d&&g>=s}function M(){let p=Date.now();if(be(p))return de(p);o=P(M,nt(p))}function de(p){return o=void 0,E&&n?S(p):(n=i=void 0,l)}function ot(){o!==void 0&&tt(o),b=0,n=u=i=o=void 0}function it(){return o===void 0?l:de(Date.now())}function st(){return o!==void 0}function N(...p){let v=Date.now(),g=be(v);if(n=p,i=this,u=v,g){if(o===void 0)return rt(u);if(d)return o=P(M,e),S(u)}return o===void 0&&(o=P(M,e)),l}return N.cancel=ot,N.flush=it,N.pending=st,N}var z=(t,e=0,r)=>F(t,e,{...{leading:!0,trailing:!0},...r,maxWait:e});var R=(t,e)=>{if(t===null||typeof t!="object")return t;let r=Array.isArray(t)?[]:{};for(let n in t){if(typeof e=="function"){let i=e(t[n],n,t,r);if(i!==void 0){r[n]=i;continue}}typeof t[n]=="object"?r[n]=R(t[n],e):r[n]=t[n]}return r};var We=t=>R(t);var xt=300,Ge=(t,e=xt)=>new a(r=>{let{width:n,height:i}=t.getBoundingClientRect();if(r.next({width:n,height:i}),!window.ResizeObserver)return;let s=new ResizeObserver(z(l=>{let o=l[0];if(!o)return;let u,b;o.contentBoxSize&&o.contentBoxSize[0]?(b=o.contentBoxSize[0].blockSize,u=o.contentBoxSize[0].inlineSize):o.contentRect&&(u=o.contentRect.width,b=o.contentRect.height),y(u)&&y(b)&&r.next({width:u,height:b})},e));return s.observe(t),()=>s.disconnect()});var qe=t=>{t.removeAttribute("src"),t.load()};var C=class extends x{constructor(r){super();this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let n=super._subscribe(r);return r.next(this.value),n}};function H(t){return new a(e=>{let r={},n=Object.keys(t).length,i=s=>l=>{s in r||n--,r[s]=l,n===0&&e.next(r)};return Object.entries(t).reduce((s,[l,o])=>s.add(o.subscribe(i(l))),new m)})}function K(...t){return new a(e=>t.reduce((r,n)=>r.add(n.subscribe(e)),new m))}var He=t=>new a(e=>{let r=window.setTimeout(()=>{try{e.next()}catch(n){if(e.error)e.error(n);else throw n}},t);return()=>window.clearTimeout(r)});var Ke=t=>new a(e=>{let r=window.setInterval(()=>e.next(),t);return()=>{r&&(window.clearInterval(r),r=void 0)}});var $e=t=>new a(e=>{t.forEach(r=>e.next(r))});var Ye=(t,e)=>new a(r=>{let n=i=>r.next(i);return t.addEventListener(e,n),()=>t.removeEventListener(e,n)});function Y(t){return e=>new a(r=>e.subscribe(new $(r,t)))}var $=class{constructor(e,r){this.destination=e;this.size=r;this.lastValues=[]}next(e){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(e),this.destination.next(this.lastValues)}error(e){var r,n;(n=(r=this.destination).error)==null||n.call(r,e)}};var ht={leading:!1,trailing:!0};function J(t,e=ht){return r=>new a(n=>r.subscribe(new X(n,t,e)))}var X=class{constructor(e,r,n){this.destination=e;this.time=r;this.config=n}next(e){this.lastValue=e,y(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(e),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(r){if(this.destination.error)this.destination.error(r);else throw r}this.timeout=void 0},this.time)}error(e){var r,n;(n=(r=this.destination).error)==null||n.call(r,e)}};var gt={leading:!0,trailing:!1};function ee(t,e=gt){return r=>new a(n=>r.subscribe(new Z(n,t,e)))}var Z=class{constructor(e,r,n){this.destination=e;this.time=r;this.config=n}next(e){this.lastValue=e,Q(this.timeout)&&(this.config.leading&&this.destination.next(e),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(e){var r,n;(n=(r=this.destination).error)==null||n.call(r,e)}};function re(t){return e=>new a(r=>e.subscribe(new te(r,t)))}var te=class{constructor(e,r){this.destination=e;this.predicate=r}next(e){let r;try{r=this.predicate(e)}catch(n){throw this.error(n),n}r&&this.destination.next(e)}error(e){var r,n;(n=(r=this.destination).error)==null||n.call(r,e)}};function oe(t=(e,r)=>e===r){return e=>new a(r=>e.subscribe(new ne(r,t)))}var Xe={},ne=class{constructor(e,r){this.destination=e;this.predicate=r;this.lastValue=Xe}next(e){let r;try{r=this.lastValue===Xe||!this.predicate(this.lastValue,e),this.lastValue=e}catch(n){throw this.error(n),n}r&&this.destination.next(e)}error(e){var r,n;(n=(r=this.destination).error)==null||n.call(r,e)}};function k(t){return e=>new a(r=>e.subscribe(new ie(r,t)))}var ie=class{constructor(e,r){this.destination=e;this.mapper=r}next(e){let r;try{r=this.mapper(e)}catch(n){throw this.error(n),n}this.destination.next(r)}error(e){var r,n;(n=(r=this.destination).error)==null||n.call(r,e)}};function se(t){return k(()=>t)}function ae(){return t=>new a(e=>{let r=!1,n=!1,i=t.subscribe(s=>{r||(r=!0,e.next(s)),n&&i.unsubscribe()},s=>{var l;r=!0,(l=e.error)==null||l.call(e,s),n&&i.unsubscribe()});return n=!0,r&&i.unsubscribe(),i})}function ue(){return t=>new a(e=>t.subscribe(new le(e)))}var le=class{constructor(e){this.destination=e;this.hasLast=!1}next(e){let r=this.last;if(this.last=e,!this.hasLast){this.hasLast=!0;return}this.destination.next([r,e])}error(e){var r,n;(n=(r=this.destination).error)==null||n.call(r,e)}};function pe(t){return e=>new a(r=>e.subscribe(new ce(r,t)))}var ce=class{constructor(e,r){this.destination=e;this.effect=r}next(e){try{this.effect(e)}catch(r){throw this.error(r),r}this.destination.next(e)}error(e){var r,n;(n=(r=this.destination).error)==null||n.call(r,e)}};var Je=(o=>(o.NETWORK="network",o.VIDEO_PIPELINE="video_pipeline",o.EXTERNAL_API="external_api",o.PARSER="parser",o.DOM="dom",o.WTF="wtf",o.FATAL="fatal",o))(Je||{});var Ze=(d=>(d.Armenian="58",d.Azerbaijani="57",d.Belarusian="114",d.English="3",d.Kazakh="97",d.Portuguese="73",d.Russian="0",d.Spanish="4",d.Ukrainian="1",d.Uzbek="65",d.Vietnamese="75",d))(Ze||{}),yt="vk.com",Ot=async(t,e,r)=>{let n=new URL(`https://${yt}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",e),t!==void 0&&n.searchParams.set("lang",t);let s=await(await fetch(n.toString())).json();return wt(s,r)},wt=(t,e)=>Object.fromEntries(Object.entries(t.keys).map(([r,n])=>[r.substring(`${e}_`.length),Et(n)])),Et=t=>Array.isArray(t)?t[0]:t;var et=(r=>(r.RU="ru",r.EN="en",r))(et||{});
|
|
6
|
+
"use strict";var ia=Object.create;var he=Object.defineProperty;var oa=Object.getOwnPropertyDescriptor;var sa=Object.getOwnPropertyNames;var aa=Object.getPrototypeOf,ua=Object.prototype.hasOwnProperty;var o=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),qt=(e,r)=>{for(var t in r)he(e,t,{get:r[t],enumerable:!0})},Rt=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of sa(r))!ua.call(e,i)&&i!==t&&he(e,i,{get:()=>r[i],enumerable:!(n=oa(r,i))||n.enumerable});return e};var la=(e,r,t)=>(t=e!=null?ia(aa(e)):{},Rt(r||!e||!e.__esModule?he(t,"default",{value:e,enumerable:!0}):t,e)),ca=e=>Rt(he({},"__esModule",{value:!0}),e);var A=o((Wb,pn)=>{"use strict";pn.exports=function(e){try{return!!e()}catch(r){return!0}}});var se=o(($b,fn)=>{"use strict";var Ia=A();fn.exports=!Ia(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var N=o((zb,dn)=>{"use strict";var vn=se(),bn=Function.prototype,Or=bn.call,Oa=vn&&bn.bind.bind(Or,Or);dn.exports=vn?Oa:function(e){return function(){return Or.apply(e,arguments)}}});var Pe=o((Yb,mn)=>{"use strict";var Tn=N(),xa=Tn({}.toString),wa=Tn("".slice);mn.exports=function(e){return wa(xa(e),8,-1)}});var yn=o((Kb,hn)=>{"use strict";var Ea=N(),Sa=A(),qa=Pe(),xr=Object,Ra=Ea("".split);hn.exports=Sa(function(){return!xr("z").propertyIsEnumerable(0)})?function(e){return qa(e)==="String"?Ra(e,""):xr(e)}:xr});var _e=o((Hb,gn)=>{"use strict";gn.exports=function(e){return e==null}});var Ae=o((Xb,In)=>{"use strict";var Pa=_e(),_a=TypeError;In.exports=function(e){if(Pa(e))throw new _a("Can't call method on "+e);return e}});var K=o((Jb,On)=>{"use strict";var Aa=yn(),Ca=Ae();On.exports=function(e){return Aa(Ca(e))}});var wn=o((Zb,xn)=>{"use strict";xn.exports=function(){}});var Q=o((ed,En)=>{"use strict";En.exports={}});var w=o((wr,Sn)=>{"use strict";var ae=function(e){return e&&e.Math===Math&&e};Sn.exports=ae(typeof globalThis=="object"&&globalThis)||ae(typeof window=="object"&&window)||ae(typeof self=="object"&&self)||ae(typeof global=="object"&&global)||ae(typeof wr=="object"&&wr)||function(){return this}()||Function("return this")()});var E=o((rd,qn)=>{"use strict";var Er=typeof document=="object"&&document.all;qn.exports=typeof Er=="undefined"&&Er!==void 0?function(e){return typeof e=="function"||e===Er}:function(e){return typeof e=="function"}});var _n=o((td,Pn)=>{"use strict";var La=w(),Na=E(),Rn=La.WeakMap;Pn.exports=Na(Rn)&&/native code/.test(String(Rn))});var j=o((nd,An)=>{"use strict";var ja=E();An.exports=function(e){return typeof e=="object"?e!==null:ja(e)}});var C=o((id,Cn)=>{"use strict";var Ma=A();Cn.exports=!Ma(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var qr=o((od,Nn)=>{"use strict";var ka=w(),Ln=j(),Sr=ka.document,Va=Ln(Sr)&&Ln(Sr.createElement);Nn.exports=function(e){return Va?Sr.createElement(e):{}}});var Rr=o((sd,jn)=>{"use strict";var Da=C(),Fa=A(),Ua=qr();jn.exports=!Da&&!Fa(function(){return Object.defineProperty(Ua("div"),"a",{get:function(){return 7}}).a!==7})});var Pr=o((ad,Mn)=>{"use strict";var Ga=C(),Ba=A();Mn.exports=Ga&&Ba(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var W=o((ud,kn)=>{"use strict";var Qa=j(),Wa=String,$a=TypeError;kn.exports=function(e){if(Qa(e))return e;throw new $a(Wa(e)+" is not an object")}});var F=o((ld,Vn)=>{"use strict";var za=se(),Ce=Function.prototype.call;Vn.exports=za?Ce.bind(Ce):function(){return Ce.apply(Ce,arguments)}});var Le=o((cd,Dn)=>{"use strict";Dn.exports={}});var Cr=o((pd,Un)=>{"use strict";var _r=Le(),Ar=w(),Ya=E(),Fn=function(e){return Ya(e)?e:void 0};Un.exports=function(e,r){return arguments.length<2?Fn(_r[e])||Fn(Ar[e]):_r[e]&&_r[e][r]||Ar[e]&&Ar[e][r]}});var Lr=o((fd,Gn)=>{"use strict";var Ka=N();Gn.exports=Ka({}.isPrototypeOf)});var $n=o((vd,Wn)=>{"use strict";var Ha=w(),Bn=Ha.navigator,Qn=Bn&&Bn.userAgent;Wn.exports=Qn?String(Qn):""});var Zn=o((bd,Jn)=>{"use strict";var Xn=w(),Nr=$n(),zn=Xn.process,Yn=Xn.Deno,Kn=zn&&zn.versions||Yn&&Yn.version,Hn=Kn&&Kn.v8,R,Ne;Hn&&(R=Hn.split("."),Ne=R[0]>0&&R[0]<4?1:+(R[0]+R[1]));!Ne&&Nr&&(R=Nr.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=Nr.match(/Chrome\/(\d+)/),R&&(Ne=+R[1])));Jn.exports=Ne});var jr=o((dd,ri)=>{"use strict";var ei=Zn(),Xa=A(),Ja=w(),Za=Ja.String;ri.exports=!!Object.getOwnPropertySymbols&&!Xa(function(){var e=Symbol("symbol detection");return!Za(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ei&&ei<41})});var Mr=o((Td,ti)=>{"use strict";var eu=jr();ti.exports=eu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var kr=o((md,ni)=>{"use strict";var ru=Cr(),tu=E(),nu=Lr(),iu=Mr(),ou=Object;ni.exports=iu?function(e){return typeof e=="symbol"}:function(e){var r=ru("Symbol");return tu(r)&&nu(r.prototype,ou(e))}});var je=o((hd,ii)=>{"use strict";var su=String;ii.exports=function(e){try{return su(e)}catch(r){return"Object"}}});var ue=o((yd,oi)=>{"use strict";var au=E(),uu=je(),lu=TypeError;oi.exports=function(e){if(au(e))return e;throw new lu(uu(e)+" is not a function")}});var Me=o((gd,si)=>{"use strict";var cu=ue(),pu=_e();si.exports=function(e,r){var t=e[r];return pu(t)?void 0:cu(t)}});var ui=o((Id,ai)=>{"use strict";var Vr=F(),Dr=E(),Fr=j(),fu=TypeError;ai.exports=function(e,r){var t,n;if(r==="string"&&Dr(t=e.toString)&&!Fr(n=Vr(t,e))||Dr(t=e.valueOf)&&!Fr(n=Vr(t,e))||r!=="string"&&Dr(t=e.toString)&&!Fr(n=Vr(t,e)))return n;throw new fu("Can't convert object to primitive value")}});var le=o((Od,li)=>{"use strict";li.exports=!0});var fi=o((xd,pi)=>{"use strict";var ci=w(),vu=Object.defineProperty;pi.exports=function(e,r){try{vu(ci,e,{value:r,configurable:!0,writable:!0})}catch(t){ci[e]=r}return r}});var ke=o((wd,di)=>{"use strict";var bu=le(),du=w(),Tu=fi(),vi="__core-js_shared__",bi=di.exports=du[vi]||Tu(vi,{});(bi.versions||(bi.versions=[])).push({version:"3.38.0",mode:bu?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Ur=o((Ed,mi)=>{"use strict";var Ti=ke();mi.exports=function(e,r){return Ti[e]||(Ti[e]=r||{})}});var Gr=o((Sd,hi)=>{"use strict";var mu=Ae(),hu=Object;hi.exports=function(e){return hu(mu(e))}});var M=o((qd,yi)=>{"use strict";var yu=N(),gu=Gr(),Iu=yu({}.hasOwnProperty);yi.exports=Object.hasOwn||function(r,t){return Iu(gu(r),t)}});var Br=o((Rd,gi)=>{"use strict";var Ou=N(),xu=0,wu=Math.random(),Eu=Ou(1 .toString);gi.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Eu(++xu+wu,36)}});var k=o((Pd,Oi)=>{"use strict";var Su=w(),qu=Ur(),Ii=M(),Ru=Br(),Pu=jr(),_u=Mr(),H=Su.Symbol,Qr=qu("wks"),Au=_u?H.for||H:H&&H.withoutSetter||Ru;Oi.exports=function(e){return Ii(Qr,e)||(Qr[e]=Pu&&Ii(H,e)?H[e]:Au("Symbol."+e)),Qr[e]}});var Si=o((_d,Ei)=>{"use strict";var Cu=F(),xi=j(),wi=kr(),Lu=Me(),Nu=ui(),ju=k(),Mu=TypeError,ku=ju("toPrimitive");Ei.exports=function(e,r){if(!xi(e)||wi(e))return e;var t=Lu(e,ku),n;if(t){if(r===void 0&&(r="default"),n=Cu(t,e,r),!xi(n)||wi(n))return n;throw new Mu("Can't convert object to primitive value")}return r===void 0&&(r="number"),Nu(e,r)}});var Wr=o((Ad,qi)=>{"use strict";var Vu=Si(),Du=kr();qi.exports=function(e){var r=Vu(e,"string");return Du(r)?r:r+""}});var X=o(Pi=>{"use strict";var Fu=C(),Uu=Rr(),Gu=Pr(),Ve=W(),Ri=Wr(),Bu=TypeError,$r=Object.defineProperty,Qu=Object.getOwnPropertyDescriptor,zr="enumerable",Yr="configurable",Kr="writable";Pi.f=Fu?Gu?function(r,t,n){if(Ve(r),t=Ri(t),Ve(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Kr in n&&!n[Kr]){var i=Qu(r,t);i&&i[Kr]&&(r[t]=n.value,n={configurable:Yr in n?n[Yr]:i[Yr],enumerable:zr in n?n[zr]:i[zr],writable:!1})}return $r(r,t,n)}:$r:function(r,t,n){if(Ve(r),t=Ri(t),Ve(n),Uu)try{return $r(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new Bu("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var ce=o((Ld,_i)=>{"use strict";_i.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var J=o((Nd,Ai)=>{"use strict";var Wu=C(),$u=X(),zu=ce();Ai.exports=Wu?function(e,r,t){return $u.f(e,r,zu(1,t))}:function(e,r,t){return e[r]=t,e}});var De=o((jd,Li)=>{"use strict";var Yu=Ur(),Ku=Br(),Ci=Yu("keys");Li.exports=function(e){return Ci[e]||(Ci[e]=Ku(e))}});var Fe=o((Md,Ni)=>{"use strict";Ni.exports={}});var Vi=o((kd,ki)=>{"use strict";var Hu=_n(),Mi=w(),Xu=j(),Ju=J(),Hr=M(),Xr=ke(),Zu=De(),el=Fe(),ji="Object already initialized",Jr=Mi.TypeError,rl=Mi.WeakMap,Ue,pe,Ge,tl=function(e){return Ge(e)?pe(e):Ue(e,{})},nl=function(e){return function(r){var t;if(!Xu(r)||(t=pe(r)).type!==e)throw new Jr("Incompatible receiver, "+e+" required");return t}};Hu||Xr.state?(P=Xr.state||(Xr.state=new rl),P.get=P.get,P.has=P.has,P.set=P.set,Ue=function(e,r){if(P.has(e))throw new Jr(ji);return r.facade=e,P.set(e,r),r},pe=function(e){return P.get(e)||{}},Ge=function(e){return P.has(e)}):($=Zu("state"),el[$]=!0,Ue=function(e,r){if(Hr(e,$))throw new Jr(ji);return r.facade=e,Ju(e,$,r),r},pe=function(e){return Hr(e,$)?e[$]:{}},Ge=function(e){return Hr(e,$)});var P,$;ki.exports={set:Ue,get:pe,has:Ge,enforce:tl,getterFor:nl}});var Bi=o((Vd,Gi)=>{"use strict";var il=se(),Ui=Function.prototype,Di=Ui.apply,Fi=Ui.call;Gi.exports=typeof Reflect=="object"&&Reflect.apply||(il?Fi.bind(Di):function(){return Fi.apply(Di,arguments)})});var Zr=o((Dd,Qi)=>{"use strict";var ol=Pe(),sl=N();Qi.exports=function(e){if(ol(e)==="Function")return sl(e)}});var Yi=o(zi=>{"use strict";var Wi={}.propertyIsEnumerable,$i=Object.getOwnPropertyDescriptor,al=$i&&!Wi.call({1:2},1);zi.f=al?function(r){var t=$i(this,r);return!!t&&t.enumerable}:Wi});var Xi=o(Hi=>{"use strict";var ul=C(),ll=F(),cl=Yi(),pl=ce(),fl=K(),vl=Wr(),bl=M(),dl=Rr(),Ki=Object.getOwnPropertyDescriptor;Hi.f=ul?Ki:function(r,t){if(r=fl(r),t=vl(t),dl)try{return Ki(r,t)}catch(n){}if(bl(r,t))return pl(!ll(cl.f,r,t),r[t])}});var Zi=o((Gd,Ji)=>{"use strict";var Tl=A(),ml=E(),hl=/#|\.prototype\./,fe=function(e,r){var t=gl[yl(e)];return t===Ol?!0:t===Il?!1:ml(r)?Tl(r):!!r},yl=fe.normalize=function(e){return String(e).replace(hl,".").toLowerCase()},gl=fe.data={},Il=fe.NATIVE="N",Ol=fe.POLYFILL="P";Ji.exports=fe});var et=o((Bd,ro)=>{"use strict";var eo=Zr(),xl=ue(),wl=se(),El=eo(eo.bind);ro.exports=function(e,r){return xl(e),r===void 0?e:wl?El(e,r):function(){return e.apply(r,arguments)}}});var rt=o((Qd,no)=>{"use strict";var ve=w(),Sl=Bi(),ql=Zr(),Rl=E(),Pl=Xi().f,_l=Zi(),Z=Le(),Al=et(),ee=J(),to=M();ke();var Cl=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return Sl(e,this,arguments)};return r.prototype=e.prototype,r};no.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,s=e.proto,u=n?ve:i?ve[t]:ve[t]&&ve[t].prototype,a=n?Z:Z[t]||ee(Z,t,{})[t],f=a.prototype,l,c,p,b,d,m,h,I,y;for(b in r)l=_l(n?b:t+(i?".":"#")+b,e.forced),c=!l&&u&&to(u,b),m=a[b],c&&(e.dontCallGetSet?(y=Pl(u,b),h=y&&y.value):h=u[b]),d=c&&h?h:r[b],!(!l&&!s&&typeof m==typeof d)&&(e.bind&&c?I=Al(d,ve):e.wrap&&c?I=Cl(d):s&&Rl(d)?I=ql(d):I=d,(e.sham||d&&d.sham||m&&m.sham)&&ee(I,"sham",!0),ee(a,b,I),s&&(p=t+"Prototype",to(Z,p)||ee(Z,p,{}),ee(Z[p],b,d),e.real&&f&&(l||!f[b])&&ee(f,b,d)))}});var so=o((Wd,oo)=>{"use strict";var tt=C(),Ll=M(),io=Function.prototype,Nl=tt&&Object.getOwnPropertyDescriptor,nt=Ll(io,"name"),jl=nt&&function(){}.name==="something",Ml=nt&&(!tt||tt&&Nl(io,"name").configurable);oo.exports={EXISTS:nt,PROPER:jl,CONFIGURABLE:Ml}});var uo=o(($d,ao)=>{"use strict";var kl=Math.ceil,Vl=Math.floor;ao.exports=Math.trunc||function(r){var t=+r;return(t>0?Vl:kl)(t)}});var it=o((zd,lo)=>{"use strict";var Dl=uo();lo.exports=function(e){var r=+e;return r!==r||r===0?0:Dl(r)}});var po=o((Yd,co)=>{"use strict";var Fl=it(),Ul=Math.max,Gl=Math.min;co.exports=function(e,r){var t=Fl(e);return t<0?Ul(t+r,0):Gl(t,r)}});var vo=o((Kd,fo)=>{"use strict";var Bl=it(),Ql=Math.min;fo.exports=function(e){var r=Bl(e);return r>0?Ql(r,9007199254740991):0}});var ot=o((Hd,bo)=>{"use strict";var Wl=vo();bo.exports=function(e){return Wl(e.length)}});var ho=o((Xd,mo)=>{"use strict";var $l=K(),zl=po(),Yl=ot(),To=function(e){return function(r,t,n){var i=$l(r),s=Yl(i);if(s===0)return!e&&-1;var u=zl(n,s),a;if(e&&t!==t){for(;s>u;)if(a=i[u++],a!==a)return!0}else for(;s>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};mo.exports={includes:To(!0),indexOf:To(!1)}});var Io=o((Jd,go)=>{"use strict";var Kl=N(),st=M(),Hl=K(),Xl=ho().indexOf,Jl=Fe(),yo=Kl([].push);go.exports=function(e,r){var t=Hl(e),n=0,i=[],s;for(s in t)!st(Jl,s)&&st(t,s)&&yo(i,s);for(;r.length>n;)st(t,s=r[n++])&&(~Xl(i,s)||yo(i,s));return i}});var at=o((Zd,Oo)=>{"use strict";Oo.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var wo=o((eT,xo)=>{"use strict";var Zl=Io(),ec=at();xo.exports=Object.keys||function(r){return Zl(r,ec)}});var So=o(Eo=>{"use strict";var rc=C(),tc=Pr(),nc=X(),ic=W(),oc=K(),sc=wo();Eo.f=rc&&!tc?Object.defineProperties:function(r,t){ic(r);for(var n=oc(t),i=sc(t),s=i.length,u=0,a;s>u;)nc.f(r,a=i[u++],n[a]);return r}});var Ro=o((tT,qo)=>{"use strict";var ac=Cr();qo.exports=ac("document","documentElement")});var pt=o((nT,jo)=>{"use strict";var uc=W(),lc=So(),Po=at(),cc=Fe(),pc=Ro(),fc=qr(),vc=De(),_o=">",Ao="<",lt="prototype",ct="script",Lo=vc("IE_PROTO"),ut=function(){},No=function(e){return Ao+ct+_o+e+Ao+"/"+ct+_o},Co=function(e){e.write(No("")),e.close();var r=e.parentWindow.Object;return e=null,r},bc=function(){var e=fc("iframe"),r="java"+ct+":",t;return e.style.display="none",pc.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(No("document.F=Object")),t.close(),t.F},Be,Qe=function(){try{Be=new ActiveXObject("htmlfile")}catch(r){}Qe=typeof document!="undefined"?document.domain&&Be?Co(Be):bc():Co(Be);for(var e=Po.length;e--;)delete Qe[lt][Po[e]];return Qe()};cc[Lo]=!0;jo.exports=Object.create||function(r,t){var n;return r!==null?(ut[lt]=uc(r),n=new ut,ut[lt]=null,n[Lo]=r):n=Qe(),t===void 0?n:lc.f(n,t)}});var ko=o((iT,Mo)=>{"use strict";var dc=A();Mo.exports=!dc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var vt=o((oT,Do)=>{"use strict";var Tc=M(),mc=E(),hc=Gr(),yc=De(),gc=ko(),Vo=yc("IE_PROTO"),ft=Object,Ic=ft.prototype;Do.exports=gc?ft.getPrototypeOf:function(e){var r=hc(e);if(Tc(r,Vo))return r[Vo];var t=r.constructor;return mc(t)&&r instanceof t?t.prototype:r instanceof ft?Ic:null}});var bt=o((sT,Fo)=>{"use strict";var Oc=J();Fo.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Oc(e,r,t),e}});var ht=o((aT,Bo)=>{"use strict";var xc=A(),wc=E(),Ec=j(),Sc=pt(),Uo=vt(),qc=bt(),Rc=k(),Pc=le(),mt=Rc("iterator"),Go=!1,V,dt,Tt;[].keys&&(Tt=[].keys(),"next"in Tt?(dt=Uo(Uo(Tt)),dt!==Object.prototype&&(V=dt)):Go=!0);var _c=!Ec(V)||xc(function(){var e={};return V[mt].call(e)!==e});_c?V={}:Pc&&(V=Sc(V));wc(V[mt])||qc(V,mt,function(){return this});Bo.exports={IteratorPrototype:V,BUGGY_SAFARI_ITERATORS:Go}});var We=o((uT,Wo)=>{"use strict";var Ac=k(),Cc=Ac("toStringTag"),Qo={};Qo[Cc]="z";Wo.exports=String(Qo)==="[object z]"});var yt=o((lT,$o)=>{"use strict";var Lc=We(),Nc=E(),$e=Pe(),jc=k(),Mc=jc("toStringTag"),kc=Object,Vc=$e(function(){return arguments}())==="Arguments",Dc=function(e,r){try{return e[r]}catch(t){}};$o.exports=Lc?$e:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=Dc(r=kc(e),Mc))=="string"?t:Vc?$e(r):(n=$e(r))==="Object"&&Nc(r.callee)?"Arguments":n}});var Yo=o((cT,zo)=>{"use strict";var Fc=We(),Uc=yt();zo.exports=Fc?{}.toString:function(){return"[object "+Uc(this)+"]"}});var ze=o((pT,Ho)=>{"use strict";var Gc=We(),Bc=X().f,Qc=J(),Wc=M(),$c=Yo(),zc=k(),Ko=zc("toStringTag");Ho.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(Wc(i,Ko)||Bc(i,Ko,{configurable:!0,value:r}),n&&!Gc&&Qc(i,"toString",$c))}});var Jo=o((fT,Xo)=>{"use strict";var Yc=ht().IteratorPrototype,Kc=pt(),Hc=ce(),Xc=ze(),Jc=Q(),Zc=function(){return this};Xo.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=Kc(Yc,{next:Hc(+!n,t)}),Xc(e,i,!1,!0),Jc[i]=Zc,e}});var es=o((vT,Zo)=>{"use strict";var ep=N(),rp=ue();Zo.exports=function(e,r,t){try{return ep(rp(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var ts=o((bT,rs)=>{"use strict";var tp=j();rs.exports=function(e){return tp(e)||e===null}});var is=o((dT,ns)=>{"use strict";var np=ts(),ip=String,op=TypeError;ns.exports=function(e){if(np(e))return e;throw new op("Can't set "+ip(e)+" as a prototype")}});var ss=o((TT,os)=>{"use strict";var sp=es(),ap=j(),up=Ae(),lp=is();os.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=sp(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,s){return up(i),lp(s),ap(i)&&(e?t(i,s):i.__proto__=s),i}}():void 0)});var ms=o((mT,Ts)=>{"use strict";var cp=rt(),pp=F(),Ye=le(),bs=so(),fp=E(),vp=Jo(),as=vt(),us=ss(),bp=ze(),dp=J(),gt=bt(),Tp=k(),ls=Q(),ds=ht(),mp=bs.PROPER,hp=bs.CONFIGURABLE,cs=ds.IteratorPrototype,Ke=ds.BUGGY_SAFARI_ITERATORS,be=Tp("iterator"),ps="keys",de="values",fs="entries",vs=function(){return this};Ts.exports=function(e,r,t,n,i,s,u){vp(t,r,n);var a=function(y){if(y===i&&b)return b;if(!Ke&&y&&y in c)return c[y];switch(y){case ps:return function(){return new t(this,y)};case de:return function(){return new t(this,y)};case fs:return function(){return new t(this,y)}}return function(){return new t(this)}},f=r+" Iterator",l=!1,c=e.prototype,p=c[be]||c["@@iterator"]||i&&c[i],b=!Ke&&p||a(i),d=r==="Array"&&c.entries||p,m,h,I;if(d&&(m=as(d.call(new e)),m!==Object.prototype&&m.next&&(!Ye&&as(m)!==cs&&(us?us(m,cs):fp(m[be])||gt(m,be,vs)),bp(m,f,!0,!0),Ye&&(ls[f]=vs))),mp&&i===de&&p&&p.name!==de&&(!Ye&&hp?dp(c,"name",de):(l=!0,b=function(){return pp(p,this)})),i)if(h={values:a(de),keys:s?b:a(ps),entries:a(fs)},u)for(I in h)(Ke||l||!(I in c))&>(c,I,h[I]);else cp({target:r,proto:!0,forced:Ke||l},h);return(!Ye||u)&&c[be]!==b&>(c,be,b,{name:i}),ls[r]=b,h}});var ys=o((hT,hs)=>{"use strict";hs.exports=function(e,r){return{value:e,done:r}}});var Ot=o((yT,ws)=>{"use strict";var yp=K(),It=wn(),gs=Q(),Os=Vi(),gp=X().f,Ip=ms(),He=ys(),Op=le(),xp=C(),xs="Array Iterator",wp=Os.set,Ep=Os.getterFor(xs);ws.exports=Ip(Array,"Array",function(e,r){wp(this,{type:xs,target:yp(e),index:0,kind:r})},function(){var e=Ep(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,He(void 0,!0);switch(e.kind){case"keys":return He(t,!1);case"values":return He(r[t],!1)}return He([t,r[t]],!1)},"values");var Is=gs.Arguments=gs.Array;It("keys");It("values");It("entries");if(!Op&&xp&&Is.name!=="values")try{gp(Is,"name",{value:"values"})}catch(e){}});var Ss=o((gT,Es)=>{"use strict";var Sp=k(),qp=Q(),Rp=Sp("iterator"),Pp=Array.prototype;Es.exports=function(e){return e!==void 0&&(qp.Array===e||Pp[Rp]===e)}});var xt=o((IT,Rs)=>{"use strict";var _p=yt(),qs=Me(),Ap=_e(),Cp=Q(),Lp=k(),Np=Lp("iterator");Rs.exports=function(e){if(!Ap(e))return qs(e,Np)||qs(e,"@@iterator")||Cp[_p(e)]}});var _s=o((OT,Ps)=>{"use strict";var jp=F(),Mp=ue(),kp=W(),Vp=je(),Dp=xt(),Fp=TypeError;Ps.exports=function(e,r){var t=arguments.length<2?Dp(e):r;if(Mp(t))return kp(jp(t,e));throw new Fp(Vp(e)+" is not iterable")}});var Ls=o((xT,Cs)=>{"use strict";var Up=F(),As=W(),Gp=Me();Cs.exports=function(e,r,t){var n,i;As(e);try{if(n=Gp(e,"return"),!n){if(r==="throw")throw t;return t}n=Up(n,e)}catch(s){i=!0,n=s}if(r==="throw")throw t;if(i)throw n;return As(n),t}});var Vs=o((wT,ks)=>{"use strict";var Bp=et(),Qp=F(),Wp=W(),$p=je(),zp=Ss(),Yp=ot(),Ns=Lr(),Kp=_s(),Hp=xt(),js=Ls(),Xp=TypeError,Xe=function(e,r){this.stopped=e,this.result=r},Ms=Xe.prototype;ks.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),s=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),a=!!(t&&t.INTERRUPTED),f=Bp(r,n),l,c,p,b,d,m,h,I=function(g){return l&&js(l,"normal",g),new Xe(!0,g)},y=function(g){return i?(Wp(g),a?f(g[0],g[1],I):f(g[0],g[1])):a?f(g,I):f(g)};if(s)l=e.iterator;else if(u)l=e;else{if(c=Hp(e),!c)throw new Xp($p(e)+" is not iterable");if(zp(c)){for(p=0,b=Yp(e);b>p;p++)if(d=y(e[p]),d&&Ns(Ms,d))return d;return new Xe(!1)}l=Kp(e,c)}for(m=s?e.next:l.next;!(h=Qp(m,l)).done;){try{d=y(h.value)}catch(g){js(l,"throw",g)}if(typeof d=="object"&&d&&Ns(Ms,d))return d}return new Xe(!1)}});var Fs=o((ET,Ds)=>{"use strict";var Jp=C(),Zp=X(),ef=ce();Ds.exports=function(e,r,t){Jp?Zp.f(e,r,ef(0,t)):e[r]=t}});var Us=o(()=>{"use strict";var rf=rt(),tf=Vs(),nf=Fs();rf({target:"Object",stat:!0},{fromEntries:function(r){var t={};return tf(r,function(n,i){nf(t,n,i)},{AS_ENTRIES:!0}),t}})});var Bs=o((RT,Gs)=>{"use strict";Ot();Us();var of=Le();Gs.exports=of.Object.fromEntries});var Ws=o((PT,Qs)=>{"use strict";Qs.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var zs=o(()=>{"use strict";Ot();var sf=Ws(),af=w(),uf=ze(),$s=Q();for(Je in sf)uf(af[Je],Je),$s[Je]=$s.Array;var Je});var Ks=o((CT,Ys)=>{"use strict";var lf=Bs();zs();Ys.exports=lf});var Xs=o((LT,Hs)=>{"use strict";var cf=Ks();Hs.exports=cf});var df={};qt(df,{ErrorCategory:()=>un,InterfaceLanguage:()=>ea,Logger:()=>ye,Observable:()=>v,Subject:()=>L,Subscription:()=>x,VERSION:()=>Pt,VKNumericLanguage:()=>Zs,ValueSubject:()=>te,VideoQuality:()=>Oe,abortable:()=>Vt,addScript:()=>jt,areQualitiesExact:()=>Ht,assertEmptyArray:()=>Nt,assertNever:()=>_,assertNonNullable:()=>At,assertNotEmptyArray:()=>Lt,assertNullable:()=>Ct,assertQualityIsExact:()=>Xt,buffer:()=>or,checkNever:()=>_t,clearVideoElement:()=>rn,clientChecker:()=>Dt,cloneDeep:()=>Zt,cloneDeepWith:()=>re,combine:()=>tr,debounce:()=>ar,debounceFn:()=>Ee,detectEmbed:()=>Ut,fillWithDefault:()=>Jt,filter:()=>pr,filterChanged:()=>vr,fromEvent:()=>sn,getExponentialDelay:()=>Ft,getHighestQuality:()=>Wt,interval:()=>nn,isHigher:()=>Gt,isHigherOrEqual:()=>Bt,isInvariantQuality:()=>we,isLower:()=>xe,isLowerOrEqual:()=>Qt,isMobile:()=>er,isNonNullable:()=>G,isNullable:()=>ge,loadVKLangPack:()=>ff,map:()=>ne,mapTo:()=>dr,merge:()=>nr,noop:()=>D,now:()=>kt,observableFrom:()=>on,observeElementSize:()=>en,once:()=>Tr,pairwise:()=>hr,safeStorage:()=>Ie,tap:()=>gr,throttle:()=>lr,throttleFn:()=>Se,timeCodeToString:()=>ma,timeout:()=>tn,videoHeightToQuality:()=>zt,videoQualityToHeight:()=>Kt,videoSizeToQuality:()=>Yt});module.exports=ca(df);var Pt="1.0.39-beta.0";var x=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}};var _=e=>{throw new Error(`${e} is value of unexpected type`)},_t=e=>{};var D=()=>{};var v=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:D}:n={next:a=>t.next(a),error:a=>{var f;return(f=t.error)==null?void 0:f.call(t,a)}}:n={next:D,error:D};let i=typeof r=="function"?{next:a=>{try{r(a)}catch(f){n.next(f)}},error:a=>n.next(a)}:{next:a=>r.next(a),error:a=>r.error?r.error(a):n.next(a)},s;try{s=this._subscribe(i)}catch(a){(u=i.error)==null||u.call(i,a)}return new x().add(()=>{switch(i.next=D,i.error=D,typeof s){case"function":s();return;case"object":s.unsubscribe();return;case"undefined":return;default:return _(s)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var L=class extends v{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{var i;return(i=n.error)==null?void 0:i.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new x().add(()=>this.subscribers.delete(n))}};var ye=class{constructor(){this.log$=new L;this.logs=[];this.log=r=>{let t={...r,timestamp:Date.now()};this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};function At(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Ct(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function G(e){return typeof e!="undefined"&&e!==null}function ge(e){return e==null}function Lt(e,r){if(!(e!=null&&e.length))throw new Error(r)}function Nt(e,r){if(e!=null&&e.length)throw new Error(r)}var jt=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{a(),l.remove()});let s=()=>{a(),i()},u=()=>{a(),n()},a=()=>{f&&clearTimeout(f),l.removeEventListener("load",u),l.removeEventListener("error",s)},f;t&&(f=window.setTimeout(s,t));let l=document.createElement("script");l.addEventListener("load",u),l.addEventListener("error",s),l.src=e,document.head.appendChild(l)});var Mt,kt=typeof((Mt=window.performance)==null?void 0:Mt.now)=="function"?()=>window.performance.now():()=>Date.now();var Vt=(e,r)=>async(...t)=>{var u;let n=r(...t),i=e.aborted,s;for(;!i&&!e.aborted;)try{let a=await n.next(s);i=(u=a.done)!=null?u:!1,s=a.value}catch(a){await n.throw(a)}return s};var er=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!=null?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.mobile)},Ze=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return["iPhone","iPad","iPod"].includes(this.device)}get isMac(){return this.device==="Mac"}get isApple(){return this.isIOS||this.isMac}get isIphoneOrOldIpad(){if(!this.isApple||!this.isTouch)return!1;let r=this.device==="iPad"||(window==null?void 0:window.screen.width)>700,t=this._iosVersion;return!r||r&&!!t&&t<16}get isAndroid(){return this.device==="Android"}get isMobile(){return this._isMobile}get iOSVersion(){return this._iosVersion}get macVersion(){return this._macVersion}get isYandex(){return this.browser==="Yandex"}get isSafari(){return this.browser==="Safari"}get isSamsungBrowser(){return this.browser==="SamsungBrowser"}get isHDR(){return this._isHdr}detect(){var n;let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!((n=matchMedia("(dynamic-range: high)"))!=null&&n.matches)}catch(i){console.error(i)}try{this._isMobile=er()}catch(i){console.error(i)}this.detectBrowser(r),this.detectDevice(r),this.isIOS&&this.detectIOSVersion(),this.isMac&&this.detectMacVersion()}detectBrowser(r){try{let t=/yabrowser/i.test(r)?"Yandex":void 0,n=/samsungbrowser/i.test(r)?"SamsungBrowser":void 0,i=/chrome|crios/i.test(r)?"Chrome":void 0,s=/chromium/i.test(r)?"Chromium":void 0,u=/firefox|fxios/i.test(r)?"Firefox":void 0,a=/webkit|safari|khtml/i.test(r)?"Safari":void 0,f=/opr\//i.test(r)?"Opera":void 0,l=/edg/i.test(r)?"Edge":void 0;this._currentBrowser=t||n||u||f||l||i||s||a||"Rest"}catch(t){console.error(t)}}detectDevice(r){try{let t=/android/i.test(r)?"Android":void 0,n=/iphone/i.test(r)?"iPhone":void 0,i=/ipad/i.test(r)?"iPad":void 0,s=/ipod/i.test(r)?"iPod":void 0,u=/mac/i.test(r)?"Mac":void 0,a=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||i||s||a||u||"Desktop"}catch(t){console.error(t)}}detectIOSVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+(\.\d+)?)/i);if(!t)return;let n=t[1],i=parseFloat(n);if(isNaN(i))return;this._iosVersion=i}catch(r){console.error(r)}}detectMacVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+)/);if(!t)return;let n=t[1],i=parseInt(n,10);if(isNaN(i))return;this._macVersion=i}catch(r){console.error(r)}}},Dt=new Ze;var Ft=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:s=0}={})=>{let u=r;return u*=t**e,u*=1+(Math.random()*s*2-s),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var Ie={};qt(Ie,{clear:()=>Ta,get:()=>fa,has:()=>ba,isPersistent:()=>pa,remove:()=>da,set:()=>va});var O,B,rr=`vk-videoplayer-dummy-key-${Math.random()}`,z=()=>{if(B!==void 0)return B;try{localStorage.setItem(rr,"test"),localStorage.removeItem(rr),B=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(rr),B=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)B=2;else throw r}else throw e}return B===2&&(O=new Map),B},pa=()=>z()===0,fa=e=>{var t,n;let r=z();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return O==null?void 0:O.get(e);default:_(r)}},va=(e,r)=>{let t=z();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void(O==null?void 0:O.set(e,r));default:_(t)}},ba=e=>{var t;let r=z();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=O==null?void 0:O.has(e))!=null?t:!1;default:return _(r),!1}},da=e=>{let r=z();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void(O==null?void 0:O.delete(e));default:_(r)}},Ta=()=>{let e=z();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return O==null?void 0:O.clear();default:_(e)}};var Ut=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}let t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};var Oe=(c=>(c.INVARIANT="Invariant quality",c.Q_144P="144p",c.Q_240P="240p",c.Q_360P="360p",c.Q_480P="480p",c.Q_720P="720p",c.Q_1080P="1080p",c.Q_1440P="1440p",c.Q_2160P="2160p",c.Q_4320P="4320p",c))(Oe||{});var S={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},Gt=(e,r)=>S[e].height>S[r].height,Bt=(e,r)=>S[e].height>=S[r].height,xe=(e,r)=>S[e].height<S[r].height,Qt=(e,r)=>S[e].height<=S[r].height,Wt=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:xe(r,t)?1:-1)[0],$t=Object.keys(S).sort((e,r)=>xe(e,r)?-1:1),zt=(e,r=.02)=>[...$t].find(n=>S[n].height*(1+r)>=e),Yt=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return $t.find(i=>{let s=S[i];return s.width>=n&&s.height>=t})},Kt=e=>S[e].height,we=e=>e==="Invariant quality",Ht=e=>e.every(r=>!we(r));function Xt(e){if(we(e))throw new Error("Expected exact quality")}var Jt=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],s=e[n];Array.isArray(i)&&Array.isArray(s)?t[n]=s:typeof i=="object"&&typeof s=="object"?t[n]=Jt(s,i):t[n]=n in e?s:i}return t};var ma=e=>{let r="";return e>=3600&&(r+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(r+=Math.floor(e/60)+"m",e=e%60),e>0&&(r+=Math.floor(e)+"s"),r};function Ee(e,r=0,t){let n,i,s,u,a,f,l=0,c=!1,p=!1,b=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(c=!!t.leading,p="maxWait"in t,s=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):s,b="trailing"in t?!!t.trailing:b);function m(T){let q=n,U=i;return n=i=void 0,l=T,u=e.apply(U,q),u}function h(T,q){return d?(a&&window.cancelAnimationFrame(a),window.requestAnimationFrame(T)):setTimeout(T,q)}function I(T){if(d){window.cancelAnimationFrame(T);return}clearTimeout(T)}function y(T){return l=T,a=h(Te,r),c?m(T):u}function g(T){let q=T-f,U=T-l,St=r-q;return p?Math.min(St,s-U):St}function wt(T){let q=T-f,U=T-l;return f===void 0||q>=r||q<0||p&&U>=s}function Te(){let T=Date.now();if(wt(T))return Et(T);a=h(Te,g(T))}function Et(T){return a=void 0,b&&n?m(T):(n=i=void 0,u)}function ra(){a!==void 0&&I(a),l=0,n=f=i=a=void 0}function ta(){return a===void 0?u:Et(Date.now())}function na(){return a!==void 0}function me(...T){let q=Date.now(),U=wt(q);if(n=T,i=this,f=q,U){if(a===void 0)return y(f);if(p)return a=h(Te,r),m(f)}return a===void 0&&(a=h(Te,r)),u}return me.cancel=ra,me.flush=ta,me.pending=na,me}var Se=(e,r=0,t)=>Ee(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var re=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let i=r(e[n],n,e,t);if(i!==void 0){t[n]=i;continue}}typeof e[n]=="object"?t[n]=re(e[n],r):t[n]=e[n]}return t};var Zt=e=>re(e);var ha=300,en=(e,r=ha)=>new v(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let s=new ResizeObserver(Se(u=>{let a=u[0];if(!a)return;let f,l;a.contentBoxSize&&a.contentBoxSize[0]?(l=a.contentBoxSize[0].blockSize,f=a.contentBoxSize[0].inlineSize):a.contentRect&&(f=a.contentRect.width,l=a.contentRect.height),G(f)&&G(l)&&t.next({width:f,height:l})},r));return s.observe(e),()=>s.disconnect()});var rn=e=>{e.removeAttribute("src"),e.load()};var te=class extends L{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};function tr(e){return new v(r=>{let t={},n=Object.keys(e).length,i=s=>u=>{s in t||n--,t[s]=u,n===0&&r.next(t)};return Object.entries(e).reduce((s,[u,a])=>s.add(a.subscribe(i(u))),new x)})}function nr(...e){return new v(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new x))}var tn=e=>new v(r=>{let t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)});var nn=e=>new v(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var on=e=>new v(r=>{e.forEach(t=>r.next(t))});var sn=(e,r)=>new v(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function or(e){return r=>new v(t=>r.subscribe(new ir(t,e)))}var ir=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var ya={leading:!1,trailing:!0};function ar(e,r=ya){return t=>new v(n=>t.subscribe(new sr(n,e,r)))}var sr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,G(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var ga={leading:!0,trailing:!1};function lr(e,r=ga){return t=>new v(n=>t.subscribe(new ur(n,e,r)))}var ur=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,ge(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function pr(e){return r=>new v(t=>r.subscribe(new cr(t,e)))}var cr=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function vr(e=(r,t)=>r===t){return r=>new v(t=>r.subscribe(new fr(t,e)))}var an={},fr=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=an}next(r){let t;try{t=this.lastValue===an||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function ne(e){return r=>new v(t=>r.subscribe(new br(t,e)))}var br=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function dr(e){return ne(()=>e)}function Tr(){return e=>new v(r=>{let t=!1,n=!1,i=e.subscribe(s=>{t||(t=!0,r.next(s)),n&&i.unsubscribe()},s=>{var u;t=!0,(u=r.error)==null||u.call(r,s),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function hr(){return e=>new v(r=>e.subscribe(new mr(r)))}var mr=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function gr(e){return r=>new v(t=>r.subscribe(new yr(t,e)))}var yr=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var un=(a=>(a.NETWORK="network",a.VIDEO_PIPELINE="video_pipeline",a.EXTERNAL_API="external_api",a.PARSER="parser",a.DOM="dom",a.WTF="wtf",a.FATAL="fatal",a))(un||{});var qe=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let i=0,s=n.length;i<s;i++)if(n[i].callback===t){n.splice(i,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let i=0,s=n.length;i<s;i++){let u=n[i];try{u.callback.call(this,r)}catch(a){Promise.resolve().then(()=>{throw a})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},Y=class extends qe{constructor(){super(),this.listeners||qe.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}},ie=class{constructor(){Object.defineProperty(this,"signal",{value:new Y,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(i){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(i){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(ie.prototype[Symbol.toStringTag]="AbortController",Y.prototype[Symbol.toStringTag]="AbortSignal");function Re(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function Ir(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!Re({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:s};let s=t;(s&&!s.prototype.hasOwnProperty("signal")||i)&&(s=function(l,c){let p;c&&c.signal&&(p=c.signal,delete c.signal);let b=new t(l,c);return p&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:p}),b},s.prototype=t.prototype);let u=r;return{fetch:(f,l)=>{let c=s&&s.prototype.isPrototypeOf(f)?f.signal:l?l.signal:void 0;if(c){let p;try{p=new DOMException("Aborted","AbortError")}catch(d){p=new Error("Aborted"),p.name="AbortError"}if(c.aborted)return Promise.reject(p);let b=new Promise((d,m)=>{c.addEventListener("abort",()=>m(p),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([b,u(f,l)])}return u(f,l)},Request:s}}var oe=Re({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),ln=oe?Ir({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,cn=oe?ln.fetch:window.fetch,Ub=oe?ln.Request:window.Request,Gb=oe?ie:window.AbortController,Bb=oe?Y:window.AbortSignal;var Js=la(Xs(),1),Zs=(p=>(p.Armenian="58",p.Azerbaijani="57",p.Belarusian="114",p.English="3",p.Kazakh="97",p.Portuguese="73",p.Russian="0",p.Spanish="4",p.Ukrainian="1",p.Uzbek="65",p.Vietnamese="75",p))(Zs||{}),pf="vk.com",ff=async(e,r,t)=>{let n=new URL(`https://${pf}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let s=await(await cn(n.toString())).json();return vf(s,t)},vf=(e,r)=>(0,Js.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),bf(n)])),bf=e=>Array.isArray(e)?e[0]:e;var ea=(t=>(t.RU="ru",t.EN="en",t))(ea||{});
|