@micromag/viewer-build 0.4.27 → 0.4.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "files": {
3
3
  "main.css": "/static/css/main.d4cf931a.css",
4
- "main.js": "/static/js/main.ac0de004.js",
5
- "runtime~main.js": "/static/js/runtime~main.81ed9e21.js",
6
- "static/js/66.635a8519.chunk.js": "/static/js/66.635a8519.chunk.js",
4
+ "main.js": "/static/js/main.9c538a90.js",
5
+ "runtime~main.js": "/static/js/runtime~main.aa115884.js",
6
+ "static/js/66.04e38840.chunk.js": "/static/js/66.04e38840.chunk.js",
7
7
  "static/js/490.39904f7d.chunk.js": "/static/js/490.39904f7d.chunk.js",
8
8
  "static/js/62.b7ed9084.chunk.js": "/static/js/62.b7ed9084.chunk.js",
9
9
  "static/js/677.23822958.js": "/static/js/677.23822958.js",
@@ -11,9 +11,9 @@
11
11
  "index.html": "/index.html"
12
12
  },
13
13
  "entrypoints": [
14
- "static/js/runtime~main.81ed9e21.js",
14
+ "static/js/runtime~main.aa115884.js",
15
15
  "static/js/677.23822958.js",
16
16
  "static/css/main.d4cf931a.css",
17
- "static/js/main.ac0de004.js"
17
+ "static/js/main.9c538a90.js"
18
18
  ]
19
19
  }
