hr-design-system-handlebars 1.92.0 → 1.94.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/assets/index.css +3 -3
- package/dist/assets/js/components/mediaplayer/ardPlayerLoader.subfeature.js +20 -16
- package/dist/assets/vendor/ardplayer/ardplayer-SANDLibrary.6faa2a2b.chunk.js +195 -0
- package/dist/assets/vendor/ardplayer/ardplayer-hr-6.9.2.3be63dd6.css +1 -0
- package/dist/assets/vendor/ardplayer/ardplayer-hr-6.9.2.930e5d37.js +1 -0
- package/dist/assets/vendor/ardplayer/ardplayer-libimsc.94ff92e7.chunk.js +12 -0
- package/dist/assets/vendor/ardplayer/ardplayer-pluginchromecast.064b468f.chunk.js +1 -0
- package/dist/assets/vendor/ardplayer/ardplayer-plugindash.f3029c65.chunk.js +10 -0
- package/dist/assets/vendor/ardplayer/ardplayer-pluginhls.d2363d5c.chunk.js +1 -0
- package/dist/assets/vendor/ardplayer/ardplayer-pluginhtmla.fc2a72c0.chunk.js +1 -0
- package/dist/assets/vendor/ardplayer/ardplayer-pluginhtmlv.90153612.chunk.js +1 -0
- package/dist/assets/vendor/ardplayer/assets/c760ddea7c5679abc52d-ardplayer.woff +0 -0
- package/dist/assets/vendor/ardplayer/assets/d45e654a921039ff64c9-ardplayer-audio.woff +0 -0
- package/dist/assets/vendor/ardplayer/assets/img/hr-f06b736c.svg +1 -0
- package/dist/views/components/site_header/burger.hbs +3 -3
- package/dist/views_static/components/site_header/burger.hbs +3 -3
- package/package.json +2 -2
- package/src/assets/fixtures/audio/audios.inc.json +8 -8
- package/src/assets/fixtures/page/podcast/podcast_player_episode.json +4 -4
- package/src/assets/fixtures/video/videos.inc.json +6 -6
- package/src/assets/vendor/ardplayer/ardplayer-SANDLibrary.6faa2a2b.chunk.js +195 -0
- package/src/assets/vendor/ardplayer/ardplayer-hr-6.9.2.3be63dd6.css +1 -0
- package/src/assets/vendor/ardplayer/ardplayer-hr-6.9.2.930e5d37.js +1 -0
- package/src/assets/vendor/ardplayer/ardplayer-libimsc.94ff92e7.chunk.js +12 -0
- package/src/assets/vendor/ardplayer/ardplayer-pluginchromecast.064b468f.chunk.js +1 -0
- package/src/assets/vendor/ardplayer/ardplayer-plugindash.f3029c65.chunk.js +10 -0
- package/src/assets/vendor/ardplayer/ardplayer-pluginhls.d2363d5c.chunk.js +1 -0
- package/src/assets/vendor/ardplayer/ardplayer-pluginhtmla.fc2a72c0.chunk.js +1 -0
- package/src/assets/vendor/ardplayer/ardplayer-pluginhtmlv.90153612.chunk.js +1 -0
- package/src/assets/vendor/ardplayer/assets/c760ddea7c5679abc52d-ardplayer.woff +0 -0
- package/src/assets/vendor/ardplayer/assets/d45e654a921039ff64c9-ardplayer-audio.woff +0 -0
- package/src/assets/vendor/ardplayer/assets/img/hr-f06b736c.svg +1 -0
- package/src/stories/views/components/content/copytext/fixtures/copytext_audio-livestream.json +439 -1
- package/src/stories/views/components/content/copytext/fixtures/copytext_audio.json +1 -1
- package/src/stories/views/components/content/copytext/fixtures/copytext_audio_livestream.json +1 -1
- package/src/stories/views/components/content/copytext/fixtures/copytext_image.json +1 -1
- package/src/stories/views/components/content/copytext/fixtures/copytext_livestream.json +1 -1
- package/src/stories/views/components/content/copytext/fixtures/copytext_media_components.json +1 -1
- package/src/stories/views/components/content/copytext/fixtures/copytext_non_media_components.json +1 -1
- package/src/stories/views/components/content/copytext/fixtures/copytext_podcastepisode.json +1 -1
- package/src/stories/views/components/content/copytext/fixtures/copytext_video.json +1 -1
- package/src/stories/views/components/mediaplayer/ardPlayerLoader.subfeature.js +20 -16
- package/src/stories/views/components/mediaplayer/fixtures/mediaplayer.json +1 -1
- package/src/stories/views/components/page/fixtures/page.json +1 -1
- package/src/stories/views/components/page/podcast/fixtures/podcast_player_episode.json +1 -1
- package/src/stories/views/components/page/podcast/fixtures/podcast_player_playlist.json +1 -1
- package/src/stories/views/components/page/story/fixtures/story.json +1 -1
- package/src/stories/views/components/page/story/fixtures/story_with_audio.json +1 -1
- package/src/stories/views/components/page/story/fixtures/story_with_label.json +1 -1
- package/src/stories/views/components/page/story/fixtures/story_with_livestream.json +1 -1
- package/src/stories/views/components/page/story/fixtures/story_with_square_image.json +1 -1
- package/src/stories/views/components/page/story/fixtures/story_with_video.json +1 -1
- package/src/stories/views/components/pagination/fixtures/page_pagination.json +1 -1
- package/src/stories/views/components/site_header/burger.hbs +3 -3
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_Podcast_Channel.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_audio.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_live.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_video.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_audio.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_live.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_video.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_audio.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_live.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_video.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_group_100.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_group_100_highlight.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_group_100_highlight_2.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_group_related_content_100.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_index.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_podcast.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_podcast_50.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_podcast_playlist.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_podcast_playlist_50.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_podcast_playlist_filter.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_audio.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_audio_livestream.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_live.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_podcast.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_video.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_audio.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_audio_livestream.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_live.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_podcast.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_video.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_tabbox.json +1 -1
- package/src/stories/views/components/teaser/fixtures/ticker_teaser_alternativ_hero_audio.json +1 -1
- package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_hero_audio.json +1 -1
- package/dist/assets/vendor/ardplayer/ardplayer-SANDLibrary.6914f2bf.chunk.js +0 -215
- package/dist/assets/vendor/ardplayer/ardplayer-hr-6.8.3.0b83d962.css +0 -1
- package/dist/assets/vendor/ardplayer/ardplayer-hr-6.8.3.82603554.js +0 -1
- package/dist/assets/vendor/ardplayer/ardplayer-libimsc.df21844d.chunk.js +0 -12
- package/dist/assets/vendor/ardplayer/ardplayer-pluginchromecast.7ac38542.chunk.js +0 -1
- package/dist/assets/vendor/ardplayer/ardplayer-plugindash.5f1cc2a5.chunk.js +0 -10
- package/dist/assets/vendor/ardplayer/ardplayer-pluginhls.f2dda4ed.chunk.js +0 -1
- package/dist/assets/vendor/ardplayer/ardplayer-pluginhtmla.0091a55c.chunk.js +0 -1
- package/dist/assets/vendor/ardplayer/ardplayer-pluginhtmlv.79984eb8.chunk.js +0 -1
- package/dist/assets/vendor/ardplayer/assets/47c7582569a6257c08cd-ardplayer.woff +0 -0
- package/dist/assets/vendor/ardplayer/assets/863e0304cfbfcb2dc097-ardplayer-audio.woff +0 -0
- package/dist/assets/vendor/ardplayer/assets/img/hr-ea7b54c7.svg +0 -1
- package/src/assets/vendor/ardplayer/ardplayer-SANDLibrary.6914f2bf.chunk.js +0 -215
- package/src/assets/vendor/ardplayer/ardplayer-hr-6.8.3.0b83d962.css +0 -1
- package/src/assets/vendor/ardplayer/ardplayer-hr-6.8.3.82603554.js +0 -1
- package/src/assets/vendor/ardplayer/ardplayer-libimsc.df21844d.chunk.js +0 -12
- package/src/assets/vendor/ardplayer/ardplayer-pluginchromecast.7ac38542.chunk.js +0 -1
- package/src/assets/vendor/ardplayer/ardplayer-plugindash.5f1cc2a5.chunk.js +0 -10
- package/src/assets/vendor/ardplayer/ardplayer-pluginhls.f2dda4ed.chunk.js +0 -1
- package/src/assets/vendor/ardplayer/ardplayer-pluginhtmla.0091a55c.chunk.js +0 -1
- package/src/assets/vendor/ardplayer/ardplayer-pluginhtmlv.79984eb8.chunk.js +0 -1
- package/src/assets/vendor/ardplayer/assets/47c7582569a6257c08cd-ardplayer.woff +0 -0
- package/src/assets/vendor/ardplayer/assets/863e0304cfbfcb2dc097-ardplayer-audio.woff +0 -0
- package/src/assets/vendor/ardplayer/assets/img/hr-ea7b54c7.svg +0 -1
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
(globalThis.webpackChunkardplayer=globalThis.webpackChunkardplayer||[]).push([[527],{79723:function(module){
|
|
2
|
-
/*!
|
|
3
|
-
* Copyright (c) 2022, Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V.
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
*
|
|
6
|
-
* For more information please contact:
|
|
7
|
-
* Fraunhofer FOKUS
|
|
8
|
-
* Kaiserin-Augusta-Allee 31
|
|
9
|
-
* 10589 Berlin, Germany
|
|
10
|
-
* https://www.fokus.fraunhofer.de/go/fame
|
|
11
|
-
* famecontact@fokus.fraunhofer.de
|
|
12
|
-
*/
|
|
13
|
-
var e;e=function(){return function(){var e={"./node_modules/sandlib-core/lib/externals/js.cookie.js":
|
|
14
|
-
/*!**************************************************************!*\
|
|
15
|
-
!*** ./node_modules/sandlib-core/lib/externals/js.cookie.js ***!
|
|
16
|
-
\**************************************************************/function(module,e,t){var n,r;
|
|
17
|
-
/*!
|
|
18
|
-
* JavaScript Cookie v2.1.4
|
|
19
|
-
* https://github.com/js-cookie/js-cookie
|
|
20
|
-
*
|
|
21
|
-
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
22
|
-
* Released under the MIT license
|
|
23
|
-
*/!function(o){void 0===(r="function"==typeof(n=o)?n.call(e,t,e,module):n)||(module.exports=r),module.exports=o()}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}return function t(n){function r(t,o,i){var s;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(i=e({path:"/"},r.defaults,i)).expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*i.expires),i.expires=a}i.expires=i.expires?i.expires.toUTCString():"";try{s=JSON.stringify(o),/^[\{\[]/.test(s)&&(o=s)}catch(e){}o=n.write?n.write(o,t):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var l="";for(var c in i)i[c]&&(l+="; "+c,!0!==i[c]&&(l+="="+i[c]));return document.cookie=t+"="+o+l}t||(s={});for(var u=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,p=0;p<u.length;p++){var f=u[p].split("="),h=f.slice(1).join("=");'"'===h.charAt(0)&&(h=h.slice(1,-1));try{var m=f[0].replace(d,decodeURIComponent);if(h=n.read?n.read(h,m):n(h,m)||h.replace(d,decodeURIComponent),this.json)try{h=JSON.parse(h)}catch(e){}if(t===m){s=h;break}t||(s[m]=h)}catch(e){}}return s}}return r.set=r,r.get=function(e){return r.call(r,e)},r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(t,n){r(t,"",e(n,{expires:-1}))},r.withConverter=t,r}((function(){}))}))},"./node_modules/sandlib-core/lib/externals/xml2json.js":
|
|
24
|
-
/*!*************************************************************!*\
|
|
25
|
-
!*** ./node_modules/sandlib-core/lib/externals/xml2json.js ***!
|
|
26
|
-
\*************************************************************/function(e,t,n){"use strict";function r(e){return function(e){void 0===(e=e||{}).escapeMode&&(e.escapeMode=!0),void 0===e.attributePrefix&&(e.attributePrefix="_"),e.arrayAccessForm=e.arrayAccessForm||"none",e.emptyNodeForm=e.emptyNodeForm||"text",void 0===e.enableToStringFunc&&(e.enableToStringFunc=!0),e.arrayAccessFormPaths=e.arrayAccessFormPaths||[],void 0===e.skipEmptyTextNodesForObj&&(e.skipEmptyTextNodesForObj=!0),void 0===e.stripWhitespaces&&(e.stripWhitespaces=!0),e.datetimeAccessFormPaths=e.datetimeAccessFormPaths||[],void 0===e.useDoubleQuotes&&(e.useDoubleQuotes=!1),e.xmlElementsFilter=e.xmlElementsFilter||[],e.jsonPropertiesFilter=e.jsonPropertiesFilter||[],void 0===e.keepCData&&(e.keepCData=!1),void 0===e.ignoreRoot&&(e.ignoreRoot=!1);var t={ELEMENT_NODE:1,TEXT_NODE:3,CDATA_SECTION_NODE:4,COMMENT_NODE:8,DOCUMENT_NODE:9};function n(e){var t=e.localName;return null==t&&(t=e.baseName),null!=t&&""!=t||(t=e.nodeName),t}function r(e){return"string"==typeof e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):e}function o(e,t,n,r){for(var o=0;o<e.length;o++){var i=e[o];if("string"==typeof i){if(i==r)break}else if(i instanceof RegExp){if(i.test(r))break}else if("function"==typeof i&&i(t,n,r))break}return o!=e.length}function i(t,n,r){"property"===e.arrayAccessForm&&(t[n]instanceof Array?t[n+"_asArray"]=t[n]:t[n+"_asArray"]=[t[n]]),!(t[n]instanceof Array)&&e.arrayAccessFormPaths.length>0&&o(e.arrayAccessFormPaths,t,n,r)&&(t[n]=[t[n]])}function s(e){var t=e.split(/[-T:+Z]/g),n=new Date(t[0],t[1]-1,t[2]),r=t[5].split(".");if(n.setHours(t[3],t[4],r[0]),r.length>1&&n.setMilliseconds(r[1]),t[6]&&t[7]){var o=60*t[6]+Number(t[7]);o=0+("-"==(/\d\d-\d\d:\d\d$/.test(e)?"-":"+")?-1*o:o),n.setMinutes(n.getMinutes()-o-n.getTimezoneOffset())}else-1!==e.indexOf("Z",e.length-1)&&(n=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())));return n}function a(n,r,i,s){return!(r==t.ELEMENT_NODE&&e.xmlElementsFilter.length>0)||o(e.xmlElementsFilter,n,i,s)}function l(r,c){if(r.nodeType==t.DOCUMENT_NODE){for(var u=new Object,d=r.childNodes,p=0;p<d.length;p++)(h=d.item(p)).nodeType==t.ELEMENT_NODE&&(e.ignoreRoot?u=l(h):(u={})[m=n(h)]=l(h));return u}if(r.nodeType==t.ELEMENT_NODE){(u=new Object).__cnt=0;var f=[];for(d=r.childNodes,p=0;p<d.length;p++){var h,m=n(h=d.item(p));if(h.nodeType!=t.COMMENT_NODE){var y=c+"."+m;if(a(u,h.nodeType,m,y))if(u.__cnt++,null==u[m]){var b=l(h,y);("#text"!=m||/[^\s]/.test(b))&&((_={})[m]=b,f.push(_)),u[m]=b,i(u,m,y)}else{var _;null!=u[m]&&(u[m]instanceof Array||(u[m]=[u[m]],i(u,m,y))),b=l(h,y),("#text"!=m||/[^\s]/.test(b))&&((_={})[m]=b,f.push(_)),u[m][u[m].length]=b}}}u.__children=f;for(var w=n(r),g=0;g<r.attributes.length;g++){var v=r.attributes.item(g);u.__cnt++;for(var S=v.value,O=0,T=e.matchers.length;O<T;O++){var x=e.matchers[O];x.test(v,w)&&(S=x.converter(v.value))}u[e.attributePrefix+v.name]=S}var E=function(e){return e.prefix}(r);return null!=E&&""!=E&&(u.__cnt++,u.__prefix=E),null!=u["#text"]&&(u.__text=u["#text"],u.__text instanceof Array&&(u.__text=u.__text.join("\n")),e.stripWhitespaces&&(u.__text=u.__text.trim()),delete u["#text"],"property"==e.arrayAccessForm&&delete u["#text_asArray"],u.__text=function(t,n,r){if(e.datetimeAccessFormPaths.length>0){var i=r.split(".#")[0];return o(e.datetimeAccessFormPaths,t,n,i)?s(t):t}return t}(u.__text,m,c+"."+m)),null!=u["#cdata-section"]&&(u.__cdata=u["#cdata-section"],delete u["#cdata-section"],"property"==e.arrayAccessForm&&delete u["#cdata-section_asArray"]),0==u.__cnt&&"text"==e.emptyNodeForm?u="":1==u.__cnt&&null!=u.__text?u=u.__text:1!=u.__cnt||null==u.__cdata||e.keepCData?u.__cnt>1&&null!=u.__text&&e.skipEmptyTextNodesForObj&&(e.stripWhitespaces&&""==u.__text||""==u.__text.trim())&&delete u.__text:u=u.__cdata,delete u.__cnt,!e.enableToStringFunc||null==u.__text&&null==u.__cdata||(u.toString=function(){return(null!=this.__text?this.__text:"")+(null!=this.__cdata?this.__cdata:"")}),u}if(r.nodeType==t.TEXT_NODE||r.nodeType==t.CDATA_SECTION_NODE)return r.nodeValue}function c(t,n,o,i){var s="<"+(null!=t&&null!=t.__prefix?t.__prefix+":":"")+n;if(null!=o)for(var a=0;a<o.length;a++){var l=o[a],c=t[l];e.escapeMode&&(c=r(c)),s+=" "+l.substr(e.attributePrefix.length)+"=",e.useDoubleQuotes?s+='"'+c+'"':s+="'"+c+"'"}return s+=i?"/>":">"}function u(e,t){return"</"+(null!=e.__prefix?e.__prefix+":":"")+t+">"}function d(t,n){return"property"==e.arrayAccessForm&&(r=n.toString(),o="_asArray",-1!==r.indexOf(o,r.length-o.length))||0==n.toString().indexOf(e.attributePrefix)||0==n.toString().indexOf("__")||t[n]instanceof Function;var r,o}function p(e){var t=0;if(e instanceof Object)for(var n in e)d(e,n)||t++;return t}function f(t,n,r){return 0==e.jsonPropertiesFilter.length||""==r||o(e.jsonPropertiesFilter,t,n,r)}function h(t){var n=[];if(t instanceof Object)for(var r in t)-1==r.toString().indexOf("__")&&0==r.toString().indexOf(e.attributePrefix)&&n.push(r);return n}function m(t){var n="";return t instanceof Object?n+=function(t){var n="";return null!=t.__cdata&&(n+="<![CDATA["+t.__cdata+"]]>"),null!=t.__text&&(e.escapeMode?n+=r(t.__text):n+=t.__text),n}(t):null!=t&&(e.escapeMode?n+=r(t):n+=t),n}function y(e,t){return""===e?t:e+"."+t}function b(e,t,n,r){var o="";if(0==e.length)o+=c(e,t,n,!0);else for(var i=0;i<e.length;i++)o+=c(e[i],t,h(e[i]),!1),o+=_(e[i],y(r,t)),o+=u(e[i],t);return o}function _(e,t){var n="";if(p(e)>0)for(var r in e)if(!d(e,r)&&(""==t||f(e,r,y(t,r)))){var o=e[r],i=h(o);null==o||null==o?n+=c(o,r,i,!0):o instanceof Object?o instanceof Array?n+=b(o,r,i,t):o instanceof Date?(n+=c(o,r,i,!1),n+=o.toISOString(),n+=u(o,r)):p(o)>0||null!=o.__text||null!=o.__cdata?(n+=c(o,r,i,!1),n+=_(o,y(t,r)),n+=u(o,r)):n+=c(o,r,i,!0):(n+=c(o,r,i,!1),n+=m(o),n+=u(o,r))}return n+=m(e)}this.parseXmlString=function(e){var t,n=window.ActiveXObject||"ActiveXObject"in window;if(void 0===e)return null;if(window.DOMParser){var r=new window.DOMParser,o=null;if(!n)try{o=r.parseFromString("INVALID","text/xml").getElementsByTagName("parsererror")[0].namespaceURI}catch(e){o=null}try{t=r.parseFromString(e,"text/xml"),null!=o&&t.getElementsByTagNameNS(o,"parsererror").length>0&&(t=null)}catch(e){t=null}}else 0==e.indexOf("<?")&&(e=e.substr(e.indexOf("?>")+2)),(t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e);return t},this.asArray=function(e){return void 0===e||null==e?[]:e instanceof Array?e:[e]},this.toXmlDateTime=function(e){return e instanceof Date?e.toISOString():"number"==typeof e?new Date(e).toISOString():null},this.asDateTime=function(e){return"string"==typeof e?s(e):e},this.xml2json=function(e){return l(e)},this.xml_str2json=function(e){var t=this.parseXmlString(e);return null!=t?this.xml2json(t):null},this.json2xml_str=function(e){return _(e,"")},this.json2xml=function(e){var t=this.json2xml_str(e);return this.parseXmlString(t)},this.getVersion=function(){return"1.2.0"}}.bind(e)}n.r(t),n.d(t,{default:function(){return r}})},"./node_modules/sandlib-core/lib/channels/Channel.ts":
|
|
27
|
-
/*!***********************************************************!*\
|
|
28
|
-
!*** ./node_modules/sandlib-core/lib/channels/Channel.ts ***!
|
|
29
|
-
\***********************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{Channel:function(){return l}});var r=n(/*! ../core/events */"./node_modules/sandlib-core/lib/core/events.ts"),o=n(/*! ../core/Constants */"./node_modules/sandlib-core/lib/core/Constants.ts"),i=n(/*! ../utils/utils */"./node_modules/sandlib-core/lib/utils/utils.ts"),s=n(/*! ../models/metrics/EntityBase */"./node_modules/sandlib-core/lib/models/metrics/EntityBase.ts"),a=n(/*! ../index */"./node_modules/sandlib-core/lib/index.ts"),l=function(){function e(e,t,n,s,a,l,c,u,d,p){var f,h;this.messageBus=e,this.clientModel=t,this._schemeIdUri=n||null,this._id=s||null,this._endpoint=l||null,this._isReportingChannel=c||!1,this._reportMetricTypes=u||[],this._limiter=d;var m=p;this._configuration=m,this._messageData={},this._sendCallback=null,this._intervalHandler=null,this._timeoutHandler=null;var y=(null==m?void 0:m.defaults)&&(null===(f=null==m?void 0:m.defaults)||void 0===f?void 0:f.reportingInterval);this._reportingInterval=isNaN(y)?2e3:y,this._initTime=i.SyncedDate.now()+(isNaN(m.adaptiveInterval&&m.adaptiveInterval.init)?6e4:m.adaptiveInterval.init),this._adaptiveReportingInterval=isNaN(m.adaptiveInterval&&m.adaptiveInterval.reportingInterval)?4e3:m.adaptiveInterval.reportingInterval,this._errorTimeout=isNaN(m.defaults&&m.defaults.errorTimeout)?6e4:m.defaults.errorTimeout,this.disposed=!1,this._onDestroy=[],this.processMessages=null;var b=this;this.messageBus.on(r.default.FLUSH,(function(){try{b.processMessages&&b.processMessages()}catch(e){}})),a?(this.token=a,this.processMessages=this.send,this.runReportingLoop()):(this.clientModel.setSenderId(),this.requestLimitedReportingSession()),this.expires_in=-1,i.SyncedDate.setDefaultThreshold(null!==(h=m.defaults.syncedDateThreshold)&&void 0!==h?h:o.default.SYNCEDDATE.THRESHOLD)}return e.prototype.syncDateWithResponseHeaders=function(e){var t,n,r=null,o=(null!==(t=null==e?void 0:e.getAllResponseHeaders())&&void 0!==t?t:"").toLowerCase();0!==o.indexOf("date:")&&-1===o.indexOf("\r\ndate:")||(r=null!==(n=null==e?void 0:e.getResponseHeader("date"))&&void 0!==n?n:null),a.SANDLibraryCore.syncClock(r)},e.prototype.runReportingLoop=function(e){void 0===e&&(e=0);var t=this,n=e||(i.SyncedDate.now()>this._initTime?this._adaptiveReportingInterval:this._reportingInterval);this._intervalHandler&&a.SANDLibraryCore.globalTimer.clearInterval(this._intervalHandler),this._intervalHandler=null,this.disposed||(this._intervalHandler=a.SANDLibraryCore.globalTimer.setInterval((function(){try{t.processMessages&&t.processMessages()}catch(e){}}),n))},e.prototype.stopReportingLoop=function(){a.SANDLibraryCore.globalTimer.clearInterval(this._intervalHandler),this._intervalHandler=null},e.prototype.setTokenRefreshTimer=function(){var e=this;this._timeoutHandler&&a.SANDLibraryCore.globalTimer.clearTimeout(this._timeoutHandler),this._timeoutHandler=null,this.disposed||this.expires_in<0||(this.expires_in>-1&&this.expires_in-6e4<6e4?this.requestLimitedReportingSession():this._timeoutHandler=a.SANDLibraryCore.globalTimer.setTimeout((function(){try{e.requestLimitedReportingSession()}catch(e){}}),this.expires_in-6e4))},e.prototype.requestLimitedReportingSession=function(){var e=this;if(this._limiter&&this._limiter.endpoint){var t=this.clientModel.getStreamingSessionId(),n=new XMLHttpRequest,o=this._limiter.endpoint.indexOf("?")>-1?"&sid=":"?sid=";n.overrideMimeType("application/json"),n.open("GET",this._limiter.endpoint+o+t,!0),n.onload=function(){try{("string"!=typeof e.token||e.token.length<1)&&e.syncDateWithResponseHeaders(n);var t=JSON.parse(n.responseText);t.token?(e.token=t.token,t.expires_in&&(e.expires_in=t.expires_in,e.setTokenRefreshTimer()),e.processMessages=e.send,t.renewUrl&&t.maxRenewIntervalSecs&&e.renewLimitedReportingSession(t.renewUrl,1e3*t.maxRenewIntervalSecs),e.messageBus.emit(r.default.FLUSH,null),e.runReportingLoop()):e.processMessages=e.drop}catch(e){}},n.onerror=function(){e.processMessages=e.drop},n.send(null)}},e.prototype.renewLimitedReportingSession=function(e,t){try{var n=new XMLHttpRequest,r=a.SANDLibraryCore.globalTimer.setInterval((function(){n.open("GET",e,!0),n.send(null)}),t);this._onDestroy.push((function(){a.SANDLibraryCore.globalTimer.clearInterval(r)}))}catch(e){}},e.prototype.setReportingChannel=function(e){this._isReportingChannel=e},e.prototype.getReportingChannel=function(){return this._isReportingChannel},e.prototype.addReportMetricTypes=function(e){for(var t=0;t<e.length;t++)-1===this._reportMetricTypes.indexOf(e[t])&&this._reportMetricTypes.push(e[t])},e.prototype.getSchemeIdUri=function(){return this._schemeIdUri},e.prototype.setSchemeIdUri=function(e){this._schemeIdUri=e},e.prototype.getEndpoint=function(){return this._endpoint},e.prototype.setEndpoint=function(e){this._endpoint=e},e.prototype.getId=function(){return this._id},e.prototype.setId=function(e){this._id=e},e.prototype.getReportMetricTypes=function(){return this._reportMetricTypes},e.prototype.setMessageInterval=function(e){this._reportingInterval=e},e.prototype.addMessageDataAsJson=function(e,t){if(-1!==this._reportMetricTypes.indexOf(e)){var n=this.clientModel.getInitTS(),o=this.clientModel.getOptionalParamsObject(),i=Array.isArray(t)?t:[t];this._messageData[e]=(this._messageData[e]||[]).concat(i.map((function(t){return s.EntityBase.create(e,t,n,o)}))),"Playback"===e&&this.messageBus.emit(r.default.FLUSH,null)}},e.prototype.registerSendCallback=function(e){if("function"!=typeof e)throw new Error("callback should be a function");this._sendCallback=e},e.prototype.removeSendCallback=function(){this._sendCallback=null},e.prototype.remove=function(){this.disposed=!0,this.stopReportingLoop();for(var e=void 0;e=this._onDestroy.shift();)try{e()}catch(e){}},e.prototype.send=function(){throw new Error("Your Channel should implement its own send method!")},e.prototype.drop=function(){this._messageData={}},e}();l._registeredChannelTypes={},l.registerChannelType=function(e,t){l._registeredChannelTypes[e]=t},l.createChannel=function(e,t,n,r){var o=n.schemeIdUri,i=n.token,s=n.endpoints,a=n.metrics,c=n.limiter;if(!l._registeredChannelTypes[o])throw new Error("Unsupported schemeIdUri: ".concat(o));try{return new l._registeredChannelTypes[o](e,t,o,null,i,s[0],!0,a,c,r)}catch(e){throw new Error("Could not create channel of schemeIdUri: ".concat(o,": ")+e)}}},"./node_modules/sandlib-core/lib/channels/HTTPChannel.ts":
|
|
30
|
-
/*!***************************************************************!*\
|
|
31
|
-
!*** ./node_modules/sandlib-core/lib/channels/HTTPChannel.ts ***!
|
|
32
|
-
\***************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{HTTPChannel:function(){return d}});var r,o=n(/*! ./XHRChannel */"./node_modules/sandlib-core/lib/channels/XHRChannel.ts"),i=n(/*! ../utils/SANDMessageSerializer */"./node_modules/sandlib-core/lib/utils/SANDMessageSerializer.ts"),s=n(/*! ../core/events */"./node_modules/sandlib-core/lib/core/events.ts"),a=n(/*! ../utils/utils */"./node_modules/sandlib-core/lib/utils/utils.ts"),l=n(/*! ../externals/xml2json */"./node_modules/sandlib-core/lib/externals/xml2json.js"),c=n(/*! ../core/Constants */"./node_modules/sandlib-core/lib/core/Constants.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t,n,r,o,i,s,a,l,c,u){var d=e.call(this,t,n,r,o,i,s,a,l,c,u)||this;return d._req=new XMLHttpRequest,d}return u(t,e),t.prototype.onreadystatechange=function(){4===this._req.readyState&&this.handleResponseheaders(this._req.getAllResponseHeaders())},t.prototype.handleResponseheaders=function(e){if(null!==e){var t=(0,a.responseHeaderToKeyValue)(e);this.messageBus.emit(s.default.RESPONSE_HEADER,{headers:t})}},t.prototype.oncompleteWithCallback=function(e,t){this.messageBus.emit(s.default.RESPONSE_HEADER,{headers:[{key:"key",value:"val"}]}),this._req.status>=200&&this._req.status<300?(this.runReportingLoop(),e&&e()):(this.runReportingLoop(this._errorTimeout),t&&t())},t.prototype.doPostRequest=function(e){var t=this;try{this.stopReportingLoop(),this._req.open("POST",this._endpoint),e.headers.forEach((function(e){t._req.setRequestHeader(e.key,e.value)})),this._req.onloadend=function(){t.oncompleteWithCallback()},this._req.onerror=function(){t.oncompleteWithCallback()},this._req.onreadystatechange=function(){t.onreadystatechange()},this._req.send(e.messageData)}catch(e){this._req.onerror(e)}},t.prototype.send=function(){if(0!==Object.keys(this._messageData).length){var e=i.SANDMessageSerializer.serialize(this._messageData,this.clientModel.getSenderId()),t={headers:[],messageData:""};if(this._configuration&&this._configuration.payloadType&&this._configuration.payloadType===c.default.PAYLOAD_TYPES.JSON)t.messageData=JSON.stringify(e),t.headers.push({key:"Content-type",value:c.default.PAYLOAD_TYPES.JSON});else{var n={};new((0,l.default)(n)()),t.messageData=n.json2xml_str((0,a.renameKeysWithPrefix)({SANDMessage:e},{prefix:"_",exceptionList:["HbbPodduration"]})),t.headers.push({key:"Content-type",value:c.default.PAYLOAD_TYPES.XML})}if(t.headers.push({key:"Authorization",value:"Bearer "+this.token}),this.addCustomHeaders(t.headers),this.doPostRequest(t),this._messageData={},this._sendCallback&&"function"==typeof this._sendCallback)try{this._sendCallback(this.getId(),t.messageData)}catch(e){}}},t.prototype.addCustomHeaders=function(e){if(this._configuration&&this._configuration.enableHeaderReporting){var t=this.clientModel.getClientId();t&&e.push({key:c.default.SAND_HEADERS.CLIENT_ID,value:t});var n=this.clientModel.getStreamingSessionId();n&&e.push({key:c.default.SAND_HEADERS.STREAMING_SESSION_ID,value:n});var r=this._messageData&&this._messageData.Misc?1:0;e.push({key:c.default.SAND_HEADERS.SESSION_START,value:"".concat(r)})}},t.prototype.remove=function(){e.prototype.remove.call(this),this._req.abort(),this._req.onloadend=null,this._req.onerror=null,this._req.onreadystatechange=null},t.SchemeIdUri="urn:mpeg:dash:sand:channel:http:2016",t.SchemeIdUri2="urn:mpeg:dash:sand:channel:2016",t}(o.XHRChannel)},"./node_modules/sandlib-core/lib/channels/XHRChannel.ts":
|
|
33
|
-
/*!**************************************************************!*\
|
|
34
|
-
!*** ./node_modules/sandlib-core/lib/channels/XHRChannel.ts ***!
|
|
35
|
-
\**************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{XHRChannel:function(){return u}});var r,o=n(/*! ./Channel */"./node_modules/sandlib-core/lib/channels/Channel.ts"),i=n(/*! ../utils/SANDMetricsExtractor */"./node_modules/sandlib-core/lib/utils/SANDMetricsExtractor.ts"),s=n(/*! ../core/events */"./node_modules/sandlib-core/lib/core/events.ts"),a=n(/*! ../utils/utils */"./node_modules/sandlib-core/lib/utils/utils.ts"),l=n(/*! ../index */"./node_modules/sandlib-core/lib/index.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t,n,r,o,i,s,a,l,c,u){var d=e.call(this,t,n,r,o,i,s,a,l,c,u)||this;return d._maxMetricsCache=u&&u.defaults&&!isNaN(u.defaults.maxMetricsCache)?u.defaults.maxMetricsCache:1e3,d.initXHR(),d}return c(t,e),t.prototype.initXHR=function(){var e=new XMLHttpRequest;e.onreadystatechange=this.onreadystatechange.bind(this,e),e.onloadend=this.oncomplete.bind(this,e,null,null),e.onerror=this.oncomplete.bind(this,e,null,null),this._req=e},t.prototype.onreadystatechange=function(e){try{if(4===e.readyState){var t=e.getAllResponseHeaders();null!==t&&this.messageBus.emit(s.default.RESPONSE_HEADER,{headers:(0,a.responseHeaderToKeyValue)(t)})}}catch(e){}},t.prototype.onsent=function(){try{this._sendCallback&&this._sendCallback(this.getId(),{})}catch(e){}},t.prototype.oncomplete=function(e){try{this.messageBus.emit(s.default.RESPONSE_HEADER,{headers:[{key:"key",value:"val"}]}),this.syncDateWithResponseHeaders(e),e.status>=200&&e.status<300?(this.metrics=[],this.runReportingLoop()):401===e.status?l.SANDLibraryCore.globalTimer.setTimeout(this.requestLimitedReportingSession.bind(this),this._errorTimeout/2):this.runReportingLoop(this._errorTimeout)}catch(e){}},t.prototype.formatMetrics=function(e){return i.SANDMetricsExtractor.extract(e,this.clientModel.getClientId(),this.clientModel.getStreamingSessionId(),this.clientModel.getOptionalMetricParamsObject(),!1)},t.prototype.formatXhr=function(e){throw new Error("XHRChannel::formatXhr must be overwritten")},t.prototype.send=function(){try{if(0===Object.keys(this._messageData).length)return;var e=this.formatMetrics(this._messageData);this.metrics=(this.metrics||[]).concat(e).slice(-1*this._maxMetricsCache),this._messageData={};try{this.stopReportingLoop();var t=this.formatXhr(this.metrics);this._req.open(t.method,this._endpoint,!0);for(var n=0;n<t.headers.length;n++){var r=t.headers[n];this._req.setRequestHeader(r.name,r.value)}this._req.send(t.body),this.onsent()}catch(e){this.oncomplete(this._req)}}catch(e){this._messageData={}}},t.prototype.remove=function(){this._req.onloadend=null,this._req.onerror=null,this._req.onreadystatechange=null,this._req.abort(),e.prototype.remove.call(this)},t}(o.Channel)},"./node_modules/sandlib-core/lib/controllers/ChannelController.ts":
|
|
36
|
-
/*!************************************************************************!*\
|
|
37
|
-
!*** ./node_modules/sandlib-core/lib/controllers/ChannelController.ts ***!
|
|
38
|
-
\************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{ChannelController:function(){return o}});var r=n(/*! ../channels/Channel */"./node_modules/sandlib-core/lib/channels/Channel.ts"),o=function(){function e(){this._channels=[]}return e.prototype.getChannels=function(){return this._channels},e.prototype.getChannelByIdAndEndpoint=function(e,t){for(var n=0;n<this._channels.length;n++){var r=this._channels[n];if(e&&r.getId()===e||r.getEndpoint()===t)return r}return null},e.prototype.getReportingChannels=function(){for(var e=[],t=0;t<this._channels.length;t++){var n=this._channels[t];n.getReportingChannel()&&e.push(n)}return e},e.prototype.updateChannels=function(e,t,n,o,i){o=o||[];for(var s=0;s<o.length;s++){var a=o[s];if(!a.hasOwnProperty("schemeIdUri"))throw new Error("schemeIdUri is expected on a channel element");var l=a.getId()||null,c=a.getEndpoint()||null,u=this.getChannelByIdAndEndpoint(l,c);u&&u.setId(l)}n=n||[];for(var d=0;d<n.length;d++){var p=n[d];if(!p.hasOwnProperty("schemeIdUri"))throw new Error("schemeIdUri is expected on a reporting element for sand reporting");if("urn:mpeg:dash:sand:channel:2016"===p.schemeIdUri){var f=this.getChannelByIdAndEndpoint(p.value,null);if(!f)throw new Error("No matching Channel found for reporting element");f.setReportingChannel(!0),f.addReportMetricTypes(p.metrics)}else{if(!p.hasOwnProperty("endpoints"))throw new Error("urn:mpeg:dash:sand:channel:http:2016 reporting element expects a valid url as value");c=p.endpoints[0],this.getChannelByIdAndEndpoint(null,c)||this._channels.push(r.Channel.createChannel(e,t,p,i))}}return this._channels},e.prototype.removeAllChannels=function(){for(var e in this._channels)this._channels[e].remove(),delete this._channels[e];this._channels=[]},e.prototype.setMessageIntervalForChannel=function(e,t,n){this.getChannelByIdAndEndpoint(t,n).setMessageInterval(e)},e}()},"./node_modules/sandlib-core/lib/controllers/PERController.ts":
|
|
39
|
-
/*!********************************************************************!*\
|
|
40
|
-
!*** ./node_modules/sandlib-core/lib/controllers/PERController.ts ***!
|
|
41
|
-
\********************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{PERController:function(){return i}});var r=n(/*! ../core/events */"./node_modules/sandlib-core/lib/core/events.ts"),o=n(/*! ../externals/xml2json */"./node_modules/sandlib-core/lib/externals/xml2json.js"),i=function(){function e(e){this.messageBus=e;var t=this;this.messageBus.on(r.default.RESPONSE_HEADER,(function(e){t.parseResponseHeader(e)})),this._perCallback=null}return e.prototype.parseResponseHeader=function(e){for(var t=0;t<e.headers.length;t++){var n=e.headers[t];if("mpeg-dash-sand"===n.key){var r=n.value;this.getPerMessage(r)}}},e.prototype.getPerMessage=function(e){var t=this,n=new XMLHttpRequest;n.onload=function(){var e=n.responseText;t.parsePer(e)},n.responseType="text",n.open("GET",e),n.send()},e.prototype.registerPerCallback=function(e){if("function"!=typeof e)throw new Error("callback should be a function");this._perCallback=e},e.prototype.parsePer=function(e){var t;new((0,o.default)(t)({escapeMode:!1,attributePrefix:"_",arrayAccessForm:"property",emptyNodeForm:"object",stripWhitespaces:!1,enableToStringFunc:!1,ignoreRoot:!0,matchers:[]}));var n=t.xml_str2json(e);try{this._perCallback(n)}catch(e){}},e}()},"./node_modules/sandlib-core/lib/controllers/ReportingController.ts":
|
|
42
|
-
/*!**************************************************************************!*\
|
|
43
|
-
!*** ./node_modules/sandlib-core/lib/controllers/ReportingController.ts ***!
|
|
44
|
-
\**************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{ReportingController:function(){return r}});var r=function(){function e(e){this.channelController=e}return e.prototype.addNewMetric=function(e,t){for(var n=this.channelController.getReportingChannels(),r=0;r<n.length;r++)n[r].addMessageDataAsJson(e,t)},e}()},"./node_modules/sandlib-core/lib/controllers/SharedResourceAllocationController.ts":
|
|
45
|
-
/*!*****************************************************************************************!*\
|
|
46
|
-
!*** ./node_modules/sandlib-core/lib/controllers/SharedResourceAllocationController.ts ***!
|
|
47
|
-
\*****************************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{SharedResourceAllocationController:function(){return r}});var r=function(){function e(e){this.channelController=e,this._ALLOCATION_STRATEGY_BASE="urn:mpeg:dash:sand:allocation:basic:2016",this._allocationStrategy=this._ALLOCATION_STRATEGY_BASE}return e.prototype.addResourceAllocationMessageData=function(e,t,n,r,o,i){if(!Array.isArray(e))throw new Error("operationsPoints needs to be an array");var s=this.channelController.getChannelByIdAndEndpoint(o,i),a={weight:n,allocationStrategy:r||this._ALLOCATION_STRATEGY_BASE,operationPoints:e};t&&(a.groupID=t),s.addMessageDataAsJson("SharedResourceAllocation",a)},e}()},"./node_modules/sandlib-core/lib/core/Constants.ts":
|
|
48
|
-
/*!*********************************************************!*\
|
|
49
|
-
!*** ./node_modules/sandlib-core/lib/core/Constants.ts ***!
|
|
50
|
-
\*********************************************************/function(e,t,n){"use strict";n.r(t),t.default={ENDPOINT_SCHEME:{SB:"sb",XHR:"xhr"},PAYLOAD_SCHEME:{MESSAGES:"messages",METRICS:"metrics"},PAYLOAD_TYPES:{JSON:"text/json",XML:"text/xml"},SAND_HEADERS:{CLIENT_ID:"X-SAND-ClientID",STREAMING_SESSION_ID:"X-SAND-StreamingSessionID",SESSION_START:"X-SAND-IsSessionStart"},SB_SEND_STATUS:{SUCCESS:"success",ERROR:"error"},SYNCEDDATE:{THRESHOLD:1e4}}},"./node_modules/sandlib-core/lib/core/events.ts":
|
|
51
|
-
/*!******************************************************!*\
|
|
52
|
-
!*** ./node_modules/sandlib-core/lib/core/events.ts ***!
|
|
53
|
-
\******************************************************/function(e,t,n){"use strict";n.r(t),t.default={FLUSH:"flush",RESPONSE_HEADER:"newResponseHeader"}},"./node_modules/sandlib-core/lib/index.ts":
|
|
54
|
-
/*!************************************************!*\
|
|
55
|
-
!*** ./node_modules/sandlib-core/lib/index.ts ***!
|
|
56
|
-
\************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{BrowserWindow:function(){return _.BrowserWindow},BufferLevel:function(){return w.BufferLevel},Channel:function(){return s.Channel},ClientModel:function(){return i.ClientModel},ClockDrift:function(){return g.ClockDrift},DRM:function(){return v.DRM},EntityBase:function(){return u.EntityBase},ErrorMetric:function(){return S.ErrorMetric},EventEmitter:function(){return c.EventEmitter},HTTPChannel:function(){return y.HTTPChannel},HttpTransaction:function(){return O.HttpTransaction},LiveEdgeDelay:function(){return T.LiveEdgeDelay},Memory:function(){return x.Memory},Metric:function(){return h.Metric},Misc:function(){return E.Misc},Network:function(){return P.Network},OperationPoint:function(){return d.OperationPoint},PSNR:function(){return M.PSNR},Playback:function(){return C.Playback},RenderingPeriod:function(){return A.RenderingPeriod},RepSwitch:function(){return D.RepSwitch},SANDLibraryCore:function(){return H},SANDMetricsExtractor:function(){return b.SANDMetricsExtractor},Screen:function(){return k.Screen},SharedResourceAllocation:function(){return I.SharedResourceAllocation},Stalled:function(){return R.Stalled},StartupTime:function(){return j.StartupTime},SyncedDate:function(){return c.SyncedDate},Throughput:function(){return p.Throughput},Trace:function(){return B.Trace},TrajectorySwitch:function(){return f.TrajectorySwitch},VMAF:function(){return N.VMAF},Video:function(){return L.Video},XHRChannel:function(){return m.XHRChannel}});var r=n(/*! ./controllers/ChannelController */"./node_modules/sandlib-core/lib/controllers/ChannelController.ts"),o=n(/*! ./controllers/ReportingController */"./node_modules/sandlib-core/lib/controllers/ReportingController.ts"),i=n(/*! ./models/ClientModel */"./node_modules/sandlib-core/lib/models/ClientModel.ts"),s=n(/*! ./channels/Channel */"./node_modules/sandlib-core/lib/channels/Channel.ts"),a=n(/*! ./controllers/PERController */"./node_modules/sandlib-core/lib/controllers/PERController.ts"),l=n(/*! ./controllers/SharedResourceAllocationController */"./node_modules/sandlib-core/lib/controllers/SharedResourceAllocationController.ts"),c=n(/*! ./utils/utils */"./node_modules/sandlib-core/lib/utils/utils.ts"),u=n(/*! ./models/metrics/EntityBase */"./node_modules/sandlib-core/lib/models/metrics/EntityBase.ts"),d=n(/*! ./models/metrics/OperationPoint */"./node_modules/sandlib-core/lib/models/metrics/OperationPoint.ts"),p=n(/*! ./models/metrics/Throughput */"./node_modules/sandlib-core/lib/models/metrics/Throughput.ts"),f=n(/*! ./models/metrics/TrajectorySwitch */"./node_modules/sandlib-core/lib/models/metrics/TrajectorySwitch.ts"),h=n(/*! ./models/Metric */"./node_modules/sandlib-core/lib/models/Metric.ts"),m=n(/*! ./channels/XHRChannel */"./node_modules/sandlib-core/lib/channels/XHRChannel.ts"),y=n(/*! ./channels/HTTPChannel */"./node_modules/sandlib-core/lib/channels/HTTPChannel.ts"),b=n(/*! ./utils/SANDMetricsExtractor */"./node_modules/sandlib-core/lib/utils/SANDMetricsExtractor.ts"),_=n(/*! ./models/metrics/BrowserWindow */"./node_modules/sandlib-core/lib/models/metrics/BrowserWindow.ts"),w=n(/*! ./models/metrics/BufferLevel */"./node_modules/sandlib-core/lib/models/metrics/BufferLevel.ts"),g=n(/*! ./models/metrics/ClockDrift */"./node_modules/sandlib-core/lib/models/metrics/ClockDrift.ts"),v=n(/*! ./models/metrics/DRM */"./node_modules/sandlib-core/lib/models/metrics/DRM.ts"),S=n(/*! ./models/metrics/ErrorMetric */"./node_modules/sandlib-core/lib/models/metrics/ErrorMetric.ts"),O=n(/*! ./models/metrics/HttpTransaction */"./node_modules/sandlib-core/lib/models/metrics/HttpTransaction.ts"),T=n(/*! ./models/metrics/LiveEdgeDelay */"./node_modules/sandlib-core/lib/models/metrics/LiveEdgeDelay.ts"),x=n(/*! ./models/metrics/Memory */"./node_modules/sandlib-core/lib/models/metrics/Memory.ts"),E=n(/*! ./models/metrics/Misc */"./node_modules/sandlib-core/lib/models/metrics/Misc.ts"),P=n(/*! ./models/metrics/Network */"./node_modules/sandlib-core/lib/models/metrics/Network.ts"),M=n(/*! ./models/metrics/PSNR */"./node_modules/sandlib-core/lib/models/metrics/PSNR.ts"),C=n(/*! ./models/metrics/Playback */"./node_modules/sandlib-core/lib/models/metrics/Playback.ts"),A=n(/*! ./models/metrics/RenderingPeriod */"./node_modules/sandlib-core/lib/models/metrics/RenderingPeriod.ts"),D=n(/*! ./models/metrics/RepSwitch */"./node_modules/sandlib-core/lib/models/metrics/RepSwitch.ts"),k=n(/*! ./models/metrics/Screen */"./node_modules/sandlib-core/lib/models/metrics/Screen.ts"),I=n(/*! ./models/metrics/SharedResourceAllocation */"./node_modules/sandlib-core/lib/models/metrics/SharedResourceAllocation.ts"),R=n(/*! ./models/metrics/Stalled */"./node_modules/sandlib-core/lib/models/metrics/Stalled.ts"),j=n(/*! ./models/metrics/StartupTime */"./node_modules/sandlib-core/lib/models/metrics/StartupTime.ts"),B=n(/*! ./models/metrics/Trace */"./node_modules/sandlib-core/lib/models/metrics/Trace.ts"),N=n(/*! ./models/metrics/VMAF */"./node_modules/sandlib-core/lib/models/metrics/VMAF.ts"),L=n(/*! ./models/metrics/Video */"./node_modules/sandlib-core/lib/models/metrics/Video.ts"),H=function(){function e(){this.globalTimer={setInterval:window.setInterval.bind(window),setTimeout:window.setTimeout.bind(window),clearInterval:window.clearInterval.bind(window),clearTimeout:window.clearTimeout.bind(window)},this.channelController=new r.ChannelController,this.reportingController=new o.ReportingController(this.channelController),this.clientModel=new i.ClientModel(this.reportingController),this.messageBus=new c.EventEmitter,this.perController=new a.PERController(this.messageBus),this.sharedResourceAllocationController=new l.SharedResourceAllocationController(this.channelController)}return e.syncClock=function(e){c.SyncedDate.alignWithExternalTime(e)},e.setDefaultThreshold=function(e){c.SyncedDate.setDefaultThreshold(e)},e.now=function(e){return c.SyncedDate.now(e)},e.prototype.setGlobalTimer=function(t){e.globalTimer=t},e.prototype.updateSANDChannelConfiguration=function(e,t,n){if(e&&Array.isArray(e)){var r=e.filter((function(e){return e.hasOwnProperty("endpoints")&&Array.isArray(e.endpoints)&&e.endpoints.length>0}));n&&n.context&&n.context.group&&this.clientModel.setContextGroup(n.context.group),n&&n.context&&n.context.id&&this.clientModel.setContextID(n.context.id),n&&n.context&&n.context.key&&this.clientModel.setKey(n.context.key);for(var o=0;o<r.length;o++)r[o].hasOwnProperty("metrics")||(r[o].metrics=u.EntityBase.getMetricTypes());return this.channelController.updateChannels(this.messageBus,this.clientModel,r,t,n)}},e.prototype.removeAllChannels=function(){return this.channelController.removeAllChannels()},e.prototype.setMessageInterval=function(e,t,n){this.channelController.setMessageIntervalForChannel(e,t,n)},e.prototype.setSenderId=function(e){void 0===e&&(e=""),this.clientModel.setSenderId(e),this.clientModel.setInitTS()},e.prototype.getSenderId=function(){try{return this.clientModel.getSenderId()}catch(e){throw e}},e.prototype.getClientId=function(){try{return this.clientModel.getClientId()}catch(e){throw e}},e.prototype.getStreamingSessionId=function(){try{return this.clientModel.getStreamingSessionId()}catch(e){throw e}},e.prototype.getInitTS=function(){try{return this.clientModel.getInitTS()}catch(e){throw e}},e.prototype.getSyncedT=function(e){return void 0===e&&(e=null),c.SyncedDate.now(e)},e.prototype.setOptionalParam=function(e,t){this.clientModel.setOptionalParamsObject(e,t)},e.prototype.getOptionalParams=function(){return this.clientModel.getOptionalParamsObject()},e.prototype.setOptionalMetricParam=function(e,t){this.clientModel.setOptionalMetricParamsObject(e,t)},e.prototype.getOptionalMetricParams=function(){return this.clientModel.getOptionalMetricParamsObject()},e.prototype.setdashPlayer=function(e){this.clientModel.setPlayer(e)},e.prototype.setPlayer=function(e){this.clientModel.setPlayer(e)},e.prototype.setReferrer=function(e){this.clientModel.setReferrer(e)},e.prototype.getReferrer=function(){return this.clientModel.getReferrer()},e.prototype.setManifestType=function(e){this.clientModel.setManifestType(e)},e.prototype.setSANDAdapterVersion=function(e){this.clientModel.setSANDAdapterVersion(e)},e.prototype.addNewMetric=function(e,t){return"PlayList"===e&&(e="Playback"),this.reportingController.addNewMetric(e,t)},e.prototype.addSharedResourceAllocationMessage=function(e,t,n,r,o,i){this.sharedResourceAllocationController.addResourceAllocationMessageData(e,t,n,r,o,i)},e.prototype.getChannelController=function(){return this.channelController},e.prototype.registerPerCallback=function(e){this.perController.registerPerCallback(e)},e.prototype.setDeviceInformation=function(e,t,n,r){this.clientModel.setDeviceInformation(e,t,n,r)},e.prototype.reportMisc=function(e,t,n,r){this.clientModel.reportMisc(e,t,n,r)},e.prototype.reportLiveEdgeDelay=function(e){if(!isNaN(e)){var t={t:c.SyncedDate.now(),delay:e};this.reportingController.addNewMetric("LiveEdgeDelay",t)}},e.prototype.reportGapJumping=function(e){e&&this.clientModel.reportGapJumping(e)},e.prototype.reportMetricAd=function(e,t){e&&this.clientModel.reportMetricAd(e,t)},e.prototype.reportMetricEvent=function(e,t){e&&this.clientModel.reportMetricEvent(e,t)},e.prototype.reportDroppedFrames=function(){this.clientModel.reportDroppedFrames()},e.prototype.reportPSNR=function(e){this.reportingController.addNewMetric("PSNR",e)},e.prototype.reportVMAF=function(e){this.reportingController.addNewMetric("VMAF",e)},e.prototype.reportTrajectorySwitch=function(e){try{var t=this;e.forEach((function(e){t.reportingController.addNewMetric("TrajectorySwitch",e)}))}catch(e){throw e}},e.prototype.reportThroughput=function(e){try{this.reportingController.addNewMetric("Throughput",e)}catch(e){throw e}},e}();H.globalTimer=window,H.setGlobalTimer=function(e){H.globalTimer=e}},"./node_modules/sandlib-core/lib/models/ClientModel.ts":
|
|
57
|
-
/*!*************************************************************!*\
|
|
58
|
-
!*** ./node_modules/sandlib-core/lib/models/ClientModel.ts ***!
|
|
59
|
-
\*************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{ClientModel:function(){return l}});var r=n(/*! ../externals/js.cookie */"./node_modules/sandlib-core/lib/externals/js.cookie.js"),o=n.n(r),i=n(/*! ../utils/utils */"./node_modules/sandlib-core/lib/utils/utils.ts"),s=n(/*! ../index */"./node_modules/sandlib-core/lib/index.ts"),a="clientID",l=function(){function e(e){this.reportingController=e,this._clientId=null,this._sessionId=null,this.key=null,this.token=null,this.contextID=null,this.contextGroup=null,this._isFullScreen=!1,this._isInBackground=!1,this._player=null,this._referrer=null,this._manifestType=null,this._initTS=-1,this._optionalParamsObject={},this._optionalMetricParamsObject={},this.SANDAdapterVersion="",this.SANDLibraryVersion="1.6.6"}return e.genUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},e.prototype.setSenderId=function(e){var t=(e||"").split("--");this.setClientId(t[0]),this.setSteamingSessionId(t[1])},e.prototype.getSenderId=function(){return this._clientId+"--"+this._sessionId},e.prototype.setClientId=function(t){this._clientId=t||o().get(a)||e.genUUID(),o().set(a,this._clientId,{expires:365})},e.prototype.getClientId=function(){return this._clientId||o().get(a)},e.prototype.setSteamingSessionId=function(t){this._sessionId=t||e.genUUID()},e.prototype.getStreamingSessionId=function(){return this._sessionId},e.prototype.setJWT=function(e){this.token=e},e.prototype.getJWT=function(){return this.token},e.prototype.setKey=function(e){this.key=e},e.prototype.getKey=function(){return this.key},e.prototype.setToken=function(e){this.token=e},e.prototype.getToken=function(){return this.token},e.prototype.setContextID=function(e){this.contextID=e},e.prototype.getContextID=function(){return this.contextID},e.prototype.setContextGroup=function(e){this.contextGroup=e},e.prototype.getContextGroup=function(){return this.contextGroup},e.prototype.setPlayer=function(e){this._player=e},e.prototype.getPlayer=function(){return this._player},e.prototype.setReferrer=function(e){this._referrer=e},e.prototype.getReferrer=function(){return this._referrer},e.prototype.setManifestType=function(e){this._manifestType=e},e.prototype.getManifestType=function(){return this._manifestType},e.prototype.setInitTS=function(){this._initTS=i.SyncedDate.now()},e.prototype.getInitTS=function(){return this._initTS},e.prototype.setOptionalParamsObject=function(e,t){this._optionalParamsObject[e]=t},e.prototype.getOptionalParamsObject=function(){return this._optionalParamsObject},e.prototype.setOptionalMetricParamsObject=function(e,t){this._optionalMetricParamsObject[e]=t},e.prototype.getOptionalMetricParamsObject=function(){return this._optionalMetricParamsObject},e.prototype.getSANDLibraryVersion=function(){return this.SANDLibraryVersion},e.prototype.setSANDAdapterVersion=function(e){this.SANDAdapterVersion=e},e.prototype.getSANDAdapterVersion=function(){return this.SANDAdapterVersion},e.prototype.setDeviceInformation=function(e,t,n,r){var o,i=navigator.connection||navigator.mozConnection||navigator.webkitConnection,a=this;function l(){a._isFullScreen=!a._isFullScreen,a.createVideo("fullScreenChange")}this.createScreen(),this.createBrowserWindow(),this.createVideo("common"),this.reportMisc(e,t,n,r),void 0!==i&&(this.createNetworkList(),i.addEventListener("change",(function(){a.createNetworkList()}))),window.addEventListener("orientationchange",(function(){a.createScreen()}),!1),window.addEventListener("resize",(function(){s.SANDLibraryCore.globalTimer.clearTimeout(o),o=s.SANDLibraryCore.globalTimer.setTimeout((function(){a.createBrowserWindow()}),250)}),!1),window.addEventListener("visibilitychange",(function(){a._isInBackground=!a._isInBackground,a.createBrowserWindow()})),document.addEventListener("webkitfullscreenchange",l),document.addEventListener("mozfullscreenchange",l),document.addEventListener("fullscreenchange",l)},e.prototype.reportDroppedFrames=function(){this.createVideo("droppedFrames")},e.prototype.reportGapJumping=function(e){this.createVideo(e.type,e)},e.prototype.reportMetricAd=function(e,t){this.createMetricAd(e,t)},e.prototype.reportMetricEvent=function(e,t){this.createMetricEvent(e,t)},e.prototype.reportMisc=function(e,t,n,r){var o={t:n>0?n:i.SyncedDate.now(),ts:this.getInitTS(),version:this.SANDAdapterVersion,oscpu:null,timezone:"Europe/Berlin",locale:"de",referrer:this.getReferrer(),type:this.getManifestType(),manifest:e,mpdurl:e,player:this.getPlayer(),dashPlayer:this.getPlayer()};if(window&&window.navigator&&void 0!==window.navigator.oscpu&&(o.oscpu=window.navigator.oscpu),"object"==typeof Intl&&Intl.DateTimeFormat&&"function"==typeof Intl.DateTimeFormat&&void 0!==Intl.DateTimeFormat().resolvedOptions()){var s=Intl.DateTimeFormat().resolvedOptions();o.locale=s.locale,o.timezone=s.timeZone}t&&(o.streamtype=t),r&&r.hbbCapabilities&&(o.HbbCapabilities=r.hbbCapabilities),r&&r.hbbPodduration&&(o.HbbPodduration=r.hbbPodduration),this.reportingController.addNewMetric("Misc",o)},e.prototype.createNetworkList=function(){var e=navigator.connection||navigator.mozConnection||navigator.webkitConnection||{},t=null,n=null,r=-1,o=-1;void 0!==e.type&&(t=e.type),void 0!==e.effectiveType&&(n=e.effectiveType),void 0!==e.downlink&&(r=e.downlink),void 0!==e.rtt&&(o=e.rtt);var s={t:i.SyncedDate.now(),ts:this.getInitTS(),downlink:r,effectivetype:n,rtt:o,connectiontype:t};this.reportingController.addNewMetric("Network",s)},e.prototype.createScreen=function(){var e=null;void 0!==window.screen.orientation&&(e=window.screen.orientation.type);var t={t:i.SyncedDate.now(),ts:this.getInitTS(),height:window.screen.availHeight,width:window.screen.availWidth,pixelratio:window.devicePixelRatio,orientation:e};this.reportingController.addNewMetric("Screen",t)},e.prototype.createBrowserWindow=function(){var e={t:i.SyncedDate.now(),ts:this.getInitTS(),innerheight:window.innerHeight,innerwidth:window.innerWidth,clientheight:document.documentElement.clientHeight,clientwidth:document.documentElement.clientWidth,background:this._isInBackground};this.reportingController.addNewMetric("BrowserWindow",e)},e.prototype.createVideo=function(e,t){var n=document.getElementsByTagName("video")[0],r=-1;try{if("webkitDroppedFrameCount"in window.HTMLVideoElement.prototype)try{r=n.webkitDroppedFrameCount}catch(e){}else if(n&&"function"==typeof n.getVideoPlaybackQuality)try{r=n.getVideoPlaybackQuality().droppedVideoFrames}catch(e){}}catch(e){}var o={t:i.SyncedDate.now(),ts:this.getInitTS(),elementheigt:n?n.clientHeight:-1,elementwidth:n?n.clientWidth:-1,videoheight:n?n.videoHeight:-1,videowidth:n?n.videoWidth:-1,droppedframes:r,fullscreen:this._isFullScreen};e&&e.length>0&&(o.eventType=e),t&&t.seekTime&&(o.seekTime=t.seekTime),t&&t.duration&&(o.duration=t.duration),this.reportingController.addNewMetric("Video",o)},e.prototype.createMetricAd=function(e,t){var n={t:t&&new Date(t).getTime()>0?new Date(t).getTime():i.SyncedDate.now(),ts:this.getInitTS(),eventType:e};this.reportingController.addNewMetric("Ad",n)},e.prototype.createMetricEvent=function(e,t){var n={t:t&&new Date(t).getTime()>0?new Date(t).getTime():i.SyncedDate.now(),ts:this.getInitTS(),eventType:e};this.reportingController.addNewMetric("Event",n)},e}()},"./node_modules/sandlib-core/lib/models/Metric.ts":
|
|
60
|
-
/*!********************************************************!*\
|
|
61
|
-
!*** ./node_modules/sandlib-core/lib/models/Metric.ts ***!
|
|
62
|
-
\********************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{Metric:function(){return o}});var r=n(/*! ../utils/utils */"./node_modules/sandlib-core/lib/utils/utils.ts"),o=function e(t,n,o,i,s,a){if((0,r.assign)(a?this:this.data={},i),this.clientID=t,this.streamingSessionID=n,this.metricType=o,s)for(var l=0;l<e._optionalMetricParams.length;l++){var c=e._optionalMetricParams[l];s.hasOwnProperty(c)&&s[c]&&(this[c]=s[c])}};o._optionalMetricParams=["customerID","browser","browserversion","ip","os","platform","userAgent","deviceType"],o.allowOptionalMetricParams=function(e){o._optionalMetricParams=o._optionalMetricParams.concat(e)}},"./node_modules/sandlib-core/lib/models/SANDMessage.ts":
|
|
63
|
-
/*!*************************************************************!*\
|
|
64
|
-
!*** ./node_modules/sandlib-core/lib/models/SANDMessage.ts ***!
|
|
65
|
-
\*************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{SANDMessage:function(){return o}});var r=n(/*! ../utils/utils */"./node_modules/sandlib-core/lib/utils/utils.ts"),o=function(e){this.senderID=e,this.generationTime=new Date(r.SyncedDate.now()).toISOString()}},"./node_modules/sandlib-core/lib/models/metrics/BrowserWindow.ts":
|
|
66
|
-
/*!***********************************************************************!*\
|
|
67
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/BrowserWindow.ts ***!
|
|
68
|
-
\***********************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{BrowserWindow:function(){return s}});var r,o=n(/*! ./EntityBase */"./node_modules/sandlib-core/lib/models/metrics/EntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.innerheight=t.innerheight,o.innerwidth=t.innerwidth,o.clientheight=t.clientheight,o.clientwidth=t.clientwidth,o.background=t.background,o}return i(t,e),t}(o.EntityBase)},"./node_modules/sandlib-core/lib/models/metrics/BufferLevel.ts":
|
|
69
|
-
/*!*********************************************************************!*\
|
|
70
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/BufferLevel.ts ***!
|
|
71
|
-
\*********************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{BufferLevel:function(){return a}});var r,o=n(/*! ./Stalled */"./node_modules/sandlib-core/lib/models/metrics/Stalled.ts"),i=n(/*! ./EntityBase */"./node_modules/sandlib-core/lib/models/metrics/EntityBase.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;if(i.level=t.level,i.bufferType=t.hasOwnProperty("bufferType")&&t.bufferType&&["audio","video","textTrack"].indexOf(t.bufferType)>-1?t.bufferType:"video",t.hasOwnProperty("stalled")&&t.stalled.length>0){var s=[];for(var a in t.stalled){var l=new o.Stalled(t.stalled[a]);s.push(l)}s.length>0&&(i.Stalled=s)}return i}return s(t,e),t}(i.EntityBase)},"./node_modules/sandlib-core/lib/models/metrics/ClockDrift.ts":
|
|
72
|
-
/*!********************************************************************!*\
|
|
73
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/ClockDrift.ts ***!
|
|
74
|
-
\********************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{ClockDrift:function(){return s}});var r,o=n(/*! ./EntityBase */"./node_modules/sandlib-core/lib/models/metrics/EntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.time=t.time,o.offset=t.offset,o.error=t.error,o}return i(t,e),t}(o.EntityBase)},"./node_modules/sandlib-core/lib/models/metrics/DRM.ts":
|
|
75
|
-
/*!*************************************************************!*\
|
|
76
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/DRM.ts ***!
|
|
77
|
-
\*************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{DRM:function(){return s}});var r,o=n(/*! ./EntityBase */"./node_modules/sandlib-core/lib/models/metrics/EntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return t.hasOwnProperty("keyID")&&(o.keyID=t.keyID),t.hasOwnProperty("needKey")&&(o.needKey=t.needKey),t.hasOwnProperty("keySystemSelected")&&(o.keySystemSelected=t.keySystemSelected),t.hasOwnProperty("keySystem")&&(o.keySystem=t.keySystem),t.hasOwnProperty("licenseURL")&&(o.licenseURL=t.licenseURL),t.hasOwnProperty("licenseHeaders")&&(o.licenseHeaders=t.licenseHeaders),t.hasOwnProperty("licenseMessage")&&(o.licenseMessage=t.licenseMessage),t.hasOwnProperty("licenseRequestComplete")&&(o.licenseRequestComplete=t.licenseRequestComplete),t.hasOwnProperty("keyAdded")&&(o.keyAdded=t.keyAdded),t.hasOwnProperty("keyError")&&(o.keyError=t.keyError),t.hasOwnProperty("message")&&(o.message=t.message),o}return i(t,e),t}(o.EntityBase)},"./node_modules/sandlib-core/lib/models/metrics/EntityBase.ts":
|
|
78
|
-
/*!********************************************************************!*\
|
|
79
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/EntityBase.ts ***!
|
|
80
|
-
\********************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{EntityBase:function(){return o}});var r=n(/*! ../../utils/utils */"./node_modules/sandlib-core/lib/utils/utils.ts"),o=function e(t,n,o,i){if(void 0===i&&(i=null),this.t=t.hasOwnProperty("t")&&t.t>-1?t.t:r.SyncedDate.now(),this.ts=n,o)for(var s=i||e._optionalParams,a=0;a<s.length;a++){var l=s[a];o.hasOwnProperty(l)&&o[l]&&(this[l]=o[l])}};o._optionalParams=["manifest","cdn","fragmentLoadIndicator"],o.allowOptionalParams=function(e){o._optionalParams=o._optionalParams.concat(e)},o._metricTypeMap={},o.registerMetricType=function(e,t,n){o._metricTypeMap[e]={metricContainerName:t,entityClass:n}},o.getMetricTypeMap=function(){return o._metricTypeMap},o.getMetricTypes=function(){return Object.keys(o._metricTypeMap)},o.create=function(e,t,n,r){return o._metricTypeMap[e]?new o._metricTypeMap[e].entityClass(t,n,r):null}},"./node_modules/sandlib-core/lib/models/metrics/ErrorMetric.ts":
|
|
81
|
-
/*!*********************************************************************!*\
|
|
82
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/ErrorMetric.ts ***!
|
|
83
|
-
\*********************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{ErrorMetric:function(){return s}});var r,o=n(/*! ./EntityBase */"./node_modules/sandlib-core/lib/models/metrics/EntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.message=t.message,o.fatal=t.fatal,o.type="object"==typeof t.type?JSON.stringify(t.type):t.type,o.url=t.url,o.code=t.code,t.name&&(o.name=t.name),o}return i(t,e),t}(o.EntityBase)},"./node_modules/sandlib-core/lib/models/metrics/HttpTransaction.ts":
|
|
84
|
-
/*!*************************************************************************!*\
|
|
85
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/HttpTransaction.ts ***!
|
|
86
|
-
\*************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{HttpTransaction:function(){return l}});var r,o=n(/*! ./Trace */"./node_modules/sandlib-core/lib/models/metrics/Trace.ts"),i=n(/*! ./EntityBase */"./node_modules/sandlib-core/lib/models/metrics/EntityBase.ts"),s=n(/*! ../../utils/utils */"./node_modules/sandlib-core/lib/utils/utils.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;if(i.tcpid=-1,i.type="",i.range="-1",i.trequest=t.hasOwnProperty("trequest")&&t.trequest?new Date(t.trequest).getTime():s.SyncedDate.now(),i.tresponse=t.hasOwnProperty("tresponse")&&t.tresponse?new Date(t.tresponse).getTime():s.SyncedDate.now(),i.responsecode=t.responsecode,i.interval=t.hasOwnProperty("interval")?t.interval:-1,t.hasOwnProperty("type")&&"InitializationSegment"===t.type&&(i.type="Initialization Segment"),t.hasOwnProperty("type")&&"MediaSegment"===t.type&&(i.type="Media Segment"),t.hasOwnProperty("url")&&(i.url=t.url),t.hasOwnProperty("actualurl")&&(i.actualurl=t.actualurl),t.hasOwnProperty("requestID")&&(i.requestID=t.requestID),t.hasOwnProperty("trace")&&t.trace.length>0){var a=[];for(var l in t.trace){var c=new o.Trace(t.trace[l]);a.push(c)}a.length>0&&(i.Trace=a)}return i}return a(t,e),t}(i.EntityBase)},"./node_modules/sandlib-core/lib/models/metrics/LiveEdgeDelay.ts":
|
|
87
|
-
/*!***********************************************************************!*\
|
|
88
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/LiveEdgeDelay.ts ***!
|
|
89
|
-
\***********************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{LiveEdgeDelay:function(){return s}});var r,o=n(/*! ./EntityBase */"./node_modules/sandlib-core/lib/models/metrics/EntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.delay=t.delay,o}return i(t,e),t}(o.EntityBase)},"./node_modules/sandlib-core/lib/models/metrics/Memory.ts":
|
|
90
|
-
/*!****************************************************************!*\
|
|
91
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/Memory.ts ***!
|
|
92
|
-
\****************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{Memory:function(){return s}});var r,o=n(/*! ./EntityBase */"./node_modules/sandlib-core/lib/models/metrics/EntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.used=t.used,o.total=t.total,o}return i(t,e),t}(o.EntityBase)},"./node_modules/sandlib-core/lib/models/metrics/Misc.ts":
|
|
93
|
-
/*!**************************************************************!*\
|
|
94
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/Misc.ts ***!
|
|
95
|
-
\**************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{Misc:function(){return a}});var r,o=n(/*! ./EntityBase */"./node_modules/sandlib-core/lib/models/metrics/EntityBase.ts"),i=n(/*! ../../utils/userAgentHelpers */"./node_modules/sandlib-core/lib/utils/userAgentHelpers.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(n,r,s){var a=e.call(this,n,r,s,o.EntityBase._optionalParams.concat(t._optionalParams))||this;if(a.version=n.version,a.oscpu=n.oscpu,a.timezone=n.timezone,a.locale=n.locale,a.referrer=n.referrer,a.type=n.type,a.manifest=n.manifest,a.mpdurl=n.mpdurl,a.player=n.player,a.userAgent=navigator&&navigator.userAgent?navigator.userAgent:"",n.streamtype&&(a.streamtype=n.streamtype),a.userAgent&&a.userAgent.length>1){var l=i.parseUAString(a.userAgent);a.deviceType=i.isSTB(l.getUA())?"stb":i.isTV(l.getUA())?"tv":l.getDevice()&&l.getDevice().type?l.getDevice().type.toLowerCase():"computer",a.platform=i.getPlatform(l),a.os=i.getOS(l.getOS()),a.browser=l.getBrowser().name,a.browserVersion=l.getBrowser().version}return a}return s(t,e),t}(o.EntityBase);a._optionalParams=["userAgent","mediaID","mcdnType","currentLevel","bandwidthEstimate","CodecCapabilities","PlayerConfiguration"]},"./node_modules/sandlib-core/lib/models/metrics/Network.ts":
|
|
96
|
-
/*!*****************************************************************!*\
|
|
97
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/Network.ts ***!
|
|
98
|
-
\*****************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{Network:function(){return s}});var r,o=n(/*! ./EntityBase */"./node_modules/sandlib-core/lib/models/metrics/EntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.downlink=t.downlink,o.effectivetype=t.effectivetype,o.rtt=t.hasOwnProperty("rtt")&&t.rtt&&"number"==typeof t.rtt?t.rtt:-1,o.connectiontype=t.connectiontype,o}return i(t,e),t}(o.EntityBase)},"./node_modules/sandlib-core/lib/models/metrics/OperationPoint.ts":
|
|
99
|
-
/*!************************************************************************!*\
|
|
100
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/OperationPoint.ts ***!
|
|
101
|
-
\************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{OperationPoint:function(){return r}});var r=function(e){if(!e.hasOwnProperty("bandwidth"))throw new Error("operation points need to contain a bandwidth");this.bandwidth=e.bandwidth,e.hasOwnProperty("quality")&&(this.quality=e.quality),e.hasOwnProperty("minBufferTime")&&(this.minBufferTime=e.minBufferTime)}},"./node_modules/sandlib-core/lib/models/metrics/PSNR.ts":
|
|
102
|
-
/*!**************************************************************!*\
|
|
103
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/PSNR.ts ***!
|
|
104
|
-
\**************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{PSNR:function(){return s}});var r,o=n(/*! ./EntityBase */"./node_modules/sandlib-core/lib/models/metrics/EntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.id=t.id,o.value=t.value,o}return i(t,e),t}(o.EntityBase)},"./node_modules/sandlib-core/lib/models/metrics/Playback.ts":
|
|
105
|
-
/*!******************************************************************!*\
|
|
106
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/Playback.ts ***!
|
|
107
|
-
\******************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{Playback:function(){return l}});var r,o=n(/*! ./RenderingPeriod */"./node_modules/sandlib-core/lib/models/metrics/RenderingPeriod.ts"),i=n(/*! ./EntityBase */"./node_modules/sandlib-core/lib/models/metrics/EntityBase.ts"),s=n(/*! ../../utils/utils */"./node_modules/sandlib-core/lib/utils/utils.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;if(i.start=t.hasOwnProperty("start")&&t.start?new Date(t.start).getTime():s.SyncedDate.now(),t.hasOwnProperty("mstart")&&(i.mstart=t.hasOwnProperty("mstart")&&t.mstart?new Date(t.mstart).getTime():s.SyncedDate.now()),t.hasOwnProperty("starttype")&&(i.starttype=t.starttype),t.hasOwnProperty("trace")&&t.trace.length>0){var a=[];for(var l in t.trace){var c=new o.RenderingPeriod(t.trace[l]);a.push(c)}a.length>0&&(i.RenderingPeriod=a)}return i}return a(t,e),t}(i.EntityBase)},"./node_modules/sandlib-core/lib/models/metrics/RenderingPeriod.ts":
|
|
108
|
-
/*!*************************************************************************!*\
|
|
109
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/RenderingPeriod.ts ***!
|
|
110
|
-
\*************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{RenderingPeriod:function(){return o}});var r=n(/*! ../../utils/utils */"./node_modules/sandlib-core/lib/utils/utils.ts"),o=function(e){this.representationid=e.representationid,this.subreplevel=Number.isInteger(e.subreplevel)?e.subreplevel:-1,this.start=e.hasOwnProperty("start")&&e.start?new Date(e.start).getTime():r.SyncedDate.now(),this.mstart=e.hasOwnProperty("mstart")&&e.mstart?new Date(e.mstart).getTime():r.SyncedDate.now(),this.duration=e.duration,this.playbackspeed=e.playbackspeed,this.stopreason=e.stopreason,this.representationbandwidth=e.representationbandwidth}},"./node_modules/sandlib-core/lib/models/metrics/RepSwitch.ts":
|
|
111
|
-
/*!*******************************************************************!*\
|
|
112
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/RepSwitch.ts ***!
|
|
113
|
-
\*******************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{RepSwitch:function(){return s}});var r,o=n(/*! ./EntityBase */"./node_modules/sandlib-core/lib/models/metrics/EntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.mt=t.mt,o.to=t.to,t.hasOwnProperty("tobandwidth")&&(o.tobandwidth=t.tobandwidth),t.hasOwnProperty("mediatype")&&(o.mediatype=t.mediatype),t.hasOwnProperty("lto")&&(o.lto=t.lto),o}return i(t,e),t}(o.EntityBase)},"./node_modules/sandlib-core/lib/models/metrics/Screen.ts":
|
|
114
|
-
/*!****************************************************************!*\
|
|
115
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/Screen.ts ***!
|
|
116
|
-
\****************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{Screen:function(){return s}});var r,o=n(/*! ./EntityBase */"./node_modules/sandlib-core/lib/models/metrics/EntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.height=t.height,o.width=t.width,o.pixelratio=t.pixelratio,o.orientation=t.orientation,o}return i(t,e),t}(o.EntityBase)},"./node_modules/sandlib-core/lib/models/metrics/SharedResourceAllocation.ts":
|
|
117
|
-
/*!**********************************************************************************!*\
|
|
118
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/SharedResourceAllocation.ts ***!
|
|
119
|
-
\**********************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{SharedResourceAllocation:function(){return o}});var r=n(/*! ./OperationPoint */"./node_modules/sandlib-core/lib/models/metrics/OperationPoint.ts"),o=function(e){if(this.OperationPoint=[],e&&e.hasOwnProperty("operationPoints")&&e.operationPoints&&e.operationPoints.length>0){for(var t=e.operationPoints,n=[],o=0;o<t.length;o++){var i=new r.OperationPoint(t[o]);n.push(i)}this.OperationPoint=n}e.hasOwnProperty("groupID")&&(this.groupID=e.groupID),e.hasOwnProperty("weight")&&(this.weight=e.weight),e.hasOwnProperty("allocationStrategy")&&(this.allocationStrategy=e.allocationStrategy)}},"./node_modules/sandlib-core/lib/models/metrics/Stalled.ts":
|
|
120
|
-
/*!*****************************************************************!*\
|
|
121
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/Stalled.ts ***!
|
|
122
|
-
\*****************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{Stalled:function(){return o}});var r=n(/*! ../../utils/utils */"./node_modules/sandlib-core/lib/utils/utils.ts"),o=function(e){this.t=e.hasOwnProperty("t")&&e.t>-1?e.t:r.SyncedDate.now(),this.streamID=e.streamID,this.mediaType=e.mediaType,this.stalledDuration=e.stalledDuration}},"./node_modules/sandlib-core/lib/models/metrics/StartupTime.ts":
|
|
123
|
-
/*!*********************************************************************!*\
|
|
124
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/StartupTime.ts ***!
|
|
125
|
-
\*********************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{StartupTime:function(){return s}});var r,o=n(/*! ./EntityBase */"./node_modules/sandlib-core/lib/models/metrics/EntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.manifestLoadingInitialized=t.manifestLoadingInitialized,o.manifestLoaded=t.manifestLoaded,o.canPlay=t.canPlay,o}return i(t,e),t}(o.EntityBase)},"./node_modules/sandlib-core/lib/models/metrics/Throughput.ts":
|
|
126
|
-
/*!********************************************************************!*\
|
|
127
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/Throughput.ts ***!
|
|
128
|
-
\********************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{Throughput:function(){return s}});var r,o=n(/*! ./EntityBase */"./node_modules/sandlib-core/lib/models/metrics/EntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(n,r,i){var s=e.call(this,n,r,i,o.EntityBase._optionalParams.concat(t._optionalParams))||this;return s.measuredThroughput=n.measuredThroughput,s.averageThroughput=n.averageThroughput,s}return i(t,e),t}(o.EntityBase);s._optionalParams=["cdn","manifest"]},"./node_modules/sandlib-core/lib/models/metrics/Trace.ts":
|
|
129
|
-
/*!***************************************************************!*\
|
|
130
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/Trace.ts ***!
|
|
131
|
-
\***************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{Trace:function(){return o}});var r=n(/*! ../../utils/utils */"./node_modules/sandlib-core/lib/utils/utils.ts"),o=function(e){this.s=e.hasOwnProperty("s")&&e.s?new Date(e.s).getTime():r.SyncedDate.now(),this.d=e.d,this.b=e.b}},"./node_modules/sandlib-core/lib/models/metrics/TrajectorySwitch.ts":
|
|
132
|
-
/*!**************************************************************************!*\
|
|
133
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/TrajectorySwitch.ts ***!
|
|
134
|
-
\**************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{TrajectorySwitch:function(){return s}});var r,o=n(/*! ./EntityBase */"./node_modules/sandlib-core/lib/models/metrics/EntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(n,r,i){var s=e.call(this,n,r,i,o.EntityBase._optionalParams.concat(t._optionalParams))||this;return s.mt=n.mt,s.bandwidth=n.bandwidth,n.hasOwnProperty("lat")&&n.lat&&(s.lat=n.lat),n.hasOwnProperty("pl")&&n.pl&&(s.pl=n.pl),s}return i(t,e),t}(o.EntityBase);s._optionalParams=["cdn","manifest"]},"./node_modules/sandlib-core/lib/models/metrics/VMAF.ts":
|
|
135
|
-
/*!**************************************************************!*\
|
|
136
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/VMAF.ts ***!
|
|
137
|
-
\**************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{VMAF:function(){return s}});var r,o=n(/*! ./EntityBase */"./node_modules/sandlib-core/lib/models/metrics/EntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.id=t.id,o.value=t.value,o}return i(t,e),t}(o.EntityBase)},"./node_modules/sandlib-core/lib/models/metrics/Video.ts":
|
|
138
|
-
/*!***************************************************************!*\
|
|
139
|
-
!*** ./node_modules/sandlib-core/lib/models/metrics/Video.ts ***!
|
|
140
|
-
\***************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{Video:function(){return s}});var r,o=n(/*! ./EntityBase */"./node_modules/sandlib-core/lib/models/metrics/EntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.elementheigt=t.elementheigt,o.elementwidth=t.elementwidth,o.videoheight=t.videoheight,o.videowidth=t.videowidth,o.droppedframes=t.droppedframes,o.fullscreen=t.fullscreen,t.hasOwnProperty("seekTime")&&(o.seekTime=t.seekTime),t.hasOwnProperty("duration")&&(o.duration=t.duration),t.hasOwnProperty("eventType")&&(o.eventType=t.eventType),o}return i(t,e),t}(o.EntityBase)},"./node_modules/sandlib-core/lib/utils/SANDMessageSerializer.ts":
|
|
141
|
-
/*!**********************************************************************!*\
|
|
142
|
-
!*** ./node_modules/sandlib-core/lib/utils/SANDMessageSerializer.ts ***!
|
|
143
|
-
\**********************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{SANDMessageSerializer:function(){return i}});var r=n(/*! ../models/SANDMessage */"./node_modules/sandlib-core/lib/models/SANDMessage.ts"),o=n(/*! ../models/metrics/EntityBase */"./node_modules/sandlib-core/lib/models/metrics/EntityBase.ts"),i=function(){function e(){}return e.serialize=function(e,t){var n=o.EntityBase.getMetricTypeMap(),i=new r.SANDMessage(t);return Object.keys(e).forEach((function(t){var r;try{var o=e[t];if("SharedResourceAllocation"===t);else{var s=n[t];s&&o&&o.length>0&&(i[s.metricContainerName]=((r={})[t]="Misc"===t||"StartupTime"===t?o[0]:o,r))}}catch(e){console.log(e)}})),i},e}()},"./node_modules/sandlib-core/lib/utils/SANDMetricsExtractor.ts":
|
|
144
|
-
/*!*********************************************************************!*\
|
|
145
|
-
!*** ./node_modules/sandlib-core/lib/utils/SANDMetricsExtractor.ts ***!
|
|
146
|
-
\*********************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{SANDMetricsExtractor:function(){return o}});var r=n(/*! ../models/Metric */"./node_modules/sandlib-core/lib/models/Metric.ts"),o=function(){function e(){}return e.extract=function(e,t,n,o,i){return Object.keys(e).reduce((function(s,a){return s.concat(e[a].reduce((function(e,s){try{e.push(new r.Metric(t,n,a,s,o,i))}catch(e){console.log(e)}return e}),[]))}),[])},e}()},"./node_modules/sandlib-core/lib/utils/userAgentHelpers.ts":
|
|
147
|
-
/*!*****************************************************************!*\
|
|
148
|
-
!*** ./node_modules/sandlib-core/lib/utils/userAgentHelpers.ts ***!
|
|
149
|
-
\*****************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{checkUAString:function(){return h},getOS:function(){return b},getPlatform:function(){return _},isSTB:function(){return m},isTV:function(){return y},parseUAString:function(){return f}});var r=n(/*! ua-parser-js */"./node_modules/ua-parser-js/src/ua-parser.js"),o=["DT_STB","MR201","MR401","MR601","MRG5"],i=["faraday","OTT-G1"],s=["AFTB","AFTS","AFTN","AFTM","AFTT","AFTSSS","AFTSS","AFTMM","AFTA","AFTR","AFTRS","AFTJMST12","AFTEU011","AFTSO001","AFTEU014","AFTEUFF014","AFTLE","AFTKMST12","AFTEAMR311","AFTBAMR311","AFTDCT31","AFTDCT31","AFTWI001","AFTTIFF55"],a=["google_atv","POV_TV-HDMI","BRAVIA","Philips"],l=["Apple TV","AppleTV","tvOS"],c=["CrKey"],u=["HbbTV"],d=["WebOS"],p=["Tizen"];function f(e){try{return new r.UAParser(e)}catch(e){return null}}function h(e,t){try{var n=e.toLowerCase();return(t||[]).reduce((function(e,t){return e||n.indexOf(t)>-1}),!1)}catch(e){return!1}}function m(e){try{return h(e,o)}catch(e){return!1}}function y(e){try{return h(e,i.concat(s,a,l,u,d,p,c))}catch(e){return!1}}function b(e){try{var t=[];return e&&e.name&&(t.push(e.name),e.version&&t.push(e.version)),t.length>0?t.join(" "):"unknown"}catch(e){return"unknown"}}function _(e){try{var t="unknown",n=e&&e.getUA().toLowerCase();return e&&(h(n,s)?t="FireTV":h(n,o)?t="Telekom STB":h(n,i)?t="Telekom ATV":h(n,a)?t="Android TV":h(n,u)?t="HbbTV":e.getDevice()&&e.getDevice().type&&("mobile"===e.getDevice().type.toLowerCase()||"tablet"===e.getDevice().type.toLowerCase())&&n.indexOf("dalvik")>-1||n.indexOf("dalvik")>-1&&n.indexOf("linux")>-1&&n.indexOf("android")>-1?t="Android Mobile":e.getBrowser()&&e.getBrowser().name?t="Web Browser":h(n,l)?t="Apple TV":n.indexOf("iphone")>-1||n.indexOf("ipad")>-1?t="Apple iOS":h(n,c)?t="Chromecast":h(n,d)?t="WebOS":h(n,p)?t="Tizen":e.getOS()&&e.getOS().name&&(t="Desktop")),t}catch(e){return"Unknown"}}},"./node_modules/sandlib-core/lib/utils/utils.ts":
|
|
150
|
-
/*!******************************************************!*\
|
|
151
|
-
!*** ./node_modules/sandlib-core/lib/utils/utils.ts ***!
|
|
152
|
-
\******************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{EventEmitter:function(){return l},SyncedDate:function(){return r},assign:function(){return a},renameKeysWithPrefix:function(){return s},responseHeaderToKeyValue:function(){return o},startsWithUpperCase:function(){return i}});var r=function(){function e(){}return e.alignWithExternalTime=function(t){void 0===t&&(t=null),t&&(e.clientTimeOffset=Date.now()-new Date(t).getTime())},e.setDefaultThreshold=function(t){void 0===t&&(t=-1),t&&(e.defaultThreshold=t)},e.now=function(t){return void 0===t&&(t=this.defaultThreshold),t>-1&&Math.abs(t)>Math.abs(e.clientTimeOffset)?Date.now():(t>-1&&(Math.abs(t),Math.abs(e.clientTimeOffset)),Date.now()-(e.clientTimeOffset||0))},e}();function o(e){var t=e.split("\n");t=t.splice(0,t.length-1);for(var n=[],r=0;r<t.length;r++){var o=t[r].split(": ");n.push({key:o[0],value:o[1]})}return n}function i(e){try{return e.charAt(0)===e.charAt(0).toUpperCase()}catch(e){return!1}}function s(e,t){var n=t.hasOwnProperty("exceptionList")&&t.exceptionList.length>0?t.exceptionList:[];try{var r={};return Object.keys(e).map((function(o){return i(o)&&n.indexOf(o)<0&&Array.isArray(e[o])?void(r[o]=e[o].map((function(e){return s(e,t)}))):"[object Object]"===Object.prototype.toString.call(e[o])?void(r[o]=e[o]):void(r[t.prefix+o]=e[o])})),r}catch(e){return{}}}function a(e,t){if("object"==typeof t)for(var n=Object.keys(t),r=0;r<n.length;r++)t.propertyIsEnumerable(n[r])&&t.hasOwnProperty(n[r])&&(e[n[r]]=t[n[r]]);return e}r.clientTimeOffset=void 0,r.defaultThreshold=-1;var l=function(){function e(){this.listeners={}}return e.prototype.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.emit=function(e,t){if(this.listeners[e]&&this.listeners[e].length)for(var n=0;n<this.listeners[e].length;n++)(0,this.listeners[e][n])(t)},e}()},"./node_modules/sandlib-ext-channel-google-pubsub-xhr/lib/channels/GooglePubSubXHRChannel.ts":
|
|
153
|
-
/*!***************************************************************************************************!*\
|
|
154
|
-
!*** ./node_modules/sandlib-ext-channel-google-pubsub-xhr/lib/channels/GooglePubSubXHRChannel.ts ***!
|
|
155
|
-
\***************************************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{GooglePubSubXHRChannel:function(){return a}});var r,o=n(/*! sandlib-core */"./node_modules/sandlib-core/lib/index.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=3e4,a=function(e){function t(t,n,r,o,i,a,l,c,u,d){var p,f;p=e.call(this,t,n,r,o,i,a,l,c,u,d)||this;var h=d,m=(null==h?void 0:h.defaults)&&(null===(f=null==h?void 0:h.defaults)||void 0===f?void 0:f.beaconInterval);return s=!m||isNaN(m)?3e4:m,p}return i(t,e),t.prototype.formatMetrics=function(e){return o.SANDMetricsExtractor.extract(e,this.clientModel.getClientId(),this.clientModel.getStreamingSessionId(),this.clientModel.getOptionalMetricParamsObject(),!0)},t.prototype.formatXhr=function(e){return{method:"POST",headers:[{name:"Authorization",value:"Bearer "+this.token},{name:"Content-Type",value:"application/json"}],body:JSON.stringify({messages:e.map((function(e){return{data:btoa(unescape(encodeURIComponent(JSON.stringify(e))))}}))})}},t.prototype.runReportingLoop=function(e){void 0===e&&(e=0);var t=this,n=e||(o.SyncedDate.now()>this._initTime?this._adaptiveReportingInterval:this._reportingInterval);this.getReportMetricTypes().indexOf("Beacon")>-1&&(n=s),this._intervalHandler&&o.SANDLibraryCore.globalTimer.clearInterval(this._intervalHandler),this._intervalHandler=null,this.disposed||(this._intervalHandler=o.SANDLibraryCore.globalTimer.setInterval((function(){try{t.processMessages&&t.processMessages()}catch(e){}}),n))},t.SchemeIdUri="urn:mpeg:dash:sand:channel:gcp:xhr:2021",t}(o.XHRChannel)},"./node_modules/sandlib-ext-channel-google-pubsub-xhr/lib/index.ts":
|
|
156
|
-
/*!*************************************************************************!*\
|
|
157
|
-
!*** ./node_modules/sandlib-ext-channel-google-pubsub-xhr/lib/index.ts ***!
|
|
158
|
-
\*************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{GooglePubSubXHRChannel:function(){return r.GooglePubSubXHRChannel}});var r=n(/*! ./channels/GooglePubSubXHRChannel */"./node_modules/sandlib-ext-channel-google-pubsub-xhr/lib/channels/GooglePubSubXHRChannel.ts")},"./node_modules/sandlib-ext-metric-ard/lib/index.ts":
|
|
159
|
-
/*!**********************************************************!*\
|
|
160
|
-
!*** ./node_modules/sandlib-ext-metric-ard/lib/index.ts ***!
|
|
161
|
-
\**********************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{Beacon:function(){return r.Beacon},BrowserWindow:function(){return o.BrowserWindow},BufferLevel:function(){return i.BufferLevel},DRM:function(){return s.DRM},ErrorMetric:function(){return a.ErrorMetric},HttpTransaction:function(){return l.HttpTransaction},ISOTimeEntityBase:function(){return c.ISOTimeEntityBase},LiveEdgeDelay:function(){return u.LiveEdgeDelay},Memory:function(){return d.Memory},Misc:function(){return p.Misc},Network:function(){return f.Network},Playback:function(){return h.Playback},RepSwitch:function(){return m.RepSwitch},Screen:function(){return y.Screen},StartupTime:function(){return b.StartupTime},Video:function(){return _.Video}});var r=n(/*! ./models/metrics/Beacon */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/Beacon.ts"),o=n(/*! ./models/metrics/BrowserWindow */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/BrowserWindow.ts"),i=n(/*! ./models/metrics/BufferLevel */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/BufferLevel.ts"),s=n(/*! ./models/metrics/DRM */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/DRM.ts"),a=n(/*! ./models/metrics/ErrorMetric */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/ErrorMetric.ts"),l=n(/*! ./models/metrics/HttpTransaction */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/HttpTransaction.ts"),c=n(/*! ./models/metrics/ISOTimeEntityBase */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/ISOTimeEntityBase.ts"),u=n(/*! ./models/metrics/LiveEdgeDelay */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/LiveEdgeDelay.ts"),d=n(/*! ./models/metrics/Memory */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/Memory.ts"),p=n(/*! ./models/metrics/Misc */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/Misc.ts"),f=n(/*! ./models/metrics/Network */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/Network.ts"),h=n(/*! ./models/metrics/Playback */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/Playback.ts"),m=n(/*! ./models/metrics/RepSwitch */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/RepSwitch.ts"),y=n(/*! ./models/metrics/Screen */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/Screen.ts"),b=n(/*! ./models/metrics/StartupTime */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/StartupTime.ts"),_=n(/*! ./models/metrics/Video */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/Video.ts")},"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/Beacon.ts":
|
|
162
|
-
/*!**************************************************************************!*\
|
|
163
|
-
!*** ./node_modules/sandlib-ext-metric-ard/lib/models/metrics/Beacon.ts ***!
|
|
164
|
-
\**************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{Beacon:function(){return s}});var r,o=n(/*! ./ISOTimeEntityBase */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/ISOTimeEntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(n,r,i){var s=e.call(this,n,r,i,o.ISOTimeEntityBase._optionalParams.concat(t._optionalParams).filter((function(e){return!/^hbb_/.test(e)})))||this;return s.playerType=n.playerType,s.fragmentLoadIndicator=n.fragmentLoadIndicator||0,s.currentLevel=n.currentLevel||0,s.manifestCount=n.manifestCount||0,s.segmentCount=n.segmentCount||0,s.fatals=n.fatals||0,s.warnings=n.warnings||0,s.it="AUTO",s}return i(t,e),t}(o.ISOTimeEntityBase);s._optionalParams=["cdn","mcdnType"]},"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/BrowserWindow.ts":
|
|
165
|
-
/*!*********************************************************************************!*\
|
|
166
|
-
!*** ./node_modules/sandlib-ext-metric-ard/lib/models/metrics/BrowserWindow.ts ***!
|
|
167
|
-
\*********************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{BrowserWindow:function(){return s}});var r,o=n(/*! ./ISOTimeEntityBase */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/ISOTimeEntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.innerheight=t.innerheight,o.innerwidth=t.innerwidth,o.clientheight=t.clientheight,o.clientwidth=t.clientwidth,o.background=!(!t.hasOwnProperty("background")||!("boolean"==typeof t.background&&t.background||"number"==typeof t.background&&t.background>0)),o}return i(t,e),t}(o.ISOTimeEntityBase)},"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/BufferLevel.ts":
|
|
168
|
-
/*!*******************************************************************************!*\
|
|
169
|
-
!*** ./node_modules/sandlib-ext-metric-ard/lib/models/metrics/BufferLevel.ts ***!
|
|
170
|
-
\*******************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{BufferLevel:function(){return a}});var r,o=n(/*! ./ISOTimeEntityBase */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/ISOTimeEntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=["audio","video","synced","muxed","textTrack"],a=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.level=t.level,o.bufferType=-1!==s.indexOf(t.bufferType)?t.bufferType:"video",o}return i(t,e),t}(o.ISOTimeEntityBase)},"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/DRM.ts":
|
|
171
|
-
/*!***********************************************************************!*\
|
|
172
|
-
!*** ./node_modules/sandlib-ext-metric-ard/lib/models/metrics/DRM.ts ***!
|
|
173
|
-
\***********************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{DRM:function(){return s}});var r,o=n(/*! ./ISOTimeEntityBase */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/ISOTimeEntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return t.hasOwnProperty("keyID")&&(o.keyID=t.keyID),t.hasOwnProperty("needKey")&&(o.needKey=t.needKey),t.hasOwnProperty("keySystemSelected")&&(o.keySystemSelected=t.keySystemSelected),t.hasOwnProperty("keySystem")&&(o.keySystem=t.keySystem),t.hasOwnProperty("licenseURL")&&(o.licenseURL=t.licenseURL),t.hasOwnProperty("licenseHeaders")&&(o.licenseHeaders=t.licenseHeaders),t.hasOwnProperty("licenseMessage")&&(o.licenseMessage=t.licenseMessage),t.hasOwnProperty("licenseRequestComplete")&&(o.licenseRequestComplete=t.licenseRequestComplete),t.hasOwnProperty("keyAdded")&&(o.keyAdded=t.keyAdded),t.hasOwnProperty("keyError")&&(o.keyError=t.keyError),t.hasOwnProperty("message")&&(o.message=t.message),o}return i(t,e),t}(o.ISOTimeEntityBase)},"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/ErrorMetric.ts":
|
|
174
|
-
/*!*******************************************************************************!*\
|
|
175
|
-
!*** ./node_modules/sandlib-ext-metric-ard/lib/models/metrics/ErrorMetric.ts ***!
|
|
176
|
-
\*******************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{ErrorMetric:function(){return s}});var r,o=n(/*! ./ISOTimeEntityBase */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/ISOTimeEntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.message=t.message,o.type="object"==typeof t.type?JSON.stringify(t.type):t.type,o.url=t.url,o.code=t.code,o.fatal=!(!t.hasOwnProperty("fatal")||!("boolean"==typeof t.fatal&&t.fatal||"number"==typeof t.fatal&&t.fatal>0)),t.name&&(o.name=t.name),o}return i(t,e),t}(o.ISOTimeEntityBase)},"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/HttpTransaction.ts":
|
|
177
|
-
/*!***********************************************************************************!*\
|
|
178
|
-
!*** ./node_modules/sandlib-ext-metric-ard/lib/models/metrics/HttpTransaction.ts ***!
|
|
179
|
-
\***********************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{HttpTransaction:function(){return a}});var r,o=n(/*! ./ISOTimeEntityBase */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/ISOTimeEntityBase.ts"),i=n(/*! sandlib-core/lib/utils/utils */"./node_modules/sandlib-core/lib/utils/utils.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.tcpid=-1,o.type="",o.range="-1",o.trequest=new Date(t.trequest||i.SyncedDate.now()).getTime(),o.tresponse=new Date(t.tresponse||i.SyncedDate.now()).getTime(),o.responsecode=t.responsecode,o.interval=t.hasOwnProperty("interval")?t.interval:-1,"InitializationSegment"===t.type&&(o.type="Initialization Segment"),"MediaSegment"===t.type&&(o.type="Media Segment"),"Manifest"===t.type&&(o.type="Manifest"),t.hasOwnProperty("url")&&(o.url=t.url),t.hasOwnProperty("actualurl")&&(o.actualurl=t.actualurl),t.hasOwnProperty("requestID")&&(o.requestID=t.requestID),o}return s(t,e),t}(o.ISOTimeEntityBase)},"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/ISOTimeEntityBase.ts":
|
|
180
|
-
/*!*************************************************************************************!*\
|
|
181
|
-
!*** ./node_modules/sandlib-ext-metric-ard/lib/models/metrics/ISOTimeEntityBase.ts ***!
|
|
182
|
-
\*************************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{ISOTimeEntityBase:function(){return s}});var r,o=n(/*! sandlib-core */"./node_modules/sandlib-core/lib/index.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r,o){var i=e.call(this,t,n,r,o)||this;return i.dt=new Date(i.t).toISOString(),i.dts=new Date(i.ts).toISOString(),i}return i(t,e),t}(o.EntityBase);s.registerMetricType=o.EntityBase.registerMetricType},"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/LiveEdgeDelay.ts":
|
|
183
|
-
/*!*********************************************************************************!*\
|
|
184
|
-
!*** ./node_modules/sandlib-ext-metric-ard/lib/models/metrics/LiveEdgeDelay.ts ***!
|
|
185
|
-
\*********************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{LiveEdgeDelay:function(){return s}});var r,o=n(/*! ./ISOTimeEntityBase */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/ISOTimeEntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.delay=t.delay,o}return i(t,e),t}(o.ISOTimeEntityBase)},"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/Memory.ts":
|
|
186
|
-
/*!**************************************************************************!*\
|
|
187
|
-
!*** ./node_modules/sandlib-ext-metric-ard/lib/models/metrics/Memory.ts ***!
|
|
188
|
-
\**************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{Memory:function(){return s}});var r,o=n(/*! ./ISOTimeEntityBase */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/ISOTimeEntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.used=t.used,o.total=t.total,o}return i(t,e),t}(o.ISOTimeEntityBase)},"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/Misc.ts":
|
|
189
|
-
/*!************************************************************************!*\
|
|
190
|
-
!*** ./node_modules/sandlib-ext-metric-ard/lib/models/metrics/Misc.ts ***!
|
|
191
|
-
\************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{Misc:function(){return a}});var r,o=n(/*! ./ISOTimeEntityBase */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/ISOTimeEntityBase.ts"),i=n(/*! sandlib-core/lib/utils/userAgentHelpers */"./node_modules/sandlib-core/lib/utils/userAgentHelpers.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(n,r,s){var a=e.call(this,n,r,s,o.ISOTimeEntityBase._optionalParams.concat(t._optionalParams))||this;if(a.version=n.version,a.oscpu=n.oscpu,a.timezone=n.timezone,a.locale=n.locale,a.referrer=n.referrer,a.type=n.type,a.manifest=n.manifest,a.mpdurl=n.mpdurl,a.player=n.player,a.userAgent=navigator&&navigator.userAgent?navigator.userAgent:"",a.isLive=!!(s&&s.hasOwnProperty("isLive")&&("boolean"==typeof s.isLive&&s.isLive||"number"==typeof s.isLive&&s.isLive>0)),n.streamtype&&(a.streamtype=n.streamtype),a.userAgent&&a.userAgent.length>1){var l=i.parseUAString(a.userAgent);a.deviceType=i.isSTB(l.getUA())?"stb":i.isTV(l.getUA())?"tv":l.getDevice()&&l.getDevice().type?l.getDevice().type.toLowerCase():"computer",a.platform=i.getPlatform(l),a.os=i.getOS(l.getOS()),a.browser=l.getBrowser().name,a.browserVersion=l.getBrowser().version}return a}return s(t,e),t}(o.ISOTimeEntityBase);a._optionalParams=["bandwidthEstimate","currentLevel","mcdnType","mediaID","userAgent","CodecCapabilities","HbbCapabilities","HbbPodduration","PlayerConfiguration"]},"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/Network.ts":
|
|
192
|
-
/*!***************************************************************************!*\
|
|
193
|
-
!*** ./node_modules/sandlib-ext-metric-ard/lib/models/metrics/Network.ts ***!
|
|
194
|
-
\***************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{Network:function(){return s}});var r,o=n(/*! ./ISOTimeEntityBase */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/ISOTimeEntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.downlink=t.downlink,o.effectivetype=t.effectivetype,o.rtt="number"==typeof t.rtt?t.rtt:-1,o.connectiontype=t.connectiontype,o}return i(t,e),t}(o.ISOTimeEntityBase)},"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/Playback.ts":
|
|
195
|
-
/*!****************************************************************************!*\
|
|
196
|
-
!*** ./node_modules/sandlib-ext-metric-ard/lib/models/metrics/Playback.ts ***!
|
|
197
|
-
\****************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{Playback:function(){return a}});var r,o=n(/*! ./ISOTimeEntityBase */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/ISOTimeEntityBase.ts"),i=n(/*! sandlib-core/lib/utils/utils */"./node_modules/sandlib-core/lib/utils/utils.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.start=new Date(t.start||i.SyncedDate.now()).getTime(),t.hasOwnProperty("mstart")&&(o.mstart=new Date(t.mstart||i.SyncedDate.now()).getTime()),t.hasOwnProperty("starttype")&&(o.starttype=t.starttype),o}return s(t,e),t}(o.ISOTimeEntityBase)},"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/RepSwitch.ts":
|
|
198
|
-
/*!*****************************************************************************!*\
|
|
199
|
-
!*** ./node_modules/sandlib-ext-metric-ard/lib/models/metrics/RepSwitch.ts ***!
|
|
200
|
-
\*****************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{RepSwitch:function(){return s}});var r,o=n(/*! ./ISOTimeEntityBase */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/ISOTimeEntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.mt=t.mt,o.to=t.to,t.hasOwnProperty("width")&&(o.width=t.width),t.hasOwnProperty("height")&&(o.height=t.height),t.hasOwnProperty("tobandwidth")&&(o.tobandwidth=t.tobandwidth),t.hasOwnProperty("mediatype")&&(o.mediatype=t.mediatype),t.hasOwnProperty("lto")&&(o.lto=t.lto),o}return i(t,e),t}(o.ISOTimeEntityBase)},"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/Screen.ts":
|
|
201
|
-
/*!**************************************************************************!*\
|
|
202
|
-
!*** ./node_modules/sandlib-ext-metric-ard/lib/models/metrics/Screen.ts ***!
|
|
203
|
-
\**************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{Screen:function(){return s}});var r,o=n(/*! ./ISOTimeEntityBase */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/ISOTimeEntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.height=t.height,o.width=t.width,o.pixelratio=t.pixelratio,o.orientation=t.orientation,o}return i(t,e),t}(o.ISOTimeEntityBase)},"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/StartupTime.ts":
|
|
204
|
-
/*!*******************************************************************************!*\
|
|
205
|
-
!*** ./node_modules/sandlib-ext-metric-ard/lib/models/metrics/StartupTime.ts ***!
|
|
206
|
-
\*******************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{StartupTime:function(){return s}});var r,o=n(/*! ./ISOTimeEntityBase */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/ISOTimeEntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.manifestLoadingInitialized=t.manifestLoadingInitialized,o.manifestLoaded=t.manifestLoaded,o.canPlay=t.canPlay,t.startupTime&&(o.startupTime=t.startupTime),o}return i(t,e),t}(o.ISOTimeEntityBase)},"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/Video.ts":
|
|
207
|
-
/*!*************************************************************************!*\
|
|
208
|
-
!*** ./node_modules/sandlib-ext-metric-ard/lib/models/metrics/Video.ts ***!
|
|
209
|
-
\*************************************************************************/function(e,t,n){"use strict";n.r(t),n.d(t,{Video:function(){return s}});var r,o=n(/*! ./ISOTimeEntityBase */"./node_modules/sandlib-ext-metric-ard/lib/models/metrics/ISOTimeEntityBase.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.elementheigt=t.elementheigt,o.elementwidth=t.elementwidth,o.videoheight=t.videoheight,o.videowidth=t.videowidth,o.droppedframes=t.droppedframes,o.fullscreen=!(!t.hasOwnProperty("fullscreen")||!("boolean"==typeof t.fullscreen&&t.fullscreen||"number"==typeof t.fullscreen&&t.fullscreen>0)),t.hasOwnProperty("seekTime")&&(o.seekTime=t.seekTime),t.hasOwnProperty("duration")&&(o.duration=t.duration),t.hasOwnProperty("eventType")&&(o.eventType=t.eventType),o}return i(t,e),t}(o.ISOTimeEntityBase)},"./node_modules/ua-parser-js/src/ua-parser.js":
|
|
210
|
-
/*!****************************************************!*\
|
|
211
|
-
!*** ./node_modules/ua-parser-js/src/ua-parser.js ***!
|
|
212
|
-
\****************************************************/function(module,e,t){var n;!function(r,o){"use strict";var i="function",s="undefined",a="object",l="string",c="major",u="model",d="name",p="type",f="vendor",h="version",m="architecture",y="console",b="mobile",_="tablet",w="smarttv",g="wearable",v="embedded",S="Amazon",O="Apple",T="ASUS",x="BlackBerry",E="Browser",P="Chrome",M="Firefox",C="Google",A="Huawei",D="LG",k="Microsoft",I="Motorola",R="Opera",j="Samsung",B="Sharp",N="Sony",L="Xiaomi",H="Zebra",F="Facebook",q="Chromium OS",U="Mac OS",V=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},z=function(e,t){return typeof e===l&&-1!==W(t).indexOf(W(e))},W=function(e){return e.toLowerCase()},X=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,350)},G=function(e,t){for(var n,r,s,l,c,u,d=0;d<t.length&&!c;){var p=t[d],f=t[d+1];for(n=r=0;n<p.length&&!c&&p[n];)if(c=p[n++].exec(e))for(s=0;s<f.length;s++)u=c[++r],typeof(l=f[s])===a&&l.length>0?2===l.length?typeof l[1]==i?this[l[0]]=l[1].call(this,u):this[l[0]]=l[1]:3===l.length?typeof l[1]!==i||l[1].exec&&l[1].test?this[l[0]]=u?u.replace(l[1],l[2]):o:this[l[0]]=u?l[1].call(this,u,l[2]):o:4===l.length&&(this[l[0]]=u?l[3].call(this,u.replace(l[1],l[2])):o):this[l]=u||o;d+=2}},J=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(z(t[n][r],e))return"?"===n?o:n}else if(z(t[n],e))return"?"===n?o:n;return e},K={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Y={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,h],[/opios[\/ ]+([\w\.]+)/i],[h,[d,R+" Mini"]],[/\bopr\/([\w\.]+)/i],[h,[d,R]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[d,h],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[d,"UC"+E]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[h,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[h,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[h,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[d,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[h,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+E],h],[/\bfocus\/([\w\.]+)/i],[h,[d,M+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[d,R+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[d,R+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[d,"MIUI "+E]],[/fxios\/([-\w\.]+)/i],[h,[d,M]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 "+E]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 "+E],h],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[d,h],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,F],h],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[d,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[d,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[h,[d,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[d,P+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,P+" WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[d,"Android "+E]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,h],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[h,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[h,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[h,J,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[d,M+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[d,h],[/(cobalt)\/([\w\.]+)/i],[d,[h,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,W]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",W]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,W]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[f,j],[p,_]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[f,j],[p,b]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[f,O],[p,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[f,O],[p,_]],[/(macintosh);/i],[u,[f,O]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[f,B],[p,b]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[f,A],[p,_]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[f,A],[p,b]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[f,L],[p,b]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[f,L],[p,_]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[f,"OPPO"],[p,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[f,"Vivo"],[p,b]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[u,[f,"Realme"],[p,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[f,I],[p,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[f,I],[p,_]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[f,D],[p,_]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[f,D],[p,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[f,"Lenovo"],[p,_]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[f,"Nokia"],[p,b]],[/(pixel c)\b/i],[u,[f,C],[p,_]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[f,C],[p,b]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[f,N],[p,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[f,N],[p,_]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[f,"OnePlus"],[p,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[f,S],[p,_]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[f,S],[p,b]],[/(playbook);[-\w\),; ]+(rim)/i],[u,f,[p,_]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[f,x],[p,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[f,T],[p,_]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[f,T],[p,b]],[/(nexus 9)/i],[u,[f,"HTC"],[p,_]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[u,/_/g," "],[p,b]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[f,"Acer"],[p,_]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[f,"Meizu"],[p,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,u,[p,b]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,u,[p,_]],[/(surface duo)/i],[u,[f,k],[p,_]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[f,"Fairphone"],[p,b]],[/(u304aa)/i],[u,[f,"AT&T"],[p,b]],[/\bsie-(\w*)/i],[u,[f,"Siemens"],[p,b]],[/\b(rct\w+) b/i],[u,[f,"RCA"],[p,_]],[/\b(venue[\d ]{2,7}) b/i],[u,[f,"Dell"],[p,_]],[/\b(q(?:mv|ta)\w+) b/i],[u,[f,"Verizon"],[p,_]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[f,"Barnes & Noble"],[p,_]],[/\b(tm\d{3}\w+) b/i],[u,[f,"NuVision"],[p,_]],[/\b(k88) b/i],[u,[f,"ZTE"],[p,_]],[/\b(nx\d{3}j) b/i],[u,[f,"ZTE"],[p,b]],[/\b(gen\d{3}) b.+49h/i],[u,[f,"Swiss"],[p,b]],[/\b(zur\d{3}) b/i],[u,[f,"Swiss"],[p,_]],[/\b((zeki)?tb.*\b) b/i],[u,[f,"Zeki"],[p,_]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],u,[p,_]],[/\b(ns-?\w{0,9}) b/i],[u,[f,"Insignia"],[p,_]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[f,"NextBook"],[p,_]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],u,[p,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],u,[p,b]],[/\b(ph-1) /i],[u,[f,"Essential"],[p,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[f,"Envizen"],[p,_]],[/\b(trio[-\w\. ]+) b/i],[u,[f,"MachSpeed"],[p,_]],[/\btu_(1491) b/i],[u,[f,"Rotor"],[p,_]],[/(shield[\w ]+) b/i],[u,[f,"Nvidia"],[p,_]],[/(sprint) (\w+)/i],[f,u,[p,b]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[f,k],[p,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[f,H],[p,_]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[f,H],[p,b]],[/smart-tv.+(samsung)/i],[f,[p,w]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[f,j],[p,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,D],[p,w]],[/(apple) ?tv/i],[f,[u,O+" TV"],[p,w]],[/crkey/i],[[u,P+"cast"],[f,C],[p,w]],[/droid.+aft(\w)( bui|\))/i],[u,[f,S],[p,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[f,B],[p,w]],[/(bravia[\w ]+)( bui|\))/i],[u,[f,N],[p,w]],[/(mitv-\w{5}) bui/i],[u,[f,L],[p,w]],[/Hbbtv.*(technisat) (.*);/i],[f,u,[p,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,X],[u,X],[p,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,u,[p,y]],[/droid.+; (shield) bui/i],[u,[f,"Nvidia"],[p,y]],[/(playstation [345portablevi]+)/i],[u,[f,N],[p,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[f,k],[p,y]],[/((pebble))app/i],[f,u,[p,g]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[f,O],[p,g]],[/droid.+; (glass) \d/i],[u,[f,C],[p,g]],[/droid.+; (wt63?0{2,3})\)/i],[u,[f,H],[p,g]],[/(quest( 2| pro)?)/i],[u,[f,F],[p,g]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[p,v]],[/(aeobc)\b/i],[u,[f,S],[p,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[u,[p,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[p,_]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,_]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,b]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[d,h],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[h,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,h],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[d,[h,J,K]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,"Windows"],[h,J,K]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,U],[h,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[h,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,h],[/\(bb(10);/i],[h,[d,x]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[h,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[d,M+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[d,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[h,[d,"watchOS"]],[/crkey\/([\d\.]+)/i],[h,[d,P+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,q],h],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,h],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[d,h]]},Z=function(e,t){if(typeof e===a&&(t=e,e=o),!(this instanceof Z))return new Z(e,t).getResult();var n=typeof r!==s&&r.navigator?r.navigator:o,y=e||(n&&n.userAgent?n.userAgent:""),w=n&&n.userAgentData?n.userAgentData:o,g=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(Y,t):Y,v=n&&n.userAgent==y;return this.getBrowser=function(){var e,t={};return t[d]=o,t[h]=o,G.call(t,y,g.browser),t[c]=typeof(e=t[h])===l?e.replace(/[^\d\.]/g,"").split(".")[0]:o,v&&n&&n.brave&&typeof n.brave.isBrave==i&&(t[d]="Brave"),t},this.getCPU=function(){var e={};return e[m]=o,G.call(e,y,g.cpu),e},this.getDevice=function(){var e={};return e[f]=o,e[u]=o,e[p]=o,G.call(e,y,g.device),v&&!e[p]&&w&&w.mobile&&(e[p]=b),v&&"Macintosh"==e[u]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[u]="iPad",e[p]=_),e},this.getEngine=function(){var e={};return e[d]=o,e[h]=o,G.call(e,y,g.engine),e},this.getOS=function(){var e={};return e[d]=o,e[h]=o,G.call(e,y,g.os),v&&!e[d]&&w&&"Unknown"!=w.platform&&(e[d]=w.platform.replace(/chrome os/i,q).replace(/macos/i,U)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return y},this.setUA=function(e){return y=typeof e===l&&e.length>350?X(e,350):e,this},this.setUA(y),this};Z.VERSION="1.0.35",Z.BROWSER=V([d,h,c]),Z.CPU=V([m]),Z.DEVICE=V([u,f,p,y,b,w,_,g,v]),Z.ENGINE=Z.OS=V([d,h]),typeof e!==s?(module.exports&&(e=module.exports=Z),e.UAParser=Z):t.amdO?(n=function(){return Z}.call(e,t,e,module))===o||(module.exports=n):typeof r!==s&&(r.UAParser=Z);var Q=typeof r!==s&&(r.jQuery||r.Zepto);if(Q&&!Q.ua){var $=new Z;Q.ua=$.getResult(),Q.ua.get=function(){return $.getUA()},Q.ua.set=function(e){$.setUA(e);var t=$.getResult();for(var n in t)Q.ua[n]=t[n]}}}("object"==typeof window?window:this)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var module=t[r]={exports:{}};return e[r].call(module.exports,module,module.exports,n),module.exports}n.amdO={},n.n=function(module){var e=module&&module.__esModule?function(){return module.default}:function(){return module};return n.d(e,{a:e}),e},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return function(){"use strict";
|
|
213
|
-
/*!*****************************!*\
|
|
214
|
-
!*** ./lib/SAND-Library.ts ***!
|
|
215
|
-
\*****************************/n.r(r),n.d(r,{SANDLibrary:function(){return a}});var e,t=n(/*! sandlib-core */"./node_modules/sandlib-core/lib/index.ts"),o=n(/*! sandlib-ext-channel-google-pubsub-xhr */"./node_modules/sandlib-ext-channel-google-pubsub-xhr/lib/index.ts"),i=n(/*! sandlib-ext-metric-ard */"./node_modules/sandlib-ext-metric-ard/lib/index.ts"),s=(e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});t.XHRChannel.registerChannelType(o.GooglePubSubXHRChannel.SchemeIdUri,o.GooglePubSubXHRChannel),t.EntityBase.registerMetricType("Beacon","Beacon",i.Beacon),t.EntityBase.registerMetricType("BrowserWindow","BrowserWindowList",i.BrowserWindow),t.EntityBase.registerMetricType("BufferLevel","BufferLevelList",i.BufferLevel),t.EntityBase.registerMetricType("DRM","DRMList",i.DRM),t.EntityBase.registerMetricType("ErrorMetric","ErrorList",i.ErrorMetric),t.EntityBase.registerMetricType("HttpTransaction","HttpList",i.HttpTransaction),t.EntityBase.registerMetricType("LiveEdgeDelay","LiveEdgeDelayList",i.LiveEdgeDelay),t.EntityBase.registerMetricType("Memory","MemoryList",i.Memory),t.EntityBase.registerMetricType("Misc","Misc",i.Misc),t.EntityBase.registerMetricType("Network","NetworkList",i.Network),t.EntityBase.registerMetricType("Playback","PlayList",i.Playback),t.EntityBase.registerMetricType("RepSwitch","RepSwitchList",i.RepSwitch),t.EntityBase.registerMetricType("Screen","ScreenList",i.Screen),t.EntityBase.registerMetricType("StartupTime","StartupTime",i.StartupTime),t.EntityBase.registerMetricType("Video","VideoList",i.Video);var a=function(e){function t(){return e.call(this)||this}return s(t,e),t.BUILDNAME="sand_library",t.VERSION="1.6.6",t}(t.SANDLibraryCore);i.ISOTimeEntityBase.allowOptionalParams(["customerID","streamID"])}(),r}()},module.exports=e()}}]);
|