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