!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.TalviewSdk=n():e.TalviewSdk=n()}(this,()=>(()=>{"use strict";var e="TalviewSDK",n=null,r=null,t="https://playback.tlv.cx/player.js";function o(e,n,r,t,o,i,a){try{var u=e[i](a),l=u.value}catch(e){r(e);return}u.done?n(l):Promise.resolve(l).then(t,o)}function i(e){var i,a=[],u=null,l=null,c=new Set,f=new Set,s=function(e){l||(l=e,c.forEach(function(n){return n(e)}),f.forEach(function(n){return n(e)}),f.clear())},d=function(e){u?e(u):a.push(e)},p={on:function(e,n){if("error"===e){if(l)return n(l),p;c.add(n)}return d(function(r){return r.on(e,n)}),p},once:function(e,n){return"error"===e?(l?n(l):(f.add(n),d(function(r){return r.once(e,function(e){f.delete(n),n(e)})})),p):(d(function(r){return r.once(e,n)}),p)},off:function(e,n){return"error"===e&&(c.delete(n),f.delete(n)),d(function(r){return r.off(e,n)}),p}};return(i=function(){var o,i;return function(e,n){var r,t,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(u){return function(l){var c=[u,l];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,t&&(o=2&c[0]?t.return:c[0]?t.throw||((o=t.return)&&o.call(t),0):t.next)&&!(o=o.call(t,c[1])).done)return o;switch(t=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,t=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0;)null==(i=a.shift())||i(u);return[2]}})},function(){var e=this,n=arguments;return new Promise(function(r,t){var a=i.apply(e,n);function u(e){o(a,r,t,u,l,"next",e)}function l(e){o(a,r,t,u,l,"throw",e)}u(void 0)})})().catch(function(e){var n;s((null!=(n=Error)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n)?e:Error(String(e)))}),p}return!function(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e;if("undefined"!=typeof window){var t=""===r.trim()?e:r,o=window,a=null!=(n=o[t])?n:{};Object.defineProperty(a,"sessionPlayback",{configurable:!0,enumerable:!0,writable:!1,value:i}),o[t]=a}}(),{}})()); //# sourceMappingURL=init.js.map