1var kt=Object.defineProperty;var Qe=n=>{throw TypeError(n)};var Pt=(n,r,e)=>r in n?kt(n,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[r]=e;var j=(n,r,e)=>Pt(n,typeof r!="symbol"?r+"":r,e),$e=(n,r,e)=>r.has(n)||Qe("Cannot "+e);var _=(n,r,e)=>($e(n,r,"read from private field"),e?e.call(n):r.get(n)),A=(n,r,e)=>r.has(n)?Qe("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(n):r.set(n,e),v=(n,r,e,t)=>($e(n,r,"write to private field"),t?t.call(n,e):r.set(n,e),e),Fe=(n,r,e)=>($e(n,r,"access private method"),e);import"./mediaChrome.DZXIlj_A.js";function lt(n){return class extends n{constructor(){super(...arguments);j(this,"_playedRanges",[]);j(this,"_currentPlayedRange",null);j(this,"_RANGE_EPSILON",.5);j(this,"_seeking",!1)}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this.addEventListener("play",()=>this.onPlaybackStart({time:this.currentTime})),this.addEventListener("pause",()=>this.onPlaybackStop({time:this.currentTime})),this.addEventListener("ended",()=>this.onPlaybackStop({time:this.currentTime})),this.addEventListener("seeking",()=>this.onSeeking()),this.addEventListener("seeked",()=>this.onSeeked({time:this.currentTime}))}onPlaybackStart(t={}){this._seeking=!1;const{time:i}=t,a=typeof i=="number"?i:this.currentTime;this._currentPlayedRange||(this._currentPlayedRange={start:a,end:a})}onSeeking(){this._seeking=!0,this._commitCurrentRange()}onSeeked(t={}){this._seeking=!1;const{time:i}=t,a=typeof i=="number"?i:this.currentTime;this._currentPlayedRange={start:a,end:a}}onPlaybackStop(t={}){const{time:i}=t,a=typeof i=="number"?i:this.currentTime;this._commitCurrentRange(a)}_commitCurrentRange(t){if(!this._currentPlayedRange)return;typeof t=="number"&&(this._currentPlayedRange.end=t);const{start:i,end:a}=this._currentPlayedRange;this._currentPlayedRange=null,this.addPlayedRange(i,a)}addPlayedRange(t,i){if(t>=i)return;const a=this._RANGE_EPSILON,o=[...this._playedRanges,{start:t,end:i}];o.sort((c,u)=>c.start-u.start);const s=[];for(const c of o){if(!s.length){s.push({...c});continue}const u=s[s.length-1];c.start<=u.end+a?(u.start=Math.min(u.start,c.start),u.end=Math.max(u.end,c.end)):s.push({...c})}this._playedRanges=s}get played(){const t=this.currentTime;return!this.paused&&!this._currentPlayedRange&&typeof t=="number"&&(this._currentPlayedRange={start:t,end:t}),this._currentPlayedRange&&typeof t=="number"&&(t>this._currentPlayedRange.end&&(this._currentPlayedRange.end=t),this.addPlayedRange(this._currentPlayedRange.start,this._currentPlayedRange.end)),this._playedRanges.length?Je(this._playedRanges.map(i=>[i.start,i.end])):Je([[0,0]])}}}function Je(n){return Object.defineProperties(n,{start:{value:r=>n[r][0]},end:{value:r=>n[r][1]}}),n}const Tt="https://www.youtube.com/embed",_t="https://www.youtube-nocookie.com/embed",St="https://www.youtube.com/iframe_api",Ct="YT",Rt="onYouTubeIframeAPIReady",Ke=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})/,At=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/.*?[?&]list=)([\w_-]+)/;function Mt(n){if(!n)return;const r=n.match(/[?&]t=([\dms]+)/i);if(!r)return;const e=r[1].toLowerCase();let t=0,i=!1;const a=e.match(/(\d+)m/);a&&(t+=parseInt(a[1],10)*60,i=!0);const o=e.match(/(\d+)s?$/);return o&&(t+=parseInt(o[1],10),i=!0),i?t:void 0}function Xe(n,r={}){var e;const t={src:ct(n,r),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return(e=r.config)!=null&&e.referrerpolicy&&(t.referrerpolicy=r.config.referrerpolicy),r.config&&(t["data-config"]=JSON.stringify(r.config)),` 2 <style> 3 :host { 4 display: inline-block; 5 line-height: 0; 6 position: relative; 7 min-width: 300px; 8 min-height: 150px; 9 } 10 iframe { 11 position: absolute; 12 top: 0; 13 left: 0; 14 } 15 </style> 16 <iframe${Ot(t)}></iframe> 17 `}function ct(n,r){if(!n.src)return;const e=n.src.includes("-nocookie")?_t:Tt,t={controls:n.controls===""?null:0,autoplay:n.autoplay,loop:n.loop,mute:n.muted,playsinline:n.playsinline,preload:n.preload??"metadata",enablejsapi:1,
17cc_load_policy:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1,start:Mt(n.src),...r.config};if(Ke.test(n.src)){const s=n.src.match(Ke),c=s&&s[1];return`${e}/${c}?${Ze(t)}`}const i=n.src.match(At),o={listType:"playlist",list:i&&i[1],...t};return`${e}?${Ze(o)}`}var fe,de,U,Y,G,Pe,pe,ne,Q,Le,ht;class _e extends lt(globalThis.HTMLElement??class{}){constructor(){super();A(this,Le);j(this,"loadComplete",new xe);A(this,fe);A(this,de);A(this,U,0);A(this,Y,!1);A(this,G);j(this,"isLoaded",!1);A(this,Pe,null);A(this,pe,null);A(this,ne,null);A(this,Q,1);Fe(this,Le,ht).call(this,"config")}get config(){return _(this,pe)}set config(e){v(this,pe,e)}async load(){if(_(this,fe))return;this.shadowRoot||this.attachShadow({mode:"open"});const e=!_(this,de);_(this,de)&&(this.loadComplete=new xe,this.isLoaded=!1),v(this,de,!0),await v(this,fe,Promise.resolve()),v(this,fe,null),v(this,U,0),this.dispatchEvent(new Event("emptied"));let t=this.api;if(this.api=null,!this.src){t==null||t.destroy();return}v(this,ne,document.createElement("video")),this.textTracks=_(this,ne).textTracks,this.textTracks.addEventListener("change",()=>{var f;const k=Array.from(this.textTracks).find(b=>b.mode==="showing");(f=this.api)==null||f.setOption("captions","track",k?{languageCode:k.language}:{})}),this.dispatchEvent(new Event("loadstart"));let i=this.shadowRoot.querySelector("iframe"),a=It(this.attributes);e&&i&&v(this,pe,JSON.parse(i.getAttribute("data-config")||"{}")),(!(i!=null&&i.src)||i.src!==ct(a,this))&&(this.shadowRoot.innerHTML=Xe(a,this),i=this.shadowRoot.querySelector("iframe"));const o=await Nt(St,Ct,Rt);this.api=new o.Player(i,{events:{onReady:()=>{var f;v(this,U,1),this.dispatchEvent(new Event("loadedmetadata")),this.dispatchEvent(new Event("durationchange")),_(this,Q)!==1&&((f=this.api)==null||f.setVolume(_(this,Q)*100)),this.dispatchEvent(new Event("volumechange")),this.dispatchEvent(new Event("loadcomplete")),this.isLoaded=!0,this.loadComplete.resolve()},onError:f=>{console.error(f),v(this,Pe,{code:f.data,message:`YouTube iframe player error #${f.data}; visit https://developers.google.com/youtube/iframe_api_reference#onError for the full error message.`}),this.dispatchEvent(new Event("error"))}}});let s=!1;this.api.addEventListener("onStateChange",f=>{var k;const b=f.data;if((b===o.PlayerState.PLAYING||b===o.PlayerState.BUFFERING)&&(s||(s=!0,this.dispatchEvent(new Event("play"))),(this.api.getOption("captions","tracklist")||[]).forEach(L=>{[...this.textTracks].some(O=>O.language===L.languageCode)||_(this,ne).addTextTrack("subtitles",L.displayName,L.languageCode),this.textTracks=_(this,ne).textTracks}),this.dispatchEvent(new Event("loadstart"))),b===o.PlayerState.PLAYING)this.seeking&&(v(this,Y,!1),(k=_(this,G))==null||k.resolve(),this.dispatchEvent(new Event("seeked"))),v(this,U,3),this.dispatchEvent(new Event("playing"));else if(b===o.PlayerState.PAUSED){const E=Math.abs(this.currentTime-c);!this.seeking&&E>.1&&(v(this,Y,!0),this.dispatchEvent(new Event("seeking"))),s=!1,this.dispatchEvent(new Event("pause"))}b===o.PlayerState.ENDED&&(s=!1,this.dispatchEvent(new Event("pause")),this.dispatchEvent(new Event("ended")),this.loop&&this.play())}),this.api.addEventListener("onPlaybackRateChange",()=>{this.dispatchEvent(new Event("ratechange"))}),this.api.addEventListener("onVolumeChange",()=>{var f;const k=((f=this.api)==null?void 0:f.getVolume())/100;v(this,Q,k),this.dispatchEvent(new Event("volumechange"))}),this.api.addEventListener("onVideoProgress",()=>{this.dispatchEvent(new Event("timeupdate"))}),await this.loadComplete;let c=0;setInterval(()=>{var f;const k=Math.abs(this.currentTime-c),b=this.buffered.end(this.buffered.length-1);this.seeking&&b>.1?(v(this,Y,!1),(f=_(this,G))==null||f.resolve(),this.dispatchEvent(new Event("seeked"))):!this.seeking&&k>.1&&(v(this,Y,!0),this.dispatchEvent(new Event("seeking"))),c=this.currentTime},50);let u;const g=setInterval(()=>{const f=this.buffered.end(this.buffered.length-1);f>=this.duration&&(clearInterval(g),v(this,U,4)),u!=f&&(u=f,this.dispatchEvent(new Event("progress")))},100)}async attributeChangedCallback(e,t,i){if(t!==i)switch(e){case"src":case"auto
17play":case"controls":case"loop":case"playsinline":this.load()}}async play(){var e;return v(this,G,null),await this.loadComplete,(e=this.api)==null||e.playVideo(),Ft(this)}async pause(){var e;return await this.loadComplete,(e=this.api)==null?void 0:e.pauseVideo()}get seeking(){return _(this,Y)}get readyState(){return _(this,U)}get src(){return this.getAttribute("src")}set src(e){this.src!=e&&this.setAttribute("src",e)}get error(){return _(this,Pe)}get paused(){var e,t;return this.isLoaded?[-1,0,2,5].includes((t=(e=this.api)==null?void 0:e.getPlayerState)==null?void 0:t.call(e)):!this.autoplay}get duration(){var e,t;return((t=(e=this.api)==null?void 0:e.getDuration)==null?void 0:t.call(e))??NaN}get autoplay(){return this.hasAttribute("autoplay")}set autoplay(e){this.autoplay!=e&&this.toggleAttribute("autoplay",!!e)}get buffered(){var e,t;if(!this.isLoaded)return De();const i=((e=this.api)==null?void 0:e.getVideoLoadedFraction())*((t=this.api)==null?void 0:t.getDuration());return i>0?De(0,i):De()}get controls(){return this.hasAttribute("controls")}set controls(e){this.controls!=e&&this.toggleAttribute("controls",!!e)}get currentTime(){var e,t;return((t=(e=this.api)==null?void 0:e.getCurrentTime)==null?void 0:t.call(e))??0}set currentTime(e){this.currentTime!=e&&(v(this,G,new xe),this.loadComplete.then(()=>{var t,i;(t=this.api)==null||t.seekTo(e,!0),this.paused&&((i=_(this,G))==null||i.then(()=>{var a;_(this,G)&&((a=this.api)==null||a.pauseVideo())}))}))}set defaultMuted(e){this.defaultMuted!=e&&this.toggleAttribute("muted",!!e)}get defaultMuted(){return this.hasAttribute("muted")}get loop(){return this.hasAttribute("loop")}set loop(e){this.loop!=e&&this.toggleAttribute("loop",!!e)}set muted(e){this.muted!=e&&this.loadComplete.then(()=>{var t,i;e?(t=this.api)==null||t.mute():(i=this.api)==null||i.unMute()})}get muted(){var e,t;return this.isLoaded?(t=(e=this.api)==null?void 0:e.isMuted)==null?void 0:t.call(e):this.defaultMuted}get playbackRate(){var e,t;return((t=(e=this.api)==null?void 0:e.getPlaybackRate)==null?void 0:t.call(e))??1}set playbackRate(e){this.playbackRate!=e&&this.loadComplete.then(()=>{var t;(t=this.api)==null||t.setPlaybackRate(e)})}get playsInline(){return this.hasAttribute("playsinline")}set playsInline(e){this.playsInline!=e&&this.toggleAttribute("playsinline",!!e)}get poster(){return this.getAttribute("poster")}set poster(e){this.poster!=e&&this.setAttribute("poster",`${e}`)}set volume(e){this.volume!=e&&(v(this,Q,e),this.loadComplete.then(()=>{var t;(t=this.api)==null||t.setVolume(e*100)}))}get volume(){var e;return this.isLoaded?((e=this.api)==null?void 0:e.getVolume())/100:_(this,Q)}}fe=new WeakMap,de=new WeakMap,U=new WeakMap,Y=new WeakMap,G=new WeakMap,Pe=new WeakMap,pe=new WeakMap,ne=new WeakMap,Q=new WeakMap,Le=new WeakSet,ht=function(e){if(Object.prototype.hasOwnProperty.call(this,e)){const t=this[e];delete this[e],this[e]=t}},j(_e,"getTemplateHTML",Xe),j(_e,"shadowRootOptions",{mode:"open"}),j(_e,"observedAttributes",["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src"]);function Ot(n){let r="";for(const e in n){const t=n[e];t===""?r+=` ${Ve(e)}`:r+=` ${Ve(e)}="${Ve(`${t}`)}"`}return r}function Ve(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`")}function Ze(n){return String(new URLSearchParams(Lt(n)))}function Lt(n){let r={};for(let e in n){let t=n[e];t===!0||t===""?r[e]=1:t===!1?r[e]=0:t!=null&&(r[e]=t)}return r}function It(n){let r={};for(let e of n)r[e.name]=e.value;return r}const qe={};async function Nt(n,r,e){return qe[n]?qe[n]:self[r]?(await jt(0),self[r]):qe[n]=new Promise(function(t,i){const a=document.createElement("script");a.src=n;const o=()=>t(self[r]);self[e]=o,a.onload=()=>!e,a.onerror=i,document.head.append(a)})}const jt=n=>new Promise(r=>setTimeout(r,n));function $t(n){return(...r)=>new Promise(e=>{n(...r,(...t)=>{t.length>1?e(t):e(t[0])})})}function Ft(n){return $t((r,e)=>{let t;n.addEventListener(r,t=()=>{n.removeEventListener(r,t),e()})})("playing")}let xe=class extends Promise{constructor(r=()=>{}){let e,t;super((i,a)=>{r(i,a),e=i,t=a}),this.resolve=e,this.reject=t}};function De(n,r){return Array.isArray(n)?Be(n):n==null||r==null||n===0&&r===0?Be([[0,0]]):Be([[n,r]])}function Be(n){return Object.defineProperties(n,{start:{value:r=>n[r][0]},end:{value:r=>n[r][1]}}),n}globalThis.customElements&&!globalThis.customElements.get("youtube-video")&&globalThis.customElements.define("youtube-video",_e);/*! @vimeo/player v2.29.0 | (c) 2025 Vimeo | MIT License | https://github.com/vimeo/player.js */function et(n,r){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);r&&(t=t.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),e.push.apply(e,t)}return e}function tt(n){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};
vendor: 4,247 bytes, line 17
17r%2?et(Object(e),!0).forEach(function(t){Se(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):et(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function N(){N=function(){return n};var n={},r=Object.prototype,e=r.hasOwnProperty,t=Object.defineProperty||function(h,l,d){h[l]=d.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(h,l,d){return Object.defineProperty(h,l,{value:d,enumerable:!0,configurable:!0,writable:!0}),h[l]}try{c({},"")}catch{c=function(l,d,S){return l[d]=S}}function u(h,l,d,S){var w=l&&l.prototype instanceof k?l:k,R=Object.create(w.prototype),I=new q(S||[]);return t(R,"_invoke",{value:T(h,d,I)}),R}function g(h,l,d){try{return{type:"normal",arg:h.call(l,d)}}catch(S){return{type:"throw",arg:S}}}n.wrap=u;var f={};function k(){}function b(){}function E(){}var L={};c(L,a,function(){return this});var O=Object.getPrototypeOf,V=O&&O(O(B([])));V&&V!==r&&e.call(V,a)&&(L=V);var y=E.prototype=k.prototype=Object.create(L);function p(h){["next","throw","return"].forEach(function(l){c(h,l,function(d){return this._invoke(l,d)})})}function m(h,l){function d(w,R,I,x){var D=g(h[w],h,R);if(D.type!=="throw"){var le=D.arg,we=le.value;return we&&typeof we=="object"&&e.call(we,"__await")?l.resolve(we.__await).then(function(ee){d("next",ee,I,x)},function(ee){d("throw",ee,I,x)}):l.resolve(we).then(function(ee){le.value=ee,I(le)},function(ee){return d("throw",ee,I,x)})}x(D.arg)}var S;t(this,"_invoke",{value:function(w,R){function I(){return new l(function(x,D){d(w,R,x,D)})}return S=S?S.then(I,I):I()}})}function T(h,l,d){var S="suspendedStart";return function(w,R){if(S==="executing")throw new Error("Generator is already running");if(S==="completed"){if(w==="throw")throw R;return je()}for(d.method=w,d.arg=R;;){var I=d.delegate;if(I){var x=C(I,d);if(x){if(x===f)continue;return x}}if(d.method==="next")d.sent=d._sent=d.arg;else if(d.method==="throw"){if(S==="suspendedStart")throw S="completed",d.arg;d.dispatchException(d.arg)}else d.method==="return"&&d.abrupt("return",d.arg);S="executing";var D=g(h,l,d);if(D.type==="normal"){if(S=d.done?"completed":"suspendedYield",D.arg===f)continue;return{value:D.arg,done:d.done}}D.type==="throw"&&(S="completed",d.method="throw",d.arg=D.arg)}}}function C(h,l){var d=l.method,S=h.iterator[d];if(S===void 0)return l.delegate=null,d==="throw"&&h.iterator.return&&(l.method="return",l.arg=void 0,C(h,l),l.method==="throw")||d!=="return"&&(l.method="throw",l.arg=new TypeError("The iterator does not provide a '"+d+"' method")),f;var w=g(S,h.iterator,l.arg);if(w.type==="throw")return l.method="throw",l.arg=w.arg,l.delegate=null,f;var R=w.arg;return R?R.done?(l[h.resultName]=R.value,l.next=h.nextLoc,l.method!=="return"&&(l.method="next",l.arg=void 0),l.delegate=null,f):R:(l.method="throw",l.arg=new TypeError("iterator result is not an object"),l.delegate=null,f)}function M(h){var l={tryLoc:h[0]};1 in h&&(l.catchLoc=h[1]),2 in h&&(l.finallyLoc=h[2],l.afterLoc=h[3]),this.tryEntries.push(l)}function P(h){var l=h.completion||{};l.type="normal",delete l.arg,h.completion=l}function q(h){this.tryEntries=[{tryLoc:"root"}],h.forEach(M,this),this.reset(!0)}function B(h){if(h){var l=h[a];if(l)return l.call(h);if(typeof h.next=="function")return h;if(!isNaN(h.length)){var d=-1,S=function w(){for(;++d<h.length;)if(e.call(h,d))return w.value=h[d],w.done=!1,w;return w.value=void 0,w.done=!0,w};return S.next=S}}return{next:je}}function je(){return{value:void 0,done:!0}}return b.prototype=E,t(y,"constructor",{value:E,configurable:!0}),t(E,"constructor",{value:b,configurable:!0}),b.displayName=c(E,s,"GeneratorFunction"),n.isGeneratorFunction=function(h){var l=typeof h=="function"&&h.constructor;return!!l&&(l===b||(l.displayName||l.name)==="GeneratorFunction")},n.mark=function(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,E):(h.__proto__=E,c(h,s,"GeneratorFunction")),h.prototype=Object.create(y),h},n.awrap=function(h){return{__await:h}},p(m.prototype),c(m.prototype,o,function(){return this}),n.AsyncIterator=m,n.async=function(h,l,d,S,w){w===void 0&&(w=Prom
17ise);var R=new m(u(h,l,d,S),w);return n.isGeneratorFunction(l)?R:R.next().then(function(I){return I.done?I.value:R.next()})},p(y),c(y,s,"Generator"),c(y,a,function(){return this}),c(y,"toString",function(){return"[object Generator]"}),n.keys=function(h){var l=Object(h),d=[];for(var S in l)d.push(S);return d.reverse(),function w(){for(;d.length;){var R=d.pop();if(R in l)return w.value=R,w.done=!1,w}return w.done=!0,w}},n.values=B,q.prototype={constructor:q,reset:function(h){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!h)for(var l in this)l.charAt(0)==="t"&&e.call(this,l)&&!isNaN(+l.slice(1))&&(this[l]=void 0)},stop:function(){this.done=!0;var h=this.tryEntries[0].completion;if(h.type==="throw")throw h.arg;return this.rval},dispatchException:function(h){if(this.done)throw h;var l=this;function d(D,le){return R.type="throw",R.arg=h,l.next=D,le&&(l.method="next",l.arg=void 0),!!le}for(var S=this.tryEntries.length-1;S>=0;--S){var w=this.tryEntries[S],R=w.completion;if(w.tryLoc==="root")return d("end");if(w.tryLoc<=this.prev){var I=e.call(w,"catchLoc"),x=e.call(w,"finallyLoc");if(I&&x){if(this.prev<w.catchLoc)return d(w.catchLoc,!0);if(this.prev<w.finallyLoc)return d(w.finallyLoc)}else if(I){if(this.prev<w.catchLoc)return d(w.catchLoc,!0)}else{if(!x)throw new Error("try statement without catch or finally");if(this.prev<w.finallyLoc)return d(w.finallyLoc)}}}},abrupt:function(h,l){for(var d=this.tryEntries.length-1;d>=0;--d){var S=this.tryEntries[d];if(S.tryLoc<=this.prev&&e.call(S,"finallyLoc")&&this.prev<S.finallyLoc){var w=S;break}}w&&(h==="break"||h==="continue")&&w.tryLoc<=l&&l<=w.finallyLoc&&(w=null);var R=w?w.completion:{};return R.type=h,R.arg=l,w?(this.method="next",this.next=w.finallyLoc,f):this.complete(R)},complete:function(h,l){if(h.type==="throw")throw h.arg;return h.type==="break"||h.type==="continue"?this.next=h.arg:h.type==="return"?(this.rval=this.arg=h.arg,this.method="return",this.next="end"):h.type==="normal"&&l&&(this.next=l),f},finish:function(h){for(var l=this.tryEntries.length-1;l>=0;--l){var d=this.tryEntries[l];if(d.finallyLoc===h)return this.complete(d.completion,d.afterLoc),P(d),f}},catch:function(h){for(var l=this.tryEntries.length-1;l>=0;--l){var d=this.tryEntries[l];if(d.tryLoc===h){var S=d.completion;if(S.type==="throw"){var w=S.arg;P(d)}return w}}throw new Error("illegal catch attempt")},delegateYield:function(h,l,d){return this.delegate={iterator:B(h),resultName:l,nextLoc:d},this.method==="next"&&(this.arg=void 0),f}},n}function rt(n,r,e,t,i,a,o){try{var s=n[a](o),c=s.value}catch(u){e(u);return}s.done?r(c):Promise.resolve(c).then(t,i)}function re(n){return function(){var r=this,e=arguments;return new Promise(function(t,i){var a=n.apply(r,e);function o(c){rt(a,t,i,o,s,"next",c)}function s(c){rt(a,t,i,o,s,"throw",c)}o(void 0)})}}function ft(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function Vt(n,r){for(var e=0;e<r.length;e++){var t=r[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,vt(t.key),t)}}function dt(n,r,e){return r&&Vt(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function Se(n,r,e){return r=vt(r),r in n?Object.defineProperty(n,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[r]=e,n}function qt(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),r&&ke(n,r)}function Ee(n){return Ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ee(n)}function ke(n,r){return ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t},ke(n,r)}function pt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ce(n,r,e){return pt()?Ce=Reflect.construct.bind():Ce=function(i,a,o){var s=[null];s.push.apply(s,a);var c=Function.bind.apply(i,s),u=new c;return o&&ke(u,o.prototype),u},Ce.apply(null,arguments)}function xt(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function He(n){var r=typeof Map=="function"?new Map:void 0;return He=function(t){if(t===null||!xt(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r<"u"){if(r.has(t))return r.get(t);r.set(t,i)}function i(){return Ce(t,arguments,Ee(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),ke(i,t)},He(n)}function Re(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Dt(n,r){if(r&&(typeof r=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Re(n)}function Bt(n){var r=pt();return function(){var t=Ee(n),i;if(r){var a=Ee(this).constructor;i=Reflect.construct(t,arguments,a)}else i=t.apply(this,arguments);return Dt(this,i)}}function zt(n,r){if(typeof n!="object"||n===null)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,r);if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}function vt(n){var r=zt(n,"string");return typeof r=="symbol"?r:String(r)}var gt=typeof global<"u"&&{}.toString.call(global)==="[object global]";function nt(n,r){return n.indexOf(r.toLowerCase())===0?n:"".concat(r.toLowerCase()).concat(n.substr(0,1).toUpperCase()).concat(n.substr(1))}function Wt(n){return!!(n&&n.nodeType===1&&"nodeName"in n&&n.ownerDocument&&n.ownerDocument.defaultView)}function Gt(n){return!isNaN(parseFloat(n))&&isFinite(n)&&Math.floor(n)==n}function ue(n){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(n)}
17function mt(n){var r=/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/;return r.test(n)}function Ht(n){for(var r=(n||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),e=(r&&r[1]||"").replace("player.",""),t=[".videoji.hk",".vimeo.work",".videoji.cn"],i=0,a=t;i<a.length;i++){var o=a[i];if(e.endsWith(o))return e}return"vimeo.com"}function yt(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=n.id,e=n.url,t=r||e;if(!t)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(Gt(t))return"https://vimeo.com/".concat(t);if(ue(t))return t.replace("http:","https:");throw r?new TypeError("â".concat(r,"â is not a valid video id.")):new TypeError("â".concat(t,"â is not a vimeo.com url."))}var it=function(r,e,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"addEventListener",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"removeEventListener",o=typeof e=="string"?[e]:e;return o.forEach(function(s){r[i](s,t)}),{cancel:function(){return o.forEach(function(c){return r[a](c,t)})}}},Ut=typeof Array.prototype.indexOf<"u",Yt=typeof window<"u"&&typeof window.postMessage<"u";if(!gt&&(!Ut||!Yt))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var he=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qt(n,r){return r={exports:{}},n(r,r.exports),r.exports}/*! 18 * weakmap-polyfill v2.0.4 - ECMAScript6 WeakMap polyfill 19 * https://github.com/polygonplanet/weakmap-polyfill 20 * Copyright (c) 2015-2021 polygonplanet <[email protected]> 21 * @license MIT 22 */(function(n){if(n.WeakMap)return;var r=Object.prototype.hasOwnProperty,e=Object.defineProperty&&(function(){try{return Object.defineProperty({},"x",{value:1}).x===1}catch{}})(),t=function(a,o,s){e?Object.defineProperty(a,o,{configurable:!0,writable:!0,value:s}):a[o]=s};n.WeakMap=(function(){function a(){if(this===void 0)throw new TypeError("Constructor WeakMap requires 'new'");if(t(this,"_id",s("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}t(a.prototype,"delete",function(u){if(o(this,"delete"),!i(u))return!1;var g=u[this._id];return g&&g[0]===u?(delete u[this._id],!0):!1}),t(a.prototype,"get",function(u){if(o(this,"get"),!!i(u)){var g=u[this._id];if(g&&g[0]===u)return g[1]}}),t(a.prototype,"has",function(u){if(o(this,"has"),!i(u))return!1;var g=u[this._id];return!!(g&&g[0]===u)}),t(a.prototype,"set",function(u,g){if(o(this,"set"),!i(u))throw new TypeError("Invalid value used as weak map key");var f=u[this._id];return f&&f[0]===u?(f[1]=g,this):(t(u,this._id,[u,g]),this)});function o(u,g){if(!i(u)||!r.call(u,"_id"))throw new TypeError(g+" method called on incompatible receiver "+typeof u)}function s(u){return u+"_"+c()+"."+c()}function c(){return Math.random().toString().substring(2)}return t(a,"_polyfill",!0),a})();function i(a){return Object(a)===a}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:he);var z=Qt(function(n){/*! Native Promise Only 23 v0.8.1 (c) Kyle Simpson 24 MIT License: http://getify.mit-license.org 25*/(function(e,t,i){t[e]=t[e]||i(),n.exports&&(n.exports=t[e])})("Promise",he,function(){var e,t,i,a=Object.prototype.toString,o=typeof setImmediate<"u"?function(p){return setImmediate(p)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(p,m,T,C){return Object.defineProperty(p,m,{value:T,writable:!0,configurable:C!==!1})}}catch{e=function(m,T,C){return m[T]=C,m}}i=(function(){var p,m,T;function C(M,P){this.fn=M,this.self=P,this.next=void 0}return{add:function(P,q){T=new C(P,q),m?m.next=T:p=T,m=T,T=void 0},drain:function(){var P=p;for(p=m=t=void 0;P;)P.fn.call(P.self),P=P.next}}})();function s(y,p){i.add(y,p),t||(t=o(i.drain))}function c(y){var p,m=typeof y;return y!=null&&(m=="object"||m=="function")&&(p=y.then),typeof p=="function"?p:!1}
25function u(){for(var y=0;y<this.chain.length;y++)g(this,this.state===1?this.chain[y].success:this.chain[y].failure,this.chain[y]);this.chain.length=0}function g(y,p,m){var T,C;try{p===!1?m.reject(y.msg):(p===!0?T=y.msg:T=p.call(void 0,y.msg),T===m.promise?m.reject(TypeError("Promise-chain cycle")):(C=c(T))?C.call(T,m.resolve,m.reject):m.resolve(T))}catch(M){m.reject(M)}}function f(y){var p,m=this;if(!m.triggered){m.triggered=!0,m.def&&(m=m.def);try{(p=c(y))?s(function(){var T=new E(m);try{p.call(y,function(){f.apply(T,arguments)},function(){k.apply(T,arguments)})}catch(C){k.call(T,C)}}):(m.msg=y,m.state=1,m.chain.length>0&&s(u,m))}catch(T){k.call(new E(m),T)}}}function k(y){var p=this;p.triggered||(p.triggered=!0,p.def&&(p=p.def),p.msg=y,p.state=2,p.chain.length>0&&s(u,p))}function b(y,p,m,T){for(var C=0;C<p.length;C++)(function(P){y.resolve(p[P]).then(function(B){m(P,B)},T)})(C)}function E(y){this.def=y,this.triggered=!1}function L(y){this.promise=y,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function O(y){if(typeof y!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var p=new L(this);this.then=function(T,C){var M={success:typeof T=="function"?T:!0,failure:typeof C=="function"?C:!1};return M.promise=new this.constructor(function(q,B){if(typeof q!="function"||typeof B!="function")throw TypeError("Not a function");M.resolve=q,M.reject=B}),p.chain.push(M),p.state!==0&&s(u,p),M.promise},this.catch=function(T){return this.then(void 0,T)};try{y.call(void 0,function(T){f.call(p,T)},function(T){k.call(p,T)})}catch(m){k.call(p,m)}}var V=e({},"constructor",O,!1);return O.prototype=V,e(V,"__NPO__",0,!1),e(O,"resolve",function(p){var m=this;return p&&typeof p=="object"&&p.__NPO__===1?p:new m(function(C,M){if(typeof C!="function"||typeof M!="function")throw TypeError("Not a function");C(p)})}),e(O,"reject",function(p){return new this(function(T,C){if(typeof T!="function"||typeof C!="function")throw TypeError("Not a function");C(p)})}),e(O,"all",function(p){var m=this;return a.call(p)!="[object Array]"?m.reject(TypeError("Not an array")):p.length===0?m.resolve([]):new m(function(C,M){if(typeof C!="function"||typeof M!="function")throw TypeError("Not a function");var P=p.length,q=Array(P),B=0;b(m,p,function(h,l){q[h]=l,++B===P&&C(q)},M)})}),e(O,"race",function(p){var m=this;return a.call(p)!="[object Array]"?m.reject(TypeError("Not an array")):new m(function(C,M){if(typeof C!="function"||typeof M!="function")throw TypeError("Not a function");b(m,p,function(q,B){C(B)},M)})}),O})}),H=new WeakMap;function be(n,r,e){var t=H.get(n.element)||{};r in t||(t[r]=[]),t[r].push(e),H.set(n.element,t)}function Me(n,r){var e=H.get(n.element)||{};return e[r]||[]}function Oe(n,r,e){var t=H.get(n.element)||{};if(!t[r])return!0;if(!e)return t[r]=[],H.set(n.element,t),!0;var i=t[r].indexOf(e);return i!==-1&&t[r].splice(i,1),H.set(n.element,t),t[r]&&t[r].length===0}function Jt(n,r){var e=Me(n,r);if(e.length<1)return!1;var t=e.shift();return Oe(n,r,t),t}function Kt(n,r){var e=H.get(n);H.set(r,e),H.delete(n)}function Ne(n){if(typeof n=="string")try{n=JSON.parse(n)}catch(r){return console.warn(r),{}}return n}function te(n,r,e){if(!(!n.element.contentWindow||!n.element.contentWindow.postMessage)){var t={method:r};e!==void 0&&(t.value=e);var i=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));i>=8&&i<10&&(t=JSON.stringify(t)),n.element.contentWindow.postMessage(t,n.origin)}}function Xt(n,r){r=Ne(r);var e=[],t;if(r.event){if(r.event==="error"){var i=Me(n,r.data.method);i.forEach(function(o){var s=new Error(r.data.message);s.name=r.data.name,o.reject(s),Oe(n,r.data.method,o)})}e=Me(n,"event:".concat(r.event)),t=r.data}else if(r.method){var a=Jt(n,r.method);a&&(e.push(a),t=r.value)}e.forEach(function(o){try{if(typeof o=="function"){o.call(n,t);return}o.resolve(t)}catch{}})}var Zt=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","initial_quality","interactive_params","keyboard","loop","maxheight","max_quality","maxwidth","min_quality","muted","play_button_position","playsinline","portrait","preload","progress_bar","quality","quality_selector","responsive","skipping_forward","speed","start_time","texttrack","thumbnail_id","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function wt(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Zt.reduce(function(e,t){var i=n.getAttribute("data-vimeo-".concat(t));return(i||i==="")&&(e[t]=i===""?1:i),e},r)}function Ue(n,r){var e=n.html;if(!r)throw new TypeError("An element must be provided");
25if(r.getAttribute("data-vimeo-initialized")!==null)return r.querySelector("iframe");var t=document.createElement("div");return t.innerHTML=e,r.appendChild(t.firstChild),r.setAttribute("data-vimeo-initialized","true"),r.querySelector("iframe")}function bt(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2?arguments[2]:void 0;return new Promise(function(t,i){if(!ue(n))throw new TypeError("â".concat(n,"â is not a vimeo.com url."));var a=Ht(n),o="https://".concat(a,"/api/oembed.json?url=").concat(encodeURIComponent(n));for(var s in r)r.hasOwnProperty(s)&&(o+="&".concat(s,"=").concat(encodeURIComponent(r[s])));var c="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;c.open("GET",o,!0),c.onload=function(){if(c.status===404){i(new Error("â".concat(n,"â was not found.")));return}if(c.status===403){i(new Error("â".concat(n,"â is not embeddable.")));return}try{var u=JSON.parse(c.responseText);if(u.domain_status_code===403){Ue(u,e),i(new Error("â".concat(n,"â is not embeddable.")));return}t(u)}catch(g){i(g)}},c.onerror=function(){var u=c.status?" (".concat(c.status,")"):"";i(new Error("There was an error fetching the embed code from Vimeo".concat(u,".")))},c.send()})}function er(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,r=[].slice.call(n.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),e=function(i){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(i))};r.forEach(function(t){try{if(t.getAttribute("data-vimeo-defer")!==null)return;var i=wt(t),a=yt(i);bt(a,i,t).then(function(o){return Ue(o,t)}).catch(e)}catch(o){e(o)}})}function tr(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var r=function(t){if(ue(t.origin)&&!(!t.data||t.data.event!=="spacechange")){for(var i=n.querySelectorAll("iframe"),a=0;a<i.length;a++)if(i[a].contentWindow===t.source){var o=i[a].parentElement;o.style.paddingBottom="".concat(t.data.data[0].bottom,"px");break}}};window.addEventListener("message",r)}}function rr(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoSeoMetadataAppended){window.VimeoSeoMetadataAppended=!0;var r=function(t){if(ue(t.origin)){var i=Ne(t.data);if(!(!i||i.event!=="ready"))for(var a=n.querySelectorAll("iframe"),o=0;o<a.length;o++){var s=a[o],c=s.contentWindow===t.source;if(mt(s.src)&&c){var u=new Ye(s);u.callMethod("appendVideoMetadata",window.location.href)}}}};window.addEventListener("message",r)}}function nr(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam
25=!0;var r=function(i){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(i))},e=function(i){if(ue(i.origin)){var a=Ne(i.data);if(!(!a||a.event!=="ready"))for(var o=n.querySelectorAll("iframe"),s=function(){var g=o[c],f=g.contentWindow===i.source;if(mt(g.src)&&f){var k=new Ye(g);k.getVideoId().then(function(b){var E=new RegExp("[?&]vimeo_t_".concat(b,"=([^&#]*)")).exec(window.location.href);if(E&&E[1]){var L=decodeURI(E[1]);k.setCurrentTime(L)}}).catch(r)}},c=0;c<o.length;c++)s()}};window.addEventListener("message",e)}}function ir(){var n=(function(){for(var t,i=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],a=0,o=i.length,s={};a<o;a++)if(t=i[a],t&&t[1]in document){for(a=0;a<t.length;a++)s[i[0][a]]=t[a];return s}return!1})(),r={fullscreenchange:n.fullscreenchange,fullscreenerror:n.fullscreenerror},e={request:function(i){return new Promise(function(a,o){var s=function u(){e.off("fullscreenchange",u),a()};e.on("fullscreenchange",s),i=i||document.documentElement;var c=i[n.requestFullscreen]();c instanceof Promise&&c.then(s).catch(o)})},exit:function(){return new Promise(function(i,a){if(!e.isFullscreen){i();return}var o=function c(){e.off("fullscreenchange",c),i()};e.on("fullscreenchange",o);var s=document[n.exitFullscreen]();s instanceof Promise&&s.then(o).catch(a)})},on:function(i,a){var o=r[i];o&&document.addEventListener(o,a)},off:function(i,a){var o=r[i];o&&document.removeEventListener(o,a)}};return Object.defineProperties(e,{isFullscreen:{get:function(){return!!document[n.fullscreenElement]}},element:{enumerable:!0,get:function(){return document[n.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!document[n.fullscreenEnabled]}}}),e}var ar={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},or=(function(n){qt(e,n);var r=Bt(e);function e(t,i){var a,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;return ft(this,e),a=r.call(this),Se(Re(a),"logger",void 0),Se(Re(a),"speedAdjustment",0),Se(Re(a),"adjustSpeed",(function(){var c=re(N().mark(function u(g,f){var k;return N().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(a.speedAdjustment!==f){E.next=2;break}return E.abrupt("return");case 2:return E.next=4,g.getPlaybackRate();case 4:return E.t0=E.sent,E.t1=a.speedAdjustment,E.t2=E.t0-E.t1,E.t3=f,k=E.t2+E.t3,a.log("New playbackRate: ".concat(k)),E.next=12,g.setPlaybackRate(k);case 12:a.speedAdjustment=f;case 13:case"end":return E.stop()}},u)}));return function(u,g){return c.apply(this,arguments)}})()),a.logger=s,a.init(i,t,tt(tt({},ar),o)),a}return dt(e,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:(function(){var t=re(N().mark(function a(o,s,c){var u=this,g,f,k;return N().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this.waitForTOReadyState(o,"open");case 2:if(c.role!=="viewer"){E.next=10;break}return E.next=5,this.updatePlayer(o,s,c);case 5:g=it(o,"change",function(){return u.updatePlayer(o,s,c)}),f=this.maintainPlaybackPosition(o,s,c),this.addEventListener("disconnect",function(){f.cancel(),g.cancel()}),E.next=14;break;case 10:return E.next=12,this.updateTimingObject(o,s);case 12:k=it(s,["seeked","play","pause","ratechange"],function(){return u.updateTimingObject(o,s)},"on","off"),this.addEventListener("disconnect",function(){return k.cancel()});case 14:case"end":return E.stop()}},a,this)}));function i(a,o,s){return t.apply(this,arguments)}return i})()},{key:"updateTimingObject",value:(function(){var t=re(N().mark(function a(o,s){return N().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.t0=o,u.next=3,s.getCurrentTime();case 3:return u.t1=u.sent,u.next=6,s.getPaused();case 6:if(!u.sent){u.next=10;break}u.t2=0,u.next=13;break;case 10:return u.next=12,s.getPlaybackRate();case 12:u.t2=u.sent;case 13:u.t3=u.t2,u.t4={position:u.t1,velocity:u.t3},u.t0.update.call(u.t0,u.t4);case 16:case"end":return u.stop()}},a)}));function i(a,o){return t.apply(this,arguments)}return i})()},{key:"updatePlayer",value:(function(){var t=re(N().mark(function a(o,s,c){var u,g,f;return N().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(u=o.query(),g=u.position,f=u.velocity,typeof g=="number"&&s.setCurrentTime(g),typeof f!="number"){b.next=25;break}if(f!==0){b.next=11;break}return b.next=6,s.getPaused();case 6:if(b.t0=b.sent,b.t0!==!1){b.next=9;break}s.pause();case 9:b.next=25;break;case 11:if(!(f>0)){b.next=25;break}return b.next=14,s.getPaused();case 14:if(b.t1=b.sent,b.t1!==!0){b.next=19;break}return b.next=18,s.play().catch((function(){var E=re(N().mark(function L(O){return N().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(!(O.name==="NotAllowedError"&&c.autoPlayMuted)){y.next=5;break}return y.next=3,s.setMuted(!0);case 3:return y.next=5,s.play().catch(function(p){return console.error("Couldn't play the video from TimingSrcConnector. Error:",p)});case 5:case"end":return y.stop()}},L)}));return function(L){return E.apply(this,arguments)}})());case 18:this.updatePlayer(o,s,c);case 19:return b.next=21,s.getPlaybackRate();case 21:if(b.t2=b.sent,b.t3=f,b.t2===b.t3){b.next=25;break}s.setPlaybackRate(f);case 25:case"end":return b.stop()}},a,this)}));function i(a,o,s){return t.apply(this,arguments)}return i})()},{key:"maintainPlaybackPosition",value:function(i,a,o){var s=this,c=o.allowedDrift,u=o.maxAllowedDrift,g=o.minCheckInterval,f=o.maxRateAdjustment,k=o.maxTimeToCatchUp,b=Math.min(k,Math.max(g,u))*1e3,E=(function(){var O=re(N().mark(function V(){var y,p,m,T,C;return N().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(P.t0=i.query().velocity===0,P.t0){P.next=6;break}return P.next=4,a.getPaused();case 4:P.t1=P.sent,P.t0=P.t1===!0;case 6:if(!P.t0){P.next=8;break}return P.abrupt("return");case 8:return P.t2=i.query().position,P.next=11,a.getCurrentTime();case 11:if(P.t3=P.sent,y=P.t2-P.t3,p=Math.abs(y),s.log("Drift: ".concat(y)),!(p>u)){P.next=22;break}return P.next=18,s.adjustSpeed(a,0);case 18:a.setCurrentTime(i.query().position),s.log("Resync by currentTime"),P.next=29;break;case 22:if(!(p>c)){P.next=29;break}return m=p/k,T=f,C=m<T?(T-m)/2:T,P.next=28,s.adjustSpeed(a,C*Math.sign(y));case 28:s.log("Resync by playbackRate");case 29:case"end":return P.stop()}},V)}));return function(){return O.apply(this,arguments)}})(),L=setInterval(function(){return E()},b);return{cancel:function(){return clearInterval(L)}}}},{key:"log",value:function(i){var a;(a=this.logger)===null||a===void 0||a.call(this,"TimingSrcConnector: ".concat(i))}},{key:"waitForTOReadyState",value:function(i,a){return new Promise(function(o){var s=function c(){i.readyState===a?o():i.addEventListener("readystatechange",c,{once:!0})};s()})}}]),e})(He(EventTarget)),ce=new WeakMap,ze=new WeakMap,$={},Ye=(function(){function n(r){var e=this,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(ft(this,n),window.jQuery&&r instanceof jQuery&&(r.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),r=r[0]),typeof document<"u"&&typeof r=="string"&&(r=document.getElementById(r)),!Wt(r))throw new TypeError("You must pass either a valid element or a valid id.");if(r.nodeName!=="IFRAME"){var i=r.querySelector("iframe");
25i&&(r=i)}if(r.nodeName==="IFRAME"&&!ue(r.getAttribute("src")||""))throw new Error("The player element passed isnât a Vimeo embed.");if(ce.has(r))return ce.get(r);this._window=r.ownerDocument.defaultView,this.element=r,this.origin="*";var a=new z(function(s,c){if(e._onMessage=function(f){if(!(!ue(f.origin)||e.element.contentWindow!==f.source)){e.origin==="*"&&(e.origin=f.origin);var k=Ne(f.data),b=k&&k.event==="error",E=b&&k.data&&k.data.method==="ready";if(E){var L=new Error(k.data.message);L.name=k.data.name,c(L);return}var O=k&&k.event==="ready",V=k&&k.method==="ping";if(O||V){e.element.setAttribute("data-ready","true"),s();return}Xt(e,k)}},e._window.addEventListener("message",e._onMessage),e.element.nodeName!=="IFRAME"){var u=wt(r,t),g=yt(u);bt(g,u,r).then(function(f){var k=Ue(f,r);return e.element=k,e._originalElement=r,Kt(r,k),ce.set(e.element,e),f}).catch(c)}});if(ze.set(this,a),ce.set(this.element,this),this.element.nodeName==="IFRAME"&&te(this,"ping"),$.isEnabled){var o=function(){return $.exit()};this.fullscreenchangeHandler=function(){$.isFullscreen?be(e,"event:exitFullscreen",o):Oe(e,"event:exitFullscreen",o),e.ready().then(function(){te(e,"fullscreenchange",$.isFullscreen)})},$.on("fullscreenchange",this.fullscreenchangeHandler)}return this}return dt(n,[{key:"callMethod",value:function(e){for(var t=this,i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];if(e==null)throw new TypeError("You must pass a method name.");return new z(function(s,c){return t.ready().then(function(){be(t,e,{resolve:s,reject:c}),te(t,e,a)}).catch(c)})}},{key:"get",value:function(e){var t=this;return new z(function(i,a){return e=nt(e,"get"),t.ready().then(function(){be(t,e,{resolve:i,reject:a}),te(t,e)}).catch(a)})}},{key:"set",value:function(e,t){var i=this;return new z(function(a,o){if(e=nt(e,"set"),t==null)throw new TypeError("There must be a value to set.");return i.ready().then(function(){be(i,e,{resolve:a,reject:o}),te(i,e,t)}).catch(o)})}},{key:"on",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");if(typeof t!="function")throw new TypeError("The callback must be a function.");var i=Me(this,"event:".concat(e));i.length===0&&this.callMethod("addEventListener",e).catch(function(){}),be(this,"event:".concat(e),t)}},{key:"off",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(t&&typeof t!="function")throw new TypeError("The callback must be a function.");var i=Oe(this,"event:".concat(e),t);i&&this.callMethod("removeEventListener",e).catch(function(a){})}},{key:"loadVideo",value:function(e){return this.callMethod("loadVideo",e)}},{key:"ready",value:function(){var e=ze.get(this)||new z(function(t,i){i(new Error("Unknown player. Probably unloaded."))});return z.resolve(e)}},{key:"addCuePoint",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}},{key:"removeCuePoint",value:function(e){return this.callMethod("removeCuePoint",e)}},{key:"enableTextTrack",value:function(e,t){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return $.isEnabled?$.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return $.isEnabled?$.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return $.isEnabled?z.resolve($.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var e=this;return new z(function(t){if(ze.delete(e),ce.delete(e.element),e._originalElement&&(ce.delete(e._originalElement),e._originalElement.removeAttribute("data-vimeo-initialized")),e.element&&e.element.nodeName==="IFRAME"&&e.element.parentNode&&(e.element.parentNode.parentNode&&e._originalElement&&e._originalElement!==e.element.parentNode?e.element.parentNode.parentNode.removeChild(e.element.parentNode):e.element.parentNode.removeChild(e.element)),e.element&&e.element.nodeName==="DIV"&&e.element.parentNode){e.element.removeAttribute("data-vimeo-initialized");var i=e.element.querySelector("iframe");i&&i.parentNode&&(i.parentNode.parentNode&&e._originalElement&&e._originalElement!==i.parentNode?i.parentNode.parentNode.removeChild(i.parentNode):i.parentNode.removeChild(i))}e._window.removeEventListener("message",e._onMessage),$.isEnabled&&$.off("fullscreenchange",e.fullscreenchangeHandler),t()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(e){return this.set("autopause",e)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(e){return this.set("cameraProps",e)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return z.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(e){return this.set("color",e)}},{key:"setColors",value:function(e){if(!Array.isArray(e))return new z(function(a,o){return o(new TypeError("Argument must be an array."))});var t=new z(function(a){return a(null)}),i=[e[0]?this.set("colorOne",e[0]):t,e[1]?this.set("colorTwo",e[1]):t,e[2]?this.set("colorThree",e[2]):t,e[3]?this.set("colorFour",e[3]):t];return z.all(i)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(e){return this.set("currentTime",e)}
25},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(e){return this.set("loop",e)}},{key:"setMuted",value:function(e){return this.set("muted",e)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(e){return this.set("playbackRate",e)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(e){return this.set("quality",e)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(e){return this.set("volume",e)}},{key:"setTimingSrc",value:(function(){var r=re(N().mark(function t(i,a){var o=this,s;return N().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(i){u.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return u.next=4,this.ready();case 4:return s=new or(this,i,a),te(this,"notifyTimingObjectConnect"),s.addEventListener("disconnect",function(){return te(o,"notifyTimingObjectDisconnect")}),u.abrupt("return",s);case 8:case"end":return u.stop()}},t,this)}));function e(t,i){return r.apply(this,arguments)}return e})()}]),n})();gt||($=ir(),er(),tr(),rr(),nr());const sr="https://player.vimeo.com/video",ur="https://vimeo.com/event",lr=/vimeo\.com\/(video\/|event\/)?(\d+)(?:\/([\w-]+))?/;function at(n,r={}){var e;const t={src:cr(n,r),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return r.config&&(t["data-config"]=JSON.stringify(r.config)),(e=r.config)!=null&&e.referrerpolicy&&(t.referrerpolicy=r.config.referrerpolicy),` 26 <style> 27 :host { 28 display: inline-block; 29 min-width: 300px; 30 min-height: 150px; 31 position: relative; 32 } 33 iframe { 34 position: absolute; 35 top: 0; 36 left: 0; 37 } 38 :host(:not([controls])) { 39 pointer-events: none; 40 } 41 </style> 42 <iframe${hr(t)}></iframe> 43 `}function cr(n,r){if(!n.src)return;let e=new URL(n.src);const t=n.src.match(lr),i=t==null?void 0:t[1],a=t==null?void 0:t[2],o=e.searchParams.get("h")||(t==null?void 0:t[3]),s={controls:n.controls===""?null:0,autoplay:n.autoplay,loop:n.loop,muted:n.muted,playsinline:n.playsinline,preload:n.preload??"metadata",transparent:!1,autopause:n.autopause,h:o,...r.config};if(i==="event/"){const c=o?`/${o}`:"";return delete s.h,`${ur}/${a}/embed${c}?${ot(s)}`}return`${sr}/${a}?${ot(s)}`}var ve,ge,Te,W,J,K,F,ie,ae,X,oe,Z,me,ye,se,Ie,Et;class Ae extends lt(globalThis.HTMLElement??class{}){constructor(){super();A(this,Ie);j(this,"loadComplete",new st);A(this,ve);A(this,ge);A(this,Te);A(this,W,0);A(this,J,NaN);A(this,K,!1);A(this,F,!this.autoplay);A(this,ie,1);A(this,ae,0);A(this,X,0);A(this,oe,!1);A(this,Z,1);A(this,me,NaN);A(this,ye,NaN);A(this,se,null);Fe(this,Ie,Et).call(this,"config")}requestFullscreen(){var e,t;return(t=(e=this.api)==null?void 0:e.requestFullscreen)==null?void 0:t.call(e)}exitFullscreen(){var e,t;return(t=(e=this.api)==null?void 0:e.exitFullscreen)==null?void 0:t.call(e)}requestPictureInPicture(){var e,t;return(t=(e=this.api)==null?void 0:e.requestPictureInPicture)==null?void 0:t.call(e)}exitPictureInPicture(){var e,t;return(t=(e=this.api)==null?void 0:e.exitPictureInPicture)==null?void 0:t.call(e)}get config(){return _(this,se)}set config(e){v(this,se,e)}async load(){var e;if(_(this,ve))return;const t=!_(this,ge);_(this,ge)&&(this.loadComplete=new st),v(this,ge,!0),await v(this,ve,Promise.resolve()),v(this,ve,null),v(this,W,0),v(this,J,NaN),v(this,K,!1),v(this,F,!this.autoplay),v(this,ie,1),v(this,ae,0),v(this,X,0),v(this,oe,!1),v(this,Z,1),v(this,X,0),v(this,me,NaN),v(this,ye,NaN),this.dispatchEvent(new Event("emptied"));let i=this.api;if(this.api=null,!this.src)return;this.dispatchEvent(new Event("loadstart"));const a={autoplay:this.autoplay,controls:this.controls,loop:this.loop,muted:this.defaultMuted,playsinline:this.playsInl
43ine,preload:this.preload??"metadata",transparent:!1,autopause:this.hasAttribute("autopause"),..._(this,se)},o=async()=>{v(this,X,1),this.dispatchEvent(new Event("loadedmetadata")),this.api&&(v(this,K,await this.api.getMuted()),v(this,Z,await this.api.getVolume()),this.dispatchEvent(new Event("volumechange")),v(this,J,await this.api.getDuration()),this.dispatchEvent(new Event("durationchange"))),this.dispatchEvent(new Event("loadcomplete")),this.loadComplete.resolve()};if(_(this,Te)){this.api=i,await this.api.loadVideo({...a,url:this.src}),await o(),await this.loadComplete;return}v(this,Te,!0);let s=(e=this.shadowRoot)==null?void 0:e.querySelector("iframe");t&&s&&v(this,se,JSON.parse(s.getAttribute("data-config")||"{}")),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=at(dr(this.attributes),this),s=this.shadowRoot.querySelector("iframe")),this.api=new Ye(s);const c=document.createElement("video");this.textTracks=c.textTracks,this.api.getTextTracks().then(g=>{g.forEach(f=>{c.addTextTrack(f.kind,f.label,f.language)})}),this.textTracks.addEventListener("change",()=>{const g=Array.from(this.textTracks).find(f=>f.mode==="showing");g?this.api.enableTextTrack(g.language,g.kind):this.api.disableTextTrack()});const u=()=>{this.api.off("loaded",u),o()};this.api.on("loaded",u),this.api.on("bufferstart",()=>{_(this,F)&&(v(this,F,!1),this.dispatchEvent(new Event("play"))),this.dispatchEvent(new Event("waiting"))}),this.api.on("play",()=>{_(this,F)&&(v(this,F,!1),this.dispatchEvent(new Event("play")))}),this.api.on("playing",()=>{v(this,X,3),v(this,F,!1),this.dispatchEvent(new Event("playing"))}),this.api.on("seeking",()=>{v(this,oe,!0),this.onSeeking(),this.dispatchEvent(new Event("seeking"))}),this.api.on("seeked",async()=>{v(this,oe,!1),v(this,W,await this.api.getCurrentTime().catch(()=>_(this,W))),this.dispatchEvent(new Event("seeked"))}),this.api.on("pause",()=>{v(this,F,!0),this.dispatchEvent(new Event("pause"))}),this.api.on("ended",()=>{v(this,F,!0),this.dispatchEvent(new Event("ended"))}),this.api.on("ratechange",({playbackRate:g})=>{v(this,ie,g),this.dispatchEvent(new Event("ratechange"))}),this.api.on("volumechange",async({volume:g})=>{v(this,Z,g),this.api&&v(this,K,await this.api.getMuted()),this.dispatchEvent(new Event("volumechange"))}),this.api.on("durationchange",({duration:g})=>{v(this,J,g),this.dispatchEvent(new Event("durationchange"))}),this.api.on("timeupdate",({seconds:g})=>{const f=Math.round(g*100)/100;v(this,W,f),this.dispatchEvent(new Event("timeupdate"))}),this.api.on("progress",({seconds:g})=>{v(this,ae,g),this.dispatchEvent(new Event("progress"))}),this.api.on("resize",({videoWidth:g,videoHeight:f})=>{v(this,me,g),v(this,ye,f),this.dispatchEvent(new Event("resize"))}),await this.loadComplete}async attributeChangedCallback(e,t,i){if(t!==i){switch(e){case"autoplay":case"controls":case"src":{this.load();return}}switch(await this.loadComplete,e){case"loop":{this.api.setLoop(this.loop);break}}}}async play(){var e;v(this,F,!1),this.dispatchEvent(new Event("play")),await this.loadComplete;try{await((e=this.api)==null?void 0:e.play())}catch(t){throw v(this,F,!0),this.dispatchEvent(new Event("pause")),t}}async pause(){var e;return await this.loadComplete,(e=this.api)==null?void 0:e.pause()}get ended(){return _(this,W)>=_(this,J)}get seeking(){return _(this,oe)}get readyState(){return _(this,X)}get videoWidth(){return _(this,me)}get videoHeight(){return _(this,ye)}get src(){return this.getAttribute("src")}set src(e){this.src!=e&&this.setAttribute("src",e)}get paused(){return _(this,F)}get duration(){return _(this,J)}get autoplay(){return this.hasAttribute("autoplay")}set autoplay(e){this.autoplay!=e&&this.toggleAttribute("autoplay",!!e)}get buffered(){return _(this,ae)>0?ut(0,_(this,ae)):ut()}get controls(){return this.hasAttribute("controls")}set controls(e){this.controls!=e&&this.toggleAttribute("controls",!!e)}get currentTime(){return _(this,W)}set currentTime(e){this.currentTime!=e&&(v(this,W,e),this.loadComplete.then(()=>{var t;(t=this.api)==null||t.setCurrentTime(e).catch(()=>{})}))}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(e){this.defaultMuted!=e&&this.toggleAttribute("muted",!!e)}get loop(){return this.hasAttribute("loop")}set loop(e){this.loop!=e&&this.toggleAttribute("loop",!!e)}get muted(){return _(this,K)}set muted(e){this.muted!=e&&(v(this,K,e),this.loadComplete.then(()=>{var t;(t=this.api)==null||t.setMuted(e).catch(()=>{})}))}get playbackRate(){return _(this,ie)}set playbackRate(e){this.playbackRate!=e&&(v(this,ie,e),this.loadComplete.then(()=>{var t;(t=this.api)==null||t.setPlaybackRate(e).catch(()=>{})}))}
43get playsInline(){return this.hasAttribute("playsinline")}set playsInline(e){this.playsInline!=e&&this.toggleAttribute("playsinline",!!e)}get poster(){return this.getAttribute("poster")}set poster(e){this.poster!=e&&this.setAttribute("poster",`${e}`)}get volume(){return _(this,Z)}set volume(e){this.volume!=e&&(v(this,Z,e),this.loadComplete.then(()=>{var t;(t=this.api)==null||t.setVolume(e).catch(()=>{})}))}}ve=new WeakMap,ge=new WeakMap,Te=new WeakMap,W=new WeakMap,J=new WeakMap,K=new WeakMap,F=new WeakMap,ie=new WeakMap,ae=new WeakMap,X=new WeakMap,oe=new WeakMap,Z=new WeakMap,me=new WeakMap,ye=new WeakMap,se=new WeakMap,Ie=new WeakSet,Et=function(e){if(Object.prototype.hasOwnProperty.call(this,e)){const t=this[e];delete this[e],this[e]=t}},j(Ae,"getTemplateHTML",at),j(Ae,"shadowRootOptions",{mode:"open"}),j(Ae,"observedAttributes",["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src"]);function hr(n){let r="";for(const e in n){const t=n[e];t===""?r+=` ${We(e)}`:r+=` ${We(e)}="${We(`${t}`)}"`}return r}function We(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`")}function ot(n){return String(new URLSearchParams(fr(n)))}function fr(n){let r={};for(let e in n){let t=n[e];t===!0||t===""?r[e]=1:t===!1?r[e]=0:t!=null&&(r[e]=t)}return r}function dr(n){let r={};for(let e of n)r[e.name]=e.value;return r}class st extends Promise{constructor(r=()=>{}){let e,t;super((i,a)=>{r(i,a),e=i,t=a}),this.resolve=e,this.reject=t}}function ut(n,r){return Array.isArray(n)?Ge(n):n==null||r==null||n===0&&r===0?Ge([[0,0]]):Ge([[n,r]])}function Ge(n){return Object.defineProperties(n,{start:{value:r=>n[r][0]},end:{value:r=>n[r][1]}}),n}globalThis.customElements&&!globalThis.customElements.get("vimeo-video")&&globalThis.customElements.define("vimeo-video",Ae);const yr=n=>({playing:!1,init(){this.setIframeTitle(),this.$refs.video.addEventListener("playing",()=>{this.playing=!0}),this.$refs.video.addEventListener("pause",()=>{this.playing=!1}),this.$refs.video.addEventListener("ended",()=>{this.playing=!1})},setIframeTitle(){const r=this.$el.dataset.title;if(!r)return;const e=this.$refs.video,t=()=>{var a;const i=(a=e.shadowRoot)==null?void 0:a.querySelector("iframe");i&&i.setAttribute("title",r)};e.addEventListener("loadcomplete",t),t()}});export{yr as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.