package/build/index.html CHANGED
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Micromag</title><script defer="defer" src="/static/js/runtime~main.81ed9e21.js"></script><script defer="defer" src="/static/js/677.23822958.js"></script><script defer="defer" src="/static/js/main.ac0de004.js"></script><link href="/static/css/main.d4cf931a.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Micromag</title><script defer="defer" src="/static/js/runtime~main.aa115884.js"></script><script defer="defer" src="/static/js/677.23822958.js"></script><script defer="defer" src="/static/js/main.9c538a90.js"></script><link href="/static/css/main.d4cf931a.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 66.04e38840.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_micromag_viewer_build=self.webpackChunk_micromag_viewer_build||[]).push([[66],{8066:function(e,t,n){const r=void 0!==n.g&&"[object global]"==={}.toString.call(n.g),i="undefined"!=typeof Bun,o="undefined"!=typeof Deno,a="function"==typeof WebSocketPair&&void 0!==caches?.default,s=r||i||o||a;function l(e,t){return 0===e.indexOf(t.toLowerCase())?e:`${t.toLowerCase()}${e.substr(0,1).toUpperCase()}${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 u(e){return/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/.test(e)}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.id,n=e.url,r=t||n;if(!r)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(i=r,!isNaN(parseFloat(i))&&isFinite(i)&&Math.floor(i)==i)return`https://vimeo.com/${r}`;var i;if(c(r))return r.replace("http:","https:");if(t)throw new TypeError(`“${t}” is not a valid video id.`);throw new TypeError(`“${r}” is not a vimeo.com url.`)}const h=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"addEventListener",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"removeEventListener";const o="string"==typeof t?[t]:t;return o.forEach(t=>{e[r](t,n)}),{cancel:()=>o.forEach(t=>e[i](t,n))}};function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;if(!e||!t||"function"!=typeof t.querySelectorAll)return null;const n=t.querySelectorAll("iframe");for(let t=0;t<n.length;t++)if(n[t]&&n[t].contentWindow===e)return n[t];return null}const m=void 0!==Array.prototype.indexOf,p="undefined"!=typeof window&&void 0!==window.postMessage;if(!(s||m&&p))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var g="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 new TypeError("Constructor WeakMap requires 'new'");if(r(this,"_id","_WeakMap_"+o()+"."+o()),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function n(e,n){if(!i(e)||!t.call(e,"_id"))throw new 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];return t&&t[0]===e?t[1]:void 0}}),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 new TypeError("Invalid value used as weak map key");var o=e[this._id];return o&&o[0]===e?(o[1]=t,this):(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:g);var w,y,v=(w=function(e){var t,n,r;r=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 s(){for(var e=0;e<this.chain.length;e++)l(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function l(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)}}function c(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(){c.apply(r,arguments)},function(){u.apply(r,arguments)})}catch(e){u.call(r,e)}}):(n.msg=e,n.state=1,n.chain.length>0&&o(s,n))}catch(e){u.call(new h(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&&o(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 h(e){this.def=e,this.triggered=!1}function f(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function m(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 f(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(s,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){c.call(t,e)},function(e){u.call(t,e)})}catch(e){u.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",m,!1);return m.prototype=p,e(p,"__NPO__",0,!1),e(m,"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(m,"reject",function(e){return new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)})}),e(m,"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;d(t,e,function(e,t){o[e]=t,++a===i&&n(o)},r)})}),e(m,"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");d(t,e,function(e,t){n(t)},r)})}),m},(n=g)[t="Promise"]=n[t]||r(),e.exports&&(e.exports=n[t])},w(y={exports:{}}),y.exports);const b=new WeakMap;function E(e,t,n){const r=b.get(e.element)||{};t in r||(r[t]=[]),r[t].push(n),b.set(e.element,r)}function T(e,t){return(b.get(e.element)||{})[t]||[]}function k(e,t,n){const r=b.get(e.element)||{};if(!r[t])return!0;if(!n)return r[t]=[],b.set(e.element,r),!0;const i=r[t].indexOf(n);return-1!==i&&r[t].splice(i,1),b.set(e.element,r),r[t]&&0===r[t].length}function P(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function _(e,t,n){if(!e.element.contentWindow||!e.element.contentWindow.postMessage)return;let r={method:t};void 0!==n&&(r.value=n);const i=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));i>=8&&i<10&&(r=JSON.stringify(r)),e.element.contentWindow.postMessage(r,e.origin)}const A=["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 M(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return A.reduce((t,n)=>{const r=e.getAttribute(`data-vimeo-${n}`);return(r||""===r)&&(t[n]=""===r?1:r),t},t)}function C(e,t){let{html:n}=e;if(!t)throw new TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");const r=document.createElement("div");return r.innerHTML=n,t.appendChild(r.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function j(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise((r,i)=>{if(!c(e))throw new TypeError(`“${e}” is not a vimeo.com url.`);const o=function(e){const t=(e||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),n=(t&&t[1]||"").replace("player.",""),r=[".videoji.hk",".vimeo.work",".videoji.cn"];for(const e of r)if(n.endsWith(e))return n;return"vimeo.com"}(e);let a=`https://${o}/api/oembed.json?url=${encodeURIComponent(e)}`;for(const e in t)t.hasOwnProperty(e)&&(a+=`&${e}=${encodeURIComponent(t[e])}`);const s="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;s.open("GET",a,!0),s.onload=function(){if(404!==s.status)if(403!==s.status)try{const t=JSON.parse(s.responseText);if(403===t.domain_status_code)return C(t,n),void i(new Error(`“${e}” is not embeddable.`));r(t)}catch(e){i(e)}else i(new Error(`“${e}” is not embeddable.`));else i(new Error(`“${e}” was not found.`))},s.onerror=function(){const e=s.status?` (${s.status})`:"";i(new Error(`There was an error fetching the embed code from Vimeo${e}.`))},s.send()})}const x={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1};class F extends EventTarget{logger;constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;super(),this.logger=r,this.init(t,e,{...x,...n})}disconnect(){this.dispatchEvent(new Event("disconnect"))}async init(e,t,n){if(await this.waitForTOReadyState(e,"open"),"viewer"===n.role){await this.updatePlayer(e,t,n);const r=h(e,"change",()=>this.updatePlayer(e,t,n)),i=this.maintainPlaybackPosition(e,t,n);this.addEventListener("disconnect",()=>{i.cancel(),r.cancel()})}else{await this.updateTimingObject(e,t);const n=h(t,["seeked","play","pause","ratechange"],()=>this.updateTimingObject(e,t),"on","off");this.addEventListener("disconnect",()=>n.cancel())}}async updateTimingObject(e,t){const[n,r,i]=await Promise.all([t.getCurrentTime(),t.getPaused(),t.getPlaybackRate()]);e.update({position:n,velocity:r?0:i})}async updatePlayer(e,t,n){const{position:r,velocity:i}=e.query();"number"==typeof r&&t.setCurrentTime(r),"number"==typeof i&&(0===i?!1===await t.getPaused()&&t.pause():i>0&&(!0===await t.getPaused()&&(await t.play().catch(async e=>{"NotAllowedError"===e.name&&n.autoPlayMuted&&(await t.setMuted(!0),await t.play().catch(e=>console.error("Couldn't play the video from TimingSrcConnector. Error:",e)))}),this.updatePlayer(e,t,n)),await t.getPlaybackRate()!==i&&t.setPlaybackRate(i)))}maintainPlaybackPosition(e,t,n){const{allowedDrift:r,maxAllowedDrift:i,minCheckInterval:o,maxRateAdjustment:a,maxTimeToCatchUp:s}=n,l=1e3*Math.min(s,Math.max(o,i)),c=async()=>{if(0===e.query().velocity||!0===await t.getPaused())return;const n=e.query().position-await t.getCurrentTime(),o=Math.abs(n);if(this.log(`Drift: ${n}`),o>i)await this.adjustSpeed(t,0),t.setCurrentTime(e.query().position),this.log("Resync by currentTime");else if(o>r){const e=o/s,r=e<a?(a-e)/2:a;await this.adjustSpeed(t,r*Math.sign(n)),this.log("Resync by playbackRate")}},u=setInterval(()=>c(),l);return{cancel:()=>clearInterval(u)}}log(e){this.logger?.(`TimingSrcConnector: ${e}`)}speedAdjustment=0;adjustSpeed=async(e,t)=>{if(this.speedAdjustment===t)return;const n=await e.getPlaybackRate()-this.speedAdjustment+t;this.log(`New playbackRate: ${n}`),await e.setPlaybackRate(n),this.speedAdjustment=t};waitForTOReadyState(e,t){return new Promise(n=>{const r=()=>{e.readyState===t?n():e.addEventListener("readystatechange",r,{once:!0})};r()})}}const N=new WeakMap,S=new WeakMap;let R={};class q{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(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)),!function(e){return Boolean(e&&1===e.nodeType&&"nodeName"in e&&e.ownerDocument&&e.ownerDocument.defaultView)}(e))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==e.nodeName){const t=e.querySelector("iframe");t&&(e=t)}if("IFRAME"===e.nodeName&&!c(e.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(N.has(e))return N.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";const n=new v((n,r)=>{if(this._onMessage=e=>{if(!c(e.origin)||this.element.contentWindow!==e.source)return;"*"===this.origin&&(this.origin=e.origin);const t=P(e.data);if(t&&"error"===t.event&&t.data&&"ready"===t.data.method){const e=new Error(t.data.message);return e.name=t.data.name,void r(e)}const i=t&&"ready"===t.event,o=t&&"ping"===t.method;if(i||o)return this.element.setAttribute("data-ready","true"),void n();!function(e,t){let n,r=[];if((t=P(t)).event)"error"===t.event&&T(e,t.data.method).forEach(n=>{const r=new Error(t.data.message);r.name=t.data.name,n.reject(r),k(e,t.data.method,n)}),r=T(e,`event:${t.event}`),n=t.data;else if(t.method){const i=function(e,t){const n=T(e,t);if(n.length<1)return!1;const r=n.shift();return k(e,t,r),r}(e,t.method);i&&(r.push(i),n=t.value)}r.forEach(t=>{try{if("function"==typeof t)return void t.call(e,n);t.resolve(n)}catch(e){}})}(this,t)},this._window.addEventListener("message",this._onMessage),"IFRAME"!==this.element.nodeName){const n=M(e,t);j(d(n),n,e).then(t=>{const n=C(t,e);return this.element=n,this._originalElement=e,function(e,t){const n=b.get(e);b.set(t,n),b.delete(e)}(e,n),N.set(this.element,this),t}).catch(r)}});if(S.set(this,n),N.set(this.element,this),"IFRAME"===this.element.nodeName&&_(this,"ping"),R.isEnabled){const e=()=>R.exit();this.fullscreenchangeHandler=()=>{R.isFullscreen?E(this,"event:exitFullscreen",e):k(this,"event:exitFullscreen",e),this.ready().then(()=>{_(this,"fullscreenchange",R.isFullscreen)})},R.on("fullscreenchange",this.fullscreenchangeHandler)}return this}static isVimeoUrl(e){return c(e)}callMethod(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(null==e)throw new TypeError("You must pass a method name.");return new v((t,r)=>this.ready().then(()=>{E(this,e,{resolve:t,reject:r}),0===n.length?n={}:1===n.length&&(n=n[0]),_(this,e,n)}).catch(r))}get(e){return new v((t,n)=>(e=l(e,"get"),this.ready().then(()=>{E(this,e,{resolve:t,reject:n}),_(this,e)}).catch(n)))}set(e,t){return new v((n,r)=>{if(e=l(e,"set"),null==t)throw new TypeError("There must be a value to set.");return this.ready().then(()=>{E(this,e,{resolve:n,reject:r}),_(this,e,t)}).catch(r)})}on(e,t){if(!e)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");if("function"!=typeof t)throw new TypeError("The callback must be a function.");0===T(this,`event:${e}`).length&&this.callMethod("addEventListener",e).catch(()=>{}),E(this,`event:${e}`,t)}off(e,t){if(!e)throw new TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw new TypeError("The callback must be a function.");k(this,`event:${e}`,t)&&this.callMethod("removeEventListener",e).catch(e=>{})}loadVideo(e){return this.callMethod("loadVideo",e)}ready(){const e=S.get(this)||new v((e,t)=>{t(new Error("Unknown player. Probably unloaded."))});return v.resolve(e)}addCuePoint(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}removeCuePoint(e){return this.callMethod("removeCuePoint",e)}enableTextTrack(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t,showing:n})}disableTextTrack(){return this.callMethod("disableTextTrack")}selectAudioTrack(e,t){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("selectAudioTrack",{language:e,kind:t})}selectDefaultAudioTrack(){return this.callMethod("selectDefaultAudioTrack")}pause(){return this.callMethod("pause")}play(){return this.callMethod("play")}requestFullscreen(){return R.isEnabled?R.request(this.element):this.callMethod("requestFullscreen")}exitFullscreen(){return R.isEnabled?R.exit():this.callMethod("exitFullscreen")}getFullscreen(){return R.isEnabled?v.resolve(R.isFullscreen):this.get("fullscreen")}requestPictureInPicture(){return this.callMethod("requestPictureInPicture")}exitPictureInPicture(){return this.callMethod("exitPictureInPicture")}getPictureInPicture(){return this.get("pictureInPicture")}remotePlaybackPrompt(){return this.callMethod("remotePlaybackPrompt")}unload(){return this.callMethod("unload")}destroy(){return new v(e=>{if(S.delete(this),N.delete(this.element),this._originalElement&&(N.delete(this._originalElement),this._originalElement.removeAttribute("data-vimeo-initialized")),this.element&&"IFRAME"===this.element.nodeName&&this.element.parentNode&&(this.element.parentNode.parentNode&&this._originalElement&&this._originalElement!==this.element.parentNode?this.element.parentNode.parentNode.removeChild(this.element.parentNode):this.element.parentNode.removeChild(this.element)),this.element&&"DIV"===this.element.nodeName&&this.element.parentNode){this.element.removeAttribute("data-vimeo-initialized");const e=this.element.querySelector("iframe");e&&e.parentNode&&(e.parentNode.parentNode&&this._originalElement&&this._originalElement!==e.parentNode?e.parentNode.parentNode.removeChild(e.parentNode):e.parentNode.removeChild(e))}this._window.removeEventListener("message",this._onMessage),R.isEnabled&&R.off("fullscreenchange",this.fullscreenchangeHandler),e()})}getAutopause(){return this.get("autopause")}setAutopause(e){return this.set("autopause",e)}getBuffered(){return this.get("buffered")}getCameraProps(){return this.get("cameraProps")}setCameraProps(e){return this.set("cameraProps",e)}getChapters(){return this.get("chapters")}getCurrentChapter(){return this.get("currentChapter")}getColor(){return this.get("color")}getColors(){return v.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}setColor(e){return this.set("color",e)}setColors(e){if(!Array.isArray(e))return new v((e,t)=>t(new TypeError("Argument must be an array.")));const t=new v(e=>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 v.all(n)}getCuePoints(){return this.get("cuePoints")}getCurrentTime(){return this.get("currentTime")}setCurrentTime(e){return this.set("currentTime",e)}getDuration(){return this.get("duration")}getEnded(){return this.get("ended")}getLoop(){return this.get("loop")}setLoop(e){return this.set("loop",e)}setMuted(e){return this.set("muted",e)}getMuted(){return this.get("muted")}getPaused(){return this.get("paused")}getPlaybackRate(){return this.get("playbackRate")}setPlaybackRate(e){return this.set("playbackRate",e)}getPlayed(){return this.get("played")}getQualities(){return this.get("qualities")}getQuality(){return this.get("quality")}setQuality(e){return this.set("quality",e)}getRemotePlaybackAvailability(){return this.get("remotePlaybackAvailability")}getRemotePlaybackState(){return this.get("remotePlaybackState")}getSeekable(){return this.get("seekable")}getSeeking(){return this.get("seeking")}getTextTracks(){return this.get("textTracks")}getAudioTracks(){return this.get("audioTracks")}getEnabledAudioTrack(){return this.get("enabledAudioTrack")}getDefaultAudioTrack(){return this.get("defaultAudioTrack")}getVideoEmbedCode(){return this.get("videoEmbedCode")}getVideoId(){return this.get("videoId")}getVideoTitle(){return this.get("videoTitle")}getVideoWidth(){return this.get("videoWidth")}getVideoHeight(){return this.get("videoHeight")}getVideoUrl(){return this.get("videoUrl")}getVolume(){return this.get("volume")}setVolume(e){return this.set("volume",e)}async setTimingSrc(e,t){if(!e)throw new TypeError("A Timing Object must be provided.");await this.ready();const n=new F(this,e,t);return _(this,"notifyTimingObjectConnect"),n.addEventListener("disconnect",()=>_(this,"notifyTimingObjectDisconnect")),n}}s||(R=function(){const e=function(){let e;const 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"]];let n=0;const r=t.length,i={};for(;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(t){return new Promise((r,i)=>{const o=function(){n.off("fullscreenchange",o),r()};n.on("fullscreenchange",o);const a=(t=t||document.documentElement)[e.requestFullscreen]();a instanceof Promise&&a.then(o).catch(i)})},exit(){return new Promise((t,r)=>{if(!n.isFullscreen)return void t();const i=function(){n.off("fullscreenchange",i),t()};n.on("fullscreenchange",i);const o=document[e.exitFullscreen]();o instanceof Promise&&o.then(i).catch(r)})},on(e,n){const r=t[e];r&&document.addEventListener(r,n)},off(e,n){const r=t[e];r&&document.removeEventListener(r,n)}};return Object.defineProperties(n,{isFullscreen:{get(){return Boolean(document[e.fullscreenElement])}},element:{enumerable:!0,get(){return document[e.fullscreenElement]}},isEnabled:{enumerable:!0,get(){return Boolean(document[e.fullscreenEnabled])}}}),n}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=e=>{"console"in window&&console.error&&console.error(`There was an error creating an embed: ${e}`)};t.forEach(e=>{try{if(null!==e.getAttribute("data-vimeo-defer"))return;const t=M(e);j(d(t),t,e).then(t=>C(t,e)).catch(n)}catch(e){n(e)}})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",t=>{if(!c(t.origin))return;if(!t.data||"spacechange"!==t.data.event)return;const n=t.source?f(t.source,e):null;n&&(n.parentElement.style.paddingBottom=`${t.data.data[0].bottom}px`)}))}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoSeoMetadataAppended||(window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",t=>{if(!c(t.origin))return;const n=P(t.data);if(!n||"ready"!==n.event)return;const r=t.source?f(t.source,e):null;r&&u(r.src)&&new q(r).callMethod("appendVideoMetadata",window.location.href)}))}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoCheckedUrlTimeParam)return;window.VimeoCheckedUrlTimeParam=!0;const t=e=>{"console"in window&&console.error&&console.error(`There was an error getting video Id: ${e}`)};window.addEventListener("message",n=>{if(!c(n.origin))return;const r=P(n.data);if(!r||"ready"!==r.event)return;const i=n.source?f(n.source,e):null;if(i&&u(i.src)){const e=new q(i);e.getVideoId().then(t=>{const n=new RegExp(`[?&]vimeo_t_${t}=([^&#]*)`).exec(window.location.href);if(n&&n[1]){const t=decodeURI(n[1]);e.setCurrentTime(t)}}).catch(t)}})}(),window.VimeoDRMEmbedsUpdated||(window.VimeoDRMEmbedsUpdated=!0,window.addEventListener("message",e=>{if(!c(e.origin))return;const t=P(e.data);if(!t||"drminitfailed"!==t.event)return;const n=e.source?f(e.source):null;if(!n)return;const r=n.getAttribute("allow")||"";if(!r.includes("encrypted-media")){n.setAttribute("allow",`${r}; encrypted-media`);const e=new URL(n.getAttribute("src"));return e.searchParams.set("forcereload","drm"),void n.setAttribute("src",e.toString())}}))),t.default=q}}]);
@@ -5,7 +5,7 @@
5
5
  * @license MIT
6
6
  */
7
7
 
8
- /*! @vimeo/player v2.30.1 | (c) 2025 Vimeo | MIT License | https://github.com/vimeo/player.js */
8
+ /*! @vimeo/player v2.30.2 | (c) 2026 Vimeo | MIT License | https://github.com/vimeo/player.js */
9
9
 
10
10
  /*! Native Promise Only
11
11
  v0.8.1 (c) Kyle Simpson