From 967edd9edd5ff6542fc46f37b6359347b70a6438 Mon Sep 17 00:00:00 2001
From: fvmartin
Date: Wed, 16 Nov 2022 14:50:33 +0100
Subject: [PATCH 1/7] Fixing lint errors
---
flowplayer/modules/fv-player.js | 26 ++++++++++++++------------
1 file changed, 14 insertions(+), 12 deletions(-)
diff --git a/flowplayer/modules/fv-player.js b/flowplayer/modules/fv-player.js
index e6ab7f8ac..66d2fee4b 100644
--- a/flowplayer/modules/fv-player.js
+++ b/flowplayer/modules/fv-player.js
@@ -1,3 +1,5 @@
+/* eslint-disable no-inner-declarations */
+/* eslint-disable no-cond-assign */
/**
* FV Flowplayer additions!
@@ -51,7 +53,7 @@ if( typeof(fv_flowplayer_conf) != "undefined" ) {
return parseFloat(e[e.length - 1].replace('_', '.'), 10);
}
return 0;
- };
+ }
if( flowplayer.support.iOS && flowplayer.support.iOS.chrome && flowplayer.support.iOS.version == 0 ) {
flowplayer.support.iOS.version = parseIOSVersion(navigator.userAgent);
@@ -220,7 +222,9 @@ function fv_player_preload() {
}
// failsafe is Flowplayer is loaded outside of fv_player_load()
- var playlist = jQuery('.fp-playlist-external[rel='+root.attr('id')+']');
+ var playlist = jQuery('.fp-playlist-external[rel='+root.attr('id')+']'),
+ parsed;
+
if( ( !api.conf.playlist || api.conf.playlist.length == 0 ) && playlist.length && playlist.find('a[data-item]').length > 0 ) { // api.conf.playlist.length necessary for iOS 9 in some setups
var items = [];
playlist.find('a[data-item]').each( function() {
@@ -264,7 +268,7 @@ function fv_player_preload() {
if( jQuery( '#' + $this.parent().attr('rel') ).hasClass('dynamic-playlist') ) return;
- var playlist = jQuery('.fp-playlist-external[rel='+root.attr('id')+']');
+ playlist = jQuery('.fp-playlist-external[rel='+root.attr('id')+']');
fv_player_playlist_active(playlist,this);
@@ -395,9 +399,9 @@ function fv_player_preload() {
});
//is this needed?
- var playlist = jQuery(root).parent().find('div.fp-playlist-vertical[rel='+jQuery(root).attr('id')+']');
+ playlist = jQuery(root).parent().find('div.fp-playlist-vertical[rel='+jQuery(root).attr('id')+']');
if( playlist.length ){
- function check_size_and_all(args) {
+ function check_size_and_all() {
var property = playlist.hasClass('fp-playlist-only-captions') ? 'height' : 'max-height';
if( playlist.parents('.fp-playlist-text-wrapper').hasClass('is-fv-narrow') ){
property = 'max-height';
@@ -411,7 +415,7 @@ function fv_player_preload() {
} );
}
- function vertical_playlist_height(args) {
+ function vertical_playlist_height() {
var height = root.height();
if( height == 0 ) height = root.css('max-height');
return height;
@@ -530,7 +534,7 @@ function fv_player_load( forced_el ) {
}
}
- var conf = false;
+ var conf = false, playlist, parsed;
if( root.attr('data-item') ) {
conf = { clip: fv_player_videos_parse(root.attr('data-item'), root) };
@@ -557,7 +561,7 @@ function fv_player_load( forced_el ) {
}
} );
- jQuery('.fv-playlist-slider-wrapper').each( function(i,el) {
+ jQuery('.fv-playlist-slider-wrapper').each( function() {
var items = jQuery(this).find('a');
jQuery(this).find('.fp-playlist-external').css( 'width', items.outerWidth() * items.length );
});
@@ -580,7 +584,7 @@ function fv_player_playlist_active(playlist,item) {
jQuery('.now-playing').remove();
}
- $playlist = jQuery(playlist);
+ var $playlist = jQuery(playlist),
$item = jQuery(item);
var scroll_parent = false;
@@ -641,8 +645,6 @@ function fv_player_playlist_active(playlist,item) {
}
-var fv_fp_date = new Date();
-var fv_fp_utime = fv_fp_date.getTime();
/* *
@@ -882,7 +884,7 @@ function fv_player_video_link_seek( api, fTime, abEnd, abStart ) {
// unless the video position is > 0
if ( fTime > 0 || api.video.time > 0 ) {
// use the FV Player Pro method if available which considers the custom start/end time
- if( !!api.custom_seek ) {
+ if( api.custom_seek ) {
api.custom_seek(fTime);
} else {
api.seek(fTime);
From 86b83719b6470d9d6ffc055847beb2c488391c15 Mon Sep 17 00:00:00 2001
From: fvmartin
Date: Wed, 16 Nov 2022 16:13:09 +0100
Subject: [PATCH 2/7] YouTube: Do not preload for Android, not necessary
---
flowplayer/fv-player-youtube.dev.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flowplayer/fv-player-youtube.dev.js b/flowplayer/fv-player-youtube.dev.js
index 3e93dac0a..ffdd74409 100644
--- a/flowplayer/fv-player-youtube.dev.js
+++ b/flowplayer/fv-player-youtube.dev.js
@@ -149,7 +149,7 @@ if( typeof(flowplayer) != "undefined" ) {
function fv_player_pro_youtube_is_mobile() {
// Include Safari (which means iPad too)
- return !flowplayer.support.firstframe || flowplayer.support.android || flowplayer.support.iOS || flowplayer.support.browser.safari;
+ return !flowplayer.support.firstframe || flowplayer.support.iOS || flowplayer.support.browser.safari;
}
function fv_player_pro_youtube_is_old_android() {
From 1c95f4c0c742b4b71344b56ae5685b89cf8647f9 Mon Sep 17 00:00:00 2001
From: fvmartin
Date: Wed, 16 Nov 2022 16:13:42 +0100
Subject: [PATCH 3/7] YouTube: Load iframe if in viewport for iOS/Safari
---
flowplayer/fv-player-youtube.dev.js | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/flowplayer/fv-player-youtube.dev.js b/flowplayer/fv-player-youtube.dev.js
index ffdd74409..d1d56a758 100644
--- a/flowplayer/fv-player-youtube.dev.js
+++ b/flowplayer/fv-player-youtube.dev.js
@@ -986,9 +986,25 @@ if( typeof(flowplayer) != "undefined" ) {
if( fv_player_pro_youtube_is_mobile() ) {
// Give Flowplayer a bit of time to finish initializing, like the unload event for splash state players has to finish
- setTimeout( function() {
+
+ load_youtube_in_viewport();
+ jQuery(window).on( 'scroll', load_youtube_in_viewport );
+ }
+
+ function load_youtube_in_viewport() {
+ var rect = root.getBoundingClientRect();
+ if(
+ (
+ rect.top > 0 && rect.top < (window.innerHeight || document.documentElement.clientHeight) ||
+ rect.bottom > 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight)
+ ) &&
+ rect.left >= 0 &&
+ rect.right <= (window.innerWidth || document.documentElement.clientWidth)
+ ) {
+ jQuery(window).off( 'scroll', load_youtube_in_viewport );
+
fv_player_pro_youtube_preload(root,api);
- });
+ }
}
});
From c4f532fa34c39a52657e02c8d8798ca1a6d6ab6f Mon Sep 17 00:00:00 2001
From: fvmartin
Date: Fri, 18 Nov 2022 12:44:54 +0100
Subject: [PATCH 4/7] Revert "YouTube: Do not preload for Android, not
necessary"
This reverts commit 86b83719b6470d9d6ffc055847beb2c488391c15.
---
flowplayer/fv-player-youtube.dev.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flowplayer/fv-player-youtube.dev.js b/flowplayer/fv-player-youtube.dev.js
index d1d56a758..afaef6fd6 100644
--- a/flowplayer/fv-player-youtube.dev.js
+++ b/flowplayer/fv-player-youtube.dev.js
@@ -149,7 +149,7 @@ if( typeof(flowplayer) != "undefined" ) {
function fv_player_pro_youtube_is_mobile() {
// Include Safari (which means iPad too)
- return !flowplayer.support.firstframe || flowplayer.support.iOS || flowplayer.support.browser.safari;
+ return !flowplayer.support.firstframe || flowplayer.support.android || flowplayer.support.iOS || flowplayer.support.browser.safari;
}
function fv_player_pro_youtube_is_old_android() {
From c489f98118f846bdeb5186c81d72f88ccc7b2420 Mon Sep 17 00:00:00 2001
From: fvmartin
Date: Fri, 18 Nov 2022 12:49:33 +0100
Subject: [PATCH 5/7] YouTube: Mobile viewport preload
---
flowplayer/fv-player-youtube.dev.js | 27 +++++++++++++++++----------
1 file changed, 17 insertions(+), 10 deletions(-)
diff --git a/flowplayer/fv-player-youtube.dev.js b/flowplayer/fv-player-youtube.dev.js
index afaef6fd6..77458d38a 100644
--- a/flowplayer/fv-player-youtube.dev.js
+++ b/flowplayer/fv-player-youtube.dev.js
@@ -215,13 +215,17 @@ if( typeof(flowplayer) != "undefined" ) {
wrapperTag.className = 'fp-engine fvyoutube-engine';
common.prepend(common.find(".fp-player", root)[0], wrapperTag);
- //console.log('new YT preload'); // probably shouldn't happen when used in lightbox
+ if( window.fv_player_pro_yt_load ) {
+ preload( true );
+ } else {
// this is the event which lets the player load YouTube
- jQuery(document).one('fv-player-yt-api-loaded', function() {
+ jQuery(document).one( 'fv-player-yt-api-loaded', preload );
+ }
- // only one player can enter the loading phase
- if( ( typeof(YT) == "undefined" || typeof(YT.Player) == "undefined" ) && window.fv_player_pro_yt_loading ) {
+ function preload( force ) {
+ // only one player can enter the loading phase, unless it's forced
+ if( ( typeof(YT) == "undefined" || typeof(YT.Player) == "undefined" ) && window.fv_player_pro_yt_loading && !force ) {
return;
}
@@ -245,8 +249,6 @@ if( typeof(flowplayer) != "undefined" ) {
jQuery('.fp-engine.fvyoutube-engine',root)[0].allowFullscreen = false;
-
-
// splash needs to cover the iframe
var splash = jQuery('.fp-splash',root);
jQuery('.fp-ui',root).before( splash );
@@ -265,7 +267,7 @@ if( typeof(flowplayer) != "undefined" ) {
api.fv_yt_onError = fv_player_pro_youtube_addRemovableEventListener(api.youtube,'onError',fv_player_pro_youtube_onError);
}, 50 );
- });
+ }
if( !window.fv_player_pro_yt_load ) {
window.fv_player_pro_yt_load = true;
@@ -988,15 +990,20 @@ if( typeof(flowplayer) != "undefined" ) {
// Give Flowplayer a bit of time to finish initializing, like the unload event for splash state players has to finish
load_youtube_in_viewport();
- jQuery(window).on( 'scroll', load_youtube_in_viewport );
+
+ var debounce = false;
+ jQuery(window).on( 'scroll', function() {
+ clearInterval(debounce);
+ debounce = setTimeout( load_youtube_in_viewport, 100 );
+ });
}
function load_youtube_in_viewport() {
var rect = root.getBoundingClientRect();
if(
(
- rect.top > 0 && rect.top < (window.innerHeight || document.documentElement.clientHeight) ||
- rect.bottom > 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight)
+ rect.top > 0 && ( rect.top + 32 ) < (window.innerHeight || document.documentElement.clientHeight) ||
+ rect.bottom > 16 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight)
) &&
rect.left >= 0 &&
rect.right <= (window.innerWidth || document.documentElement.clientWidth)
From 85d2ce96027c57c10a71585a61d37f7189448558 Mon Sep 17 00:00:00 2001
From: fvmartin
Date: Fri, 18 Nov 2022 12:52:59 +0100
Subject: [PATCH 6/7] YouTube: Mobile viewport preload - fix event removal
---
flowplayer/fv-player-youtube.dev.js | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/flowplayer/fv-player-youtube.dev.js b/flowplayer/fv-player-youtube.dev.js
index 77458d38a..c21fdfcfb 100644
--- a/flowplayer/fv-player-youtube.dev.js
+++ b/flowplayer/fv-player-youtube.dev.js
@@ -991,11 +991,13 @@ if( typeof(flowplayer) != "undefined" ) {
load_youtube_in_viewport();
+ jQuery(window).on( 'scroll', load_youtube_in_viewport_debounce );
+ }
+
var debounce = false;
- jQuery(window).on( 'scroll', function() {
+ function load_youtube_in_viewport_debounce() {
clearInterval(debounce);
debounce = setTimeout( load_youtube_in_viewport, 100 );
- });
}
function load_youtube_in_viewport() {
@@ -1008,7 +1010,7 @@ if( typeof(flowplayer) != "undefined" ) {
rect.left >= 0 &&
rect.right <= (window.innerWidth || document.documentElement.clientWidth)
) {
- jQuery(window).off( 'scroll', load_youtube_in_viewport );
+ jQuery(window).off( 'scroll', load_youtube_in_viewport_debounce );
fv_player_pro_youtube_preload(root,api);
}
From 34622632abf117733b6f4d79f9fe5144417094cc Mon Sep 17 00:00:00 2001
From: fvmartin
Date: Fri, 18 Nov 2022 13:01:55 +0100
Subject: [PATCH 7/7] Min.js
---
flowplayer.php | 2 +-
flowplayer/fv-player-youtube.min.js | 2 +-
flowplayer/fv-player.min.js | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/flowplayer.php b/flowplayer.php
index 4bda57dd6..33072505f 100644
--- a/flowplayer.php
+++ b/flowplayer.php
@@ -27,7 +27,7 @@
*/
global $fv_wp_flowplayer_ver;
-$fv_wp_flowplayer_ver = '7.5.29.7212.10';
+$fv_wp_flowplayer_ver = '7.5.29.7212.11';
$fv_wp_flowplayer_core_ver = '7.2.12.1';
include_once( dirname( __FILE__ ) . '/includes/extra-functions.php' );
if( file_exists( dirname( __FILE__ ) . '/includes/module.php' ) ) {
diff --git a/flowplayer/fv-player-youtube.min.js b/flowplayer/fv-player-youtube.min.js
index 74fa80fb3..6221f5dbc 100644
--- a/flowplayer/fv-player-youtube.min.js
+++ b/flowplayer/fv-player-youtube.min.js
@@ -1 +1 @@
-var tag,fv_player_pro_youtube_get_video_id,fv_player_pro_youtube_addRemovableEventListener,fv_player_pro_youtube_onReady,fv_player_pro_youtube_onStateChange,fv_player_pro_youtube_onError,fv_player_pro_youtube_is_mobile,fv_player_pro_youtube_is_old_android,fv_player_pro_youtube_player_vars,fv_player_pro_youtube_preload;fv_flowplayer_conf.youtube&&(window.jQuery?jQuery.getScript("https://www.youtube.com/iframe_api"):((tag=document.createElement("script")).src="https://www.youtube.com/iframe_api",document.body.appendChild(tag))),"undefined"!=typeof flowplayer&&(fv_player_pro_youtube_get_video_id=function(e){var o;return((o=e.match(/(?:\?|&)v=([a-zA-Z0-9_-]+)(?:\?|$|&)/))||(o=e.match(/youtu.be\/([a-zA-Z0-9_-]+)(?:\?|$|&)/))||(o=e.match(/embed\/([a-zA-Z0-9_-]+)(?:\?|$|&)/))||!!(o=e.match(/shorts\/([a-zA-Z0-9_-]+)/)))&&o[1]},fv_player_pro_youtube_addRemovableEventListener=function(e,o,t){var r="youtubeCallbackFunction"+Math.random().toString(36).substr(2,7);return window[r]=t,e.addEventListener(o,r),function(){window[r]=function(){},void 0!==e.removeEventListener&&e.removeEventListener(o,r)}},fv_player_pro_youtube_onReady=function(e){e=jQuery(e.target.getIframe()).closest(".flowplayer"),e.removeClass("is-loading"),e=e.data("flowplayer");e.loading=!1,e.trigger("yt-ready"),jQuery(document).trigger("fv-player-yt-api-loaded")},fv_player_pro_youtube_onStateChange=function(e){var o=jQuery(e.target.getIframe()).parents(".flowplayer");switch(e.data){case-1:jQuery(".fp-splash",o).css("pointer-events",""),o.addClass("is-loading");break;case YT.PlayerState.PLAYING:o.data("flowplayer").load();break;case YT.PlayerState.BUFFERING:o.addClass("is-loading")}},fv_player_pro_youtube_onError=function(e){var o=jQuery(e.target.getIframe()).parents(".flowplayer"),t=o.data("flowplayer"),e=(fv_player_log("FV Player Youtube onError for preloaded player",e),(0
")})),o.trigger("fv_player_videos_parse",a),a}function fv_player_in_iframe(){try{return window.self!==window.top}catch(e){return!0}}function fv_escape_attr(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.replace(/[&<>"']/g,function(e){return t[e]})}function fv_player_preload(){function e(){jQuery(".flowplayer.fp-is-embed").each(function(){var e=jQuery(this);e.hasClass("has-chapters")||e.hasClass("has-transcript")||0!=jQuery(".fp-playlist-external[rel="+e.attr("id")+"]").length||e.height(jQuery(window).height())})}if(flowplayer.support.touch&&jQuery(".fp-playlist-external.fv-playlist-design-2017").addClass("visible-captions"),flowplayer(function(n,r){localStorage.flowplayerTestStorage&&delete localStorage.flowplayerTestStorage;var e,t,i=(r=jQuery(r)).find(".fp-player"),l=!1,o=(r.hasClass("fixed-controls")&&r.find(".fp-controls").on("click",function(e){n.loading||n.ready||(e.preventDefault(),e.stopPropagation(),n.load())}),flowplayer.support.volume||flowplayer.support.autoplay||r.find(".fp-volume").hide(),0==r.data("volume")&&r.hasClass("no-controlbar")&&r.find(".fp-volume").remove(),jQuery(".fp-playlist-external[rel="+r.attr("id")+"]")),s=((!n.conf.playlist||0==n.conf.playlist.length)&&o.length&&0 '),t.prepend(e)),e.attr("alt",o.fv_title?fv_escape_attr(o.fv_title):"video"),e.attr("src",a)):e.length&&e.remove()}n.bind("load",function(e,t,o){var a;t.conf.playlist.length&&(o.type.match(/^audio/)&&!l&&(a=(a=(o=(t=s.find("a").eq(o.index)).data("item")).splash)||t.find("img").attr("src"),p(r,i,o,a)),l=!1)}),n.bind("ready",function(e,t,o){setTimeout(function(){var e;-1'+fv_flowplayer_translations.playlist_current+" "),$playlist.parent().find(".flowplayer").length||(e=!0),($playlist.hasClass("fp-playlist-vertical")||$playlist.hasClass("fp-playlist-horizontal")&&$playlist.hasClass("is-audio"))&&!function(e){var t=e.getBoundingClientRect(),o=t.top,a=t.height,n=o+a,e=e.parentNode;do{if(t=e.getBoundingClientRect(),n<=t.bottom==!1)return;if(o<=t.top)return}while(e=e.parentNode,e!=document.body);return n<=document.documentElement.clientHeight}($item.get(0))?(o=e?$playlist.parent():$playlist).animate({scrollTop:o.scrollTop()+($item.position().top-o.position().top)},750):$playlist.hasClass("fp-playlist-horizontal")&&!function(e){var t=e.getBoundingClientRect(),o=t.left,a=t.width,n=o+a,e=e.parentNode;do{if(t=e.getBoundingClientRect(),n<=t.right==!1)return;if(o<=t.left)return}while(e=e.parentNode,e!=document.body);return n<=document.documentElement.clientWidth}($item.get(0))&&(o=e?$playlist.parent():$playlist).animate({scrollLeft:o.scrollLeft()+($item.position().left-o.position().left)},750)}jQuery(document).ready(function(){var e=0,t=setInterval(function(){++e<1e3&&(window.fv_video_intelligence_conf&&!window.FV_Player_IMA||window.fv_vast_conf&&!window.FV_Player_IMA||window.fv_player_pro&&!window.FV_Flowplayer_Pro&&document.getElementById("fv_player_pro")!=fv_player_pro||window.fv_player_user_playlists&&!window.fv_player_user_playlists.is_loaded||window.FV_Player_JS_Loader_scripts_total&&window.FV_Player_JS_Loader_scripts_loaded'),jQuery(".fp-player",e).append(a)),jQuery(''+t+"
"));return a.append(n),"string"==typeof o&&jQuery(e).data("flowplayer").on(o,function(){n.fadeOut(100,function(){jQuery(this).remove()})}),0 ")}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function is_ga_4(e){return!(void 0===e.conf.fvanalytics||!e.conf.fvanalytics||!e.conf.fvanalytics.startsWith("G-"))}function fv_player_track(e,t,o,a,n,r){if("object"!=_typeof(e)&&(r=n,n=a,a=o,o=t,t=e,e=!1),t=t||flowplayer.conf.fvanalytics,void 0===a&&(a="Unknown engine"),/fv_player_track_debug/.test(window.location.href)&&console.log("FV Player Track: "+o+" - "+a+" '"+n+"'",r),"undefined"!=typeof gtag)is_ga_4(e)?gtag("event",o,{video_title:n,video_current_time:e.video.time,video_provider:a,video_duration:e.video.duration,value:r||1}):gtag("event",o,{event_category:a,event_label:n,value:r||1});else if(t&&"undefined"!=typeof ga)ga("create",t,"auto",n,{allowLinker:!0}),ga("require","linker"),r?ga("send","event",o,a,n,r):ga("send","event",o,a,n);else if(t&&"undefined"!=typeof _gat){e=_gat._getTracker(t);if(void 0===e._setAllowLinker)return;e._setAllowLinker(!0),r?e._trackEvent(o,a,n,r):e._trackEvent(o,a,n)}flowplayer.conf.matomo_domain&&flowplayer.conf.matomo_site_id&&"undefined"!=typeof _paq&&(r?_paq.push(["trackEvent",o,a,n,r]):_paq.push(["trackEvent",o,a,n]))}function fv_player_track_name(e,t){e=e.attr("title");return(e=(e=e||void 0===t.fv_title?e:t.fv_title)||void 0===t.title?e:t.title)||void 0===t.src||(e=t.src.split("/").slice(-1)[0].replace(/\.(\w{3,4})(\?.*)?$/i,""),t.type.match(/mpegurl/)&&(e=t.src.split("/").slice(-2)[0].replace(/\.(\w{3,4})(\?.*)?$/i,"")+"/"+e)),e}flowplayer(function(o,r){var n,t,i,a,l;function e(){var e;"dash"==o.engine.engineName?((e=i[o.engine.dash.getQualityFor("video")]).qualityIndex!=a&&(a=e.qualityIndex,s(e.qualityIndex,i)),t.match(/dash_debug/)&&f(e.width,e.height,e.bitrate)):"hlsjs-lite"==o.engine.engineName&&(n.currentLevel!=a&&(a=n.currentLevel,s(n.currentLevel,n.levels)),t.match(/hls_debug/)&&(e=n.levels[n.currentLevel])&&f(e.width,e.height,e.bitrate))}function s(e,t){var o,a,n;t[e]&&(o=t[e].height,a=541,n=1e5,jQuery(t).each(function(e,t){720<=t.height&&t.height<1400&&(a=720),t.heighto&&(o=e)}),o&&(console.log("FV Player: Picked "+t.levels[o].height+"p quality"),n.startLevel=o,n.currentLevel=o)})}),r=jQuery(r),t=document.location.search,localStorage.FVPlayerDashQuality&&(o.conf.dash||(o.conf.dash={}),o.conf.dash.initialVideoQuality="restore"),r.on("click",".fp-qsel-menu a",function(){var e;"hlsjs-lite"==o.engine.engineName&&(-1==(e=jQuery(this).data("quality"))?localStorage.removeItem("FVPlayerHLSQuality"):(e=n.levels[e],localStorage.FVPlayerHLSQuality=e.height))}),localStorage.FVPlayerHLSQuality?(o.conf.hlsjs.startLevel=parseInt(localStorage.FVPlayerHLSQuality),o.conf.hlsjs.testBandwidth=!1,o.conf.hlsjs.autoLevelEnabled=!1):flowplayer.conf.hd_streaming&&!flowplayer.support.fvmobile&&(o.conf.hlsjs.startLevel=3,o.conf.hlsjs.testBandwidth=!1,o.conf.hlsjs.autoLevelEnabled=!1),o.bind("quality",function(e,t,o){"dash"==t.engine.engineName&&(-1==o?localStorage.removeItem("FVPlayerDashQuality"):i[o]&&(localStorage.FVPlayerDashQuality=i[o].height))}),i=[],a=-1,o.bind("ready",function(e,t){var a;r.find(".fp-qsel-menu strong").text(fv_flowplayer_translations.quality),"dash"==t.engine.engineName?(i=t.engine.dash.getBitrateInfoListFor("video"),localStorage.FVPlayerDashQuality&&t.conf.dash.initialVideoQuality&&t.quality(t.conf.dash.initialVideoQuality),c()):"hlsjs-lite"==t.engine.engineName?(r.addClass("is-loading"),t.loading=!0,t.one("progress",function(){t.loading&&(r.removeClass("is-loading"),t.loading=!1)}),t.video.qualities&&2').appendTo(r.find(".fp-player"))),o.bind("ready progress",e),o.bind("quality",function(){setTimeout(e,0)}))}),flowplayer(function(a,n){var r=(n=jQuery(n)).attr("id"),i=!1;function l(){var t,o,e=n.attr("data-ad");if(void 0!==e&&e.length){try{e=JSON.parse(e)}catch(e){return}!i&&!n.hasClass("is-cva")&&n.width()>=parseInt(e.width)&&(e=(e=e.html).replace("%random%",Math.random()),i=jQuery(''+e+"
"),n.find(".fp-player").append(i),t=0,o=setInterval(function(){var e=i&&i.find(".adsbygoogle").height();(200<++t||0n.height()&&i.addClass("tall-ad")},50),setTimeout(function(){n.find(".wpfp_custom_ad video").length&&a.pause()},500))}}function o(e){var t=n.attr("data-popup");if(void 0!==t&&t.length){try{t=JSON.parse(t)}catch(e){return}("finish"==e||t.pause||t.html.match(/fv-player-ppv-purchase-btn-wrapper/))&&0==n.find(".wpfp_custom_popup").length&&(n.addClass("is-popup-showing"),n.find(".fp-player").append('"))}}n.data("end_popup_preview")&&jQuery(document).ready(function(){a.trigger("finish",[a])}),a.bind("ready",function(e,t){1==i.length&&(i.remove(),i=!1),n.data("ad_show_after")||l()}).bind("progress",function(e,t,o){o>n.data("ad_show_after")&&l()}).bind("finish",function(e,t){void 0!==t.video.index&&t.video.index+1!=t.conf.playlist.length||o(e.type)}).bind("pause",function(e,t){o(e.type)}).bind("resume unload seek",function(e,t){n.hasClass("is-popup-showing")&&(n.find(".wpfp_custom_popup").remove(),n.removeClass("is-popup-showing"))})}),jQuery(document).on("click",".fv_fp_close",function(){var e=jQuery(this).parents(".wpfp_custom_ad_content"),t=e.find("video");return e.fadeOut(),t.length&&t[0].pause(),!1}),jQuery(document).on("focus",".fv_player_popup input[type=text], .fv_player_popup input[type=email], .fv_player_popup textarea",function(){var e=jQuery(this).parents(".flowplayer").data("flowplayer");e&&e.disable(!0)}),jQuery(document).on("blur",".fv_player_popup input[type=text], .fv_player_popup input[type=email], .fv_player_popup textarea",function(){var e=jQuery(this).parents(".flowplayer").data("flowplayer");e&&e.disable(!1)}),flowplayer(function(a,s){var n,r,e,t,o,s=jQuery(s),i=flowplayer.bean,l=0,f=0,c=("undefined"==typeof ga&&a.conf.fvanalytics&&"undefined"==typeof _gat&&"undefined"==typeof gtag&&(is_ga_4(a)?jQuery.getScript({url:"https://www.googletagmanager.com/gtag/js?id="+a.conf.fvanalytics,cache:!0},function(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("config",a.conf.fvanalytics)}):jQuery.getScript({url:"https://www.google-analytics.com/analytics.js",cache:!0},function(){ga("create",a.conf.fvanalytics,"auto")})),!window._paq&&a.conf.matomo_domain&&a.conf.matomo_site_id&&(e="//"+a.conf.matomo_domain+"/",(o=window._paq=window._paq||[]).push(["setTrackerUrl",e+"matomo.php"]),o.push(["setSiteId",a.conf.matomo_site_id]),t=(o=document).createElement("script"),o=o.getElementsByTagName("script")[0],t.type="text/javascript",t.async=!0,t.src=e+"matomo.js",o.parentNode.insertBefore(t,o)),a.bind("progress",function(e,t,o){var a=t.video,n=a.duration,r=0,i=fv_player_track_name(s,a);if(n&&(19*n/20 strong:visible").length+n.find(".fp-controls > .fp-icon:visible").length,t()},0)}),a.on("unload pause finish error",function(){"undefined"!=typeof checker&&clearInterval(checker)})}),jQuery(window).on("resize tabsactivate",function(){jQuery(".fp-playlist-external").each(function(){var e=jQuery(this);900<=e.parent().width()?e.addClass("is-wide"):e.removeClass("is-wide")})}).trigger("resize"),flowplayer(function(e,a){a=jQuery(a),e.bind("ready",function(){/Chrome/.test(navigator.userAgent)&&54'+fv_flowplayer_translations.mobile_browser_detected_1+' '+fv_flowplayer_translations.mobile_browser_detected_2+" ."))}if(isIE11&&(jQuery(document).ready(function(){jQuery(".fp-waiting").hide()}),flowplayer(function(e,t){e.bind("load",function(e){jQuery(e.currentTarget).find(".fp-waiting").show()}).bind("beforeseek",function(e){jQuery(e.currentTarget).find(".fp-waiting").show()}).bind("progress",function(e){jQuery(e.currentTarget).find(".fp-waiting").hide()}).bind("seek",function(e){jQuery(e.currentTarget).find(".fp-waiting").hide()}).bind("fullscreen",function(e){jQuery("#wpadminbar").hide()}).bind("fullscreen-exit",function(e){jQuery("#wpadminbar").show()})})),flowplayer.support.browser&&flowplayer.support.browser.msie&&parseInt(flowplayer.support.browser.version,10)<9&&jQuery(".flowplayer").each(function(){jQuery(this).css("width",jQuery(this).css("max-width")),jQuery(this).css("height",jQuery(this).css("max-height"))}),location.href.match(/elementor-preview=/)?(console.log("FV Player: Elementor editor is active"),setInterval(fv_player_load,1e3)):location.href.match(/brizy-edit-iframe/)&&(console.log("FV Player: Brizy editor is active"),setInterval(fv_player_load,1e3)),window.DELEGATE_NAMES&&flowplayer(function(e,t){fv_player_notice(t,fv_flowplayer_translations.chrome_extension_disable_html5_autoplay)}),flowplayer(function(e,t){flowplayer.bean.off(t,"contextmenu")}),location.href.match(/elementor-preview=/)&&(console.log("FV Player: Elementor editor is active"),setInterval(fv_player_load,1e3)),flowplayer(function(o,a){void 0!==(a=jQuery(a)).data("fv-embed")&&a.data("fv-embed")&&"false"!=a.data("fv-embed")&&(o.embedCode=function(){o.video;var e=a.width(),t=a.height();return t+=2,(a.hasClass("has-chapters")||a.hasClass("has-transcript"))&&(t+=300),0'})}),jQuery(document).on("click",".flowplayer .embed-code-toggle",function(){var e=jQuery(this).closest(".flowplayer");if("undefined"!=typeof fv_player_editor_conf)return fv_player_notice(e,fv_player_editor_translations.embed_notice,2e3),!1;var t=jQuery(this),o=t.parents(".flowplayer"),e=o.data("flowplayer");return"function"==typeof e.embedCode&&o.find(".embed-code textarea").val(e.embedCode()),fv_player_clipboard(o.find(".embed-code textarea").val(),function(){fv_player_notice(o,fv_flowplayer_translations.embed_copied,2e3)},function(){t.parents(".fvp-share-bar").find(".embed-code").toggle(),t.parents(".fvp-share-bar").toggleClass("visible")}),!1}),flowplayer(function(a,n){var r,i,l,s,f,c,p,e,d;function t(e){for(var t=n;t;){try{var o=getComputedStyle(t);o.transform&&(t.style.transform=e?"none":""),o.zIndex&&(t.style.zIndex=e?"auto":"")}catch(e){}t=t.parentNode}}0!=jQuery(n).data("fullscreen")&&(a.one("ready",function(e,t,o){0==jQuery(n).find(".fp-fullscreen").length&&jQuery(n).find(".fp-header").append(' ')}),r="fullscreen",i="fullscreen-exit",l=flowplayer.support.fullscreen,s=window,p=flowplayer.bean,a.fullscreen=function(e){if(!a.disabled){var t=d.find("video.fp-engine",n)[0];if(flowplayer.conf.native_fullscreen&&t&&flowplayer.support.iOS)return a.trigger(r,[a]),p.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement===t&&(p.off(document,".nativefullscreen"),p.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement||(p.off(document,".nativefullscreen"),a.trigger(i,[a]))}))}),t.webkitEnterFullScreen(),void p.one(t,"webkitendfullscreen",function(){p.off(document,"fullscreenchange.nativefullscreen"),a.trigger(i,[a]),d.prop(t,"controls",!0),d.prop(t,"controls",!1)});var o=jQuery(n).find(".fp-player")[0];return(e=void 0===e?!a.isFullscreen:e)&&(c=s.scrollY,f=s.scrollX),l?e?["requestFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].forEach(function(e){"function"==typeof o[e]&&(o[e]({navigationUI:"hide"}),"webkitRequestFullScreen"!==e||document.webkitFullscreenElement||o[e]())}):["exitFullscreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].forEach(function(e){"function"==typeof document[e]&&document[e]()}):a.trigger(e?r:i,[a]),a}},d=flowplayer.common,a.on("mousedown.fs",function(){+new Date-e<150&&a.ready&&a.fullscreen(),e=+new Date}),a.on(r,function(){d.addClass(n,"is-fullscreen"),d.toggleClass(n,"fp-minimal-fullscreen",d.hasClass(n,"fp-minimal")),d.removeClass(n,"fp-minimal"),l||(d.css(n,"position","fixed"),t(!0)),a.isFullscreen=!0}).on(i,function(){var e;d.toggleClass(n,"fp-minimal",d.hasClass(n,"fp-minimal-fullscreen")),d.removeClass(n,"fp-minimal-fullscreen"),l||"html5"!==a.engine||(e=n.css("opacity")||"",d.css(n,"opacity",0)),l||(d.css(n,"position",""),t(!1)),d.removeClass(n,"is-fullscreen"),l||"html5"!==a.engine||setTimeout(function(){n.css("opacity",e)}),a.isFullscreen=!1,"fvyoutube"!=a.engine.engineName&&s.scrollTo(f,c)}).on("unload",function(){a.isFullscreen&&a.fullscreen()}),a.on("shutdown",function(){FULL_PLAYER=null,d.removeNode(wrapper)}))}),flowplayer(function(o,a){var e,t,n,r,i,l;function s(){var e=window.innerWidthe}function f(){o.isFullscreen&&window.innerWidth>window.innerHeight&&s()&&!l&&(fv_player_notice(a,fv_flowplayer_translations.iphone_swipe_up_location_bar,"resize-good"),l=setTimeout(function(){l=!1,o.trigger("resize-good")},5e3))}a=jQuery(a),flowplayer.conf.wpadmin||jQuery(a).hasClass("is-audio")||(e=(e=jQuery(".fp-playlist-external[rel="+a.attr("id")+"]")).hasClass("fp-playlist-season")||e.hasClass("fp-playlist-polaroid"),t=1==a.data("fsforce"),0!=a.data("fullscreen")&&(flowplayer.conf.mobile_force_fullscreen&&flowplayer.support.fvmobile||!flowplayer.support.fullscreen&&t||e?(flowplayer.support.fullscreen||o.bind("ready",function(){o.video.vr||o.fullscreen(!0)}),a.on("click",function(){o.ready&&!o.paused||o.fullscreen(!0)}),jQuery("[rel="+a.attr("id")+"] a").on("click",function(e){o.isFullscreen||(o.fullscreen(),o.resume())}),o.on("resume",function(){o.video.vr||o.isFullscreen||o.fullscreen()}),o.on("finish",function(){0!=o.conf.playlist.length&&o.conf.playlist.length-1!=o.video.index||o.fullscreen(!1)}).on("fullscreen",function(e,t){a.addClass("forced-fullscreen")}).on("fullscreen-exit",function(e,t){t.pause(),a.removeClass("forced-fullscreen")})):t&&(r=a.find(".fp-unload"),i=!1,o.isFakeFullscreen=!1,a.addClass("is-closeable"),a.on("click",function(e){o.ready||e.target==r[0]||o.fakeFullscreen(!0)}),r.on("click",function(e){return o.ready&&o.isFullscreen?o.fullscreen(!1):o.loading&&(i=!0,o.one("resume",function(e){i=!1,o.pause()})),o.fakeFullscreen(!1),!1}),jQuery("[rel="+a.attr("id")+"] a").on("click",function(e){o.isFakeFullscreen||(o.fakeFullscreen(),o.resume())}),o.on("resume",function(){i||o.isFakeFullscreen||o.fakeFullscreen()}).on("finish",function(){0!=o.conf.playlist.length&&o.conf.playlist.length-1!=o.video.index||o.fakeFullscreen(!1)}).on("fullscreen",function(e,t){a.removeClass("fake-fullscreen")}).on("fullscreen-exit",function(e,t){t.isFakeFullscreen&&t.fakeFullscreen(!0,!0)}).on("unload",function(e,t){}),o.fakeFullscreen=function(e,t){(t||o.isFakeFullscreen!=e&&!o.disabled)&&(void 0===n&&(n=a.css("position")),void 0===e&&(e=!o.isFakeFullscreen),o.isFakeFullscreen=e,o.trigger(e?"fakefullscreen":"fakefullscreen-exit",[o]),a.toggleClass("is-fullscreen fake-fullscreen forced-fullscreen",e),e?a.css("position","fixed"):a.css("position",n))}),flowplayer.support.android&&flowplayer.conf.mobile_landscape_fullscreen&&window.screen&&window.screen.orientation&&o.on("fullscreen",function(e,t){void 0!==(t=t).video.width&&void 0!==t.video.height&&0!=t.video.width&&0!=t.video.height&&t.video.width'+fv_flowplayer_translations.audio_button+""),(s=jQuery('').insertAfter(a.find(".fp-controls"))).append(""+fv_flowplayer_translations.audio_menu+" "),n.forEach(function(e){s.append(''+e.name+" ")}),l.insertAfter(a.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),s.hasClass("fp-active")?o.hideMenu(s[0]):(a.click(),o.showMenu(s[0]))}),jQuery("a",s).on("click",function(e){var t=e.target.getAttribute("data-audio");if(r){var o=r.audioTracks[r.audioTrack].groupId,e=r.audioTracks.filter(function(e){return e.groupId===o&&(e.name===t||e.lang===t)})[0];r.audioTrack=e.id,c(e)}else{var a,n=f();for(a in n)n.hasOwnProperty(a)&&n[a].label==t&&(n[a].enabled=!0,c(n[a]))}}),r)c(r.audioTracks[r.audioTrack]);else{var e,t=f();for(e in t)t.hasOwnProperty(e)&&t[e].enabled&&c(t[e])}}flowplayer.engine("hlsjs-lite").plugin(function(e){r=e.hls}),o.bind("ready",function(e,t){var o;jQuery(s).remove(),jQuery(l).remove(),r&&"application/x-mpegurl"==t.video.type&&(i=[],n=[],(o=r).levels.forEach(function(e){e=e.attrs.AUDIO;e&&i.indexOf(e)<0&&i.push(e),i.length&&(n=o.audioTracks.filter(function(e){return e.groupId===i[0]}))}),p())}),o.one("progress",function(){if("html5"==o.engine.engineName&&"application/x-mpegurl"==o.video.type){i=[],n=[];var e,t=f();for(e in t)t.hasOwnProperty(e)&&n.push({id:t[e].id,name:t[e].label});p()}})}),flowplayer(function(e,n){var r=-1,i=!1;e.on("error",function(e,t,o){var a;4==o.code&&"hlsjs"==t.engine.engineName&&(console.log("FV Player: HLSJS failed to play the video, switching to Flash HLS"),t.error=t.loading=!1,jQuery(n).removeClass("is-error"),jQuery(flowplayer.engines).each(function(e,t){"hlsjs"==flowplayer.engines[e].engineName&&(r=e,i=flowplayer.engines[e],delete flowplayer.engines[e])}),(a=(0<(o=void 0!==t.video.index?t.video.index:0)?t.conf.playlist[o]:t.conf.clip).sources).index=o,t.load({sources:a}),t.bind("unload error",function(){flowplayer.engines[r]=i}))})}),flowplayer(function(e,l){var s,t=e.conf.live_stream_reload||30,f=t,c=fv_flowplayer_translations.live_stream_retry;function p(e){e=Number(e);var t=Math.floor(e/86400),o=Math.floor(e%86400/3600),a=Math.floor(e%3600/60),e=Math.floor(e%60),n=fv_flowplayer_translations,t=0'+fv_flowplayer_translations.live_stream_failed+""),n.addClass("is-error")},1e4),jQuery(e.currentTarget).data("live_check",a))}).bind("ready",function(e,t,o){clearInterval(jQuery(e.currentTarget).data("live_check"))}).bind("error",function(e,t,o){e=jQuery(e.currentTarget);e.data("live")&&e.find(".fp-message").html(fv_flowplayer_translations.live_stream_failed_2)})}),!function(a){flowplayer(function(e,o){jQuery(o).hasClass("is-cva")||a(document).on("submit","#"+jQuery(o).attr("id")+" .mailchimp-form",function(e){e.preventDefault(),a(".mailchimp-response",o).remove(),a("input[type=submit]",o).attr("disabled","disabled").addClass("fv-form-loading");var t={action:"fv_wp_flowplayer_email_signup"};a("[name]",this).each(function(){t[this.name]=a(this).val()}),a.post(fv_player.ajaxurl,t,function(e){e=JSON.parse(e),a('
').insertAfter(".mailchimp-form",o),e.text.match(/already subscribed/)&&(e.status="ERROR"),"OK"===e.status?(a(".mailchimp-form input[type=text],.mailchimp-form input[type=email]",o).val(""),a(".mailchimp-response",o).removeClass("is-fv-error").html(e.text),setTimeout(function(){a(".wpfp_custom_popup",o).fadeOut()},2e3)):a(".mailchimp-response",o).addClass("is-fv-error").html(e.text),a("input[type=submit]",o).removeAttr("disabled").removeClass("fv-form-loading")})})})}(jQuery),"undefined"!=typeof fv_flowplayer_mobile_switch_array)for(var fv_flowplayer_mobile_switch_i in fv_flowplayer_mobile_switch_array)fv_flowplayer_mobile_switch_array.hasOwnProperty(fv_flowplayer_mobile_switch_i)&&fv_flowplayer_mobile_switch(fv_flowplayer_mobile_switch_i);function fv_flowplayer_browser_ff_m4v(e){flowplayer.support.browser&&flowplayer.support.browser.mozilla&&-1!=navigator.userAgentData.platform.indexOf("Win")&&jQuery("#wpfp_"+e).attr("data-engine","flash")}if(flowplayer(function(n,e){var t,o;function a(e,t,o){var a;n.ready?(n.seek(o),(a=t).addClass("is-active"),setTimeout(function(){a.removeClass("is-active")},500)):n.toggle(),e.preventDefault()}flowplayer.support.touch&&(jQuery.fn.fv_single_double_click=function(a,n,r){return this.each(function(){var t=0,o=this;jQuery(this).on("click",function(e){1==++t&&setTimeout(function(){(1==t?a:n).call(o,e),t=0},r||300)})})},e=jQuery(e),t=jQuery('-10s
'),o=jQuery('+10s
'),t.fv_single_double_click(function(){n.toggle()},function(e){a(e,t,!!n.ready&&n.video.time-10)}),o.fv_single_double_click(function(){n.toggle()},function(e){a(e,o,!!n.ready&&n.video.time+10)}),e.find(".fp-ui").append(t).append(o))}),flowplayer(function(a,e){var n=(e=jQuery(e)).data("flowplayer-instance-id");flowplayer.audible_instance=-1,a.one("load",function(){setTimeout(function(){a.conf.splash=!1},0)}),a.on("ready",function(){var o=0==e.data("volume");o||(flowplayer.audible_instance=n),jQuery(".flowplayer[data-flowplayer-instance-id]").each(function(){var e=jQuery(this).data("flowplayer"),t=jQuery(this).data("flowplayer-instance-id");-1!=flowplayer.audible_instance&&t!=flowplayer.audible_instance&&t!=n&&e&&(e.ready?a.conf.multiple_playback?o||e.mute(!0,!0):e.playing&&e.pause():(e.clearLiveStreamCountdown(),e.unload()))})}).on("mute",function(e,t,o){o||flowplayer.audible_instance==n||(flowplayer(flowplayer.audible_instance).mute(!0,!0),flowplayer.audible_instance=n)}).on("resume",function(){a.muted||(flowplayer.audible_instance=n),a.conf.multiple_playback||jQuery(".flowplayer[data-flowplayer-instance-id]").each(function(){var e;n!=jQuery(this).data("flowplayer-instance-id")&&(e=jQuery(this).data("flowplayer"))&&e.playing&&e.pause()})})}),"undefined"!=typeof fv_flowplayer_browser_ff_m4v_array)for(var fv_flowplayer_browser_ff_m4v_i in fv_flowplayer_browser_ff_m4v_array)fv_flowplayer_browser_ff_m4v_array.hasOwnProperty(fv_flowplayer_browser_ff_m4v_i)&&fv_flowplayer_browser_ff_m4v(fv_flowplayer_browser_ff_m4v_i);function fv_flowplayer_browser_chrome_fail(a,n,r,i){jQuery("#wpfp_"+a).bind("error",function(e,t,o){!/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())||null==o||3!=o.code&&4!=o.code&&5!=o.code||(t.unload(),jQuery("#wpfp_"+a).attr("id","bad_wpfp_"+a),jQuery("#bad_wpfp_"+a).after('
'),jQuery("#wpfp_"+a).flowplayer({playlist:[[{mp4:r}]]}),i?jQuery("#wpfp_"+a).bind("ready",function(e,t){t.play()}):jQuery("#wpfp_"+a).flowplayer().play(0),jQuery("#bad_wpfp_"+a).remove())})}if("undefined"!=typeof fv_flowplayer_browser_chrome_fail_array)for(var fv_flowplayer_browser_chrome_fail_i in fv_flowplayer_browser_chrome_fail_array)fv_flowplayer_browser_chrome_fail_array.hasOwnProperty(fv_flowplayer_browser_chrome_fail_i)&&fv_flowplayer_browser_chrome_fail(fv_flowplayer_browser_chrome_fail_i,fv_flowplayer_browser_chrome_fail_array[fv_flowplayer_browser_chrome_fail_i].attrs,fv_flowplayer_browser_chrome_fail_array[fv_flowplayer_browser_chrome_fail_i].mp4,fv_flowplayer_browser_chrome_fail_array[fv_flowplayer_browser_chrome_fail_i].auto_buffer);function fv_flowplayer_browser_ie(e){(flowplayer.support.browser&&flowplayer.support.browser.msie&&9<=parseInt(flowplayer.support.browser.version,10)||navigator.userAgent.match(/Trident.*rv[ :]*11\./))&&jQuery("#wpfp_"+e).attr("data-engine","flash")}if("undefined"!=typeof fv_flowplayer_browser_ie_array)for(var fv_flowplayer_browser_ie_i in fv_flowplayer_browser_ie_array)fv_flowplayer_browser_ie_array.hasOwnProperty(fv_flowplayer_browser_ie_i)&&fv_flowplayer_browser_ie(fv_flowplayer_browser_ie_i);function fv_flowplayer_browser_chrome_mp4(e){var t=window.navigator.appVersion.match(/Chrome\/(\d+)\./);null!=t&&(t=parseInt(t[1],10),(/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())&&t<28&&-1!=navigator.appVersion.indexOf("Win")||/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())&&t<27&&-1!=navigator.appVersion.indexOf("Linux")&&-1==navigator.userAgent.toLowerCase().indexOf("android"))&&jQuery("#wpfp_"+e).attr("data-engine","flash"))}function fv_flowplayer_amazon_s3(e,n){jQuery("#wpfp_"+e).bind("error",function(e,t,o){var a=new Date;4==o.code&&a.getTime()>fv_fp_utime+parseInt(n)&&jQuery(e.target).find(".fp-message").delay(500).queue(function(e){jQuery(this).html(fv_flowplayer_translations.video_expired),e()})})}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}-1==navigator.platform.indexOf("iPhone")&&-1==navigator.platform.indexOf("iPod")&&-1==navigator.platform.indexOf("iPad")&&-1==navigator.userAgent.toLowerCase().indexOf("android")||flowplayer(function(e,t){e.bind("error",function(e,t,o){10==o.code&&jQuery(e.target).find(".fp-message").html(fv_flowplayer_translations.unsupported_format)})}),jQuery(document).ready(function(){-1==navigator.platform.indexOf("iPhone")&&-1==navigator.platform.indexOf("iPod")&&-1==navigator.platform.indexOf("iPad")||jQuery(window).trigger("load"),jQuery(".flowplayer").on("mouseleave",function(){jQuery(this).find(".fvp-share-bar").removeClass("visible"),jQuery(this).find(".embed-code").hide()})}),"undefined"!=typeof flowplayer&&flowplayer(function(e,a){a=jQuery(a);var n,r=!1,t=(flowplayer.engine("hlsjs-lite").plugin(function(e){n=e.hls}),e.conf.playlist.length?e.conf.playlist:[e.conf.clip]);function i(e){l();var t="Video is being processed",o="Please return later to see the actual video in this player.";e.pending_encoding_error?(t="Video unavailable",o="There was an error in the video encoding."):e.pending_encoding_progress&&(o+=" ("+e.pending_encoding_progress+" done)"),r=jQuery('Item 1.'),i=jQuery('Item 1. '),l=jQuery('').insertAfter(o.find(".fp-controls")),s=0,f=[],c=[],jQuery(t.conf.playlist).each(function(e,t){void 0===t.click&&(t=p(n.find("h4").eq(s)),l.append(''+(s+1)+". "+t+" "),c[e]=t,f.push(e),s++)}),r.insertAfter(o.find(".fp-controls .fp-volume")).on("click",e),i.insertAfter(r).on("click",e),jQuery("a",l).on("click",function(){void 0!==t.conf.playlist[jQuery(this).data("index")-1]&&void 0!==t.conf.playlist[jQuery(this).data("index")-1].click?t.play(jQuery(this).data("index")-1):t.play(jQuery(this).data("index"))}),t.on("ready",function(e,t,o){l.find("a").removeClass("fp-selected");var a=l.find("a[data-index="+o.index+"]"),n=(a.addClass("fp-selected"),fv_flowplayer_translations.playlist_item_no);n=(n=n.replace(/%d/,f.indexOf(o.index)+1)).replace(/%s/,p(a.find("h4"))),r.html(n),i.html(f.indexOf(o.index)+1+". "+c[o.index])})))}),flowplayer(function(e,a){a=jQuery(a);var n,r=e.conf.playlist;e.bind("load",function(e,t,o){n=o.index}),e.bind("error",function(e,t,o){setTimeout(function(){if(0r.length-1&&(n=0),console.log("FV Player: Playlist item failure, auto-advancing to "+(n+1)+". item"),t.play(n)}},1e3)})}),flowplayer(function(e,r){var i,l,s;function f(o){return o=[],jQuery(e.conf.playlist).each(function(e,t){o.push(e)}),o=function(e){for(var t,o,a=e.length;a;a--)t=Math.floor(Math.random()*a),o=e[a-1],e[a-1]=e[t],e[t]=o;return e}(o),console.log("FV Player Randomizer random seed:",o),o}((r=jQuery(r)).data("button-no_picture")||r.data("button-repeat")||r.data("button-rewind"))&&e.bind("ready",function(e,t){var o,a,n;void 0===l&&void 0===i&&(l=t.next,i=t.prev),!t.video.type.match(/^audio/)&&r.data("button-no_picture")&&0==r.find(".fv-fp-no-picture").length&&jQuery(' ').insertAfter(r.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),jQuery(".fp-engine",r).slideToggle(20),jQuery(this).toggleClass("is-active fp-color-fill"),r.toggleClass("is-no-picture")}),r.data("button-repeat")&&(0 '+n.playlist_replay_all+' '+n.playlist_shuffle+' '+n.playlist_replay_video+' '+n.playlist_play_all_button+" "),a=jQuery('").insertAfter(r.find(".fp-controls")),t.conf.playlist_shuffle=t.conf.track_repeat=!1,s=f(),t.conf.advance,o.insertAfter(r.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),"auto"!==a.css("right")&&a.css({right:"auto",left:o.position().left+"px"}),a.hasClass("fp-active")?t.hideMenu(a[0]):(r.trigger("click"),t.showMenu(a[0]))}),jQuery("a",a).on("click",function(){jQuery(this).siblings("a").removeClass("fp-selected"),jQuery(this).addClass("fp-selected"),o.removeClass("mode-normal mode-repeat-track mode-repeat-playlist mode-shuffle-playlist");var e=jQuery(this).data("action");"repeat_playlist"==e?(o.addClass("mode-repeat-playlist"),t.conf.loop=!0,t.conf.advance=!0,t.video.loop=t.conf.track_repeat=!1,t.conf.playlist_shuffle=!1):"shuffle_playlist"==e?(o.addClass("mode-shuffle-playlist"),t.conf.loop=!0,t.conf.advance=!0,t.conf.playlist_shuffle=!0):"repeat_track"==e?(o.addClass("mode-repeat-track"),t.conf.track_repeat=t.video.loop=!0,t.conf.loop=t.conf.playlist_shuffle=!1):"normal"==e&&(o.addClass("mode-normal"),t.conf.track_repeat=t.video.loop=!1,t.conf.loop=t.conf.playlist_shuffle=!1),t.conf.playlist_shuffle?(t.next=function(){t.play(s.pop()),0==s.length&&(s=f())},t.prev=function(){t.play(s.shift()),0==s.length&&(s=f())}):(t.next=l,t.prev=i)}),t.conf.loop&&jQuery("a[data-action=repeat_playlist]",a).trigger("click"),t.on("progress",function(){t.video.loop=t.conf.track_repeat}),t.on("finish.pl",function(e,t){console.log("playlist_repeat",t.conf.loop,"advance",t.conf.advance,"video.loop",t.video.loop),t.conf.playlist_shuffle&&(t.play(s.pop()),0==s.length&&(s=f()))})):0==r.find(".fv-fp-track-repeat").length&&0==t.conf.playlist.length&&((n=jQuery(' ')).insertAfter(r.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),jQuery(this).toggleClass("is-active fp-color-fill",t.video.loop),t.video.loop?t.video.loop=!1:t.video.loop=!0}),t.conf.loop&&n.addClass("is-active fp-color-fill"))),r.data("button-rewind")&&(0==r.find(".fv-fp-rewind").length&&((n=jQuery(' ')).insertBefore(r.find(".fp-controls .fp-playbtn")).on("click",function(e){e.preventDefault(),e.stopPropagation(),t.seek(t.video.time-10)}),n.toggle(!t.video.live||t.video.dvr)),0==r.find(".fv-fp-forward").length&&((n=jQuery(' ')).insertAfter(r.find(".fp-controls .fp-playbtn")).on("click",function(e){e.preventDefault(),e.stopPropagation(),t.seek(t.video.time+10)}),n.toggle(!t.video.live||t.video.dvr)))}).bind("unload",function(){r.find(".fv-fp-no-picture").remove(),r.find(".fv-fp-playlist").remove(),r.find(".fv-fp-track-repeat").remove()})}),flowplayer(function(e,t){var o=jQuery(t),a=o.data("playlist_start");function n(){1!==o.data("position_changed")&&e.conf.playlist.length&&(a--,void 0===e.conf.playlist[a].click&&(e.engine&&"hlsjs-lite"==e.engine.engineName&&(e.loading=!1),e.play(a)),o.data("position_changed",1))}void 0!==a&&(e.bind("unload",function(){a=o.data("playlist_start"),o.removeData("position_changed"),e.one("ready",n)}),e.one("ready",n),jQuery(".fp-ui",t).on("click",function(){n(),o.data("position_changed",1)}))}),document.addEventListener("custombox:overlay:close",function(e){console.log("FV Player: Custombox/Popup anything ligtbox closed");var t=jQuery(this).find(".flowplayer");0!=t.length&&(console.log("FV Player: Custombox/Popup anything ligtbox contains a player"),t.each(function(e,t){var o=jQuery(t).data("flowplayer");void 0!==o&&(o.playing?(console.log("FV Player: Custombox/Popup anything ligtbox video pause"),o.pause()):o.loading&&o.one("ready",function(){console.log("FV Player: Custombox/Popup anything ligtbox video unload"),o.unload()}))}))}),flowplayer(function(t,e){t.bind("finish",function(){var e=t.video.time;t.video.loop&&t.one("pause",function(){e<=t.video.time&&t.resume()})})}),flowplayer(function(t,a){(a=jQuery(a)).find(".fp-logo").removeAttr("href"),a.hasClass("no-controlbar")&&((e=t.sliders.timeline).disable(!0),t.bind("ready",function(){e.disable(!0)})),jQuery(".fvfp_admin_error",a).remove(),a.find(".fp-logo, .fp-header").on("click",function(e){e.target===this&&a.find(".fp-ui").trigger("click")}),jQuery(".fvp-share-bar .sharing-facebook",a).append('Facebook '),jQuery(".fvp-share-bar .sharing-twitter",a).append('Twitter '),jQuery(".fvp-share-bar .sharing-email",a).append('Email '),jQuery(".fp-header",a).prepend(jQuery(".fvp-share-bar",a)),t.conf.playlist.length&&(i=!0,2==(o=t.conf.playlist).length?(void 0!==o[0].click&&void 0===o[1].click&&(i=!1),void 0===o[0].click&&void 0!==o[1].click&&(i=!1)):3==o.length&&void 0!==o[0].click&&void 0===o[1].click&&void 0!==o[2].click&&(i=!1),i&&(o=jQuery(' '),i=jQuery(' '),a.find(".fp-controls .fp-playbtn").before(o).after(i),o.on("click",function(){t.trigger("prev",[t]),t.prev()}),i.on("click",function(){t.trigger("next",[t]),t.next()}))),"undefined"!=typeof fv_player_editor_conf&&a.on("click",".fvp-sharing > li",function(e){return e.preventDefault(),fv_player_notice(a,fv_player_editor_translations.link_notice,2e3),!1}),t.bind("pause resume finish unload ready",function(e,t){a.addClass("no-brand")}),t.one("ready",function(){a.find(".fp-fullscreen").clone().appendTo(a.find(".fp-controls"))}),t.on("ready",function(e,t,o){setTimeout(function(){jQuery(".fvp-share-bar",a).show(),jQuery(".fv-player-buttons-wrap",a).appendTo(jQuery(".fv-player-buttons-wrap",a).parent().find(".fp-ui"))},100)}),t.bind("finish",function(){var e=a.data("fv_redirect");e&&(void 0===t.video.is_last||t.video.is_last)&&(location.href=e)}),flowplayer.support.iOS&&11==flowplayer.support.iOS.version&&t.bind("error",function(e,t,o){4==o.code&&a.find(".fp-engine").hide()}),jQuery(document).on("contextmenu",".flowplayer",function(e){e.preventDefault()}),t.one("ready",function(e,t,o){a.find(".fp-chromecast").insertAfter(a.find(".fp-header .fp-fullscreen"))}),a.find(".fp-waiting").html('
');var e,n=a.attr("id"),r=!flowplayer.conf.native_fullscreen&&flowplayer.conf.mobile_alternative_fullscreen,o="fakefullscreen",i="fakefullscreen-exit";flowplayer.support.fullscreen||(o+=" fullscreen",i+=" fullscreen-exit"),t.bind(o,function(e,t){jQuery("#wpadminbar, .nc_wrapper").hide(),!r&&"fakefullscreen"!=e.type||"video/youtube"==t.video.type||(a.before(' '),a.appendTo("body"))}),t.bind(i,function(e,t,o){jQuery("#wpadminbar, .nc_wrapper").show(),!r&&"fakefullscreen-exit"!=e.type||jQuery("span[data-fv-placeholder="+n+"]").replaceWith(a)})}),function(){function e(p){p(function(a,n){var r,e,i,l,s;function f(e){return Math.round(100*e)/100}function c(t){r.find(".fp-speed",n)[0].innerHTML=t+"x",r.find(".fp-speed-menu a",n).forEach(function(e){r.toggleClass(e,"fp-selected",e.getAttribute("data-speed")==t),r.toggleClass(e,"fp-color",e.getAttribute("data-speed")==t)})}!jQuery(n).data("speedb")||(e=p.support).video&&e.inlineVideo&&(r=p.common,e=p.bean,i=r.find(".fp-ui",n)[0],l=r.find(".fp-controls",i)[0],s=a.conf.speeds,e.on(n,"click",".fp-speed",function(){var e=r.find(".fp-speed-menu",n)[0];r.hasClass(e,"fp-active")?a.hideMenu():a.showMenu(e)}),e.on(n,"click",".fp-speed-menu a",function(e){e=e.target.getAttribute("data-speed");a.speed(e)}),a.on("speed",function(e,t,o){1Speed"),s.forEach(function(e){e=r.createElement("a",{"data-speed":f(e)},f(e)+"x");o.appendChild(e)}),i.appendChild(o),c(a.currentSpeed),jQuery(n).find(".fp-speed-menu strong").text(fv_flowplayer_translations.speed))}))})}"object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=e:"function"==typeof window.flowplayer&&e(window.flowplayer)}(),flowplayer(function(e,t){void 0===fv_flowplayer_conf.disable_localstorage&&(e.on("speed",function(e,t,o){try{window.localStorage.fv_player_speed=o}catch(e){}}),e.on("ready",function(){window.localStorage.fv_player_speed&&jQuery(t).find("strong.fp-speed").is(":visible")&&e.speed(parseFloat(window.localStorage.fv_player_speed)),0==jQuery(t).data("volume")&&e.mute(!0,!0)}))}),flowplayer(function(e,a){a=jQuery(a);var n=-1;function r(){return e.video.index||0}e.conf.fv_stats&&(e.conf.fv_stats.enabled||a.data("fv_stats")&&"no"!=a.data("fv_stats"))&&e.on("ready finish",function(e,t){t.one("progress",function(e,t){if(a.data("fv_stats_data")){try{var o=a.data("fv_stats_data")}catch(e){return!1}n!=r()&&(n=r(),jQuery.post(t.conf.fv_stats.url,{blog_id:t.conf.fv_stats.blog_id,video_id:t.video.id||0,player_id:o.player_id,post_id:o.post_id,tag:"play"}))}})}).on("finish",function(){n=-1})}),flowplayer(function(o,e){var t,a,n,r,i=jQuery(e),l=i.find(".fp-player"),e=i.data("fvsticky"),s=!1,f=i.data("ratio");if(o.is_sticky=!1,void 0===f&&(f=.5625),(s=1==flowplayer.conf.sticky_video&&void 0===e?!0:s)||e){if(!flowplayer.support.firstframe)return;var c=flowplayer.conf.sticky_place,p=flowplayer.conf.sticky_width,d=(p=""==p?380:p)*f;t=jQuery(window),n=(a=i).offset().top,r=Math.floor(n+a.outerHeight()/2),o.on("unload",function(){y(),i.removeClass("is-unSticky")}),t.on("resize",function(){v()?(n=a.offset().top,r=Math.floor(n+a.outerHeight()/2)):o.is_sticky&&y()}).on("scroll",function(){if(v())if(n=a.offset().top,r=Math.floor(n+a.outerHeight()/2),t.scrollTop()>r&&(o.loading||flowplayer.audible_instance==i.data("flowplayer-instance-id"))){if(0'),l.css("width",p),l.css("height",d),l.css("max-height",d),o.is_sticky=!0,o.trigger("sticky",[o]),l.parent(".flowplayer").addClass("is-stickable"))}function y(){l.removeClass("is-sticky"),l.removeClass("is-sticky-"+c),l.css("width",""),l.css("height",""),l.css("max-height",""),l.parent(".flowplayer").removeClass("is-stickable"),o.is_sticky&&(o.is_sticky=!1,o.trigger("sticky-exit",[o]))}function v(){return jQuery(window).innerWidth()>=fv_flowplayer_conf.sticky_min_width}o.sticky=function(e,t){void 0===e&&(e=!o.is_sticky),t&&i.toggleClass("is-unSticky",!e),(e?u:y)()}}),jQuery(function(o){o(document).on("click","a.fp-sticky",function(){var e=o("div.flowplayer.is-stickable"),t=e.data("flowplayer"),e=(e.addClass("is-unSticky"),e.find(".fp-player"));e.removeClass("is-sticky"),e.removeClass("is-sticky-right-bottom"),e.removeClass("is-sticky-left-bottom"),e.removeClass("is-sticky-right-top"),e.removeClass("is-sticky-left-top"),e.css("width",""),e.css("height",""),e.css("max-height",""),t.is_sticky&&(t.is_sticky=!1,t.trigger("sticky-exit",[t]))}),o(document).on("click","div.flowplayer.is-unSticky",function(){o("div.flowplayer").removeClass("is-unSticky")})}),flowplayer(function(e,n){var r;n=jQuery(n),void 0===fv_flowplayer_conf.disable_localstorage&&(r=window.localStorage,e.on("ready",function(e,o,t){var a;t.subtitles&&t.subtitles.length&&(r.fv_player_subtitle&&o.video.subtitles.length?"none"===r.fv_player_subtitle?o.disableSubtitles():o.video.subtitles.forEach(function(e,t){e.srclang===r.fv_player_subtitle&&o.loadSubtitles(t)}):(a=t.subtitles.filter(function(e){return e.fv_default})[0])&&o.loadSubtitles(t.subtitles.indexOf(a))),n.find(".fp-subtitle-menu").on("click",function(e){var t=e.target.getAttribute("data-subtitle-index");if("string"==typeof t)try{r.fv_player_subtitle=-1 '+fv_flowplayer_translations.click_to_unmute+"")).on("click touchstart",function(){t.mute(!1),t.volume(1)}),a.find(".fp-ui").append(o),a.addClass("has-fp-message-muted"),setTimeout(l,5e3)))}),o.on("mute volume",function(){(!o.muted||0'),a=jQuery(e).prev(".fv-player-warning-wrapper")),0==a.find(".fv-player-warning-"+o).length&&(e=jQuery(""+t+"
"),a.append(e),e.slideDown())},flowplayer(function(t,a){a=jQuery(a),navigator.userAgent.match(/iPhone.* OS [0-6]_/i)&&t.one("progress",function(e){void 0!==t.video.subtitles&&t.video.subtitles.length&&fv_player_warning(a,fv_flowplayer_translations.warning_iphone_subs)}),flowplayer.support.android&&flowplayer.support.android.version<5&&(flowplayer.support.android.samsung||flowplayer.support.browser.safari)&&fv_player_warning(a,fv_flowplayer_translations.warning_unstable_android,"firefox"),/Android 4/.test(navigator.userAgent)&&!/Firefox/.test(navigator.userAgent)&&(t.on("ready",function(e,t,o){setTimeout(function(){o.src&&o.src.match(/fpdl.vimeocdn.com/)&&(0==o.time||1==o.time)&&(fv_player_warning(a,fv_flowplayer_translations.warning_unstable_android,"firefox"),t.on("progress",function(e,t){a.prev().find(".fv-player-warning-firefox").remove()}))},1500)}),t.on("error",function(e,t,o){2==o.MEDIA_ERR_NETWORK&&o.video.src.match(/fpdl.vimeocdn.com/)&&fv_player_warning(a,fv_flowplayer_translations.warning_unstable_android,"firefox")})),/Safari/.test(navigator.userAgent)&&/Version\/5/.test(navigator.userAgent)&&t.on("error",function(e,t,o){o.video.src.match(/fpdl.vimeocdn.com/)&&fv_player_warning(a,fv_flowplayer_translations.warning_old_safari)});var e=flowplayer.support;e.android&&(e.android.samsung&&parseInt(e.browser.version)<66||e.browser.safari)&&t.on("error",function(e,t,o){fv_player_warning(a,fv_flowplayer_translations.warning_samsungbrowser,"warning_samsungbrowser")})}));
\ No newline at end of file
+function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}if("undefined"!=typeof fv_flowplayer_conf){var FVAbrController,parseIOSVersion=function(e){e=/iP(ad|hone)(; CPU)? OS (\d+_\d)/.exec(e);return e&&1'+fv_flowplayer_translations.mobile_browser_detected_1+' '+fv_flowplayer_translations.mobile_browser_detected_2+" .")})),o.trigger("fv_player_videos_parse",a),a}function fv_player_in_iframe(){try{return window.self!==window.top}catch(e){return!0}}function fv_escape_attr(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.replace(/[&<>"']/g,function(e){return t[e]})}function fv_player_preload(){function e(){jQuery(".flowplayer.fp-is-embed").each(function(){var e=jQuery(this);e.hasClass("has-chapters")||e.hasClass("has-transcript")||0!=jQuery(".fp-playlist-external[rel="+e.attr("id")+"]").length||e.height(jQuery(window).height())})}if(flowplayer.support.touch&&jQuery(".fp-playlist-external.fv-playlist-design-2017").addClass("visible-captions"),flowplayer(function(n,r){localStorage.flowplayerTestStorage&&delete localStorage.flowplayerTestStorage;var e,t,o,i=(r=jQuery(r)).find(".fp-player"),l=!1,a=(r.hasClass("fixed-controls")&&r.find(".fp-controls").on("click",function(e){n.loading||n.ready||(e.preventDefault(),e.stopPropagation(),n.load())}),flowplayer.support.volume||flowplayer.support.autoplay||r.find(".fp-volume").hide(),0==r.data("volume")&&r.hasClass("no-controlbar")&&r.find(".fp-volume").remove(),jQuery(".fp-playlist-external[rel="+r.attr("id")+"]")),s=((!n.conf.playlist||0==n.conf.playlist.length)&&a.length&&0 '),t.prepend(e)),e.attr("alt",o.fv_title?fv_escape_attr(o.fv_title):"video"),e.attr("src",a)):e.length&&e.remove()}n.bind("load",function(e,t,o){var a;t.conf.playlist.length&&(o.type.match(/^audio/)&&!l&&(a=(a=(o=(t=s.find("a").eq(o.index)).data("item")).splash)||t.find("img").attr("src"),d(r,i,o,a)),l=!1)}),n.bind("ready",function(e,t,o){setTimeout(function(){var e;-1'+fv_flowplayer_translations.playlist_current+" "),e.parent().find(".flowplayer").length||(a=!0),(e.hasClass("fp-playlist-vertical")||e.hasClass("fp-playlist-horizontal")&&e.hasClass("is-audio"))&&!function(e){var t=e.getBoundingClientRect(),o=t.top,a=t.height,n=o+a,e=e.parentNode;do{if(t=e.getBoundingClientRect(),n<=t.bottom==!1)return;if(o<=t.top)return}while(e=e.parentNode,e!=document.body);return n<=document.documentElement.clientHeight}(t.get(0))?(o=a?e.parent():e).animate({scrollTop:o.scrollTop()+(t.position().top-o.position().top)},750):e.hasClass("fp-playlist-horizontal")&&!function(e){var t=e.getBoundingClientRect(),o=t.left,a=t.width,n=o+a,e=e.parentNode;do{if(t=e.getBoundingClientRect(),n<=t.right==!1)return;if(o<=t.left)return}while(e=e.parentNode,e!=document.body);return n<=document.documentElement.clientWidth}(t.get(0))&&(o=a?e.parent():e).animate({scrollLeft:o.scrollLeft()+(t.position().left-o.position().left)},750)}function fv_parse_sharelink(e){var t="fvp_";if((e=e.replace("https?://[^./].","")).match(/(youtube.com)/))return t+e.match(/(?:v=)([A-Za-z0-9_-]*)/)[1];if(e.match(/(vimeo.com)|(youtu.be)/))return t+e.match(/(?:\/)([^/]*$)/)[1];var o=e.match(/(?:\/)([^/]*$)/);return o?t+o[1].match(/^[^.]*/)[0]:t+e}function fv_player_get_video_link_hash(e){var t=fv_parse_sharelink((void 0!==e.video.sources_original&&void 0!==e.video.sources_original[0]?e.video.sources_original:e.video.sources)[0].src);return t=void 0!==e.video.id?fv_parse_sharelink(e.video.id.toString()):t}function fv_player_time_hms(e){if(isNaN(e))return NaN;var t=parseInt(e,10),o=Math.floor(t/3600),a=Math.floor(t/60)%60,e=t%60;return o?o+="h":o="",o&&a<10?a="0"+a+"m":a?a+="m":a="",(o||a)&&e<10&&(e="0"+e),o+a+(e+="s")}function fv_player_time_hms_ms(e){if(isNaN(e))return NaN;var t=void 0!==(t=((e=parseFloat(e).toFixed(3))+"").split("."))[1]&&0'),jQuery(".fp-player",e).append(a)),jQuery(''+t+"
"));return a.append(n),"string"==typeof o&&jQuery(e).data("flowplayer").on(o,function(){n.fadeOut(100,function(){jQuery(this).remove()})}),0 ")}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function is_ga_4(e){return!(void 0===e.conf.fvanalytics||!e.conf.fvanalytics||!e.conf.fvanalytics.startsWith("G-"))}function fv_player_track(e,t,o,a,n,r){if("object"!=_typeof(e)&&(r=n,n=a,a=o,o=t,t=e,e=!1),t=t||flowplayer.conf.fvanalytics,void 0===a&&(a="Unknown engine"),/fv_player_track_debug/.test(window.location.href)&&console.log("FV Player Track: "+o+" - "+a+" '"+n+"'",r),"undefined"!=typeof gtag)is_ga_4(e)?gtag("event",o,{video_title:n,video_current_time:e.video.time,video_provider:a,video_duration:e.video.duration,value:r||1}):gtag("event",o,{event_category:a,event_label:n,value:r||1});else if(t&&"undefined"!=typeof ga)ga("create",t,"auto",n,{allowLinker:!0}),ga("require","linker"),r?ga("send","event",o,a,n,r):ga("send","event",o,a,n);else if(t&&"undefined"!=typeof _gat){e=_gat._getTracker(t);if(void 0===e._setAllowLinker)return;e._setAllowLinker(!0),r?e._trackEvent(o,a,n,r):e._trackEvent(o,a,n)}flowplayer.conf.matomo_domain&&flowplayer.conf.matomo_site_id&&"undefined"!=typeof _paq&&(r?_paq.push(["trackEvent",o,a,n,r]):_paq.push(["trackEvent",o,a,n]))}function fv_player_track_name(e,t){e=e.attr("title");return(e=(e=e||void 0===t.fv_title?e:t.fv_title)||void 0===t.title?e:t.title)||void 0===t.src||(e=t.src.split("/").slice(-1)[0].replace(/\.(\w{3,4})(\?.*)?$/i,""),t.type.match(/mpegurl/)&&(e=t.src.split("/").slice(-2)[0].replace(/\.(\w{3,4})(\?.*)?$/i,"")+"/"+e)),e}flowplayer(function(o,r){var n,t,i,a,l;function e(){var e;"dash"==o.engine.engineName?((e=i[o.engine.dash.getQualityFor("video")]).qualityIndex!=a&&(a=e.qualityIndex,s(e.qualityIndex,i)),t.match(/dash_debug/)&&f(e.width,e.height,e.bitrate)):"hlsjs-lite"==o.engine.engineName&&(n.currentLevel!=a&&(a=n.currentLevel,s(n.currentLevel,n.levels)),t.match(/hls_debug/)&&(e=n.levels[n.currentLevel])&&f(e.width,e.height,e.bitrate))}function s(e,t){var o,a,n;t[e]&&(o=t[e].height,a=541,n=1e5,jQuery(t).each(function(e,t){720<=t.height&&t.height<1400&&(a=720),t.heighto&&(o=e)}),o&&(console.log("FV Player: Picked "+t.levels[o].height+"p quality"),n.startLevel=o,n.currentLevel=o)})}),r=jQuery(r),t=document.location.search,localStorage.FVPlayerDashQuality&&(o.conf.dash||(o.conf.dash={}),o.conf.dash.initialVideoQuality="restore"),r.on("click",".fp-qsel-menu a",function(){var e;"hlsjs-lite"==o.engine.engineName&&(-1==(e=jQuery(this).data("quality"))?localStorage.removeItem("FVPlayerHLSQuality"):(e=n.levels[e],localStorage.FVPlayerHLSQuality=e.height))}),localStorage.FVPlayerHLSQuality?(o.conf.hlsjs.startLevel=parseInt(localStorage.FVPlayerHLSQuality),o.conf.hlsjs.testBandwidth=!1,o.conf.hlsjs.autoLevelEnabled=!1):flowplayer.conf.hd_streaming&&!flowplayer.support.fvmobile&&(o.conf.hlsjs.startLevel=3,o.conf.hlsjs.testBandwidth=!1,o.conf.hlsjs.autoLevelEnabled=!1),o.bind("quality",function(e,t,o){"dash"==t.engine.engineName&&(-1==o?localStorage.removeItem("FVPlayerDashQuality"):i[o]&&(localStorage.FVPlayerDashQuality=i[o].height))}),i=[],a=-1,o.bind("ready",function(e,t){var a;r.find(".fp-qsel-menu strong").text(fv_flowplayer_translations.quality),"dash"==t.engine.engineName?(i=t.engine.dash.getBitrateInfoListFor("video"),localStorage.FVPlayerDashQuality&&t.conf.dash.initialVideoQuality&&t.quality(t.conf.dash.initialVideoQuality),c()):"hlsjs-lite"==t.engine.engineName?(r.addClass("is-loading"),t.loading=!0,t.one("progress",function(){t.loading&&(r.removeClass("is-loading"),t.loading=!1)}),t.video.qualities&&2').appendTo(r.find(".fp-player"))),o.bind("ready progress",e),o.bind("quality",function(){setTimeout(e,0)}))}),flowplayer(function(a,n){var r=(n=jQuery(n)).attr("id"),i=!1;function l(){var t,o,e=n.attr("data-ad");if(void 0!==e&&e.length){try{e=JSON.parse(e)}catch(e){return}!i&&!n.hasClass("is-cva")&&n.width()>=parseInt(e.width)&&(e=(e=e.html).replace("%random%",Math.random()),i=jQuery(''+e+"
"),n.find(".fp-player").append(i),t=0,o=setInterval(function(){var e=i&&i.find(".adsbygoogle").height();(200<++t||0n.height()&&i.addClass("tall-ad")},50),setTimeout(function(){n.find(".wpfp_custom_ad video").length&&a.pause()},500))}}function o(e){var t=n.attr("data-popup");if(void 0!==t&&t.length){try{t=JSON.parse(t)}catch(e){return}("finish"==e||t.pause||t.html.match(/fv-player-ppv-purchase-btn-wrapper/))&&0==n.find(".wpfp_custom_popup").length&&(n.addClass("is-popup-showing"),n.find(".fp-player").append('"))}}n.data("end_popup_preview")&&jQuery(document).ready(function(){a.trigger("finish",[a])}),a.bind("ready",function(e,t){1==i.length&&(i.remove(),i=!1),n.data("ad_show_after")||l()}).bind("progress",function(e,t,o){o>n.data("ad_show_after")&&l()}).bind("finish",function(e,t){void 0!==t.video.index&&t.video.index+1!=t.conf.playlist.length||o(e.type)}).bind("pause",function(e,t){o(e.type)}).bind("resume unload seek",function(e,t){n.hasClass("is-popup-showing")&&(n.find(".wpfp_custom_popup").remove(),n.removeClass("is-popup-showing"))})}),jQuery(document).on("click",".fv_fp_close",function(){var e=jQuery(this).parents(".wpfp_custom_ad_content"),t=e.find("video");return e.fadeOut(),t.length&&t[0].pause(),!1}),jQuery(document).on("focus",".fv_player_popup input[type=text], .fv_player_popup input[type=email], .fv_player_popup textarea",function(){var e=jQuery(this).parents(".flowplayer").data("flowplayer");e&&e.disable(!0)}),jQuery(document).on("blur",".fv_player_popup input[type=text], .fv_player_popup input[type=email], .fv_player_popup textarea",function(){var e=jQuery(this).parents(".flowplayer").data("flowplayer");e&&e.disable(!1)}),flowplayer(function(a,s){var n,r,e,t,o,s=jQuery(s),i=flowplayer.bean,l=0,f=0,c=("undefined"==typeof ga&&a.conf.fvanalytics&&"undefined"==typeof _gat&&"undefined"==typeof gtag&&(is_ga_4(a)?jQuery.getScript({url:"https://www.googletagmanager.com/gtag/js?id="+a.conf.fvanalytics,cache:!0},function(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("config",a.conf.fvanalytics)}):jQuery.getScript({url:"https://www.google-analytics.com/analytics.js",cache:!0},function(){ga("create",a.conf.fvanalytics,"auto")})),!window._paq&&a.conf.matomo_domain&&a.conf.matomo_site_id&&(e="//"+a.conf.matomo_domain+"/",(o=window._paq=window._paq||[]).push(["setTrackerUrl",e+"matomo.php"]),o.push(["setSiteId",a.conf.matomo_site_id]),t=(o=document).createElement("script"),o=o.getElementsByTagName("script")[0],t.type="text/javascript",t.async=!0,t.src=e+"matomo.js",o.parentNode.insertBefore(t,o)),a.bind("progress",function(e,t,o){var a=t.video,n=a.duration,r=0,i=fv_player_track_name(s,a);if(n&&(19*n/20 strong:visible").length+n.find(".fp-controls > .fp-icon:visible").length,t()},0)}),a.on("unload pause finish error",function(){"undefined"!=typeof checker&&clearInterval(checker)})}),jQuery(window).on("resize tabsactivate",function(){jQuery(".fp-playlist-external").each(function(){var e=jQuery(this);900<=e.parent().width()?e.addClass("is-wide"):e.removeClass("is-wide")})}).trigger("resize"),flowplayer(function(e,a){a=jQuery(a),e.bind("ready",function(){/Chrome/.test(navigator.userAgent)&&54'+fv_flowplayer_translations.mobile_browser_detected_1+' '+fv_flowplayer_translations.mobile_browser_detected_2+" ."))}if(isIE11&&(jQuery(document).ready(function(){jQuery(".fp-waiting").hide()}),flowplayer(function(e,t){e.bind("load",function(e){jQuery(e.currentTarget).find(".fp-waiting").show()}).bind("beforeseek",function(e){jQuery(e.currentTarget).find(".fp-waiting").show()}).bind("progress",function(e){jQuery(e.currentTarget).find(".fp-waiting").hide()}).bind("seek",function(e){jQuery(e.currentTarget).find(".fp-waiting").hide()}).bind("fullscreen",function(e){jQuery("#wpadminbar").hide()}).bind("fullscreen-exit",function(e){jQuery("#wpadminbar").show()})})),flowplayer.support.browser&&flowplayer.support.browser.msie&&parseInt(flowplayer.support.browser.version,10)<9&&jQuery(".flowplayer").each(function(){jQuery(this).css("width",jQuery(this).css("max-width")),jQuery(this).css("height",jQuery(this).css("max-height"))}),location.href.match(/elementor-preview=/)?(console.log("FV Player: Elementor editor is active"),setInterval(fv_player_load,1e3)):location.href.match(/brizy-edit-iframe/)&&(console.log("FV Player: Brizy editor is active"),setInterval(fv_player_load,1e3)),window.DELEGATE_NAMES&&flowplayer(function(e,t){fv_player_notice(t,fv_flowplayer_translations.chrome_extension_disable_html5_autoplay)}),flowplayer(function(e,t){flowplayer.bean.off(t,"contextmenu")}),location.href.match(/elementor-preview=/)&&(console.log("FV Player: Elementor editor is active"),setInterval(fv_player_load,1e3)),flowplayer(function(o,a){void 0!==(a=jQuery(a)).data("fv-embed")&&a.data("fv-embed")&&"false"!=a.data("fv-embed")&&(o.embedCode=function(){o.video;var e=a.width(),t=a.height();return t+=2,(a.hasClass("has-chapters")||a.hasClass("has-transcript"))&&(t+=300),0'})}),jQuery(document).on("click",".flowplayer .embed-code-toggle",function(){var e=jQuery(this).closest(".flowplayer");if("undefined"!=typeof fv_player_editor_conf)return fv_player_notice(e,fv_player_editor_translations.embed_notice,2e3),!1;var t=jQuery(this),o=t.parents(".flowplayer"),e=o.data("flowplayer");return"function"==typeof e.embedCode&&o.find(".embed-code textarea").val(e.embedCode()),fv_player_clipboard(o.find(".embed-code textarea").val(),function(){fv_player_notice(o,fv_flowplayer_translations.embed_copied,2e3)},function(){t.parents(".fvp-share-bar").find(".embed-code").toggle(),t.parents(".fvp-share-bar").toggleClass("visible")}),!1}),flowplayer(function(a,n){var r,i,l,s,f,c,p,e,d;function t(e){for(var t=n;t;){try{var o=getComputedStyle(t);o.transform&&(t.style.transform=e?"none":""),o.zIndex&&(t.style.zIndex=e?"auto":"")}catch(e){}t=t.parentNode}}0!=jQuery(n).data("fullscreen")&&(a.one("ready",function(e,t,o){0==jQuery(n).find(".fp-fullscreen").length&&jQuery(n).find(".fp-header").append(' ')}),r="fullscreen",i="fullscreen-exit",l=flowplayer.support.fullscreen,s=window,p=flowplayer.bean,a.fullscreen=function(e){if(!a.disabled){var t=d.find("video.fp-engine",n)[0];if(flowplayer.conf.native_fullscreen&&t&&flowplayer.support.iOS)return a.trigger(r,[a]),p.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement===t&&(p.off(document,".nativefullscreen"),p.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement||(p.off(document,".nativefullscreen"),a.trigger(i,[a]))}))}),t.webkitEnterFullScreen(),void p.one(t,"webkitendfullscreen",function(){p.off(document,"fullscreenchange.nativefullscreen"),a.trigger(i,[a]),d.prop(t,"controls",!0),d.prop(t,"controls",!1)});var o=jQuery(n).find(".fp-player")[0];return(e=void 0===e?!a.isFullscreen:e)&&(c=s.scrollY,f=s.scrollX),l?e?["requestFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].forEach(function(e){"function"==typeof o[e]&&(o[e]({navigationUI:"hide"}),"webkitRequestFullScreen"!==e||document.webkitFullscreenElement||o[e]())}):["exitFullscreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].forEach(function(e){"function"==typeof document[e]&&document[e]()}):a.trigger(e?r:i,[a]),a}},d=flowplayer.common,a.on("mousedown.fs",function(){+new Date-e<150&&a.ready&&a.fullscreen(),e=+new Date}),a.on(r,function(){d.addClass(n,"is-fullscreen"),d.toggleClass(n,"fp-minimal-fullscreen",d.hasClass(n,"fp-minimal")),d.removeClass(n,"fp-minimal"),l||(d.css(n,"position","fixed"),t(!0)),a.isFullscreen=!0}).on(i,function(){var e;d.toggleClass(n,"fp-minimal",d.hasClass(n,"fp-minimal-fullscreen")),d.removeClass(n,"fp-minimal-fullscreen"),l||"html5"!==a.engine||(e=n.css("opacity")||"",d.css(n,"opacity",0)),l||(d.css(n,"position",""),t(!1)),d.removeClass(n,"is-fullscreen"),l||"html5"!==a.engine||setTimeout(function(){n.css("opacity",e)}),a.isFullscreen=!1,"fvyoutube"!=a.engine.engineName&&s.scrollTo(f,c)}).on("unload",function(){a.isFullscreen&&a.fullscreen()}),a.on("shutdown",function(){FULL_PLAYER=null,d.removeNode(wrapper)}))}),flowplayer(function(o,a){var e,t,n,r,i,l;function s(){var e=window.innerWidthe}function f(){o.isFullscreen&&window.innerWidth>window.innerHeight&&s()&&!l&&(fv_player_notice(a,fv_flowplayer_translations.iphone_swipe_up_location_bar,"resize-good"),l=setTimeout(function(){l=!1,o.trigger("resize-good")},5e3))}a=jQuery(a),flowplayer.conf.wpadmin||jQuery(a).hasClass("is-audio")||(e=(e=jQuery(".fp-playlist-external[rel="+a.attr("id")+"]")).hasClass("fp-playlist-season")||e.hasClass("fp-playlist-polaroid"),t=1==a.data("fsforce"),0!=a.data("fullscreen")&&(flowplayer.conf.mobile_force_fullscreen&&flowplayer.support.fvmobile||!flowplayer.support.fullscreen&&t||e?(flowplayer.support.fullscreen||o.bind("ready",function(){o.video.vr||o.fullscreen(!0)}),a.on("click",function(){o.ready&&!o.paused||o.fullscreen(!0)}),jQuery("[rel="+a.attr("id")+"] a").on("click",function(e){o.isFullscreen||(o.fullscreen(),o.resume())}),o.on("resume",function(){o.video.vr||o.isFullscreen||o.fullscreen()}),o.on("finish",function(){0!=o.conf.playlist.length&&o.conf.playlist.length-1!=o.video.index||o.fullscreen(!1)}).on("fullscreen",function(e,t){a.addClass("forced-fullscreen")}).on("fullscreen-exit",function(e,t){t.pause(),a.removeClass("forced-fullscreen")})):t&&(r=a.find(".fp-unload"),i=!1,o.isFakeFullscreen=!1,a.addClass("is-closeable"),a.on("click",function(e){o.ready||e.target==r[0]||o.fakeFullscreen(!0)}),r.on("click",function(e){return o.ready&&o.isFullscreen?o.fullscreen(!1):o.loading&&(i=!0,o.one("resume",function(e){i=!1,o.pause()})),o.fakeFullscreen(!1),!1}),jQuery("[rel="+a.attr("id")+"] a").on("click",function(e){o.isFakeFullscreen||(o.fakeFullscreen(),o.resume())}),o.on("resume",function(){i||o.isFakeFullscreen||o.fakeFullscreen()}).on("finish",function(){0!=o.conf.playlist.length&&o.conf.playlist.length-1!=o.video.index||o.fakeFullscreen(!1)}).on("fullscreen",function(e,t){a.removeClass("fake-fullscreen")}).on("fullscreen-exit",function(e,t){t.isFakeFullscreen&&t.fakeFullscreen(!0,!0)}).on("unload",function(e,t){}),o.fakeFullscreen=function(e,t){(t||o.isFakeFullscreen!=e&&!o.disabled)&&(void 0===n&&(n=a.css("position")),void 0===e&&(e=!o.isFakeFullscreen),o.isFakeFullscreen=e,o.trigger(e?"fakefullscreen":"fakefullscreen-exit",[o]),a.toggleClass("is-fullscreen fake-fullscreen forced-fullscreen",e),e?a.css("position","fixed"):a.css("position",n))}),flowplayer.support.android&&flowplayer.conf.mobile_landscape_fullscreen&&window.screen&&window.screen.orientation&&o.on("fullscreen",function(e,t){void 0!==(t=t).video.width&&void 0!==t.video.height&&0!=t.video.width&&0!=t.video.height&&t.video.width'+fv_flowplayer_translations.audio_button+""),(s=jQuery('').insertAfter(a.find(".fp-controls"))).append(""+fv_flowplayer_translations.audio_menu+" "),n.forEach(function(e){s.append(''+e.name+" ")}),l.insertAfter(a.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),s.hasClass("fp-active")?o.hideMenu(s[0]):(a.click(),o.showMenu(s[0]))}),jQuery("a",s).on("click",function(e){var t=e.target.getAttribute("data-audio");if(r){var o=r.audioTracks[r.audioTrack].groupId,e=r.audioTracks.filter(function(e){return e.groupId===o&&(e.name===t||e.lang===t)})[0];r.audioTrack=e.id,c(e)}else{var a,n=f();for(a in n)n.hasOwnProperty(a)&&n[a].label==t&&(n[a].enabled=!0,c(n[a]))}}),r)c(r.audioTracks[r.audioTrack]);else{var e,t=f();for(e in t)t.hasOwnProperty(e)&&t[e].enabled&&c(t[e])}}flowplayer.engine("hlsjs-lite").plugin(function(e){r=e.hls}),o.bind("ready",function(e,t){var o;jQuery(s).remove(),jQuery(l).remove(),r&&"application/x-mpegurl"==t.video.type&&(i=[],n=[],(o=r).levels.forEach(function(e){e=e.attrs.AUDIO;e&&i.indexOf(e)<0&&i.push(e),i.length&&(n=o.audioTracks.filter(function(e){return e.groupId===i[0]}))}),p())}),o.one("progress",function(){if("html5"==o.engine.engineName&&"application/x-mpegurl"==o.video.type){i=[],n=[];var e,t=f();for(e in t)t.hasOwnProperty(e)&&n.push({id:t[e].id,name:t[e].label});p()}})}),flowplayer(function(e,n){var r=-1,i=!1;e.on("error",function(e,t,o){var a;4==o.code&&"hlsjs"==t.engine.engineName&&(console.log("FV Player: HLSJS failed to play the video, switching to Flash HLS"),t.error=t.loading=!1,jQuery(n).removeClass("is-error"),jQuery(flowplayer.engines).each(function(e,t){"hlsjs"==flowplayer.engines[e].engineName&&(r=e,i=flowplayer.engines[e],delete flowplayer.engines[e])}),(a=(0<(o=void 0!==t.video.index?t.video.index:0)?t.conf.playlist[o]:t.conf.clip).sources).index=o,t.load({sources:a}),t.bind("unload error",function(){flowplayer.engines[r]=i}))})}),flowplayer(function(e,l){var s,t=e.conf.live_stream_reload||30,f=t,c=fv_flowplayer_translations.live_stream_retry;function p(e){e=Number(e);var t=Math.floor(e/86400),o=Math.floor(e%86400/3600),a=Math.floor(e%3600/60),e=Math.floor(e%60),n=fv_flowplayer_translations,t=0'+fv_flowplayer_translations.live_stream_failed+""),n.addClass("is-error")},1e4),jQuery(e.currentTarget).data("live_check",a))}).bind("ready",function(e,t,o){clearInterval(jQuery(e.currentTarget).data("live_check"))}).bind("error",function(e,t,o){e=jQuery(e.currentTarget);e.data("live")&&e.find(".fp-message").html(fv_flowplayer_translations.live_stream_failed_2)})}),!function(a){flowplayer(function(e,o){jQuery(o).hasClass("is-cva")||a(document).on("submit","#"+jQuery(o).attr("id")+" .mailchimp-form",function(e){e.preventDefault(),a(".mailchimp-response",o).remove(),a("input[type=submit]",o).attr("disabled","disabled").addClass("fv-form-loading");var t={action:"fv_wp_flowplayer_email_signup"};a("[name]",this).each(function(){t[this.name]=a(this).val()}),a.post(fv_player.ajaxurl,t,function(e){e=JSON.parse(e),a('
').insertAfter(".mailchimp-form",o),e.text.match(/already subscribed/)&&(e.status="ERROR"),"OK"===e.status?(a(".mailchimp-form input[type=text],.mailchimp-form input[type=email]",o).val(""),a(".mailchimp-response",o).removeClass("is-fv-error").html(e.text),setTimeout(function(){a(".wpfp_custom_popup",o).fadeOut()},2e3)):a(".mailchimp-response",o).addClass("is-fv-error").html(e.text),a("input[type=submit]",o).removeAttr("disabled").removeClass("fv-form-loading")})})})}(jQuery),"undefined"!=typeof fv_flowplayer_mobile_switch_array)for(var fv_flowplayer_mobile_switch_i in fv_flowplayer_mobile_switch_array)fv_flowplayer_mobile_switch_array.hasOwnProperty(fv_flowplayer_mobile_switch_i)&&fv_flowplayer_mobile_switch(fv_flowplayer_mobile_switch_i);function fv_flowplayer_browser_ff_m4v(e){flowplayer.support.browser&&flowplayer.support.browser.mozilla&&-1!=navigator.userAgentData.platform.indexOf("Win")&&jQuery("#wpfp_"+e).attr("data-engine","flash")}if(flowplayer(function(n,e){var t,o;function a(e,t,o){var a;n.ready?(n.seek(o),(a=t).addClass("is-active"),setTimeout(function(){a.removeClass("is-active")},500)):n.toggle(),e.preventDefault()}flowplayer.support.touch&&(jQuery.fn.fv_single_double_click=function(a,n,r){return this.each(function(){var t=0,o=this;jQuery(this).on("click",function(e){1==++t&&setTimeout(function(){(1==t?a:n).call(o,e),t=0},r||300)})})},e=jQuery(e),t=jQuery('-10s
'),o=jQuery('+10s
'),t.fv_single_double_click(function(){n.toggle()},function(e){a(e,t,!!n.ready&&n.video.time-10)}),o.fv_single_double_click(function(){n.toggle()},function(e){a(e,o,!!n.ready&&n.video.time+10)}),e.find(".fp-ui").append(t).append(o))}),flowplayer(function(a,e){var n=(e=jQuery(e)).data("flowplayer-instance-id");flowplayer.audible_instance=-1,a.one("load",function(){setTimeout(function(){a.conf.splash=!1},0)}),a.on("ready",function(){var o=0==e.data("volume");o||(flowplayer.audible_instance=n),jQuery(".flowplayer[data-flowplayer-instance-id]").each(function(){var e=jQuery(this).data("flowplayer"),t=jQuery(this).data("flowplayer-instance-id");-1!=flowplayer.audible_instance&&t!=flowplayer.audible_instance&&t!=n&&e&&(e.ready?a.conf.multiple_playback?o||e.mute(!0,!0):e.playing&&e.pause():(e.clearLiveStreamCountdown(),e.unload()))})}).on("mute",function(e,t,o){o||flowplayer.audible_instance==n||(flowplayer(flowplayer.audible_instance).mute(!0,!0),flowplayer.audible_instance=n)}).on("resume",function(){a.muted||(flowplayer.audible_instance=n),a.conf.multiple_playback||jQuery(".flowplayer[data-flowplayer-instance-id]").each(function(){var e;n!=jQuery(this).data("flowplayer-instance-id")&&(e=jQuery(this).data("flowplayer"))&&e.playing&&e.pause()})})}),"undefined"!=typeof fv_flowplayer_browser_ff_m4v_array)for(var fv_flowplayer_browser_ff_m4v_i in fv_flowplayer_browser_ff_m4v_array)fv_flowplayer_browser_ff_m4v_array.hasOwnProperty(fv_flowplayer_browser_ff_m4v_i)&&fv_flowplayer_browser_ff_m4v(fv_flowplayer_browser_ff_m4v_i);function fv_flowplayer_browser_chrome_fail(a,n,r,i){jQuery("#wpfp_"+a).bind("error",function(e,t,o){!/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())||null==o||3!=o.code&&4!=o.code&&5!=o.code||(t.unload(),jQuery("#wpfp_"+a).attr("id","bad_wpfp_"+a),jQuery("#bad_wpfp_"+a).after('
'),jQuery("#wpfp_"+a).flowplayer({playlist:[[{mp4:r}]]}),i?jQuery("#wpfp_"+a).bind("ready",function(e,t){t.play()}):jQuery("#wpfp_"+a).flowplayer().play(0),jQuery("#bad_wpfp_"+a).remove())})}if("undefined"!=typeof fv_flowplayer_browser_chrome_fail_array)for(var fv_flowplayer_browser_chrome_fail_i in fv_flowplayer_browser_chrome_fail_array)fv_flowplayer_browser_chrome_fail_array.hasOwnProperty(fv_flowplayer_browser_chrome_fail_i)&&fv_flowplayer_browser_chrome_fail(fv_flowplayer_browser_chrome_fail_i,fv_flowplayer_browser_chrome_fail_array[fv_flowplayer_browser_chrome_fail_i].attrs,fv_flowplayer_browser_chrome_fail_array[fv_flowplayer_browser_chrome_fail_i].mp4,fv_flowplayer_browser_chrome_fail_array[fv_flowplayer_browser_chrome_fail_i].auto_buffer);function fv_flowplayer_browser_ie(e){(flowplayer.support.browser&&flowplayer.support.browser.msie&&9<=parseInt(flowplayer.support.browser.version,10)||navigator.userAgent.match(/Trident.*rv[ :]*11\./))&&jQuery("#wpfp_"+e).attr("data-engine","flash")}if("undefined"!=typeof fv_flowplayer_browser_ie_array)for(var fv_flowplayer_browser_ie_i in fv_flowplayer_browser_ie_array)fv_flowplayer_browser_ie_array.hasOwnProperty(fv_flowplayer_browser_ie_i)&&fv_flowplayer_browser_ie(fv_flowplayer_browser_ie_i);function fv_flowplayer_browser_chrome_mp4(e){var t=window.navigator.appVersion.match(/Chrome\/(\d+)\./);null!=t&&(t=parseInt(t[1],10),(/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())&&t<28&&-1!=navigator.appVersion.indexOf("Win")||/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())&&t<27&&-1!=navigator.appVersion.indexOf("Linux")&&-1==navigator.userAgent.toLowerCase().indexOf("android"))&&jQuery("#wpfp_"+e).attr("data-engine","flash"))}function fv_flowplayer_amazon_s3(e,n){jQuery("#wpfp_"+e).bind("error",function(e,t,o){var a=new Date;4==o.code&&a.getTime()>fv_fp_utime+parseInt(n)&&jQuery(e.target).find(".fp-message").delay(500).queue(function(e){jQuery(this).html(fv_flowplayer_translations.video_expired),e()})})}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}-1==navigator.platform.indexOf("iPhone")&&-1==navigator.platform.indexOf("iPod")&&-1==navigator.platform.indexOf("iPad")&&-1==navigator.userAgent.toLowerCase().indexOf("android")||flowplayer(function(e,t){e.bind("error",function(e,t,o){10==o.code&&jQuery(e.target).find(".fp-message").html(fv_flowplayer_translations.unsupported_format)})}),jQuery(document).ready(function(){-1==navigator.platform.indexOf("iPhone")&&-1==navigator.platform.indexOf("iPod")&&-1==navigator.platform.indexOf("iPad")||jQuery(window).trigger("load"),jQuery(".flowplayer").on("mouseleave",function(){jQuery(this).find(".fvp-share-bar").removeClass("visible"),jQuery(this).find(".embed-code").hide()})}),"undefined"!=typeof flowplayer&&flowplayer(function(e,a){a=jQuery(a);var n,r=!1,t=(flowplayer.engine("hlsjs-lite").plugin(function(e){n=e.hls}),e.conf.playlist.length?e.conf.playlist:[e.conf.clip]);function i(e){l();var t="Video is being processed",o="Please return later to see the actual video in this player.";e.pending_encoding_error?(t="Video unavailable",o="There was an error in the video encoding."):e.pending_encoding_progress&&(o+=" ("+e.pending_encoding_progress+" done)"),r=jQuery('Item 1.'),i=jQuery('Item 1. '),l=jQuery('').insertAfter(o.find(".fp-controls")),s=0,f=[],c=[],jQuery(t.conf.playlist).each(function(e,t){void 0===t.click&&(t=p(n.find("h4").eq(s)),l.append(''+(s+1)+". "+t+" "),c[e]=t,f.push(e),s++)}),r.insertAfter(o.find(".fp-controls .fp-volume")).on("click",e),i.insertAfter(r).on("click",e),jQuery("a",l).on("click",function(){void 0!==t.conf.playlist[jQuery(this).data("index")-1]&&void 0!==t.conf.playlist[jQuery(this).data("index")-1].click?t.play(jQuery(this).data("index")-1):t.play(jQuery(this).data("index"))}),t.on("ready",function(e,t,o){l.find("a").removeClass("fp-selected");var a=l.find("a[data-index="+o.index+"]"),n=(a.addClass("fp-selected"),fv_flowplayer_translations.playlist_item_no);n=(n=n.replace(/%d/,f.indexOf(o.index)+1)).replace(/%s/,p(a.find("h4"))),r.html(n),i.html(f.indexOf(o.index)+1+". "+c[o.index])})))}),flowplayer(function(e,a){a=jQuery(a);var n,r=e.conf.playlist;e.bind("load",function(e,t,o){n=o.index}),e.bind("error",function(e,t,o){setTimeout(function(){if(0r.length-1&&(n=0),console.log("FV Player: Playlist item failure, auto-advancing to "+(n+1)+". item"),t.play(n)}},1e3)})}),flowplayer(function(e,r){var i,l,s;function f(o){return o=[],jQuery(e.conf.playlist).each(function(e,t){o.push(e)}),o=function(e){for(var t,o,a=e.length;a;a--)t=Math.floor(Math.random()*a),o=e[a-1],e[a-1]=e[t],e[t]=o;return e}(o),console.log("FV Player Randomizer random seed:",o),o}((r=jQuery(r)).data("button-no_picture")||r.data("button-repeat")||r.data("button-rewind"))&&e.bind("ready",function(e,t){var o,a,n;void 0===l&&void 0===i&&(l=t.next,i=t.prev),!t.video.type.match(/^audio/)&&r.data("button-no_picture")&&0==r.find(".fv-fp-no-picture").length&&jQuery(' ').insertAfter(r.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),jQuery(".fp-engine",r).slideToggle(20),jQuery(this).toggleClass("is-active fp-color-fill"),r.toggleClass("is-no-picture")}),r.data("button-repeat")&&(0 '+n.playlist_replay_all+' '+n.playlist_shuffle+' '+n.playlist_replay_video+' '+n.playlist_play_all_button+" "),a=jQuery('").insertAfter(r.find(".fp-controls")),t.conf.playlist_shuffle=t.conf.track_repeat=!1,s=f(),t.conf.advance,o.insertAfter(r.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),"auto"!==a.css("right")&&a.css({right:"auto",left:o.position().left+"px"}),a.hasClass("fp-active")?t.hideMenu(a[0]):(r.trigger("click"),t.showMenu(a[0]))}),jQuery("a",a).on("click",function(){jQuery(this).siblings("a").removeClass("fp-selected"),jQuery(this).addClass("fp-selected"),o.removeClass("mode-normal mode-repeat-track mode-repeat-playlist mode-shuffle-playlist");var e=jQuery(this).data("action");"repeat_playlist"==e?(o.addClass("mode-repeat-playlist"),t.conf.loop=!0,t.conf.advance=!0,t.video.loop=t.conf.track_repeat=!1,t.conf.playlist_shuffle=!1):"shuffle_playlist"==e?(o.addClass("mode-shuffle-playlist"),t.conf.loop=!0,t.conf.advance=!0,t.conf.playlist_shuffle=!0):"repeat_track"==e?(o.addClass("mode-repeat-track"),t.conf.track_repeat=t.video.loop=!0,t.conf.loop=t.conf.playlist_shuffle=!1):"normal"==e&&(o.addClass("mode-normal"),t.conf.track_repeat=t.video.loop=!1,t.conf.loop=t.conf.playlist_shuffle=!1),t.conf.playlist_shuffle?(t.next=function(){t.play(s.pop()),0==s.length&&(s=f())},t.prev=function(){t.play(s.shift()),0==s.length&&(s=f())}):(t.next=l,t.prev=i)}),t.conf.loop&&jQuery("a[data-action=repeat_playlist]",a).trigger("click"),t.on("progress",function(){t.video.loop=t.conf.track_repeat}),t.on("finish.pl",function(e,t){console.log("playlist_repeat",t.conf.loop,"advance",t.conf.advance,"video.loop",t.video.loop),t.conf.playlist_shuffle&&(t.play(s.pop()),0==s.length&&(s=f()))})):0==r.find(".fv-fp-track-repeat").length&&0==t.conf.playlist.length&&((n=jQuery(' ')).insertAfter(r.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),jQuery(this).toggleClass("is-active fp-color-fill",t.video.loop),t.video.loop?t.video.loop=!1:t.video.loop=!0}),t.conf.loop&&n.addClass("is-active fp-color-fill"))),r.data("button-rewind")&&(0==r.find(".fv-fp-rewind").length&&((n=jQuery(' ')).insertBefore(r.find(".fp-controls .fp-playbtn")).on("click",function(e){e.preventDefault(),e.stopPropagation(),t.seek(t.video.time-10)}),n.toggle(!t.video.live||t.video.dvr)),0==r.find(".fv-fp-forward").length&&((n=jQuery(' ')).insertAfter(r.find(".fp-controls .fp-playbtn")).on("click",function(e){e.preventDefault(),e.stopPropagation(),t.seek(t.video.time+10)}),n.toggle(!t.video.live||t.video.dvr)))}).bind("unload",function(){r.find(".fv-fp-no-picture").remove(),r.find(".fv-fp-playlist").remove(),r.find(".fv-fp-track-repeat").remove()})}),flowplayer(function(e,t){var o=jQuery(t),a=o.data("playlist_start");function n(){1!==o.data("position_changed")&&e.conf.playlist.length&&(a--,void 0===e.conf.playlist[a].click&&(e.engine&&"hlsjs-lite"==e.engine.engineName&&(e.loading=!1),e.play(a)),o.data("position_changed",1))}void 0!==a&&(e.bind("unload",function(){a=o.data("playlist_start"),o.removeData("position_changed"),e.one("ready",n)}),e.one("ready",n),jQuery(".fp-ui",t).on("click",function(){n(),o.data("position_changed",1)}))}),document.addEventListener("custombox:overlay:close",function(e){console.log("FV Player: Custombox/Popup anything ligtbox closed");var t=jQuery(this).find(".flowplayer");0!=t.length&&(console.log("FV Player: Custombox/Popup anything ligtbox contains a player"),t.each(function(e,t){var o=jQuery(t).data("flowplayer");void 0!==o&&(o.playing?(console.log("FV Player: Custombox/Popup anything ligtbox video pause"),o.pause()):o.loading&&o.one("ready",function(){console.log("FV Player: Custombox/Popup anything ligtbox video unload"),o.unload()}))}))}),flowplayer(function(t,e){t.bind("finish",function(){var e=t.video.time;t.video.loop&&t.one("pause",function(){e<=t.video.time&&t.resume()})})}),flowplayer(function(t,a){(a=jQuery(a)).find(".fp-logo").removeAttr("href"),a.hasClass("no-controlbar")&&((e=t.sliders.timeline).disable(!0),t.bind("ready",function(){e.disable(!0)})),jQuery(".fvfp_admin_error",a).remove(),a.find(".fp-logo, .fp-header").on("click",function(e){e.target===this&&a.find(".fp-ui").trigger("click")}),jQuery(".fvp-share-bar .sharing-facebook",a).append('Facebook '),jQuery(".fvp-share-bar .sharing-twitter",a).append('Twitter '),jQuery(".fvp-share-bar .sharing-email",a).append('Email '),jQuery(".fp-header",a).prepend(jQuery(".fvp-share-bar",a)),t.conf.playlist.length&&(i=!0,2==(o=t.conf.playlist).length?(void 0!==o[0].click&&void 0===o[1].click&&(i=!1),void 0===o[0].click&&void 0!==o[1].click&&(i=!1)):3==o.length&&void 0!==o[0].click&&void 0===o[1].click&&void 0!==o[2].click&&(i=!1),i&&(o=jQuery(' '),i=jQuery(' '),a.find(".fp-controls .fp-playbtn").before(o).after(i),o.on("click",function(){t.trigger("prev",[t]),t.prev()}),i.on("click",function(){t.trigger("next",[t]),t.next()}))),"undefined"!=typeof fv_player_editor_conf&&a.on("click",".fvp-sharing > li",function(e){return e.preventDefault(),fv_player_notice(a,fv_player_editor_translations.link_notice,2e3),!1}),t.bind("pause resume finish unload ready",function(e,t){a.addClass("no-brand")}),t.one("ready",function(){a.find(".fp-fullscreen").clone().appendTo(a.find(".fp-controls"))}),t.on("ready",function(e,t,o){setTimeout(function(){jQuery(".fvp-share-bar",a).show(),jQuery(".fv-player-buttons-wrap",a).appendTo(jQuery(".fv-player-buttons-wrap",a).parent().find(".fp-ui"))},100)}),t.bind("finish",function(){var e=a.data("fv_redirect");e&&(void 0===t.video.is_last||t.video.is_last)&&(location.href=e)}),flowplayer.support.iOS&&11==flowplayer.support.iOS.version&&t.bind("error",function(e,t,o){4==o.code&&a.find(".fp-engine").hide()}),jQuery(document).on("contextmenu",".flowplayer",function(e){e.preventDefault()}),t.one("ready",function(e,t,o){a.find(".fp-chromecast").insertAfter(a.find(".fp-header .fp-fullscreen"))}),a.find(".fp-waiting").html('
');var e,n=a.attr("id"),r=!flowplayer.conf.native_fullscreen&&flowplayer.conf.mobile_alternative_fullscreen,o="fakefullscreen",i="fakefullscreen-exit";flowplayer.support.fullscreen||(o+=" fullscreen",i+=" fullscreen-exit"),t.bind(o,function(e,t){jQuery("#wpadminbar, .nc_wrapper").hide(),!r&&"fakefullscreen"!=e.type||"video/youtube"==t.video.type||(a.before(' '),a.appendTo("body"))}),t.bind(i,function(e,t,o){jQuery("#wpadminbar, .nc_wrapper").show(),!r&&"fakefullscreen-exit"!=e.type||jQuery("span[data-fv-placeholder="+n+"]").replaceWith(a)})}),function(){function e(p){p(function(a,n){var r,e,i,l,s;function f(e){return Math.round(100*e)/100}function c(t){r.find(".fp-speed",n)[0].innerHTML=t+"x",r.find(".fp-speed-menu a",n).forEach(function(e){r.toggleClass(e,"fp-selected",e.getAttribute("data-speed")==t),r.toggleClass(e,"fp-color",e.getAttribute("data-speed")==t)})}!jQuery(n).data("speedb")||(e=p.support).video&&e.inlineVideo&&(r=p.common,e=p.bean,i=r.find(".fp-ui",n)[0],l=r.find(".fp-controls",i)[0],s=a.conf.speeds,e.on(n,"click",".fp-speed",function(){var e=r.find(".fp-speed-menu",n)[0];r.hasClass(e,"fp-active")?a.hideMenu():a.showMenu(e)}),e.on(n,"click",".fp-speed-menu a",function(e){e=e.target.getAttribute("data-speed");a.speed(e)}),a.on("speed",function(e,t,o){1Speed"),s.forEach(function(e){e=r.createElement("a",{"data-speed":f(e)},f(e)+"x");o.appendChild(e)}),i.appendChild(o),c(a.currentSpeed),jQuery(n).find(".fp-speed-menu strong").text(fv_flowplayer_translations.speed))}))})}"object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=e:"function"==typeof window.flowplayer&&e(window.flowplayer)}(),flowplayer(function(e,t){void 0===fv_flowplayer_conf.disable_localstorage&&(e.on("speed",function(e,t,o){try{window.localStorage.fv_player_speed=o}catch(e){}}),e.on("ready",function(){window.localStorage.fv_player_speed&&jQuery(t).find("strong.fp-speed").is(":visible")&&e.speed(parseFloat(window.localStorage.fv_player_speed)),0==jQuery(t).data("volume")&&e.mute(!0,!0)}))}),flowplayer(function(e,a){a=jQuery(a);var n=-1;function r(){return e.video.index||0}e.conf.fv_stats&&(e.conf.fv_stats.enabled||a.data("fv_stats")&&"no"!=a.data("fv_stats"))&&e.on("ready finish",function(e,t){t.one("progress",function(e,t){if(a.data("fv_stats_data")){try{var o=a.data("fv_stats_data")}catch(e){return!1}n!=r()&&(n=r(),jQuery.post(t.conf.fv_stats.url,{blog_id:t.conf.fv_stats.blog_id,video_id:t.video.id||0,player_id:o.player_id,post_id:o.post_id,tag:"play"}))}})}).on("finish",function(){n=-1})}),flowplayer(function(o,e){var t,a,n,r,i=jQuery(e),l=i.find(".fp-player"),e=i.data("fvsticky"),s=!1,f=i.data("ratio");if(o.is_sticky=!1,void 0===f&&(f=.5625),(s=1==flowplayer.conf.sticky_video&&void 0===e?!0:s)||e){if(!flowplayer.support.firstframe)return;var c=flowplayer.conf.sticky_place,p=flowplayer.conf.sticky_width,d=(p=""==p?380:p)*f;t=jQuery(window),n=(a=i).offset().top,r=Math.floor(n+a.outerHeight()/2),o.on("unload",function(){y(),i.removeClass("is-unSticky")}),t.on("resize",function(){v()?(n=a.offset().top,r=Math.floor(n+a.outerHeight()/2)):o.is_sticky&&y()}).on("scroll",function(){if(v())if(n=a.offset().top,r=Math.floor(n+a.outerHeight()/2),t.scrollTop()>r&&(o.loading||flowplayer.audible_instance==i.data("flowplayer-instance-id"))){if(0'),l.css("width",p),l.css("height",d),l.css("max-height",d),o.is_sticky=!0,o.trigger("sticky",[o]),l.parent(".flowplayer").addClass("is-stickable"))}function y(){l.removeClass("is-sticky"),l.removeClass("is-sticky-"+c),l.css("width",""),l.css("height",""),l.css("max-height",""),l.parent(".flowplayer").removeClass("is-stickable"),o.is_sticky&&(o.is_sticky=!1,o.trigger("sticky-exit",[o]))}function v(){return jQuery(window).innerWidth()>=fv_flowplayer_conf.sticky_min_width}o.sticky=function(e,t){void 0===e&&(e=!o.is_sticky),t&&i.toggleClass("is-unSticky",!e),(e?u:y)()}}),jQuery(function(o){o(document).on("click","a.fp-sticky",function(){var e=o("div.flowplayer.is-stickable"),t=e.data("flowplayer"),e=(e.addClass("is-unSticky"),e.find(".fp-player"));e.removeClass("is-sticky"),e.removeClass("is-sticky-right-bottom"),e.removeClass("is-sticky-left-bottom"),e.removeClass("is-sticky-right-top"),e.removeClass("is-sticky-left-top"),e.css("width",""),e.css("height",""),e.css("max-height",""),t.is_sticky&&(t.is_sticky=!1,t.trigger("sticky-exit",[t]))}),o(document).on("click","div.flowplayer.is-unSticky",function(){o("div.flowplayer").removeClass("is-unSticky")})}),flowplayer(function(e,n){var r;n=jQuery(n),void 0===fv_flowplayer_conf.disable_localstorage&&(r=window.localStorage,e.on("ready",function(e,o,t){var a;t.subtitles&&t.subtitles.length&&(r.fv_player_subtitle&&o.video.subtitles.length?"none"===r.fv_player_subtitle?o.disableSubtitles():o.video.subtitles.forEach(function(e,t){e.srclang===r.fv_player_subtitle&&o.loadSubtitles(t)}):(a=t.subtitles.filter(function(e){return e.fv_default})[0])&&o.loadSubtitles(t.subtitles.indexOf(a))),n.find(".fp-subtitle-menu").on("click",function(e){var t=e.target.getAttribute("data-subtitle-index");if("string"==typeof t)try{r.fv_player_subtitle=-1 '+fv_flowplayer_translations.click_to_unmute+"")).on("click touchstart",function(){t.mute(!1),t.volume(1)}),a.find(".fp-ui").append(o),a.addClass("has-fp-message-muted"),setTimeout(l,5e3)))}),o.on("mute volume",function(){(!o.muted||0'),a=jQuery(e).prev(".fv-player-warning-wrapper")),0==a.find(".fv-player-warning-"+o).length&&(e=jQuery(""+t+"
"),a.append(e),e.slideDown())},flowplayer(function(t,a){a=jQuery(a),navigator.userAgent.match(/iPhone.* OS [0-6]_/i)&&t.one("progress",function(e){void 0!==t.video.subtitles&&t.video.subtitles.length&&fv_player_warning(a,fv_flowplayer_translations.warning_iphone_subs)}),flowplayer.support.android&&flowplayer.support.android.version<5&&(flowplayer.support.android.samsung||flowplayer.support.browser.safari)&&fv_player_warning(a,fv_flowplayer_translations.warning_unstable_android,"firefox"),/Android 4/.test(navigator.userAgent)&&!/Firefox/.test(navigator.userAgent)&&(t.on("ready",function(e,t,o){setTimeout(function(){o.src&&o.src.match(/fpdl.vimeocdn.com/)&&(0==o.time||1==o.time)&&(fv_player_warning(a,fv_flowplayer_translations.warning_unstable_android,"firefox"),t.on("progress",function(e,t){a.prev().find(".fv-player-warning-firefox").remove()}))},1500)}),t.on("error",function(e,t,o){2==o.MEDIA_ERR_NETWORK&&o.video.src.match(/fpdl.vimeocdn.com/)&&fv_player_warning(a,fv_flowplayer_translations.warning_unstable_android,"firefox")})),/Safari/.test(navigator.userAgent)&&/Version\/5/.test(navigator.userAgent)&&t.on("error",function(e,t,o){o.video.src.match(/fpdl.vimeocdn.com/)&&fv_player_warning(a,fv_flowplayer_translations.warning_old_safari)});var e=flowplayer.support;e.android&&(e.android.samsung&&parseInt(e.browser.version)<66||e.browser.safari)&&t.on("error",function(e,t,o){fv_player_warning(a,fv_flowplayer_translations.warning_samsungbrowser,"warning_samsungbrowser")})}));
\ No newline at end of file