PageSourceSearch

https://www.hy-vee.com/pages/_next/static/chunks/reactPlayerVimeo.45d5eeece3f8c0c1.js

js hy-vee.com collected 2026-09-24 07:56:58 UTC 51,767 bytes, 20 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[743],{10857:function(e,t,n){function r(e){return class extends e{_playedRanges=[];_currentPlayedRange=null;_RANGE_EPSILON=.5;_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(e={}){this._seeking=!1;let{time:t}=e,n="number"==typeof t?t:this.currentTime;this._currentPlayedRange||(this._currentPlayedRange={start:n,end:n})}onSeeking(){this._seeking=!0,this._commitCurrentRange()}onSeeked(e={}){this._seeking=!1;let{time:t}=e,n="number"==typeof t?t:this.currentTime;this._currentPlayedRange={start:n,end:n}}onPlaybackStop(e={}){let{time:t}=e,n="number"==typeof t?t:this.currentTime;this._commitCurrentRange(n)}_commitCurrentRange(e){if(!this._currentPlayedRange)return;"number"==typeof e&&(this._currentPlayedRange.end=e);let{start:t,end:n}=this._currentPlayedRange;this._currentPlayedRange=null,this.addPlayedRange(t,n)}addPlayedRange(e,t){if(e>=t)return;let n=this._RANGE_EPSILON,r=[...this._playedRanges,{start:e,end:t}];r.sort((e,t)=>e.start-t.start);let i=[];for(let e of r){if(!i.length){i.push({...e});continue}let t=i[i.length-1];e.start<=t.end+n?(t.start=Math.min(t.start,e.start),t.end=Math.max(t.end,e.end)):i.push({...e})}this._playedRanges=i}get played(){let e=this.currentTime;return(this.paused||this._currentPlayedRange||"number"!=typeof e||(this._currentPlayedRange={start:e,end:e}),this._currentPlayedRange&&"number"==typeof e&&(e>this._currentPlayedRange.end&&(this._currentPlayedRange.end=e),this.addPlayedRange(this._currentPlayedRange.start,this._currentPlayedRange.end)),this._playedRanges.length)?i(this._playedRanges.map(e=>[e.start,e.end])):i([[0,0]])}}}function i(e){return Object.defineProperties(e,{start:{value:t=>e[t][0]},end:{value:t=>e[t][1]}}),e}n.d(t,{W:function(){return r}})},23750:function(e,t,n){n.r(t),n.d(t,{default:function(){return ef}});var r,i,o,a,u,s,c,l=n(27378),h=n(10857);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(){p=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var o,a,u=Object.create((t&&t.prototype instanceof d?t:d).prototype);return r(u,"_invoke",{value:(o=new T(i||[]),a="suspendedStart",function(t,r){if("executing"===a)throw Error("Generator is already running");if("completed"===a){if("throw"===t)throw r;return _()}for(o.method=t,o.arg=r;;){var i=o.delegate;if(i){var u=function e(t,n){var r=n.method,i=t.iterator[r];if(void 0===i)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=void 0,e(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),h;var o=l(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,h):a:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,h)}(i,o);if(u){if(u===h)continue;return u}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===a)throw a="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);a="executing";var s=l(e,n,o);if("normal"===s.type){if(a=o.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:o.done}}"throw"===s.type&&(a="completed",o.method="throw",o.arg=s.arg)}})}),u}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var h={};function d(){}function f(){}function v(){}var y={};s(y,o,function(){return this});var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&n.call(g,o)&&(y=g);var w=v.prototype=d.prototype=Object.create(y);function b(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function k(e,t){var i;r(this,"_invoke",{value:function(r,o){function a(){return new t(function(i,a){!function r(i,o,a,u){var s=l(e[i],e,o);if("throw"!==s.type){var c=s.arg,h=c.value;return h&&"object"==typeof h&&n.call(h,"__await")?t.resolve(h.__await).then(function(e){r("next",e,a,u)},function(e){r("throw",e,a,u)}):t.resolve(h).then(function(e){c.value=e,a(c)},function(e){return r("throw",e,a,u)})}u(s.arg)}(r,o,i,a)})}return i=i?i.then(a,a):a()}})}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);
1if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:_}}function _(){return{value:void 0,done:!0}}return f.prototype=v,r(w,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:f,configurable:!0}),f.displayName=s(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},b(k.prototype),s(k.prototype,a,function(){return this}),e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},b(w),s(w,u,"Generator"),s(w,o,function(){return this}),s(w,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=x,T.prototype={constructor:T,reset:function(e){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),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;P(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}function v(e,t,n,r,i,o,a){try{var u=e[o](a),s=u.value}catch(e){n(e);return}u.done?t(s):Promise.resolve(s).then(r,i)}function y(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){v(o,r,i,a,u,"next",e)}function u(e){v(o,r,i,a,u,"throw",e)}a(void 0)})}}function m(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,j(r.key),r)}}function w(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function b(e,t,n){return(t=j(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}
1function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function E(e,t){return(E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function P(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function T(e,t,n){return(T=P()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&E(i,n.prototype),i}).apply(null,arguments)}function x(e){var t="function"==typeof Map?new Map:void 0;return(x=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return T(e,arguments,k(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),E(n,e)})(e)}function _(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var R=void 0!==n.g&&"[object global]"===({}).toString.call(n.g);function O(e,t){return 0===e.indexOf(t.toLowerCase())?e:"".concat(t.toLowerCase()).concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))}function C(e){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(e)}function S(e){return/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/.test(e)}function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.url,r=t||n;if(!r)throw 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(!isNaN(parseFloat(r))&&isFinite(r)&&Math.floor(r)==r)return"https://vimeo.com/".concat(r);if(C(r))return r.replace("http:","https:");if(t)throw TypeError("“".concat(t,"” is not a valid video id."));throw TypeError("“".concat(r,"” is not a vimeo.com url."))}var N=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"addEventListener",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"removeEventListener",o="string"==typeof t?[t]:t;return o.forEach(function(t){e[r](t,n)}),{cancel:function(){return o.forEach(function(t){return e[i](t,n)})}}},M=void 0!==Array.prototype.indexOf,A="undefined"!=typeof window&&void 0!==window.postMessage;if(!R&&(!M||!A))throw Error("Sorry, the Vimeo Player API is not available in this browser.");var F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};!function(e){if(!e.WeakMap){var t=Object.prototype.hasOwnProperty,n=Object.defineProperty&&function(){try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(e){}}(),r=function(e,t,r){n?Object.defineProperty(e,t,{configurable:!0,writable:!0,value:r}):e[t]=r};e.WeakMap=function(){function e(){if(void 0===this)throw TypeError("Constructor WeakMap requires 'new'");if(r(this,"_id","_WeakMap_"+o()+"."+o()),arguments.length>0)throw TypeError("WeakMap iterable is not supported")}function n(e,n){if(!i(e)||!t.call(e,"_id"))throw TypeError(n+" method called on incompatible receiver "+typeof e)}function o(){return Math.random().toString().substring(2)}return r(e.prototype,"delete",function(e){if(n(this,"delete"),!i(e))return!1;var t=e[this._id];return!!t&&t[0]===e&&(delete e[this._id],!0)}),r(e.prototype,"get",function(e){if(n(this,"get"),i(e)){var t=e[this._id];if(t&&t[0]===e)return t[1]}}),r(e.prototype,"has",function(e){if(n(this,"has"),!i(e))return!1;var t=e[this._id];return!!t&&t[0]===e}),r(e.prototype,"set",function(e,t){if(n(this,"set"),!i(e))throw TypeError("Invalid value used as weak map key");var o=e[this._id];return o&&o[0]===e?o[1]=t:r(e,this._id,[e,t]),this}),r(e,"_polyfill",!0),e}()}function i(e){return Object(e)===e}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:F);var q=(r=a={exports:{}},a.exports,i="Promise",o=function(){var e,t,n,r=Object.prototype.toString,i="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function o(e,r){n.add(e,r),t||(t=i(n.drain))}function a(e){var t,n=typeof e;return null!=e&&("object"==n||"function"==n)&&(t=e.then),"function"==typeof t&&t}function u(){for(var e=0;e<this.chain.length;e++)(function(e,t,n){var r,i;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(i=a(r))?i.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}})(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function s(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=a(e))?o(function(){var r=new h(n);try{t.call(e,function(){s.apply(r,arguments)},function(){c.apply(r,arguments)})}catch(e){c.call(r,e)}}):(n.msg=e,n.state=1,n.chain.length>
10&&o(u,n))}catch(e){c.call(new h(n),e)}}}function c(e){var t=this;!t.triggered&&(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&o(u,t))}function l(e,t,n,r){for(var i=0;i<t.length;i++)!function(i){e.resolve(t[i]).then(function(e){n(i,e)},r)}(i)}function h(e){this.def=e,this.triggered=!1}function d(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function f(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new d(this);this.then=function(e,n){var r={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return r.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");r.resolve=e,r.reject=t}),t.chain.push(r),0!==t.state&&o(u,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){s.call(t,e)},function(e){c.call(t,e)})}catch(e){c.call(t,e)}}n=function(){var e,n,r;function i(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,o){r=new i(t,o),n?n.next=r:e=r,n=r,r=void 0},drain:function(){var r=e;for(e=n=t=void 0;r;)r.fn.call(r.self),r=r.next}}}();var p=e({},"constructor",f,!1);return f.prototype=p,e(p,"__NPO__",0,!1),e(f,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)})}),e(f,"reject",function(e){return new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)})}),e(f,"all",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var i=e.length,o=Array(i),a=0;l(t,e,function(e,t){o[e]=t,++a===i&&n(o)},r)})}),e(f,"race",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");l(t,e,function(e,t){n(t)},r)})}),f},F[i]=F[i]||o(),r.exports&&(r.exports=F[i]),a.exports),I=new WeakMap;function W(e,t,n){var r=I.get(e.element)||{};t in r||(r[t]=[]),r[t].push(n),I.set(e.element,r)}function V(e,t){return(I.get(e.element)||{})[t]||[]}function D(e,t,n){var r=I.get(e.element)||{};if(!r[t])return!0;if(!n)return r[t]=[],I.set(e.element,r),!0;var i=r[t].indexOf(n);return -1!==i&&r[t].splice(i,1),I.set(e.element,r),r[t]&&0===r[t].length}function H(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function z(e,t,n){if(e.element.contentWindow&&e.element.contentWindow.postMessage){var r={method:t};void 0!==n&&(r.value=n);var i=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));i>=8&&i<10&&(r=JSON.stringify(r)),e.element.contentWindow.postMessage(r,e.origin)}}var $=["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 U(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return $.reduce(function(t,n){var r=e.getAttribute("data-vimeo-".concat(n));return(r||""===r)&&(t[n]=""===r?1:r),t},t)}function G(e,t){var n=e.html;if(!t)throw TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");var r=document.createElement("div");return r.innerHTML=n,t.appendChild(r.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function Y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise(function(r,i){if(!C(e))throw TypeError("“".concat(e,"” is not a vimeo.com url."));var o=function(e){for(var t=(e||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),n=(t&&t[1]||"").replace("player.",""),r=0,i=[".videoji.hk",".vimeo.work",".videoji.cn"];r<i.length;r++){var o=i[r];if(n.endsWith(o))return n}return"vimeo.com"}(e),a="https://".concat(o,"/api/oembed.json?url=").concat(encodeURIComponent(e));for(var u in t)t.hasOwnProperty(u)&&(a+="&".concat(u,"=").concat(encodeURIComponent(t[u])));var s="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;s.open("GET",a,!0),s.onload=function(){if(404===s.status){i(Error("“".concat(e,"” was not found.")));return}if(403===s.status){i(Error("“".concat(e,"” is not embeddable.")));return}try{var t=JSON.parse(s.responseText);if(403===t.domain_status_code){G(t,n),i(Error("“".concat(e,"” is not embeddable.")));return}r(t)}catch(e){i(e)}},s.onerror=function(){var e=s.status?" (".concat(s.status,")"):"";i(Error("There was an error fetching the embed code from Vimeo".concat(e,".")))},s.send()})}var J={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},Q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(a,e);var t,n,r,i,o=(t=P(),function(){var e,n=k(a);return e=t?Reflect.construct(n,arguments,k(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return _(e)}(this,e)});function a(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;return m(this,a),b(_(r=o.call(this)),"logger",void 0),b(_(r),"speedAdjustment",0),b(_(r),"adjustSpeed",(n=y(p().mark(function e(t,n){var i;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r.speedAdjustment!==n){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.getPlaybackRate();case 4:return e.t0=e.sent,e.t1=r.speedAdjustment,e.t2=e.t0-e.t1,e.t3=n,i=e.t2+e.t3,r.log("New playbackRate:  ".concat(i)),e.next=12,t.setPlaybackRate(i);case 12:r.speedAdjustment=n;case 13:case"end":return e.stop()}},e)})),function(e,t){return n.apply(this,arguments)})),r.logger=u,r.init(t,e,f(f({},J),i)),r}return w(a,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:(n=y(p().mark(function e(t,n,r){var i,o,a,u=this;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.waitForTOReadyState(t,"open");case 2:if("viewer"!==r.role){e.next=10;break}return e.next=5,this.updatePlayer(t,n,r);case 5:i=N(t,"change",function(){return u.updatePlayer(t,n,r)}),o=this.maintainPlaybackPosition(t,n,r),this.addEventListener("disconnect",function(){o.cancel(),i.cancel()}),e.next=14;break;case 10:return e.next=12,this.updateTimingObject(t,n);case 12:a=N(n,["seeked","play","pause","ratechange"],function(){return u.updateTimingObject(t,n)},"on","off"),this.addEventListener("disconnect",function(){return a.cancel()});case 14:case"end":return e.stop()}},e,this)})),function(e,t,r){return n.apply(this,arguments)})},{key:"updateTimingObject",value:(r=y(p().mark(function e(t,n){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=t,e.next=3,n.getCurrentTime();case 3:return e.t1=e.sent,e.next=6,n.getPaused();case 6:if(!e.sent){e.next=10;break}e.t2=0,e.next=13;break;case 10:return e.next=12,n.getPlaybackRate();case 12:e.t2=e.sent;case 13:e.t3=e.t2,e.t4={position:e.t1,velocity:e.t3},e.t0.update.call(e.t0,e.t4);case 16:case"end":return e.stop()}},e)})),function(e,t){return r.apply(this,arguments)})},{key:"updatePlayer",value:(i=y(p().mark(function e(t,n,r){var i,o,a;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(i=t.query()).position,a=i.velocity,"number"==typeof o&&n.setCurrentTime(o),"number"!=typeof a){e.next=25;break}if(0!==a){e.next=11;break}return e.next=6,n.getPaused();case 6:if(e.t0=e.sent,!1!==e.t0){e.next=9;break}n.pause();case 9:e.next=25;break;case 11:if(!(a>0)){e.next=25;break}return e.next=14,n.getPaused();case 14:if(e.t1=e.sent,!0!==e.t1){e.next=19;break}return e.next=18,n.play().catch(function(){var e=y(p().mark(function e(t){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!("NotAllowedError"===t.name&&r.autoPlayMuted)){e.
1next=5;break}return e.next=3,n.setMuted(!0);case 3:return e.next=5,n.play().catch(function(e){return console.error("Couldn't play the video from TimingSrcConnector. Error:",e)});case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 18:this.updatePlayer(t,n,r);case 19:return e.next=21,n.getPlaybackRate();case 21:if(e.t2=e.sent,e.t3=a,!(e.t2!==e.t3)){e.next=25;break}n.setPlaybackRate(a);case 25:case"end":return e.stop()}},e,this)})),function(e,t,n){return i.apply(this,arguments)})},{key:"maintainPlaybackPosition",value:function(e,t,n){var r,i=this,o=n.allowedDrift,a=n.maxAllowedDrift,u=n.minCheckInterval,s=n.maxRateAdjustment,c=n.maxTimeToCatchUp,l=(r=y(p().mark(function n(){var r,u,l,h,d;return p().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(n.t0=0===e.query().velocity,n.t0){n.next=6;break}return n.next=4,t.getPaused();case 4:n.t1=n.sent,n.t0=!0===n.t1;case 6:if(!n.t0){n.next=8;break}return n.abrupt("return");case 8:return n.t2=e.query().position,n.next=11,t.getCurrentTime();case 11:if(n.t3=n.sent,u=Math.abs(r=n.t2-n.t3),i.log("Drift: ".concat(r)),!(u>a)){n.next=22;break}return n.next=18,i.adjustSpeed(t,0);case 18:t.setCurrentTime(e.query().position),i.log("Resync by currentTime"),n.next=29;break;case 22:if(!(u>o)){n.next=29;break}return d=(l=u/c)<(h=s)?(h-l)/2:h,n.next=28,i.adjustSpeed(t,d*Math.sign(r));case 28:i.log("Resync by playbackRate");case 29:case"end":return n.stop()}},n)})),function(){return r.apply(this,arguments)}),h=setInterval(function(){return l()},1e3*Math.min(c,Math.max(u,a)));return{cancel:function(){return clearInterval(h)}}}},{key:"log",value:function(e){var t;null===(t=this.logger)||void 0===t||t.call(this,"TimingSrcConnector: ".concat(e))}},{key:"waitForTOReadyState",value:function(e,t){return new Promise(function(n){!function r(){e.readyState===t?n():e.addEventListener("readystatechange",r,{once:!0})}()})}}]),a}(x(EventTarget)),B=new WeakMap,X=new WeakMap,Z={},K=function(){var e;function t(e){var n,r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(m(this,t),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]),"undefined"!=typeof document&&"string"==typeof e&&(e=document.getElementById(e)),!((n=e)&&1===n.nodeType&&"nodeName"in n&&n.ownerDocument&&n.ownerDocument.defaultView))throw TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==e.nodeName){var o=e.querySelector("iframe");o&&(e=o)}if("IFRAME"===e.nodeName&&!C(e.getAttribute("src")||""))throw Error("The player element passed isn’t a Vimeo embed.");if(B.has(e))return B.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";var a=new q(function(t,n){if(r._onMessage=function(e){if(C(e.origin)&&r.element.contentWindow===e.source){"*"===r.origin&&(r.origin=e.origin);var i=H(e.data);if(i&&"error"===i.event&&i.data&&"ready"===i.data.method){var o=Error(i.data.message);o.name=i.data.name,n(o);return}var a=i&&"ready"===i.event,u=i&&"ping"===i.method;if(a||u){r.element.setAttribute("data-ready","true"),t();return}!function(e,t){t=H(t);var n,r=[];if(t.event)"error"===t.event&&V(e,t.data.method).forEach(function(n){var r=Error(t.data.message);r.name=t.data.name,n.reject(r),D(e,t.data.method,n)}),r=V(e,"event:".concat(t.event)),n=t.data;else if(t.method){var i=function(e,t){var n=V(e,t);if(n.length<1)return!1;var r=n.shift();return D(e,t,r),r}(e,t.method);i&&(r.push(i),n=t.value)}r.forEach(function(t){try{if("function"==typeof t){t.call(e,n);return}t.resolve(n)}catch(e){}})}(r,i)}},r._window.addEventListener("message",r._onMessage),"IFRAME"!==r.element.nodeName){var o=U(e,i);Y(L(o),o,e).then(function(t){var n,i,o=G(t,e);return r.element=o,r._originalElement=e,n=e,i=I.get(n),I.set(o,i),I.delete(n),B.set(r.element,r),t}).catch(n)}});if(X.set(this,a),B.set(this.element,this),"IFRAME"===this.element.nodeName&&z(this,"ping"),Z.isEnabled){var u=function(){return Z.exit()};this.fullscreenchangeHandler=function(){Z.isFullscreen?W(r,"event:exitFullscreen",u):D(r,"event:exitFullscreen",u),r.ready().then(function(){z(r,"fullscreenchange",Z.isFullscreen)})},Z.on("fullscreenchange",this.fullscreenchangeHandler)}return this}return w(t,[{key:"callMethod",value:function(e){for(var t=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];
1if(null==e)throw TypeError("You must pass a method name.");return new q(function(n,i){return t.ready().then(function(){W(t,e,{resolve:n,reject:i}),z(t,e,r)}).catch(i)})}},{key:"get",value:function(e){var t=this;return new q(function(n,r){return e=O(e,"get"),t.ready().then(function(){W(t,e,{resolve:n,reject:r}),z(t,e)}).catch(r)})}},{key:"set",value:function(e,t){var n=this;return new q(function(r,i){if(e=O(e,"set"),null==t)throw TypeError("There must be a value to set.");return n.ready().then(function(){W(n,e,{resolve:r,reject:i}),z(n,e,t)}).catch(i)})}},{key:"on",value:function(e,t){if(!e)throw TypeError("You must pass an event name.");if(!t)throw TypeError("You must pass a callback function.");if("function"!=typeof t)throw TypeError("The callback must be a function.");0===V(this,"event:".concat(e)).length&&this.callMethod("addEventListener",e).catch(function(){}),W(this,"event:".concat(e),t)}},{key:"off",value:function(e,t){if(!e)throw TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw TypeError("The callback must be a function.");D(this,"event:".concat(e),t)&&this.callMethod("removeEventListener",e).catch(function(e){})}},{key:"loadVideo",value:function(e){return this.callMethod("loadVideo",e)}},{key:"ready",value:function(){var e=X.get(this)||new q(function(e,t){t(Error("Unknown player. Probably unloaded."))});return q.resolve(e)}},{key:"addCuePoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?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 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 Z.isEnabled?Z.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return Z.isEnabled?Z.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return Z.isEnabled?q.resolve(Z.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 q(function(t){if(X.delete(e),B.delete(e.element),e._originalElement&&(B.delete(e._originalElement),e._originalElement.removeAttribute("data-vimeo-initialized")),e.element&&"IFRAME"===e.element.nodeName&&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&&"DIV"===e.element.nodeName&&e.element.parentNode){e.element.removeAttribute("data-vimeo-initialized");var n=e.element.querySelector("iframe");n&&n.parentNode&&(n.parentNode.parentNode&&e._originalElement&&e._originalElement!==n.parentNode?n.parentNode.parentNode.removeChild(n.parentNode):n.parentNode.removeChild(n))}e._window.removeEventListener("message",e._onMessage),Z.isEnabled&&Z.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 q.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 q(function(e,t){return t(TypeError("Argument must be an array."))});var t=new q(function(e){return e(null)}),n=[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 q.all(n)}},{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)}
1},{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:(e=y(p().mark(function e(t,n){var r,i=this;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw TypeError("A Timing Object must be provided.");case 2:return e.next=4,this.ready();case 4:return r=new Q(this,t,n),z(this,"notifyTimingObjectConnect"),r.addEventListener("disconnect",function(){return z(i,"notifyTimingObjectDisconnect")}),e.abrupt("return",r);case 8:case"end":return e.stop()}},e,this)})),function(t,n){return e.apply(this,arguments)})}]),t}();R||(s={fullscreenchange:(u=function(){for(var e,t=[["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"]],n=0,r=t.length,i={};n<r;n++)if((e=t[n])&&e[1]in document){for(n=0;n<e.length;n++)i[t[0][n]]=e[n];return i}return!1}()).fullscreenchange,fullscreenerror:u.fullscreenerror},Object.defineProperties(c={request:function(e){return new Promise(function(t,n){var r=function e(){c.off("fullscreenchange",e),t()};c.on("fullscreenchange",r);var i=(e=e||document.documentElement)[u.requestFullscreen]();i instanceof Promise&&i.then(r).catch(n)})},exit:function(){return new Promise(function(e,t){if(!c.isFullscreen){e();return}var n=function t(){c.off("fullscreenchange",t),e()};c.on("fullscreenchange",n);var r=document[u.exitFullscreen]();r instanceof Promise&&r.then(n).catch(t)})},on:function(e,t){var n=s[e];n&&document.addEventListener(n,t)},off:function(e,t){var n=s[e];n&&document.removeEventListener(n,t)}},{isFullscreen:{get:function(){return!!document[u.fullscreenElement]}},element:{enumerable:!0,get:function(){return document[u.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!document[u.fullscreenEnabled]}}}),Z=c,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=function(e){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(e))};t.forEach(function(e){try{if(null!==e.getAttribute("data-vimeo-defer"))return;var t=U(e),r=L(t);Y(r,t,e).then(function(t){return G(t,e)}).catch(n)}catch(e){n(e)}})}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",function(t){if(C(t.origin)&&t.data&&"spacechange"===t.data.event){for(var n=e.querySelectorAll("iframe"),r=0;r<n.length;r++)if(n[r].contentWindow===t.source){n[r].parentElement.style.paddingBottom="".concat(t.data.data[0].bottom,"px");break}}}))}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoSeoMetadataAppended||(window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",function(t){if(C(t.origin)){var n=H(t.data);if(n&&"ready"===n.event)for(var r=e.querySelectorAll("iframe"),i=0;i<r.length;i++){var o=r[i],a=o.contentWindow===t.source;S(o.src)&&a&&new K(o).callMethod("appendVideoMetadata",window.location.href)}}}))}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam
1=!0;var t=function(e){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(e))};window.addEventListener("message",function(n){if(C(n.origin)){var r=H(n.data);if(r&&"ready"===r.event)for(var i=e.querySelectorAll("iframe"),o=0;o<i.length;o++)!function(){var e=i[o],r=e.contentWindow===n.source;if(S(e.src)&&r){var a=new K(e);a.getVideoId().then(function(e){var t=new RegExp("[?&]vimeo_t_".concat(e,"=([^&#]*)")).exec(window.location.href);if(t&&t[1]){var n=decodeURI(t[1]);a.setCurrentTime(n)}}).catch(t)}}()}})}}());let ee=/vimeo\.com\/(video\/|event\/)?(\d+)(?:\/([\w-]+))?/;function et(e,t={}){var n;let r={src:function(e,t){if(!e.src)return;let n=new URL(e.src),r=e.src.match(ee),i=null==r?void 0:r[1],o=null==r?void 0:r[2],a=n.searchParams.get("h")||(null==r?void 0:r[3]),u={controls:""===e.controls?null:0,autoplay:e.autoplay,loop:e.loop,muted:e.muted,playsinline:e.playsinline,preload:e.preload??"metadata",transparent:!1,autopause:e.autopause,h:a,...t.config};if("event/"===i){let e=a?`/${a}`:"";return delete u.h,`https://vimeo.com/event/${o}/embed${e}?${ei(u)}`}return`https://player.vimeo.com/video/${o}?${ei(u)}`}(e,t),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return t.config&&(r["data-config"]=JSON.stringify(t.config)),(null==(n=t.config)?void 0:n.referrerpolicy)&&(r.referrerpolicy=t.config.referrerpolicy),`
2    <style>
3      :host {
4        display: inline-block;
5        min-width: 300px;
6        min-height: 150px;
7        position: relative;
8      }
9      iframe {
10        position: absolute;
11        top: 0;
12        left: 0;
13      }
14      :host(:not([controls])) {
15        pointer-events: none;
16      }
17    </style>
18    <iframe${function(e){let t="";for(let n in e){let r=e[n];""===r?t+=` ${er(n)}`:t+=` ${er(n)}="${er(`${r}`)}"`}return t}(r)}></iframe>
19  `}class en extends(0,h.W)(globalThis.HTMLElement??class{}){static getTemplateHTML=et;static shadowRootOptions={mode:"open"};static observedAttributes=["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src"];loadComplete=new eo;#e;#t;#n;#r=0;#i=NaN;#o=!1;#a=!this.autoplay;#u=1;#s=0;#c=0;#l=!1;#h=1;#d=NaN;#f=NaN;#p=null;#v=!1;constructor(){super(),this.#y("config")}requestFullscreen(){var e,t;return null==(t=null==(e=this.api)?void 0:e.requestFullscreen)?void 0:t.call(e)}exitFullscreen(){var e,t;return null==(t=null==(e=this.api)?void 0:e.exitFullscreen)?void 0:t.call(e)}requestPictureInPicture(){var e,t;return null==(t=null==(e=this.api)?void 0:e.requestPictureInPicture)?void 0:t.call(e)}exitPictureInPicture(){var e,t;return null==(t=null==(e=this.api)?void 0:e.exitPictureInPicture)?void 0:t.call(e)}get config(){return this.#p}set config(e){JSON.stringify(this.#p)!==JSON.stringify(e)&&(this.#p=e,this.load())}async load(){var e;if(this.#e)return;await (this.#e=Promise.resolve()),this.#e=null,this.#r=0,this.#i=NaN,this.#o=!1,this.#a=!this.autoplay,this.#u=1,this.#s=0,this.#c=0,this.#l=!1,this.#h=1,this.#c=0,this.#d=NaN,this.#f=NaN,this.dispatchEvent(new Event("emptied"));let t=this.api;if(this.api=null,!this.src)return;this.#t&&(this.loadComplete=new eo),this.#t=!0,this.dispatchEvent(new Event("loadstart"));let n={autoplay:this.autoplay,controls:this.controls,loop:this.loop,muted:this.defaultMuted,playsinline:this.playsInline,preload:this.preload??"metadata",transparent:!1,autopause:this.hasAttribute("autopause"),...this.#p};if(this.#n){this.api=t,await this.api.loadVideo({...n,url:this.src}),await this.#m(),await this.loadComplete;return}this.#n=!0,this.shadowRoot||this.attachShadow({mode:"open"});let r=this.shadowRoot.querySelector("iframe");r&&!this.#v?this.#p||(this.#p=JSON.parse(r.getAttribute("data-config")||"{}")):this.shadowRoot.innerHTML=et(function(e){let t={};for(let n of e)t[n.name]=n.value;return t}(this.attributes),this),this.#v=!1,null==(e=null==t?void 0:t.destroy)||e.call(t);let i=this.shadowRoot.querySelector("iframe");this.api=new K(i),this.#g(),await this.loadComplete}connectedCallback(){var e;this.#v&&this.load(),null==(e=super.connectedCallback)||e.call(this)}disconnectedCallback(){var e,t,n;this.#v=!0,this.#e=null,this.#t=null,this.#n=null,this.loadComplete=new eo,null==(t=null==(e=this.api)?void 0:e.destroy)||t.call(e),this.api=null,null==(n=super.disconnectedCallback)||n.call(this)}#m=async()=>{this.#c=1,this.dispatchEvent(new Event("loadedmetadata")),this.api&&(this.#o=await this.api.getMuted(),this.#h=await this.api.getVolume(),this.dispatchEvent(new Event("volumechange")),this.#i=await this.api.getDuration(),this.dispatchEvent(new Event("durationchange"))),this.dispatchEvent(new Event("loadcomplete")),this.loadComplete.resolve()};#g(){let e=document.createElement("video");this.textTracks=e.textTracks,this.api.getTextTracks().then(t=>{t.forEach(t=>{e.addTextTrack(t.kind,t.label,t.language)})}),this.textTracks.addEventListener("change",()=>{let e=Array.from(this.textTracks).find(e=>"showing"===e.mode);e?this.api.enableTextTrack(e.language,e.kind):this.api.disableTextTrack()});let t=()=>{this.api.off("loaded",t),this.#m()};this.api.on("loaded",t),this.api.on("bufferstart",()=>{this.#a&&(this.#a=!1,this.dispatchEvent(new Event("play"))),this.dispatchEvent(new Event("waiting"))}),this.api.on("play",()=>{this.#a&&(this.#a=!1,this.dispatchEvent(new Event("play")))}),this.api.on("playing",()=>{this.#c=3,this.#a=!1,this.dispatchEvent(new Event("playing"))}),this.api.on("seeking",()=>{this.#l=!0,this.onSeeking(),this.dispatchEvent(new Event("seeking"))}),this.api.on("seeked",async()=>{this.#l=!1,this.#r=await this.api.getCurrentTime().catch(()=>this.#r),this.dispatchEvent(new Event("seeked"))}),this.api.on("pause",()=>{this.#a=!0,this.dispatchEvent(new Event("pause"))}),this.api.on("ended",()=>{this.#a=!0,this.dispatchEvent(new Event("ended"))}),this.api.on("ratechange",({playbackRate:e})=>{this.#u=e,this.dispatchEvent(new Event("ratechange"))}),this.api.on("volumechange",async({volume:e})=>{this.#h=e,this.api&&(this.#o=await this.api.getMuted()),this.dispatchEvent(new Event("volumechange"))}),this.api.on("durationchange",({duration:e})=>{this.#i=e,this.dispatchEvent(new Event("durationchange"))}),this.api.on("timeupdate",({seconds:e})=>{this.#r=Math.round(100*e)/100,this.dispatchEvent(new Event("timeupdate"))}),this.api.on("progress",({seconds:e})=>{this.#s=e,this.dispatchEvent(new Event("progress"))}),this.api.on("resize",({videoWidth:e,videoHeight:t})=>{this.#d=e,this.#f=t,this.dispatchEvent(new Event("resize"))})}async attributeChangedCallback(e,t,n){if(t!==n){switch(e){case"auto
19play":case"controls":case"src":this.load();return}await this.loadComplete,"loop"===e&&this.api.setLoop(this.loop)}}async play(){var e;this.#a=!1,this.dispatchEvent(new Event("play")),await this.loadComplete;try{await (null==(e=this.api)?void 0:e.play())}catch(e){throw this.#a=!0,this.dispatchEvent(new Event("pause")),e}}async pause(){var e;return await this.loadComplete,null==(e=this.api)?void 0:e.pause()}get ended(){return this.#r>=this.#i}get seeking(){return this.#l}get readyState(){return this.#c}get videoWidth(){return this.#d}get videoHeight(){return this.#f}get src(){return this.getAttribute("src")}set src(e){this.src!=e&&this.setAttribute("src",e)}get paused(){return this.#a}get duration(){return this.#i}get autoplay(){return this.hasAttribute("autoplay")}set autoplay(e){this.autoplay!=e&&this.toggleAttribute("autoplay",!!e)}get buffered(){return this.#s>0?ea(0,this.#s):ea()}get controls(){return this.hasAttribute("controls")}set controls(e){this.controls!=e&&this.toggleAttribute("controls",!!e)}get currentTime(){return this.#r}set currentTime(e){this.currentTime!=e&&(this.#r=e,this.loadComplete.then(()=>{var t;null==(t=this.api)||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.#o}set muted(e){this.muted!=e&&(this.#o=e,this.loadComplete.then(()=>{var t;null==(t=this.api)||t.setMuted(e).catch(()=>{})}))}get playbackRate(){return this.#u}set playbackRate(e){this.playbackRate!=e&&(this.#u=e,this.loadComplete.then(()=>{var t;null==(t=this.api)||t.setPlaybackRate(e).catch(()=>{})}))}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}`)}get volume(){return this.#h}set volume(e){this.volume!=e&&(this.#h=e,this.loadComplete.then(()=>{var t;null==(t=this.api)||t.setVolume(e).catch(()=>{})}))}#y(e){if(Object.prototype.hasOwnProperty.call(this,e)){let t=this[e];delete this[e],this[e]=t}}}function er(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/`/g,"&#x60;")}function ei(e){return String(new URLSearchParams(function(e){let t={};for(let n in e){let r=e[n];
19!0===r||""===r?t[n]=1:!1===r?t[n]=0:null!=r&&(t[n]=r)}return t}(e)))}class eo extends Promise{constructor(e=()=>{}){let t,n;super((r,i)=>{e(r,i),t=r,n=i}),this.resolve=t,this.reject=n}}function ea(e,t){return Array.isArray(e)?eu(e):null==e||null==t||0===e&&0===t?eu([[0,0]]):eu([[e,t]])}function eu(e){return Object.defineProperties(e,{start:{value:t=>e[t][0]},end:{value:t=>e[t][1]}}),e}globalThis.customElements&&!globalThis.customElements.get("vimeo-video")&&globalThis.customElements.define("vimeo-video",en);var es=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),ec={className:"class",htmlFor:"for"};function el(e){return e.toLowerCase()}function eh(e){return"boolean"==typeof e?e?"":void 0:"function"==typeof e?void 0:"object"!=typeof e||null===e?e:void 0}function ed(e,t,n){var r;e[t]=n,null==n&&t in((null==(r=globalThis.HTMLElement)?void 0:r.prototype)??{})&&e.removeAttribute(t)}var ef=function({react:e,tagName:t,elementClass:n,events:r,displayName:i,defaultProps:o,toAttributeName:a=el,toAttributeValue:u=eh}){let s=Number.parseInt(e.version)>=19,c=e.forwardRef((i,c)=>{var l,h;let d=e.useRef(null),f=e.useRef(new Map),p={},v={},y={},m={};for(let[e,t]of Object.entries(i)){if(es.has(e)){y[e]=t;continue}let r=a(ec[e]??e);if(n.prototype&&e in n.prototype&&!(e in((null==(l=globalThis.HTMLElement)?void 0:l.prototype)??{}))&&!(null==(h=n.observedAttributes)?void 0:h.some(e=>e===r))){m[e]=t;continue}if(e.startsWith("on")){p[e]=t;continue}let i=u(t);r&&null!=i&&(v[r]=String(i),s||(y[r]=i)),r&&s&&(i!==eh(t)?y[r]=i:y[r]=t)}if("undefined"!=typeof window){for(let t in p){let n=p[t],i=t.endsWith("Capture"),o=((null==r?void 0:r[t])??t.slice(2).toLowerCase()).slice(0,i?-7:void 0);e.useLayoutEffect(()=>{let e=null==d?void 0:d.current;if(e&&"function"==typeof n)return e.addEventListener(o,n,i),()=>{e.removeEventListener(o,n,i)}},[null==d?void 0:d.current,n])}e.useLayoutEffect(()=>{if(null===d.current)return;let e=new Map;for(let t in m)ed(d.current,t,m[t]),f.current.delete(t),e.set(t,m[t]);for(let[e,t]of f.current)ed(d.current,e,void 0);f.current=e})}if("undefined"==typeof window&&(null==n?void 0:n.getTemplateHTML)&&(null==n?void 0:n.shadowRootOptions)){let{mode:t,delegatesFocus:r}=n.shadowRootOptions,o=e.createElement("template",{shadowrootmode:t,shadowrootdelegatesfocus:r,dangerouslySetInnerHTML:{__html:n.getTemplateHTML(v,i)},key:"ce-la-react-ssr-template-shadow-root"});y.children=[o,y.children]}return e.createElement(t,{...o,...y,ref:e.useCallback(e=>{d.current=e,"function"==typeof c?c(e):null!==c&&(c.current=e)},[c])},y.children)});return c.displayName=i??n.name,c}({react:l,tagName:"vimeo-video",elementClass:en,toAttributeName:e=>"muted"===e?"":"defaultMuted"===e?"muted":el(e)})}}]);
20//# sourceMappingURL=reactPlayerVimeo.45d5eeece3f8c0c1.js.map

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.