import{_ as Ve,U as te,o as H,c as Q,e as pe,n as Le,d as re,a as x,p as ve}from"./app-CNwDlsKB.js";import"./_commonjsHelpers-Cpj98o6Y.js";/*! @vimeo/player v2.24.0 | (c) 2024 Vimeo | MIT License | https://github.com/vimeo/player.js */function me(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function ge(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?me(Object(t),!0).forEach(function(n){ne(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):me(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function L(){L=function(){return r};var r={},e=Object.prototype,t=e.hasOwnProperty,n=Object.defineProperty||function(l,s,f){l[s]=f.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function d(l,s,f){return Object.defineProperty(l,s,{value:f,enumerable:!0,configurable:!0,writable:!0}),l[s]}try{d({},"")}catch{d=function(s,f,E){return s[f]=E}}function u(l,s,f,E){var m=s&&s.prototype instanceof T?s:T,O=Object.create(m.prototype),M=new j(E||[]);return n(O,"_invoke",{value:w(l,f,M)}),O}function k(l,s,f){try{return{type:"normal",arg:l.call(s,f)}}catch(E){return{type:"throw",arg:E}}}r.wrap=u;var b={};function T(){}function P(){}function y(){}var V={};d(V,o,function(){return this});var I=Object.getPrototypeOf,A=I&&I(I(R([])));A&&A!==e&&t.call(A,o)&&(V=A);var v=y.prototype=T.prototype=Object.create(V);function h(l){["next","throw","return"].forEach(function(s){d(l,s,function(f){return this._invoke(s,f)})})}function p(l,s){function f(m,O,M,N){var F=k(l[m],l,O);if(F.type!=="throw"){var U=F.arg,X=U.value;return X&&typeof X=="object"&&t.call(X,"__await")?s.resolve(X.__await).then(function(z){f("next",z,M,N)},function(z){f("throw",z,M,N)}):s.resolve(X).then(function(z){U.value=z,M(U)},function(z){return f("throw",z,M,N)})}N(F.arg)}var E;n(this,"_invoke",{value:function(m,O){function M(){return new s(function(N,F){f(m,O,N,F)})}return E=E?E.then(M,M):M()}})}function w(l,s,f){var E="suspendedStart";return function(m,O){if(E==="executing")throw new Error("Generator is already running");if(E==="completed"){if(m==="throw")throw O;return ce()}for(f.method=m,f.arg=O;;){var M=f.delegate;if(M){var N=C(M,f);if(N){if(N===b)continue;return N}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(E==="suspendedStart")throw E="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);E="executing";var F=k(l,s,f);if(F.type==="normal"){if(E=f.done?"completed":"suspendedYield",F.arg===b)continue;return{value:F.arg,done:f.done}}F.type==="throw"&&(E="completed",f.method="throw",f.arg=F.arg)}}}function C(l,s){var f=s.method,E=l.iterator[f];if(E===void 0)return s.delegate=null,f==="throw"&&l.iterator.return&&(s.method="return",s.arg=void 0,C(l,s),s.method==="throw")||f!=="return"&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+f+"' method")),b;var m=k(E,l.iterator,s.arg);if(m.type==="throw")return s.method="throw",s.arg=m.arg,s.delegate=null,b;var O=m.arg;return O?O.done?(s[l.resultName]=O.value,s.next=l.nextLoc,s.method!=="return"&&(s.method="next",s.arg=void 0),s.delegate=null,b):O:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,b)}function S(l){var s={tryLoc:l[0]};1 in l&&(s.catchLoc=l[1]),2 in l&&(s.finallyLoc=l[2],s.afterLoc=l[3]),this.tryEntries.push(s)}function g(l){var s=l.completion||{};s.type="normal",delete s.arg,l.completion=s}function j(l){this.tryEntries=[{tryLoc:"root"}],l.forEach(S,this),this.reset(!0)}function R(l){if(l){var s=l[o];if(s)return s.call(l);if(typeof l.next=="function")return l;if(!isNaN(l.length)){var f=-1,E=function m(){for(;++f<l.length;)if(t.call(l,f))return m.value=l[f],m.done=!1,m;return m.value=void 0,m.done=!0,m};return E.next=E}}return{next:ce}}function ce(){return{value:void 0,done:!0}}return P.prototype=y,n(v,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:P,configurable:!0}),P.displayName=d(y,c,"GeneratorFunction"),r.isGeneratorFunction=function(l){var s=typeof l=="function"&&l.constructor;return!!s&&(s===P||(s.displayName||s.name)==="GeneratorFunction")},r.mark=function(l){return Object.setPrototypeOf?Object.setPrototypeOf(l,y):(l.__proto__=y,d(l,c,"GeneratorFunction")),l.prototype=Object.create(v),l},r.awrap=function(l){return{__await:l}},h(p.prototype),d(p.prototype,a,function(){return this}),r.AsyncIterator=p,r.async=function(l,s,f,E,m){m===void 0&&(m=Promise);var O=new p(u(l,s,f,E),m);return r.isGeneratorFunction(s)?O:O.next().then(function(M){return M.done?M.value:O.next()})},h(v),d(v,c,"Generator"),d(v,o,function(){return this}),d(v,"toString",function(){return"[object Generator]"}),r.keys=function(l){var s=Object(l),f=[];for(var E in s)f.push(E);return f.reverse(),function m(){for(;f.length;){var O=f.pop();if(O in s)return m.value=O,m.done=!1,m}return m.done=!0,m}},r.values=R,j.prototype={constructor:j,reset:function(l){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(g),!l)for(var s in this)s.charAt(0)==="t"&&t.call(this,s)&&!isNaN(+s.slice(1))&&(this[s]=void 0)},stop:function(){this.done=!0;var l=this.tryEntries[0].completion;if(l.type==="throw")throw l.arg;return this.rval},dispatchException:function(l){if(this.done)throw l;var s=this;function f(F,U){return O.type="throw",O.arg=l,s.next=F,U&&(s.method="next",s.arg=void 0),!!U}for(var E=this.tryEntries.length-1;E>=0;--E){var m=this.tryEntries[E],O=m.completion;if(m.tryLoc==="root")return f("end");if(m.tryLoc<=this.prev){var M=t.call(m,"catchLoc"),N=t.call(m,"finallyLoc");if(M&&N){if(this.prev<m.catchLoc)return f(m.catchLoc,!0);if(this.prev<m.finallyLoc)return f(m.finallyLoc)}else if(M){if(this.prev<m.catchLoc)return f(m.catchLoc,!0)}else{if(!N)throw new Error("try statement without catch or finally");if(this.prev<m.finallyLoc)return f(m.finallyLoc)}}}},abrupt:function(l,s){for(var f=this.tryEntries.length-1;f>=0;--f){var E=this.tryEntries[f];if(E.tryLoc<=this.prev&&t.call(E,"finallyLoc")&&this.prev<E.finallyLoc){var m=E;break}}m&&(l==="break"||l==="continue")&&m.tryLoc<=s&&s<=m.finallyLoc&&(m=null);var O=m?m.completion:{};return O.type=l,O.arg=s,m?(this.method="next",this.next=m.finallyLoc,b):this.complete(O)},complete:function(l,s){if(l.type==="throw")throw l.arg;return l.type==="break"||l.type==="continue"?this.next=l.arg:l.type==="return"?(this.rval=this.arg=l.arg,this.method="return",this.next="end"):l.type==="normal"&&s&&(this.next=s),b},finish:function(l){for(var s=this.tryEntries.length-1;s>=0;--s){var f=this.tryEntries[s];if(f.finallyLoc===l)return this.complete(f.completion,f.afterLoc),g(f),b}},catch:function(l){for(var s=this.tryEntries.length-1;s>=0;--s){var f=this.tryEntries[s];if(f.tryLoc===l){var E=f.completion;if(E.type==="throw"){var m=E.arg;g(f)}return m}}throw new Error("illegal catch attempt")},delegateYield:function(l,s,f){return this.delegate={iterator:R(l),resultName:s,nextLoc:f},this.method==="next"&&(this.arg=void 0),b}},r}function ye(r,e,t,n,i,o,a){try{var c=r[o](a),d=c.value}catch(u){t(u);return}c.done?e(d):Promise.resolve(d).then(n,i)}function B(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var o=r.apply(e,t);function a(d){ye(o,n,i,a,c,"next",d)}function c(d){ye(o,n,i,a,c,"throw",d)}a(void 0)})}}function ke(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function _e(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,Te(n.key),n)}}function Pe(r,e,t){return e&&_e(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function ne(r,e,t){return e=Te(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Ae(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&ee(r,e)}function K(r){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},K(r)}function ee(r,e){return ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ee(r,e)}function Ee(){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 ie(r,e,t){return Ee()?ie=Reflect.construct.bind():ie=function(i,o,a){var c=[null];c.push.apply(c,o);var d=Function.bind.apply(i,c),u=new d;return a&&ee(u,a.prototype),u},ie.apply(null,arguments)}function je(r){return Function.toString.call(r).indexOf("[native code]")!==-1}function fe(r){var e=typeof Map=="function"?new Map:void 0;return fe=function(n){if(n===null||!je(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return ie(n,arguments,K(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),ee(i,n)},fe(r)}function oe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Ne(r,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oe(r)}function Fe(r){var e=Ee();return function(){var n=K(r),i;if(e){var o=K(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Ne(this,i)}}function Re(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function Te(r){var e=Re(r,"string");return typeof e=="symbol"?e:String(e)}var Ce=typeof global<"u"&&{}.toString.call(global)==="[object global]";function we(r,e){return r.indexOf(e.toLowerCase())===0?r:"".concat(e.toLowerCase()).concat(r.substr(0,1).toUpperCase()).concat(r.substr(1))}function qe(r){return!!(r&&r.nodeType===1&&"nodeName"in r&&r.ownerDocument&&r.ownerDocument.defaultView)}function De(r){return!isNaN(parseFloat(r))&&isFinite(r)&&Math.floor(r)==r}function G(r){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(r)}function Oe(r){var e=/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/;return e.test(r)}function ze(r){for(var e=(r||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),t=(e&&e[1]||"").replace("player.",""),n=[".videoji.hk",".vimeo.work",".videoji.cn"],i=0,o=n;i<o.length;i++){var a=o[i];if(t.endsWith(a))return t}return"vimeo.com"}function Se(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.id,t=r.url,n=e||t;if(!n)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(De(n))return"https://vimeo.com/".concat(n);if(G(n))return n.replace("http:","https:");throw e?new TypeError("“".concat(e,"” is not a valid video id.")):new TypeError("“".concat(n,"” is not a vimeo.com url."))}var be=function(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"addEventListener",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"removeEventListener",a=typeof t=="string"?[t]:t;return a.forEach(function(c){e[i](c,n)}),{cancel:function(){return a.forEach(function(d){return e[o](d,n)})}}},We=typeof Array.prototype.indexOf<"u",$e=typeof window<"u"&&typeof window.postMessage<"u";if(!Ce&&(!We||!$e))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Be(r,e){return e={exports:{}},r(e,e.exports),e.exports}/*!
 * weakmap-polyfill v2.0.4 - ECMAScript6 WeakMap polyfill
 * https://github.com/polygonplanet/weakmap-polyfill
 * Copyright (c) 2015-2021 polygonplanet <polygon.planet.aqua@gmail.com>
 * @license MIT
 */(function(r){if(r.WeakMap)return;var e=Object.prototype.hasOwnProperty,t=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{value:1}).x===1}catch{}}(),n=function(o,a,c){t?Object.defineProperty(o,a,{configurable:!0,writable:!0,value:c}):o[a]=c};r.WeakMap=function(){function o(){if(this===void 0)throw new TypeError("Constructor WeakMap requires 'new'");if(n(this,"_id",c("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}n(o.prototype,"delete",function(u){if(a(this,"delete"),!i(u))return!1;var k=u[this._id];return k&&k[0]===u?(delete u[this._id],!0):!1}),n(o.prototype,"get",function(u){if(a(this,"get"),!!i(u)){var k=u[this._id];if(k&&k[0]===u)return k[1]}}),n(o.prototype,"has",function(u){if(a(this,"has"),!i(u))return!1;var k=u[this._id];return!!(k&&k[0]===u)}),n(o.prototype,"set",function(u,k){if(a(this,"set"),!i(u))throw new TypeError("Invalid value used as weak map key");var b=u[this._id];return b&&b[0]===u?(b[1]=k,this):(n(u,this._id,[u,k]),this)});function a(u,k){if(!i(u)||!e.call(u,"_id"))throw new TypeError(k+" method called on incompatible receiver "+typeof u)}function c(u){return u+"_"+d()+"."+d()}function d(){return Math.random().toString().substring(2)}return n(o,"_polyfill",!0),o}();function i(o){return Object(o)===o}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:J);var q=Be(function(r){/*! Native Promise Only
    v0.8.1 (c) Kyle Simpson
    MIT License: http://getify.mit-license.org
*/(function(t,n,i){n[t]=n[t]||i(),r.exports&&(r.exports=n[t])})("Promise",J,function(){var t,n,i,o=Object.prototype.toString,a=typeof setImmediate<"u"?function(h){return setImmediate(h)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(h,p,w,C){return Object.defineProperty(h,p,{value:w,writable:!0,configurable:C!==!1})}}catch{t=function(p,w,C){return p[w]=C,p}}i=function(){var h,p,w;function C(S,g){this.fn=S,this.self=g,this.next=void 0}return{add:function(g,j){w=new C(g,j),p?p.next=w:h=w,p=w,w=void 0},drain:function(){var g=h;for(h=p=n=void 0;g;)g.fn.call(g.self),g=g.next}}}();function c(v,h){i.add(v,h),n||(n=a(i.drain))}function d(v){var h,p=typeof v;return v!=null&&(p=="object"||p=="function")&&(h=v.then),typeof h=="function"?h:!1}function u(){for(var v=0;v<this.chain.length;v++)k(this,this.state===1?this.chain[v].success:this.chain[v].failure,this.chain[v]);this.chain.length=0}function k(v,h,p){var w,C;try{h===!1?p.reject(v.msg):(h===!0?w=v.msg:w=h.call(void 0,v.msg),w===p.promise?p.reject(TypeError("Promise-chain cycle")):(C=d(w))?C.call(w,p.resolve,p.reject):p.resolve(w))}catch(S){p.reject(S)}}function b(v){var h,p=this;if(!p.triggered){p.triggered=!0,p.def&&(p=p.def);try{(h=d(v))?c(function(){var w=new y(p);try{h.call(v,function(){b.apply(w,arguments)},function(){T.apply(w,arguments)})}catch(C){T.call(w,C)}}):(p.msg=v,p.state=1,p.chain.length>0&&c(u,p))}catch(w){T.call(new y(p),w)}}}function T(v){var h=this;h.triggered||(h.triggered=!0,h.def&&(h=h.def),h.msg=v,h.state=2,h.chain.length>0&&c(u,h))}function P(v,h,p,w){for(var C=0;C<h.length;C++)(function(g){v.resolve(h[g]).then(function(R){p(g,R)},w)})(C)}function y(v){this.def=v,this.triggered=!1}function V(v){this.promise=v,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function I(v){if(typeof v!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var h=new V(this);this.then=function(w,C){var S={success:typeof w=="function"?w:!0,failure:typeof C=="function"?C:!1};return S.promise=new this.constructor(function(j,R){if(typeof j!="function"||typeof R!="function")throw TypeError("Not a function");S.resolve=j,S.reject=R}),h.chain.push(S),h.state!==0&&c(u,h),S.promise},this.catch=function(w){return this.then(void 0,w)};try{v.call(void 0,function(w){b.call(h,w)},function(w){T.call(h,w)})}catch(p){T.call(h,p)}}var A=t({},"constructor",I,!1);return I.prototype=A,t(A,"__NPO__",0,!1),t(I,"resolve",function(h){var p=this;return h&&typeof h=="object"&&h.__NPO__===1?h:new p(function(C,S){if(typeof C!="function"||typeof S!="function")throw TypeError("Not a function");C(h)})}),t(I,"reject",function(h){return new this(function(w,C){if(typeof w!="function"||typeof C!="function")throw TypeError("Not a function");C(h)})}),t(I,"all",function(h){var p=this;return o.call(h)!="[object Array]"?p.reject(TypeError("Not an array")):h.length===0?p.resolve([]):new p(function(C,S){if(typeof C!="function"||typeof S!="function")throw TypeError("Not a function");var g=h.length,j=Array(g),R=0;P(p,h,function(l,s){j[l]=s,++R===g&&C(j)},S)})}),t(I,"race",function(h){var p=this;return o.call(h)!="[object Array]"?p.reject(TypeError("Not an array")):new p(function(C,S){if(typeof C!="function"||typeof S!="function")throw TypeError("Not a function");P(p,h,function(j,R){C(R)},S)})}),I})}),D=new WeakMap;function Z(r,e,t){var n=D.get(r.element)||{};e in n||(n[e]=[]),n[e].push(t),D.set(r.element,n)}function ae(r,e){var t=D.get(r.element)||{};return t[e]||[]}function ue(r,e,t){var n=D.get(r.element)||{};if(!n[e])return!0;if(!t)return n[e]=[],D.set(r.element,n),!0;var i=n[e].indexOf(t);return i!==-1&&n[e].splice(i,1),D.set(r.element,n),n[e]&&n[e].length===0}function Ge(r,e){var t=ae(r,e);if(t.length<1)return!1;var n=t.shift();return ue(r,e,n),n}function Ue(r,e){var t=D.get(r);D.set(e,t),D.delete(r)}function se(r){if(typeof r=="string")try{r=JSON.parse(r)}catch(e){return console.warn(e),{}}return r}function W(r,e,t){if(!(!r.element.contentWindow||!r.element.contentWindow.postMessage)){var n={method:e};t!==void 0&&(n.value=t);var i=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));i>=8&&i<10&&(n=JSON.stringify(n)),r.element.contentWindow.postMessage(n,r.origin)}}function He(r,e){e=se(e);var t=[],n;if(e.event){if(e.event==="error"){var i=ae(r,e.data.method);i.forEach(function(a){var c=new Error(e.data.message);c.name=e.data.name,a.reject(c),ue(r,e.data.method,a)})}t=ae(r,"event:".concat(e.event)),n=e.data}else if(e.method){var o=Ge(r,e.method);o&&(t.push(o),n=e.value)}t.forEach(function(a){try{if(typeof a=="function"){a.call(r,n);return}a.resolve(n)}catch{}})}var Qe=["airplay","audio_tracks","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","interactive_params","keyboard","loop","maxheight","maxwidth","muted","play_button_position","playsinline","portrait","progress_bar","quality_selector","responsive","speed","start_time","texttrack","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function Me(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Qe.reduce(function(t,n){var i=r.getAttribute("data-vimeo-".concat(n));return(i||i==="")&&(t[n]=i===""?1:i),t},e)}function de(r,e){var t=r.html;if(!e)throw new TypeError("An element must be provided");if(e.getAttribute("data-vimeo-initialized")!==null)return e.querySelector("iframe");var n=document.createElement("div");return n.innerHTML=t,e.appendChild(n.firstChild),e.setAttribute("data-vimeo-initialized","true"),e.querySelector("iframe")}function Ie(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;return new Promise(function(n,i){if(!G(r))throw new TypeError("“".concat(r,"” is not a vimeo.com url."));var o=ze(r),a="https://".concat(o,"/api/oembed.json?url=").concat(encodeURIComponent(r));for(var c in e)e.hasOwnProperty(c)&&(a+="&".concat(c,"=").concat(encodeURIComponent(e[c])));var d="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;d.open("GET",a,!0),d.onload=function(){if(d.status===404){i(new Error("“".concat(r,"” was not found.")));return}if(d.status===403){i(new Error("“".concat(r,"” is not embeddable.")));return}try{var u=JSON.parse(d.responseText);if(u.domain_status_code===403){de(u,t),i(new Error("“".concat(r,"” is not embeddable.")));return}n(u)}catch(k){i(k)}},d.onerror=function(){var u=d.status?" (".concat(d.status,")"):"";i(new Error("There was an error fetching the embed code from Vimeo".concat(u,".")))},d.send()})}function xe(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,e=[].slice.call(r.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),t=function(i){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(i))};e.forEach(function(n){try{if(n.getAttribute("data-vimeo-defer")!==null)return;var i=Me(n),o=Se(i);Ie(o,i,n).then(function(a){return de(a,n)}).catch(t)}catch(a){t(a)}})}function Ye(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var e=function(n){if(G(n.origin)&&!(!n.data||n.data.event!=="spacechange")){for(var i=r.querySelectorAll("iframe"),o=0;o<i.length;o++)if(i[o].contentWindow===n.source){var a=i[o].parentElement;a.style.paddingBottom="".concat(n.data.data[0].bottom,"px");break}}};window.addEventListener("message",e)}}function Je(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoSeoMetadataAppended){window.VimeoSeoMetadataAppended=!0;var e=function(n){if(G(n.origin)){var i=se(n.data);if(!(!i||i.event!=="ready"))for(var o=r.querySelectorAll("iframe"),a=0;a<o.length;a++){var c=o[a],d=c.contentWindow===n.source;if(Oe(c.src)&&d){var u=new he(c);u.callMethod("appendVideoMetadata",window.location.href)}}}};window.addEventListener("message",e)}}function Xe(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam=!0;var e=function(i){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(i))},t=function(i){if(G(i.origin)){var o=se(i.data);if(!(!o||o.event!=="ready"))for(var a=r.querySelectorAll("iframe"),c=function(){var k=a[d],b=k.contentWindow===i.source;if(Oe(k.src)&&b){var T=new he(k);T.getVideoId().then(function(P){var y=new RegExp("[?&]vimeo_t_".concat(P,"=([^&#]*)")).exec(window.location.href);if(y&&y[1]){var V=decodeURI(y[1]);T.setCurrentTime(V)}}).catch(e)}},d=0;d<a.length;d++)c()}};window.addEventListener("message",t)}}function Ze(){var r=function(){for(var n,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"]],o=0,a=i.length,c={};o<a;o++)if(n=i[o],n&&n[1]in document){for(o=0;o<n.length;o++)c[i[0][o]]=n[o];return c}return!1}(),e={fullscreenchange:r.fullscreenchange,fullscreenerror:r.fullscreenerror},t={request:function(i){return new Promise(function(o,a){var c=function u(){t.off("fullscreenchange",u),o()};t.on("fullscreenchange",c),i=i||document.documentElement;var d=i[r.requestFullscreen]();d instanceof Promise&&d.then(c).catch(a)})},exit:function(){return new Promise(function(i,o){if(!t.isFullscreen){i();return}var a=function d(){t.off("fullscreenchange",d),i()};t.on("fullscreenchange",a);var c=document[r.exitFullscreen]();c instanceof Promise&&c.then(a).catch(o)})},on:function(i,o){var a=e[i];a&&document.addEventListener(a,o)},off:function(i,o){var a=e[i];a&&document.removeEventListener(a,o)}};return Object.defineProperties(t,{isFullscreen:{get:function(){return!!document[r.fullscreenElement]}},element:{enumerable:!0,get:function(){return document[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!document[r.fullscreenEnabled]}}}),t}var Ke={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},et=function(r){Ae(t,r);var e=Fe(t);function t(n,i){var o,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=arguments.length>3?arguments[3]:void 0;return ke(this,t),o=e.call(this),ne(oe(o),"logger",void 0),ne(oe(o),"speedAdjustment",0),ne(oe(o),"adjustSpeed",function(){var d=B(L().mark(function u(k,b){var T;return L().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(o.speedAdjustment!==b){y.next=2;break}return y.abrupt("return");case 2:return y.next=4,k.getPlaybackRate();case 4:return y.t0=y.sent,y.t1=o.speedAdjustment,y.t2=y.t0-y.t1,y.t3=b,T=y.t2+y.t3,o.log("New playbackRate:  ".concat(T)),y.next=12,k.setPlaybackRate(T);case 12:o.speedAdjustment=b;case 13:case"end":return y.stop()}},u)}));return function(u,k){return d.apply(this,arguments)}}()),o.logger=c,o.init(i,n,ge(ge({},Ke),a)),o}return Pe(t,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:function(){var n=B(L().mark(function o(a,c,d){var u=this,k,b,T;return L().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,this.waitForTOReadyState(a,"open");case 2:if(d.role!=="viewer"){y.next=10;break}return y.next=5,this.updatePlayer(a,c,d);case 5:k=be(a,"change",function(){return u.updatePlayer(a,c,d)}),b=this.maintainPlaybackPosition(a,c,d),this.addEventListener("disconnect",function(){b.cancel(),k.cancel()}),y.next=14;break;case 10:return y.next=12,this.updateTimingObject(a,c);case 12:T=be(c,["seeked","play","pause","ratechange"],function(){return u.updateTimingObject(a,c)},"on","off"),this.addEventListener("disconnect",function(){return T.cancel()});case 14:case"end":return y.stop()}},o,this)}));function i(o,a,c){return n.apply(this,arguments)}return i}()},{key:"updateTimingObject",value:function(){var n=B(L().mark(function o(a,c){return L().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.t0=a,u.next=3,c.getCurrentTime();case 3:return u.t1=u.sent,u.next=6,c.getPaused();case 6:if(!u.sent){u.next=10;break}u.t2=0,u.next=13;break;case 10:return u.next=12,c.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()}},o)}));function i(o,a){return n.apply(this,arguments)}return i}()},{key:"updatePlayer",value:function(){var n=B(L().mark(function o(a,c,d){var u,k,b;return L().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(u=a.query(),k=u.position,b=u.velocity,typeof k=="number"&&c.setCurrentTime(k),typeof b!="number"){P.next=25;break}if(b!==0){P.next=11;break}return P.next=6,c.getPaused();case 6:if(P.t0=P.sent,P.t0!==!1){P.next=9;break}c.pause();case 9:P.next=25;break;case 11:if(!(b>0)){P.next=25;break}return P.next=14,c.getPaused();case 14:if(P.t1=P.sent,P.t1!==!0){P.next=19;break}return P.next=18,c.play().catch(function(){var y=B(L().mark(function V(I){return L().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(!(I.name==="NotAllowedError"&&d.autoPlayMuted)){v.next=5;break}return v.next=3,c.setMuted(!0);case 3:return v.next=5,c.play().catch(function(h){return console.error("Couldn't play the video from TimingSrcConnector. Error:",h)});case 5:case"end":return v.stop()}},V)}));return function(V){return y.apply(this,arguments)}}());case 18:this.updatePlayer(a,c,d);case 19:return P.next=21,c.getPlaybackRate();case 21:if(P.t2=P.sent,P.t3=b,P.t2===P.t3){P.next=25;break}c.setPlaybackRate(b);case 25:case"end":return P.stop()}},o,this)}));function i(o,a,c){return n.apply(this,arguments)}return i}()},{key:"maintainPlaybackPosition",value:function(i,o,a){var c=this,d=a.allowedDrift,u=a.maxAllowedDrift,k=a.minCheckInterval,b=a.maxRateAdjustment,T=a.maxTimeToCatchUp,P=Math.min(T,Math.max(k,u))*1e3,y=function(){var I=B(L().mark(function A(){var v,h,p,w,C;return L().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(g.t0=i.query().velocity===0,g.t0){g.next=6;break}return g.next=4,o.getPaused();case 4:g.t1=g.sent,g.t0=g.t1===!0;case 6:if(!g.t0){g.next=8;break}return g.abrupt("return");case 8:return g.t2=i.query().position,g.next=11,o.getCurrentTime();case 11:if(g.t3=g.sent,v=g.t2-g.t3,h=Math.abs(v),c.log("Drift: ".concat(v)),!(h>u)){g.next=22;break}return g.next=18,c.adjustSpeed(o,0);case 18:o.setCurrentTime(i.query().position),c.log("Resync by currentTime"),g.next=29;break;case 22:if(!(h>d)){g.next=29;break}return p=h/T,w=b,C=p<w?(w-p)/2:w,g.next=28,c.adjustSpeed(o,C*Math.sign(v));case 28:c.log("Resync by playbackRate");case 29:case"end":return g.stop()}},A)}));return function(){return I.apply(this,arguments)}}(),V=setInterval(function(){return y()},P);return{cancel:function(){return clearInterval(V)}}}},{key:"log",value:function(i){var o;(o=this.logger)===null||o===void 0||o.call(this,"TimingSrcConnector: ".concat(i))}},{key:"waitForTOReadyState",value:function(i,o){return new Promise(function(a){var c=function d(){i.readyState===o?a():i.addEventListener("readystatechange",d,{once:!0})};c()})}}]),t}(fe(EventTarget)),Y=new WeakMap,le=new WeakMap,_={},he=function(){function r(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(ke(this,r),window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),typeof document<"u"&&typeof e=="string"&&(e=document.getElementById(e)),!qe(e))throw new TypeError("You must pass either a valid element or a valid id.");if(e.nodeName!=="IFRAME"){var i=e.querySelector("iframe");i&&(e=i)}if(e.nodeName==="IFRAME"&&!G(e.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(Y.has(e))return Y.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";var o=new q(function(c,d){if(t._onMessage=function(b){if(!(!G(b.origin)||t.element.contentWindow!==b.source)){t.origin==="*"&&(t.origin=b.origin);var T=se(b.data),P=T&&T.event==="error",y=P&&T.data&&T.data.method==="ready";if(y){var V=new Error(T.data.message);V.name=T.data.name,d(V);return}var I=T&&T.event==="ready",A=T&&T.method==="ping";if(I||A){t.element.setAttribute("data-ready","true"),c();return}He(t,T)}},t._window.addEventListener("message",t._onMessage),t.element.nodeName!=="IFRAME"){var u=Me(e,n),k=Se(u);Ie(k,u,e).then(function(b){var T=de(b,e);return t.element=T,t._originalElement=e,Ue(e,T),Y.set(t.element,t),b}).catch(d)}});if(le.set(this,o),Y.set(this.element,this),this.element.nodeName==="IFRAME"&&W(this,"ping"),_.isEnabled){var a=function(){return _.exit()};this.fullscreenchangeHandler=function(){_.isFullscreen?Z(t,"event:exitFullscreen",a):ue(t,"event:exitFullscreen",a),t.ready().then(function(){W(t,"fullscreenchange",_.isFullscreen)})},_.on("fullscreenchange",this.fullscreenchangeHandler)}return this}return Pe(r,[{key:"callMethod",value:function(t){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new q(function(o,a){return n.ready().then(function(){Z(n,t,{resolve:o,reject:a}),W(n,t,i)}).catch(a)})}},{key:"get",value:function(t){var n=this;return new q(function(i,o){return t=we(t,"get"),n.ready().then(function(){Z(n,t,{resolve:i,reject:o}),W(n,t)}).catch(o)})}},{key:"set",value:function(t,n){var i=this;return new q(function(o,a){if(t=we(t,"set"),n==null)throw new TypeError("There must be a value to set.");return i.ready().then(function(){Z(i,t,{resolve:o,reject:a}),W(i,t,n)}).catch(a)})}},{key:"on",value:function(t,n){if(!t)throw new TypeError("You must pass an event name.");if(!n)throw new TypeError("You must pass a callback function.");if(typeof n!="function")throw new TypeError("The callback must be a function.");var i=ae(this,"event:".concat(t));i.length===0&&this.callMethod("addEventListener",t).catch(function(){}),Z(this,"event:".concat(t),n)}},{key:"off",value:function(t,n){if(!t)throw new TypeError("You must pass an event name.");if(n&&typeof n!="function")throw new TypeError("The callback must be a function.");var i=ue(this,"event:".concat(t),n);i&&this.callMethod("removeEventListener",t).catch(function(o){})}},{key:"loadVideo",value:function(t){return this.callMethod("loadVideo",t)}},{key:"ready",value:function(){var t=le.get(this)||new q(function(n,i){i(new Error("Unknown player. Probably unloaded."))});return q.resolve(t)}},{key:"addCuePoint",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.callMethod("addCuePoint",{time:t,data:n})}},{key:"removeCuePoint",value:function(t){return this.callMethod("removeCuePoint",t)}},{key:"enableTextTrack",value:function(t,n){if(!t)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:t,kind:n})}},{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?q.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 t=this;return new q(function(n){if(le.delete(t),Y.delete(t.element),t._originalElement&&(Y.delete(t._originalElement),t._originalElement.removeAttribute("data-vimeo-initialized")),t.element&&t.element.nodeName==="IFRAME"&&t.element.parentNode&&(t.element.parentNode.parentNode&&t._originalElement&&t._originalElement!==t.element.parentNode?t.element.parentNode.parentNode.removeChild(t.element.parentNode):t.element.parentNode.removeChild(t.element)),t.element&&t.element.nodeName==="DIV"&&t.element.parentNode){t.element.removeAttribute("data-vimeo-initialized");var i=t.element.querySelector("iframe");i&&i.parentNode&&(i.parentNode.parentNode&&t._originalElement&&t._originalElement!==i.parentNode?i.parentNode.parentNode.removeChild(i.parentNode):i.parentNode.removeChild(i))}t._window.removeEventListener("message",t._onMessage),_.isEnabled&&_.off("fullscreenchange",t.fullscreenchangeHandler),n()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(t){return this.set("autopause",t)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(t){return this.set("cameraProps",t)}},{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 q.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(t){return this.set("color",t)}},{key:"setColors",value:function(t){if(!Array.isArray(t))return new q(function(o,a){return a(new TypeError("Argument must be an array."))});var n=new q(function(o){return o(null)}),i=[t[0]?this.set("colorOne",t[0]):n,t[1]?this.set("colorTwo",t[1]):n,t[2]?this.set("colorThree",t[2]):n,t[3]?this.set("colorFour",t[3]):n];return q.all(i)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(t){return this.set("currentTime",t)}},{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(t){return this.set("loop",t)}},{key:"setMuted",value:function(t){return this.set("muted",t)}},{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(t){return this.set("playbackRate",t)}},{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(t){return this.set("quality",t)}},{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(t){return this.set("volume",t)}},{key:"setTimingSrc",value:function(){var e=B(L().mark(function n(i,o){var a=this,c;return L().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 c=new et(this,i,o),W(this,"notifyTimingObjectConnect"),c.addEventListener("disconnect",function(){return W(a,"notifyTimingObjectDisconnect")}),u.abrupt("return",c);case 8:case"end":return u.stop()}},n,this)}));function t(n,i){return e.apply(this,arguments)}return t}()}]),r}();Ce||(_=Ze(),xe(),Ye(),Je(),Xe());let tt=0;const rt={props:["autoplay","background","backgroundColor","hideCookieInfo","quality","startOnScroll","thumbnail","useTwoClick","videoId","loop"],data:()=>({videoIsVisible:!0,isInitialized:!1,uniqueId:"vimeo-video-"+tt++,containerId:Math.random().toString(36).substring(5),sectionBackgroundColor:"",vimeoOptions:{id:0,background:!1,autoplay:!1,loop:!1,muted:!1,dnt:!1},vimeoPlayer:void 0,cookieAllowed:void 0,resizeListener:void 0,userCentricsLoaded:!1,videoIsEnded:!1,milestones:{"0.25":!1,"0.50":!1,"0.75":!1,"1.00":!1}}),emits:["size"],created(){this.updateServiceAllowed(),te.addConsentListener(this.updateServiceAllowed),window.dataLayer=window.dataLayer||[]},methods:{async updateServiceAllowed(){const r=await te.isServiceEnabled("Vimeo");r!==this.cookieAllowed&&(this.cookieAllowed=r,await this.mountElement()),this.userCentricsLoaded=!0},async mountElement(){this.cookieAllowed?(this.resetVideoWrapper(),await this.waitForContainer(),this.isVisible()&&await this.init(),this.addResizeListener()):this.hideCookieInfo||this.adjustVideoWrapper(),this.cookieAllowed||(this.vimeoPlayer&&this.vimeoPlayer.destroy(),this.$emit("size",{width:16,height:9}))},async init(){this.isInitialized=!0,this.vimeoOptions.id=this.videoId,this.autoplay==="1"&&(this.vimeoOptions.autoplay=!0),this.background==="1"&&(this.vimeoOptions.background=!0,this.vimeoOptions.autoplay=!0,this.vimeoOptions.muted=!0,this.vimeoOptions.loop=this.loop==="1"),["720p","1080p"].includes(this.quality)&&(this.vimeoOptions.quality=this.quality),this.startOnScroll==="1"?(this.vimeoOptions.autoplay=!0,this.startVideoOnScroll(),window.addEventListener("scroll",this.startVideoOnScroll)):this.useTwoClick!=="1"&&await this.startVideo()},async startVideo(){if(!this.cookieAllowed)return;await this.waitForContainer();const r=new he("vimeo-container_"+this.containerId,this.vimeoOptions),e=await r.getVideoTitle();this.vimeoPlayer=r;try{await r.ready(),Promise.all([r.getVideoWidth(),r.getVideoHeight()]).then(t=>{this.$emit("size",{width:t[0],height:t[1]})}),r.on("play",t=>{this.videoIsEnded=!1,this.windowDataLayerPush("play",Math.round(t.percent*100),e,this.vimeoOptions.id)}),r.on("pause",t=>{!this.videoIsEnded&&t.percent<.99&&this.windowDataLayerPush("pause",Math.round(t.percent*100),e,this.vimeoOptions.id)}),r.on("ended",t=>{this.videoIsEnded=!0,this.windowDataLayerPush("ended",Math.round(t.percent*100),e,this.vimeoOptions.id)}),r.on("timeupdate",t=>{[.25,.5,.75,1].forEach(i=>{t.percent>=i&&!this.milestones[i.toString()]&&(this.milestones[i.toString()]=!0,this.windowDataLayerPush("progress",i*100,e,this.vimeoOptions.id))})})}catch(t){console.error(t),typeof this.backgroundColor=="string"&&(this.sectionBackgroundColor="elementSectionBackgroundColor_var"+this.backgroundColor,r.destroy())}},windowDataLayerPush(r,e,t,n){window.dataLayer.push({event:"vimeo_video",video_action:r,video_percent:e,video_title:t,video_id:n})},getThumbnail(){return this.thumbnail!==""?{backgroundImage:'url("'+this.thumbnail+'")'}:{}},async acceptCookiesForVimeo(){await te.acceptServiceByName("Vimeo")||await te.openConsent()},async waitForContainer(){for(;document.getElementById("vimeo-container_"+this.containerId)===null;)await new Promise(r=>setTimeout(r,50))},addResizeListener(){this.resizeListener!==void 0&&window.removeEventListener("resize",this.resizeListener),this.resizeListener=async()=>{let r=this.isVisible();r&&!this.isInitialized&&this.cookieAllowed?await this.init():!r&&this.isInitialized&&(this.isInitialized=!1)},window.addEventListener("resize",this.resizeListener)},resetVideoWrapper(){$(this.$refs.vimeocookie).parent().parent(".video-wrapper").css({paddingBottom:"56.25%",height:0})},adjustVideoWrapper(){$(this.$refs.vimeocookie).parent().parent(".video-wrapper").css({paddingBottom:0,height:"auto"})},isVisible(){return this.videoIsVisible=$("#"+this.uniqueId).is(":visible"),this.videoIsVisible},startVideoOnScroll(){let r=this.$el.getBoundingClientRect(),e=r.top,t=r.bottom;e>=0&&t<=window.innerHeight&&(window.removeEventListener("scroll",this.startVideoOnScroll),this.startVideo())}}},nt=["id"],it={key:0},ot={key:0,class:"vimeo-button_start"},at=["id"],ut={key:1,class:"vimeo_cookie",ref:"vimeocookie"};function st(r,e,t,n,i,o){return H(),Q("div",{id:r.uniqueId},[r.videoIsVisible?(H(),Q("div",it,[r.cookieAllowed||t.hideCookieInfo?(H(),Q("div",{key:0,class:pe(r.sectionBackgroundColor)},[t.useTwoClick==="1"||!r.cookieAllowed?(H(),Q("div",{key:0,class:pe(["vimeo-thumbnail",{"cursor-pointer":r.cookieAllowed}]),style:Le(o.getThumbnail()),onClick:e[0]||(e[0]=(...a)=>o.startVideo&&o.startVideo(...a))},[r.cookieAllowed?(H(),Q("div",ot)):re("",!0)],6)):re("",!0),x("div",{id:"vimeo-container_"+r.containerId,ref:"vimeoContainer"},null,8,at)],2)):r.userCentricsLoaded?(H(),Q("div",ut,[e[2]||(e[2]=x("p",{class:"h2"},"Dieser Service nutzt „funktionale Cookies“",-1)),e[3]||(e[3]=x("p",null," Um Ihnen diesen Service anbieten zu können, setzen wir auf die professionelle Technologie von Vimeo. Dafür werden Cookies gesetzt. Bitte akzeptieren Sie funktionale Cookies, um das Video sehen zu können. (Alle anderen Cookie-Einstellungen bleiben davon unberührt.) ",-1)),x("div",{onClick:e[1]||(e[1]=(...a)=>o.acceptCookiesForVimeo&&o.acceptCookiesForVimeo(...a)),class:"vimeo_cookie_button"},"Cookies akzeptieren und fortfahren"),e[4]||(e[4]=x("p",null,[ve(" Alternativ finden Sie viele unserer Videos auch in unserer "),x("a",{href:"https://vimeo.com/agendasoftware",title:"Zur Vimeo-Videothek",target:"_blank"},"Vimeo-Videothek"),ve(". ")],-1))],512)):re("",!0)])):re("",!0)],8,nt)}const ft=Ve(rt,[["render",st]]);export{ft as default};