77 // global context.
88 } else {
99 var exports = { } ;
10- var versions = [ '1.3.19-iab2779 ' ] ;
10+ var versions = [ '1.3.21-iab2898 ' ] ;
1111 var additionalVersionString = 'default' ;
1212 if ( ! ! additionalVersionString ) {
1313 versions . push ( additionalVersionString ) ;
@@ -207,11 +207,11 @@ $jscomp.polyfill = function(a, b, c, d) {
207207 b != d && null != b && $jscomp . defineProperty ( c , a , { configurable :! 0 , writable :! 0 , value :b } ) ;
208208 }
209209} ;
210- var module$exports$omid$common$constants = { AdEventType :{ IMPRESSION :"impression" , LOADED :"loaded" , GEOMETRY_CHANGE :"geometryChange" , SESSION_START :"sessionStart" , SESSION_ERROR :"sessionError" , SESSION_FINISH :"sessionFinish" , MEDIA :"media" , VIDEO :"video" , START :"start" , FIRST_QUARTILE :"firstQuartile" , MIDPOINT :"midpoint" , THIRD_QUARTILE :"thirdQuartile" , COMPLETE :"complete" , PAUSE :"pause" , RESUME :"resume" , BUFFER_START :"bufferStart" , BUFFER_FINISH :"bufferFinish" , SKIPPED :"skipped" , VOLUME_CHANGE :"volumeChange" ,
211- PLAYER_STATE_CHANGE :"playerStateChange" , AD_USER_INTERACTION :"adUserInteraction" , STATE_CHANGE :"stateChange" } , MediaEventType :{ LOADED :"loaded" , START :"start" , FIRST_QUARTILE :"firstQuartile" , MIDPOINT :"midpoint" , THIRD_QUARTILE :"thirdQuartile" , COMPLETE :"complete" , PAUSE :"pause" , RESUME :"resume" , BUFFER_START :"bufferStart" , BUFFER_FINISH :"bufferFinish" , SKIPPED :"skipped" , VOLUME_CHANGE :"volumeChange" , PLAYER_STATE_CHANGE :"playerStateChange" , AD_USER_INTERACTION :"adUserInteraction" } , ImpressionType :{ DEFINED_BY_JAVASCRIPT :"definedByJavaScript" ,
212- UNSPECIFIED :"unspecified" , LOADED :"loaded" , BEGIN_TO_RENDER :"beginToRender" , ONE_PIXEL :"onePixel" , VIEWABLE :"viewable" , AUDIBLE :"audible" , OTHER :"other" } , ErrorType :{ GENERIC :"generic" , VIDEO :"video" , MEDIA :"media" } , AdSessionType :{ NATIVE :"native" , HTML :"html" , JAVASCRIPT :"javascript" } , EventOwner :{ NATIVE :"native" , JAVASCRIPT :"javascript" , NONE :"none" } , AccessMode :{ FULL :"full" , DOMAIN :"domain" , LIMITED :"limited" } , AppState :{ BACKGROUNDED :"backgrounded" , FOREGROUNDED :"foregrounded" } , Environment :{ APP :"app" ,
213- WEB :"web" } , InteractionType :{ CLICK :"click" , INVITATION_ACCEPT :"invitationAccept" } , CreativeType :{ DEFINED_BY_JAVASCRIPT :"definedByJavaScript" , HTML_DISPLAY :"htmlDisplay" , NATIVE_DISPLAY :"nativeDisplay" , VIDEO :"video" , AUDIO :"audio" } , MediaType :{ DISPLAY :"display" , VIDEO :"video" } , Reason :{ NOT_FOUND :"notFound" , HIDDEN :"hidden" , BACKGROUNDED :"backgrounded" , VIEWPORT :"viewport" , OBSTRUCTED :"obstructed" , CLIPPED :"clipped" , UNMEASURABLE :"unmeasurable" } , SupportedFeatures :{ CONTAINER :"clid" , VIDEO :"vlid" } ,
214- VideoPosition :{ PREROLL :"preroll" , MIDROLL :"midroll" , POSTROLL :"postroll" , STANDALONE :"standalone" } , VideoPlayerState :{ MINIMIZED :"minimized" , COLLAPSED :"collapsed" , NORMAL :"normal" , EXPANDED :"expanded" , FULLSCREEN :"fullscreen" } , NativeViewKeys :{ X :"x" , LEFT :"left" , Y :"y" , TOP :"top" , WIDTH :"width" , HEIGHT :"height" , AD_SESSION_ID :"adSessionId" , IS_FRIENDLY_OBSTRUCTION_FOR :"isFriendlyObstructionFor" , CLIPS_TO_BOUNDS :"clipsToBounds" , CHILD_VIEWS :"childViews" , END_X :"endX" , END_Y :"endY" , OBSTRUCTIONS :"obstructions" ,
210+ var module$exports$omid$common$constants = { AdEventType :{ IMPRESSION :"impression" , LOADED :"loaded" , GEOMETRY_CHANGE :"geometryChange" , SESSION_START :"sessionStart" , SESSION_ERROR :"sessionError" , SESSION_FINISH :"sessionFinish" , MEDIA :"media" , VIDEO :"video" , START :"start" , FIRST_QUARTILE :"firstQuartile" , MIDPOINT :"midpoint" , THIRD_QUARTILE :"thirdQuartile" , COMPLETE :"complete" , PAUSE :"pause" , RESUME :"resume" , BUFFER_START :"bufferStart" , BUFFER_FINISH :"bufferFinish" , SKIPPED :"skipped" , VOLUME_CHANGE :"volumeChange" ,
211+ PLAYER_STATE_CHANGE :"playerStateChange" , AD_USER_INTERACTION :"adUserInteraction" , STATE_CHANGE :"stateChange" } , MediaEventType :{ LOADED :"loaded" , START :"start" , FIRST_QUARTILE :"firstQuartile" , MIDPOINT :"midpoint" , THIRD_QUARTILE :"thirdQuartile" , COMPLETE :"complete" , PAUSE :"pause" , RESUME :"resume" , BUFFER_START :"bufferStart" , BUFFER_FINISH :"bufferFinish" , SKIPPED :"skipped" , VOLUME_CHANGE :"volumeChange" , PLAYER_STATE_CHANGE :"playerStateChange" , AD_USER_INTERACTION :"adUserInteraction" } , ImpressionType :{ DEFINED_BY_JAVASCRIPT :"definedByJavaScript" ,
212+ UNSPECIFIED :"unspecified" , LOADED :"loaded" , BEGIN_TO_RENDER :"beginToRender" , ONE_PIXEL :"onePixel" , VIEWABLE :"viewable" , AUDIBLE :"audible" , OTHER :"other" } , ErrorType :{ GENERIC :"generic" , VIDEO :"video" , MEDIA :"media" } , AdSessionType :{ NATIVE :"native" , HTML :"html" , JAVASCRIPT :"javascript" } , EventOwner :{ NATIVE :"native" , JAVASCRIPT :"javascript" , NONE :"none" } , AccessMode :{ FULL :"full" , DOMAIN :"domain" , LIMITED :"limited" } , AppState :{ BACKGROUNDED :"backgrounded" , FOREGROUNDED :"foregrounded" } , Environment :{ APP :"app" ,
213+ WEB :"web" } , InteractionType :{ CLICK :"click" , INVITATION_ACCEPT :"invitationAccept" } , CreativeType :{ DEFINED_BY_JAVASCRIPT :"definedByJavaScript" , HTML_DISPLAY :"htmlDisplay" , NATIVE_DISPLAY :"nativeDisplay" , VIDEO :"video" , AUDIO :"audio" } , MediaType :{ DISPLAY :"display" , VIDEO :"video" } , Reason :{ NOT_FOUND :"notFound" , HIDDEN :"hidden" , BACKGROUNDED :"backgrounded" , VIEWPORT :"viewport" , OBSTRUCTED :"obstructed" , CLIPPED :"clipped" , UNMEASURABLE :"unmeasurable" } , SupportedFeatures :{ CONTAINER :"clid" , VIDEO :"vlid" } ,
214+ VideoPosition :{ PREROLL :"preroll" , MIDROLL :"midroll" , POSTROLL :"postroll" , STANDALONE :"standalone" } , VideoPlayerState :{ MINIMIZED :"minimized" , COLLAPSED :"collapsed" , NORMAL :"normal" , EXPANDED :"expanded" , FULLSCREEN :"fullscreen" } , NativeViewKeys :{ X :"x" , LEFT :"left" , Y :"y" , TOP :"top" , WIDTH :"width" , HEIGHT :"height" , AD_SESSION_ID :"adSessionId" , IS_FRIENDLY_OBSTRUCTION_FOR :"isFriendlyObstructionFor" , CLIPS_TO_BOUNDS :"clipsToBounds" , CHILD_VIEWS :"childViews" , END_X :"endX" , END_Y :"endY" , OBSTRUCTIONS :"obstructions" ,
215215OBSTRUCTION_CLASS :"obstructionClass" , OBSTRUCTION_PURPOSE :"obstructionPurpose" , OBSTRUCTION_REASON :"obstructionReason" , PIXELS :"pixels" } , MeasurementStateChangeSource :{ CONTAINER :"container" , CREATIVE :"creative" } , ElementMarkup :{ OMID_ELEMENT_CLASS_NAME :"omid-element" } , CommunicationType :{ NONE :"NONE" , DIRECT :"DIRECT" , POST_MESSAGE :"POST_MESSAGE" } , OmidImplementer :{ OMSDK :"omsdk" } } ;
216216var module$contents$omid$common$InternalMessage_GUID_KEY = "omid_message_guid" , module$contents$omid$common$InternalMessage_METHOD_KEY = "omid_message_method" , module$contents$omid$common$InternalMessage_VERSION_KEY = "omid_message_version" , module$contents$omid$common$InternalMessage_ARGS_KEY = "omid_message_args" , module$exports$omid$common$InternalMessage = function ( a , b , c , d ) {
217217 this . guid = a ;
@@ -220,7 +220,7 @@ var module$contents$omid$common$InternalMessage_GUID_KEY = "omid_message_guid",
220220 this . args = d ;
221221} ;
222222module$exports$omid$common$InternalMessage . isValidSerializedMessage = function ( a ) {
223- return ! ! a && void 0 !== a [ module$contents$omid$common$InternalMessage_GUID_KEY ] && void 0 !== a [ module$contents$omid$common$InternalMessage_METHOD_KEY ] && void 0 !== a [ module$contents$omid$common$InternalMessage_VERSION_KEY ] && "string" === typeof a [ module$contents$omid$common$InternalMessage_GUID_KEY ] && "string" === typeof a [ module$contents$omid$common$InternalMessage_METHOD_KEY ] && "string" === typeof a [ module$contents$omid$common$InternalMessage_VERSION_KEY ] && ( void 0 === a [ module$contents$omid$common$InternalMessage_ARGS_KEY ] ||
223+ return ! ! a && void 0 !== a [ module$contents$omid$common$InternalMessage_GUID_KEY ] && void 0 !== a [ module$contents$omid$common$InternalMessage_METHOD_KEY ] && void 0 !== a [ module$contents$omid$common$InternalMessage_VERSION_KEY ] && "string" === typeof a [ module$contents$omid$common$InternalMessage_GUID_KEY ] && "string" === typeof a [ module$contents$omid$common$InternalMessage_METHOD_KEY ] && "string" === typeof a [ module$contents$omid$common$InternalMessage_VERSION_KEY ] && ( void 0 === a [ module$contents$omid$common$InternalMessage_ARGS_KEY ] ||
224224 void 0 !== a [ module$contents$omid$common$InternalMessage_ARGS_KEY ] ) ;
225225} ;
226226module$exports$omid$common$InternalMessage . deserialize = function ( a ) {
@@ -412,7 +412,7 @@ function module$contents$omid$common$logger_executeLog(a, b) {
412412 "undefined" !== typeof jasmine && jasmine ? a ( ) : "undefined" !== typeof console && console && console . error && b ( ) ;
413413}
414414; var module$exports$omid$common$eventTypedefs = { } ;
415- var module$exports$omid$common$version = { ApiVersion :"1.0" , Version :"1.3.19-iab2779 " } ;
415+ var module$exports$omid$common$version = { ApiVersion :"1.0" , Version :"1.3.21-iab2898 " } ;
416416var module$exports$omid$common$VersionUtils = { } , module$contents$omid$common$VersionUtils_SEMVER_DIGITS_NUMBER = 3 ;
417417module$exports$omid$common$VersionUtils . isValidVersion = function ( a ) {
418418 return / \d + \. \d + \. \d + ( - .* ) ? / . test ( a ) ;
@@ -474,6 +474,13 @@ module$exports$omid$common$windowUtils.resolveGlobalContext = function(a) {
474474module$exports$omid$common$windowUtils . resolveTopWindowContext = function ( a ) {
475475 return module$contents$omid$common$windowUtils_isValidWindow ( a ) ? a . top : module$exports$omid$common$OmidGlobalProvider . omidGlobal ;
476476} ;
477+ module$exports$omid$common$windowUtils . isTopWindowAccessible = function ( a ) {
478+ try {
479+ return a . top . location . href ? ! 0 : ! 1 ;
480+ } catch ( b ) {
481+ return ! 1 ;
482+ }
483+ } ;
477484module$exports$omid$common$windowUtils . evaluatePageUrl = function ( a ) {
478485 if ( ! module$contents$omid$common$windowUtils_isValidWindow ( a ) ) {
479486 return null ;
@@ -537,7 +544,7 @@ var module$exports$omid$common$DetectOmid = {OMID_PRESENT_FRAME_NAME:"omid_v1_pr
537544 return ! 1 ;
538545 }
539546} , declareOmidPresence :function ( a ) {
540- a . frames && a . document && ( module$exports$omid$common$DetectOmid . OMID_PRESENT_FRAME_NAME in a . frames || ( null == a . document . body && module$exports$omid$common$DetectOmid . isMutationObserverAvailable_ ( a ) ? module$exports$omid$common$DetectOmid . registerMutationObserver_ ( a ) : a . document . body ? module$exports$omid$common$DetectOmid . appendPresenceIframe_ ( a ) : a . document . write ( '<iframe style="display:none" id="' + ( module$exports$omid$common$DetectOmid . OMID_PRESENT_FRAME_NAME + '" name="' ) + ( module$exports$omid$common$DetectOmid . OMID_PRESENT_FRAME_NAME +
547+ a . frames && a . document && ( module$exports$omid$common$DetectOmid . OMID_PRESENT_FRAME_NAME in a . frames || ( null == a . document . body && module$exports$omid$common$DetectOmid . isMutationObserverAvailable_ ( a ) ? module$exports$omid$common$DetectOmid . registerMutationObserver_ ( a ) : a . document . body ? module$exports$omid$common$DetectOmid . appendPresenceIframe_ ( a ) : a . document . write ( '<iframe style="display:none" id="' + ( module$exports$omid$common$DetectOmid . OMID_PRESENT_FRAME_NAME + '" name="' ) + ( module$exports$omid$common$DetectOmid . OMID_PRESENT_FRAME_NAME +
541548 '"></iframe>' ) ) ) ) ;
542549} , appendPresenceIframe_ :function ( a ) {
543550 var b = a . document . createElement ( "iframe" ) ;
@@ -862,6 +869,19 @@ var module$exports$omid$sessionClient$OmidVersion = function(a, b) {
862869( 0 , module$exports$omid$common$exporter . packageExport ) ( "OmidSessionClient.OmidVersion" , module$exports$omid$sessionClient$OmidVersion ) ;
863870var module$exports$omid$sessionClient$VastPropertiesExports = { } ;
864871( 0 , module$exports$omid$common$exporter . packageExport ) ( "OmidSessionClient.VastProperties" , module$exports$omid$common$VastProperties ) ;
872+ var module$exports$omid$common$FloatComparer = { } , module$contents$omid$common$FloatComparer_FLOAT_ROUGH_DIFF_TOLERANCE = 0.01 ;
873+ function module$contents$omid$common$FloatComparer_roughlyEqual ( a , b ) {
874+ return Math . abs ( a - b ) < module$contents$omid$common$FloatComparer_FLOAT_ROUGH_DIFF_TOLERANCE ;
875+ }
876+ module$exports$omid$common$FloatComparer . roughlyLessThan = function ( a , b ) {
877+ return b - a > module$contents$omid$common$FloatComparer_FLOAT_ROUGH_DIFF_TOLERANCE ;
878+ } ;
879+ module$exports$omid$common$FloatComparer . lessThanOrRoughlyEqual = function ( a , b ) {
880+ return a < b || module$contents$omid$common$FloatComparer_roughlyEqual ( a , b ) ;
881+ } ;
882+ module$exports$omid$common$FloatComparer . greaterThanOrRoughlyEqual = function ( a , b ) {
883+ return a > b || module$contents$omid$common$FloatComparer_roughlyEqual ( a , b ) ;
884+ } ;
865885
866886} , typeof exports === 'undefined' ? undefined : exports ) ) ;
867887
0 commit comments