PageSourceSearch

https://www.iva.se/dist/client/assets/player.es-Dfk6QSjf.js

js iva.se collected 2026-09-24 09:12:55 UTC 37,966 bytes, 1 lines download raw bytes

vendor: 5,140 bytes, line 1
1function e(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 t(t){for(var n=1;n<arguments.length;n++){var r=arguments[n]==null?{}:arguments[n];n%2?e(Object(r),!0).forEach(function(e){c(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function n(){n=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a=typeof Symbol==`function`?Symbol:{},o=a.iterator||`@@iterator`,s=a.asyncIterator||`@@asyncIterator`,c=a.toStringTag||`@@toStringTag`;function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},``)}catch{l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype);return i(o,`_invoke`,{value:S(e,n,new E(r||[]))}),o}function d(e,t,n){try{return{type:`normal`,arg:e.call(t,n)}}catch(e){return{type:`throw`,arg:e}}}e.wrap=u;var f={};function p(){}function m(){}function h(){}var g={};l(g,o,function(){return this});var _=Object.getPrototypeOf,v=_&&_(_(D([])));v&&v!==t&&r.call(v,o)&&(g=v);var y=h.prototype=p.prototype=Object.create(g);function b(e){[`next`,`throw`,`return`].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function x(e,t){function n(i,a,o,s){var c=d(e[i],e,a);if(c.type!==`throw`){var l=c.arg,u=l.value;return u&&typeof u==`object`&&r.call(u,`__await`)?t.resolve(u.__await).then(function(e){n(`next`,e,o,s)},function(e){n(`throw`,e,o,s)}):t.resolve(u).then(function(e){l.value=e,o(l)},function(e){return n(`throw`,e,o,s)})}s(c.arg)}var a;i(this,`_invoke`,{value:function(e,r){function i(){return new t(function(t,i){n(e,r,t,i)})}return a=a?a.then(i,i):i()}})}function S(e,t,n){var r=`suspendedStart`;return function(i,a){if(r===`executing`)throw Error(`Generator is already running`);if(r===`completed`){if(i===`throw`)throw a;return O()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=C(o,n);if(s){if(s===f)continue;return s}}if(n.method===`next`)n.sent=n._sent=n.arg;else if(n.method===`throw`){if(r===`suspendedStart`)throw r=`completed`,n.arg;n.dispatchException(n.arg)}else n.method===`return`&&n.abrupt(`return`,n.arg);r=`executing`;var c=d(e,t,n);if(c.type===`normal`){if(r=n.done?`completed`:`suspendedYield`,c.arg===f)continue;return{value:c.arg,done:n.done}}c.type===`throw`&&(r=`completed`,n.method=`throw`,n.arg=c.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(r===void 0)return t.delegate=null,n===`throw`&&e.iterator.return&&(t.method=`return`,t.arg=void 0,C(e,t),t.method===`throw`)||n!==`return`&&(t.method=`throw`,t.arg=TypeError(`The iterator does not provide a '`+n+`' method`)),f;var i=d(r,e.iterator,t.arg);if(i.type===`throw`)return t.method=`throw`,t.arg=i.arg,t.delegate=null,f;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,t.method!==`return`&&(t.method=`next`,t.arg=void 0),t.delegate=null,f):a:(t.method=`throw`,t.arg=TypeError(`iterator result is not an object`),t.delegate=null,f)}function w(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 T(e){var t=e.completion||{};t.type=`normal`,delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:`root`}],e.forEach(w,this),this.reset(!0)}function D(e){if(e){var t=e[o];if(t)return t.call(e);if(typeof e.next==`function`)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return m.prototype=h,i(y,`constructor`,{value:h,configurable:!0}),i(h,`constructor`,{value:m,configurable:!0}),m.displayName=l(h,c,`GeneratorFunction`),e.isGeneratorFunction=function(e){var t=typeof e==`function`&&e.constructor;return!!t&&(t===m||(t.displayName||t.name)===`GeneratorFunction`)},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,c,`GeneratorFunction`)),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(x.prototype),l(x.prototype,s,function(){return this}),e.AsyncIterator=x,e.async=function(t,n,r,i,a){a===void 0&&(a=Promise);var o=new x(u(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then(function(e){return e.done?e.value:o.next()})},b(y),l(y,c,`Generator`),l(y,o,function(){return this}),l(y,`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=D,E.prototype={constructor:E,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.forEac
1h(T),!e)for(var t in this)t.charAt(0)===`t`&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type===`throw`)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return o.type=`throw`,o.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 a=this.tryEntries[i],o=a.completion;if(a.tryLoc===`root`)return n(`end`);if(a.tryLoc<=this.prev){var s=r.call(a,`catchLoc`),c=r.call(a,`finallyLoc`);if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error(`try statement without catch or finally`);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,`finallyLoc`)&&this.prev<i.finallyLoc){var a=i;break}}a&&(e===`break`||e===`continue`)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method=`next`,this.next=a.finallyLoc,f):this.complete(o)},complete:function(e,t){if(e.type===`throw`)throw e.arg;return e.type===`break`||e.type===`continue`?this.next=e.arg:e.type===`return`?(this.rval=this.arg=e.arg,this.method=`return`,this.next=`end`):e.type===`normal`&&t&&(this.next=t),f},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),T(n),f}},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(r.type===`throw`){var i=r.arg;T(n)}return i}}throw Error(`illegal catch attempt`)},delegateYield:function(e,t,n){return this.delegate={iterator:D(e),resultName:t,nextLoc:n},this.method===`next`&&(this.arg=void 0),f}},e}function r(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise(function(i,a){var o=e.apply(t,n);function s(e){r(o,i,a,s,c,`next`,e)}function c(e){r(o,i,a,s,c,`throw`,e)}s(void 0)})}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(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,b(r.key),r)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t,n){return t=b(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if(typeof t!=`function`&&t!==null)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&&d(e,t)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function f(){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 p(e,t,n){return p=f()?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&&d(i,n.prototype),i},p.apply(null,arguments)}function m(e){return Function.toString.call(e).indexOf(`[native code]`)!==-1}function h(e){var t=typeof Map==`function`?new Map:void 0;return h=function(e){if(e===null||!m(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return p(e,arguments,u(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,e)},h(e)}function g(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function _(e,t){if(t&&(typeof t==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return g(e)}function v(e){var t=f();return function(){var n=u(e),r;if(t){var i=u(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return _(this,r)}}function y(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function b(e){var t=y(e,`string`);return typeof t==`symbol`?t:String(t)}var x=typeof global<`u`&&{}.toString.call(global)===`[object global]`;function S(e,t){return e.indexOf(t.toLowerCase())===0?e:`${t.toLowerCase()}${e.substr(0,1).toUpperCase()}${e.substr(1)}`}function C(e){return!!(e&&e.nodeType===1&&`nodeName`in e&&e.ownerDocument&&e.ownerDocument.defaultView)}function w(e){return!isNaN(parseFloat(e))&&isFinite(e)&&Math.floor(e)==e}function T(e){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(e)}function E(e){return/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/.test(e)}function D(e){for(var t=(e||``).match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),n=(t&&t[1]||``).replace(`player.`,``),r=[`.videoji.hk`,`.vimeo.work`,`.videoji.cn`],i=0,a=r;i<a.length;i++){var o=a[i];if(n.endsWith(o))return n}return`vimeo.com`}function O(){var e=arguments.length>0&&arguments[0]!==void 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(w(r))return`https://vimeo.com/${r}`;if(T(r))return r.replace(`http:`,`https:`);throw TypeError(t?`“${t}” is not a valid video id.`:`“${r}” is not a vimeo.com url.`)}var k=function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`addEventListener`,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:`removeEventListener`,a=typeof t==`string`?[t]:t;return a.forEach(function(t){e[r](t,n)}),{cancel:function(){return a.forEach(function(t){return e[i](t,n)})}}},A=Array.prototype.indexOf!==void 0,j=typeof window<`u`&&window.postMessage!==void 0;if(!x&&(!A||!j))throw Error(`Sorry, the Vimeo Player API is not available in this browser.`);var M=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function N(e,t){return t={exports:{}},e(t,t.exports),t.exports}(function(e){if(e.WeakMap)return;var t=Object.prototype.hasOwnProperty,n=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{value:1}).x===1}catch{}}(),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(this===void 0)throw TypeError(`Constructor WeakMap requires 'new'`);if(r(this,`_id`,a(`_WeakMap`)),arguments.length>0)throw TypeError(`WeakMap iterable is not supported`)}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):!1}),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 a=e[this._id];return a&&a[0]===e?(a[1]=t,this):(r(e,this._id,[e,t]),this)});function n(e,n){if(!i(e)||!t.call(e,`_id`))throw TypeError(n+` method called on incompatible receiver `+typeof e)}function a(e){return e+`_`+o()+`.`+o()}function o(){return Math.random().toString().substring(2)}return r(e,`_polyfill`,!0),e}();function i(e){return Object(e)===e}})(typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:M);var P=N(function(e){(function(t,n,r){n[t]=n[t]||r(),e.exports&&=n[t]})(`Promise`,M,function(){var e,t,n,r=Object.prototype.toString,i=typeof setImmediate<`u`?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:r!==!1})}}catch{e=function(e,t,n){return e[t]=n,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,a){r=new i(t,a),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}}}();function a(e,r){n.add(e,r),t||=i(n.drain)}function o(e){var t,n=typeof e;return e!=null&&(n==`object`||n==`function`)&&(t=e.then),typeof t==`function`&&t}function s(){for(var e=0;e<this.chain.length;e++)c(this,this.state===1?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}
1function c(e,t,n){var r,i;try{t===!1?n.reject(e.msg):(r=t===!0?e.msg:t.call(void 0,e.msg),r===n.promise?n.reject(TypeError(`Promise-chain cycle`)):(i=o(r))?i.call(r,n.resolve,n.reject):n.resolve(r))}catch(e){n.reject(e)}}function l(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=o(e))?a(function(){var r=new f(n);try{t.call(e,function(){l.apply(r,arguments)},function(){u.apply(r,arguments)})}catch(e){u.call(r,e)}}):(n.msg=e,n.state=1,n.chain.length>0&&a(s,n))}catch(e){u.call(new f(n),e)}}}function u(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&a(s,t))}function d(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 f(e){this.def=e,this.triggered=!1}function p(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function m(e){if(typeof e!=`function`)throw TypeError(`Not a function`);if(this.__NPO__!==0)throw TypeError(`Not a promise`);this.__NPO__=1;var t=new p(this);this.then=function(e,n){var r={success:typeof e!=`function`||e,failure:typeof n==`function`&&n};return r.promise=new this.constructor(function(e,t){if(typeof e!=`function`||typeof t!=`function`)throw TypeError(`Not a function`);r.resolve=e,r.reject=t}),t.chain.push(r),t.state!==0&&a(s,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){l.call(t,e)},function(e){u.call(t,e)})}catch(e){u.call(t,e)}}var h=e({},`constructor`,m,!1);return m.prototype=h,e(h,`__NPO__`,0,!1),e(m,`resolve`,function(e){var t=this;return e&&typeof e==`object`&&e.__NPO__===1?e:new t(function(t,n){if(typeof t!=`function`||typeof n!=`function`)throw TypeError(`Not a function`);t(e)})}),e(m,`reject`,function(e){return new this(function(t,n){if(typeof t!=`function`||typeof n!=`function`)throw TypeError(`Not a function`);n(e)})}),e(m,`all`,function(e){var t=this;return r.call(e)==`[object Array]`?e.length===0?t.resolve([]):new t(function(n,r){if(typeof n!=`function`||typeof r!=`function`)throw TypeError(`Not a function`);var i=e.length,a=Array(i),o=0;d(t,e,function(e,t){a[e]=t,++o===i&&n(a)},r)}):t.reject(TypeError(`Not an array`))}),e(m,`race`,function(e){var t=this;return r.call(e)==`[object Array]`?new t(function(n,r){if(typeof n!=`function`||typeof r!=`function`)throw TypeError(`Not a function`);d(t,e,function(e,t){n(t)},r)}):t.reject(TypeError(`Not an array`))}),m})}),F=new WeakMap;function I(e,t,n){var r=F.get(e.element)||{};t in r||(r[t]=[]),r[t].push(n),F.set(e.element,r)}function L(e,t){return(F.get(e.element)||{})[t]||[]}function R(e,t,n){var r=F.get(e.element)||{};if(!r[t])return!0;if(!n)return r[t]=[],F.set(e.element,r),!0;var i=r[t].indexOf(n);return i!==-1&&r[t].splice(i,1),F.set(e.element,r),r[t]&&r[t].length===0}function z(e,t){var n=L(e,t);if(n.length<1)return!1;var r=n.shift();return R(e,t,r),r}function B(e,t){var n=F.get(e);F.set(t,n),F.delete(e)}function V(e){if(typeof e==`string`)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function H(e,t,n){if(!(!e.element.contentWindow||!e.element.contentWindow.postMessage)){var r={method:t};n!==void 0&&(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)}}function U(e,t){t=V(t);var n=[],r;if(t.event)t.event===`error`&&L(e,t.data.method).forEach(function(n){var r=Error(t.data.message);r.name=t.data.name,n.reject(r),R(e,t.data.method,n)}),n=L(e,`event:${t.event}`),r=t.data;else if(t.method){var i=z(e,t.method);i&&(n.push(i),r=t.value)}n.forEach(function(t){try{if(typeof t==`function`){t.call(e,r);return}t.resolve(r)}catch{}})}var W=`airplay.audio_tracks.audiotrack.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`.split(`.`);function G(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return W.reduce(function(t,n){var r=e.getAttribute(`data-vimeo-${n}`);return(r||r===``)&&(t[n]=r===``?1:r),t},t)}function K(e,t){var n=e.html;if(!t)throw TypeError(`An element must be provided`);if(t.getAttribute(`data-vimeo-initialized`)!==null)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 q(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise(function(r,i){if(!T(e))throw TypeError(`“${e}” is not a vimeo.com url.`);var a=`https://${D(e)}/api/oembed.json?url=${encodeURIComponent(e)}`;for(var o in t)t.hasOwnProperty(o)&&(a+=`&${o}=${encodeURIComponent(t[o])}`);var s=`XDomainRequest`in window?new XDomainRequest:new XMLHttpRequest;s.open(`GET`,a,!0),s.onload=function(){if(s.status===404){i(Error(`“${e}” was not found.`));return}if(s.status===403){i(Error(`“${e}” is not embeddable.`));return}try{var t=JSON.parse(s.responseText);if(t.domain_status_code===403){K(t,n),i(Error(`“${e}” is not embeddable.`));return}r(t)}catch(e){i(e)}},s.onerror=function(){var e=s.status?` (${s.status})`:``;i(Error(`There was an error fetching the embed code from Vimeo${e}.`))},s.send()})}function J(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,t=[].slice.call(e.querySelectorAll(`[data-vimeo-id], [data-vimeo-url]`)),n=function(e){`
1console`in window&&console.error&&console.error(`There was an error creating an embed: ${e}`)};t.forEach(function(e){try{if(e.getAttribute(`data-vimeo-defer`)!==null)return;var t=G(e);q(O(t),t,e).then(function(t){return K(t,e)}).catch(n)}catch(e){n(e)}})}function Y(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener(`message`,function(t){if(T(t.origin)&&!(!t.data||t.data.event!==`spacechange`)){for(var n=e.querySelectorAll(`iframe`),r=0;r<n.length;r++)if(n[r].contentWindow===t.source){var i=n[r].parentElement;i.style.paddingBottom=`${t.data.data[0].bottom}px`;break}}}))}function ee(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;window.VimeoSeoMetadataAppended||(window.VimeoSeoMetadataAppended=!0,window.addEventListener(`message`,function(t){if(T(t.origin)){var n=V(t.data);if(!(!n||n.event!==`ready`))for(var r=e.querySelectorAll(`iframe`),i=0;i<r.length;i++){var a=r[i],o=a.contentWindow===t.source;E(a.src)&&o&&new $(a).callMethod(`appendVideoMetadata`,window.location.href)}}}))}function te(){var e=arguments.length>0&&arguments[0]!==void 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: ${e}`)};window.addEventListener(`message`,function(n){if(T(n.origin)){var r=V(n.data);if(!(!r||r.event!==`ready`))for(var i=e.querySelectorAll(`iframe`),a=function(){var e=i[o],r=e.contentWindow===n.source;if(E(e.src)&&r){var a=new $(e);a.getVideoId().then(function(e){var t=RegExp(`[?&]vimeo_t_${e}=([^&#]*)`).exec(window.location.href);if(t&&t[1]){var n=decodeURI(t[1]);a.setCurrentTime(n)}}).catch(t)}},o=0;o<i.length;o++)a()}})}}function ne(){var e=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&&e[1]in document){for(n=0;n<e.length;n++)i[t[0][n]]=e[n];return i}return!1}(),t={fullscreenchange:e.fullscreenchange,fullscreenerror:e.fullscreenerror},n={request:function(t){return new Promise(function(r,i){var a=function e(){n.off(`fullscreenchange`,e),r()};n.on(`fullscreenchange`,a),t||=document.documentElement;var o=t[e.requestFullscreen]();o instanceof Promise&&o.then(a).catch(i)})},exit:function(){return new Promise(function(t,r){if(!n.isFullscreen){t();return}var i=function e(){n.off(`fullscreenchange`,e),t()};n.on(`fullscreenchange`,i);var a=document[e.exitFullscreen]();a instanceof Promise&&a.then(i).catch(r)})},on:function(e,n){var r=t[e];r&&document.addEventListener(r,n)},off:function(e,n){var r=t[e];r&&document.removeEventListener(r,n)}};return Object.defineProperties(n,{isFullscreen:{get:function(){return!!document[e.fullscreenElement]}},element:{enumerable:!0,get:function(){return document[e.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!document[e.fullscreenEnabled]}}}),n}var re={role:`viewer`,autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},ie=function(e){l(o,e);var r=v(o);function o(e,s){var l,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=arguments.length>3?arguments[3]:void 0;return a(this,o),l=r.call(this),c(g(l),`logger`,void 0),c(g(l),`speedAdjustment`,0),c(g(l),`adjustSpeed`,function(){var e=i(n().mark(function e(t,r){var i;return n().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(l.speedAdjustment!==r){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=l.speedAdjustment,e.t2=e.t0-e.t1,e.t3=r,i=e.t2+e.t3,l.log(`New playbackRate:  ${i}`),e.next=12,t.setPlaybackRate(i);case 12:l.speedAdjustment=r;case 13:case`end`:return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()),l.logger=d,l.init(s,e,t(t({},re),u)),l}return s(o,[{key:`disconnect`,value:function(){this.dispatchEvent(new Event(`disconnect`))}}
1,{key:`init`,value:function(){var e=i(n().mark(function e(t,r,i){var a=this,o,s,c;return n().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.waitForTOReadyState(t,`open`);case 2:if(i.role!==`viewer`){e.next=10;break}return e.next=5,this.updatePlayer(t,r,i);case 5:o=k(t,`change`,function(){return a.updatePlayer(t,r,i)}),s=this.maintainPlaybackPosition(t,r,i),this.addEventListener(`disconnect`,function(){s.cancel(),o.cancel()}),e.next=14;break;case 10:return e.next=12,this.updateTimingObject(t,r);case 12:c=k(r,[`seeked`,`play`,`pause`,`ratechange`],function(){return a.updateTimingObject(t,r)},`on`,`off`),this.addEventListener(`disconnect`,function(){return c.cancel()});case 14:case`end`:return e.stop()}},e,this)}));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:`updateTimingObject`,value:function(){var e=i(n().mark(function e(t,r){return n().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=t,e.next=3,r.getCurrentTime();case 3:return e.t1=e.sent,e.next=6,r.getPaused();case 6:if(!e.sent){e.next=10;break}e.t2=0,e.next=13;break;case 10:return e.next=12,r.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 t(t,n){return e.apply(this,arguments)}return t}()},{key:`updatePlayer`,value:function(){var e=i(n().mark(function e(t,r,a){var o,s,c;return n().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.query(),s=o.position,c=o.velocity,typeof s==`number`&&r.setCurrentTime(s),typeof c!=`number`){e.next=25;break}if(c!==0){e.next=11;break}return e.next=6,r.getPaused();case 6:if(e.t0=e.sent,e.t0!==!1){e.next=9;break}r.pause();case 9:e.next=25;break;case 11:if(!(c>0)){e.next=25;break}return e.next=14,r.getPaused();case 14:if(e.t1=e.sent,e.t1!==!0){e.next=19;break}return e.next=18,r.play().catch(function(){var e=i(n().mark(function e(t){return n().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.name===`NotAllowedError`&&a.autoPlayMuted)){e.next=5;break}return e.next=3,r.setMuted(!0);case 3:return e.next=5,r.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,r,a);case 19:return e.next=21,r.getPlaybackRate();case 21:if(e.t2=e.sent,e.t3=c,e.t2===e.t3){e.next=25;break}r.setPlaybackRate(c);case 25:case`end`:return e.stop()}},e,this)}));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:`maintainPlaybackPosition`,value:function(e,t,r){var a=this,o=r.allowedDrift,s=r.maxAllowedDrift,c=r.minCheckInterval,l=r.maxRateAdjustment,u=r.maxTimeToCatchUp,d=Math.min(u,Math.max(c,s))*1e3,f=function(){var r=i(n().mark(function r(){var i,c,d,f,p;return n().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(n.t0=e.query().velocity===0,n.t0){n.next=6;break}return n.next=4,t.getPaused();case 4:n.t1=n.sent,n.t0=n.t1===!0;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,i=n.t2-n.t3,c=Math.abs(i),a.log(`Drift: ${i}`),!(c>s)){n.next=22;break}return n.next=18,a.adjustSpeed(t,0);case 18:t.setCurrentTime(e.query().position),a.log(`Resync by currentTime`),n.next=29;break;case 22:if(!(c>o)){n.next=29;break}return d=c/u,f=l,p=d<f?(f-d)/2:f,n.next=28,a.adjustSpeed(t,p*Math.sign(i));case 28:a.log(`Resync by playbackRate`);case 29:case`end`:return n.stop()}},r)}));return function(){return r.apply(this,arguments)}}(),p=setInterval(function(){return f()},d);return{cancel:function(){return clearInterval(p)}}}},{key:`log`,value:function(e){var t;(t=this.logger)==null||t.call(this,`TimingSrcConnector: ${e}`)}},{key:`waitForTOReadyState`,value:function(e,t){return new Promise(function(n){(function r(){e.readyState===t?n():e.addEventListener(`readystatechange`,r,{once:!0})})()})}}]),o}(h(EventTarget)),X=new WeakMap,Z=new WeakMap,Q={},$=function(){function e(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a(this,e),window.jQuery&&t instanceof jQuery&&(t.length>1&&window.console&&console.warn&&console.warn(`A jQuery object with multiple elements was passed, using the first element.`),t=t[0]),typeof document<`u`&&typeof t==`string`&&(t=document.getElementById(t)),!C(t))throw TypeError(`You must pass either a valid element or a valid id.`);
1if(t.nodeName!==`IFRAME`){var i=t.querySelector(`iframe`);i&&(t=i)}if(t.nodeName===`IFRAME`&&!T(t.getAttribute(`src`)||``))throw Error(`The player element passed isn’t a Vimeo embed.`);if(X.has(t))return X.get(t);this._window=t.ownerDocument.defaultView,this.element=t,this.origin=`*`;var o=new P(function(e,i){if(n._onMessage=function(t){if(!(!T(t.origin)||n.element.contentWindow!==t.source)){n.origin===`*`&&(n.origin=t.origin);var r=V(t.data);if(r&&r.event===`error`&&r.data&&r.data.method===`ready`){var a=Error(r.data.message);a.name=r.data.name,i(a);return}var o=r&&r.event===`ready`,s=r&&r.method===`ping`;if(o||s){n.element.setAttribute(`data-ready`,`true`),e();return}U(n,r)}},n._window.addEventListener(`message`,n._onMessage),n.element.nodeName!==`IFRAME`){var a=G(t,r);q(O(a),a,t).then(function(e){var r=K(e,t);return n.element=r,n._originalElement=t,B(t,r),X.set(n.element,n),e}).catch(i)}});if(Z.set(this,o),X.set(this.element,this),this.element.nodeName===`IFRAME`&&H(this,`ping`),Q.isEnabled){var s=function(){return Q.exit()};this.fullscreenchangeHandler=function(){Q.isFullscreen?I(n,`event:exitFullscreen`,s):R(n,`event:exitFullscreen`,s),n.ready().then(function(){H(n,`fullscreenchange`,Q.isFullscreen)})},Q.on(`fullscreenchange`,this.fullscreenchangeHandler)}return this}return s(e,[{key:`callMethod`,value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new P(function(r,i){return t.ready().then(function(){I(t,e,{resolve:r,reject:i}),H(t,e,n)}).catch(i)})}},{key:`get`,value:function(e){var t=this;return new P(function(n,r){return e=S(e,`get`),t.ready().then(function(){I(t,e,{resolve:n,reject:r}),H(t,e)}).catch(r)})}},{key:`set`,value:function(e,t){var n=this;return new P(function(r,i){if(e=S(e,`set`),t==null)throw TypeError(`There must be a value to set.`);return n.ready().then(function(){I(n,e,{resolve:r,reject:i}),H(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(typeof t!=`function`)throw TypeError(`The callback must be a function.`);L(this,`event:${e}`).length===0&&this.callMethod(`addEventListener`,e).catch(function(){}),I(this,`event:${e}`,t)}},{key:`off`,value:function(e,t){if(!e)throw TypeError(`You must pass an event name.`);if(t&&typeof t!=`function`)throw TypeError(`The callback must be a function.`);R(this,`event:${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=Z.get(this)||new P(function(e,t){t(Error(`Unknown player. Probably unloaded.`))});return P.resolve(e)}},{key:`addCuePoint`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.callMethod(`addCuePoint`,{time:e,data:t})}},{key:`removeCuePoint`,value:function(e){return this.callMethod(`removeCuePoint`,e)}},{key:`enableTextTrack`,value:function(e,t){if(!e)throw 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 Q.isEnabled?Q.request(this.element):this.callMethod(`requestFullscreen`)}},{key:`exitFullscreen`,value:function(){return Q.isEnabled?Q.exit():this.callMethod(`exitFullscreen`)}},{key:`getFullscreen`,value:function(){return Q.isEnabled?P.resolve(Q.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 P(function(t){if(Z.delete(e),X.delete(e.element),e._originalElement&&(X.delete(e._originalElement),e._originalElement.removeAttribute(`data-vimeo-initialized`)),e.element&&e.element.nodeName===`IFRAME`&&e.element.parentNode&&(e.element.parentNode.parentNode&&e._originalElement&&e._originalElement!==e.element.parentNode?e.element.parentNode.parentNode.removeChild(e.element.parentNode):e.element.parentNode.removeChild(e.element)),e.element&&e.element.nodeName===`DIV`&&e.element.parentNode){e.element.removeAttribute(`data-vimeo-initialized`);var 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),Q.isEnabled&&Q.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 P.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 P(function(e,t){return t(TypeError(`Argument must be an array.`))});var t=new P(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 P.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)}},{key:`getDuration`,value:function(){return this.get(`duration`)}},{key:`getEnded`,value:function(){return this.get(`ended`)}},{key:`getLoop`,value:function(){return this.get(`loop`)}},{key:`setLoop`,value:function(e){return this.set(`loop`,e)}},{key:`setMuted`,value:function(e){return this.set(`muted`,e)}},{key:`getMuted`,value:function(){return this.get(`muted`)}},{key:`getPaused`,value:function(){return this.get(`paused`)}},{key:`getPlaybackRate`,value:function(){return this.get(`playbackRate`)}},{key:`setPlaybackRate`,value:function(e){return this.set(`playbackRate`,e)}},{key:`getPlayed`,value:function(){return this.get(`played`)}},{key:`getQualities`,value:function(){return this.get(`qualities`)}},{key:`getQuality`,value:function(){return this.get(`quality`)}},{key:`setQuality`,value:function(e){return this.set(`quality`,e)}},{key:`getRemotePlaybackAvailability`,value:function(){return this.get(`remotePlaybackAvailability`)}},{key:`getRemotePlaybackState`,value:function(){return this.get(`remotePlaybackState`)}},{key:`getSeekable`,value:function(){return this.get(`seekable`)}},{key:`getSeeking`,value:function(){return this.get(`seeking`)}},{key:`getTextTracks`,value:function(){return this.get(`textTracks`)}},{key:`getVideoEmbedCode`,value:function(){return this.get(`videoEmbedCode`)}},{key:`getVideoId`,value:function(){return this.get(`videoId`)}},{key:`getVideoTitle`,value:function(){return this.get(`videoTitle`)}},{key:`getVideoWidth`,value:function(){return this.get(`videoWidth`)}},{key:`getVideoHeight`,value:function(){return this.get(`videoHeight`)}},{key:`getVideoUrl`,value:function(){return this.get(`videoUrl`)}},{key:`getVolume`,value:function(){return this.get(`volume`)}},{key:`setVolume`,value:function(e){return this.set(`volume`,e)}},{key:`setTimingSrc`,value:function(){var e=i(n().mark(function e(t,r){var i=this,a;return n().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 a=new ie(this,t,r),H(this,`notifyTimingObjectConnect`),a.addEventListener(`disconnect`,function(){return H(i,`notifyTimingObjectDisconnect`)}),e.abrupt(`return`,a);case 8:case`end`:return e.stop()}},e,this)}));function t(t,n){return e.apply(this,arguments)}return t}()}]),e}();x||(Q=ne(),J(),Y(),ee(),te());export{$ as t};

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.