diff --git a/AppNexusSDK.podspec b/AppNexusSDK.podspec
index 5c2cc50a8..5750bfd93 100644
--- a/AppNexusSDK.podspec
+++ b/AppNexusSDK.podspec
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "AppNexusSDK"
- s.version = "8.6.0"
+ s.version = "8.7.0"
s.platform = :ios, "10.0"
s.summary = "AppNexus iOS Mobile Advertising SDK"
diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md
index c0c53338f..fe9bcc6c7 100644
--- a/RELEASE-NOTES.md
+++ b/RELEASE-NOTES.md
@@ -1,3 +1,11 @@
+## 8.7.0
+
+### Improvement/Bug Fixes
++ MS-5346 Fixed issue where only last ad is rendered in a multi ad request for Banner Native Rendering
++ MS-5206 Added support for setting player size and getting video creative width and height for BannerVideo. New API introduced in ANBannerAdView landscapeBannerVideoPlayerSize, portraitBannerVideoPlayerSize, squareBannerVideoPlayerSize , getVideoWidth, getVideoHeight and In ANVideoAdPlayer getVideoWidth and getVideoHeight
++ MS-5344 Gracefully handle error to avoid crash during fetch User agent String
++ MS-5340 Fixed ModuleMap XCFramework Warning
+
## 8.6.0
### Improvement/Bug Fixes
diff --git a/sdk/AppNexusNativeSDK/SDK-Info.plist b/sdk/AppNexusNativeSDK/SDK-Info.plist
index a7b449493..2b7992869 100644
--- a/sdk/AppNexusNativeSDK/SDK-Info.plist
+++ b/sdk/AppNexusNativeSDK/SDK-Info.plist
@@ -15,7 +15,7 @@
CFBundlePackageTypeFMWKCFBundleShortVersionString
- $(MARKETING_VERSION)
+ 8.7.0CFBundleVersion$(CURRENT_PROJECT_VERSION)
diff --git a/sdk/AppNexusSDK.xcodeproj/project.pbxproj b/sdk/AppNexusSDK.xcodeproj/project.pbxproj
index 2b126ae46..0744e3829 100644
--- a/sdk/AppNexusSDK.xcodeproj/project.pbxproj
+++ b/sdk/AppNexusSDK.xcodeproj/project.pbxproj
@@ -137,30 +137,30 @@
607A20FE1F85540800BD8353 /* ANAdFetcherResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F131E8B1F71CCE50019FDAC /* ANAdFetcherResponse.m */; };
607A20FF1F85540E00BD8353 /* ANTrackerManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 4FA566EA1F4B94D3004652AB /* ANTrackerManager.m */; };
607A21001F85541900BD8353 /* ANTrackerInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 4FA566E81F4B94D3004652AB /* ANTrackerInfo.m */; };
- 607A21131F85554F00BD8353 /* ANTrackerInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 4FA566E71F4B94D3004652AB /* ANTrackerInfo.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 607A21141F85557E00BD8353 /* ANAdFetcherResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 4F131E8A1F71CCE50019FDAC /* ANAdFetcherResponse.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ 607A21131F85554F00BD8353 /* ANTrackerInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 4FA566E71F4B94D3004652AB /* ANTrackerInfo.h */; };
+ 607A21141F85557E00BD8353 /* ANAdFetcherResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 4F131E8A1F71CCE50019FDAC /* ANAdFetcherResponse.h */; };
607BB5B623E88019002A0F57 /* ANMultiAdRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F5758B02303A8CB00AFF4B6 /* ANMultiAdRequest.m */; };
609732B01E42E73D0061EC0A /* NSDictionary+ANCategory.h in Headers */ = {isa = PBXBuildFile; fileRef = 609732AE1E42E73D0061EC0A /* NSDictionary+ANCategory.h */; };
609732B21E42E73D0061EC0A /* NSDictionary+ANCategory.m in Sources */ = {isa = PBXBuildFile; fileRef = 609732AF1E42E73D0061EC0A /* NSDictionary+ANCategory.m */; };
609732B41E42E7910061EC0A /* ANInstreamVideoAd.h in Headers */ = {isa = PBXBuildFile; fileRef = 609732B31E42E7910061EC0A /* ANInstreamVideoAd.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 609732B71E42E90C0061EC0A /* ANCSMVideoAd.h in Headers */ = {isa = PBXBuildFile; fileRef = 609732B51E42E90C0061EC0A /* ANCSMVideoAd.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ 609732B71E42E90C0061EC0A /* ANCSMVideoAd.h in Headers */ = {isa = PBXBuildFile; fileRef = 609732B51E42E90C0061EC0A /* ANCSMVideoAd.h */; };
609732B91E42E90C0061EC0A /* ANCSMVideoAd.m in Sources */ = {isa = PBXBuildFile; fileRef = 609732B61E42E90C0061EC0A /* ANCSMVideoAd.m */; };
609732BC1E42E95C0061EC0A /* ANSSMVideoAd.h in Headers */ = {isa = PBXBuildFile; fileRef = 609732BA1E42E95C0061EC0A /* ANSSMVideoAd.h */; };
609732BE1E42E95C0061EC0A /* ANSSMVideoAd.m in Sources */ = {isa = PBXBuildFile; fileRef = 609732BB1E42E95C0061EC0A /* ANSSMVideoAd.m */; };
609732C11E42E9670061EC0A /* ANSSMStandardAd.h in Headers */ = {isa = PBXBuildFile; fileRef = 609732BF1E42E9670061EC0A /* ANSSMStandardAd.h */; };
609732C31E42E9670061EC0A /* ANSSMStandardAd.m in Sources */ = {isa = PBXBuildFile; fileRef = 609732C01E42E9670061EC0A /* ANSSMStandardAd.m */; };
- 609732CE1E42E9860061EC0A /* ANAdFetcher.h in Headers */ = {isa = PBXBuildFile; fileRef = 609732C41E42E9860061EC0A /* ANAdFetcher.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ 609732CE1E42E9860061EC0A /* ANAdFetcher.h in Headers */ = {isa = PBXBuildFile; fileRef = 609732C41E42E9860061EC0A /* ANAdFetcher.h */; };
609732D01E42E9860061EC0A /* ANAdFetcher.m in Sources */ = {isa = PBXBuildFile; fileRef = 609732C51E42E9860061EC0A /* ANAdFetcher.m */; };
- 609732D11E42E9860061EC0A /* ANUniversalTagAdServerResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 609732C61E42E9860061EC0A /* ANUniversalTagAdServerResponse.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ 609732D11E42E9860061EC0A /* ANUniversalTagAdServerResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 609732C61E42E9860061EC0A /* ANUniversalTagAdServerResponse.h */; };
609732D31E42E9860061EC0A /* ANUniversalTagAdServerResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 609732C71E42E9860061EC0A /* ANUniversalTagAdServerResponse.m */; };
609732D41E42E9860061EC0A /* ANUniversalTagRequestBuilder.h in Headers */ = {isa = PBXBuildFile; fileRef = 609732C81E42E9860061EC0A /* ANUniversalTagRequestBuilder.h */; };
609732D61E42E9860061EC0A /* ANUniversalTagRequestBuilder.m in Sources */ = {isa = PBXBuildFile; fileRef = 609732C91E42E9860061EC0A /* ANUniversalTagRequestBuilder.m */; };
- 609732D71E42E9860061EC0A /* ANVideoAdProcessor.h in Headers */ = {isa = PBXBuildFile; fileRef = 609732CA1E42E9860061EC0A /* ANVideoAdProcessor.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ 609732D71E42E9860061EC0A /* ANVideoAdProcessor.h in Headers */ = {isa = PBXBuildFile; fileRef = 609732CA1E42E9860061EC0A /* ANVideoAdProcessor.h */; };
609732D91E42E9860061EC0A /* ANVideoAdProcessor.m in Sources */ = {isa = PBXBuildFile; fileRef = 609732CB1E42E9860061EC0A /* ANVideoAdProcessor.m */; };
609732DA1E42E9860061EC0A /* ANRTBVideoAd.h in Headers */ = {isa = PBXBuildFile; fileRef = 609732CC1E42E9860061EC0A /* ANRTBVideoAd.h */; };
609732DC1E42E9860061EC0A /* ANRTBVideoAd.m in Sources */ = {isa = PBXBuildFile; fileRef = 609732CD1E42E9860061EC0A /* ANRTBVideoAd.m */; };
609733061E42EAFF0061EC0A /* ANInstreamVideoAd.m in Sources */ = {isa = PBXBuildFile; fileRef = 609732FC1E42EAFF0061EC0A /* ANInstreamVideoAd.m */; };
- 609733071E42EAFF0061EC0A /* ANVideoAdPlayer.h in Headers */ = {isa = PBXBuildFile; fileRef = 609732FD1E42EAFF0061EC0A /* ANVideoAdPlayer.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ 609733071E42EAFF0061EC0A /* ANVideoAdPlayer.h in Headers */ = {isa = PBXBuildFile; fileRef = 609732FD1E42EAFF0061EC0A /* ANVideoAdPlayer.h */; };
609733091E42EAFF0061EC0A /* ANVideoAdPlayer.m in Sources */ = {isa = PBXBuildFile; fileRef = 609732FE1E42EAFF0061EC0A /* ANVideoAdPlayer.m */; };
60C4CB0225DD76B400A744CC /* ANRealTimer.h in Headers */ = {isa = PBXBuildFile; fileRef = 60C4CB0025DD76B300A744CC /* ANRealTimer.h */; };
60C4CB0325DD76B500A744CC /* ANRealTimer.h in Headers */ = {isa = PBXBuildFile; fileRef = 60C4CB0025DD76B300A744CC /* ANRealTimer.h */; };
@@ -300,11 +300,11 @@
8A9AEDC71A1BF88200C58BDA /* NSString+ANCategory.h in Headers */ = {isa = PBXBuildFile; fileRef = ECE4EA96194B768A0069D934 /* NSString+ANCategory.h */; settings = {ATTRIBUTES = (Private, ); }; };
8A9AEDC81A1BF88200C58BDA /* NSTimer+ANCategory.h in Headers */ = {isa = PBXBuildFile; fileRef = ECE4EA98194B768A0069D934 /* NSTimer+ANCategory.h */; settings = {ATTRIBUTES = (Private, ); }; };
8A9AEDC91A1BF88200C58BDA /* UIView+ANCategory.h in Headers */ = {isa = PBXBuildFile; fileRef = ECE4EA9A194B768A0069D934 /* UIView+ANCategory.h */; settings = {ATTRIBUTES = (Private, ); }; };
- 8A9AEDCE1A1BF88200C58BDA /* ANAdViewInternalDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 8AD618A51981C11F00AC0780 /* ANAdViewInternalDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ 8A9AEDCE1A1BF88200C58BDA /* ANAdViewInternalDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 8AD618A51981C11F00AC0780 /* ANAdViewInternalDelegate.h */; };
8A9AEDD01A1BF88200C58BDA /* ANANJAMImplementation.h in Headers */ = {isa = PBXBuildFile; fileRef = 8AD618A81981C11F00AC0780 /* ANANJAMImplementation.h */; settings = {ATTRIBUTES = (Private, ); }; };
8A9AEDD21A1BF88200C58BDA /* ANBrowserViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 8AD618AC1981C11F00AC0780 /* ANBrowserViewController.h */; settings = {ATTRIBUTES = (Private, ); }; };
8A9AEDD31A1BF88200C58BDA /* ANClickOverlayView.h in Headers */ = {isa = PBXBuildFile; fileRef = 8AD618AE1981C11F00AC0780 /* ANClickOverlayView.h */; settings = {ATTRIBUTES = (Private, ); }; };
- 8A9AEDD41A1BF88200C58BDA /* ANGlobal.h in Headers */ = {isa = PBXBuildFile; fileRef = 8AD618B01981C11F00AC0780 /* ANGlobal.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ 8A9AEDD41A1BF88200C58BDA /* ANGlobal.h in Headers */ = {isa = PBXBuildFile; fileRef = 8AD618B01981C11F00AC0780 /* ANGlobal.h */; };
8A9AEDD51A1BF88200C58BDA /* ANInterstitialAdViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 8AD618B31981C11F00AC0780 /* ANInterstitialAdViewController.h */; settings = {ATTRIBUTES = (Private, ); }; };
8A9AEDD61A1BF88200C58BDA /* ANLogging.h in Headers */ = {isa = PBXBuildFile; fileRef = 8AD618B61981C11F00AC0780 /* ANLogging.h */; settings = {ATTRIBUTES = (Public, ); }; };
8A9AEDD71A1BF88200C58BDA /* ANMediatedAd.h in Headers */ = {isa = PBXBuildFile; fileRef = 8AD618B91981C11F00AC0780 /* ANMediatedAd.h */; settings = {ATTRIBUTES = (Private, ); }; };
@@ -420,13 +420,13 @@
F5731B54228C8D3A0012B134 /* ANNativeMediatedAdResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 8AB8762D1A0994310022D9A5 /* ANNativeMediatedAdResponse.h */; settings = {ATTRIBUTES = (Public, ); }; };
F5731B55228C8DD10012B134 /* ANCarrierObserver.h in Headers */ = {isa = PBXBuildFile; fileRef = 9EEE4E4E214FD2100056C5DD /* ANCarrierObserver.h */; };
F5731B56228C8DD50012B134 /* ANCarrierObserver.m in Sources */ = {isa = PBXBuildFile; fileRef = 9EEE4E4F214FD2100056C5DD /* ANCarrierObserver.m */; };
- F5731B59228C8DE20012B134 /* ANUniversalTagAdServerResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 609732C61E42E9860061EC0A /* ANUniversalTagAdServerResponse.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ F5731B59228C8DE20012B134 /* ANUniversalTagAdServerResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 609732C61E42E9860061EC0A /* ANUniversalTagAdServerResponse.h */; };
F5731B5A228C8DE90012B134 /* ANUniversalTagAdServerResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 609732C71E42E9860061EC0A /* ANUniversalTagAdServerResponse.m */; };
F5731B5B228C8DEC0012B134 /* ANUniversalTagRequestBuilder.h in Headers */ = {isa = PBXBuildFile; fileRef = 609732C81E42E9860061EC0A /* ANUniversalTagRequestBuilder.h */; };
F5731B5C228C8DEF0012B134 /* ANUniversalTagRequestBuilder.m in Sources */ = {isa = PBXBuildFile; fileRef = 609732C91E42E9860061EC0A /* ANUniversalTagRequestBuilder.m */; };
F5731B5D228C8DF50012B134 /* ANBaseAdObject.h in Headers */ = {isa = PBXBuildFile; fileRef = FCC5DA5D2034ABFC003DC7B2 /* ANBaseAdObject.h */; };
F5731B5E228C8DFA0012B134 /* ANBaseAdObject.m in Sources */ = {isa = PBXBuildFile; fileRef = FCC5DA5C2034ABFB003DC7B2 /* ANBaseAdObject.m */; };
- F5731B5F228C8DFE0012B134 /* ANCSMVideoAd.h in Headers */ = {isa = PBXBuildFile; fileRef = 609732B51E42E90C0061EC0A /* ANCSMVideoAd.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ F5731B5F228C8DFE0012B134 /* ANCSMVideoAd.h in Headers */ = {isa = PBXBuildFile; fileRef = 609732B51E42E90C0061EC0A /* ANCSMVideoAd.h */; };
F5731B60228C8E050012B134 /* ANCSMVideoAd.m in Sources */ = {isa = PBXBuildFile; fileRef = 609732B61E42E90C0061EC0A /* ANCSMVideoAd.m */; };
F5731B61228C8E0A0012B134 /* ANMediatedAd.h in Headers */ = {isa = PBXBuildFile; fileRef = 8AD618B91981C11F00AC0780 /* ANMediatedAd.h */; settings = {ATTRIBUTES = (Private, ); }; };
F5731B62228C8E110012B134 /* ANMediatedAd.m in Sources */ = {isa = PBXBuildFile; fileRef = 8AD618BA1981C11F00AC0780 /* ANMediatedAd.m */; };
@@ -445,7 +445,7 @@
F5731B6F228C8F680012B134 /* ANTargetingParameters.h in Headers */ = {isa = PBXBuildFile; fileRef = ECE4EA94194B768A0069D934 /* ANTargetingParameters.h */; settings = {ATTRIBUTES = (Public, ); }; };
F5731B70228C8F820012B134 /* ANTargetingParameters.m in Sources */ = {isa = PBXBuildFile; fileRef = 8AD618C81981C11F00AC0780 /* ANTargetingParameters.m */; };
F5731B71228C8FD20012B134 /* ANGlobal.m in Sources */ = {isa = PBXBuildFile; fileRef = 8AD618B11981C11F00AC0780 /* ANGlobal.m */; };
- F5731B72228C8FD60012B134 /* ANGlobal.h in Headers */ = {isa = PBXBuildFile; fileRef = 8AD618B01981C11F00AC0780 /* ANGlobal.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ F5731B72228C8FD60012B134 /* ANGlobal.h in Headers */ = {isa = PBXBuildFile; fileRef = 8AD618B01981C11F00AC0780 /* ANGlobal.h */; };
F5731B73228C900B0012B134 /* ANLocation.m in Sources */ = {isa = PBXBuildFile; fileRef = 8AD618B51981C11F00AC0780 /* ANLocation.m */; };
F5731B74228C900E0012B134 /* ANLocation.h in Headers */ = {isa = PBXBuildFile; fileRef = ECE4EA92194B768A0069D934 /* ANLocation.h */; settings = {ATTRIBUTES = (Public, ); }; };
F5731B75228C90240012B134 /* ANLogManager.h in Headers */ = {isa = PBXBuildFile; fileRef = ECE4EA93194B768A0069D934 /* ANLogManager.h */; settings = {ATTRIBUTES = (Public, ); }; };
@@ -453,12 +453,12 @@
F5731B77228C902D0012B134 /* ANLogging.m in Sources */ = {isa = PBXBuildFile; fileRef = 8AD618B71981C11F00AC0780 /* ANLogging.m */; };
F5731B78228C90310012B134 /* ANLogging.h in Headers */ = {isa = PBXBuildFile; fileRef = 8AD618B61981C11F00AC0780 /* ANLogging.h */; settings = {ATTRIBUTES = (Public, ); }; };
F5731B79228C94700012B134 /* ANAdFetcherResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F131E8B1F71CCE50019FDAC /* ANAdFetcherResponse.m */; };
- F5731B7A228C94720012B134 /* ANAdFetcherResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 4F131E8A1F71CCE50019FDAC /* ANAdFetcherResponse.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ F5731B7A228C94720012B134 /* ANAdFetcherResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 4F131E8A1F71CCE50019FDAC /* ANAdFetcherResponse.h */; };
F5731B7B228C94850012B134 /* ANReachability.h in Headers */ = {isa = PBXBuildFile; fileRef = 8AD618C61981C11F00AC0780 /* ANReachability.h */; settings = {ATTRIBUTES = (Private, ); }; };
F5731B7C228C948C0012B134 /* ANReachability.m in Sources */ = {isa = PBXBuildFile; fileRef = 8AD618C71981C11F00AC0780 /* ANReachability.m */; };
F5731B7E228C94990012B134 /* ANTrackerManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 4FA566EA1F4B94D3004652AB /* ANTrackerManager.m */; };
F5731B7F228C94AB0012B134 /* ANTrackerInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 4FA566E81F4B94D3004652AB /* ANTrackerInfo.m */; };
- F5731B80228C94AE0012B134 /* ANTrackerInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 4FA566E71F4B94D3004652AB /* ANTrackerInfo.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ F5731B80228C94AE0012B134 /* ANTrackerInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 4FA566E71F4B94D3004652AB /* ANTrackerInfo.h */; };
F5731B81228C94C70012B134 /* ANBrowserViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 8AD618AC1981C11F00AC0780 /* ANBrowserViewController.h */; settings = {ATTRIBUTES = (Private, ); }; };
F5731B82228C94CC0012B134 /* ANBrowserViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8AD618AD1981C11F00AC0780 /* ANBrowserViewController.m */; };
F5731B83228C94E70012B134 /* ANOpenInExternalBrowserActivity.h in Headers */ = {isa = PBXBuildFile; fileRef = 8A2F48211A2E255600B0EA05 /* ANOpenInExternalBrowserActivity.h */; settings = {ATTRIBUTES = (Private, ); }; };
@@ -1906,7 +1906,7 @@
"@loader_path/Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
- MARKETING_VERSION = 8.6.0;
+ MARKETING_VERSION = 8.7.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = Xandr.AppNexusNativeMacOSSDK;
@@ -1952,7 +1952,7 @@
"@loader_path/Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
- MARKETING_VERSION = 8.6.0;
+ MARKETING_VERSION = 8.7.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = Xandr.AppNexusNativeMacOSSDK;
@@ -1998,7 +1998,7 @@
"@loader_path/Frameworks",
);
LIBRARY_SEARCH_PATHS = "";
- MARKETING_VERSION = 8.6.0;
+ MARKETING_VERSION = 8.7.0;
MTL_ENABLE_DEBUG_INFO = YES;
PRODUCT_BUNDLE_IDENTIFIER = "corp.appnexus.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -2040,7 +2040,7 @@
"@loader_path/Frameworks",
);
LIBRARY_SEARCH_PATHS = "";
- MARKETING_VERSION = 8.6.0;
+ MARKETING_VERSION = 8.7.0;
MTL_ENABLE_DEBUG_INFO = NO;
PRODUCT_BUNDLE_IDENTIFIER = "corp.appnexus.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -2204,7 +2204,7 @@
"@loader_path/Frameworks",
);
LIBRARY_SEARCH_PATHS = "";
- MARKETING_VERSION = 8.6.0;
+ MARKETING_VERSION = 8.7.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = corp.appnexus.AppNexusSDK;
@@ -2255,7 +2255,7 @@
"@loader_path/Frameworks",
);
LIBRARY_SEARCH_PATHS = "";
- MARKETING_VERSION = 8.6.0;
+ MARKETING_VERSION = 8.7.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = corp.appnexus.AppNexusSDK;
diff --git a/sdk/AppNexusSDK/SDK-Info.plist b/sdk/AppNexusSDK/SDK-Info.plist
index 9b4b718cc..9a44d62cc 100644
--- a/sdk/AppNexusSDK/SDK-Info.plist
+++ b/sdk/AppNexusSDK/SDK-Info.plist
@@ -15,7 +15,7 @@
CFBundlePackageTypeFMWKCFBundleShortVersionString
- $(MARKETING_VERSION)
+ 8.7.0CFBundleSignature????CFBundleVersion
diff --git a/sdk/sourcefiles/Resources/MobileVastPlayer.js b/sdk/sourcefiles/Resources/MobileVastPlayer.js
index afd96aa44..2bbdf6bbb 100644
--- a/sdk/sourcefiles/Resources/MobileVastPlayer.js
+++ b/sdk/sourcefiles/Resources/MobileVastPlayer.js
@@ -1,7 +1,7 @@
-/*! (c)2022 AppNexus, Inc. v1.5.1
-This code contains portions of Video.js modified by AppNexus. Video.js is Copyright Brightcove, Inc. and Licensed under the Apache License, Version 2.0 (the “License”); you may not use Video.js except in compliance with the License. You may obtain a copy of the License at
-http://www.apache.org/licenses/LICENSE-2.0
-Unless required by applicable law or agreed in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
+/*! (c)2023 AppNexus, Inc. v1.5.1
+This code contains portions of Video.js modified by AppNexus. Video.js is Copyright Brightcove, Inc. and Licensed under the Apache License, Version 2.0 (the “License”); you may not use Video.js except in compliance with the License. You may obtain a copy of the License at
+http://www.apache.org/licenses/LICENSE-2.0
+Unless required by applicable law or agreed in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Apache License, Version 2.0
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
@@ -21,7 +21,7 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
a. You must give any other recipients of the Work or Derivative Works a copy of this License; and
b. You must cause any modified files to carry prominent notices stating that You changed the files; and
c. You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
-d. If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
+d. If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
@@ -30,14 +30,14 @@ You may add Your own copyright statement to Your modifications and may provide a
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
-This code contains portions of videojs-vast-plugin which is licensed under the MIT License.
+This code contains portions of videojs-vast-plugin which is licensed under the MIT License.
The MIT License (MIT)
Copyright (c) 2015 MailOnline
Permission is here by granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-var APNVideo_MobileVastPlayer=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){var i=[];function r(e,t){if(!e)return null;for(var n=0;n cbWhenQuartile "+t),v(t,{})},k=function(e,n){var i=e,r=n;if("AdHandler"===i&&"video_impression"===r)try{var o=new CustomEvent("outstream-impression");t.dispatchEvent(o)}catch(e){error(e)}for(var a=[{type:"AdHandler",name:"video_start",mappedEventName:"videoStart"},{type:"AdHandler",name:"rewind",mappedEventName:"videoRewind"},{type:"AdHandler",name:"video_fullscreen_enter",mappedEventName:"video-fullscreen-enter"},{type:"AdHandler",name:"video_fullscreen_exit",mappedEventName:"video-fullscreen-exit"}],s=0;s cbWhenVideoComplete "+t),v(t,{})},S=function(t){e("VastPlayer > cbWhenSkipped "+t),v(t,{})},C=function(t){e("VastPlayer > cbWhenAudio "+t),v(t,{})},I=function(e){v(e,{})},_=function(t){e("VastPlayer > cbWhenFullScreen "+t),v(t,{})},j=function(n,r,o){e("VastPlayer > cbTerminate isError: "+n);var a="unknown";t&&(a=t.id.toString()),e("VastPlayer > cbTerminate: bTerminated = "+m+", targetElement id = "+a),y=!1,m||(m=!0,r||P(),!o&&N()&&d.overlayPlayer&&P(),t&&(A&&(A.isPlayingVideo&&(e("VastPlayer > cbTerminate: pause ad"),A.pause()),t.style.height="1px",A.resizePlayer(1,1)),setTimeout((function(){t&&(t.innerHTML="",i.removeChild(t)),t=null}),2e3)),v&&n&&v("video-error",{}))},P=function(){document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()},x=function(n){var i,r,a,s,l;i=n&&n.options&&n.options.video&&n.options.video.url?n.options.video.url:"",r=n&&n.options&&n.options.data&&n.options.data.vastDurationMsec?n.options.data.vastDurationMsec:0,a=n&&n.options&&n.options.finalVastXml?n.options.finalVastXml:"",s=n&&n.options&&n.options.finalVastUri?n.options.finalVastUri:"",l=n&&n.getFinalAspectRatio()?n.getFinalAspectRatio():"",m||(p=!0,A=n,e("VastPlayer > cbWhenReady in "+((new Date).getTime()-o)+" msecs"),v&&v("adReady",{creativeUrl:i,duration:r,vastXML:a,vastCreativeUrl:s,aspectRatio:l}),"click"===d.initialPlayback||d.cachePlayer||(N()&&d.overlayPlayer?d.forceAdInFullscreen?(b=!0,P()):(t&&(t.style.width="1px",t.style.height="1px"),j(!1,!0,!0)):A.play()))};function V(n){n.cbNotification=function(e,t){k(e,t)},e("Build Ad Player Callback"),m||(f?g?(g.options=r.init(g.options),r.buildPlayer(g.callbacks,g.options),g={options:n,callbacks:c}):y?(g={options:n,callbacks:c},v(t,{})):(n=r.init(n),r.buildPlayer(c,n),y=!0):(g=null,e("Building single player"),n=r.init(n),r.buildPlayer(c,n)))}function M(){d={},t=null,i=null,c={},r=Object.create(s),u&&clearTimeout(u),u=null,p=!1,h=3e3,v=null,f=!1,m=!1,g=null,y=!1,o=null}function N(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement}function D(){var n,r;if(e("repositionPlayer: try reposion/resize overlay player"),d.cachePlayer||m)e("repositionPlayer: never reposition terminated or cache palyer");else if(!N()){n=i.offsetWidth,r=i.offsetHeight;var o=i.style.borderWidth;if(o&&o.length>0){var a=Number(o.substring(0,o.length-2));n-=2*a,r-=2*a}t.style.width=n+"px",t.style.height=r+"px";var s=L(i);e("repositionPlayer: targetDiv absolute posiotion ="+s.left+", "+s.top),t.style.left=s.left+"px",t.style.top=s.top+"px",e("repositionPlayer: size = "+n+", "+r),d.overlayPlayer?A.resizePlayer(n,r):A.resizeVideo(null,!1,null)}}var O=null;function R(t){switch(e("Got notification: "+t),t){case"leaveFullscreen":P();break;default:e("Unknown player notification: "+t)}}function L(e){for(var t=0,n=0;e&&"BODY"!==e.tagName&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);){var i=document.defaultView.getComputedStyle(e,null).position;if(i&&""!==i&&"static"!==i)break;t+=e.offsetLeft-e.scrollLeft+e.clientLeft,n+=e.offsetTop-e.scrollTop+e.clientTop,e=e.offsetParent}return{left:t,top:n}}function U(e,t){if(!e.children)return t;for(var n,i,r=Math.max(t,(n=e,"auto"!==(i=document.defaultView.getComputedStyle(n,null).zIndex)?i:0)),o=0;o0){var y=Number(g.substring(0,g.length-2));d.width-=2*y,d.height-=2*y}d.playerHeight=d.height,function(){var t;try{t=function(){try{var e=navigator.platform,t=navigator.userAgent,n=navigator.appVersion;if(/iP(hone|od|ad)/.test(e)&&!/CriOS/.test(t)){var i=n.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3]||0,10)]}return[0,0,0]}catch(e){return[0,0,0]}}()[0]>=8&&!0===d.enableInlineVideoForIos}catch(t){e(t)}return t}()&&(d.playerHeight-=30),N()&&(d.fullscreenMode=!0),e("offsetWidth="+n.offsetWidth+", offsetHeight="+n.offsetHeight+", borderWidth="+n.style.borderWidth);var A=document.createElement("div");A.style.width=d.width+"px",d.fitInContainer?A.style.height=d.height+"px":d.cachePlayer&&d.overlayPlayer?A.style.height="1px":A.style.height=d.height+"px",A.style.backgroundColor="black",A.id=n.id+"_overlay_"+(new Date).getTime();var b=L(n);e("targetDiv absolute posiotion ="+b.left+", "+b.top),A.style.position="absolute",A.style.left=b.left+"px",A.style.top=b.top+"px",d.fitInContainer?A.style.zIndex=Math.max(100,U(n,0)+1):(w=Math.max(100,U(n,0)+1),d.cachePlayer&&d.overlayPlayer?A.style.zIndex=0:A.style.zIndex=w),n.appendChild(A),e("player container offsetLeft = "+A.offsetLeft+", offsetTop = "+A.offsetTop),t=A,i=n,o=(new Date).getTime(),e("timeToReady = "+h+", start time = "+o),u=setTimeout((function(){p||(j(!1),v&&v("Timed-out",{}))}),h);c.cbRenderVideo=function(t,n){e("VastPlayer > cbRenderVideo called");try{e("VastPlayer > cbRenderVideo options: ",JSON.stringify(n))}catch(e){}V(n)},c.cbWhenDestroy=j,c.cbWhenReady=x,c.cbWhenQuartile=T,c.cbWhenVideoComplete=E,c.cbWhenSkipped=S,c.cbWhenFullScreen=_,c.cbWhenAudio=C,c.cbWhenClickOpenUrl=I,c.cbCoreVideoEvent=k,d.playerNotification=R,d.overlayPlayer&&(d.hasOwnProperty("allowFullscreen")||(d.allowFullscreen=!1)),e("VP >> before options.initialAudio = "+d.initialAudio),"auto"===d.initialPlayback&&"on"===d.initialAudio&&(navigator.appVersion.indexOf("Mobile")>-1||navigator.appVersion.indexOf("Android")>-1)&&navigator.userAgent.indexOf("Chrome")>-1&&function(){var e=navigator.appVersion.indexOf("Chrome/");if(e>=0){var t=navigator.appVersion.substr(e+7);return(e=t.indexOf("."))>0?Number(t.substr(0,e)):0}return 0}()>=53&&(d.showMute=!0,d.showVolume=!0),e("VP >> after options.initialAudio = "+d.initialAudio),l(t,d,c)}document.body.onresize&&(O=document.body.onresize),window.onresize=function(n){e("Resize event happend"),t&&A&&(b?(b=!1,d.fitInContainer&&(t.style.zIndex=w),setTimeout((function(){D(),"click"!==d.initialPlayback&&A.play()}),100)):D()),O&&O(n)},this.playVast=function(t,n,i,r,o){e("VP >> playVast function called playerId = "+this.vastPlayerId),j(!1,!0),M(),(d=n).vastXml=i,F(t,r,o)},this.playAdObject=function(t,n,i,r,o){e("VP >> playAdObject function called playerId = "+this.vastPlayerId+", cache mode = "+n.cachePlayer),j(!1,!0),M(),d=n,"string"==typeof i?d.vastXml=i:(d.useAdObj=!0,d.adObj=i),F(t,r,o)},this.stop=function(){u&&(clearTimeout(u),u=null),j(!1)},this.removeFromPage=function(){u&&(clearTimeout(u),u=null),m=!0,t&&(t.innerHTML="",i.removeChild(t),t=null)},this.play=function(){e("VP >> play function called playerId = "+this.vastPlayerId),A&&(d.cachePlayer=!1,N()&&d.overlayPlayer?d.forceAdInFullscreen?(b=!0,P()):j(!1,!0,!0):(t&&!1===d.fitInContainer&&(t.style.zIndex=w),D(),"click"!==d.initialPlayback&&A.play()))},this.sendPlay=function(){e("VP >> sendPlay function called playerID = "+this.vastPlayerId),A&&!A.isPlayingVideo&&A.play()},this.sendPause=function(){e("VP >> sendPause function called playerID = "+this.vastPlayerId),A&&A.isPlayingVideo&&A.pause()},this.handleFullscreen=function(e){A&&(e?i.requestFullscreen?i.requestFullscreen():i.webkitRequestFullscreen?i.webkitRequestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.msRequestFullscreen&&i.msRequestFullscreen():document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen())},this.vastPlayerId=(new Date).getTime(),this.isTerminated=function(){return m},this.getIsVideoPlaying=function(){return!(!A||!A.isPlayingVideo)},this.getCurrentPlayHeadTime=function(){var e=0;return r&&r.adVideoPlayer&&"function"==typeof r.adVideoPlayer.player&&(e=1e3*r.adVideoPlayer.player().currentTime(),e=parseInt&&"function"==typeof parseInt?parseInt(e):e),e}};e.exports={playAdObject:function(e,t,n,i,r){var a=o(t.targetElementId,t.cachePlayer);a&&a.playAdObject(e,t,n,i,r)},playVast:function(e,t,n,i,r){var a=o(t.targetElementId);a&&a.playVast(e,t,n,i,r)},loadAndPlayVast:function(e,t,i,r,a){n(88).load(i,(function(s,l){if(s||0===l.length){n(86).logDebug("Failed to load "+i,"Vast Video Player")}else{var d=o(t.targetElementId);d&&d.playVast(e,t,l,r,a)}}))},stop:function(e,t){var n=r(e.id,t);n&&n.stop()},removeFromPage:function(e){var t=r(e);t&&t.removeFromPage()},play:function(e,t){var n=function(e,t){if(!e)return null;for(var n=0;n-1,videojs_vpaid:o,overlayPlayer:!1,forceToSkip:!1,ExtendDefaultOption:a,delayEventHandler:null,pausedByViewability:!1,mutedByVisibility:!1,isReadyToExpandForMobile:!1,isAlreadyPlaingForVPAID:!1,isSideStreamActivated:!1,isExpanded:!0,isVideoCompleteInjected:!1,isFullscreenToggled:!1,toggleWindowFocus:!0,viewabilityTracking:null,isDoneFirstLoadStart:!1,startedReplay:!1,Utils:l,isAlreadyStart:!1,isEnded:!1,blockTrackingUserActivity:!1,videoId:"",divIdForVideo:"",simidIntegratorObj:null,init:function(e){var t=a(b,e);return this.options=t,!0===this.options.skippable.allowOverride&&(this.options.skippable.videoThreshold=0,this.options.skippable.enabled=!0),"boolean"==typeof this.options.disableCollapse&&(this.options.disableCollapse={enabled:this.options.disableCollapse,replay:!1}),this.delayEventHandler=new d,this.delayEventHandler.suppress(this.options.delayExpandUntilVPAIDImpression),this.delayEventHandler.start(),this.viewabilityTracking=new p,t},getValueFromPlayer:function(e){var t=0;try{"controlBar.height"===e&&this.adVideoPlayer&&this.adVideoPlayer.controlBar&&this.adVideoPlayer.controlBar.height&&"function"==typeof this.adVideoPlayer.controlBar.height&&"html5"===this.decidePlayer(this.options.requiredPlayer)&&(t=this.adVideoPlayer.controlBar.height())}catch(e){g(e)}return t},decidePlayer:function(){return"html5"},buildPlayer:function(e,t){var n=this;if(t.waterfallStepId&&m("CHECKING AUTOPLAY FOR WATERFALL STEP: "+t.waterfallStepId),"html5"===this.decidePlayer(t.requiredPlayer)&&this.autoplayHandler&&!t.overlayPlayer){var i;i=!h.isMobile()&&("on"===t.initialAudio||!0===t.audioOnMouseover),n.autoplayHandler.getAutoplayPolicy((function(i){var r=n.autoplayHandler.videoPolicy;switch(i){case r.allowAutoplay:break;case r.stopMediaWithSound:if(h.isMobile()&&"native"===t.adType&&t.vpaid&&n.isAlreadyPlaingForVPAID)break;"on"===t.initialAudio?("auto"!==t.initialPlayback&&"mouseover"!==t.initialPlayback||(t.initialAudio="off",t.audioOnMouseover=!1),!0===t.isWaterfall&&(t.adAttempt>0?(t.initialAudio="off",t.audioOnMouseover=!1):t.audioOnMouseover=!0)):"auto"!==t.initialPlayback&&"mouseover"!==t.initialPlayback||(t.audioOnMouseover=!1);break;case r.neverAutoplay:t.initialPlayback="click",t.isWaterfall&&(t.isWaterfall=!1,t.stopWaterfall=!0)}t.waterfallStepId&&m("BUILDING PLAYER FOR WATERFALL STEP: "+t.waterfallStepId),n.buildPlayerCallback(e,t)}),i)}else n.buildPlayerCallback(e,t)},buildPlayerCallback:function(e,t){this.callbackForAdUnit=e,t.hasOwnProperty("overlayPlayer")&&(this.overlayPlayer=t.overlayPlayer,t.hasOwnProperty("fullscreenMode")&&(t.allowFullscreen=!1)),this.options.targetElement&&!this.options.firstAdAttempted&&(this.options.targetElement.style.backgroundImage||(this.options.targetElement.style.visibility="hidden"));var n="APNVideo_Player_"+((new Date).getTime()+Math.floor(1e4*Math.random()));this.externalNameOfVideoPlayer=n,r(e,t,this)},getPlayerStatus:function(){},notifyPlayer:function(e,t){this.adVideoPlayer.handleAdUnitNotification({name:e,value:t})},load:function(){if("html5"===this.decidePlayer(this.options.requiredPlayer)){m("load video");try{this.adVideoPlayer&&void 0!==this.adVideoPlayer&&this.adVideoPlayer.load&&"function"==typeof this.adVideoPlayer.load&&(this.options.delayExpandUntilVPAIDImpression&&this.adVideoPlayer.player()&&this.adVideoPlayer.player().autoplay()&&this.adVideoPlayer.player().autoplay(!1),this.adVideoPlayer.load())}catch(e){g(e)}}},replay:function(){if(this.isEnded)if(!this.options.vpaid||"native"!==this.options.adType&&"preview"!==this.options.adType)this.dispatchEventToAdunit({name:"rewind"}),this.startedReplay=!0,this.isEnded=!1,this.explicitPlay(),this.adVideoPlayer.controlBar.playToggle&&this.adVideoPlayer.controlBar.playToggle.el()&&this.adVideoPlayer.controlBar.playToggle.el().style&&(this.adVideoPlayer.controlBar.playToggle.el().style["pointer-events"]=""),this.options.sideStream&&!0===this.options.sideStream.wasEnabled&&(this.options.sideStream.enabled=!0,delete this.options.sideStream.wasEnabled),this.options.endCard&&this.options.endCard.enabled&&(this.actualPlayByVideoJS(),l.isIos()||this.adVideoPlayer.bigPlayButton.show());else{this.dispatchEventToAdunit({name:"rewind"});var e=this.iframeVideoWrapper||document.getElementById(this.options.iframeVideoWrapperId);e&&e.parentNode.removeChild(e),navigator.userAgent.indexOf("Trident/7.0")>-1||l.isIos()?(this.isEnded=!1,this.dispatchEventToAdunit({name:"replay-vpaid"})):(this.dispatchEventToAdunit({name:"replay-vpaid"}),this.isEnded=!1),this.adVideoPlayer.controlBar.playToggle&&this.adVideoPlayer.controlBar.playToggle.el()&&this.adVideoPlayer.controlBar.playToggle.el().style&&(this.adVideoPlayer.controlBar.playToggle.el().style["pointer-events"]="")}},actualPlayByVideoJS:function(){this.adVideoPlayer.play(),this.options.vpaid&&this.adVideoPlayer.trigger("handleManualUserInActive")},play:function(){if(!0!==this.isEnded){var e=h.isMobile()&&h.iOSversion()[0]>=10&&!1===this.options.enableInlineVideoForIos;if(e&&!l.isIphone()&&"native"===this.options.adType&&(e=!1),e){var t=this;t.overlayPlayer?t.options.targetElement.style.overflow="":setTimeout((function(){t.options.targetElement.style.overflow=""}),t.options.expandTime)}if(this.isAlreadyPlaingForVPAID=!0,!this.isCompleted){if(m("play video"),this.isDoneInitialPlay?(this.decidePlayer(this.options.requiredPlayer),this.isPlayingVideo||this.dispatchEventToAdunit({name:"video_resume"})):this.options.vpaid||(this.dispatchEventToAdunit({name:"video_start"}),this.dispatchEventToAdunit({name:"video_impression"})),this.options.vpaid&&this.isIosInlineRequired()?this.isDoneInitialPlay?this.actualPlayByVideoJS():this.adVideoPlayer.trigger("play"):this.options.vpaid&&this.options.overlayPlayer&&h.isIOS()&&h.iOSversion()[0]<10&&!this.isDoneInitialPlay||this.options.vpaid&&this.options.overlayPlayer&&navigator.appVersion.indexOf("Android")>-1&&this.options.enableWaterfall&&!this.isDoneInitialPlay?this.adVideoPlayer.trigger("play"):this.actualPlayByVideoJS(),"native"===this.options.adType&&h.isMobile()){var n=this.adVideoPlayer.controlBar;setTimeout((function(){n.el_.style.opacity=1,n.el_.style.visibility="visible"}),500)}"html5"===this.decidePlayer(this.options.requiredPlayer)||(this.isPlayingVideo=!0),this.isDoneInitialPlay=!0,this.isEnded=!1}}else"preview"===this.options.adType&&this.options.onlyAudio&&this.replay()},resetVpaid:function(){this.dispatchEventToAdunit({name:"reset"})},pause:function(){this.isPlayingVideo&&(m("pause video"),this.adVideoPlayer.pause(),this.options.vpaid&&this.adVideoPlayer.trigger("handleManualUserActive"),this.isCompleted||this.isEnded||this.dispatchEventToAdunit({name:"video_pause"}))},explicitPause:function(){m("explicit pause video"),this.explicitPaused=!0,this.pause()},explicitPlay:function(){m("explicit play video"),this.explicitPaused=!1,this.play()},mute:function(){this.isMuted||(m("mute audio"),this.adVideoPlayer.muted(!0),this.dispatchEventToAdunit({name:"video_mute"}),this.isMuted=!0)},explicitMute:function(){m("explicit mute video"),this.isExplicitMuted=!0,this.mute()},unmute:function(){!this.isExplicitMuted&&this.isMuted&&(m("unmute audio"),!0===this.adVideoPlayer.muted()&&this.adVideoPlayer.muted(!1),(this.isMuted||"off"===this.options.initialAudio)&&this.dispatchEventToAdunit({name:"video_unmute"}),this.isMuted=!1)},explicitUnmute:function(){this.isExplicitMuted=!1,this.unmute()},resizeVideoWithDimensions:function(e,t){(this.isEnded||this.isSkipped)&&1===e&&1===t&&(this.options.macroWidth=this.options.width,this.options.macroHeight=this.options.height),this.options.width=e,this.options.height=t,this.resizeVideo(this.aspectRatio)},destroy:function(e,t){if(this.isPlayingVideo=!1,this.adVideoPlayer.pause(),!1===this.isCompleted&&(!1===this.options.vpaid||!0===this.options.vpaid&&!1===this.isSkipped)&&this.dispatchEventToAdunit({name:"video_skip"}),"function"==typeof this.callbackForAdUnit.cbWhenSkipped&&this.callbackForAdUnit.cbWhenSkipped("video-skip"),this.isSkipped=!0,this.verificationManager&&this.verificationManager.destroy(),m("destroy"),"preview"===this.options.adType)return this.adVideoPlayer.currentTime(this.adVideoPlayer.duration()),void(this.options.vpaid?this.adVideoPlayer.trigger("customDestroy"):this.adVideoPlayer.trigger("ended"));"function"==typeof this.callbackForAdUnit.cbWhenDestroy&&(this.overlayPlayer?e&&t?this.callbackForAdUnit.cbWhenDestroy({type:1,code:900,message:t},!0,this.options):this.callbackForAdUnit.cbWhenDestroy(null,!0,this.options):e&&t?this.callbackForAdUnit.cbWhenDestroy({type:1,code:900,message:t},null,this.options):this.callbackForAdUnit.cbWhenDestroy(null,null,this.options))},destroyWithoutSkip:function(e,t,n,i){try{var r=this,o=function(){if(r.isPlayingVideo=!1,"native"===r.options.adType||"preview"===r.options.adType){if(r.options.iframeVideoWrapperId===r.options.iframeVideoWrapperIdPrevious)return;r.options.iframeVideoWrapperIdPrevious=r.options.iframeVideoWrapperId}903!=i&&r.adVideoPlayer&&r.adVideoPlayer.pause&&"function"==typeof r.adVideoPlayer.pause&&r.adVideoPlayer.pause(),r.verificationManager&&r.verificationManager.destroy(),m("destroy without skip: "+r.options.iframeVideoWrapperId);var o=i||900;"function"==typeof r.callbackForAdUnit.cbWhenDestroy&&(r.overlayPlayer?e&&t?(n&&(o=402),r.callbackForAdUnit.cbWhenDestroy({type:1,code:o,message:t},!0,r.options)):r.callbackForAdUnit.cbWhenDestroy(null,!0,r.options):e&&t?(n&&(o=402),r.callbackForAdUnit.cbWhenDestroy({type:1,code:o,message:t},null,r.options)):r.callbackForAdUnit.cbWhenDestroy(null,null,r.options))};r.options.disableCollapseForDelay&&r.options.disableCollapseForDelay>0?setTimeout(o,r.options.disableCollapseForDelay):o()}catch(e){g("failed to destroy/notify by "+e)}},getVideoObject:function(){return this.adVideoPlayer},handleOverlayNotification:function(e){m("Got overlay notification from player = "+e.name);var t=this,n={leaveFullscreen:function(){t.options.hasOwnProperty("playerNotification")&&t.options.playerNotification("leaveFullscreen")}}[e.name];n&&void 0!==n&&n()},notifyVpaidEvent:function(e){var t=this;if(!(t.options.delayExpandUntilVPAIDImpression&&t.delayEventHandler.isSuppress&&y.indexOf(e)>=0)){if("AdVolumeChange"===e)if("html5"===this.decidePlayer(this.options.requiredPlayer)){var n=t.adVideoPlayer.player().muted(),i=t.adVideoPlayer.player().volume();n?n&&(m("set VPAID AdVolumeChange video_mute"),this.dispatchEventToAdunit({name:"video_mute"})):i>0&&(m("set VPAID AdVolumeChange video_unmute"),this.dispatchEventToAdunit({name:"video_unmute"}))}A.indexOf(e)>=0||A.indexOf("vpaid."+e)>=0?t.notifyVpaidEvent_internal(e):t.delayEventHandler.push((function(){t.notifyVpaidEvent_internal(e)}))}},notifyVpaidEvent_internal:function(e){this.options.cbNotification&&this.options.cbNotification("VPAID",e,this.options.targetId),this.options.cbApnVastPlayer&&this.options.cbApnVastPlayer(e)},setChromeSize:function(){this.adVideoPlayer.width="0px",this.adVideoPlayer.height="0px",this.adVideoPlayer.style.width="0px",this.adVideoPlayer.style.height="0px",this.options.targetElement.style.visibility="visible"},click:function(e,t){if(this.isDoneInitialPlay){!1===this.isIosInlineRequired()&&(this.pause(),this.toggleWindowFocus=!1);var n=!1;if(this.options.useCustomOpenForClickthrough){var i=this.options.clickUrls[0];e&&(i=e),n=!0,this.dispatchEventToAdunit({name:"video_click_open_url",url:i})}else if(e)n=!0,window.open(e);else if(this.options.clickUrls&&this.options.clickUrls.length>0){n=!0;var r=this.options.clickUrls[this.options.clickUrls.length-1];window.open(r)}void 0!==t&&!0!==t||this.dispatchEventToAdunit({name:"ad-click",trackClick:n})}else this.play()},getRapamsAndExtensions:function(){var e=this.options.extensions&&this.options.extensions.length>0?""+this.options.extensions+"":"";return{adParameters:this.options.adParameters,extensions:e}},handleViewability:function(e,t,n){var i=this.options&&this.options.viewability,r=e&&e.name?e.name:null;"fullscreenchange"!==r&&"video_fullscreen"!==r||(r=this.isFullscreen?"fullscreen":"exitFullscreen"),n||"video_duration"!==r||(this.isAlreadyStart=!0);r&&i&&(this.blockTrackingUserActivity&&("video_resume"===r||"video_pause"===r||"video_mute"===r||"video_unmute"===r)||(r===t?function(){var e;(!(e=this.adVideoPlayer&&this.adVideoPlayer.player&&"function"==typeof this.adVideoPlayer.player&&this.adVideoPlayer.player().duration())||void 0===e||e<=0)&&(e=-2),-2===e&&(this.options&&this.options.data&&this.options.data.vastDurationMsec?(!(e=this.options.data.vastDurationMsec/1e3)||null===e||e<=0)&&(e=-2):e=-2);var n=this.options.width,i=this.options.height;if(this.viewabilityTracking.init(this.options,e,n,i,t,function(){return this.isFullscreen}.bind(this),function(){return this.adVideoPlayer&&this.adVideoPlayer.player&&"function"==typeof this.adVideoPlayer.player?this.adVideoPlayer.player().volume():-1}.bind(this)),this.options.expandable)"video_start"===r&&this.viewabilityTracking.invokeEvent("expand"),!1===this.options.vpaid&&"loadstart"===r&&this.viewabilityTracking.invokeEvent("expand"),this.viewabilityTracking.invokeEvent(r);else{if(this.options.overlayPlayer&&l.isMobile()&&this.options.delayStartViewability)return;this.viewabilityTracking.invokeEvent(r)}}.apply(this):function(){this.viewabilityTracking&&this.viewabilityTracking.isReady&&("force_start_viewability"===r&&this.options.delayStartViewability?(this.options.delayStartViewability=!1,this.viewabilityTracking.invokeEvent("video_start")):this.viewabilityTracking.invokeEvent(r))}.apply(this)))},findPathForViewability:function(e){if("video_start",e&&e.name&&"video_start"===e.name){if(this.isDoneFirstLoadStart)return;this.isDoneFirstLoadStart=!0}this.handleViewability(e,"video_start",!0)},dispatchEventToAdunit:function(e,t){var n=this;if("video_start"===e.name){if(n.iframeVideoWrapper.contentDocument){var i=n.iframeVideoWrapper.contentDocument.getElementById(n.divIdForVideo),r=n.iframeVideoWrapper.contentDocument.getElementById(n.videoId);i.style.background=n.options.playerSkin.videoBackgroundColor,r.style.background=n.options.playerSkin.videoBackgroundColor,h.isIOS()&&n.isIosInlineRequired()&&(r.style.opacity=0)}navigator.appVersion.indexOf("Android")>-1&&n.options.hasOwnProperty("targetElementBackground")&&(n.options.targetElement.style.background="",delete n.options.targetElementBackground)}if(navigator.appVersion.indexOf("Android")>-1&&"expand"===e.name&&!n.options.hasOwnProperty("targetElementBackground")&&n.options.targetElement&&n.options.isWaterfall&&(n.options.targetElementBackground=n.options.targetElement.style.background,n.options.targetElement.style.background="#000000"),"video_complete"===e.name&&(void 0===e.obj&&(e.obj={}),e.obj.videoAdPending=this.options.disableCollapse.replay),this.findPathForViewability(e),"collapse"==e.name&&this.verificationManager&&n.verificationManager.dispatchEvent(e.name,e.data,"ad-collapse"),(!0===this.startedReplay||this.isEnded)&&!0===this.options.disableCollapse.replay)if(!1===this.startedReplay&&"rewind"===e.name);else{if("video_complete"===e.name&&"function"==typeof t)return void t();if("ad-click"!==e.name&&-1===e.name.indexOf("IconClick"))return void this.callbackForAdUnit.cbForHandlingDispatchedEvent(e,!0)}"video_skip"===e.name&&!1===c.pushAndCheck(this.options.targetElement.id+"_dispatchEventToAdunit",e.name)||"video_complete"===e.name&&!0===this.isVideoCompleteInjected&&!1===this.options.disableCollapse.replay||(e&&"video_time"!==e.name&&m("(push)"+e.name),this.delayEventHandler.push((function(){n.dispatchEventToAdunit_internal(e,t)})),"video_complete"===e.name&&(this.isVideoCompleteInjected=!0))},dispatchEventToAdunit_internal:function(e,t){if(!this.isCompleted||"video_complete"===e.name||"ad-click"===e.name||"video_skip"===e.name||this.startedReplay){var n=this;if(e&&"video_time"!==e.name&&m("invoke callback : "+JSON.stringify(e)),this.options.hasOwnProperty("overlayPlayer")&&this.options.hiddenControls&&(("firstplay"===e.name&&!this.options.vpaid||"video_impression"===e.name&&this.options.vpaid)&&(!l.isMobile()||"click"!==this.options.initialPlayback&&"mouseover"!==this.options.initialPlayback?h.isIOS()&&h.iOSversion()[0]<10&&"auto"===this.options.initialPlayback&&(this.adVideoPlayer.controlBar.el_.style.removeProperty("display"),delete this.options.hiddenControls):(this.adVideoPlayer.controlBar.el_.style.removeProperty("display"),delete this.options.hiddenControls)),"video_resume"===e.name&&this.options.vpaid&&l.isMobile()&&(this.adVideoPlayer.controlBar.el_.style.removeProperty("display"),delete this.options.hiddenControls)),this.callbackForAdUnit.cbForHandlingDispatchedEvent&&"video_time"!==e.name){if("video_pause"===e.name&&(this.isPlayingVideo=!1),"video_play"!==e.name&&"video_start"!==e.name&&"firstplay"!==e.name||(this.isPlayingVideo=!0,this.isDoneInitialPlay=!0),"video_fullscreen"===e.name)return void setTimeout((function(){e.fullscreenStatus=n.isFullscreen?"enter":"exit",n.callbackForAdUnit.cbForHandlingDispatchedEvent(e)}),1500);if("function"==typeof t&&t(),this.blockTrackingUserActivity&&("video_resume"===e.name||"video_pause"===e.name||"video_mute"===e.name||"video_unmute"===e.name)||(e.player=this,this.callbackForAdUnit.cbForHandlingDispatchedEvent(e)),this.verificationManager){var i=this.prepareOmidEventData(e);i.name&&(this.options.expandable&&"video_start"==e.name&&this.verificationManager.dispatchEvent(i.name,i.data,"ad-expand"),this.verificationManager.dispatchEvent(i.name,i.data,e.name))}}!0===this.options.vpaid&&"video_skip"===e.name&&(this.isSkipped=!0)}},resolveMacro:function(e){switch(e){case"MEDIAPLAYHEAD":return this.options.hasOwnProperty("mediaPlayhead")&&"number"==typeof this.options.mediaPlayhead?l.convertTimeSecondsToString(this.options.mediaPlayhead):-1;case"BREAKPOSITION":return this.options.breakPosition?this.options.breakPosition:-1;case"ADCOUNT":return 1;case"PLACEMENTTYPE":return this.options.overlayPlayer?1:this.options.expandable?3:-1;case"CLIENTUA":return this.options.clientUA&&!this.options.enforcePrivacy?this.options.clientUA:"unknown unknown";case"DEVICEIP":return-1;case"PLAYERCAPABILITIES":var t=[];return this.options.skippable&&this.options.skippable.enabled&&t.push("skip"),this.options.showMute&&t.push("mute"),"auto"===this.options.initialPlayback&&("on"===this.options.initialAudio?t.push("autoplay"):t.push("mautoplay")),this.options.allowFullscreen&&t.push("fullscreen"),t.push("icon"),t.join();case"CLICKTYPE":return this.options.clickUrls&&this.options.clickUrls[0]?1:this.options.learnMore.enabled?2:0;case"PLAYERSTATE":var n=[];return this.isMuted&&n.push("muted"),this.adVideoPlayer.isFullscreen&&"function"==typeof this.adVideoPlayer.isFullscreen&&this.adVideoPlayer.isFullscreen()&&n.push("fullscreen"),n.join();case"PLAYERSIZE":return 1===this.options.width&&1===this.options.height?this.options.macroWidth+","+this.options.macroHeight:this.options.width+","+this.options.height;case"ADPLAYHEAD":if(this.adVideoPlayer.currentTime&&"function"==typeof this.adVideoPlayer.currentTime){var i=this.adVideoPlayer.currentTime();return l.convertTimeSecondsToString(i)}return-1;case"ASSETURI":return this.options.video.url;case"PODSEQUENCE":return-1;case"LIMITADTRACKING":return 0;default:return-1}},prepareOmidEventData:function(e){var t={error:"sessionError",impression:"impression",video_impression:"impression",video_start:"start","video-first-quartile":"firstQuartile","video-mid":"midpoint","video-third-quartile":"thirdQuartile",video_complete:"complete",video_pause:"pause",video_resume:"resume","user-close":"skipped",video_skip:"skipped",video_skipped:"skipped",video_skip:"skipped","audio-mute":"volumeChange","audio-unmute":"volumeChange",video_mute:"volumeChange",video_unmute:"volumeChange",fullscreenchange:"playerStateChange",video_fullscreen:"playerStateChange","video-exit-fullscreen":"playerStateChange","ad-expand":"playerStateChange","ad-collapse":"playerStateChange","ad-click":"adUserInteraction","user-accept-invitation":"adUserInteraction"},n=t.hasOwnProperty(e.name)?t[e.name]:"",i={name:n},r=null;switch(n){case"sessionError":(r={}).errorType=e.code,r.message=e.message;break;case"start":r={},this.options.data.durationMsec?r.duration=this.options.data.durationMsec/1e3:this.adVideoPlayer&&this.adVideoPlayer.player&&"function"==typeof this.adVideoPlayer.player?r.duration=this.adVideoPlayer.player().duration()/1e3:r.duration=-2,this.adVideoPlayer&&this.adVideoPlayer.player&&"function"==typeof this.adVideoPlayer.player?r.videoPlayerVolume=this.adVideoPlayer.player().volume():r.videoPlayerVolume=-1;break;case"volumeChange":r={},"audio-mute"===e.name||"video_mute"===e.name?r.videoPlayerVolume=0:this.adVideoPlayer&&this.adVideoPlayer.player&&"function"==typeof this.adVideoPlayer.player?r.videoPlayerVolume=this.adVideoPlayer.player().volume():r.videoPlayerVolume=-1;break;case"playerStateChange":r={},"video-fullscreen"===e.name||"fullscreenchange"===e.name?r.state=this.isFullscreen?"fullscreen":"normal":"video-exit-fullscreen"===e.name?r.state="normal":"ad-collapse"===e.name?r.state="collapsed":r.state="normal";break;case"adUserInteraction":r={},"ad-click"===e.name?r.interactionType="click":r.interactionType="invitationAccept"}return r&&(i.data=r),i},resizeVideo:function(e,t,n){s.resizeVideo(e,t,this,n)},resizeVideoForSideStream:function(e,t,n){s.resizeVideoForSideStream(this,e,t,n)},isIosInlineRequired:function(){return this.autoplayHandler.isIosInlineRequired(this.options.enableInlineVideoForIos)},resizePlayer:function(e,t){s.resizePlayer(e,t,this)},getFinalSize:function(){return s.getFinalSize(this)},setVastAttribute:function(e){var t,n=this.options;t=e||(this.adVideoPlayer&&this.adVideoPlayer.player?this.adVideoPlayer.player().duration():0),n.data.durationMsec=null!==t?Math.round(1e3*t):0;var i=this.Utils.getMsecTime(n.data.skipOffset,n.data.durationMsec);n.data.skipOffset&&i>=0?(n.data.isVastVideoSkippable=!0,n.data.skipOffsetMsec=i):n.data.skipOffsetMsec=null;var r=n.data.vastProgressEvent;if(r&&"object"==typeof r)for(var o in r){var a=this.Utils.getMsecTime(o.replace(/progress_/g,""),n.data.durationMsec);r[o]=a}},disableTrackingUserActivity:function(e){this.blockTrackingUserActivity=e,this.adVideoPlayer&&this.adVideoPlayer.bigPlayButton&&(this.adVideoPlayer.bigPlayButton.el_.style.opacity=!0===e?0:1)},delayEventsTracking:function(e,t){this.callbackForAdUnit.cbDelayEventsTracking&&this.callbackForAdUnit.cbDelayEventsTracking(e,t)},notifyOverlayPlayerVideoPaused:function(){this.options.tmpActiveListener&&this.options.cbApnVastPlayer&&this.options.cbApnVastPlayer("apn-video-paused-by-device")},checkWhenVideoPausedByDevice:function(e){if(this.options.overlayPlayer&&this.options.cbApnVastPlayer&&this.iframeVideoWrapper&&this.iframeVideoWrapper.contentDocument){var t=null;if("string"==typeof this.videoObjectId)t=this.iframeVideoWrapper.contentDocument.getElementById(this.videoObjectId);else{var n=this.iframeVideoWrapper.contentDocument.getElementsByTagName("VIDEO");if(n&&n.length>0)for(var i=0;i0){t=n[i];break}}if(t)return e?(this.options.tmpActiveListener=!0,t.addEventListener("pause",this.notifyOverlayPlayerVideoPaused.bind(this))):(delete this.options.tmpActiveListener,t.removeEventListener("pause",this.notifyOverlayPlayerVideoPaused.bind(this))),!0}return!0},forceStartViewability:function(){this.findPathForViewability({name:"force_start_viewability"})},log:m,debug:m,test:function(e,t){var n=this.options;if(n&&n.test&&n.test[e]&&"function"==typeof n.test[e]){var i=function(e){console.debug("%c"+e,"background: red; color: white")};try{n.test[e](t,(function(t,n){var r;t?(r="Unit Test ["+e+"] : "+(n=n+" Succeeded"||"Succeeded"),console.debug("%c"+r,"background: green; color: white")):i("Unit Test ["+e+"] : "+(n=n+" failed"||"Assertion failed"))}),(function(t){console.debug("%cUnit Test Log : ["+e+"] : "+t,"background: gray; color: white")}))}catch(e){i("unit test failed due to : "+e)}}},setFinalAspectRatio:function(e){this.finalAspectRatio=e},getFinalAspectRatio:function(){return this.finalAspectRatio}};e.exports=w,window[v]=w},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(module){var global_options;document.createElement("video"),document.createElement("audio"),document.createElement("track");var vjs=function(e,t,n){var i;if(global_options=t,"string"==typeof e){if(0===e.indexOf("#")&&(e=e.slice(1)),vjs.players[e])return t&&vjs.log.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&vjs.players[e].ready(n),vjs.players[e];i=vjs.el(e)}else i=e;if(!i||!i.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return i.player||new vjs.Player(i,t,n)},videojs=window.videojs_apn=vjs;function _handleMultipleEvents(e,t,n,i){vjs.arr.forEach(n,(function(n){e(t,n,i)}))}vjs.VERSION="GENERATED_FULL_VSN",vjs.options={techOrder:["html5"],html5:{},width:300,height:150,defaultVolume:0,playbackRates:[],inactivityTimeout:500,children:{mediaLoader:{},posterImage:{},loadingSpinner:{},textTrackDisplay:{},bigPlayButton:{},controlBar:{},errorDisplay:{},textTrackSettings:{}},language:document.getElementsByTagName("html")[0].getAttribute("lang")||navigator.languages&&navigator.languages[0]||navigator.userLanguage||navigator.language||"en",languages:{},notSupportedMessage:"No compatible source was found for this video."},vjs.addLanguage=function(e,t){return void 0!==vjs.options.languages[e]?vjs.options.languages[e]=vjs.util.mergeOptions(vjs.options.languages[e],t):vjs.options.languages[e]=t,vjs.options.languages},vjs.players={},
+var APNVideo_MobileVastPlayer=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){var i=[];function r(e,t){if(!e)return null;for(var n=0;n cbWhenQuartile "+t),v(t,{})},w=function(e,n){var i=e,r=n;if("AdHandler"===i&&"video_impression"===r)try{var o=new CustomEvent("outstream-impression");t.dispatchEvent(o)}catch(e){error(e)}for(var a=[{type:"AdHandler",name:"video_start",mappedEventName:"videoStart"},{type:"AdHandler",name:"rewind",mappedEventName:"videoRewind"},{type:"AdHandler",name:"video_fullscreen_enter",mappedEventName:"video-fullscreen-enter"},{type:"AdHandler",name:"video_fullscreen_exit",mappedEventName:"video-fullscreen-exit"}],s=0;s cbWhenVideoComplete "+t),v(t,{})},S=function(t){e("VastPlayer > cbWhenSkipped "+t),v(t,{})},C=function(t){e("VastPlayer > cbWhenAudio "+t),v(t,{})},I=function(e){v(e,{})},j=function(t){e("VastPlayer > cbWhenFullScreen "+t),v(t,{})},P=function(n,r,o){e("VastPlayer > cbTerminate isError: "+n);var a="unknown";t&&(a=t.id.toString()),e("VastPlayer > cbTerminate: bTerminated = "+m+", targetElement id = "+a),y=!1,m||(m=!0,r||_(),!o&&D()&&d.overlayPlayer&&_(),t&&(A&&(A.isPlayingVideo&&(e("VastPlayer > cbTerminate: pause ad"),A.pause()),t.style.height="1px",A.resizePlayer(1,1)),setTimeout((function(){t&&(t.innerHTML="",i.removeChild(t)),t=null}),2e3)),v&&n&&v("video-error",{}))},_=function(){document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()},x=function(n){var i,r,a,s,l,c,u;i=n&&n.options&&n.options.video&&n.options.video.url?n.options.video.url:"",r=n&&n.options&&n.options.data&&n.options.data.vastDurationMsec?n.options.data.vastDurationMsec:0,a=n&&n.options&&n.options.finalVastXml?n.options.finalVastXml:"",s=n&&n.options&&n.options.finalVastUri?n.options.finalVastUri:"",l=n&&n.getFinalAspectRatio()?n.getFinalAspectRatio():"",c=n&&n.options&&n.options.video&&n.options.video.width?n.options.video.width:"",u=n&&n.options&&n.options.video&&n.options.video.height?n.options.video.height:"",m||(p=!0,A=n,e("VastPlayer > cbWhenReady in "+((new Date).getTime()-o)+" msecs"),v&&v("adReady",{creativeUrl:i,duration:r,vastXML:a,vastCreativeUrl:s,aspectRatio:l,width:c,height:u}),"click"===d.initialPlayback||d.cachePlayer||(D()&&d.overlayPlayer?d.forceAdInFullscreen?(b=!0,_()):(t&&(t.style.width="1px",t.style.height="1px"),P(!1,!0,!0)):A.play()))};function V(n){n.cbNotification=function(e,t){w(e,t)},e("Build Ad Player Callback"),m||(f?g?(g.options=r.init(g.options),r.buildPlayer(g.callbacks,g.options),g={options:n,callbacks:c}):y?(g={options:n,callbacks:c},v(t,{})):(n=r.init(n),r.buildPlayer(c,n),y=!0):(g=null,e("Building single player"),n=r.init(n),r.buildPlayer(c,n)))}function M(){d={},t=null,i=null,c={},r=Object.create(s),u&&clearTimeout(u),u=null,p=!1,h=3e3,v=null,f=!1,m=!1,g=null,y=!1,o=null}function D(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement}function O(){var n,r;if(e("repositionPlayer: try reposion/resize overlay player"),d.cachePlayer||m)e("repositionPlayer: never reposition terminated or cache palyer");else if(!D()){n=i.offsetWidth,r=i.offsetHeight;var o=i.style.borderWidth;if(o&&o.length>0){var a=Number(o.substring(0,o.length-2));n-=2*a,r-=2*a}t.style.width=n+"px",t.style.height=r+"px";var s=U(i);e("repositionPlayer: targetDiv absolute posiotion ="+s.left+", "+s.top),t.style.left=s.left+"px",t.style.top=s.top+"px",e("repositionPlayer: size = "+n+", "+r),d.overlayPlayer?A.resizePlayer(n,r):A.resizeVideo(null,!1,null)}}var N=null;function R(t){switch(e("Got notification: "+t),t){case"leaveFullscreen":_();break;default:e("Unknown player notification: "+t)}}function U(e){for(var t=0,n=0;e&&"BODY"!==e.tagName&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);){var i=document.defaultView.getComputedStyle(e,null).position;if(i&&""!==i&&"static"!==i)break;t+=e.offsetLeft-e.scrollLeft+e.clientLeft,n+=e.offsetTop-e.scrollTop+e.clientTop,e=e.offsetParent}return{left:t,top:n}}function L(e,t){if(!e.children)return t;for(var n,i,r=Math.max(t,(n=e,"auto"!==(i=document.defaultView.getComputedStyle(n,null).zIndex)?i:0)),o=0;o0){var y=Number(g.substring(0,g.length-2));d.width-=2*y,d.height-=2*y}d.playerHeight=d.height,function(){var t;try{t=function(){try{var e=navigator.platform,t=navigator.userAgent,n=navigator.appVersion;if(/iP(hone|od|ad)/.test(e)&&!/CriOS/.test(t)){var i=n.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3]||0,10)]}return[0,0,0]}catch(e){return[0,0,0]}}()[0]>=8&&!0===d.enableInlineVideoForIos}catch(t){e(t)}return t}()&&(d.playerHeight-=30),D()&&(d.fullscreenMode=!0),e("offsetWidth="+n.offsetWidth+", offsetHeight="+n.offsetHeight+", borderWidth="+n.style.borderWidth);var A=document.createElement("div");A.style.width=d.width+"px",d.fitInContainer?A.style.height=d.height+"px":d.cachePlayer&&d.overlayPlayer?A.style.height="1px":A.style.height=d.height+"px",A.style.backgroundColor="black",A.id=n.id+"_overlay_"+(new Date).getTime();var b=U(n);e("targetDiv absolute posiotion ="+b.left+", "+b.top),A.style.position="absolute",A.style.left=b.left+"px",A.style.top=b.top+"px",d.fitInContainer?A.style.zIndex=Math.max(100,L(n,0)+1):(T=Math.max(100,L(n,0)+1),d.cachePlayer&&d.overlayPlayer?A.style.zIndex=0:A.style.zIndex=T),n.appendChild(A),e("player container offsetLeft = "+A.offsetLeft+", offsetTop = "+A.offsetTop),t=A,i=n,o=(new Date).getTime(),e("timeToReady = "+h+", start time = "+o),u=setTimeout((function(){p||(P(!1),v&&v("Timed-out",{}))}),h);c.cbRenderVideo=function(t,n){e("VastPlayer > cbRenderVideo called");try{e("VastPlayer > cbRenderVideo options: ",JSON.stringify(n))}catch(e){}V(n)},c.cbWhenDestroy=P,c.cbWhenReady=x,c.cbWhenQuartile=k,c.cbWhenVideoComplete=E,c.cbWhenSkipped=S,c.cbWhenFullScreen=j,c.cbWhenAudio=C,c.cbWhenClickOpenUrl=I,c.cbCoreVideoEvent=w,d.playerNotification=R,d.overlayPlayer&&(d.hasOwnProperty("allowFullscreen")||(d.allowFullscreen=!1)),e("VP >> before options.initialAudio = "+d.initialAudio),"auto"===d.initialPlayback&&"on"===d.initialAudio&&(navigator.appVersion.indexOf("Mobile")>-1||navigator.appVersion.indexOf("Android")>-1)&&navigator.userAgent.indexOf("Chrome")>-1&&function(){var e=navigator.appVersion.indexOf("Chrome/");if(e>=0){var t=navigator.appVersion.substr(e+7);return(e=t.indexOf("."))>0?Number(t.substr(0,e)):0}return 0}()>=53&&(d.showMute=!0,d.showVolume=!0),e("VP >> after options.initialAudio = "+d.initialAudio),l(t,d,c)}document.body.onresize&&(N=document.body.onresize),window.onresize=function(n){e("Resize event happend"),t&&A&&(b?(b=!1,d.fitInContainer&&(t.style.zIndex=T),setTimeout((function(){O(),"click"!==d.initialPlayback&&A.play()}),100)):O()),N&&N(n)},this.playVast=function(t,n,i,r,o){e("VP >> playVast function called playerId = "+this.vastPlayerId),P(!1,!0),M(),(d=n).vastXml=i,F(t,r,o)},this.playAdObject=function(t,n,i,r,o){e("VP >> playAdObject function called playerId = "+this.vastPlayerId+", cache mode = "+n.cachePlayer),P(!1,!0),M(),d=n,"string"==typeof i?d.vastXml=i:(d.useAdObj=!0,d.adObj=i),F(t,r,o)},this.stop=function(){u&&(clearTimeout(u),u=null),P(!1)},this.removeFromPage=function(){u&&(clearTimeout(u),u=null),m=!0,t&&(t.innerHTML="",i.removeChild(t),t=null)},this.play=function(){e("VP >> play function called playerId = "+this.vastPlayerId),A&&(d.cachePlayer=!1,D()&&d.overlayPlayer?d.forceAdInFullscreen?(b=!0,_()):P(!1,!0,!0):(t&&!1===d.fitInContainer&&(t.style.zIndex=T),O(),"click"!==d.initialPlayback&&A.play()))},this.sendPlay=function(){e("VP >> sendPlay function called playerID = "+this.vastPlayerId),A&&!A.isPlayingVideo&&A.play()},this.sendPause=function(){e("VP >> sendPause function called playerID = "+this.vastPlayerId),A&&A.isPlayingVideo&&A.pause()},this.handleFullscreen=function(e){A&&(e?i.requestFullscreen?i.requestFullscreen():i.webkitRequestFullscreen?i.webkitRequestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.msRequestFullscreen&&i.msRequestFullscreen():document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen())},this.vastPlayerId=(new Date).getTime(),this.isTerminated=function(){return m},this.getIsVideoPlaying=function(){return!(!A||!A.isPlayingVideo)},this.getCurrentPlayHeadTime=function(){var e=0;return r&&r.adVideoPlayer&&"function"==typeof r.adVideoPlayer.player&&(e=1e3*r.adVideoPlayer.player().currentTime(),e=parseInt&&"function"==typeof parseInt?parseInt(e):e),e}};e.exports={playAdObject:function(e,t,n,i,r){var a=o(t.targetElementId,t.cachePlayer);a&&a.playAdObject(e,t,n,i,r)},playVast:function(e,t,n,i,r){var a=o(t.targetElementId);a&&a.playVast(e,t,n,i,r)},loadAndPlayVast:function(e,t,i,r,a){n(29).load(i,(function(s,l){if(s||0===l.length){n(7).logDebug("Failed to load "+i,"Vast Video Player")}else{var d=o(t.targetElementId);d&&d.playVast(e,t,l,r,a)}}))},stop:function(e,t){var n=r(e.id,t);n&&n.stop()},removeFromPage:function(e){var t=r(e);t&&t.removeFromPage()},play:function(e,t){var n=function(e,t){if(!e)return null;for(var n=0;n-1,videojs_vpaid:o,overlayPlayer:!1,forceToSkip:!1,ExtendDefaultOption:a,delayEventHandler:null,pausedByViewability:!1,mutedByVisibility:!1,isReadyToExpandForMobile:!1,isAlreadyPlaingForVPAID:!1,isSideStreamActivated:!1,isExpanded:!0,isVideoCompleteInjected:!1,isFullscreenToggled:!1,toggleWindowFocus:!0,viewabilityTracking:null,isDoneFirstLoadStart:!1,startedReplay:!1,Utils:l,isAlreadyStart:!1,isEnded:!1,blockTrackingUserActivity:!1,videoId:"",divIdForVideo:"",simidIntegratorObj:null,init:function(e){var t=a(b,e);return this.options=t,!0===this.options.skippable.allowOverride&&(this.options.skippable.videoThreshold=0,this.options.skippable.enabled=!0),"boolean"==typeof this.options.disableCollapse&&(this.options.disableCollapse={enabled:this.options.disableCollapse,replay:!1}),this.delayEventHandler=new d,this.delayEventHandler.suppress(this.options.delayExpandUntilVPAIDImpression),this.delayEventHandler.start(),this.viewabilityTracking=new p,t},getValueFromPlayer:function(e){var t=0;try{"controlBar.height"===e&&this.adVideoPlayer&&this.adVideoPlayer.controlBar&&this.adVideoPlayer.controlBar.height&&"function"==typeof this.adVideoPlayer.controlBar.height&&"html5"===this.decidePlayer(this.options.requiredPlayer)&&(t=this.adVideoPlayer.controlBar.height())}catch(e){g(e)}return t},decidePlayer:function(){return"html5"},buildPlayer:function(e,t){var n=this;if(t.waterfallStepId&&m("CHECKING AUTOPLAY FOR WATERFALL STEP: "+t.waterfallStepId),"html5"===this.decidePlayer(t.requiredPlayer)&&this.autoplayHandler&&!t.overlayPlayer){var i;i=!h.isMobile()&&("on"===t.initialAudio||!0===t.audioOnMouseover),n.autoplayHandler.getAutoplayPolicy((function(i){var r=n.autoplayHandler.videoPolicy;switch(i){case r.allowAutoplay:break;case r.stopMediaWithSound:if(h.isMobile()&&"native"===t.adType&&t.vpaid&&n.isAlreadyPlaingForVPAID)break;"on"===t.initialAudio?("auto"!==t.initialPlayback&&"mouseover"!==t.initialPlayback||(t.initialAudio="off",t.audioOnMouseover=!1),!0===t.isWaterfall&&(t.adAttempt>0?(t.initialAudio="off",t.audioOnMouseover=!1):t.audioOnMouseover=!0)):"auto"!==t.initialPlayback&&"mouseover"!==t.initialPlayback||(t.audioOnMouseover=!1);break;case r.neverAutoplay:t.initialPlayback="click",t.isWaterfall&&(t.isWaterfall=!1,t.stopWaterfall=!0)}t.waterfallStepId&&m("BUILDING PLAYER FOR WATERFALL STEP: "+t.waterfallStepId),n.buildPlayerCallback(e,t)}),i)}else n.buildPlayerCallback(e,t)},buildPlayerCallback:function(e,t){this.callbackForAdUnit=e,t.hasOwnProperty("overlayPlayer")&&(this.overlayPlayer=t.overlayPlayer,t.hasOwnProperty("fullscreenMode")&&(t.allowFullscreen=!1)),this.options.targetElement&&!this.options.firstAdAttempted&&(this.options.targetElement.style.backgroundImage||(this.options.targetElement.style.visibility="hidden"));var n="APNVideo_Player_"+((new Date).getTime()+Math.floor(1e4*Math.random()));this.externalNameOfVideoPlayer=n,r(e,t,this)},getPlayerStatus:function(){},notifyPlayer:function(e,t){this.adVideoPlayer.handleAdUnitNotification({name:e,value:t})},load:function(){if("html5"===this.decidePlayer(this.options.requiredPlayer)){m("load video");try{this.adVideoPlayer&&void 0!==this.adVideoPlayer&&this.adVideoPlayer.load&&"function"==typeof this.adVideoPlayer.load&&(this.options.delayExpandUntilVPAIDImpression&&this.adVideoPlayer.player()&&this.adVideoPlayer.player().autoplay()&&this.adVideoPlayer.player().autoplay(!1),this.adVideoPlayer.load())}catch(e){g(e)}}},replay:function(){if(this.isEnded)if(!this.options.vpaid||"native"!==this.options.adType&&"preview"!==this.options.adType)this.dispatchEventToAdunit({name:"rewind"}),this.startedReplay=!0,this.isEnded=!1,this.explicitPlay(),this.adVideoPlayer.controlBar.playToggle&&this.adVideoPlayer.controlBar.playToggle.el()&&this.adVideoPlayer.controlBar.playToggle.el().style&&(this.adVideoPlayer.controlBar.playToggle.el().style["pointer-events"]=""),this.options.sideStream&&!0===this.options.sideStream.wasEnabled&&(this.options.sideStream.enabled=!0,delete this.options.sideStream.wasEnabled),this.options.endCard&&this.options.endCard.enabled&&(this.actualPlayByVideoJS(),l.isIos()||this.adVideoPlayer.bigPlayButton.show());else{this.dispatchEventToAdunit({name:"rewind"});var e=this.iframeVideoWrapper||document.getElementById(this.options.iframeVideoWrapperId);e&&e.parentNode.removeChild(e),navigator.userAgent.indexOf("Trident/7.0")>-1||l.isIos()?(this.isEnded=!1,this.dispatchEventToAdunit({name:"replay-vpaid"})):(this.dispatchEventToAdunit({name:"replay-vpaid"}),this.isEnded=!1),this.adVideoPlayer.controlBar.playToggle&&this.adVideoPlayer.controlBar.playToggle.el()&&this.adVideoPlayer.controlBar.playToggle.el().style&&(this.adVideoPlayer.controlBar.playToggle.el().style["pointer-events"]="")}},actualPlayByVideoJS:function(){this.adVideoPlayer.play(),this.options.vpaid&&this.adVideoPlayer.trigger("handleManualUserInActive")},play:function(){if(!0!==this.isEnded){var e=h.isMobile()&&h.iOSversion()[0]>=10&&!1===this.options.enableInlineVideoForIos;if(e&&!l.isIphone()&&"native"===this.options.adType&&(e=!1),e){var t=this;t.overlayPlayer?t.options.targetElement.style.overflow="":setTimeout((function(){t.options.targetElement.style.overflow=""}),t.options.expandTime)}if(this.isAlreadyPlaingForVPAID=!0,!this.isCompleted){if(m("play video"),this.isDoneInitialPlay?(this.decidePlayer(this.options.requiredPlayer),this.isPlayingVideo||this.dispatchEventToAdunit({name:"video_resume"})):this.options.vpaid||(this.dispatchEventToAdunit({name:"video_start"}),this.dispatchEventToAdunit({name:"video_impression"})),this.options.vpaid&&this.isIosInlineRequired()?this.isDoneInitialPlay?this.actualPlayByVideoJS():this.adVideoPlayer.trigger("play"):this.options.vpaid&&this.options.overlayPlayer&&h.isIOS()&&h.iOSversion()[0]<10&&!this.isDoneInitialPlay||this.options.vpaid&&this.options.overlayPlayer&&navigator.appVersion.indexOf("Android")>-1&&this.options.enableWaterfall&&!this.isDoneInitialPlay?this.adVideoPlayer.trigger("play"):this.actualPlayByVideoJS(),"native"===this.options.adType&&h.isMobile()){var n=this.adVideoPlayer.controlBar;setTimeout((function(){n.el_.style.opacity=1,n.el_.style.visibility="visible"}),500)}"html5"===this.decidePlayer(this.options.requiredPlayer)||(this.isPlayingVideo=!0),this.isDoneInitialPlay=!0,this.isEnded=!1}}else"preview"===this.options.adType&&this.options.onlyAudio&&this.replay()},resetVpaid:function(){this.dispatchEventToAdunit({name:"reset"})},pause:function(){this.isPlayingVideo&&(m("pause video"),this.adVideoPlayer.pause(),this.options.vpaid&&this.adVideoPlayer.trigger("handleManualUserActive"),this.isCompleted||this.isEnded||this.dispatchEventToAdunit({name:"video_pause"}))},explicitPause:function(){m("explicit pause video"),this.explicitPaused=!0,this.pause()},explicitPlay:function(){m("explicit play video"),this.explicitPaused=!1,this.play()},mute:function(){this.isMuted||(m("mute audio"),this.adVideoPlayer.muted(!0),this.dispatchEventToAdunit({name:"video_mute"}),this.isMuted=!0)},explicitMute:function(){m("explicit mute video"),this.isExplicitMuted=!0,this.mute()},unmute:function(){!this.isExplicitMuted&&this.isMuted&&(m("unmute audio"),!0===this.adVideoPlayer.muted()&&this.adVideoPlayer.muted(!1),(this.isMuted||"off"===this.options.initialAudio)&&this.dispatchEventToAdunit({name:"video_unmute"}),this.isMuted=!1)},explicitUnmute:function(){this.isExplicitMuted=!1,this.unmute()},resizeVideoWithDimensions:function(e,t){(this.isEnded||this.isSkipped)&&1===e&&1===t&&(this.options.macroWidth=this.options.width,this.options.macroHeight=this.options.height),this.options.width=e,this.options.height=t,this.resizeVideo(this.aspectRatio)},destroy:function(e,t){if(this.isPlayingVideo=!1,this.adVideoPlayer.pause(),!1===this.isCompleted&&(!1===this.options.vpaid||!0===this.options.vpaid&&!1===this.isSkipped)&&this.dispatchEventToAdunit({name:"video_skip"}),"function"==typeof this.callbackForAdUnit.cbWhenSkipped&&this.callbackForAdUnit.cbWhenSkipped("video-skip"),this.isSkipped=!0,this.verificationManager&&this.verificationManager.destroy(),m("destroy"),"preview"===this.options.adType)return this.adVideoPlayer.currentTime(this.adVideoPlayer.duration()),void(this.options.vpaid?this.adVideoPlayer.trigger("customDestroy"):this.adVideoPlayer.trigger("ended"));"function"==typeof this.callbackForAdUnit.cbWhenDestroy&&(this.overlayPlayer?e&&t?this.callbackForAdUnit.cbWhenDestroy({type:1,code:900,message:t},!0,this.options):this.callbackForAdUnit.cbWhenDestroy(null,!0,this.options):e&&t?this.callbackForAdUnit.cbWhenDestroy({type:1,code:900,message:t},null,this.options):this.callbackForAdUnit.cbWhenDestroy(null,null,this.options))},destroyWithoutSkip:function(e,t,n,i){try{var r=this,o=function(){if(r.isPlayingVideo=!1,"native"===r.options.adType||"preview"===r.options.adType){if(r.options.iframeVideoWrapperId===r.options.iframeVideoWrapperIdPrevious)return;r.options.iframeVideoWrapperIdPrevious=r.options.iframeVideoWrapperId}903!=i&&r.adVideoPlayer&&r.adVideoPlayer.pause&&"function"==typeof r.adVideoPlayer.pause&&r.adVideoPlayer.pause(),r.verificationManager&&r.verificationManager.destroy(),m("destroy without skip: "+r.options.iframeVideoWrapperId);var o=i||900;"function"==typeof r.callbackForAdUnit.cbWhenDestroy&&(r.overlayPlayer?e&&t?(n&&(o=402),r.callbackForAdUnit.cbWhenDestroy({type:1,code:o,message:t},!0,r.options)):r.callbackForAdUnit.cbWhenDestroy(null,!0,r.options):e&&t?(n&&(o=402),r.callbackForAdUnit.cbWhenDestroy({type:1,code:o,message:t},null,r.options)):r.callbackForAdUnit.cbWhenDestroy(null,null,r.options))};r.options.disableCollapseForDelay&&r.options.disableCollapseForDelay>0?setTimeout(o,r.options.disableCollapseForDelay):o()}catch(e){g("failed to destroy/notify by "+e)}},getVideoObject:function(){return this.adVideoPlayer},handleOverlayNotification:function(e){m("Got overlay notification from player = "+e.name);var t=this,n={leaveFullscreen:function(){t.options.hasOwnProperty("playerNotification")&&t.options.playerNotification("leaveFullscreen")}}[e.name];n&&void 0!==n&&n()},notifyVpaidEvent:function(e){var t=this;if(!(t.options.delayExpandUntilVPAIDImpression&&t.delayEventHandler.isSuppress&&y.indexOf(e)>=0)){if("AdVolumeChange"===e)if("html5"===this.decidePlayer(this.options.requiredPlayer)){var n=t.adVideoPlayer.player().muted(),i=t.adVideoPlayer.player().volume();n?n&&(m("set VPAID AdVolumeChange video_mute"),this.dispatchEventToAdunit({name:"video_mute"})):i>0&&(m("set VPAID AdVolumeChange video_unmute"),this.dispatchEventToAdunit({name:"video_unmute"}))}A.indexOf(e)>=0||A.indexOf("vpaid."+e)>=0?t.notifyVpaidEvent_internal(e):t.delayEventHandler.push((function(){t.notifyVpaidEvent_internal(e)}))}},notifyVpaidEvent_internal:function(e){this.options.cbNotification&&this.options.cbNotification("VPAID",e,this.options.targetId),this.options.cbApnVastPlayer&&this.options.cbApnVastPlayer(e)},setChromeSize:function(){this.adVideoPlayer.width="0px",this.adVideoPlayer.height="0px",this.adVideoPlayer.style.width="0px",this.adVideoPlayer.style.height="0px",this.options.targetElement.style.visibility="visible"},click:function(e,t){if(this.isDoneInitialPlay){!1===this.isIosInlineRequired()&&(this.pause(),this.toggleWindowFocus=!1);var n=!1;if(this.options.useCustomOpenForClickthrough){var i=this.options.clickUrls[0];e&&(i=e),n=!0,this.dispatchEventToAdunit({name:"video_click_open_url",url:i})}else if(e)n=!0,window.open(e);else if(this.options.clickUrls&&this.options.clickUrls.length>0){n=!0;var r=this.options.clickUrls[this.options.clickUrls.length-1];window.open(r)}void 0!==t&&!0!==t||this.dispatchEventToAdunit({name:"ad-click",trackClick:n})}else this.play()},getRapamsAndExtensions:function(){var e=this.options.extensions&&this.options.extensions.length>0?""+this.options.extensions+"":"";return{adParameters:this.options.adParameters,extensions:e}},handleViewability:function(e,t,n){var i=this.options&&this.options.viewability,r=e&&e.name?e.name:null;"fullscreenchange"!==r&&"video_fullscreen"!==r||(r=this.isFullscreen?"fullscreen":"exitFullscreen"),n||"video_duration"!==r||(this.isAlreadyStart=!0);r&&i&&(this.blockTrackingUserActivity&&("video_resume"===r||"video_pause"===r||"video_mute"===r||"video_unmute"===r)||(r===t?function(){var e;(!(e=this.adVideoPlayer&&this.adVideoPlayer.player&&"function"==typeof this.adVideoPlayer.player&&this.adVideoPlayer.player().duration())||void 0===e||e<=0)&&(e=-2),-2===e&&(this.options&&this.options.data&&this.options.data.vastDurationMsec?(!(e=this.options.data.vastDurationMsec/1e3)||null===e||e<=0)&&(e=-2):e=-2);var n=this.options.width,i=this.options.height;if(this.viewabilityTracking.init(this.options,e,n,i,t,function(){return this.isFullscreen}.bind(this),function(){return this.adVideoPlayer&&this.adVideoPlayer.player&&"function"==typeof this.adVideoPlayer.player?this.adVideoPlayer.player().volume():-1}.bind(this)),this.options.expandable)"video_start"===r&&this.viewabilityTracking.invokeEvent("expand"),!1===this.options.vpaid&&"loadstart"===r&&this.viewabilityTracking.invokeEvent("expand"),this.viewabilityTracking.invokeEvent(r);else{if(this.options.overlayPlayer&&l.isMobile()&&this.options.delayStartViewability)return;this.viewabilityTracking.invokeEvent(r)}}.apply(this):function(){this.viewabilityTracking&&this.viewabilityTracking.isReady&&("force_start_viewability"===r&&this.options.delayStartViewability?(this.options.delayStartViewability=!1,this.viewabilityTracking.invokeEvent("video_start")):this.viewabilityTracking.invokeEvent(r))}.apply(this)))},findPathForViewability:function(e){if("video_start",e&&e.name&&"video_start"===e.name){if(this.isDoneFirstLoadStart)return;this.isDoneFirstLoadStart=!0}this.handleViewability(e,"video_start",!0)},dispatchEventToAdunit:function(e,t){var n=this;if("video_start"===e.name){if(n.iframeVideoWrapper.contentDocument){var i=n.iframeVideoWrapper.contentDocument.getElementById(n.divIdForVideo),r=n.iframeVideoWrapper.contentDocument.getElementById(n.videoId);i.style.background=n.options.playerSkin.videoBackgroundColor,r.style.background=n.options.playerSkin.videoBackgroundColor,h.isIOS()&&n.isIosInlineRequired()&&(r.style.opacity=0)}navigator.appVersion.indexOf("Android")>-1&&n.options.hasOwnProperty("targetElementBackground")&&(n.options.targetElement.style.background="",delete n.options.targetElementBackground)}if(navigator.appVersion.indexOf("Android")>-1&&"expand"===e.name&&!n.options.hasOwnProperty("targetElementBackground")&&n.options.targetElement&&n.options.isWaterfall&&(n.options.targetElementBackground=n.options.targetElement.style.background,n.options.targetElement.style.background="#000000"),"video_complete"===e.name&&(void 0===e.obj&&(e.obj={}),e.obj.videoAdPending=this.options.disableCollapse.replay),this.findPathForViewability(e),"collapse"==e.name&&this.verificationManager&&n.verificationManager.dispatchEvent(e.name,e.data,"ad-collapse"),(!0===this.startedReplay||this.isEnded)&&!0===this.options.disableCollapse.replay)if(!1===this.startedReplay&&"rewind"===e.name);else{if("video_complete"===e.name&&"function"==typeof t)return void t();if("ad-click"!==e.name&&-1===e.name.indexOf("IconClick"))return void this.callbackForAdUnit.cbForHandlingDispatchedEvent(e,!0)}"video_skip"===e.name&&!1===c.pushAndCheck(this.options.targetElement.id+"_dispatchEventToAdunit",e.name)||"video_complete"===e.name&&!0===this.isVideoCompleteInjected&&!1===this.options.disableCollapse.replay||(e&&"video_time"!==e.name&&m("(push)"+e.name),this.delayEventHandler.push((function(){n.dispatchEventToAdunit_internal(e,t)})),"video_complete"===e.name&&(this.isVideoCompleteInjected=!0))},dispatchEventToAdunit_internal:function(e,t){if(!this.isCompleted||"video_complete"===e.name||"ad-click"===e.name||"video_skip"===e.name||this.startedReplay){var n=this;if(e&&"video_time"!==e.name&&m("invoke callback : "+JSON.stringify(e)),this.options.hasOwnProperty("overlayPlayer")&&this.options.hiddenControls&&(("firstplay"===e.name&&!this.options.vpaid||"video_impression"===e.name&&this.options.vpaid)&&(!l.isMobile()||"click"!==this.options.initialPlayback&&"mouseover"!==this.options.initialPlayback?h.isIOS()&&h.iOSversion()[0]<10&&"auto"===this.options.initialPlayback&&(this.adVideoPlayer.controlBar.el_.style.removeProperty("display"),delete this.options.hiddenControls):(this.adVideoPlayer.controlBar.el_.style.removeProperty("display"),delete this.options.hiddenControls)),"video_resume"===e.name&&this.options.vpaid&&l.isMobile()&&(this.adVideoPlayer.controlBar.el_.style.removeProperty("display"),delete this.options.hiddenControls)),this.callbackForAdUnit.cbForHandlingDispatchedEvent&&"video_time"!==e.name){if("video_pause"===e.name&&(this.isPlayingVideo=!1),"video_play"!==e.name&&"video_start"!==e.name&&"firstplay"!==e.name||(this.isPlayingVideo=!0,this.isDoneInitialPlay=!0),"video_fullscreen"===e.name)return void setTimeout((function(){e.fullscreenStatus=n.isFullscreen?"enter":"exit",n.callbackForAdUnit.cbForHandlingDispatchedEvent(e)}),1500);if("function"==typeof t&&t(),this.blockTrackingUserActivity&&("video_resume"===e.name||"video_pause"===e.name||"video_mute"===e.name||"video_unmute"===e.name)||(e.player=this,this.callbackForAdUnit.cbForHandlingDispatchedEvent(e)),this.verificationManager){var i=this.prepareOmidEventData(e);i.name&&(this.options.expandable&&"video_start"==e.name&&this.verificationManager.dispatchEvent(i.name,i.data,"ad-expand"),this.verificationManager.dispatchEvent(i.name,i.data,e.name))}}!0===this.options.vpaid&&"video_skip"===e.name&&(this.isSkipped=!0)}},resolveMacro:function(e){switch(e){case"MEDIAPLAYHEAD":return this.options.hasOwnProperty("mediaPlayhead")&&"number"==typeof this.options.mediaPlayhead?l.convertTimeSecondsToString(this.options.mediaPlayhead):-1;case"BREAKPOSITION":return this.options.breakPosition?this.options.breakPosition:-1;case"ADCOUNT":return 1;case"PLACEMENTTYPE":return this.options.overlayPlayer?1:this.options.expandable?3:-1;case"CLIENTUA":return this.options.clientUA&&!this.options.enforcePrivacy?this.options.clientUA:"unknown unknown";case"DEVICEIP":return-1;case"PLAYERCAPABILITIES":var t=[];return this.options.skippable&&this.options.skippable.enabled&&t.push("skip"),this.options.showMute&&t.push("mute"),"auto"===this.options.initialPlayback&&("on"===this.options.initialAudio?t.push("autoplay"):t.push("mautoplay")),this.options.allowFullscreen&&t.push("fullscreen"),t.push("icon"),t.join();case"CLICKTYPE":return this.options.clickUrls&&this.options.clickUrls[0]?1:this.options.learnMore.enabled?2:0;case"PLAYERSTATE":var n=[];return this.isMuted&&n.push("muted"),this.adVideoPlayer.isFullscreen&&"function"==typeof this.adVideoPlayer.isFullscreen&&this.adVideoPlayer.isFullscreen()&&n.push("fullscreen"),n.join();case"PLAYERSIZE":return 1===this.options.width&&1===this.options.height?this.options.macroWidth+","+this.options.macroHeight:this.options.width+","+this.options.height;case"ADPLAYHEAD":if(this.adVideoPlayer.currentTime&&"function"==typeof this.adVideoPlayer.currentTime){var i=this.adVideoPlayer.currentTime();return l.convertTimeSecondsToString(i)}return-1;case"ASSETURI":return this.options.video.url;case"PODSEQUENCE":return-1;case"LIMITADTRACKING":return 0;default:return-1}},prepareOmidEventData:function(e){var t={error:"sessionError",impression:"impression",video_impression:"impression",video_start:"start","video-first-quartile":"firstQuartile","video-mid":"midpoint","video-third-quartile":"thirdQuartile",video_complete:"complete",video_pause:"pause",video_resume:"resume","user-close":"skipped",video_skip:"skipped",video_skipped:"skipped",video_skip:"skipped","audio-mute":"volumeChange","audio-unmute":"volumeChange",video_mute:"volumeChange",video_unmute:"volumeChange",fullscreenchange:"playerStateChange",video_fullscreen:"playerStateChange","video-exit-fullscreen":"playerStateChange","ad-expand":"playerStateChange","ad-collapse":"playerStateChange","ad-click":"adUserInteraction","user-accept-invitation":"adUserInteraction"},n=t.hasOwnProperty(e.name)?t[e.name]:"",i={name:n},r=null;switch(n){case"sessionError":(r={}).errorType=e.code,r.message=e.message;break;case"start":r={},this.options.data.durationMsec?r.duration=this.options.data.durationMsec/1e3:this.adVideoPlayer&&this.adVideoPlayer.player&&"function"==typeof this.adVideoPlayer.player?r.duration=this.adVideoPlayer.player().duration()/1e3:r.duration=-2,this.adVideoPlayer&&this.adVideoPlayer.player&&"function"==typeof this.adVideoPlayer.player?r.videoPlayerVolume=this.adVideoPlayer.player().volume():r.videoPlayerVolume=-1;break;case"volumeChange":r={},"audio-mute"===e.name||"video_mute"===e.name?r.videoPlayerVolume=0:this.adVideoPlayer&&this.adVideoPlayer.player&&"function"==typeof this.adVideoPlayer.player?r.videoPlayerVolume=this.adVideoPlayer.player().volume():r.videoPlayerVolume=-1;break;case"playerStateChange":r={},"video-fullscreen"===e.name||"fullscreenchange"===e.name?r.state=this.isFullscreen?"fullscreen":"normal":"video-exit-fullscreen"===e.name?r.state="normal":"ad-collapse"===e.name?r.state="collapsed":r.state="normal";break;case"adUserInteraction":r={},"ad-click"===e.name?r.interactionType="click":r.interactionType="invitationAccept"}return r&&(i.data=r),i},resizeVideo:function(e,t,n){s.resizeVideo(e,t,this,n)},resizeVideoForSideStream:function(e,t,n){s.resizeVideoForSideStream(this,e,t,n)},isIosInlineRequired:function(){return this.autoplayHandler.isIosInlineRequired(this.options.enableInlineVideoForIos)},resizePlayer:function(e,t){s.resizePlayer(e,t,this)},getFinalSize:function(){return s.getFinalSize(this)},setVastAttribute:function(e){var t,n=this.options;t=e||(this.adVideoPlayer&&this.adVideoPlayer.player?this.adVideoPlayer.player().duration():0),n.data.durationMsec=null!==t?Math.round(1e3*t):0;var i=this.Utils.getMsecTime(n.data.skipOffset,n.data.durationMsec);n.data.skipOffset&&i>=0?(n.data.isVastVideoSkippable=!0,n.data.skipOffsetMsec=i):n.data.skipOffsetMsec=null;var r=n.data.vastProgressEvent;if(r&&"object"==typeof r)for(var o in r){var a=this.Utils.getMsecTime(o.replace(/progress_/g,""),n.data.durationMsec);r[o]=a}},disableTrackingUserActivity:function(e){this.blockTrackingUserActivity=e,this.adVideoPlayer&&this.adVideoPlayer.bigPlayButton&&(this.adVideoPlayer.bigPlayButton.el_.style.opacity=!0===e?0:1)},delayEventsTracking:function(e,t){this.callbackForAdUnit.cbDelayEventsTracking&&this.callbackForAdUnit.cbDelayEventsTracking(e,t)},notifyOverlayPlayerVideoPaused:function(){this.options.tmpActiveListener&&this.options.cbApnVastPlayer&&this.options.cbApnVastPlayer("apn-video-paused-by-device")},checkWhenVideoPausedByDevice:function(e){if(this.options.overlayPlayer&&this.options.cbApnVastPlayer&&this.iframeVideoWrapper&&this.iframeVideoWrapper.contentDocument){var t=null;if("string"==typeof this.videoObjectId)t=this.iframeVideoWrapper.contentDocument.getElementById(this.videoObjectId);else{var n=this.iframeVideoWrapper.contentDocument.getElementsByTagName("VIDEO");if(n&&n.length>0)for(var i=0;i0){t=n[i];break}}if(t)return e?(this.options.tmpActiveListener=!0,t.addEventListener("pause",this.notifyOverlayPlayerVideoPaused.bind(this))):(delete this.options.tmpActiveListener,t.removeEventListener("pause",this.notifyOverlayPlayerVideoPaused.bind(this))),!0}return!0},forceStartViewability:function(){this.findPathForViewability({name:"force_start_viewability"})},log:m,debug:m,test:function(e,t){var n=this.options;if(n&&n.test&&n.test[e]&&"function"==typeof n.test[e]){var i=function(e){console.debug("%c"+e,"background: red; color: white")};try{n.test[e](t,(function(t,n){var r;t?(r="Unit Test ["+e+"] : "+(n=n+" Succeeded"||"Succeeded"),console.debug("%c"+r,"background: green; color: white")):i("Unit Test ["+e+"] : "+(n=n+" failed"||"Assertion failed"))}),(function(t){console.debug("%cUnit Test Log : ["+e+"] : "+t,"background: gray; color: white")}))}catch(e){i("unit test failed due to : "+e)}}},setFinalAspectRatio:function(e){this.finalAspectRatio=e},getFinalAspectRatio:function(){return this.finalAspectRatio}};e.exports=T,window[v]=T},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(module){var global_options;document.createElement("video"),document.createElement("audio"),document.createElement("track");var vjs=function(e,t,n){var i;if(global_options=t,"string"==typeof e){if(0===e.indexOf("#")&&(e=e.slice(1)),vjs.players[e])return t&&vjs.log.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&vjs.players[e].ready(n),vjs.players[e];i=vjs.el(e)}else i=e;if(!i||!i.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return i.player||new vjs.Player(i,t,n)},videojs=window.videojs_apn=vjs;function _handleMultipleEvents(e,t,n,i){vjs.arr.forEach(n,(function(n){e(t,n,i)}))}vjs.VERSION="GENERATED_FULL_VSN",vjs.options={techOrder:["html5"],html5:{},width:300,height:150,defaultVolume:0,playbackRates:[],inactivityTimeout:500,children:{mediaLoader:{},posterImage:{},loadingSpinner:{},textTrackDisplay:{},bigPlayButton:{},controlBar:{},errorDisplay:{},textTrackSettings:{}},language:document.getElementsByTagName("html")[0].getAttribute("lang")||navigator.languages&&navigator.languages[0]||navigator.userLanguage||navigator.language||"en",languages:{},notSupportedMessage:"No compatible source was found for this video."},vjs.addLanguage=function(e,t){return void 0!==vjs.options.languages[e]?vjs.options.languages[e]=vjs.util.mergeOptions(vjs.options.languages[e],t):vjs.options.languages[e]=t,vjs.options.languages},vjs.players={},
/*!
* Custom Universal Module Definition (UMD)
*
@@ -47,5 +47,5 @@ var APNVideo_MobileVastPlayer=function(e){var t={};function n(i){if(t[i])return
*/
__webpack_require__(5).amd?(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return videojs}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)):module.exports=videojs,vjs.CoreObject=vjs.CoreObject=function(){},vjs.CoreObject.extend=function(e){var t,n;for(var i in t=(e=e||{}).init||e.init||this.prototype.init||this.prototype.init||function(){},((n=function(){t.apply(this,arguments)}).prototype=vjs.obj.create(this.prototype)).constructor=n,n.extend=vjs.CoreObject.extend,n.create=vjs.CoreObject.create,e)e.hasOwnProperty(i)&&(n.prototype[i]=e[i]);return n},vjs.CoreObject.create=function(){var e=vjs.obj.create(this.prototype);return this.apply(e,arguments),e},vjs.on=function(e,t,n){if(vjs.obj.isArray(t))return _handleMultipleEvents(vjs.on,e,t,n);var i=vjs.getData(e);i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),n.guid||(n.guid=vjs.guid++),i.handlers[t].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t){if(!i.disabled){t=vjs.fixEvent(t);var n=i.handlers[t.type];if(n)for(var r=n.slice(0),o=0,a=r.length;o=0;i--)n[i]===t&&n.splice(i,1);e.className=n.join(" ")}},vjs.TEST_VID=vjs.createEl("video"),track=document.createElement("track"),track.kind="captions",track.srclang="en",track.label="English",vjs.TEST_VID.appendChild(track),vjs.USER_AGENT=navigator.userAgent,vjs.IS_IPHONE=/iPhone/i.test(vjs.USER_AGENT),vjs.IS_IPAD=/iPad/i.test(vjs.USER_AGENT),vjs.IS_IPOD=/iPod/i.test(vjs.USER_AGENT),vjs.IS_IOS=vjs.IS_IPHONE||vjs.IS_IPAD||vjs.IS_IPOD,vjs.IOS_VERSION=function(){var e=vjs.USER_AGENT.match(/OS (\d+)_/i);if(e&&e[1])return e[1]}(),vjs.IS_ANDROID=/Android/i.test(vjs.USER_AGENT),vjs.ANDROID_VERSION=(match=vjs.USER_AGENT.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i),match?(major=match[1]&&parseFloat(match[1]),minor=match[2]&&parseFloat(match[2]),major&&minor?parseFloat(match[1]+"."+match[2]):major||null):null),vjs.IS_OLD_ANDROID=vjs.IS_ANDROID&&/webkit/i.test(vjs.USER_AGENT)&&vjs.ANDROID_VERSION<2.3,vjs.IS_FIREFOX=/Firefox/i.test(vjs.USER_AGENT),vjs.IS_CHROME=/Chrome/i.test(vjs.USER_AGENT),vjs.IS_IE8=/MSIE\s8\.0/.test(vjs.USER_AGENT),vjs.TOUCH_ENABLED=!!("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),vjs.BACKGROUND_SIZE_SUPPORTED="backgroundSize"in vjs.TEST_VID.style,vjs.setElementAttributes=function(e,t){vjs.obj.each(t,(function(t,n){null==n||!1===n?e.removeAttribute(t):e.setAttribute(t,!0===n?"":n)}))},vjs.getElementAttributes=function(e){var t,n,i,r,o;if(t={},n=",autoplay,controls,loop,muted,default,",e&&e.attributes&&e.attributes.length>0)for(var a=(i=e.attributes).length-1;a>=0;a--)r=i[a].name,o=i[a].value,"boolean"!=typeof e[r]&&-1===n.indexOf(","+r+",")||(o=null!==o),t[r]=o;return t},vjs.getComputedDimension=function(e,t){var n="";return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,"").getPropertyValue(t):e.currentStyle&&(n=e["client"+t.substr(0,1).toUpperCase()+t.substr(1)]+"px"),n},vjs.insertFirst=function(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)},vjs.browser={},vjs.el=function(e){return 0===e.indexOf("#")&&(e=e.slice(1)),document.getElementById(e)},vjs.formatTime=function(e,t){t=t||e;var n=Math.floor(e%60),i=Math.floor(e/60%60),r=Math.floor(e/3600),o=Math.floor(t/60%60),a=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=i=n="-"),(r=r>0||a>0?r+":":"")+(i=((r||o>=10)&&i<10?"0"+i:i)+":")+(n=n<10?"0"+n:n)},vjs.blockTextSelection=function(){document.body.focus(),document.onselectstart=function(){return!1}},vjs.unblockTextSelection=function(){document.onselectstart=function(){return!0}},vjs.trim=function(e){return(e+"").replace(/^\s+|\s+$/g,"")},vjs.round=function(e,t){return t||(t=0),Math.round(e*Math.pow(10,t))/Math.pow(10,t)},vjs.createTimeRange=function(e,t){return void 0===e&&void 0===t?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:1,start:function(){return e},end:function(){return t}}},vjs.setVjsStorage=function(e,t){try{cacheManager.setGenericData(e,t)}catch(e){vjs.log("cacheManager Error (VideoJS)",e)}},vjs.getAbsoluteURL=function(e){return e.match(/^https?:\/\//)||(e=vjs.createEl("div",{innerHTML:'x'}).firstChild.href),e},vjs.parseUrl=function(e){var t,n,i,r,o;r=["protocol","hostname","port","pathname","search","hash","host"],(i=""===(n=vjs.createEl("a",{href:e})).host&&"file:"!==n.protocol)&&((t=vjs.createEl("div")).innerHTML='',n=t.firstChild,t.setAttribute("style","display:none; position:absolute;"),document.body.appendChild(t)),o={};for(var a=0;a=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.off(),this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),vjs.removeData(this.el_),this.el_=null},vjs.Component.prototype.player_=!0,vjs.Component.prototype.player=function(){return this.player_},vjs.Component.prototype.options_,vjs.Component.prototype.options=function(e){return void 0===e?this.options_:this.options_=vjs.util.mergeOptions(this.options_,e)},vjs.Component.prototype.el_,vjs.Component.prototype.createEl=function(e,t){return vjs.createEl(e,t)},vjs.Component.prototype.localize=function(e){var t=this.player_.language(),n=this.player_.languages();return n&&n[t]&&n[t][e]?n[t][e]:e},vjs.Component.prototype.el=function(){return this.el_},vjs.Component.prototype.contentEl_,vjs.Component.prototype.contentEl=function(){return this.contentEl_||this.el_},vjs.Component.prototype.id_,vjs.Component.prototype.id=function(){return this.id_},vjs.Component.prototype.name_,vjs.Component.prototype.name=function(){return this.name_},vjs.Component.prototype.children_,vjs.Component.prototype.children=function(){return this.children_},vjs.Component.prototype.childIndex_,vjs.Component.prototype.getChildById=function(e){return this.childIndex_[e]},vjs.Component.prototype.childNameIndex_,vjs.Component.prototype.getChild=function(e){return this.childNameIndex_[e]},vjs.Component.prototype.addChild=function(e,t){var n,i,r;return"string"==typeof e?(r=e,i=(t=t||{}).componentClass||vjs.capitalize(r),t.name=r,n=new window.videojs_apn[i](this.player_||this,t)):n=e,this.children_.push(n),"function"==typeof n.id&&(this.childIndex_[n.id()]=n),(r=r||n.name&&n.name())&&(this.childNameIndex_[r]=n),"function"==typeof n.el&&n.el()&&this.contentEl().appendChild(n.el()),n},vjs.Component.prototype.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){this.childIndex_[e.id()]=null,this.childNameIndex_[e.name()]=null;var i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},vjs.Component.prototype.initChildren=function(){var e,t,n,i,r,o,a;if(n=(t=(e=this).options()).children)if(a=function(n,i){void 0!==t[n]&&(i=t[n]),!1!==i&&(e[n]=e.addChild(n,i))},vjs.obj.isArray(n))for(var s=0;s0){for(var t=0,n=e.length;t1?n=!1:t&&(r=e.touches[0].pageX-t.pageX,o=e.touches[0].pageY-t.pageY,Math.sqrt(r*r+o*o)>10&&(n=!1))})),i=function(){n=!1},this.on("touchleave",i),this.on("touchcancel",i),this.on("touchend",(function(i){t=null,!0===n&&(new Date).getTime()-e<200&&(i.preventDefault(),this.trigger("tap"))}))},vjs.Component.prototype.enableTouchActivity=function(){var e,t,n;this.player().reportUserActivity&&(e=vjs.bind(this.player(),this.player().reportUserActivity),this.on("touchstart",(function(){e(),this.clearInterval(t),t=this.setInterval(e,250)})),n=function(n){e(),this.clearInterval(t)},this.on("touchmove",e),this.on("touchend",n),this.on("touchcancel",n))},vjs.Component.prototype.setTimeout=function(e,t){e=vjs.bind(this,e);var n=setTimeout(e,t),i=function(){this.clearTimeout(n)};return i.guid="vjs-timeout-"+n,this.on("dispose",i),n},vjs.Component.prototype.clearTimeout=function(e){clearTimeout(e);var t=function(){};return t.guid="vjs-timeout-"+e,this.off("dispose",t),e},vjs.Component.prototype.setInterval=function(e,t){e=vjs.bind(this,e);var n=setInterval(e,t),i=function(){this.clearInterval(n)};return i.guid="vjs-interval-"+n,this.on("dispose",i),n},vjs.Component.prototype.clearInterval=function(e){clearInterval(e);var t=function(){};return t.guid="vjs-interval-"+e,this.off("dispose",t),e},vjs.Button=vjs.Component.extend({init:function(e,t){vjs.Component.call(this,e,t),this.emitTapEvents(),this.on("tap",this.onClick),this.on("click",this.onClick),this.on("focus",this.onFocus),this.on("blur",this.onBlur)}}),vjs.Button.prototype.createEl=function(e,t){var n;return t=vjs.obj.merge({className:this.buildCSSClass(),role:"button","aria-live":"polite",tabIndex:0},t),n=vjs.Component.prototype.createEl.call(this,e,t),t.innerHTML||(this.contentEl_=vjs.createEl("div",{className:"vjs-control-content"}),this.controlText_=vjs.createEl("span",{className:"vjs-control-text",innerHTML:this.localize(this.buttonText)||"Need Text"}),this.contentEl_.appendChild(this.controlText_),n.appendChild(this.contentEl_)),n},vjs.Button.prototype.buildCSSClass=function(){return"vjs-control "+vjs.Component.prototype.buildCSSClass.call(this)},vjs.Button.prototype.onClick=function(){},vjs.Button.prototype.onFocus=function(){vjs.on(document,"keydown",vjs.bind(this,this.onKeyPress))},vjs.Button.prototype.onKeyPress=function(e){32!=e.which&&13!=e.which||(e.preventDefault(),this.onClick())},vjs.Button.prototype.onBlur=function(){vjs.off(document,"keydown",vjs.bind(this,this.onKeyPress))},vjs.Slider=vjs.Component.extend({init:function(e,t){vjs.Component.call(this,e,t),this.bar=this.getChild(this.options_.barName),this.handle=this.getChild(this.options_.handleName),this.on("mousedown",this.onMouseDown),this.on("touchstart",this.onMouseDown),this.on("focus",this.onFocus),this.on("blur",this.onBlur),this.on("click",this.onClick),this.on(e,"controlsvisible",this.update),this.on(e,this.playerEvent,this.update)}}),vjs.Slider.prototype.createEl=function(e,t){return(t=t||{}).className=t.className+" vjs-slider",t=vjs.obj.merge({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},t),vjs.Component.prototype.createEl.call(this,e,t)},vjs.Slider.prototype.onMouseDown=function(e){e.preventDefault(),vjs.blockTextSelection(),this.addClass("vjs-sliding"),this.on(document,"mousemove",this.onMouseMove),this.on(document,"mouseup",this.onMouseUp),this.on(document,"touchmove",this.onMouseMove),this.on(document,"touchend",this.onMouseUp),this.onMouseMove(e)},vjs.Slider.prototype.onMouseMove=function(){},vjs.Slider.prototype.onMouseUp=function(){vjs.unblockTextSelection(),this.removeClass("vjs-sliding"),this.off(document,"mousemove",this.onMouseMove),this.off(document,"mouseup",this.onMouseUp),this.off(document,"touchmove",this.onMouseMove),this.off(document,"touchend",this.onMouseUp),this.update()},vjs.Slider.prototype.update=function(){if(this.el_){var e,t=this.getPercent(),n=this.handle,i=this.bar;if(("number"!=typeof t||t!=t||t<0||t===1/0)&&(t=0),e=t,n){var r=this.el_.offsetWidth,o=n.el().offsetWidth,a=o?o/r:0,s=t*(1-a);e=s+a/2,n.el().style.left=vjs.round(100*s,2)+"%"}i&&(i.el().style.width=vjs.round(100*e,2)+"%")}},vjs.Slider.prototype.calculateDistance=function(e){var t,n,i,r,o,a,s,l,d;if(t=this.el_,n=vjs.findPosition(t),o=a=t.offsetWidth,s=this.handle,this.options().vertical){if(r=n.top,d=e.changedTouches?e.changedTouches[0].pageY:e.pageY,s){var c=s.el().offsetHeight;r+=c/2,a-=c}return Math.max(0,Math.min(1,(r-d+a)/a))}if(i=n.left,l=e.changedTouches?e.changedTouches[0].pageX:e.pageX,s){var u=s.el().offsetWidth;i+=u/2,o-=u}return Math.max(0,Math.min(1,(l-i)/o))},vjs.Slider.prototype.onFocus=function(){this.on(document,"keydown",this.onKeyPress)},vjs.Slider.prototype.onKeyPress=function(e){37==e.which||40==e.which?(e.preventDefault(),this.stepBack()):38!=e.which&&39!=e.which||(e.preventDefault(),this.stepForward())},vjs.Slider.prototype.onBlur=function(){this.off(document,"keydown",this.onKeyPress)},vjs.Slider.prototype.onClick=function(e){e.stopImmediatePropagation(),e.preventDefault()},vjs.SliderHandle=vjs.Component.extend(),vjs.SliderHandle.prototype.defaultValue=0,vjs.SliderHandle.prototype.createEl=function(e,t){return(t=t||{}).className=t.className+" vjs-slider-handle",t=vjs.obj.merge({innerHTML:''+this.defaultValue+""},t),vjs.Component.prototype.createEl.call(this,"div",t)},vjs.Menu=vjs.Component.extend(),vjs.Menu.prototype.addItem=function(e){this.addChild(e),e.on("click",vjs.bind(this,(function(){this.unlockShowing()})))},vjs.Menu.prototype.createEl=function(){var e=this.options().contentElType||"ul";this.contentEl_=vjs.createEl(e,{className:"vjs-menu-content"});var t=vjs.Component.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return t.appendChild(this.contentEl_),vjs.on(t,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),t},vjs.MenuItem=vjs.Button.extend({init:function(e,t){vjs.Button.call(this,e,t),this.selected(t.selected)}}),vjs.MenuItem.prototype.createEl=function(e,t){return vjs.Button.prototype.createEl.call(this,"li",vjs.obj.merge({className:"vjs-menu-item",innerHTML:this.localize(this.options_.label)},t))},vjs.MenuItem.prototype.onClick=function(){this.selected(!0)},vjs.MenuItem.prototype.selected=function(e){e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-selected",!0)):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-selected",!1))},vjs.MenuButton=vjs.Button.extend({init:function(e,t){vjs.Button.call(this,e,t),this.update(),this.on("keydown",this.onKeyPress),this.el_.setAttribute("aria-haspopup",!0),this.el_.setAttribute("role","button")}}),vjs.MenuButton.prototype.update=function(){var e=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=e,this.addChild(e),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},vjs.MenuButton.prototype.buttonPressed_=!1,vjs.MenuButton.prototype.createMenu=function(){var e=new vjs.Menu(this.player_);if(this.options().title&&e.contentEl().appendChild(vjs.createEl("li",{className:"vjs-menu-title",innerHTML:vjs.capitalize(this.options().title),tabindex:-1})),this.items=this.createItems(),this.items)for(var t=0;t0&&this.items[0].el().focus()},vjs.MenuButton.prototype.unpressButton=function(){this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-pressed",!1)},vjs.MediaError=function(e){"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:"object"==typeof e&&vjs.obj.merge(this,e),this.message||(this.message="")},vjs.MediaError.prototype.code=0,vjs.MediaError.prototype.message="",vjs.MediaError.prototype.status=null,vjs.MediaError.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],vjs.MediaError.defaultMessages={1:"You aborted the video playback",2:"A network error caused the video download to fail part-way.",3:"The video playback was aborted due to a corruption problem or because the video used features your browser did not support.",4:"The video could not be loaded, either because the server or network failed or because the format is not supported.",5:"The video is encrypted and we do not have the keys to decrypt it."};for(var errNum=0;errNum=0&&(vjs.players[t].trigger("fullscreenchange"),vjs.players[t].fsButtonClicked||(vjs.players[t].isFullscreen(!1),vjs.players[t].removeClass("vjs-fullscreen")),vjs.players[t].fsButtonClicked=!1)}))}(),vjs.Player=vjs.Component.extend({init:function(e,t,n){this.tag=e,e.id=e.id||"vjs_video_"+vjs.guid++,this.tagAttributes=e&&vjs.getElementAttributes(e),t=vjs.obj.merge(this.getTagSettings(e),t),this.language_=t.language||vjs.options.language,this.languages_=t.languages||vjs.options.languages,this.cache_={},this.poster_=t.poster||"",this.controls_=!!t.controls,e.controls=!1,t.reportTouchActivity=!1,this.isAudio("audio"===this.tag.nodeName.toLowerCase()),vjs.Component.call(this,this,t,n),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.isAudio()&&this.addClass("vjs-audio"),this.addClass("vjs-big-play-centered"),vjs.players[this.id_]=this,t.plugins&&vjs.obj.each(t.plugins,(function(e,t){this[e](t)}),this),this.listenForUserActivity()}}),vjs.Player.prototype.language_,vjs.Player.prototype.language=function(e){return void 0===e?this.language_:(this.language_=e,this)},vjs.Player.prototype.getMuteSettingsForIOS10=function(){return vjs.IS_IOS&&this.options_.enableNativeInline&&parseInt(vjs.IOS_VERSION)>9},vjs.Player.prototype.languages_,vjs.Player.prototype.languages=function(){return this.languages_},vjs.Player.prototype.options_=vjs.options,vjs.Player.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),vjs.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech&&this.tech.dispose(),vjs.Component.prototype.dispose.call(this)},vjs.Player.prototype.getTagSettings=function(e){var t,n,i,r,o,a,s,l={sources:[],tracks:[]};if(null!==(n=(t=vjs.getElementAttributes(e))["data-setup"])&&vjs.obj.merge(t,vjs.JSON.parse(n||"{}")),vjs.obj.merge(l,t),e.hasChildNodes())for(a=0,s=(i=e.childNodes).length;a0&&(n.startTime=this.cache_.currentTime),this.cache_.src=t.src),this.tech=new window.videojs_apn[e](this,n),this.tech.ready((function(){this.player_.triggerReady()}))},vjs.Player.prototype.unloadTech=function(){this.isReady_=!1,this.tech.dispose(),this.tech=!1},vjs.Player.prototype.onLoadStart=function(){this.removeClass("vjs-ended"),this.error(null),this.paused()?this.hasStarted(!1):this.trigger("firstplay")},vjs.Player.prototype.hasStarted_=!1,vjs.Player.prototype.hasStarted=function(e){return void 0!==e?(this.hasStarted_!==e&&(this.hasStarted_=e,e?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):this.hasStarted_},vjs.Player.prototype.onLoadedMetaData,vjs.Player.prototype.onLoadedData,vjs.Player.prototype.onLoadedAllData,vjs.Player.prototype.onPlay=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0)},vjs.Player.prototype.onWaiting=function(){this.addClass("vjs-waiting")},vjs.Player.prototype.onWaitEnd=function(){this.removeClass("vjs-waiting")},vjs.Player.prototype.onSeeking=function(){this.addClass("vjs-seeking")},vjs.Player.prototype.onSeeked=function(){this.removeClass("vjs-seeking")},vjs.Player.prototype.onFirstPlay=function(){this.options_.starttime&&this.currentTime(this.options_.starttime),this.addClass("vjs-has-started")},vjs.Player.prototype.onPause=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused")},vjs.Player.prototype.onTimeUpdate,vjs.Player.prototype.onProgress=function(){1==this.bufferedPercent()&&this.trigger("loadedalldata")},vjs.Player.prototype.onEnded=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause()},vjs.Player.prototype.onDurationChange=function(){var e=this.techGet("duration");e&&(e<0&&(e=1/0),this.duration(e),e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"))},vjs.Player.prototype.onVolumeChange,vjs.Player.prototype.onFullscreenChange=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},vjs.Player.prototype.onError,vjs.Player.prototype.cache_,vjs.Player.prototype.getCache=function(){return this.cache_},vjs.Player.prototype.techCall=function(e,t){if(this.tech&&!this.tech.isReady_)this.tech.ready((function(){this[e](t)}));else try{this.tech[e](t)}catch(e){throw vjs.log(e),e}},vjs.Player.prototype.techGet=function(e){if(this.tech&&this.tech.isReady_)try{return this.tech[e]()}catch(t){throw void 0===this.tech[e]?vjs.log("Video.js: "+e+" method not defined for "+this.techName+" playback technology.",t):"TypeError"==t.name?(vjs.log("Video.js: "+e+" unavailable on "+this.techName+" playback technology element.",t),this.tech.isReady_=!1):vjs.log(t),t}},vjs.Player.prototype.play=function(){return this.techCall("play"),this},vjs.Player.prototype.pause=function(){return this.techCall("pause"),this.trigger("apn-vpaid-pause"),this},vjs.Player.prototype.paused=function(){return!1!==this.techGet("paused")},vjs.Player.prototype.currentTime=function(e){return void 0!==e?(this.techCall("setCurrentTime",e),this):this.cache_.currentTime=this.techGet("currentTime")||0},vjs.Player.prototype.duration=function(e){return void 0!==e?(this.cache_.duration=parseFloat(e),this):(void 0===this.cache_.duration&&this.onDurationChange(),this.cache_.duration||0)},vjs.Player.prototype.remainingTime=function(){return this.duration()-this.currentTime()},vjs.Player.prototype.buffered=function(){var e=this.techGet("buffered");return e&&e.length||(e=vjs.createTimeRange(0,0)),e},vjs.Player.prototype.bufferedPercent=function(){var e,t,n=this.duration(),i=this.buffered(),r=0;if(!n)return 0;for(var o=0;on&&(t=n),r+=t-e;return r/n},vjs.Player.prototype.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},vjs.Player.prototype.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall("setVolume",t),vjs.setVjsStorage("volume",t),this):(t=parseFloat(this.techGet("volume")),isNaN(t)?1:t)},vjs.Player.prototype.muted=function(e){return void 0!==e?(vjs.IS_IOS&&this.options_.enableInlineVideoForIos||this.techCall("setMuted",e),this):this.techGet("muted")||!1},vjs.Player.prototype.supportsFullScreen=function(){return this.techGet("supportsFullScreen")||!1},vjs.Player.prototype.isFullscreen_=!1,vjs.Player.prototype.isFullscreen=function(e){return void 0!==e?(this.isFullscreen_=!!e,this):this.isFullscreen_},vjs.Player.prototype.isFullScreen=function(e){return vjs.log.warn('player.isFullScreen() has been deprecated, use player.isFullscreen() with a lowercase "s")'),this.isFullscreen(e)},vjs.Player.prototype.requestFullscreen=function(){var e=vjs.browser.fullscreenAPI;return this.isFullscreen(!0),e?(vjs.on(document,e.fullscreenchange,vjs.bind(this,(function(t){this.isFullscreen(document[e.fullscreenElement]),!1===this.isFullscreen()&&vjs.off(document,e.fullscreenchange,arguments.callee)}))),this.el_[e.requestFullscreen](),this.trigger("fullscreenchange")):(this.tech.supportsFullScreen(),this.enterFullWindow(),this.trigger("fullscreenchange")),this},vjs.Player.prototype.requestFullScreen=function(){return vjs.log.warn('player.requestFullScreen() has been deprecated, use player.requestFullscreen() with a lowercase "s")'),this.requestFullscreen()},vjs.Player.prototype.exitFullscreen=function(){var e=vjs.browser.fullscreenAPI;return this.isFullscreen(!1),e?(document[e.exitFullscreen](),this.trigger("fullscreenchange")):this.tech.supportsFullScreen()?(this.exitFullWindow(),this.trigger("fullscreenchange")):(this.exitFullWindow(),this.push("fullscreenchange")),this},vjs.Player.prototype.cancelFullScreen=function(){return vjs.log.warn("player.cancelFullScreen() has been deprecated, use player.exitFullscreen()"),this.exitFullscreen()},vjs.Player.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=document.documentElement.style.overflow,vjs.on(document,"keydown",vjs.bind(this,this.fullWindowOnEscKey)),document.documentElement.style.overflow="hidden",vjs.addClass(document.body,"vjs-full-window"),this.trigger("enterFullWindow")},vjs.Player.prototype.fullWindowOnEscKey=function(e){27===e.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},vjs.Player.prototype.exitFullWindow=function(){this.isFullWindow=!1,vjs.off(document,"keydown",this.fullWindowOnEscKey),document.documentElement.style.overflow=this.docOrigOverflow,vjs.removeClass(document.body,"vjs-full-window"),this.trigger("exitFullWindow")},vjs.Player.prototype.selectSource=function(e){for(var t=0,n=this.options_.techOrder;t=0||(console.log("active:onmouseout:initialize"),a=void 0,s=void 0)},n=function(){e(),this.clearInterval(i),i=this.setInterval(e,250)},r=function(t){e(),this.clearInterval(i)},this.on("mousedown",n),this.on("mousemove",t),this.on("mouseup",r),this.on("mouseover",l),this.on("mouseout",d),this.on("keydown",e),this.on("keyup",e),this.setInterval((function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(o);var e=this.options().inactivityTimeout;e>0&&(o=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),e))}}),250)},vjs.Player.prototype.playbackRate=function(e){return void 0!==e?(this.techCall("setPlaybackRate",e),this):this.tech&&this.tech.featuresPlaybackRate?this.techGet("playbackRate"):1},vjs.Player.prototype.isAudio_=!1,vjs.Player.prototype.isAudio=function(e){return void 0!==e?(this.isAudio_=!!e,this):this.isAudio_},vjs.Player.prototype.networkState=function(){return this.techGet("networkState")},vjs.Player.prototype.readyState=function(){return this.techGet("readyState")},vjs.Player.prototype.textTracks=function(){return this.tech&&this.tech.textTracks()},vjs.Player.prototype.remoteTextTracks=function(){return this.tech&&this.tech.remoteTextTracks()},vjs.Player.prototype.addTextTrack=function(e,t,n){return this.tech&&this.tech.addTextTrack(e,t,n)},vjs.Player.prototype.addRemoteTextTrack=function(e){return this.tech&&this.tech.addRemoteTextTrack(e)},vjs.Player.prototype.removeRemoteTextTrack=function(e){this.tech&&this.tech.removeRemoteTextTrack(e)},vjs.ControlBar=vjs.Component.extend(),vjs.ControlBar.prototype.options_={loadEvent:"play",children:{playToggle:{},currentTimeDisplay:{},timeDivider:{},durationDisplay:{},remainingTimeDisplay:{},progressControl:{},fullscreenToggle:{},volumeControl:{},muteToggle:{},playbackRateMenuButton:{}}},vjs.ControlBar.prototype.createEl=function(){return vjs.createEl("div",{className:"vjs-control-bar"})},vjs.LiveDisplay=vjs.Component.extend({init:function(e,t){vjs.Component.call(this,e,t)}}),vjs.LiveDisplay.prototype.createEl=function(){var e=vjs.Component.prototype.createEl.call(this,"div",{className:"vjs-live-controls vjs-control"});return this.contentEl_=vjs.createEl("div",{className:"vjs-live-display",innerHTML:''+this.localize("Stream Type")+""+this.localize("LIVE"),"aria-live":"off"}),e.appendChild(this.contentEl_),e},vjs.PlayToggle=vjs.Button.extend({init:function(e,t){vjs.Button.call(this,e,t),this.on(e,"play",this.onPlay),this.on(e,"pause",this.onPause)}}),vjs.PlayToggle.prototype.buttonText="Play",vjs.PlayToggle.prototype.buildCSSClass=function(){return"vjs-play-control "+vjs.Button.prototype.buildCSSClass.call(this)},vjs.PlayToggle.prototype.onClick=function(){},vjs.PlayToggle.prototype.onPlay=function(){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.el_.children[0].children[0].innerHTML=this.localize("Pause")},vjs.PlayToggle.prototype.onPause=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.el_.children[0].children[0].innerHTML=this.localize("Play")},vjs.CurrentTimeDisplay=vjs.Component.extend({init:function(e,t){vjs.Component.call(this,e,t),this.on(e,"timeupdate",this.updateContent)}}),vjs.CurrentTimeDisplay.prototype.createEl=function(){var e=vjs.Component.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-controls vjs-control"});return this.contentEl_=vjs.createEl("div",{className:"vjs-current-time-display",innerHTML:'Current Time 0:00',"aria-live":"off"}),e.appendChild(this.contentEl_),e},vjs.CurrentTimeDisplay.prototype.updateContent=function(){var e=this.player_.scrubbing?this.player_.getCache().currentTime:this.player_.currentTime();this.contentEl_.innerHTML=''+this.localize("Current Time")+" "+vjs.formatTime(e,this.player_.duration())},vjs.DurationDisplay=vjs.Component.extend({init:function(e,t){vjs.Component.call(this,e,t),this.on(e,"timeupdate",this.updateContent),this.on(e,"loadedmetadata",this.updateContent)}}),vjs.DurationDisplay.prototype.createEl=function(){var e=vjs.Component.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-controls vjs-control"});return this.contentEl_=vjs.createEl("div",{className:"vjs-duration-display",innerHTML:''+this.localize("Duration Time")+" 0:00","aria-live":"off"}),e.appendChild(this.contentEl_),e},vjs.DurationDisplay.prototype.updateContent=function(){var e=this.player_.duration();e&&(this.contentEl_.innerHTML=''+this.localize("Duration Time")+" "+vjs.formatTime(e))},vjs.TimeDivider=vjs.Component.extend({init:function(e,t){vjs.Component.call(this,e,t)}}),vjs.TimeDivider.prototype.createEl=function(){return vjs.Component.prototype.createEl.call(this,"div",{className:"vjs-time-divider",innerHTML:"