@tivio/sdk-react 4.0.1 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +5 -0
- package/README.md.bak +5 -0
- package/dist/index.d.ts +21 -6
- package/dist/index.js +1 -1
- package/dist/sdk-react.d.ts +40 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@sentry/browser"),require("mobx"),require("@material-ui/core"),require("@material-ui/icons"),require("firebase/app"),require("firebase/auth"),require("firebase/firestore"),require("formik"),require("i18next"),require("mobx-react"),require("react-dom"),require("react-i18next"),require("react-router-dom"),require("react-spring"),require("react-virtualized"),require("styled-components"),require("yup")):"function"==typeof define&&define.amd?define("@tivio/sdk-react",["react","@sentry/browser","mobx","@material-ui/core","@material-ui/icons","firebase/app","firebase/auth","firebase/firestore","formik","i18next","mobx-react","react-dom","react-i18next","react-router-dom","react-spring","react-virtualized","styled-components","yup"],t):"object"==typeof exports?exports["@tivio/sdk-react"]=t(require("react"),require("@sentry/browser"),require("mobx"),require("@material-ui/core"),require("@material-ui/icons"),require("firebase/app"),require("firebase/auth"),require("firebase/firestore"),require("formik"),require("i18next"),require("mobx-react"),require("react-dom"),require("react-i18next"),require("react-router-dom"),require("react-spring"),require("react-virtualized"),require("styled-components"),require("yup")):e["@tivio/sdk-react"]=t(e.react,e["@sentry/browser"],e.mobx,e["@material-ui/core"],e["@material-ui/icons"],e["firebase/app"],e["firebase/auth"],e["firebase/firestore"],e.formik,e.i18next,e["mobx-react"],e["react-dom"],e["react-i18next"],e["react-router-dom"],e["react-spring"],e["react-virtualized"],e["styled-components"],e.yup)}(this,(function(e,t,n,r,o,i,a,u,s,c,l,f,d,p,h,v,y,g){return function(){var b={194:function(e,t,n){var r,o;e.exports=(r=n(259),o=n(8156),function(){var e={146:function(e){e.exports=function(){var e={2043:function(e,t,n){var r,o;!function(i,a){"use strict";r=function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"];function o(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function a(r){return"debug"===r&&(r="log"),typeof console!==t&&("trace"===r&&n?i:void 0!==console[r]?o(console,r):void 0!==console.log?o(console,"log"):e)}function u(t,n){for(var o=0;o<r.length;o++){var i=r[o];this[i]=o<t?e:this.methodFactory(i,t,n)}this.log=this.debug}function s(e,n,r){return function(){typeof console!==t&&(u.call(this,n,r),this[e].apply(this,arguments))}}function c(e,t,n){return a(e)||s.apply(this,arguments)}function l(e,n,o){var i,a=this;n=null==n?"WARN":n;var s="loglevel";function l(){var e;if(typeof window!==t&&s){try{e=window.localStorage[s]}catch(e){}if(typeof e===t)try{var n=window.document.cookie,r=n.indexOf(encodeURIComponent(s)+"=");-1!==r&&(e=/^([^;]+)/.exec(n.slice(r))[1])}catch(e){}return void 0===a.levels[e]&&(e=void 0),e}}"string"==typeof e?s+=":"+e:"symbol"==typeof e&&(s=void 0),a.name=e,a.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},a.methodFactory=o||c,a.getLevel=function(){return i},a.setLevel=function(n,o){if("string"==typeof n&&void 0!==a.levels[n.toUpperCase()]&&(n=a.levels[n.toUpperCase()]),!("number"==typeof n&&n>=0&&n<=a.levels.SILENT))throw"log.setLevel() called with invalid level: "+n;if(i=n,!1!==o&&function(e){var n=(r[e]||"silent").toUpperCase();if(typeof window!==t&&s){try{return void(window.localStorage[s]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(s)+"="+n+";"}catch(e){}}}(n),u.call(a,n,e),typeof console===t&&n<a.levels.SILENT)return"No console available for logging"},a.setDefaultLevel=function(e){n=e,l()||a.setLevel(e,!1)},a.resetLevel=function(){a.setLevel(n,!1),function(){if(typeof window!==t&&s){try{return void window.localStorage.removeItem(s)}catch(e){}try{window.document.cookie=encodeURIComponent(s)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}()},a.enableAll=function(e){a.setLevel(a.levels.TRACE,e)},a.disableAll=function(e){a.setLevel(a.levels.SILENT,e)};var f=l();null==f&&(f=n),a.setLevel(f,!1)}var f=new l,d={};f.getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=d[e];return t||(t=d[e]=new l(e,f.getLevel(),f.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return f.noConflict=function(){return typeof window!==t&&window.log===f&&(window.log=p),f},f.getLoggers=function(){return d},f.default=f,f},void 0===(o=r.call(t,n,t,e))||(e.exports=o)}()},3958:function(e,t,n){e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",u="[object Boolean]",s="[object Date]",c="[object Error]",l="[object Function]",f="[object Map]",d="[object Number]",p="[object Object]",h="[object Promise]",v="[object RegExp]",y="[object Set]",g="[object String]",b="[object WeakMap]",m="[object ArrayBuffer]",_="[object DataView]",w=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,P={};P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P[i]=P[a]=P[m]=P[u]=P[_]=P[s]=P[c]=P[l]=P[f]=P[d]=P[p]=P[v]=P[y]=P[g]=P[b]=!1;var S="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,E="object"==typeof self&&self&&self.Object===Object&&self,j=S||E||Function("return this")(),T=t&&!t.nodeType&&t,x=T&&e&&!e.nodeType&&e,M=x&&x.exports===T,A=M&&S.process,I=function(){try{return A&&A.binding&&A.binding("util")}catch(e){}}(),C=I&&I.isTypedArray;function L(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function k(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function R(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var D,N,B,F=Array.prototype,U=Function.prototype,V=Object.prototype,G=j["__core-js_shared__"],W=U.toString,z=V.hasOwnProperty,H=(D=/[^.]+$/.exec(G&&G.keys&&G.keys.IE_PROTO||""))?"Symbol(src)_1."+D:"",$=V.toString,Y=RegExp("^"+W.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),K=M?j.Buffer:void 0,q=j.Symbol,Q=j.Uint8Array,J=V.propertyIsEnumerable,Z=F.splice,X=q?q.toStringTag:void 0,ee=Object.getOwnPropertySymbols,te=K?K.isBuffer:void 0,ne=(N=Object.keys,B=Object,function(e){return N(B(e))}),re=xe(j,"DataView"),oe=xe(j,"Map"),ie=xe(j,"Promise"),ae=xe(j,"Set"),ue=xe(j,"WeakMap"),se=xe(Object,"create"),ce=Ce(re),le=Ce(oe),fe=Ce(ie),de=Ce(ae),pe=Ce(ue),he=q?q.prototype:void 0,ve=he?he.valueOf:void 0;function ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function be(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function me(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new be;++t<n;)this.add(e[t])}function _e(e){var t=this.__data__=new ge(e);this.size=t.size}function we(e,t){for(var n=e.length;n--;)if(Le(e[n][0],t))return n;return-1}function Oe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?function(e){var t=z.call(e,X),n=e[X];try{e[X]=void 0;var r=!0}catch(e){}var o=$.call(e);return r&&(t?e[X]=n:delete e[X]),o}(e):function(e){return $.call(e)}(e)}function Pe(e){return Ue(e)&&Oe(e)==i}function Se(e,t,n,r,o){return e===t||(null==e||null==t||!Ue(e)&&!Ue(t)?e!=e&&t!=t:function(e,t,n,r,o,l){var h=Re(e),b=Re(t),w=h?a:Ae(e),O=b?a:Ae(t),P=(w=w==i?p:w)==p,S=(O=O==i?p:O)==p,E=w==O;if(E&&De(e)){if(!De(t))return!1;h=!0,P=!1}if(E&&!P)return l||(l=new _e),h||Ve(e)?Ee(e,t,n,r,o,l):function(e,t,n,r,o,i,a){switch(n){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case m:return!(e.byteLength!=t.byteLength||!i(new Q(e),new Q(t)));case u:case s:case d:return Le(+e,+t);case c:return e.name==t.name&&e.message==t.message;case v:case g:return e==t+"";case f:var l=k;case y:var p=1&r;if(l||(l=R),e.size!=t.size&&!p)return!1;var h=a.get(e);if(h)return h==t;r|=2,a.set(e,t);var b=Ee(l(e),l(t),r,o,i,a);return a.delete(e),b;case"[object Symbol]":if(ve)return ve.call(e)==ve.call(t)}return!1}(e,t,w,n,r,o,l);if(!(1&n)){var j=P&&z.call(e,"__wrapped__"),T=S&&z.call(t,"__wrapped__");if(j||T){var x=j?e.value():e,M=T?t.value():t;return l||(l=new _e),o(x,M,n,r,l)}}return!!E&&(l||(l=new _e),function(e,t,n,r,o,i){var a=1&n,u=je(e),s=u.length;if(s!=je(t).length&&!a)return!1;for(var c=s;c--;){var l=u[c];if(!(a?l in t:z.call(t,l)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var d=!0;i.set(e,t),i.set(t,e);for(var p=a;++c<s;){var h=e[l=u[c]],v=t[l];if(r)var y=a?r(v,h,l,t,e,i):r(h,v,l,e,t,i);if(!(void 0===y?h===v||o(h,v,n,r,i):y)){d=!1;break}p||(p="constructor"==l)}if(d&&!p){var g=e.constructor,b=t.constructor;g==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,n,r,o,l))}(e,t,n,r,Se,o))}function Ee(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var l=-1,f=!0,d=2&n?new me:void 0;for(i.set(e,t),i.set(t,e);++l<u;){var p=e[l],h=t[l];if(r)var v=a?r(h,p,l,t,e,i):r(p,h,l,e,t,i);if(void 0!==v){if(v)continue;f=!1;break}if(d){if(!L(t,(function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,n,r,i)))return d.push(t);var a}))){f=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function je(e){return function(e,t,n){var r=t(e);return Re(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ge,Me)}function Te(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function xe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Fe(e)||function(e){return!!H&&H in e}(e))&&(Ne(e)?Y:w).test(Ce(e))}(n)?n:void 0}ye.prototype.clear=function(){this.__data__=se?se(null):{},this.size=0},ye.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ye.prototype.get=function(e){var t=this.__data__;if(se){var n=t[e];return n===r?void 0:n}return z.call(t,e)?t[e]:void 0},ye.prototype.has=function(e){var t=this.__data__;return se?void 0!==t[e]:z.call(t,e)},ye.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=se&&void 0===t?r:t,this},ge.prototype.clear=function(){this.__data__=[],this.size=0},ge.prototype.delete=function(e){var t=this.__data__,n=we(t,e);return!(n<0||(n==t.length-1?t.pop():Z.call(t,n,1),--this.size,0))},ge.prototype.get=function(e){var t=this.__data__,n=we(t,e);return n<0?void 0:t[n][1]},ge.prototype.has=function(e){return we(this.__data__,e)>-1},ge.prototype.set=function(e,t){var n=this.__data__,r=we(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},be.prototype.clear=function(){this.size=0,this.__data__={hash:new ye,map:new(oe||ge),string:new ye}},be.prototype.delete=function(e){var t=Te(this,e).delete(e);return this.size-=t?1:0,t},be.prototype.get=function(e){return Te(this,e).get(e)},be.prototype.has=function(e){return Te(this,e).has(e)},be.prototype.set=function(e,t){var n=Te(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},me.prototype.add=me.prototype.push=function(e){return this.__data__.set(e,r),this},me.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.clear=function(){this.__data__=new ge,this.size=0},_e.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},_e.prototype.get=function(e){return this.__data__.get(e)},_e.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ge){var r=n.__data__;if(!oe||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new be(r)}return n.set(e,t),this.size=n.size,this};var Me=ee?function(e){return null==e?[]:(e=Object(e),function(t,n){for(var r=-1,o=null==t?0:t.length,i=0,a=[];++r<o;){var u=t[r];s=u,J.call(e,s)&&(a[i++]=u)}var s;return a}(ee(e)))}:function(){return[]},Ae=Oe;function Ie(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||O.test(e))&&e>-1&&e%1==0&&e<t}function Ce(e){if(null!=e){try{return W.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Le(e,t){return e===t||e!=e&&t!=t}(re&&Ae(new re(new ArrayBuffer(1)))!=_||oe&&Ae(new oe)!=f||ie&&Ae(ie.resolve())!=h||ae&&Ae(new ae)!=y||ue&&Ae(new ue)!=b)&&(Ae=function(e){var t=Oe(e),n=t==p?e.constructor:void 0,r=n?Ce(n):"";if(r)switch(r){case ce:return _;case le:return f;case fe:return h;case de:return y;case pe:return b}return t});var ke=Pe(function(){return arguments}())?Pe:function(e){return Ue(e)&&z.call(e,"callee")&&!J.call(e,"callee")},Re=Array.isArray,De=te||function(){return!1};function Ne(e){if(!Fe(e))return!1;var t=Oe(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Be(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Fe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ue(e){return null!=e&&"object"==typeof e}var Ve=C?function(e){return function(t){return e(t)}}(C):function(e){return Ue(e)&&Be(e.length)&&!!P[Oe(e)]};function Ge(e){return null!=(t=e)&&Be(t.length)&&!Ne(t)?function(e,t){var n=Re(e),r=!n&&ke(e),o=!n&&!r&&De(e),i=!n&&!r&&!o&&Ve(e),a=n||r||o||i,u=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=u.length;for(var c in e)!z.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ie(c,s))||u.push(c);return u}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||V))return ne(e);var t,n,r=[];for(var o in Object(e))z.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}e.exports=function(e,t){return Se(e,t)}},3096:function(e){e.exports=function e(t,n,r){function o(a,u){if(!n[a]){if(!t[a]){if(i)return i(a,!0);throw new Error("Cannot find module '"+a+"'")}var s=n[a]={exports:{}};t[a][0].call(s.exports,(function(e){return o(t[a][1][e]||e)}),s,s.exports,e,t,n,r)}return n[a].exports}for(var i=void 0,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){(function(r,o,i,a,u,s,c,l,f){"use strict";var d=e("crypto");function p(e,t){return function(e,t){var n;if(void 0===(n="passthrough"!==t.algorithm?d.createHash(t.algorithm):new m).write&&(n.write=n.update,n.end=n.update),b(t,n).dispatch(e),n.update||n.end(""),n.digest)return n.digest("buffer"===t.encoding?void 0:t.encoding);var r=n.read();return"buffer"!==t.encoding?r.toString(t.encoding):r}(e,t=y(e,t))}(n=t.exports=p).sha1=function(e){return p(e)},n.keys=function(e){return p(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},n.MD5=function(e){return p(e,{algorithm:"md5",encoding:"hex"})},n.keysMD5=function(e){return p(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var h=d.getHashes?d.getHashes().slice():["sha1","md5"];h.push("passthrough");var v=["buffer","hex","binary","base64"];function y(e,t){t=t||{};var n={};if(n.algorithm=t.algorithm||"sha1",n.encoding=t.encoding||"hex",n.excludeValues=!!t.excludeValues,n.algorithm=n.algorithm.toLowerCase(),n.encoding=n.encoding.toLowerCase(),n.ignoreUnknown=!0===t.ignoreUnknown,n.respectType=!1!==t.respectType,n.respectFunctionNames=!1!==t.respectFunctionNames,n.respectFunctionProperties=!1!==t.respectFunctionProperties,n.unorderedArrays=!0===t.unorderedArrays,n.unorderedSets=!1!==t.unorderedSets,n.unorderedObjects=!1!==t.unorderedObjects,n.replacer=t.replacer||void 0,n.excludeKeys=t.excludeKeys||void 0,void 0===e)throw new Error("Object argument required.");for(var r=0;r<h.length;++r)h[r].toLowerCase()===n.algorithm.toLowerCase()&&(n.algorithm=h[r]);if(-1===h.indexOf(n.algorithm))throw new Error('Algorithm "'+n.algorithm+'" not supported. supported values: '+h.join(", "));if(-1===v.indexOf(n.encoding)&&"passthrough"!==n.algorithm)throw new Error('Encoding "'+n.encoding+'" not supported. supported values: '+v.join(", "));return n}function g(e){if("function"==typeof e)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))}function b(e,t,n){function r(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")}return n=n||[],{dispatch:function(t){return e.replacer&&(t=e.replacer(t)),this["_"+(null===t?"null":typeof t)](t)},_object:function(t){var o,a=Object.prototype.toString.call(t),u=/\[object (.*)\]/i.exec(a);if(u=(u=u?u[1]:"unknown:["+a+"]").toLowerCase(),0<=(o=n.indexOf(t)))return this.dispatch("[CIRCULAR:"+o+"]");if(n.push(t),void 0!==i&&i.isBuffer&&i.isBuffer(t))return r("buffer:"),r(t);if("object"===u||"function"===u||"asyncfunction"===u){var s=Object.keys(t);e.unorderedObjects&&(s=s.sort()),!1===e.respectType||g(t)||s.splice(0,0,"prototype","__proto__","constructor"),e.excludeKeys&&(s=s.filter((function(t){return!e.excludeKeys(t)}))),r("object:"+s.length+":");var c=this;return s.forEach((function(n){c.dispatch(n),r(":"),e.excludeValues||c.dispatch(t[n]),r(",")}))}if(!this["_"+u]){if(e.ignoreUnknown)return r("["+u+"]");throw new Error('Unknown object type "'+u+'"')}this["_"+u](t)},_array:function(t,o){o=void 0!==o?o:!1!==e.unorderedArrays;var i=this;if(r("array:"+t.length+":"),!o||t.length<=1)return t.forEach((function(e){return i.dispatch(e)}));var a=[],u=t.map((function(t){var r=new m,o=n.slice();return b(e,r,o).dispatch(t),a=a.concat(o.slice(n.length)),r.read().toString()}));return n=n.concat(a),u.sort(),this._array(u,!1)},_date:function(e){return r("date:"+e.toJSON())},_symbol:function(e){return r("symbol:"+e.toString())},_error:function(e){return r("error:"+e.toString())},_boolean:function(e){return r("bool:"+e.toString())},_string:function(e){r("string:"+e.length+":"),r(e.toString())},_function:function(t){r("fn:"),g(t)?this.dispatch("[native]"):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch("function-name:"+String(t.name)),e.respectFunctionProperties&&this._object(t)},_number:function(e){return r("number:"+e.toString())},_xml:function(e){return r("xml:"+e.toString())},_null:function(){return r("Null")},_undefined:function(){return r("Undefined")},_regexp:function(e){return r("regex:"+e.toString())},_uint8array:function(e){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return r("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return r("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return r("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return r("url:"+e.toString())},_map:function(t){r("map:");var n=Array.from(t);return this._array(n,!1!==e.unorderedSets)},_set:function(t){r("set:");var n=Array.from(t);return this._array(n,!1!==e.unorderedSets)},_file:function(e){return r("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(e.ignoreUnknown)return r("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return r("domwindow")},_bigint:function(e){return r("bigint:"+e.toString())},_process:function(){return r("process")},_timer:function(){return r("timer")},_pipe:function(){return r("pipe")},_tcp:function(){return r("tcp")},_udp:function(){return r("udp")},_tty:function(){return r("tty")},_statwatcher:function(){return r("statwatcher")},_securecontext:function(){return r("securecontext")},_connection:function(){return r("connection")},_zlib:function(){return r("zlib")},_context:function(){return r("context")},_nodescript:function(){return r("nodescript")},_httpparser:function(){return r("httpparser")},_dataview:function(){return r("dataview")},_signal:function(){return r("signal")},_fsevent:function(){return r("fsevent")},_tlswrap:function(){return r("tlswrap")}}}function m(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}n.writeToStream=function(e,t,n){return void 0===n&&(n=t,t={}),b(t=y(e,t),n).dispatch(e)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_7eac155c.js","/")},{buffer:3,crypto:5,lYpoI2:10}],2:[function(e,t,n){(function(e,t,r,o,i,a,u,s,c){!function(e){"use strict";var t="undefined"!=typeof Uint8Array?Uint8Array:Array,n="+".charCodeAt(0),r="/".charCodeAt(0),o="0".charCodeAt(0),i="a".charCodeAt(0),a="A".charCodeAt(0),u="-".charCodeAt(0),s="_".charCodeAt(0);function c(e){var t=e.charCodeAt(0);return t===n||t===u?62:t===r||t===s?63:t<o?-1:t<o+10?t-o+26+26:t<a+26?t-a:t<i+26?t-i+26:void 0}e.toByteArray=function(e){var n,r;if(0<e.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var o=e.length,i="="===e.charAt(o-2)?2:"="===e.charAt(o-1)?1:0,a=new t(3*e.length/4-i),u=0<i?e.length-4:e.length,s=0;function l(e){a[s++]=e}for(n=0;n<u;n+=4,0)l((16711680&(r=c(e.charAt(n))<<18|c(e.charAt(n+1))<<12|c(e.charAt(n+2))<<6|c(e.charAt(n+3))))>>16),l((65280&r)>>8),l(255&r);return 2==i?l(255&(r=c(e.charAt(n))<<2|c(e.charAt(n+1))>>4)):1==i&&(l((r=c(e.charAt(n))<<10|c(e.charAt(n+1))<<4|c(e.charAt(n+2))>>2)>>8&255),l(255&r)),a},e.fromByteArray=function(e){var t,n,r,o,i=e.length%3,a="";function u(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,r=e.length-i;t<r;t+=3)a+=u((o=n=(e[t]<<16)+(e[t+1]<<8)+e[t+2])>>18&63)+u(o>>12&63)+u(o>>6&63)+u(63&o);switch(i){case 1:a+=u((n=e[e.length-1])>>2),a+=u(n<<4&63),a+="==";break;case 2:a+=u((n=(e[e.length-2]<<8)+e[e.length-1])>>10),a+=u(n>>4&63),a+=u(n<<2&63),a+="="}return a}}(void 0===n?this.base64js={}:n)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(e,t,n){(function(t,r,o,i,a,u,s,c,l){var f=e("base64-js"),d=e("ieee754");function o(e,t,n){if(!(this instanceof o))return new o(e,t,n);var r,i,a,u,s,c=typeof e;if("base64"===t&&"string"==c)for(e=(r=e).trim?r.trim():r.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==c)i=T(e);else if("string"==c)i=o.byteLength(e,t);else{if("object"!=c)throw new Error("First argument needs to be a number, array or string.");i=T(e.length)}if(o._useTypedArrays?a=o._augment(new Uint8Array(i)):((a=this).length=i,a._isBuffer=!0),o._useTypedArrays&&"number"==typeof e.byteLength)a._set(e);else if(x(s=e)||o.isBuffer(s)||s&&"object"==typeof s&&"number"==typeof s.length)for(u=0;u<i;u++)o.isBuffer(e)?a[u]=e.readUInt8(u):a[u]=e[u];else if("string"==c)a.write(e,0,t);else if("number"==c&&!o._useTypedArrays&&!n)for(u=0;u<i;u++)a[u]=0;return a}function p(e,t,n,r){r||(N("boolean"==typeof n,"missing or invalid endian"),N(null!=t,"missing offset"),N(t+1<e.length,"Trying to read beyond buffer length"));var o,i=e.length;if(!(i<=t))return n?(o=e[t],t+1<i&&(o|=e[t+1]<<8)):(o=e[t]<<8,t+1<i&&(o|=e[t+1])),o}function h(e,t,n,r){r||(N("boolean"==typeof n,"missing or invalid endian"),N(null!=t,"missing offset"),N(t+3<e.length,"Trying to read beyond buffer length"));var o,i=e.length;if(!(i<=t))return n?(t+2<i&&(o=e[t+2]<<16),t+1<i&&(o|=e[t+1]<<8),o|=e[t],t+3<i&&(o+=e[t+3]<<24>>>0)):(t+1<i&&(o=e[t+1]<<16),t+2<i&&(o|=e[t+2]<<8),t+3<i&&(o|=e[t+3]),o+=e[t]<<24>>>0),o}function v(e,t,n,r){if(r||(N("boolean"==typeof n,"missing or invalid endian"),N(null!=t,"missing offset"),N(t+1<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var o=p(e,t,n,!0);return 32768&o?-1*(65535-o+1):o}}function y(e,t,n,r){if(r||(N("boolean"==typeof n,"missing or invalid endian"),N(null!=t,"missing offset"),N(t+3<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var o=h(e,t,n,!0);return 2147483648&o?-1*(4294967295-o+1):o}}function g(e,t,n,r){return r||(N("boolean"==typeof n,"missing or invalid endian"),N(t+3<e.length,"Trying to read beyond buffer length")),d.read(e,t,n,23,4)}function b(e,t,n,r){return r||(N("boolean"==typeof n,"missing or invalid endian"),N(t+7<e.length,"Trying to read beyond buffer length")),d.read(e,t,n,52,8)}function m(e,t,n,r,o){o||(N(null!=t,"missing value"),N("boolean"==typeof r,"missing or invalid endian"),N(null!=n,"missing offset"),N(n+1<e.length,"trying to write beyond buffer length"),k(t,65535));var i=e.length;if(!(i<=n))for(var a=0,u=Math.min(i-n,2);a<u;a++)e[n+a]=(t&255<<8*(r?a:1-a))>>>8*(r?a:1-a)}function _(e,t,n,r,o){o||(N(null!=t,"missing value"),N("boolean"==typeof r,"missing or invalid endian"),N(null!=n,"missing offset"),N(n+3<e.length,"trying to write beyond buffer length"),k(t,4294967295));var i=e.length;if(!(i<=n))for(var a=0,u=Math.min(i-n,4);a<u;a++)e[n+a]=t>>>8*(r?a:3-a)&255}function w(e,t,n,r,o){o||(N(null!=t,"missing value"),N("boolean"==typeof r,"missing or invalid endian"),N(null!=n,"missing offset"),N(n+1<e.length,"Trying to write beyond buffer length"),R(t,32767,-32768)),e.length<=n||m(e,0<=t?t:65535+t+1,n,r,o)}function O(e,t,n,r,o){o||(N(null!=t,"missing value"),N("boolean"==typeof r,"missing or invalid endian"),N(null!=n,"missing offset"),N(n+3<e.length,"Trying to write beyond buffer length"),R(t,2147483647,-2147483648)),e.length<=n||_(e,0<=t?t:4294967295+t+1,n,r,o)}function P(e,t,n,r,o){o||(N(null!=t,"missing value"),N("boolean"==typeof r,"missing or invalid endian"),N(null!=n,"missing offset"),N(n+3<e.length,"Trying to write beyond buffer length"),D(t,34028234663852886e22,-34028234663852886e22)),e.length<=n||d.write(e,t,n,r,23,4)}function S(e,t,n,r,o){o||(N(null!=t,"missing value"),N("boolean"==typeof r,"missing or invalid endian"),N(null!=n,"missing offset"),N(n+7<e.length,"Trying to write beyond buffer length"),D(t,17976931348623157e292,-17976931348623157e292)),e.length<=n||d.write(e,t,n,r,52,8)}n.Buffer=o,n.SlowBuffer=o,n.INSPECT_MAX_BYTES=50,o.poolSize=8192,o._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(e){return!1}}(),o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.byteLength=function(e,t){var n;switch(e+="",t||"utf8"){case"hex":n=e.length/2;break;case"utf8":case"utf-8":n=A(e).length;break;case"ascii":case"binary":case"raw":n=e.length;break;case"base64":n=I(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;default:throw new Error("Unknown encoding")}return n},o.concat=function(e,t){if(N(x(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new o(0);if(1===e.length)return e[0];if("number"!=typeof t)for(i=t=0;i<e.length;i++)t+=e[i].length;for(var n=new o(t),r=0,i=0;i<e.length;i++){var a=e[i];a.copy(n,r),r+=a.length}return n},o.prototype.write=function(e,t,n,r){var i;isFinite(t)?isFinite(n)||(r=n,n=void 0):(i=r,r=t,t=n,n=i),t=Number(t)||0;var a,u,s,c,l,f,d,p=this.length-t;switch((!n||p<(n=Number(n)))&&(n=p),r=String(r||"utf8").toLowerCase()){case"hex":a=function(e,t,n,r){n=Number(n)||0;var i=e.length-n;(!r||i<(r=Number(r)))&&(r=i);var a=t.length;N(a%2==0,"Invalid hex string"),a/2<r&&(r=a/2);for(var u=0;u<r;u++){var s=parseInt(t.substr(2*u,2),16);N(!isNaN(s),"Invalid hex string"),e[n+u]=s}return o._charsWritten=2*u,u}(this,e,t,n);break;case"utf8":case"utf-8":l=e,f=t,d=n,a=o._charsWritten=C(A(l),this,f,d);break;case"ascii":case"binary":a=function(e,t,n,r){return o._charsWritten=C(function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}(this,e,t,n);break;case"base64":u=e,s=t,c=n,a=o._charsWritten=C(I(u),this,s,c);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":a=function(e,t,n,r){return o._charsWritten=C(function(e){for(var t,n,r,o=[],i=0;i<e.length;i++)n=(t=e.charCodeAt(i))>>8,r=t%256,o.push(r),o.push(n);return o}(t),e,n,r)}(this,e,t,n);break;default:throw new Error("Unknown encoding")}return a},o.prototype.toString=function(e,t,n){var r,o,i,a,u=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(n=void 0!==n?Number(n):n=u.length)===t)return"";switch(e){case"hex":r=function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||r<n)&&(n=r);for(var o="",i=t;i<n;i++)o+=M(e[i]);return o}(u,t,n);break;case"utf8":case"utf-8":r=function(e,t,n){var r="",o="";n=Math.min(e.length,n);for(var i=t;i<n;i++)e[i]<=127?(r+=L(o)+String.fromCharCode(e[i]),o=""):o+="%"+e[i].toString(16);return r+L(o)}(u,t,n);break;case"ascii":case"binary":r=function(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;o++)r+=String.fromCharCode(e[o]);return r}(u,t,n);break;case"base64":o=u,a=n,r=0===(i=t)&&a===o.length?f.fromByteArray(o):f.fromByteArray(o.slice(i,a));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=function(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}(u,t,n);break;default:throw new Error("Unknown encoding")}return r},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.copy=function(e,t,n,r){if(n=n||0,r||0===r||(r=this.length),t=t||0,r!==n&&0!==e.length&&0!==this.length){N(n<=r,"sourceEnd < sourceStart"),N(0<=t&&t<e.length,"targetStart out of bounds"),N(0<=n&&n<this.length,"sourceStart out of bounds"),N(0<=r&&r<=this.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(i<100||!o._useTypedArrays)for(var a=0;a<i;a++)e[a+t]=this[a+n];else e._set(this.subarray(n,n+i),t)}},o.prototype.slice=function(e,t){var n=this.length;if(e=j(e,n,0),t=j(t,n,n),o._useTypedArrays)return o._augment(this.subarray(e,t));for(var r=t-e,i=new o(r,void 0,!0),a=0;a<r;a++)i[a]=this[a+e];return i},o.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},o.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},o.prototype.readUInt8=function(e,t){if(t||(N(null!=e,"missing offset"),N(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},o.prototype.readUInt16LE=function(e,t){return p(this,e,!0,t)},o.prototype.readUInt16BE=function(e,t){return p(this,e,!1,t)},o.prototype.readUInt32LE=function(e,t){return h(this,e,!0,t)},o.prototype.readUInt32BE=function(e,t){return h(this,e,!1,t)},o.prototype.readInt8=function(e,t){if(t||(N(null!=e,"missing offset"),N(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){return v(this,e,!0,t)},o.prototype.readInt16BE=function(e,t){return v(this,e,!1,t)},o.prototype.readInt32LE=function(e,t){return y(this,e,!0,t)},o.prototype.readInt32BE=function(e,t){return y(this,e,!1,t)},o.prototype.readFloatLE=function(e,t){return g(this,e,!0,t)},o.prototype.readFloatBE=function(e,t){return g(this,e,!1,t)},o.prototype.readDoubleLE=function(e,t){return b(this,e,!0,t)},o.prototype.readDoubleBE=function(e,t){return b(this,e,!1,t)},o.prototype.writeUInt8=function(e,t,n){n||(N(null!=e,"missing value"),N(null!=t,"missing offset"),N(t<this.length,"trying to write beyond buffer length"),k(e,255)),t>=this.length||(this[t]=e)},o.prototype.writeUInt16LE=function(e,t,n){m(this,e,t,!0,n)},o.prototype.writeUInt16BE=function(e,t,n){m(this,e,t,!1,n)},o.prototype.writeUInt32LE=function(e,t,n){_(this,e,t,!0,n)},o.prototype.writeUInt32BE=function(e,t,n){_(this,e,t,!1,n)},o.prototype.writeInt8=function(e,t,n){n||(N(null!=e,"missing value"),N(null!=t,"missing offset"),N(t<this.length,"Trying to write beyond buffer length"),R(e,127,-128)),t>=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},o.prototype.writeInt16LE=function(e,t,n){w(this,e,t,!0,n)},o.prototype.writeInt16BE=function(e,t,n){w(this,e,t,!1,n)},o.prototype.writeInt32LE=function(e,t,n){O(this,e,t,!0,n)},o.prototype.writeInt32BE=function(e,t,n){O(this,e,t,!1,n)},o.prototype.writeFloatLE=function(e,t,n){P(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){P(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){S(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){S(this,e,t,!1,n)},o.prototype.fill=function(e,t,n){if(e=e||0,t=t||0,n=n||this.length,"string"==typeof e&&(e=e.charCodeAt(0)),N("number"==typeof e&&!isNaN(e),"value is not a number"),N(t<=n,"end < start"),n!==t&&0!==this.length){N(0<=t&&t<this.length,"start out of bounds"),N(0<=n&&n<=this.length,"end out of bounds");for(var r=t;r<n;r++)this[r]=e}},o.prototype.inspect=function(){for(var e=[],t=this.length,r=0;r<t;r++)if(e[r]=M(this[r]),r===n.INSPECT_MAX_BYTES){e[r+1]="...";break}return"<Buffer "+e.join(" ")+">"},o.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(o._useTypedArrays)return new o(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t<n;t+=1)e[t]=this[t];return e.buffer};var E=o.prototype;function j(e,t,n){return"number"!=typeof e?n:t<=(e=~~e)?t:0<=e||0<=(e+=t)?e:0}function T(e){return(e=~~Math.ceil(+e))<0?0:e}function x(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function M(e){return e<16?"0"+e.toString(16):e.toString(16)}function A(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(e.charCodeAt(n));else{var o=n;55296<=r&&r<=57343&&n++;for(var i=encodeURIComponent(e.slice(o,n+1)).substr(1).split("%"),a=0;a<i.length;a++)t.push(parseInt(i[a],16))}}return t}function I(e){return f.toByteArray(e)}function C(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);o++)t[o+n]=e[o];return o}function L(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function k(e,t){N("number"==typeof e,"cannot write a non-number as a number"),N(0<=e,"specified a negative value for writing an unsigned value"),N(e<=t,"value is larger than maximum value for type"),N(Math.floor(e)===e,"value has a fractional component")}function R(e,t,n){N("number"==typeof e,"cannot write a non-number as a number"),N(e<=t,"value larger than maximum allowed value"),N(n<=e,"value smaller than minimum allowed value"),N(Math.floor(e)===e,"value has a fractional component")}function D(e,t,n){N("number"==typeof e,"cannot write a non-number as a number"),N(e<=t,"value larger than maximum allowed value"),N(n<=e,"value smaller than minimum allowed value")}function N(e,t){if(!e)throw new Error(t||"Failed assertion")}o._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=E.get,e.set=E.set,e.write=E.write,e.toString=E.toString,e.toLocaleString=E.toString,e.toJSON=E.toJSON,e.copy=E.copy,e.slice=E.slice,e.readUInt8=E.readUInt8,e.readUInt16LE=E.readUInt16LE,e.readUInt16BE=E.readUInt16BE,e.readUInt32LE=E.readUInt32LE,e.readUInt32BE=E.readUInt32BE,e.readInt8=E.readInt8,e.readInt16LE=E.readInt16LE,e.readInt16BE=E.readInt16BE,e.readInt32LE=E.readInt32LE,e.readInt32BE=E.readInt32BE,e.readFloatLE=E.readFloatLE,e.readFloatBE=E.readFloatBE,e.readDoubleLE=E.readDoubleLE,e.readDoubleBE=E.readDoubleBE,e.writeUInt8=E.writeUInt8,e.writeUInt16LE=E.writeUInt16LE,e.writeUInt16BE=E.writeUInt16BE,e.writeUInt32LE=E.writeUInt32LE,e.writeUInt32BE=E.writeUInt32BE,e.writeInt8=E.writeInt8,e.writeInt16LE=E.writeInt16LE,e.writeInt16BE=E.writeInt16BE,e.writeInt32LE=E.writeInt32LE,e.writeInt32BE=E.writeInt32BE,e.writeFloatLE=E.writeFloatLE,e.writeFloatBE=E.writeFloatBE,e.writeDoubleLE=E.writeDoubleLE,e.writeDoubleBE=E.writeDoubleBE,e.fill=E.fill,e.inspect=E.inspect,e.toArrayBuffer=E.toArrayBuffer,e}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(e,t,n){(function(n,r,o,i,a,u,s,c,l){var f=new(o=e("buffer").Buffer)(4);f.fill(0),t.exports={hash:function(e,t,n,r){return o.isBuffer(e)||(e=new o(e)),function(e,t,n){for(var r=new o(t),i=n?r.writeInt32BE:r.writeInt32LE,a=0;a<e.length;a++)i.call(r,e[a],4*a,!0);return r}(t(function(e,t){var n;e.length%4!=0&&(n=e.length+(4-e.length%4),e=o.concat([e,f],n));for(var r=[],i=t?e.readInt32BE:e.readInt32LE,a=0;a<e.length;a+=4)r.push(i.call(e,a));return r}(e,r),8*e.length),n,r)}}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],5:[function(e,t,n){(function(t,r,o,i,a,u,s,c,l){o=e("buffer").Buffer;var f=e("./sha"),d=e("./sha256"),p=e("./rng"),h={sha1:f,sha256:d,md5:e("./md5")},v=64,y=new o(v);function g(e,t){var n=h[e=e||"sha1"],r=[];return n||b("algorithm:",e,"is not yet supported"),{update:function(e){return o.isBuffer(e)||(e=new o(e)),r.push(e),e.length,this},digest:function(e){var i=o.concat(r),a=t?function(e,t,n){o.isBuffer(t)||(t=new o(t)),o.isBuffer(n)||(n=new o(n)),t.length>v?t=e(t):t.length<v&&(t=o.concat([t,y],v));for(var r=new o(v),i=new o(v),a=0;a<v;a++)r[a]=54^t[a],i[a]=92^t[a];var u=e(o.concat([r,n]));return e(o.concat([i,u]))}(n,t,i):n(i);return r=null,e?a.toString(e):a}}}function b(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}y.fill(0),n.createHash=function(e){return g(e)},n.createHmac=g,n.randomBytes=function(e,t){if(!t||!t.call)return new o(p(e));try{t.call(this,void 0,new o(p(e)))}catch(e){t(e)}},function(e,t){for(var n in e)t(e[n])}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],(function(e){n[e]=function(){b("sorry,",e,"is not implemented yet")}}))}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:10}],6:[function(e,t,n){(function(n,r,o,i,a,u,s,c,l){var f=e("./helpers");function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var u=n,s=r,c=o,l=i;n=h(n,r,o,i,e[a+0],7,-680876936),i=h(i,n,r,o,e[a+1],12,-389564586),o=h(o,i,n,r,e[a+2],17,606105819),r=h(r,o,i,n,e[a+3],22,-1044525330),n=h(n,r,o,i,e[a+4],7,-176418897),i=h(i,n,r,o,e[a+5],12,1200080426),o=h(o,i,n,r,e[a+6],17,-1473231341),r=h(r,o,i,n,e[a+7],22,-45705983),n=h(n,r,o,i,e[a+8],7,1770035416),i=h(i,n,r,o,e[a+9],12,-1958414417),o=h(o,i,n,r,e[a+10],17,-42063),r=h(r,o,i,n,e[a+11],22,-1990404162),n=h(n,r,o,i,e[a+12],7,1804603682),i=h(i,n,r,o,e[a+13],12,-40341101),o=h(o,i,n,r,e[a+14],17,-1502002290),n=v(n,r=h(r,o,i,n,e[a+15],22,1236535329),o,i,e[a+1],5,-165796510),i=v(i,n,r,o,e[a+6],9,-1069501632),o=v(o,i,n,r,e[a+11],14,643717713),r=v(r,o,i,n,e[a+0],20,-373897302),n=v(n,r,o,i,e[a+5],5,-701558691),i=v(i,n,r,o,e[a+10],9,38016083),o=v(o,i,n,r,e[a+15],14,-660478335),r=v(r,o,i,n,e[a+4],20,-405537848),n=v(n,r,o,i,e[a+9],5,568446438),i=v(i,n,r,o,e[a+14],9,-1019803690),o=v(o,i,n,r,e[a+3],14,-187363961),r=v(r,o,i,n,e[a+8],20,1163531501),n=v(n,r,o,i,e[a+13],5,-1444681467),i=v(i,n,r,o,e[a+2],9,-51403784),o=v(o,i,n,r,e[a+7],14,1735328473),n=y(n,r=v(r,o,i,n,e[a+12],20,-1926607734),o,i,e[a+5],4,-378558),i=y(i,n,r,o,e[a+8],11,-2022574463),o=y(o,i,n,r,e[a+11],16,1839030562),r=y(r,o,i,n,e[a+14],23,-35309556),n=y(n,r,o,i,e[a+1],4,-1530992060),i=y(i,n,r,o,e[a+4],11,1272893353),o=y(o,i,n,r,e[a+7],16,-155497632),r=y(r,o,i,n,e[a+10],23,-1094730640),n=y(n,r,o,i,e[a+13],4,681279174),i=y(i,n,r,o,e[a+0],11,-358537222),o=y(o,i,n,r,e[a+3],16,-722521979),r=y(r,o,i,n,e[a+6],23,76029189),n=y(n,r,o,i,e[a+9],4,-640364487),i=y(i,n,r,o,e[a+12],11,-421815835),o=y(o,i,n,r,e[a+15],16,530742520),n=g(n,r=y(r,o,i,n,e[a+2],23,-995338651),o,i,e[a+0],6,-198630844),i=g(i,n,r,o,e[a+7],10,1126891415),o=g(o,i,n,r,e[a+14],15,-1416354905),r=g(r,o,i,n,e[a+5],21,-57434055),n=g(n,r,o,i,e[a+12],6,1700485571),i=g(i,n,r,o,e[a+3],10,-1894986606),o=g(o,i,n,r,e[a+10],15,-1051523),r=g(r,o,i,n,e[a+1],21,-2054922799),n=g(n,r,o,i,e[a+8],6,1873313359),i=g(i,n,r,o,e[a+15],10,-30611744),o=g(o,i,n,r,e[a+6],15,-1560198380),r=g(r,o,i,n,e[a+13],21,1309151649),n=g(n,r,o,i,e[a+4],6,-145523070),i=g(i,n,r,o,e[a+11],10,-1120210379),o=g(o,i,n,r,e[a+2],15,718787259),r=g(r,o,i,n,e[a+9],21,-343485551),n=b(n,u),r=b(r,s),o=b(o,c),i=b(i,l)}return Array(n,r,o,i)}function p(e,t,n,r,o,i){return b((a=b(b(t,e),b(r,i)))<<(u=o)|a>>>32-u,n);var a,u}function h(e,t,n,r,o,i,a){return p(t&n|~t&r,e,t,o,i,a)}function v(e,t,n,r,o,i,a){return p(t&r|n&~r,e,t,o,i,a)}function y(e,t,n,r,o,i,a){return p(t^n^r,e,t,o,i,a)}function g(e,t,n,r,o,i,a){return p(n^(t|~r),e,t,o,i,a)}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}t.exports=function(e){return f.hash(e,d,16)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(e,t,n){(function(e,n,r,o,i,a,u,s,c){var l;l=function(e){for(var t,n=new Array(e),r=0;r<e;r++)0==(3&r)&&(t=4294967296*Math.random()),n[r]=t>>>((3&r)<<3)&255;return n},t.exports=l}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(e,t,n){(function(n,r,o,i,a,u,s,c,l){var f=e("./helpers");function d(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n,r,o,i,a,u=Array(80),s=1732584193,c=-271733879,l=-1732584194,f=271733878,d=-1009589776,v=0;v<e.length;v+=16){for(var y=s,g=c,b=l,m=f,_=d,w=0;w<80;w++){u[w]=w<16?e[v+w]:h(u[w-3]^u[w-8]^u[w-14]^u[w-16],1);var O=p(p(h(s,5),(o=c,i=l,a=f,(r=w)<20?o&i|~o&a:!(r<40)&&r<60?o&i|o&a|i&a:o^i^a)),p(p(d,u[w]),(n=w)<20?1518500249:n<40?1859775393:n<60?-1894007588:-899497514));d=f,f=l,l=h(c,30),c=s,s=O}s=p(s,y),c=p(c,g),l=p(l,b),f=p(f,m),d=p(d,_)}return Array(s,c,l,f,d)}function p(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function h(e,t){return e<<t|e>>>32-t}t.exports=function(e){return f.hash(e,d,20,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(e,t,n){(function(n,r,o,i,a,u,s,c,l){function f(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function d(e,t){return e>>>t|e<<32-t}function p(e,t){var n,r,o,i,a,u,s,c,l,p,h=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),v=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),y=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var g,b,m,_,w,O,P,S,E=0;E<e.length;E+=16){n=v[0],r=v[1],o=v[2],i=v[3],a=v[4],u=v[5],s=v[6],c=v[7];for(var j=0;j<64;j++)y[j]=j<16?e[j+E]:f(f(f(d(S=y[j-2],17)^d(S,19)^S>>>10,y[j-7]),d(P=y[j-15],7)^d(P,18)^P>>>3),y[j-16]),l=f(f(f(f(c,d(O=a,6)^d(O,11)^d(O,25)),(w=a)&u^~w&s),h[j]),y[j]),p=f(d(_=n,2)^d(_,13)^d(_,22),(g=n)&(b=r)^g&(m=o)^b&m),c=s,s=u,u=a,a=f(i,l),i=o,o=r,r=n,n=f(l,p);v[0]=f(n,v[0]),v[1]=f(r,v[1]),v[2]=f(o,v[2]),v[3]=f(i,v[3]),v[4]=f(a,v[4]),v[5]=f(u,v[5]),v[6]=f(s,v[6]),v[7]=f(c,v[7])}return v}var h=e("./helpers");t.exports=function(e){return h.hash(e,p,32,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],10:[function(e,t,n){(function(e,n,r,o,i,a,u,s,c){function l(){}(e=t.exports={}).nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var n=[];return window.addEventListener("message",(function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0<n.length&&n.shift()())}),!0),function(e){n.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=l,e.addListener=l,e.once=l,e.off=l,e.removeListener=l,e.removeAllListeners=l,e.emit=l,e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:10}],11:[function(e,t,n){(function(e,t,r,o,i,a,u,s,c){n.read=function(e,t,n,r,o){var i,a,u=8*o-r-1,s=(1<<u)-1,c=s>>1,l=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-l)-1,p>>=-l,l+=u;0<l;i=256*i+e[t+f],f+=d,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;0<l;a=256*a+e[t+f],f+=d,l-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},n.write=function(e,t,n,r,o,i){var a,u,s,c=8*i-o-1,l=(1<<c)-1,f=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),2<=(t+=1<=a+f?d/s:d*Math.pow(2,1-f))*s&&(a++,s/=2),l<=a+f?(u=0,a=l):1<=a+f?(u=(t*s-1)*Math.pow(2,o),a+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));8<=o;e[n+p]=255&u,p+=h,u/=256,o-=8);for(a=a<<o|u,c+=o;0<c;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*v}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/ieee754/index.js","/node_modules/ieee754")},{buffer:3,lYpoI2:10}]},{},[1])(1)},5983:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(58),t)},58:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AnalyticsEventName=void 0,(n=t.AnalyticsEventName||(t.AnalyticsEventName={})).VideoView="videoView",n.VideoPlay="videoPlay",n.AdView="adView"},6672:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},u=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.signUp=t.signOut=t.signInWithTenant=t.signInWithEmailAndPassword=t.signInWithCustomToken=t.setTenantId=t.resetPassword=t.isUserInitialized=t.onUserChange=void 0;var c,l=n(1741),f=a(n(6256)),d=n(9786),p=n(699),h=n(2799),v=null,y=function(e,t){if("function"!=typeof e)throw new Error("bug: pendingGuard got arg which is not a function");return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return u(void 0,void 0,void 0,(function(){var r;return s(this,(function(o){switch(o.label){case 0:if(v)throw new Error('Function "'+v+'" is pending, other auth functions should not be used until it finishes');r=void 0,o.label=1;case 1:return o.trys.push([1,,3,4]),v=t,[4,e.apply(void 0,n)];case 2:return r=o.sent(),[3,4];case 3:return v=null,[7];case 4:return[2,r]}}))}))}},g=[new Promise((function(e){c=e})),function(e){l.FirebaseEnvironment.auth.tenantId=e,c(e)}],b=g[0],m=g[1];t.onUserChange=function(e){l.FirebaseEnvironment.auth.onAuthStateChanged((function(t){return u(void 0,void 0,void 0,(function(){var n,r;return s(this,(function(o){switch(o.label){case 0:return n=null,t?[4,(0,p.getCustomClaims)(t)]:[3,2];case 1:r=o.sent().tivioUserId,n=l.FirebaseEnvironment.firestore.doc("users/"+r),o.label=2;case 2:return e(n),[2]}}))}))}))},t.isUserInitialized=(0,d.once)((function(){return new Promise((function(e){(0,t.onUserChange)(e)}))})),t.resetPassword=function(e){return u(void 0,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return[4,b];case 1:return t=n.sent(),[4,f.resetPassword({email:e,tenantId:t})];case 2:return n.sent(),[2]}}))}))},t.setTenantId=function(e){if(null!=l.FirebaseEnvironment.auth.tenantId)throw new Error("setTenantId() can be called only one time.");m(e)};var _=function(e){return u(void 0,void 0,Promise,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return[4,l.FirebaseEnvironment.auth.signInWithCustomToken(e)];case 1:if(!(t=n.sent().user))throw new Error("signInWithCustomToken failed for tenant "+l.FirebaseEnvironment.auth.tenantId);return[4,(0,p.getCustomClaims)(t)];case 2:return n.sent(),[2,t.uid]}}))}))},w=function(e,n){return u(void 0,void 0,Promise,(function(){var r,o,i;return s(this,(function(a){switch(a.label){case 0:return[4,b];case 1:return r=a.sent(),[4,(0,t.isUserInitialized)()];case 2:if(a.sent(),l.FirebaseEnvironment.auth.currentUser)throw new Error("Already signed in");return(null===(i=(0,h.getTenantInfo)(r))||void 0===i?void 0:i.name)===h.TenantName.oktagon?[3,3]:[3,5];case 3:return[4,O({email:e,password:n,tenantId:r})];case 4:return[2,a.sent()];case 5:return[4,l.FirebaseEnvironment.auth.signInWithEmailAndPassword(e,n)];case 6:if(!(o=a.sent().user))throw new Error("signInWithEmailAndPassword failed for user "+e+" and tenant "+r);return[4,(0,p.getCustomClaims)(o)];case 7:return a.sent(),[2,o.uid]}}))}))},O=function(e){return u(void 0,void 0,Promise,(function(){var n,o;return s(this,(function(i){switch(i.label){case 0:return[4,b];case 1:return n=i.sent(),[4,(0,t.isUserInitialized)()];case 2:if(i.sent(),l.FirebaseEnvironment.auth.currentUser)throw new Error("Already signed in");return[4,f.signInWithTenant(r(r({},e),{tenantId:n}))];case 3:return o=i.sent(),[2,_(o)]}}))}))};t.signInWithCustomToken=y(_,"signInWithCustomToken"),t.signInWithEmailAndPassword=y(w,"signInWithEmailAndPassword"),t.signInWithTenant=y(O,"signInWithTenant"),t.signOut=y((function(){return u(void 0,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,b];case 1:return e.sent(),[4,(0,t.isUserInitialized)()];case 2:return e.sent(),[4,l.FirebaseEnvironment.auth.signOut()];case 3:return e.sent(),[2]}}))}))}),"signOut"),t.signUp=y((function(e,t,n,r,o){return u(void 0,void 0,void 0,(function(){var i;return s(this,(function(a){switch(a.label){case 0:return[4,b];case 1:return i=a.sent(),[4,f.signUpWithTenant({email:e,password:t,referralToken:o,tenantId:i,username:n,phoneNumber:r})];case 2:return a.sent(),[2,w(e,t)]}}))}))}),"signUp")},699:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.getCustomClaims=void 0;var i=n(1741),a=new(n(3631).Logger)("customClaims");t.getCustomClaims=function(e){return r(void 0,void 0,Promise,(function(){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),[4,e.getIdTokenResult()];case 1:return(t=r.sent()).claims.tivioUserId?[3,5]:(a.info("Custom claims not found. Generating new..."),[4,i.FirebaseEnvironment.functions.httpsCallable("setCustomClaims")()]);case 2:return r.sent(),[4,e.getIdToken(!0)];case 3:return r.sent(),[4,e.getIdTokenResult()];case 4:if(!(t=r.sent()).claims.tivioUserId)throw new Error("Getting custom claims failed. User probably hasn't corresponding document in Firestore.");r.label=5;case 5:return a.info("Custom claims:",t.claims),[2,t.claims];case 6:throw n=r.sent(),new Error(n);case 7:return[2]}}))}))}},2773:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6672),t),o(n(2799),t),o(n(9418),t)},2799:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.getTenantInfo=t.TenantName=void 0,function(e){e.grape="grape",e.oktagon="oktagon",e.o2Demo="o2_demo"}(n=t.TenantName||(t.TenantName={}));var r=[{id:"Xz3t0GHDgmPwjHRKt1Ga-4vicx",name:n.grape,stage:"production"},{id:"XhkAHxcqCBfqOXFcqe8s-mi6aw",name:n.grape,stage:"dev"},{id:"XA6ZOtuDD90uHsRkXNyj-e2xvz",name:n.oktagon,stage:"production"},{id:"Xo6dD3w9EPgPBsyclQaG-xdlns",name:n.oktagon,stage:"dev"},{id:"X0Q4o9TigUUTNe6TYAqR-j5sg1",name:n.o2Demo,stage:"production"},{id:"XQVQisSMOXeDswNOFwwk-kw39b",name:n.o2Demo,stage:"dev"}];t.getTenantInfo=function(e){var t;return null!==(t=r.find((function(t){return t.id===e})))&&void 0!==t?t:null}},9418:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},44:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerAppInstance=t.setCurrentAppInstance=t.getCurrentFirebaseAppInstance=t.getFirebaseAppInstance=void 0;var n={},r=null;t.getCurrentFirebaseAppInstance=function(){if(!r)throw new Error("Firebase app has not been initialized yet. First call registerAppInstance()");return r};var o=function(e){var t;return null!==(t=n[e])&&void 0!==t?t:null};t.getFirebaseAppInstance=o,t.registerAppInstance=function(e,t){n[e]=t,r||i(e)};var i=function(e){var t=o(e);if(!t)throw new Error("Firebase app instance for environment ("+e+") doesn't exist");r=t};t.setCurrentAppInstance=i},5280:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Environment=void 0,function(e){e.default="default",e.development="development",e.production="production",e.test="test"}(n||(n={})),t.Environment=n},9896:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCurrentEnvironment=t.setFirebaseEnvironment=t.initFirebaseEnvironment=t.FirebaseEnvironment=void 0;var r=n(2043),o=n(534),i=n(5055),a=n(44),u=n(5280);(0,r.setDefaultLevel)("error");var s={},c=null,l=function(){function e(e){this.environmentName=e,this.cachedDocuments={},this.cachedQueries={},s[e]=this,c||d(e)}return e.getCurrentEnvironment=function(){return p()},e.getDocumentWithPath=function(e,t){return p().getDocumentWithPath(e,t)},e.getEnvironment=function(e){return f(e)},e.getQueryWithParams=function(e){return p().getQueryWithParams(e)},e.setEnvironment=function(e,t){void 0===t&&(t=!1);var n=c;d(e),t&&(null==n||n.clearCache())},Object.defineProperty(e,"auth",{get:function(){return p().auth},enumerable:!1,configurable:!0}),Object.defineProperty(e,"firestore",{get:function(){return p().firestore},enumerable:!1,configurable:!0}),Object.defineProperty(e,"functions",{get:function(){return p().functions},enumerable:!1,configurable:!0}),Object.defineProperty(e,"installations",{get:function(){return p().installations},enumerable:!1,configurable:!0}),Object.defineProperty(e,"environmentName",{get:function(){return p().name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"appInstance",{get:function(){var e=(0,a.getFirebaseAppInstance)(this.environmentName);if(!e)throw new Error("Firebase app instance does not exist");return e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"auth",{get:function(){return this.appInstance.auth()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firestore",{get:function(){return this.appInstance.firestore()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"functions",{get:function(){return this.appInstance.functions("europe-west3")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"installations",{get:function(){return this.appInstance.installations()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.environmentName},enumerable:!1,configurable:!0}),e.prototype.clearCache=function(){this.cachedDocuments={},this.cachedQueries={}},e.prototype.getDocumentWithPath=function(e,t){return this.cachedDocuments[e]||(this.cachedDocuments[e]=new o.Document(this,e,t)),this.cachedDocuments[e]},e.prototype.getQueryWithParams=function(e){var t=i.PaginatedQuery.hashParams(e);return this.cachedQueries[t]||(this.cachedQueries[t]=new i.PaginatedQuery(this,e)),this.cachedQueries[t]},e}();t.FirebaseEnvironment=l;var f=function(e){var t;return null!==(t=s[e])&&void 0!==t?t:null};t.initFirebaseEnvironment=function(e,t){if(void 0===t&&(t=u.Environment.default),function(e){return null!=f(e)}(t))throw new Error('Environment "'+t+'" already exists');(0,a.registerAppInstance)(t,e);var n=new l(t);s[t]=n};var d=function(e){var t=f(e);if(!t)throw new Error('Environment "'+e+'" does not exist');c=t,(0,a.setCurrentAppInstance)(e)};t.setFirebaseEnvironment=d;var p=function(){if(!c)throw new Error("Environment not been initialized yet. First call initFirebaseEnvironment()");return c};t.getCurrentEnvironment=p},1741:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FirebaseEnvironment=void 0;var r=n(9896);Object.defineProperty(t,"FirebaseEnvironment",{enumerable:!0,get:function(){return r.FirebaseEnvironment}})},666:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCollectionWithPath=void 0;var r=n(5256);t.getCollectionWithPath=function(e){return new r.Collection(e)}},3363:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDocumentWithPath=t.getDocumentWithCollectionPath=t.getDocumentWithCollection=void 0;var r=n(9896);t.getDocumentWithCollection=function(e,t){var n=(0,r.getCurrentEnvironment)().firestore.collection(e).doc(t).path;return o(n)};var o=function(e,t){return(0,r.getCurrentEnvironment)().getDocumentWithPath(e,t)};t.getDocumentWithPath=o,t.getDocumentWithCollectionPath=function(e,t){var n=(0,r.getCurrentEnvironment)().firestore.collection(e).doc().path;return(0,r.getCurrentEnvironment)().getDocumentWithPath(n,t)}},9269:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(666),t),o(n(3363),t),o(n(7430),t)},7430:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getQueryWithOrderBy=t.convertRowWhereFilterToWhereFilter=t.convertRowFilterToFilter=t.getQueryByFilter=t.getQueryWithWhereFilters=t.getQueryWithParams=void 0;var r=n(9896);t.getQueryWithParams=function(e){return(0,r.getCurrentEnvironment)().getQueryWithParams(e)};var o=function(e,t){return(null==e?void 0:e.length)?e.reduce((function(e,t){return Array.isArray(t.value)&&0===t.value.length?e:e.where(t.field,t.operator,t.value)}),t):t};t.getQueryWithWhereFilters=o,t.getQueryByFilter=function(e,t){var n=o(e.where,t);return a(e.orderBy,n)},t.convertRowFilterToFilter=function(e){var t,n;return{where:null!==(n=null===(t=e.where)||void 0===t?void 0:t.map(i))&&void 0!==n?n:[],orderBy:e.orderBy?[{field:e.orderBy.fieldPath,directionStr:e.orderBy.directionStr}]:[],limit:e.limit}};var i=function(e){return{field:e.fieldPath,operator:e.opStr,value:e.value}};t.convertRowWhereFilterToWhereFilter=i;var a=function(e,t){return(null==e?void 0:e.length)?e.reduce((function(e,t){return e.orderBy(t.field,t.directionStr)}),t):t};t.getQueryWithOrderBy=a},5256:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Collection=void 0;var i=n(44),a=n(3363);t.Collection=function(e){var t=this;this.createDocument=function(e){var n=e?t._ref.doc(e):t._ref.doc();return(0,a.getDocumentWithPath)(n.path)},this.getDocumentFromSnapshot=function(e){return r(t,void 0,Promise,(function(){var t;return o(this,(function(n){switch(n.label){case 0:return[4,(t=(0,a.getDocumentWithPath)(e.ref.path)).updateCache(e.data())];case 1:return n.sent(),[2,t]}}))}))},this.getDocumentsFromQuerySnapshot=function(e){return r(t,void 0,Promise,(function(){var t,n=this;return o(this,(function(i){switch(i.label){case 0:return t={},[4,Promise.all(e.docs.map((function(e){return r(n,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.getDocumentFromSnapshot(e)];case 1:return[2,t.sent()]}}))}))})))];case 1:return[2,(t.data=i.sent(),t.lastCursor=e.size&&e.docs[e.size-1]||null,t)]}}))}))},this.getDocumentsQuery=function(e,n,r){void 0===e&&(e=[]);var o=e.reduce((function(e,t){return e.where(t.field,t.operator,t.value)}),t._ref);return n&&(o=o.orderBy(n.field,n.directionStr)),t.getDocumentsQueryAfter(o,r)},this.getDocumentsQueryAfter=function(e,t,n){return(n&&e.startAfter(n)||e).limit(Math.min(Math.max(t||10,1),10))},this.getDocuments=function(e,n,i){return void 0===e&&(e=[]),r(t,void 0,Promise,(function(){var t,a,u,s=this;return o(this,(function(c){switch(c.label){case 0:return t=this.getDocumentsQuery(e,n,i),u=this.getDocumentsFromQuerySnapshot,[4,t.get()];case 1:return[4,u.apply(this,[c.sent()])];case 2:return[2,{data:(a=c.sent()).data,getNext:function(e){return r(s,void 0,void 0,(function(){var n,r,u,s,c;return o(this,(function(o){switch(o.label){case 0:return a.lastCursor?(s=this.getDocumentsFromQuerySnapshot,[4,this.getDocumentsQueryAfter(t,e||i,a.lastCursor).get()]):[2,[]];case 1:return[4,s.apply(this,[o.sent()])];case 2:return n=o.sent(),r=n.data,u=n.lastCursor,(c=a.data).push.apply(c,r),a.lastCursor=u,[2,r]}}))}))}}]}}))}))},this._ref=(0,i.getCurrentFirebaseAppInstance)().firestore().collection(e)}},534:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Document=void 0;var a=new(n(3631).Logger)("document"),u=function(){function e(e,t,n){var u=this;this.firebaseEnvironment=e,this._data=null,this._fetchPromise=null,this._exists=null,this.cancelSubscription=null,this.delete=function(){return o(u,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this.ref.delete()];case 1:return e.sent(),[2]}}))}))},this.fetch=function(e){return void 0===e&&(e=!1),o(u,void 0,Promise,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this.get(e)];case 1:return[2,t.sent()]}}))}))},this.get=function(e){return void 0===e&&(e=!1),o(u,void 0,Promise,(function(){var t,n=this;return i(this,(function(r){switch(r.label){case 0:return(!this._fetchPromise&&!this.data||e)&&(this._fetchPromise=new Promise((function(e,t){n.ref.get().then((function(t){n.updateCache(t.data()),n._exists=t.exists,e(n.data)})).catch(t)}))),(t=this._fetchPromise)?[4,this._fetchPromise]:[3,2];case 1:t=r.sent(),r.label=2;case 2:return[2,t||this.data]}}))}))},this.subscribe=function(){return o(u,void 0,void 0,(function(){var e=this;return i(this,(function(t){return this.isSubscribing||(a.info("Started subscribing to document changes ("+this.ref.path+")"),this.cancelSubscription=this.ref.onSnapshot({next:function(t){e.updateCache(t.data())}})),[2]}))}))},this.unsubscribe=function(){u.cancelSubscription&&(u.cancelSubscription(),u.cancelSubscription=null,a.info("Stopped subscribing to document changes ("+u.ref.path+")"))},this.update=function(e,t){return void 0===t&&(t=null),o(u,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return e?(this.updateCache(e,t),[4,this.ref.set(e,t||{})]):[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},this.updateCache=function(e,t){void 0===t&&(t=null),e&&(t?t.merge&&(u._data=r(r({},u._data),e)):u._data=e)},this.ref=e.firestore.doc(t),this.updateCache(n)}return Object.defineProperty(e.prototype,"id",{get:function(){return this.ref.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSubscribing",{get:function(){return null!==this.cancelSubscription},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLoaded",{get:function(){return null!=this._data||!1===this._exists},enumerable:!1,configurable:!0}),e}();t.Document=u},5474:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.runTransaction=t.Document=t.Collection=t.batch=t.admin=void 0;var i=n(5256);Object.defineProperty(t,"Collection",{enumerable:!0,get:function(){return i.Collection}});var a=n(534);Object.defineProperty(t,"Document",{enumerable:!0,get:function(){return a.Document}});var u=n(4679);Object.defineProperty(t,"batch",{enumerable:!0,get:function(){return u.batch}}),Object.defineProperty(t,"runTransaction",{enumerable:!0,get:function(){return u.runTransaction}});var s={batch:u.batchAdmin,runTransaction:u.runTransactionAdmin,collection:u.collectionAdmin};t.admin=s,o(n(9269),t),o(n(5055),t),o(n(7540),t),o(n(9807),t)},1174:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6040:function(e,t){"use strict";var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.AdProfileType=t.OnlineSkippability=t.StreamSkippability=void 0,(o=t.StreamSkippability||(t.StreamSkippability={})).SKIPPABLE="SKIPPABLE",o.NOT_SKIPPABLE="NOT_SKIPPABLE",o.AUTO_SKIP="AUTO_SKIP",(r=t.OnlineSkippability||(t.OnlineSkippability={})).SKIPPABLE="SKIPPABLE",r.NOT_SKIPPABLE="NOT_SKIPPABLE",r.VAST_BASED="VAST_BASED",(n=t.AdProfileType||(t.AdProfileType={})).ONLINE="ONLINE",n.STREAM="STREAM"},4248:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8298:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1174),t),o(n(4248),t),o(n(6040),t)},5164:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5427:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ASSET_PRESET_PLACEMENTS=t.AssetPresetPlacement=void 0,function(e){e.TV_CHANNEL="tvChannel",e.CHANNEL="channel",e.SECTION="section",e.VIDEO="video",e.TAG="tag"}(n=t.AssetPresetPlacement||(t.AssetPresetPlacement={})),t.ASSET_PRESET_PLACEMENTS=Object.values(n)},2399:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5164),t),o(n(5427),t)},9970:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6172:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2082:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(9970),t),o(n(6172),t)},6205:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8458:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6205),t)},8372:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalConfigurationType=void 0,(t.GlobalConfigurationType||(t.GlobalConfigurationType={})).SOURCE_DOMAINS="sourceDomains"},9807:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(8298),t),o(n(2399),t),o(n(8458),t),o(n(2082),t),o(n(8372),t),o(n(2867),t),o(n(6241),t),o(n(8362),t),o(n(721),t),o(n(7031),t),o(n(735),t),o(n(1273),t),o(n(5296),t),o(n(2665),t),o(n(5532),t),o(n(925),t),o(n(5137),t),o(n(6195),t),o(n(9969),t),o(n(5628),t),o(n(7888),t),o(n(9574),t),o(n(2585),t),o(n(4327),t),o(n(9279),t)},2867:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5900),t),o(n(7083),t)},5900:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7083:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.InviteType=t.InviteState=void 0,(r=t.InviteState||(t.InviteState={})).CANCELLED="CANCELLED",r.CLOSED="CLOSED",r.EXPIRED="EXPIRED",r.NEW="NEW",(n=t.InviteType||(t.InviteType={})).ADMIN="ADMIN",n.PAIR_ACCOUNTS="PAIR_ACCOUNTS",n.SINGLE_SIGN_ON="SINGLE_SIGN_ON"},6241:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5671),t)},5671:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MarkerType=void 0,(n=t.MarkerType||(t.MarkerType={})).AD="AD",n.AD_SEGMENT="AD_SEGMENT",n.CHAPTER="CHAPTER",n.CREDITS="CREDITS",n.INTRO="INTRO"},8362:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(7140),t)},7140:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},721:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1725),t),o(n(7421),t),o(n(7302),t)},1725:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7421:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MonetizationPlacementType=void 0,(n=t.MonetizationPlacementType||(t.MonetizationPlacementType={})).VIDEO="video",n.SECTION="section",n.CHANNEL="channel",n.CONDITION="condition",n.TV_CHANNEL="tvChannel"},7302:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7031:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(9422),t),o(n(5001),t)},9422:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5001:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},735:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(2180),t)},2180:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1273:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(193),t),o(n(5034),t)},193:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseDocumentGateway=void 0,(n=t.PurchaseDocumentGateway||(t.PurchaseDocumentGateway={})).qerko="qerko",n.oktagon="oktagon",n.voucher="voucher",n.comgate="comgate"},5034:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5296:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1573),t)},1573:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2665:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4855),t),o(n(6315),t),o(n(2954),t)},4855:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6315:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.RowOrderByFieldPath=t.RowWhereFilterFieldPath=t.RowFilterCollection=void 0,(r=t.RowFilterCollection||(t.RowFilterCollection={})).VIDEOS="videos",r.TAGS="tags",r.TV_CHANNELS="tvChannels",(n=t.RowWhereFilterFieldPath||(t.RowWhereFilterFieldPath={})).CREATED="created",n.TAGS="tags",n.TAG_TYPE_REF="tagTypeRef",n.TYPE="type",n.CONTENT_TYPE="contentType",(t.RowOrderByFieldPath||(t.RowOrderByFieldPath={})).CREATED="created"},2954:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ORDER_BY_DIRECTIONS=t.WHERE_FILTER_OPERATORS=t.SCREEN_ROW_TYPES=void 0,t.SCREEN_ROW_TYPES=["filter","custom","continueToWatch","favourites"],t.WHERE_FILTER_OPERATORS=["<","<=","==","!=",">=",">","array-contains","in","array-contains-any","not-in"],t.ORDER_BY_DIRECTIONS=["desc","asc"]},5532:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4539),t)},4539:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},925:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(2966),t)},2966:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6195:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.ContentType=t.DurationUnits=void 0,(r=t.DurationUnits||(t.DurationUnits={})).DAY="day",r.MONTH="month",(n=t.ContentType||(t.ContentType={})).CHANNEL="channel",n.EPISODE="episode",n.MOVIE="movie",n.MAGAZINE="magazine",n.PLAYLIST="playlist",n.SHOW="show",n.TRAILER="trailer"},5137:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4543),t)},4543:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9969:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1011),t),o(n(4773),t),o(n(691),t)},1011:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4773:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.TagSimplicityType=t.TagMetadataFieldType=void 0,(r=t.TagMetadataFieldType||(t.TagMetadataFieldType={})).STRING="STRING",r.TRANSLATION="TRANSLATION",r.NUMBER="NUMBER",r.BOOLEAN="BOOLEAN",r.AVAILABLE_SEASONS="AVAILABLE_SEASONS",(n=t.TagSimplicityType||(t.TagSimplicityType={})).SIMPLE="SIMPLE",n.COMPOSED="COMPOSED"},691:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TAG_LANDSCAPE_COVER_ASSET_NAME=t.TAG_PORTRAIT_COVER_ASSET_NAME=t.TAG_COVER_ASSET_NAME=t.TAG_DETAIL_BANNER_ASSET_NAME=t.TAG_BANNER_ASSET_NAME=void 0,t.TAG_BANNER_ASSET_NAME="tag_banner",t.TAG_DETAIL_BANNER_ASSET_NAME="tag_detail",t.TAG_COVER_ASSET_NAME="tag_cover",t.TAG_PORTRAIT_COVER_ASSET_NAME="tag_portrait_cover",t.TAG_LANDSCAPE_COVER_ASSET_NAME="tag_landscape_cover"},5628:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5283),t),o(n(8097),t),o(n(8614),t)},5283:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8097:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalTagTypeId=void 0,(n=t.GlobalTagTypeId||(t.GlobalTagTypeId={})).Actor="actor",n.Genre="genre",n.Series="series"},8614:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7888:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(3194),t),o(n(2958),t)},3194:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2958:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TvStreamType=void 0,(n=t.TvStreamType||(t.TvStreamType={})).STARTOVER="startover",n.TIMESHIFT="timeshift",n.LIVE="live",n.ALL="all"},9574:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(610),t),o(n(5717),t),o(n(8068),t)},610:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5717:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.UserDataType=void 0,(n=t.UserDataType||(t.UserDataType={})).FAVORITE="favorite",n.PURCHASE="purchase",n.WATCH_POSITION="watchPosition"},8068:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2585:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6717),t),o(n(7969),t),o(n(4823),t),o(n(1639),t)},6717:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VideoAnalyticsHistogramPercentages=void 0,t.VideoAnalyticsHistogramPercentages=["5","10","15","20","25","30","35","40","45","50","55","60","65","70","75","80","85","90","95","100"]},7969:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4823:function(e,t){"use strict";var n,r,o,i,a,u;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoTranscodingStatus=t.VideoDataSource=t.VideoSourceCodec=t.VideoSourceEncryption=t.VideoSourceProtocol=t.VideoStatus=void 0,(u=t.VideoStatus||(t.VideoStatus={})).DRAFT="DRAFT",u.PUBLISHED="PUBLISHED",(a=t.VideoSourceProtocol||(t.VideoSourceProtocol={})).HLS="hls",a.DASH="dash",a.MP4="mp4",(i=t.VideoSourceEncryption||(t.VideoSourceEncryption={})).NONE="none",i.WIDEVINE="widevine",i.FAIRPLAY="fairplay",i.PLAYREADY="playready",(o=t.VideoSourceCodec||(t.VideoSourceCodec={})).H264="h264",o.H265="h265",(r=t.VideoDataSource||(t.VideoDataSource={})).EPG_IMPORT="EPG_IMPORT",r.MALL_TV="MALL_TV",r.TIVIO_ADMIN="TIVIO_ADMIN",r.JOJ="JOJ",(n=t.VideoTranscodingStatus||(t.VideoTranscodingStatus={})).ON_HOLD="CREATED",n.IN_PROGRESS="ENCODING",n.DONE="ENCODING_DONE",n.ERROR="ERROR"},1639:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VIDEO_DETAIL_ASSET_NAME=void 0,t.VIDEO_DETAIL_ASSET_NAME="video_detail"},4327:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6733),t)},6733:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9279:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6835),t)},6835:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5055:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PaginatedQuery=void 0;var u=a(n(3958)),s=a(n(3096)),c=n(44),l=function(){function e(e,t){var n=this;this.firebaseEnvironment=e,this.params=t,this._isSubscribing=!1,this.pages=[],this.isFirstPageLoaded=!1,this.clearCache=function(){n.unsubscribe(),n.pages=[]},this.get=function(){return o(n,void 0,Promise,(function(){var e,t;return i(this,(function(n){return this.data.length>0?[2,this.data]:this.pages.length>0?[2,null!==(t=null===(e=this.pages[0])||void 0===e?void 0:e.dataPromise)&&void 0!==t?t:[]]:[2,this.getNext()]}))}))},this.getNext=function(){var e;if(null===(e=n.lastPage)||void 0===e?void 0:e.dataPromise)return n.lastPage.dataPromise;var t=void 0,r=new Promise((function(e){return t=e}));return n._pushToPages({data:[],dataPromise:r,dataResolve:t}),n.getPage(n.pages.length-1)},this._pushToPages=function(e){n.pages.push(e)},this.subscribe=function(){n.isSubscribing||(n._isSubscribing=!0,n.pages.length>0?n.pages.forEach((function(e,t){return n.getPage(t)})):n.getNext())},this.unsubscribe=function(){n._isSubscribing=!1,n.pages.forEach((function(e){e.unsubscribe&&(e.unsubscribe(),e.unsubscribe=void 0)}))},this._handlePageSnapshot=function(e,t){var r,o;n.isFirstPageLoaded=!0;var i=n.pages[e];i.data=t.docs.map((function(e){var t=n.firebaseEnvironment.getDocumentWithPath(e.ref.path);return t.updateCache(e.data()),t})),i.endSnapshot=null!==(r=t.docs[t.size-1])&&void 0!==r?r:void 0,i.startSnapshot=null!==(o=t.docs[0])&&void 0!==o?o:void 0,i.dataResolve&&i.dataResolve(i.data),i.dataResolve=void 0;var a=i.dataPromise;return i.dataPromise=void 0,a},this.getPage=function(e){return o(n,void 0,Promise,(function(){var t,n,r,o,a,u,s=this;return i(this,(function(i){switch(i.label){case 0:if(e<0||e>=this.pages.length)throw new Error("Query.getPage can not get page with index ("+e+"}) which is not in pages range ("+this.pages.length+")");return t=this.pages[e],n=null!==(u=this.pages[e-1])&&void 0!==u?u:null,r=this.buildPageQuery(n,t),this.isSubscribing?(t.unsubscribe=r.onSnapshot({next:function(t){return s._handlePageSnapshot(e,t)}}),[3,3]):[3,1];case 1:return[4,r.get()];case 2:if(o=i.sent(),a=this._handlePageSnapshot(e,o))return[2,a];i.label=3;case 3:return[2,[]]}}))}))}}return e.isEqual=function(e,t){return(0,u.default)(e.params,t.params)},e.hashParams=function(e){return(0,s.default)(r(r({},e),{filters:e.filters.map((function(e){return r(r({},e),{value:(t=e.value,t?t.path?t.path:t:"")});var t}))}))},Object.defineProperty(e.prototype,"data",{get:function(){return this.pages.map((function(e){return e.data.slice()})).flat()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return e.hashParams(this.params)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSubscribing",{get:function(){return this._isSubscribing},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastPage",{get:function(){return 0===this.pages.length?null:this.pages[this.pages.length-1]},enumerable:!1,configurable:!0}),e.prototype.buildPageQuery=function(e,t){var n=this.buildQuery();return e&&t.startSnapshot?n=n.startAt(t.startSnapshot):e&&e.endSnapshot&&(n=n.startAfter(e.endSnapshot)),t.endSnapshot?n=n.endAt(t.endSnapshot):this.params.limit&&(n=n.limit(this.params.limit)),n},e.prototype.buildQuery=function(){var e=(0,c.getCurrentFirebaseAppInstance)().firestore(),t=this.params.isCollectionGroup?e.collectionGroup(this.params.collection):e.collection(this.params.collection),n=this.params.filters.reduce((function(e,t){return e.where(t.field,t.operator,t.value)}),t);return this.params.orderBy&&(n=n.orderBy(this.params.orderBy.field,this.params.orderBy.directionStr)),n},e}();t.PaginatedQuery=l},4679:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.collectionAdmin=t.runTransactionAdmin=t.batchAdmin=t.runTransaction=t.batch=void 0;var r=n(44),o=function(){return(0,r.getCurrentFirebaseAppInstance)().firestore()},i=function(){return o()};t.batch=function(){return o().batch()},t.runTransaction=function(e){return o().runTransaction(e)},t.batchAdmin=function(){return i().batch()},t.runTransactionAdmin=function(e,t){return i().runTransaction(e,t)},t.collectionAdmin=function(e){return i().collection(e)}},7540:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6256:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(7745),t),o(n(5970),t),o(n(3034),t),o(n(3006),t),o(n(9088),t),o(n(7192),t),o(n(1018),t)},7745:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.applyInviteCode=void 0;var i=n(1741);t.applyInviteCode=function(e){return r(void 0,void 0,Promise,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("applyInviteCode")(e)];case 1:return[2,t.sent().data]}}))}))}},1018:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.logEvent=void 0;var i=n(1741),a=new(n(3631).Logger)("logEvent");t.logEvent=function(e){return r(void 0,void 0,void 0,(function(){return o(this,(function(t){return a.info("logging event "+e.event_name+" with data",e),i.FirebaseEnvironment.functions.httpsCallable("logEvent")(e),[2]}))}))}},5970:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.logRequestBody=void 0;var i=n(1741);t.logRequestBody=function(e){return r(void 0,void 0,void 0,(function(){return o(this,(function(t){return i.FirebaseEnvironment.functions.httpsCallable("logRequestBody")(e),[2]}))}))}},3034:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.purchaseRecovery=void 0;var i=n(1741);t.purchaseRecovery=function(e){return r(void 0,void 0,Promise,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("purchaseRecovery")(e)];case 1:return[2,t.sent().data]}}))}))}},3006:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.getReferralInfo=void 0;var i=n(1741);t.getReferralInfo=function(e,t){return r(void 0,void 0,Promise,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("getReferralInfo")({organizationId:e,token:t})];case 1:return[2,n.sent().data]}}))}))}},9088:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.signUpWithTenant=t.signInWithTenant=t.resetPassword=void 0;var i=n(1741);t.resetPassword=function(e){return r(void 0,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("resetPassword")(e)];case 1:return[2,t.sent()]}}))}))},t.signInWithTenant=function(e){return r(void 0,void 0,Promise,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("signInWithTenant")(e)];case 1:return[2,t.sent().data]}}))}))},t.signUpWithTenant=function(e){return r(void 0,void 0,Promise,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("signUpWithTenant")(e)];case 1:return[2,t.sent().data]}}))}))}},7192:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.getDrmLicense=void 0;var i=n(1741);t.getDrmLicense=function(e){return r(void 0,void 0,Promise,(function(){var t,n,r,a;return o(this,(function(o){switch(o.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("generateDrmLicense")({videoId:e})];case 1:return t=o.sent(),n=t.data,r=n[0],a=n[1],1===r?[2,a]:[2,null]}}))}))}},4027:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.hashObject=t.utils=t.migration=t.installations=t.functions=t.firestore=t.auth=t.Environment=t.setFirebaseEnvironment=t.initFirebaseEnvironment=t.FirebaseEnvironment=void 0;var s=n(9896);Object.defineProperty(t,"FirebaseEnvironment",{enumerable:!0,get:function(){return s.FirebaseEnvironment}}),Object.defineProperty(t,"initFirebaseEnvironment",{enumerable:!0,get:function(){return s.initFirebaseEnvironment}}),Object.defineProperty(t,"setFirebaseEnvironment",{enumerable:!0,get:function(){return s.setFirebaseEnvironment}});var c=n(5280);Object.defineProperty(t,"Environment",{enumerable:!0,get:function(){return c.Environment}}),t.auth=i(n(2773)),t.firestore=i(n(5474)),t.functions=i(n(6256)),t.installations=i(n(809)),t.migration=i(n(6739)),t.utils=i(n(5538)),a(n(5983),t),a(n(5474),t);var l=u(n(3096));t.hashObject=l.default},809:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getId=void 0;var o=(0,r(n(7060)).default)();t.getId=function(){return o}},6739:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Migration=t.DocumentMigrationResponse=void 0;var r=n(2364);Object.defineProperty(t,"DocumentMigrationResponse",{enumerable:!0,get:function(){return r.DocumentMigrationResponse}}),Object.defineProperty(t,"Migration",{enumerable:!0,get:function(){return r.Migration}})},2364:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Migration=t.migrationLogger=void 0;var i=n(2043),a=n(1741);t.migrationLogger=(0,i.getLogger)("migration");var u=function(){function e(e,n){this.migratedDocuments=[],t.migrationLogger.info("Migration from "+(null!=n?n:a.FirebaseEnvironment.environmentName)+" -> to "+e);var r=a.FirebaseEnvironment.getEnvironment(null!=n?n:a.FirebaseEnvironment.environmentName),o=a.FirebaseEnvironment.getEnvironment(e);if(!r||!o)throw new Error("Migration failed, one of the environments doesn't exist");this.fromEnvironment=r,this.toEnvironment=o}return e.prototype.defaultDocumentMigration=function(e,t){return r(this,void 0,Promise,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,e.fetch()];case 1:if(n.sent(),!e.data)throw new Error("Document ("+e.ref.path+") migration failed");return[2,{data:e.data,path:t||e.ref.path}]}}))}))},e.prototype.migrateDocument=function(e,t){return void 0===t&&(t=this.defaultDocumentMigration),r(this,void 0,Promise,(function(){var n,r,i,a;return o(this,(function(o){switch(o.label){case 0:return[4,t(e)];case 1:return n=o.sent(),r=n.data,i=n.path,[4,(a=this.toEnvironment.getDocumentWithPath(i)).update(r)];case 2:return o.sent(),this.migratedDocuments.push(a),[2,a]}}))}))},e.prototype.migrateQuery=function(e,t){return void 0===t&&(t=this.defaultDocumentMigration),r(this,void 0,Promise,(function(){var n,i=this;return o(this,(function(a){switch(a.label){case 0:return[4,e.get()];case 1:return n=a.sent(),[4,Promise.all(n.map((function(e){return r(i,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.migrateDocument(e,t)];case 1:return[2,n.sent()]}}))}))})))];case 2:return[2,a.sent()]}}))}))},e.prototype.revertMigration=function(){return r(this,void 0,void 0,(function(){var e=this;return o(this,(function(t){switch(t.label){case 0:if(this.fromEnvironment.name===this.toEnvironment.name)throw new Error("Can not revert documents from the same environemtns");return[4,Promise.all(this.migratedDocuments.map((function(t){return r(e,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,t.delete()];case 1:return[2,e.sent()]}}))}))})))];case 1:return t.sent(),this.migratedDocuments=[],[2]}}))}))},e}();t.Migration=u},9786:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.once=void 0,t.once=function(e){var t=!1,n=null;return function(){return t||(n=e(),t=!0),n}}},4457:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseGenerator=void 0;var u=n(5474),s=function(){function e(e){var t=this;this.documents=[],this.generateDocuments=function(e,n){return o(t,void 0,Promise,(function(){var t=this;return i(this,(function(a){switch(a.label){case 0:return[4,Promise.all(Array(e).fill(null).map((function(e,a){return o(t,void 0,void 0,(function(){var e,t=this;return i(this,(function(o){switch(o.label){case 0:return[4,(e=this.collection.createDocument()).update(Object.entries(n).reduce((function(e,n){var o,i=n[0],u=n[1];return r(r({},e),((o={})[i]=t.replaceTemplateValue(u,a),o))}),{}))];case 1:return o.sent(),this.documents.push(e),[2,e]}}))}))})))];case 1:return[2,a.sent()]}}))}))},this.generateDocumentsWithData=function(e){return o(t,void 0,Promise,(function(){var t=this;return i(this,(function(n){switch(n.label){case 0:return[4,Promise.all(e.map((function(e){return o(t,void 0,void 0,(function(){var t,n,r;return i(this,(function(o){switch(o.label){case 0:return t=e.id,n=a(e,["id"]),[4,(r=this.collection.createDocument(t)).update(n)];case 1:return o.sent(),this.documents.push(r),[2,r]}}))}))})))];case 1:return[2,n.sent()]}}))}))},this.collection=(0,u.getCollectionWithPath)(e)}return Object.defineProperty(e.prototype,"sortedDocuments",{get:function(){return this.documents.sort((function(e,t){return e.id<t.id?-1:1}))},enumerable:!1,configurable:!0}),e.prototype.getDocumentById=function(e){return this.documents.find((function(t){return t.id===e}))},e.prototype.getDocumentsByIds=function(e){return this.sortedDocuments.filter((function(t){return e.includes(t.id)}))},e.prototype.clean=function(){return o(this,void 0,void 0,(function(){var e=this;return i(this,(function(t){switch(t.label){case 0:return[4,Promise.all(this.documents.map((function(t){return o(e,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,t.ref.delete()];case 1:return[2,e.sent()]}}))}))})))];case 1:return t.sent(),this.documents=[],[2]}}))}))},e.prototype.replaceTemplateValue=function(e,t){return void 0===t&&(t=0),"string"==typeof e?e.replace("$index",""+(this.documents.length+t)):e},e}();t.BaseGenerator=s},7287:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)}),i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelGenerator=void 0;var u=n(4457),s=n(9865),c=function(e){function t(){var t=e.call(this,"channels")||this;return t.sectionGenerators={},t}return o(t,e),t.prototype.clean=function(){return i(this,void 0,void 0,(function(){var t=this;return a(this,(function(n){switch(n.label){case 0:return[4,e.prototype.clean.call(this)];case 1:return n.sent(),[4,Promise.all(Object.values(this.sectionGenerators).map((function(e){return i(t,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,e.clean()];case 1:return[2,t.sent()]}}))}))})))];case 2:return n.sent(),[2]}}))}))},t.prototype.getSectionGenerator=function(e){return this.sectionGenerators[e.ref.path]||(this.sectionGenerators[e.ref.path]=new s.SectionGenerator(e)),this.sectionGenerators[e.ref.path]},t.prototype.generateSections=function(e,t,n){return i(this,void 0,Promise,(function(){return a(this,(function(r){switch(r.label){case 0:return[4,this.getSectionGenerator(e).generateDocuments(t,n)];case 1:return[2,r.sent()]}}))}))},t}(u.BaseGenerator);t.ChannelGenerator=c},1715:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)});Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalAssetPresetGenerator=void 0;var i=function(e){function t(){return e.call(this,"globalAssetPresets")||this}return o(t,e),t}(n(4457).BaseGenerator);t.GlobalAssetPresetGenerator=i},8181:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)});Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalTagTypeGenerator=void 0;var i=function(e){function t(){return e.call(this,"globalTagTypes")||this}return o(t,e),t}(n(4457).BaseGenerator);t.GlobalTagTypeGenerator=i},6707:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.MembershipGenerator=t.WatchPositionGenerator=t.PurchaseGenerator=t.GlobalTagTypeGenerator=t.GlobalAssetPresetGenerator=t.TvChannelGenerator=t.MonetizationGenerator=t.WidgetGenerator=t.SectionGenerator=t.ChannelGenerator=void 0;var i=n(7287);Object.defineProperty(t,"ChannelGenerator",{enumerable:!0,get:function(){return i.ChannelGenerator}});var a=n(9865);Object.defineProperty(t,"SectionGenerator",{enumerable:!0,get:function(){return a.SectionGenerator}}),o(n(6612),t);var u=n(4503);Object.defineProperty(t,"WidgetGenerator",{enumerable:!0,get:function(){return u.WidgetGenerator}});var s=n(227);Object.defineProperty(t,"MonetizationGenerator",{enumerable:!0,get:function(){return s.MonetizationGenerator}}),o(n(8202),t),o(n(299),t);var c=n(1128);Object.defineProperty(t,"TvChannelGenerator",{enumerable:!0,get:function(){return c.TvChannelGenerator}});var l=n(1715);Object.defineProperty(t,"GlobalAssetPresetGenerator",{enumerable:!0,get:function(){return l.GlobalAssetPresetGenerator}});var f=n(8181);Object.defineProperty(t,"GlobalTagTypeGenerator",{enumerable:!0,get:function(){return f.GlobalTagTypeGenerator}});var d=n(4425);Object.defineProperty(t,"PurchaseGenerator",{enumerable:!0,get:function(){return d.PurchaseGenerator}});var p=n(2752);Object.defineProperty(t,"WatchPositionGenerator",{enumerable:!0,get:function(){return p.WatchPositionGenerator}});var h=n(5113);Object.defineProperty(t,"MembershipGenerator",{enumerable:!0,get:function(){return h.MembershipGenerator}})},5113:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)});Object.defineProperty(t,"__esModule",{value:!0}),t.MembershipGenerator=void 0;var i=function(e){function t(t){return e.call(this,"organizations/"+t+"/memberships")||this}return o(t,e),t}(n(4457).BaseGenerator);t.MembershipGenerator=i},227:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)});Object.defineProperty(t,"__esModule",{value:!0}),t.MonetizationGenerator=void 0;var i=function(e){function t(){return e.call(this,"monetizations")||this}return o(t,e),t}(n(4457).BaseGenerator);t.MonetizationGenerator=i},299:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)});Object.defineProperty(t,"__esModule",{value:!0}),t.OrganizationGenerator=void 0;var i=function(e){function t(){return e.call(this,"organizations")||this}return o(t,e),t}(n(4457).BaseGenerator);t.OrganizationGenerator=i},4425:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)});Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseGenerator=void 0;var i=function(e){function t(t){return e.call(this,"users/"+t+"/purchases")||this}return o(t,e),t}(n(4457).BaseGenerator);t.PurchaseGenerator=i},9865:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},u=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.SectionGenerator=void 0;var s=n(4457),c=n(6612),l=function(e){function t(t){var n=e.call(this,t.ref.path+"/sections")||this;return n.videoGenerator=new c.VideoGenerator,n.channel=t,n}return o(t,e),t.prototype.clean=function(){return a(this,void 0,void 0,(function(){return u(this,(function(t){switch(t.label){case 0:return[4,e.prototype.clean.call(this)];case 1:return t.sent(),[4,this.videoGenerator.clean()];case 2:return t.sent(),[2]}}))}))},t.prototype.generateVideos=function(e,t,n){return a(this,void 0,Promise,(function(){return u(this,(function(r){return[2,this.videoGenerator.generateDocuments(t,i(i({},n),{channelRef:this.channel.ref,sectionRef:e.ref}))]}))}))},t}(s.BaseGenerator);t.SectionGenerator=l},8202:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)});Object.defineProperty(t,"__esModule",{value:!0}),t.TagGenerator=void 0;var i=function(e){function t(t){return e.call(this,t?"organizations/"+t+"/tags":"tags")||this}return o(t,e),t}(n(4457).BaseGenerator);t.TagGenerator=i},1128:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)});Object.defineProperty(t,"__esModule",{value:!0}),t.TvChannelGenerator=void 0;var i=function(e){function t(){return e.call(this,"tvChannels")||this}return o(t,e),t}(n(4457).BaseGenerator);t.TvChannelGenerator=i},6612:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)});Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVideoGenerator=t.VideoGenerator=void 0;var i=n(4457),a=function(e){function t(){return e.call(this,"videos")||this}return o(t,e),t}(i.BaseGenerator);t.VideoGenerator=a;var u=function(e){function t(){return e.call(this,"videos")||this}return o(t,e),t}(i.BaseGenerator);t.GlobalVideoGenerator=u},2752:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)});Object.defineProperty(t,"__esModule",{value:!0}),t.WatchPositionGenerator=void 0;var i=function(e){function t(t){return e.call(this,"users/"+t+"/watchPositions")||this}return o(t,e),t}(n(4457).BaseGenerator);t.WatchPositionGenerator=i},4503:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},u=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetGenerator=void 0;var s=function(e){function t(){return e.call(this,"widgets")||this}return o(t,e),t.prototype.generateWidgets=function(e,t,n){return a(this,void 0,Promise,(function(){return u(this,(function(r){switch(r.label){case 0:return[4,this.generateDocuments(t,i(i({},n),{channelsOrder:e.map((function(e){return e.ref}))}))];case 1:return[2,r.sent()]}}))}))},t}(n(4457).BaseGenerator);t.WidgetGenerator=s},5538:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.generators=void 0,t.generators=i(n(6707))},3631:function(e,t){"use strict";var n=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.createLogger=t.Logger=void 0;var r=function(){function e(e){this.name=e,this.isEnabled=!0}return e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log.apply(this,n(["error"],e,!1))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log.apply(this,n(["info"],e,!1))},e.prototype.off=function(){this.isEnabled=!1},e.prototype.on=function(){this.isEnabled=!0},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log.apply(this,n(["warn"],e,!1))},e.prototype.forceInfo=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];console.info.apply(console,n([e.prefix+":"+this.name],t,!1))},e.prototype.log=function(t){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];e.enabled&&this.isEnabled&&console[t].apply(console,n([e.prefix+":"+this.name],r,!1))},e.enabled=!0,e.prefix="tivio",e}();t.Logger=r,t.createLogger=function(e){return new r(e)}},7060:function(e,t,n){"use strict";!function(){var t,r,o,i=0,a=[];for(r=0;r<256;r++)a[r]=(r+256).toString(16).substr(1);function u(){var e=((!t||i+16>s.BUFFER_SIZE)&&(i=0,t=s.randomBytes(s.BUFFER_SIZE)),t.slice(i,i+=16));return e[6]=15&e[6]|64,e[8]=63&e[8]|128,e}function s(){var e=u();return a[e[0]]+a[e[1]]+a[e[2]]+a[e[3]]+"-"+a[e[4]]+a[e[5]]+"-"+a[e[6]]+a[e[7]]+"-"+a[e[8]]+a[e[9]]+"-"+a[e[10]]+a[e[11]]+a[e[12]]+a[e[13]]+a[e[14]]+a[e[15]]}s.BUFFER_SIZE=4096,s.bin=u,s.clearBuffer=function(){t=null,i=0},s.test=function(e){return"string"==typeof e&&/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)},"undefined"!=typeof crypto?o=crypto:"undefined"!=typeof window&&void 0!==window.msCrypto&&(o=window.msCrypto),o=o||n(2705),e.exports=s,s.randomBytes=function(){if(o){if(o.randomBytes)return o.randomBytes;if(o.getRandomValues)return"function"!=typeof Uint8Array.prototype.slice?function(e){var t=new Uint8Array(e);return o.getRandomValues(t),Array.from(t)}:function(e){var t=new Uint8Array(e);return o.getRandomValues(t),t}}return function(e){var t,n=[];for(t=0;t<e;t++)n.push(Math.floor(256*Math.random()));return n}}()}()},2705:function(){}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n(4027)}()},741:function(e){e.exports=function(){"use strict";var e={723:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(902),t)},902:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.VAST_PROVIDERS=t.VastProvider=void 0,function(e){e.CNC_PREBID="cnc-prebid",e.ETARGET_PREBID="etarget-prebid",e.FALLBACK_HLS="fallback-hls",e.FALLBACK_MP4="fallback",e.GARAZ_TV="garaz.tv",e.GARAZ_TV_DEV="garaz.tv.dev",e.IMPRESSION_MEDIA_PREBID="impressionMedia-prebid",e.JOJ="joj",e.MALL_TV="malltv",e.MALL_TV_PREBID="malltv-prebid",e.PRIMA="prima",e.TEST="test",e.TEST_VPAID="test-vpaid"}(n=t.VastProvider||(t.VastProvider={})),t.VAST_PROVIDERS=[{id:n.ETARGET_PREBID,name:"Etarget Prebid"},{id:n.MALL_TV_PREBID,name:"MALL.TV Prebid"},{id:n.IMPRESSION_MEDIA_PREBID,name:"Impression Media Prebid"},{id:n.CNC_PREBID,name:"CNC Prebid"},{id:n.MALL_TV,name:"MALL.TV"},{id:n.JOJ,name:"JOJ"},{id:n.PRIMA,name:"Prima"},{id:n.GARAZ_TV,name:"Garaz TV"},{id:n.GARAZ_TV_DEV,name:"Garaz TV dev"},{id:n.FALLBACK_MP4,name:"Tivio Prebid",development:!1},{id:n.FALLBACK_HLS,name:"Fallback (HLS)",development:!0},{id:n.TEST,name:"Test",development:!0},{id:n.TEST_VPAID,name:"Test VPAID",development:!0}]},920:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(895),t),o(n(216),t),o(n(723),t)},216:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},489:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},304:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerWrapperEventType=void 0,(n=t.PlayerWrapperEventType||(t.PlayerWrapperEventType={})).adMetadata="adMetadata",n.markers="markers"},690:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.CUSTOMER_BUILD=void 0,(n=t.CUSTOMER_BUILD||(t.CUSTOMER_BUILD={})).OKTAGON="OKTAGON",n.JOJ="JOJ",n.MALL="MALL",n.GARAZ="GARAZ",n.U_KULATEHO_STOLU="U_KULATEHO_STOLU",n.INVESTOREES="INVESTOREES"},801:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},423:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},2:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PLATFORM=void 0,(n=t.PLATFORM||(t.PLATFORM={})).MOBILE="MOBILE",n.WEB="WEB",n.TV="TV"},123:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},589:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},352:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(489),t),o(n(304),t),o(n(690),t),o(n(801),t),o(n(423),t),o(n(495),t),o(n(2),t),o(n(123),t),o(n(589),t),o(n(889),t),o(n(703),t),o(n(743),t),o(n(407),t),o(n(757),t)},889:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},495:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},703:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},743:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},407:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},757:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},255:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_ORDER_BY=t.CURRENCIES=t.languages=t.LangCode=void 0,function(e){e.CS="cs",e.DE="de",e.EN="en",e.FR="fr",e.PL="pl",e.SK="sk",e.SP="sp"}(n=t.LangCode||(t.LangCode={})),t.languages=Object.values(n),t.CURRENCIES=["CZK","EUR","USD"],t.DEFAULT_ORDER_BY=[{field:"created",directionStr:"desc"}]},396:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},202:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},129:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},786:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(363),t),o(n(635),t),o(n(202),t),o(n(910),t),o(n(906),t),o(n(948),t),o(n(535),t),o(n(161),t),o(n(656),t),o(n(614),t),o(n(396),t),o(n(738),t),o(n(129),t),o(n(959),t),o(n(605),t),o(n(190),t)},959:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MONETIZATION_FREQUENCY=void 0,(n=t.MONETIZATION_FREQUENCY||(t.MONETIZATION_FREQUENCY={})).ONE_TIME_PAYMENT="ONE_TIME_PAYMENT",n.DAILY="DAILY",n.WEEKLY="WEEKLY",n.MONTHLY="MONTHLY",n.ANNUALLY="ANNUALLY"},910:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},738:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},535:function(e,t){var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ROW_ITEM_TYPES=t.RowItemComponent=t.RowComponent=void 0,(o=t.RowComponent||(t.RowComponent={})).ROW="ROW",o.BANNER="BANNER",(r=t.RowItemComponent||(t.RowItemComponent={})).ROW_ITEM_PORTRAIT="ROW_ITEM_PORTRAIT",r.ROW_ITEM_LANDSCAPE="ROW_ITEM_LANDSCAPE",r.ROW_ITEM_CIRCLED="ROW_ITEM_CIRCLED",(n=t.ROW_ITEM_TYPES||(t.ROW_ITEM_TYPES={})).VIDEO="VIDEO",n.TAG="TAG",n.TV_CHANNEL="TV_CHANNEL"},161:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},605:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ALGOLIA_INDEX_NAME=void 0,(n=t.ALGOLIA_INDEX_NAME||(t.ALGOLIA_INDEX_NAME={})).VIDEOS="videos",n.VIDEOSDESC="videos_created_desc",n.TAGS="tags",n.TV_CHANNELS="tvChannels",n.USERS="users"},190:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},614:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},656:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},906:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},363:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseStatus=t.UserType=void 0,(r=t.UserType||(t.UserType={})).ORGANIZATION_USER="ORGANIZATION_USER",r.TIVIO_USER="TIVIO_USER",(n=t.PurchaseStatus||(t.PurchaseStatus={})).NEW="NEW",n.PAID="PAID",n.CANCELLED="CANCELLED",n.ERROR="ERROR",n.BLOCKED="BLOCKED"},948:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoType=t.VideoContentType=void 0,(r=t.VideoContentType||(t.VideoContentType={})).VIDEO="VIDEO",r.FILM="FILM",r.SERIES="SERIES",(n=t.VideoType||(t.VideoType={})).PLAYLIST="PLAYLIST",n.VIDEO="VIDEO",n.TV_PROGRAM="TV_PROGRAM",n.SERIES="SERIES"},635:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},895:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(786),t),o(n(352),t),o(n(255),t),o(n(620),t)},620:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})}},t={};return function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}(920)}()},96:function(e){"use strict";function t(e,t){for(var n=e.toString();n.length<t;)n="0"+n;return n}function n(e){return t(e,2)}function r(r,o){"string"!=typeof r&&(o=r,r=e.exports.ISO8601_FORMAT),o||(o=e.exports.now());var i,a,u,s,c=n(o.getDate()),l=n(o.getMonth()+1),f=n(o.getFullYear()),d=n(f.substring(2,4)),p=r.indexOf("yyyy")>-1?f:d,h=n(o.getHours()),v=n(o.getMinutes()),y=n(o.getSeconds()),g=t(o.getMilliseconds(),3),b=(i=o.getTimezoneOffset(),a=Math.abs(i),u=String(Math.floor(a/60)),s=String(a%60),1===u.length&&(u="0"+u),1===s.length&&(s="0"+s),i<0?"+"+u+s:"-"+u+s);return r.replace(/dd/g,c).replace(/MM/g,l).replace(/y{1,4}/g,p).replace(/hh/g,h).replace(/mm/g,v).replace(/ss/g,y).replace(/SSS/g,g).replace(/O/g,b)}function o(e,t,n,r){e["set"+(r?"":"UTC")+t](n)}e.exports=r,e.exports.asString=r,e.exports.parse=function(t,n,r){if(!t)throw new Error("pattern must be supplied");return function(t,n,r){var i=t.indexOf("O")<0,a=[{pattern:/y{1,4}/,regexp:"\\d{1,4}",fn:function(e,t){o(e,"FullYear",t,i)}},{pattern:/MM/,regexp:"\\d{1,2}",fn:function(e,t){o(e,"Month",t-1,i)}},{pattern:/dd/,regexp:"\\d{1,2}",fn:function(e,t){o(e,"Date",t,i)}},{pattern:/hh/,regexp:"\\d{1,2}",fn:function(e,t){o(e,"Hours",t,i)}},{pattern:/mm/,regexp:"\\d\\d",fn:function(e,t){o(e,"Minutes",t,i)}},{pattern:/ss/,regexp:"\\d\\d",fn:function(e,t){o(e,"Seconds",t,i)}},{pattern:/SSS/,regexp:"\\d\\d\\d",fn:function(e,t){o(e,"Milliseconds",t,i)}},{pattern:/O/,regexp:"[+-]\\d{3,4}|Z",fn:function(e,t){"Z"===t&&(t=0);var n=Math.abs(t),r=(t>0?-1:1)*(n%100+60*Math.floor(n/100));e.setUTCMinutes(e.getUTCMinutes()+r)}}],u=a.reduce((function(e,t){return t.pattern.test(e.regexp)?(t.index=e.regexp.match(t.pattern).index,e.regexp=e.regexp.replace(t.pattern,"("+t.regexp+")")):t.index=-1,e}),{regexp:t,index:[]}),s=a.filter((function(e){return e.index>-1}));s.sort((function(e,t){return e.index-t.index}));var c=new RegExp(u.regexp).exec(n);if(c){var l=r||e.exports.now();return s.forEach((function(e,t){e.fn(l,c[t+1])})),l}throw new Error("String '"+n+"' could not be parsed as '"+t+"'")}(t,n,r)},e.exports.now=function(){return new Date},e.exports.ISO8601_FORMAT="yyyy-MM-ddThh:mm:ss.SSS",e.exports.ISO8601_WITH_TZ_OFFSET_FORMAT="yyyy-MM-ddThh:mm:ss.SSSO",e.exports.DATETIME_FORMAT="dd MM yyyy hh:mm:ss.SSS",e.exports.ABSOLUTETIME_FORMAT="hh:mm:ss.SSS"},924:function(e,t,n){"use strict";n.r(t),n.d(t,{BrowserInfo:function(){return o},NodeInfo:function(){return i},SearchBotDeviceInfo:function(){return a},BotInfo:function(){return u},ReactNativeInfo:function(){return s},detect:function(){return d},browserName:function(){return h},parseUserAgent:function(){return v},detectOS:function(){return y},getNodeVersion:function(){return g}});var r=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},o=function(e,t,n){this.name=e,this.version=t,this.os=n,this.type="browser"},i=function(e){this.version=e,this.type="node",this.name="node",this.os=process.platform},a=function(e,t,n,r){this.name=e,this.version=t,this.os=n,this.bot=r,this.type="bot-device"},u=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},s=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},c=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,l=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],f=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function d(e){return e?v(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new s:"undefined"!=typeof navigator?v(navigator.userAgent):g()}function p(e){return""!==e&&l.reduce((function(t,n){var r=n[0],o=n[1];if(t)return t;var i=o.exec(e);return!!i&&[r,i]}),!1)}function h(e){var t=p(e);return t?t[0]:null}function v(e){var t=p(e);if(!t)return null;var n=t[0],i=t[1];if("searchbot"===n)return new u;var s=i[1]&&i[1].split(".").join("_").split("_").slice(0,3);s?s.length<3&&(s=r(r([],s,!0),function(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}(3-s.length),!0)):s=[];var l=s.join("."),f=y(e),d=c.exec(e);return d&&d[1]?new a(n,l,f,d[1]):new o(n,l,f)}function y(e){for(var t=0,n=f.length;t<n;t++){var r=f[t],o=r[0];if(r[1].exec(e))return o}return null}function g(){return"undefined"!=typeof process&&process.version?new i(process.version.slice(1)):null}},421:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){o(e,t,n[t])}))}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}n.r(t),n.d(t,{default:function(){return $}});var h={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},v=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,e),this.init(t,n)}return s(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||h,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,i({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}(),y=new v,g=function(){function e(){a(this,e),this.observers={}}return s(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(n))}))}}]),e}();function b(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function m(e){return null==e?"":""+e}function _(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function w(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function O(e,t,n){var r=w(e,t,Object);r.obj[r.k]=n}function P(e,t){var n=w(e,t),r=n.obj,o=n.k;if(r)return r[o]}function S(e,t,n){var r=P(e,n);return void 0!==r?r:P(t,n)}function E(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):E(e[r],t[r],n):e[r]=t[r]);return e}function j(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var T={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function x(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return T[e]})):e}var M="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,A=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return a(this,t),n=l(this,f(t).call(this)),M&&g.call(c(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return p(t,e),s(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split(".")),P(this.data,i)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),O(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},u=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(u=e.split("."))[1]),this.addNamespaces(t);var s=P(this.data,u)||{};r?E(s,n,o):s=i({},s,n),O(this.data,u,s),a.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?i({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(g),I={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},C={},L=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(this,t),n=l(this,f(t).call(this)),M&&g.call(c(n)),_(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,c(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=y.create("translator"),n}return p(t,e),s(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,o){var a=this;if("object"!==r(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var u=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],n),c=s.key,l=s.namespaces,f=l[l.length-1],d=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var h=n.nsSeparator||this.options.nsSeparator;return f+h+c}return c}var v=this.resolve(e,n),y=v&&v.res,g=v&&v.usedKey||c,b=v&&v.exactUsedKey||c,m=Object.prototype.toString.apply(y),_=["[object Number]","[object Function]","[object RegExp]"],w=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,O=!this.i18nFormat||this.i18nFormat.handleAsObject;if(O&&y&&"string"!=typeof y&&"boolean"!=typeof y&&"number"!=typeof y&&_.indexOf(m)<0&&("string"!=typeof w||"[object Array]"!==m)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,y,n):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(u){var P="[object Array]"===m,S=P?[]:{},E=P?b:g;for(var j in y)if(Object.prototype.hasOwnProperty.call(y,j)){var T="".concat(E).concat(u).concat(j);S[j]=this.translate(T,i({},n,{joinArrays:!1,ns:l})),S[j]===T&&(S[j]=y[j])}y=S}}else if(O&&"string"==typeof w&&"[object Array]"===m)(y=y.join(w))&&(y=this.extendTranslation(y,e,n,o));else{var x=!1,M=!1,A=void 0!==n.count&&"string"!=typeof n.count,I=t.hasDefaultValue(n),C=A?this.pluralResolver.getSuffix(d,n.count):"",L=n["defaultValue".concat(C)]||n.defaultValue;!this.isValidLookup(y)&&I&&(x=!0,y=L),this.isValidLookup(y)||(M=!0,y=c);var k=I&&L!==y&&this.options.updateMissing;if(M||x||k){if(this.logger.log(k?"updateKey":"missingKey",d,f,c,k?L:y),u){var R=this.resolve(c,i({},n,{keySeparator:!1}));R&&R.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var D=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&N&&N[0])for(var B=0;B<N.length;B++)D.push(N[B]);else"all"===this.options.saveMissingTo?D=this.languageUtils.toResolveHierarchy(n.lng||this.language):D.push(n.lng||this.language);var F=function(e,t,r){a.options.missingKeyHandler?a.options.missingKeyHandler(e,f,t,k?r:y,k,n):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(e,f,t,k?r:y,k,n),a.emit("missingKey",e,f,t,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?D.forEach((function(e){a.pluralResolver.getSuffixes(e).forEach((function(t){F([e],c+t,n["defaultValue".concat(t)]||L)}))})):F(D,c,L))}y=this.extendTranslation(y,e,n,v,o),M&&y===c&&this.options.appendNamespaceToMissingKey&&(y="".concat(f,":").concat(c)),M&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(y))}return y}},{key:"extendTranslation",value:function(e,t,n,r,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(i({},n,{interpolation:i({},this.options.interpolation,n.interpolation)}));var u,s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var c=e.match(this.interpolator.nestingRegexp);u=c&&c.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=i({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),s){var f=e.match(this.interpolator.nestingRegexp);u<(f&&f.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return o&&o[0]===r[0]&&!n.context?(a.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):a.translate.apply(a,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,p="string"==typeof d?[d]:d;return null!=e&&p&&p.length&&!1!==n.applyPostProcessor&&(e=I.handle(p,e,t,this.options&&this.options.postProcessPassResolved?i({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,u),c=s.key;n=c;var l=s.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,d=void 0!==u.context&&"string"==typeof u.context&&""!==u.context,p=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(i=e,!C["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(C["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,l=c,p=[l];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,c,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(l+i),d&&p.push(l+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(l+=i));s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}(g);function k(e){return e.charAt(0).toUpperCase()+e.slice(1)}var R=function(){function e(t){a(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=y.create("languageUtils")}return s(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=k(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=k(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=k(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),D=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],N={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function B(){var e={};return D.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:N[t.fc]}}))})),e}var F=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,e),this.languageUtils=t,this.options=n,this.logger=y.create("pluralResolver"),this.rules=B()}return s(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),U=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(this,e),this.logger=y.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return s(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:x,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?j(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?j(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?j(t.nestingPrefix):t.nestingPrefixEscaped||j("$t("),this.nestingSuffix=t.nestingSuffix?j(t.nestingSuffix):t.nestingSuffixEscaped||j(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(u.formatSeparator)<0){var o=S(t,s,e);return u.alwaysFormat?u.format(o,void 0,n):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),c=i.join(u.formatSeparator).trim();return u.format(S(t,s,a),c,n,r)};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?c(u.escape(e)):c(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=l(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=m(i));if(e=e.replace(o[0],t.safeValue(i)),t.regex.lastIndex=0,++a>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=i({},a);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,u)).replace(/'/g,'"');try{u=JSON.parse(o),t&&(u=i({},t,u))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete u.defaultValue,e}for(u.applyPostProcessor=!1,delete u.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],l=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=f.shift(),c=f,l=!0}if((r=t(s.call(this,n[1].trim(),u),u))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=m(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=c.reduce((function(e,t){return o.format(e,t,a.lng,a)}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),V=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return a(this,t),o=l(this,f(t).call(this)),M&&g.call(c(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=y.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return p(t,e),s(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),s.indexOf(t)<0&&s.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,u,s,c,l;r=n.loaded,u=i,(c=(s=w(r,[o],Object)).obj)[l=s.k]=c[l]||[],c[l].push(u),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(u,s){u&&s&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(u,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,i({},a,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(g);function G(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===r(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===r(e[2])||"object"===r(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function W(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function z(){}var H=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(a(this,t),e=l(this,f(t).call(this)),M&&g.call(c(e)),e.options=W(n),e.services={},e.logger=y,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),l(e,c(e));setTimeout((function(){e.init(n,r)}),0)}return e}return p(t,e),s(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},G(),this.options,W(t)),this.format=this.options.interpolation.format,n||(n=z),!this.options.isClone){this.modules.logger?y.init(r(this.modules.logger),this.options):y.init(null,this.options);var o=new R(this.options);this.store=new A(this.options.resources,this.options);var a=this.services;a.logger=y,a.resourceStore=this.store,a.languageUtils=o,a.pluralResolver=new F(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new U(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new V(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(a.languageDetector=r(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=r(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new L(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var s=b(),c=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),s.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),s}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};r?i(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)})),this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=b();return e||(e=this.languages),t||(t=this.options.ns),n||(n=z),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&I.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=b();this.emit("languageChanging",e);var o=function(e){var o="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,o=function e(t,o){var a;if("object"!==r(o)){for(var u=arguments.length,s=new Array(u>2?u-2:0),c=2;c<u;c++)s[c-2]=arguments[c];a=n.options.overloadTranslationOptionHandler([t,o].concat(s))}else a=i({},o);return a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns,n.t(t,a)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=b();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=b();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z,o=i({},this.options,n,{isClone:!0}),a=new t(o);return["store","services","language"].forEach((function(t){a[t]=e[t]})),a.services=i({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new L(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];a.emit.apply(a,[e].concat(n))})),a.init(o,r),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}}]),t}(g),$=new H},160:function(e,t,n){e=n.nmd(e);var r,o,i,a="[object Map]",u="[object Promise]",s="[object Set]",c="[object WeakMap]",l="[object DataView]",f=/^\[object .+?Constructor\]$/,d="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,p="object"==typeof self&&self&&self.Object===Object&&self,h=d||p||Function("return this")(),v=t&&!t.nodeType&&t,y=v&&e&&!e.nodeType&&e,g=y&&y.exports===v,b=Function.prototype,m=Object.prototype,_=h["__core-js_shared__"],w=(r=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",O=b.toString,P=m.hasOwnProperty,S=m.toString,E=RegExp("^"+O.call(P).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=g?h.Buffer:void 0,T=m.propertyIsEnumerable,x=j?j.isBuffer:void 0,M=(o=Object.keys,i=Object,function(e){return o(i(e))}),A=V(h,"DataView"),I=V(h,"Map"),C=V(h,"Promise"),L=V(h,"Set"),k=V(h,"WeakMap"),R=!T.call({valueOf:1},"valueOf"),D=W(A),N=W(I),B=W(C),F=W(L),U=W(k);function V(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!K(e)||function(e){return!!w&&w in e}(e))return!1;var t=Y(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?E:f;return t.test(W(e))}(n)?n:void 0}var G=function(e){return S.call(e)};function W(e){if(null!=e){try{return O.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(A&&G(new A(new ArrayBuffer(1)))!=l||I&&G(new I)!=a||C&&G(C.resolve())!=u||L&&G(new L)!=s||k&&G(new k)!=c)&&(G=function(e){var t=S.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?W(n):void 0;if(r)switch(r){case D:return l;case N:return a;case B:return u;case F:return s;case U:return c}return t});var z=Array.isArray;function H(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!Y(e)}var $=x||function(){return!1};function Y(e){var t=K(e)?S.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function K(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){if(H(e)&&(z(e)||"string"==typeof e||"function"==typeof e.splice||$(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&H(e)}(e)&&P.call(e,"callee")&&(!T.call(e,"callee")||"[object Arguments]"==S.call(e))}(e)))return!e.length;var t=G(e);if(t==a||t==s)return!e.size;if(R||function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||m)}(e))return!M(e).length;for(var n in e)if(P.call(e,n))return!1;return!0}},302:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(875),t),o(n(209),t)},209:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.trackedKeys=t.TizenRcKey=void 0,function(e){e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Enter="Enter",e.Back="Back",e.VolumeUp="VolumeUp",e.VolumeDown="VolumeDown",e.VolumeMute="VolumeMute",e.ChannelUp="ChannelUp",e.ChannelDown="ChannelDown",e.ChannelList="ChannelList",e.ColorF0Red="ColorF0Red",e.ColorF1Green="ColorF1Green",e.ColorF2Yellow="ColorF2Yellow",e.ColorF3Blue="ColorF3Blue",e.MediaPlayPause="MediaPlayPause",e.MediaRewind="MediaRewind",e.MediaFastForward="MediaFastForward",e.MediaPlay="MediaPlay",e.MediaPause="MediaPause",e.MediaStop="MediaStop",e.MediaRecord="MediaRecord",e.MediaTrackPrevious="MediaTrackPrevious",e.MediaTrackNext="MediaTrackNext",e.Num0="0",e.Num1="1",e.Num2="2",e.Num3="3",e.Num4="4",e.Num5="5",e.Num6="6",e.Num7="7",e.Num8="8",e.Num9="9",e.Minus="Minus",e.PreviousChannel="PreviousChannel",e.Menu="Menu",e.Tools="Tools",e.Info="Info",e.Source="Source",e.Exit="Exit",e.Caption="Caption",e["E-Manual"]="E-Manual",e["3D"]="3D",e.Extra="Extra",e.PictureSize="PictureSize",e.Soccer="Soccer",e.Teletext="Teletext",e.MTS="MTS",e.Search="Search",e.Guide="Guide"}(n||(n={})),t.TizenRcKey=n;var r=new Set(["ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Enter","Back","MediaPlayPause","MediaRewind","MediaFastForward","MediaPlay","MediaPause","MediaStop","0","1","2","3","4","5","6","7","8","9"]);t.trackedKeys=r},875:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.initializeTizen=t.isTizenVersionGreaterThan=t.getTizenVersion=t.getTizenApi=t.getKeyCode=void 0;var i=n(405),a=n(209),u=new i.Logger("tizen"),s=function(){return"undefined"==typeof tizen?null:tizen};t.getTizenApi=s;var c=function(e,t){return void 0===t&&(t=0),parseInt(null!=e?e:t)},l=function(){if(!s())return null;var e=s().systeminfo.getCapability("http://tizen.org/feature/platform.version"),t=e.split("."),n=t[0],r=t[1];return{version:e,major:c(n),minor:c(r)}};t.getTizenVersion=l,t.isTizenVersionGreaterThan=function(e){var t=l();return Boolean(t&&t.major>e)};var f=new Map,d=function(e){return r(void 0,void 0,void 0,(function(){var t,n;return o(this,(function(r){switch(r.label){case 0:t=new Promise((function(t,n){var r=e.tvinputdevice.getSupportedKeys().map((function(e){return e.name})).filter((function(e){return a.trackedKeys.has(e)}));e.tvinputdevice.registerKeyBatch(r,t,n)})),r.label=1;case 1:return r.trys.push([1,3,,4]),u.info("Initializing RC keys..."),[4,t];case 2:return r.sent(),u.info("RC keys are ready."),[3,4];case 3:return n=r.sent(),u.error("Failed to initialize listening to RC keys. This may be caused by a missing privilege http://tizen.org/privilege/tv.inputdevice.",n.message),[3,4];case 4:return[2]}}))}))};t.getKeyCode=function(e){var t;return null!==(t=f.get(e))&&void 0!==t?t:null},t.initializeTizen=function(){return r(void 0,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return(e=s())?(function(e){var t=e.tvinputdevice.getSupportedKeys();t.forEach((function(e){f.set(e.name,e.code)})),u.info("Keycode map has been initialized",t)}(e),[4,d(e)]):[2];case 1:return t.sent(),[2]}}))}))}},586:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(869),t)},869:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VideoStatus=t.VideoTranscodingStatus=t.firestoreJavascriptFilters=t.firestoreArrayFilters=t.firestoreObjectFilters=void 0;var r=n(146);Object.defineProperty(t,"VideoTranscodingStatus",{enumerable:!0,get:function(){return r.VideoTranscodingStatus}}),Object.defineProperty(t,"VideoStatus",{enumerable:!0,get:function(){return r.VideoStatus}}),t.firestoreObjectFilters={isTranscoded:{field:"transcodingStatus",operator:"==",value:r.VideoTranscodingStatus.DONE},isPublished:{field:"publishedStatus",operator:"==",value:r.VideoStatus.PUBLISHED}},t.firestoreArrayFilters={isTranscoded:Object.values(t.firestoreObjectFilters.isTranscoded),isPublished:Object.values(t.firestoreObjectFilters.isPublished)},t.firestoreJavascriptFilters={isTranscoded:function(e){return e===r.VideoTranscodingStatus.DONE},isPublished:function(e){return e===r.VideoStatus.PUBLISHED}}},945:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(554),t),o(n(961),t),o(n(480),t)},961:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useImageLoader=void 0;var r=n(156);t.useImageLoader=function(e,t){var n=(0,r.useState)(e),o=n[0],i=n[1],a=(0,r.useState)(!1),u=a[0],s=a[1];return(0,r.useEffect)((function(){if(t){var e=new Image;e.src=t,e.onload=function(){i(t),s(!0)}}}),[t]),{loadedImageSrc:o,imageIsLoaded:u}}},554:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useLoading=void 0;var r=n(156);t.useLoading=function(e){void 0===e&&(e=!1);var t=(0,r.useState)(e),n=t[0],o=t[1],i=(0,r.useRef)(n),a=function(e){o(e),i.current=e};return{loading:n,startLoading:function(){i.current||a(!0)},stopLoading:function(){i.current&&a(!1)}}}},480:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useOnChange=t.usePrevious=void 0;var r=n(156);function o(e){var t,n=(0,r.useState)([]),o=n[0],i=n[1];return(0,r.useEffect)((function(){i(o.concat(e).slice(-2))}),[e]),null!==(t=o[o.length-2])&&void 0!==t?t:null}t.usePrevious=o,t.useOnChange=function(e,t){var n=o(e);n!==e&&t(n,e)}},322:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.LanguagePicker=void 0;var a=i(n(156)),u=n(877);t.LanguagePicker=function(){var e=(0,u.useLanguageOptions)(),t=e.language,n=e.languages,r=e.selectLanguage,o=(0,a.useCallback)((function(e){r(e.target.value)}),[r]);return a.default.createElement("select",{name:"tivio-language-select","data-e2e":"tivio-language-select",value:t,onChange:o},n.map((function(e){return a.default.createElement("option",{key:e,value:e},e)})))}},877:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.useLanguage=t.useLanguageOptions=t.useT=t.useI18n=void 0;var o=n(741),i=n(156),a=n(799),u=n(71);t.useI18n=function(){return(0,i.useContext)(a.I18nContext).i18n},t.useT=function(){var e=(0,t.useI18n)();return e?e.t.bind(e):function(e){return e}},t.useLanguageOptions=function(){var e=(0,i.useContext)(u.LanguageContext);return r(r({},e),{languages:o.languages})},t.useLanguage=function(){return(0,i.useContext)(u.LanguageContext).language}},799:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.I18nContextProvider=t.I18nContext=void 0;var u=a(n(421)),s=i(n(156)),c=n(405),l=n(71),f=new c.Logger("language");t.I18nContext=(0,s.createContext)({i18n:null}),t.I18nContextProvider=function(e){var n=e.children,r=e.translations,o=(0,s.useState)({i18n:null}),i=o[0],a=o[1],c=(0,s.useContext)(l.LanguageContext).language;return(0,s.useLayoutEffect)((function(){f.info("initializing language",c),function(e,t){return new Promise((function(n,r){n(u.default.createInstance({lng:t,resources:e},(function(e){e&&r(e)})))}))}(r,c).then((function(e){a({i18n:e})}))}),[]),(0,s.useLayoutEffect)((function(){i.i18n&&(f.info("changing language",c),i.i18n.changeLanguage(c),a({i18n:i.i18n}))}),[c]),s.default.createElement(t.I18nContext.Provider,{value:i},n)}},250:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(877),t),o(n(799),t),o(n(71),t),o(n(164),t),o(n(322),t)},71:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageContextProvider=t.LanguageContext=void 0;var a=n(741),u=i(n(156)),s=n(405),c=n(116),l=new s.Logger("language");t.LanguageContext=(0,u.createContext)({language:a.LangCode.EN,selectLanguage:function(){}}),t.LanguageContextProvider=function(e){var n=e.language,r=e.children,o=(0,u.useState)((0,c.normalizeLanguage)(n)),i=o[0],a=o[1];(0,u.useLayoutEffect)((function(){var e=(0,c.normalizeLanguage)(n);a(e),l.info("Setting language (passed as prop): "+e+" (before normalization: "+n+")")}),[n]);var s=(0,u.useCallback)((function(e){l.info("Setting language: "+e),a(e)}),[]);return u.default.createElement(t.LanguageContext.Provider,{value:{language:i,selectLanguage:s}},r)}},164:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},116:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeLanguage=void 0;var r=n(741),o=new(n(405).Logger)("i18n");t.normalizeLanguage=function(e){if(null==e)return r.LangCode.EN;var t=e.toLocaleLowerCase();return"cs"===t||"cz"===t||"cze"===t||"ces"===t?r.LangCode.CS:"sk"===t||"slk"===t||"slo"===t?r.LangCode.SK:("en"===t||"eng"===t||o.warn("Unrecognized language (input: "+e+"). Falling back to ENG"),r.LangCode.EN)}},368:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageContextProviderProps=t.I18nContextProviderProps=t.LanguagePicker=t.useLanguageOptions=t.I18nContextProvider=t.LanguageContextProvider=t.useT=t.VideoStatus=t.VideoTranscodingStatus=t.ObjectFilter=t.firestoreObjectFilters=t.firestoreJavascriptFilters=t.firestoreArrayFilters=t.IRefsPagination=t.PaginationInterface=t.PaginationOptions=t.Pagination=t.RefsPagination=void 0;var i=n(21),a=n(118);Object.defineProperty(t,"RefsPagination",{enumerable:!0,get:function(){return a.RefsPagination}}),Object.defineProperty(t,"Pagination",{enumerable:!0,get:function(){return a.Pagination}}),Object.defineProperty(t,"PaginationOptions",{enumerable:!0,get:function(){return a.PaginationOptions}}),Object.defineProperty(t,"PaginationInterface",{enumerable:!0,get:function(){return a.PaginationInterface}}),Object.defineProperty(t,"IRefsPagination",{enumerable:!0,get:function(){return a.IRefsPagination}}),o(n(945),t),o(n(405),t);var u=n(586);Object.defineProperty(t,"firestoreArrayFilters",{enumerable:!0,get:function(){return u.firestoreArrayFilters}}),Object.defineProperty(t,"firestoreJavascriptFilters",{enumerable:!0,get:function(){return u.firestoreJavascriptFilters}}),Object.defineProperty(t,"firestoreObjectFilters",{enumerable:!0,get:function(){return u.firestoreObjectFilters}}),Object.defineProperty(t,"ObjectFilter",{enumerable:!0,get:function(){return u.ObjectFilter}}),Object.defineProperty(t,"VideoTranscodingStatus",{enumerable:!0,get:function(){return u.VideoTranscodingStatus}}),Object.defineProperty(t,"VideoStatus",{enumerable:!0,get:function(){return u.VideoStatus}});var s=n(250);Object.defineProperty(t,"useT",{enumerable:!0,get:function(){return s.useT}}),Object.defineProperty(t,"LanguageContextProvider",{enumerable:!0,get:function(){return s.LanguageContextProvider}}),Object.defineProperty(t,"I18nContextProvider",{enumerable:!0,get:function(){return s.I18nContextProvider}}),Object.defineProperty(t,"useLanguageOptions",{enumerable:!0,get:function(){return s.useLanguageOptions}}),Object.defineProperty(t,"LanguagePicker",{enumerable:!0,get:function(){return s.LanguagePicker}}),Object.defineProperty(t,"I18nContextProviderProps",{enumerable:!0,get:function(){return s.I18nContextProviderProps}}),Object.defineProperty(t,"LanguageContextProviderProps",{enumerable:!0,get:function(){return s.LanguageContextProviderProps}}),o(n(302),t),(0,i.polyfill)()},507:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Pagination=void 0;var i=n(259),a=(0,n(405).createLogger)("Pagination");t.Pagination=function(e,t,n){var u,s,c=this;this.query=e,this.creator=t,this.options=n,this.lastDocumentSnapshot=null,this.items=[],this.hasNextPage=!0,this.loading=!1,this.fetchMore=function(){c.loading?a.info("loading ..."):c.hasNextPage?(a.info("fetch more"),c.fetchData()):a.info("no more data")},this.fetchData=function(){return r(c,void 0,void 0,(function(){var e,t,n,r,i;return o(this,(function(o){switch(o.label){case 0:a.info("fetch data"),o.label=1;case 1:return o.trys.push([1,3,4,5]),this.startLoading(),[4,this.makeQuery()];case 2:return e=o.sent(),a.info("fetched "+e.size+" docs, going to create entities"),this.lastDocumentSnapshot=this.getLastSnapshotFromQuerySnapshot(e),t=this.getQuerySnapshotDocs(e),n=this.querySnapshotToEntities(t),r=this.items.concat(n),this.setItems(r),[3,5];case 3:return i=o.sent(),a.error(i),[3,5];case 4:return this.stopLoading(),[7];case 5:return[2]}}))}))},this.querySnapshotToEntities=function(e){return e.map((function(e){return c.creator(e.ref,e.data())}))},this.makeQuery=function(){return r(c,void 0,void 0,(function(){var e;return o(this,(function(t){return e=this.query,this.extraLimit?this.lastDocumentSnapshot?(a.info("making query with limit",this.extraLimit),e=e.limit(this.extraLimit).startAfter(this.lastDocumentSnapshot)):(a.info("making first query with limit",this.extraLimit),e=e.limit(this.extraLimit)):(a.info("fetch all documents without pagination"),this.setHasNextPage(!1)),[2,e.get()]}))}))},this.getLastSnapshotFromQuerySnapshot=function(e){var t=e.size;if(c.setHasNextPage(!!c.limit&&t>c.limit),c.hasNextPage){var n=c.getQuerySnapshotDocs(e);return n[n.length-1]}return null},this.getQuerySnapshotDocs=function(e){var t=e.docs;return c.hasNextPage&&t.pop(),t},this.startLoading=function(){c.loading=!0},this.stopLoading=function(){c.loading=!1},this.addItemToEnd=function(e){c.hasNextPage?a.info("ignoring of adding an item to pagination locally because not all items are loaded"):(a.info("add item to end"),c.setItems(c.items.concat([e])))},this.addItemToStart=function(e){a.info("add item to start"),c.setItems([e].concat(c.items))},this.setItems=function(e){c.items=e},this.setHasNextPage=function(e){c.hasNextPage=e},(0,i.makeObservable)(this,{items:i.observable,loading:i.observable,hasNextPage:i.observable,setItems:i.action,setHasNextPage:i.action,startLoading:i.action,stopLoading:i.action}),(null==n?void 0:n.noLimit)?(this.limit=null,this.extraLimit=null):(this.limit=null!==(s=null===(u=this.options)||void 0===u?void 0:u.limit)&&void 0!==s?s:10,this.extraLimit=this.limit+1),this.fetchData()}},118:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(177),t),o(n(507),t)},177:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RefsPagination=void 0;var i=n(259),a=n(405),u=(0,a.createLogger)("RefsPagination"),s=function(){function e(e,t,n,s,c){var l=this;if(void 0===n&&(n=!0),void 0===s&&(s=10),void 0===c&&(c=!0),this.refs=e,this.creator=t,this.initialized=n,this.limit=s,this.items=[],this.currentItems=[],this.currentPage=0,this.hasNextPage=!0,this.loading=!1,this.error=null,this.fetchMore=function(){return r(l,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return this.isLoading?[2]:(this.currentPage++,[4,this.fetchData()]);case 1:return e.sent(),[2]}}))}))},this.fetchData=function(){return r(l,void 0,void 0,(function(){var e,t,n,i,s,c,l=this;return o(this,(function(f){switch(f.label){case 0:if(this.isLoading||!this.hasNextPage)return[2];f.label=1;case 1:return f.trys.push([1,4,5,6]),u.info("fetchData"),e=this.currentPage*this.limit,t=e+this.limit,0!==this.items.slice(e,t).length?[3,3]:(n=this.refs.slice(e,t),t>=this.refs.length&&(this.hasNextPage=!1),this.startLoading(),[4,Promise.all(n.map((function(e){return r(l,void 0,void 0,(function(){var t,n;return o(this,(function(r){switch(r.label){case 0:return[4,e.get()];case 1:return t=r.sent(),(n=t.data())?[2,this.creator(e,n)]:[2,null]}}))}))})))]);case 2:return i=f.sent(),s=i.filter(a.notEmptyFilter),u.info("fetched "+s.length+" items of "+n.length+" refs"),this.endLoading(),this.setCurrentItems=s,this.setItems=this.items.concat(s),[3,3];case 3:return[3,6];case 4:return c=f.sent(),u.error(c),this.setError=c,[3,6];case 5:return this.endLoading(),[7];case 6:return[2]}}))}))},this.addItemToStart=function(e,t){l.refs=l.refs.concat([t]),l.getItems.unshift(e)},this.addItem=function(e,t){l.refs.length===l.items.length&&(l.setItems=l.items.concat([e])),l.refs=l.refs.concat([t])},this.getItem=function(e){return r(l,void 0,void 0,(function(){var t,n,r;return o(this,(function(o){switch(o.label){case 0:return(t=this.refs.find((function(t){return t.id===e})))?[4,t.get()]:[3,2];case 1:return n=o.sent(),(r=n.data())?[2,this.creator(n.ref,r)]:[3,3];case 2:throw new Error("ref-not-found");case 3:return[2]}}))}))},this.limit>1e3)throw new Error("Limit cannot be greater than 1000");c&&this.fetchData(),(0,i.makeObservable)(this,{items:i.observable,refs:i.observable,loading:i.observable,error:i.observable,hasNextPage:i.observable})}return e.prototype.startLoading=function(){this.setLoading=!0},e.prototype.endLoading=function(){this.setLoading=!1},Object.defineProperty(e.prototype,"getError",{get:function(){return this.error},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getCurrentItems",{get:function(){return this.currentItems},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getItems",{get:function(){return this.items},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getRefs",{get:function(){return this.refs},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getHasNextPage",{get:function(){return this.hasNextPage},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.loading},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getItemsCount",{get:function(){return this.refs.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInitialized",{get:function(){return this.initialized},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setItems",{set:function(e){this.items=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setLoading",{set:function(e){this.loading=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setCurrentItems",{set:function(e){this.currentItems=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setIsInitialized",{set:function(e){this.initialized=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setError",{set:function(e){this.error=e},enumerable:!1,configurable:!0}),e}();t.RefsPagination=s},21:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polyfill=void 0,t.polyfill=function(){"object"==typeof window&&"object"==typeof document&&window.addEventListener("load",(function(){var e=document.createElement("script");e.src="https://polyfill.io/v3/polyfill.min.js?features=String.prototype.normalize",e.id="tivio-polyfill-string-prototype-normalize",document.head.appendChild(e)}))}},122:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addOrReplace=t.replaceWithoutOverwritingValues=t.chunkArray=t.uniqueFilter=t.notEmptyFilter=void 0,t.notEmptyFilter=function(e){return!!e},t.uniqueFilter=function(e,t,n){return n.indexOf(e)===t},t.chunkArray=function(e,t){var n,r=e.length,o=[];for(n=0;n<r;n+=t){var i=e.slice(n,n+t);o.push(i)}return o},t.replaceWithoutOverwritingValues=function(e,t,n){var r=[];return t.forEach((function(t){var o=e.find((function(e){return n(t,e)}));r.push(null!=o?o:t)})),r},t.addOrReplace=function(e,t,n){void 0===n&&(n=function(e,t){return e===t});var r=e.findIndex((function(e){return n(t,e)}));return-1!==r?e[r]=t:e.push(t),e}},359:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Cache=void 0;var n=function(){function e(e){var t,n;this.enabled=!0,this.map=new Map,this.max=null!==(t=null==e?void 0:e.max)&&void 0!==t?t:1e3,this.convertKey=null!==(n=null==e?void 0:e.convertKey)&&void 0!==n?n:function(e){return e}}return e.prototype.set=function(e,t){this.enabled&&(this.map.size>this.max&&this.map.clear(),this.map.set(this.convertKey(e),t))},e.prototype.get=function(e){var t;return null!==(t=this.map.get(this.convertKey(e)))&&void 0!==t?t:null},e.prototype.has=function(e){return!!this.enabled&&this.map.has(this.convertKey(e))},e.prototype.getSize=function(){return this.map.size},e.prototype.disable=function(){this.enabled=!1},e}();t.Cache=n},530:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.onceAsync=t.once=void 0,t.once=function(e){var t=!1,n=null;return function(){return t||(n=e(),t=!0),n}},t.onceAsync=function(e){var t=!1,o=null;return function(){return n(void 0,void 0,void 0,(function(){return r(this,(function(n){switch(n.label){case 0:return t?[2,o]:(t=!0,[4,e()]);case 1:return[2,o=n.sent()]}}))}))}}},742:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.stringComparator=t.booleanComparator=t.numberComparator=t.SortDirection=void 0,function(e){e.ASC="ASC",e.DESC="DESC"}(n=t.SortDirection||(t.SortDirection={})),t.numberComparator=function(e,t,r){return void 0===r&&(r=n.ASC),r===n.ASC?e-t:t-e},t.booleanComparator=function(e,t){return e&&t?0:e&&!t?-1:!e&&t?1:0},t.stringComparator=function(e,t){return e<t?-1:1}},569:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(742),t),o(n(900),t),o(n(482),t)},900:function(e,t,n){"use strict";var r,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.strategiesComparator=t.expirationComparator=t.placementTypeComparator=t.PLACEMENT_TYPE_PRIORITIES=void 0;var i=n(146),a=o(n(160)),u=n(742);t.PLACEMENT_TYPE_PRIORITIES=((r={})[i.MonetizationPlacementType.TV_CHANNEL]=4,r[i.MonetizationPlacementType.VIDEO]=3,r[i.MonetizationPlacementType.CONDITION]=2,r[i.MonetizationPlacementType.SECTION]=1,r[i.MonetizationPlacementType.CHANNEL]=0,r),t.placementTypeComparator=function(e,n,r){return void 0===r&&(r=u.SortDirection.DESC),(0,u.numberComparator)(t.PLACEMENT_TYPE_PRIORITIES[e.placementType],t.PLACEMENT_TYPE_PRIORITIES[n.placementType],r)},t.expirationComparator=function(e,t,n){var r,o;return void 0===n&&(n=u.SortDirection.ASC),(0,u.numberComparator)(null!==(r=e.expirationDaysSincePublished)&&void 0!==r?r:Number.MAX_VALUE,null!==(o=t.expirationDaysSincePublished)&&void 0!==o?o:Number.MAX_VALUE,n)},t.strategiesComparator=function(e,t){return(0,u.numberComparator)((0,a.default)(e.strategies)?0:1,(0,a.default)(t.strategies)?0:1,u.SortDirection.ASC)}},482:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.globalsFirstRestAlphabeticallyComparator=t.alphabeticComparator=t.sortAlphabetically=void 0;var r=n(742);t.sortAlphabetically=function(e){return e.sort((function(e,t){return(0,r.stringComparator)(e.name,t.name)}))},t.alphabeticComparator=function(e,t){return(0,r.stringComparator)(e.name,t.name)},t.globalsFirstRestAlphabeticallyComparator=function(e,t){var n,o;return(0,r.booleanComparator)(null!==(n=e.isGlobal)&&void 0!==n&&n,null!==(o=t.isGlobal)&&void 0!==o&&o)||(0,r.stringComparator)(e.name,t.name)}},484:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.overrideDevice=t.isWebsite=t.isWebos=t.isTizen=t.isSmartTv=t.isSafari=t.isReactNative=t.isNewArris=t.isMobileBrowser=t.isLocalStorageEnabled=t.isIos=t.isIndexedDbSupported=t.isCookiesEnabled=t.isBrowserCompatible=t.isArris=t.getDeviceInfo=t.getArrisModelNumber=t.device=void 0;var r=n(741),o=n(924),i="undefined",a=function(){return typeof window!==i&&typeof document!==i};t.isBrowserCompatible=a,t.isMobileBrowser=function(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),t},t.isReactNative=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product},t.isCookiesEnabled=function(){if(!a()||"string"!=typeof document.cookie)return!1;document.cookie="tiviocookietest=1";var e=-1!=document.cookie.indexOf("tiviocookietest=");return document.cookie="tiviocookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e},t.isLocalStorageEnabled=function(){if(!a()||typeof window.localStorage===i)return!1;var e="tiviolocalstoragetest";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}};var u=function(){return a()&&typeof window.tizen!==i};t.isTizen=u;var s=function(){return a()&&typeof window.webOS!==i};t.isWebos=s;var c=function(){var e;return"arris"===(null===(e=f.info)||void 0===e?void 0:e.type)||a()&&typeof window.toi!==i};t.isArris=c;var l=function(){return u()||s()||c()};t.isSmartTv=l,t.isWebsite=function(){return!!a()&&(window.tivioDeviceOverride?"web"===window.tivioDeviceOverride:!l())},t.isIndexedDbSupported=function(){return window&&null!=window.indexedDB&&null!=window.IDBCursor&&null!=window.IDBCursorWithValue&&null!=window.IDBDatabase&&null!=window.IDBFactory&&null!=window.IDBIndex&&null!=window.IDBKeyRange&&null!=window.IDBObjectStore&&null!=window.IDBOpenDBRequest&&null!=window.IDBRequest&&null!=window.IDBTransaction&&null!=window.IDBVersionChangeEvent},t.isSafari=function(){var e=(0,o.detect)();return"safari"==(null==e?void 0:e.name)},t.isIos=function(){var e=(0,o.detect)();return"iOS"==(null==e?void 0:e.os)};var f={info:null};t.device=f,t.overrideDevice=function(e){f.info=e};var d=function(e){var t=e.replace("VIP",""),n=parseInt(t);return Number.isFinite(n)?n:null};t.getArrisModelNumber=d,t.getDeviceInfo=function(){if(f.info)switch(f.info.type){case"arris":return{os:"Arris",platform:r.PLATFORM.TV};case"react-native":if(!f.info.os)break;return{os:f.info.os,version:f.info.osVersion,platform:f.info.platform};default:console.warn("Unexpected device info object "+JSON.stringify(f.info))}if(u())return{os:"Tizen",platform:r.PLATFORM.TV};if(s())return{os:"webOS",platform:r.PLATFORM.TV};if(c())return{os:"Arris",platform:r.PLATFORM.TV};if(null===navigator||void 0===navigator?void 0:navigator.userAgent){var e=(0,o.detectOS)(navigator.userAgent);return e?{os:e,platform:r.PLATFORM.WEB}:void 0}},t.isNewArris=function(e){var t;if(!e)return!1;if("arris"!==e.type)return!1;var n=d(null!==(t=e.model)&&void 0!==t?t:"");return null!=n&&n>=4e3}},174:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.injectScriptToHead=t.injectScriptsToHead=void 0;var o=function(e){return new Promise((function(t,n){var r=document.createElement("script");r.type="text/javascript",r.src=e,r.onload=function(){return t()},r.onabort=function(){return n()},document.getElementsByTagName("head")[0].appendChild(r)}))};t.injectScriptToHead=o,t.injectScriptsToHead=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n(void 0,void 0,Promise,(function(){return r(this,(function(t){return[2,Promise.all(e.map(o))]}))}))}},447:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeAsNewEventLoopJob=void 0,t.executeAsNewEventLoopJob=function(e){setTimeout(e)}},479:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatCurrency=t.formatEpisode=t.toTwoPlaces=t.msToMMSS=t.msToMinutesString=void 0;var n=function(e){return e<10?"0"+e:""+e};t.toTwoPlaces=n,t.formatEpisode=function(e,t){return"S"+n(e)+"E"+n(t)},t.formatCurrency=function(e){switch(e){case"CZK":return"Kč";case"EUR":return"€";case"USD":return"$"}};var r=function(e){var t=Math.floor(e/1e3);return{minutes:Math.floor(t/60),seconds:t%60}};t.msToMinutesString=function(e){return r(e).minutes+" min"},t.msToMMSS=function(e){var t=r(e),o=t.minutes,i=t.seconds;return o+":"+n(i)}},513:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.preloadImages=t.preloadImage=void 0,t.preloadImage=function(e){return new Promise((function(t,n){var r=new Image;r.src=e,r.onload=t,r.onerror=function(){n("image failed to load (uri:"+e+")")}}))},t.preloadImages=function(e){return Promise.all(e.map(t.preloadImage))}},405:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(122),t),o(n(783),t),o(n(40),t),o(n(359),t),o(n(569),t),o(n(513),t),o(n(479),t),o(n(647),t),o(n(447),t),o(n(530),t),o(n(484),t),o(n(893),t),o(n(341),t),o(n(174),t)},783:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=t.createLogger=void 0;var o=n(484),i=function(){function e(e){this.name=e,this._isEnabled=!0}return e.initialize=function(){(0,o.isBrowserCompatible)()&&(window.onerror=function(t){var n,r;"string"==typeof t?null===(n=e.onLog)||void 0===n||n.call(e,"error",{text:[t]}):null===(r=e.onLog)||void 0===r||r.call(e,"error",{classic:[t]})})},e.shouldUseLegacyLogger=function(){return e.legacy||(0,o.isArris)()},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.safeLog("error",{classic:e})},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.safeLog("warn",{classic:e})},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.safeLog("info",{classic:e})},e.prototype.safeError=function(e){this.safeLog("error",e)},e.prototype.safeWarn=function(e){this.safeLog("warn",e)},e.prototype.safeInfo=function(e){this.safeLog("info",e)},e.prototype.safeLog=function(t,n){var r,o,i,a;this._isEnabled&&e.onLog&&(a=null!==(r=n.text)&&void 0!==r?r:n.classic)&&e.onLog(t,n),this.isEnabled()&&(e.shouldUseLegacyLogger()?(a=null!==(o=n.text)&&void 0!==o?o:(null!==(i=n.classic)&&void 0!==i?i:[]).map((function(e){return null==e?"falsy":e})).map((function(e){return JSON.stringify(e)}))).length>0&&this.legacyConsoleLogMessages(t,a):n.classic&&n.classic.length>0?this.log(t,n.classic):n.text&&n.text.length>0&&this.log(t,n.text))},e.prototype.off=function(){this._isEnabled=!1},e.prototype.on=function(){this._isEnabled=!0},e.prototype.forceInfo=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];console.info.apply(console,r([e.prefix+":"+this.name],t,!1))},e.prototype.isEnabled=function(){return e.enabled&&this._isEnabled},e.prototype.log=function(e,t){console[e].apply(console,r([this.getPrefix()],t,!1))},e.prototype.legacyConsoleLogMessages=function(e,t){var n=t.join(", ");console[e](this.getPrefix()+" "+n)},e.prototype.getPrefix=function(){return e.prefix+":"+this.name},e.enabled=!0,e.legacy=!1,e.onLog=null,e.prefix="tivio",e}();t.Logger=i,i.initialize(),t.createLogger=function(e){return new i(e)}},893:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keepNonNegative=t.getPercentOf=t.isClose=t.toPercent=t.safeParseInt=t.round=t.random=t.intervalContainsPoint=t.intervalContains=t.clampPercent=t.clamp=void 0,t.random=function(e){return Math.round(Math.random()*e)},t.safeParseInt=function(e,t){return void 0===t&&(t=0),parseInt(null!=e?e:t)};var n=function(e,t,n){return Math.min(Math.max(e,t),n)};t.clamp=n;var r=function(e){return n(e,0,100)};t.clampPercent=r,t.toPercent=function(e){return r(Math.round(100*e))},t.round=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},t.intervalContains=function(e,t){return e.from<t.from&&t.to<e.to},t.intervalContainsPoint=function(e,t){return e.from<=t&&t<=e.to},t.isClose=function(e,t,n){return Math.abs(e-t)<=n},t.getPercentOf=function(e,t){var n=Math.round(e/t*100);return isFinite(n)?r(n):null},t.keepNonNegative=function(e){return Math.max(0,e)}},341:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToInteger=void 0,t.stringToInteger=function(e){return e&&Number.isInteger(Number(e))?Number(e):null}},647:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toSnakeCase=t.toKebabCase=t.removeAccents=t.normalizeText=t.capitalizeText=void 0;var n=function(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")};t.removeAccents=n;var r=function(e){return e.trim().toLocaleLowerCase().replace(/\s+/g,"_").replace("-","_")};t.toSnakeCase=r;var o=function(e){return e.trim().toLocaleLowerCase().replace(/\s+/g,"-").replace("_","-")};t.toKebabCase=o,t.normalizeText=function(e,t){void 0===t&&(t="snake-case");var i=n(e);return"snake-case"===t?r(i):o(i)},t.capitalizeText=function(e){return(null==e?void 0:e.length)?e.charAt(0).toUpperCase()+e.substr(1).toLowerCase():""}},40:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.secondsToMilliseconds=t.getRelativeTime=t.getDuration=t.getMinsSecsHours=t.getMinsSecs=t.twoPlaces=t.getHours=t.getMins=t.getSecs=t.parseCzechDate=t.isInThePast=t.addSeconds=t.addMs=t.addMinutes=t.addHours=t.addDays=void 0;var a=i(n(96));function u(e,t){return s(e,60*t)}function s(e,t){return l(e,60*t)}function c(e,t){return new Date(e.getTime()+t)}function l(e,t){return c(e,1e3*t)}function f(e,t){var n=null!=e?Math.floor(e/1e3):0;return t?n%60:n}function d(e,t){var n=null!=e?Math.floor(f(e)/60):0;return t?n%60:n}function p(e,t){var n=null!=e?Math.floor(d(e)/60):0;return t?n%24:n}function h(e){return e>=10?e:"0"+e}t.addDays=function(e,t){return u(e,24*t)},t.addHours=u,t.addMinutes=s,t.addMs=c,t.addSeconds=l,t.isInThePast=function(e){return e<new Date},t.parseCzechDate=function(e){var t=a.parse("dd.MM.yyyy hh:mm",e),n=1e3*t.getSeconds()+t.getMilliseconds();return new Date(t.getTime()-n)},t.getSecs=f,t.getMins=d,t.getHours=p,t.twoPlaces=h,t.getMinsSecs=function(e){if(e<0)return{mins:0,secs:0,text:"",textWordy:""};var t=d(e),n=f(e,!0),r="";return n&&(r=n+" s"),t&&(r=t+" min"+(r.length>0?" "+r:"")),{mins:t,secs:n,text:t+":"+h(n),textWordy:r}},t.getMinsSecsHours=function(e){var t=p(e),n=d(e,!0),r=f(e,!0),o=n+":"+h(r);return t>0&&(4===o.length&&(o="0"+o),o=t+":"+o),{hours:t,mins:n,secs:r,text:o}},t.getDuration=function(e){return null==e||e<0?null:Math.round(e/60)+" MIN"},t.getRelativeTime=function(e){if(null==e)return"";var t=((new Date).getTime()-e.getTime())/36e5,n=Math.floor(t);if(n<1)return"";if(n<24)return n+" HOURS AGO";var r=t/24,o=Math.floor(r);if(o<7)return o+" DAYS AGO";var i=r/7,a=Math.floor(i);if(a<5)return a+" WEEKS AGO";var u=r/30,s=Math.floor(u);if(s<12)return s+" MONTHS AGO";var c=r/365;return Math.ceil(c)+" YEARS AGO"},t.secondsToMilliseconds=function(e){return null==e?null:1e3*Number(e)}},259:function(e){"use strict";e.exports=r},156:function(e){"use strict";e.exports=o}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return 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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),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})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n(368)}())},8741:function(e){e.exports=function(){"use strict";var e={723:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(902),t)},902:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.VAST_PROVIDERS=t.VastProvider=void 0,function(e){e.CNC_PREBID="cnc-prebid",e.ETARGET_PREBID="etarget-prebid",e.FALLBACK_HLS="fallback-hls",e.FALLBACK_MP4="fallback",e.GARAZ_TV="garaz.tv",e.GARAZ_TV_DEV="garaz.tv.dev",e.IMPRESSION_MEDIA_PREBID="impressionMedia-prebid",e.JOJ="joj",e.MALL_TV="malltv",e.MALL_TV_PREBID="malltv-prebid",e.PRIMA="prima",e.TEST="test",e.TEST_VPAID="test-vpaid"}(n=t.VastProvider||(t.VastProvider={})),t.VAST_PROVIDERS=[{id:n.ETARGET_PREBID,name:"Etarget Prebid"},{id:n.MALL_TV_PREBID,name:"MALL.TV Prebid"},{id:n.IMPRESSION_MEDIA_PREBID,name:"Impression Media Prebid"},{id:n.CNC_PREBID,name:"CNC Prebid"},{id:n.MALL_TV,name:"MALL.TV"},{id:n.JOJ,name:"JOJ"},{id:n.PRIMA,name:"Prima"},{id:n.GARAZ_TV,name:"Garaz TV"},{id:n.GARAZ_TV_DEV,name:"Garaz TV dev"},{id:n.FALLBACK_MP4,name:"Tivio Prebid",development:!1},{id:n.FALLBACK_HLS,name:"Fallback (HLS)",development:!0},{id:n.TEST,name:"Test",development:!0},{id:n.TEST_VPAID,name:"Test VPAID",development:!0}]},920:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(895),t),o(n(216),t),o(n(723),t)},216:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},489:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},304:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerWrapperEventType=void 0,(n=t.PlayerWrapperEventType||(t.PlayerWrapperEventType={})).adMetadata="adMetadata",n.markers="markers"},690:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.CUSTOMER_BUILD=void 0,(n=t.CUSTOMER_BUILD||(t.CUSTOMER_BUILD={})).OKTAGON="OKTAGON",n.JOJ="JOJ",n.MALL="MALL",n.GARAZ="GARAZ",n.U_KULATEHO_STOLU="U_KULATEHO_STOLU",n.INVESTOREES="INVESTOREES"},801:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},423:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},2:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PLATFORM=void 0,(n=t.PLATFORM||(t.PLATFORM={})).MOBILE="MOBILE",n.WEB="WEB",n.TV="TV"},123:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},589:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},352:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(489),t),o(n(304),t),o(n(690),t),o(n(801),t),o(n(423),t),o(n(495),t),o(n(2),t),o(n(123),t),o(n(589),t),o(n(889),t),o(n(703),t),o(n(743),t),o(n(407),t),o(n(757),t)},889:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},495:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},703:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},743:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},407:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},757:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},255:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_ORDER_BY=t.CURRENCIES=t.languages=t.LangCode=void 0,function(e){e.CS="cs",e.DE="de",e.EN="en",e.FR="fr",e.PL="pl",e.SK="sk",e.SP="sp"}(n=t.LangCode||(t.LangCode={})),t.languages=Object.values(n),t.CURRENCIES=["CZK","EUR","USD"],t.DEFAULT_ORDER_BY=[{field:"created",directionStr:"desc"}]},396:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},202:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},129:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},786:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(363),t),o(n(635),t),o(n(202),t),o(n(910),t),o(n(906),t),o(n(948),t),o(n(535),t),o(n(161),t),o(n(656),t),o(n(614),t),o(n(396),t),o(n(738),t),o(n(129),t),o(n(959),t),o(n(605),t),o(n(190),t)},959:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MONETIZATION_FREQUENCY=void 0,(n=t.MONETIZATION_FREQUENCY||(t.MONETIZATION_FREQUENCY={})).ONE_TIME_PAYMENT="ONE_TIME_PAYMENT",n.DAILY="DAILY",n.WEEKLY="WEEKLY",n.MONTHLY="MONTHLY",n.ANNUALLY="ANNUALLY"},910:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},738:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},535:function(e,t){var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ROW_ITEM_TYPES=t.RowItemComponent=t.RowComponent=void 0,(o=t.RowComponent||(t.RowComponent={})).ROW="ROW",o.BANNER="BANNER",(r=t.RowItemComponent||(t.RowItemComponent={})).ROW_ITEM_PORTRAIT="ROW_ITEM_PORTRAIT",r.ROW_ITEM_LANDSCAPE="ROW_ITEM_LANDSCAPE",r.ROW_ITEM_CIRCLED="ROW_ITEM_CIRCLED",(n=t.ROW_ITEM_TYPES||(t.ROW_ITEM_TYPES={})).VIDEO="VIDEO",n.TAG="TAG",n.TV_CHANNEL="TV_CHANNEL"},161:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},605:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ALGOLIA_INDEX_NAME=void 0,(n=t.ALGOLIA_INDEX_NAME||(t.ALGOLIA_INDEX_NAME={})).VIDEOS="videos",n.VIDEOSDESC="videos_created_desc",n.TAGS="tags",n.TV_CHANNELS="tvChannels",n.USERS="users"},190:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},614:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},656:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},906:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},363:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseStatus=t.UserType=void 0,(r=t.UserType||(t.UserType={})).ORGANIZATION_USER="ORGANIZATION_USER",r.TIVIO_USER="TIVIO_USER",(n=t.PurchaseStatus||(t.PurchaseStatus={})).NEW="NEW",n.PAID="PAID",n.CANCELLED="CANCELLED",n.ERROR="ERROR",n.BLOCKED="BLOCKED"},948:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoType=t.VideoContentType=void 0,(r=t.VideoContentType||(t.VideoContentType={})).VIDEO="VIDEO",r.FILM="FILM",r.SERIES="SERIES",(n=t.VideoType||(t.VideoType={})).PLAYLIST="PLAYLIST",n.VIDEO="VIDEO",n.TV_PROGRAM="TV_PROGRAM",n.SERIES="SERIES"},635:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},895:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(786),t),o(n(352),t),o(n(255),t),o(n(620),t)},620:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})}},t={};return function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}(920)}()},8879:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",u="week",s="month",c="quarter",l="year",f="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},g={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,s),i=n-o<0,a=t.clone().add(r+(i?-1:1),s);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:l,w:u,d:a,D:f,h:i,m:o,s:r,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",m={};m[b]=v;var _=function(e){return e instanceof S},w=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();m[i]&&(o=i),n&&(m[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var u=t.name;m[u]=t,o=u}return!r&&o&&(b=o),o||!r&&b},O=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new S(n)},P=g;P.l=w,P.i=_,P.w=function(e,t){return O(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function v(e){this.$L=w(e.locale,null,!0),this.parse(e)}var y=v.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(P.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return P},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(e,t){var n=O(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return O(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<O(e)},y.$g=function(e,t,n){return P.u(e)?this[t]:this.set(n,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var n=this,c=!!P.u(t)||t,d=P.p(e),p=function(e,t){var r=P.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(a)},h=function(e,t){return P.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},v=this.$W,y=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(d){case l:return c?p(1,0):p(31,11);case s:return c?p(1,y):p(0,y+1);case u:var m=this.$locale().weekStart||0,_=(v<m?v+7:v)-m;return p(c?g-_:g+(6-_),y);case a:case f:return h(b+"Hours",0);case i:return h(b+"Minutes",1);case o:return h(b+"Seconds",2);case r:return h(b+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var u,c=P.p(e),d="set"+(this.$u?"UTC":""),p=(u={},u[a]=d+"Date",u[f]=d+"Date",u[s]=d+"Month",u[l]=d+"FullYear",u[i]=d+"Hours",u[o]=d+"Minutes",u[r]=d+"Seconds",u[n]=d+"Milliseconds",u)[c],h=c===a?this.$D+(t-this.$W):t;if(c===s||c===l){var v=this.clone().set(f,1);v.$d[p](h),v.init(),this.$d=v.set(f,Math.min(this.$D,v.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[P.p(e)]()},y.add=function(n,c){var f,d=this;n=Number(n);var p=P.p(c),h=function(e){var t=O(d);return P.w(t.date(t.date()+Math.round(e*n)),d)};if(p===s)return this.set(s,this.$M+n);if(p===l)return this.set(l,this.$y+n);if(p===a)return h(1);if(p===u)return h(7);var v=(f={},f[o]=e,f[i]=t,f[r]=1e3,f)[p]||1,y=this.$d.getTime()+n*v;return P.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=P.z(this),i=this.$H,a=this.$m,u=this.$M,s=n.weekdays,c=n.months,l=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].substr(0,i)},f=function(e){return P.s(i%12||12,e,"0")},p=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},v={YY:String(this.$y).slice(-2),YYYY:this.$y,M:u+1,MM:P.s(u+1,2,"0"),MMM:l(n.monthsShort,u,c,3),MMMM:l(c,u),D:this.$D,DD:P.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,s,2),ddd:l(n.weekdaysShort,this.$W,s,3),dddd:s[this.$W],H:String(i),HH:P.s(i,2,"0"),h:f(1),hh:f(2),a:p(i,a,!0),A:p(i,a,!1),m:String(a),mm:P.s(a,2,"0"),s:String(this.$s),ss:P.s(this.$s,2,"0"),SSS:P.s(this.$ms,3,"0"),Z:o};return r.replace(h,(function(e,t){return t||v[e]||o.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(n,f,d){var p,h=P.p(f),v=O(n),y=(v.utcOffset()-this.utcOffset())*e,g=this-v,b=P.m(this,v);return b=(p={},p[l]=b/12,p[s]=b,p[c]=b/3,p[u]=(g-y)/6048e5,p[a]=(g-y)/864e5,p[i]=g/t,p[o]=g/e,p[r]=g/1e3,p)[h]||g,d?b:P.a(b)},y.daysInMonth=function(){return this.endOf(s).$D},y.$locale=function(){return m[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=w(e,t,!0);return r&&(n.$L=r),n},y.clone=function(){return P.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},v}(),E=S.prototype;return O.prototype=E,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",a],["$M",s],["$y",l],["$D",f]].forEach((function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),O.extend=function(e,t){return e.$i||(e(t,S,O),e.$i=!0),O},O.locale=w,O.isDayjs=_,O.unix=function(e){return O(1e3*e)},O.en=m[b],O.Ls=m,O.p={},O}()},6916:function(e,t,n){e.exports=function(){"use strict";var e=n(1350),t=Function.bind.call(Function.call,Array.prototype.reduce),r=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),o=Function.bind.call(Function.call,Array.prototype.concat);return Object.values||(Object.values=function(n){return t(e(n),(function(e,t){return o(e,"string"==typeof t&&r(n,t)?[n[t]]:[])}),[])}),Object.entries||(Object.entries=function(n){return t(e(n),(function(e,t){return o(e,"string"==typeof t&&r(n,t)?[[t,n[t]]]:[])}),[])}),Object}()},1350:function(e){"object"==typeof Reflect&&"function"==typeof Reflect.ownKeys?e.exports=Reflect.ownKeys:"function"==typeof Object.getOwnPropertySymbols?e.exports=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:e.exports=Object.getOwnPropertyNames},3996:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextProvider=void 0;var o=r(n(8156));t.ContextProvider=function(e){var t=e.bundleState,n=e.children,r=t.internal;return(null==r?void 0:r.providers)?o.default.createElement(r.providers.UserContextProvider,null,o.default.createElement(r.providers.OrganizationSubscriptionsContextProvider,null,o.default.createElement(r.providers.PurchasesWithVideosContextProvider,null,n))):o.default.createElement(o.default.Fragment,null,n)}},8074:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.withPlayerContext=t.PlayerProvider=t.PlayerContext=void 0;var u=a(n(8156)),s=n(7968);t.PlayerContext=u.default.createContext(void 0),t.PlayerProvider=function(e){var n=e.children,r=e.playerWrapperId,o=c(void 0===r?"default":r),i=l(),a=u.default.createElement(t.PlayerContext.Provider,{value:o},n);return i&&(a=u.default.createElement(i.Provider,{value:{player:o}},a)),a};var c=function(e){var t,n=(0,u.useState)(null!==(t=null===s.tivioBundle||void 0===s.tivioBundle?void 0:s.tivioBundle.getters.getPlayerWrapper({playerWrapperId:e}))&&void 0!==t?t:null),r=n[0],o=n[1];return(0,u.useEffect)((function(){s.tivioBundle||s.bundlePromise.then((function(t){var n=t.getters.getPlayerWrapper({playerWrapperId:e});o(n)})).catch((function(){}))}),[e]),r},l=function(){var e=(0,u.useState)(null),t=e[0],n=e[1];return(0,u.useEffect)((function(){s.bundlePromise.then((function(e){var t,r=null===(t=e.components)||void 0===t?void 0:t.PlayerDataContext;n(r)})).catch((function(){}))}),[]),t};t.withPlayerContext=function(e){return function(n){return function(o){return u.default.createElement(t.PlayerProvider,{playerWrapperId:e},u.default.createElement(n,r({},o)))}}}},8185:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TivioProvider=t.TivioContext=void 0;var a=i(n(8156)),u=n(952),s=n(6111),c=n(6435),l=n(3996),f=(0,s.createUseRemoteBundle)();t.TivioContext=a.default.createContext(null),t.TivioProvider=function(e){var n,r=e.children,o=e.conf,i=(0,a.useMemo)((function(){return(0,u.createInternalConf)(o)}),[]),s=f(i);if((0,a.useEffect)((function(){!1===(null==i?void 0:i.enable)||!1===(null==i?void 0:i.enableSentry)?(0,c.disableSentry)():(0,c.initSentry)()}),[]),(null==i?void 0:i.runFeatureSupportCheck)&&"ready"===s.state&&(null===(n=s.components)||void 0===n?void 0:n.FeatureSupportCheck))return a.default.createElement(s.components.FeatureSupportCheck,null);var d="ready"===(null==s?void 0:s.state)&&s.components?a.default.createElement(s.components.Provider,{language:i.language,disableUnmounting:i.disableUnmounting},r):r;return a.default.createElement(l.ContextProvider,{bundleState:s},a.default.createElement(t.TivioContext.Provider,{value:s},d))}},5111:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TivioWidget=void 0;var a=i(n(8156)),u=n(1012),s=n(3366);t.TivioWidget=a.default.forwardRef((function(e,t){var n=e.id,r=e.onBlur,o=e.onEnabled;if("string"!=typeof n||!n.length)return a.default.createElement(s.TivioWidgetError,{error:"TivioWidget must have a mandatory property 'id'."});var i=(0,u.useTivioData)(),c=i.state,l=i.error,f=i.components,d=i.config,p=d.ErrorComponent,h=d.LoaderComponent;switch((0,a.useEffect)((function(){"error"===c&&(null==o||o(!1))}),[c]),c){case"error":return a.default.createElement(p,{error:l});case"loading":return a.default.createElement(h,null);case"ready":return f?a.default.createElement(f.Widget,{id:n,ref:t,onEnabled:o,onBlur:r}):null}}))},3366:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TivioWidgetError=void 0;var o=r(n(8156));t.TivioWidgetError=function(e){var t=e.error;return o.default.createElement("div",{style:{backgroundColor:"#d84f92",color:"#fff",padding:"1rem"}},t)}},8491:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TivioWidgetLoader=void 0;var o=r(n(8156));t.TivioWidgetLoader=function(){return o.default.createElement("div",null,"loading...")}},467:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TvTivioProvider=void 0;var a=i(n(8156)),u=n(952),s=n(6111),c=n(6435),l=n(3996),f=n(8185),d=(0,s.createUseRemoteBundle)();t.TvTivioProvider=function(e){var t,n=e.children,r=e.conf,o=(0,u.createInternalConf)(null!=r?r:null),i=d(o);return(0,a.useEffect)((function(){!1===(null==o?void 0:o.enable)||!1===(null==o?void 0:o.enableSentry)?(0,c.disableSentry)():(0,c.initSentry)()}),[]),(null==o?void 0:o.runFeatureSupportCheck)&&"ready"===i.state&&(null===(t=i.components)||void 0===t?void 0:t.FeatureSupportCheck)?a.default.createElement(i.components.FeatureSupportCheck,null):a.default.createElement(l.ContextProvider,{bundleState:i},a.default.createElement(f.TivioContext.Provider,{value:i},n))}},1012:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5545),t),o(n(8919),t),o(n(4588),t),o(n(2045),t),o(n(1530),t),o(n(8186),t),o(n(3991),t),o(n(9735),t),o(n(5382),t),o(n(6621),t),o(n(3533),t),o(n(2997),t),o(n(360),t),o(n(563),t),o(n(2700),t),o(n(2484),t),o(n(7337),t),o(n(8918),t),o(n(7571),t)},6621:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useAdSegment=t.useSeekState=t.useCurrentMarker=t.useAd=t.useIntro=t.useBetOffer=t.useMarkers=t.usePlayerEvent=void 0;var r=n(8156),o=n(8074),i=n(2484);t.usePlayerEvent=function(e){var t=(0,r.useContext)(o.PlayerContext);if(void 0===t)throw new Error("usePlayerEvent must be inside PlayerContext");var n=(0,r.useState)(null),i=n[0],a=n[1];return(0,r.useEffect)((function(){if(null==t?void 0:t.events)return t.events.addListener(e,a),function(){return t.events.removeListener(e,a)}}),[null==t?void 0:t.events]),i},t.useMarkers=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useMarkers must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events)return e.events.addListener("markers",i),function(){return e.events.removeListener("markers",i)}}),[null==e?void 0:e.events]),n},t.useBetOffer=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useBetOffer must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events)return e.events.addListener("bet-offer",i),function(){return e.events.removeListener("bet-offer",i)}}),[null==e?void 0:e.events]),n},t.useIntro=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useIntro must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events)return e.events.addListener("intro",i),function(){return e.events.removeListener("intro",i)}}),[null==e?void 0:e.events]),n},t.useAd=function(){var e,t,n=(0,i.useTivioReadyData)();return(null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.useAd())&&void 0!==t?t:[null])[0]},t.useCurrentMarker=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useCurrentMarker must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events)return e.events.addListener("current-marker",i),function(){return e.events.removeListener("current-marker",i)}}),[null==e?void 0:e.events]),n},t.useSeekState=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useSeekState must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events){var t=function(){return i(!1)},n=function(){return i(!0)};return e.events.addListener("disable-seek",t),e.events.addListener("enable-seek",n),function(){e.events.removeListener("disable-seek",t),e.events.removeListener("enable-seek",n)}}}),[null==e?void 0:e.events]),n},t.useAdSegment=function(){var e,t,n=(0,i.useTivioReadyData)();return null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.useAdSegment())&&void 0!==t?t:null}},8918:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useApplyInviteCode=void 0;var r=n(2484);t.useApplyInviteCode=function(){var e,t,n=(0,r.useTivioData)().hooks;return null!==(t=null===(e=null==n?void 0:n.useApplyInviteCode)||void 0===e?void 0:e.call(n))&&void 0!==t?t:{applyInviteCodeResult:void 0,loading:!0,error:void 0,applyInviteCode:function(){},inviteCodeReset:function(){}}}},1530:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useCancelSubscription=void 0;var r=n(2484);t.useCancelSubscription=function(e){var t,n,o=(0,r.useTivioData)().hooks,i=null!==(n=null===(t=null==o?void 0:o.useCancelSubscription)||void 0===t?void 0:t.call(o,e))&&void 0!==n?n:{},a=i.cancelSubscription,u=i.cancellationInfo;return{cancelSubscription:null!=a?a:function(){return Promise.resolve()},cancellationInfo:null!=u?u:null,error:i.error}}},7571:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIsLoaded=void 0;var r=n(8156),o=n(2484);t.useIsLoaded=function(){var e=(0,r.useState)(!1),t=e[0],n=e[1],i=(0,o.useTivioData)();return(0,r.useEffect)((function(){i.getters&&i.getters.isTivioLoaded(n)}),[i]),{isTivioLoaded:t}}},2997:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIsMonetizationPurchased=void 0;var r=n(2484);t.useIsMonetizationPurchased=function(){var e,t=(0,r.useTivioData)().internal;return null!==(e=null==t?void 0:t.hooks.useIsMonetizationPurchased())&&void 0!==e?e:{isOneOfSubscriptionPurchased:function(){return!1}}}},2045:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useItemsInRow=void 0;var r=n(2484);t.useItemsInRow=function(e,t){var n,o;void 0===t&&(t={noLimit:!1,limit:3});var i=(0,r.useTivioData)().hooks;return null!==(o=null===(n=null==i?void 0:i.useItemsInRow)||void 0===n?void 0:n.call(i,e,t))&&void 0!==o?o:{pagination:null,error:null}}},3533:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useOrganizationSubscriptions=void 0;var r=n(2484);t.useOrganizationSubscriptions=function(){var e,t,n=(0,r.useTivioData)().internal;return null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.useOrganizationSubscriptions())&&void 0!==t?t:{subscriptions:[]}}},3991:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.usePurchaseRecovery=void 0;var r=n(2484);t.usePurchaseRecovery=function(){var e,t,n=(0,r.useTivioData)().hooks;return null!==(t=null===(e=null==n?void 0:n.usePurchaseRecovery)||void 0===e?void 0:e.call(n))&&void 0!==t?t:{purchaseRecoveryResult:void 0,loading:!0,error:void 0,purchaseRecovery:function(){}}}},9735:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.usePurchaseSubscription=void 0;var i=n(2484);t.usePurchaseSubscription=function(e,t){var n,a,u=(0,i.useTivioData)().hooks;return null!==(a=null===(n=null==u?void 0:u.usePurchaseSubscription)||void 0===n?void 0:n.call(u,e,t))&&void 0!==a?a:{paymentInfo:null,getPaymentInfo:function(){return r(void 0,void 0,void 0,(function(){return o(this,(function(e){return[2]}))}))},paymentStatus:null,paymentError:null}}},360:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.usePurchasesWithVideos=void 0;var r=n(2484);t.usePurchasesWithVideos=function(){var e,t,n=(0,r.useTivioData)().internal;return null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.usePurchasesWithVideos())&&void 0!==t?t:{purchases:[]}}},563:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useRowsInScreen=void 0;var r=n(2484);t.useRowsInScreen=function(e,t){var n,o;void 0===t&&(t={noLimit:!1,limit:3});var i=(0,r.useTivioData)().hooks;return null!==(o=null===(n=null==i?void 0:i.useRowsInScreen)||void 0===n?void 0:n.call(i,e,t))&&void 0!==o?o:{pagination:null,error:null}}},4588:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSearch=void 0;var r=n(2484);t.useSearch=function(e,t){var n,o,i=(0,r.useTivioData)().hooks,a=null!==(o=null===(n=null==i?void 0:i.useSearch)||void 0===n?void 0:n.call(i,e,t))&&void 0!==o?o:{},u=a.search,s=a.pagination,c=a.isLoading,l=a.error,f=a.lastQuery;return{search:null!=u?u:function(){return Promise.resolve()},pagination:null!=s?s:null,isLoading:null==c||c,error:null!=l?l:null,lastQuery:null!=f?f:""}}},8919:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useTaggedVideos=void 0;var r=n(2484);t.useTaggedVideos=function(e,t){var n,o;void 0===t&&(t={noLimit:!1,limit:3});var i=(0,r.useTivioData)().hooks;return null!==(o=null===(n=null==i?void 0:i.useTaggedVideos)||void 0===n?void 0:n.call(i,e,t))&&void 0!==o?o:{pagination:null,error:null}}},2484:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useTivioReadyData=t.useTivioData=void 0;var r=n(8156),o=n(8185);t.useTivioData=function(){var e=(0,r.useContext)(o.TivioContext);if(null===e)throw new Error("Make sure to wrap your app in TivioProvider");return e},t.useTivioReadyData=function(){var e=(0,t.useTivioData)();return"ready"===e.state?e:null}},8186:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.useTransactionPayment=void 0;var i=n(2484);t.useTransactionPayment=function(e,t,n){var a,u,s=(0,i.useTivioData)().hooks;return null!==(u=null===(a=null==s?void 0:s.useTransactionPayment)||void 0===a?void 0:a.call(s,e,t,n))&&void 0!==u?u:{paymentInfo:null,getPaymentInfo:function(){return r(void 0,void 0,void 0,(function(){return o(this,(function(e){return[2]}))}))},paymentStatus:null,paymentError:null}}},5545:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useUser=void 0;var r=n(2484);t.useUser=function(){var e,t,n=(0,r.useTivioData)().internal;return null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.useUser())&&void 0!==t?t:{user:null,error:null,isInitialized:!1}}},5382:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useVideo=void 0;var r=n(3368);t.useVideo=function(e){var t,n=(0,r.useTivioData)().hooks;return null!==(t=null==n?void 0:n.useVideo(null!=e?e:""))&&void 0!==t?t:{error:null,data:null}}},2700:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useVoucher=void 0;var r=n(3368);t.useVoucher=function(e){var t=(0,r.useTivioData)().hooks,n=null==t?void 0:t.useVoucher(e);return{activate:n?n.activate:null,voucher:n?n.voucher:null,error:n?n.error:null,activationSuccess:!!n&&n.activationSuccess}}},7337:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useWatchWithoutAdsOffer=void 0;var r=n(2484);t.useWatchWithoutAdsOffer=function(){var e,t,n=(0,r.useTivioReadyData)();return null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.useWatchWithoutAdsOffer())&&void 0!==t?t:{canPurchaseWatchWithoutAds:!1,showPurchaseDialog:function(){}}}},952:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createInternalConf=t.defaultConf=void 0;var o=n(3366),i=n(8491),a=n(5167),u=n(8323),s=n(5883),c=n(8741);t.defaultConf={secret:"",resolverUrl:"https://tivio-resolver-production.tiv.io/serveBundle/resolver2.js",currency:"CZK",language:c.LangCode.EN,disableUnmounting:!1,fetchPackage:u.fetchPackage,pubSub:(0,s.getPubSub)(),LoaderComponent:i.TivioWidgetLoader,ErrorComponent:o.TivioWidgetError},t.createInternalConf=function(e){if(e&&null==e.currency)throw new Error(".currency is missing in Tivio config");return r(r(r(r({},t.defaultConf),null!=e?e:{}),(null==e?void 0:e.secret)?{}:{enable:!1}),{logger:void 0!==(null==e?void 0:e.logger)?e.logger:(0,a.createLogger)({isConsoleEnabled:!0}),sdkVersion:"4.0.1"})}},3368:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.showGdprConsentPreferences=t.setUser=t.Nullable=t.Empty=t.Disposer=t.bundlePromise=t.withPlayerContext=t.PlayerProvider=void 0,n(6168),n(6916);var i=n(8074);Object.defineProperty(t,"PlayerProvider",{enumerable:!0,get:function(){return i.PlayerProvider}}),Object.defineProperty(t,"withPlayerContext",{enumerable:!0,get:function(){return i.withPlayerContext}});var a=n(7968);Object.defineProperty(t,"bundlePromise",{enumerable:!0,get:function(){return a.bundlePromise}}),o(n(1012),t),o(n(8185),t),o(n(5111),t),o(n(3366),t),o(n(467),t),o(n(8491),t),o(n(6111),t),o(n(5883),t),o(n(4952),t);var u=n(1649);Object.defineProperty(t,"Disposer",{enumerable:!0,get:function(){return u.Disposer}});var s=n(1649);Object.defineProperty(t,"Empty",{enumerable:!0,get:function(){return s.Empty}});var c=n(1649);Object.defineProperty(t,"Nullable",{enumerable:!0,get:function(){return c.Nullable}}),o(n(3551),t);var l=n(6732);Object.defineProperty(t,"setUser",{enumerable:!0,get:function(){return l.setUser}});var f=n(4207);Object.defineProperty(t,"showGdprConsentPreferences",{enumerable:!0,get:function(){return f.showGdprConsentPreferences}}),o(n(8741),t),(0,n(5936).logInfo)()},5936:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logInfo=void 0;var r=n(194),o=new r.Logger("tivio");t.logInfo=function(){var e=(0,r.getTizenVersion)();e&&o.info("Device: Tizen, version: "+e.version)}},6111:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.createUseRemoteBundle=t.createRemotePackageLoader=t.fetchBundle=void 0,n(3258);var a=n(194),u=n(8156),s=n(6457),c=new a.Logger("bundleLoader"),l=function(e){var t=e.resolverUrl;return(0,e.fetchPackage)(t)},f=function(e){return o(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return c.info("Fetching bundle by url",e),[4,fetch(e)];case 1:if(!((r=(t=n.sent()).status)>=200&&r<=400))throw new Error("Failed to fetch bundleUrlOverride "+e+", HTTP error status code: "+t.status);return[4,t.text()];case 2:return[2,n.sent()]}var r}))}))},d=function(e){return o(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return[4,fetch("https://europe-west3-tivio-production.cloudfunctions.net/getRemoteBundle",{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify({secret:e})})];case 1:return[4,n.sent().json()];case 2:return t=n.sent(),[2,f(t.bundleUrl)]}}))}))},p=function(e,t){return o(void 0,void 0,void 0,(function(){return i(this,(function(n){return c.info("Fetching bundle via resolver"),[2,l(t).then((function(n){var r,o={},i={exports:o};try{new Function("require","module","exports",n)(s.resolveShared,i,o)}catch(e){return Promise.reject("Cannot load Tivio Resolver "+e)}return"function"!=typeof(null===(r=i.exports.tivio)||void 0===r?void 0:r.fetch)?Promise.reject("Invalid Tivio Resolver export"):i.exports.tivio.fetch(e,t.sdkVersion)}))]}))}))};t.fetchBundle=function(e,t){return o(void 0,void 0,Promise,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return n="",t.forceCloudFnResolver?(c.info("Fetching bundle via cloudfn (forced by config)"),[4,d(e)]):[3,2];case 1:return n=r.sent(),[3,10];case 2:return t.bundleUrlOverride?(c.info("Fetching bundle directly based on config.bundleUrlOverride",t.bundleUrlOverride),[4,f(t.bundleUrlOverride)]):[3,4];case 3:return n=r.sent(),[3,10];case 4:return(0,a.isIndexedDbSupported)()?[3,6]:(c.info("Fetching bundle via cloudfn, because indexedDB is not supported"),[4,d(e)]);case 5:return n=r.sent(),[3,10];case 6:return(0,a.isTizenVersionGreaterThan)(5)?(c.info("Fetching bundle via cloudfn, because Tizen version is > 5"),[4,d(e)]):[3,8];case 7:return n=r.sent(),[3,10];case 8:return[4,p(e,t)];case 9:n=r.sent(),r.label=10;case 10:return function(e,t){if(e.length<5e4){var n="Invalid bundle, the loaded bundle has extremely small char count (only "+e.length+") chars";throw c.error(n,e),new Error(n)}}(n),[2,n]}}))}))},t.createRemotePackageLoader=function(){return function(e,n){return o(void 0,void 0,Promise,(function(){return i(this,(function(r){return[2,(0,t.fetchBundle)(e,n).then((function(e){var t={},n={exports:t};try{new Function("require","module","exports",e)(s.resolveShared,n,t)}catch(e){return Promise.reject("Cannot load module "+e)}return"object"!=typeof n.exports.Tivio?Promise.reject('Tivio package does not export "Tivio" namespace'):"object"!=typeof n.exports.Tivio.components?Promise.reject('Tivio namespace does not export "components" member'):"function"!=typeof n.exports.Tivio.setUser?Promise.reject('Tivio namespace does not export "setUser" member'):"function"!=typeof n.exports.Tivio.init?Promise.reject('Tivio namespace does not export "init" member'):n.exports.Tivio}))]}))}))}},t.createUseRemoteBundle=function(){var e=(0,t.createRemotePackageLoader)(),n=!1;return function(t){var a=(0,u.useState)({auth:null,components:null,config:t,error:null,getters:null,init:null,destroy:null,purchaseSubscriptionWithQerko:null,purchaseVideoWithQerko:null,cancelSubscriptionWithQerko:null,setBundleVersion:null,setLanguage:null,setStorageManager:null,showConsentPreferences:null,setUser:null,sources:null,hooks:null,state:"loading",subscriptions:null,internal:null}),s=a[0],c=a[1];return(0,u.useEffect)((function(){null!=t.secret&&!1!==t.enable&&e(t.secret,t).then((function(e){return o(void 0,void 0,void 0,(function(){var o;return i(this,(function(i){switch(i.label){case 0:return n?[3,2]:[4,e.init(t)];case 1:i.sent(),n=!0,i.label=2;case 2:return o=r(r({},e),{config:t,error:null,state:"ready"}),c(o),t.pubSub.publish("on-ready",o),[2]}}))}))})).catch((function(e){var n;null===(n=t.logger)||void 0===n||n.exception(e),c(r(r({},s),{config:t,error:""+e,state:"error"})),t.pubSub.publish("on-error",e)}))}),[]),s}}},7968:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bundlePromise=t.tivioBundle=void 0;var r=n(5883);t.tivioBundle=null,t.bundlePromise=new Promise((function(e,n){(0,r.getPubSub)().subscribe("on-ready",(function(n){t.tivioBundle=n,e(n)})),(0,r.getPubSub)().subscribe("on-error",(function(e){n(e)}))})).catch((function(e){throw console.error("@tivio/sdk-react failed to load. Reason:",e),e})).then((function(e){return console.info("@tivio/sdk-react loaded successfully."),e}))},6457:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resolveShared=void 0;var u=i(n(670)),s=i(n(6741)),c=i(n(8879)),l=a(n(2937));n(6703),n(6462);var f=i(n(7661)),d=i(n(8661)),p=i(n(259)),h=i(n(5264)),v=i(n(8156)),y=i(n(7111)),g=i(n(3238)),b=i(n(6128)),m=i(n(5412)),_=i(n(1296)),w=i(n(1608)),O=i(n(7589)),P={mobx:p,"mobx-react":h,firebase:l.default,"firebase/app":l.default,"firebase/auth":null,"firebase/firestore":null,react:v,React:v,"react-dom":y,"styled-components":w,"@material-ui/core":u,"@material-ui/icons":s,formik:f,i18next:d,"react-i18next":g,"react-router-dom":b,"react-virtualized":_,"react-spring":m,yup:O,dayjs:c};t.resolveShared=function(e){if(!(e in P))throw new Error("Could not resolve shared dependency "+e);return P[e]}},4207:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.showGdprConsentPreferences=void 0;var i=n(7968);t.showGdprConsentPreferences=function(){return r(void 0,void 0,void 0,(function(){var e,t;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,i.bundlePromise];case 1:return e=n.sent(),null===(t=e.showConsentPreferences)||void 0===t||t.call(e),[3,3];case 2:return n.sent(),[3,3];case 3:return[2]}}))}))}},3258:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadBundleFromDist=void 0,t.loadBundleFromDist=function(){}},5167:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.createLogger=void 0;var o=n(6435);t.createLogger=function(e){var t=!1!==e.isSentryEnabled,n=function(n,i){e.isConsoleEnabled&&console[n].apply(console,r(["Tivio SDK "],i,!1)),t&&(null===o.Sentry||void 0===o.Sentry||o.Sentry.captureMessage(""+i,o.Sentry.Severity.fromString(n)))};return{error:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n("error",e)},info:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n("info",e)},warn:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n("warn",e)},debug:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n("debug",e)},exception:function(n){e.isConsoleEnabled&&console.error(n),t&&(null===o.Sentry||void 0===o.Sentry||o.Sentry.captureException(n))}}}},6732:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.setUser=void 0;var i=n(7968);t.setUser=function(e,t){return r(void 0,void 0,void 0,(function(){var n,r;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,i.bundlePromise];case 1:return n=o.sent(),[4,null===(r=n.setUser)||void 0===r?void 0:r.call(n,e,t)];case 2:case 3:return o.sent(),[3,4];case 4:return[2]}}))}))}},8323:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.fetchPackage=void 0;var o={cache:"no-store"},i=function(e){var t=e.headers.get("content-type");return 200!==e.status?Promise.reject('Incorrect status "'+e.status+'" was obtained while fetching the module.'):t&&(t.includes("application/javascript")||t.includes("text/javascript"))?e.text():Promise.reject('Incorrect content "'+t+'" was obtained while fetching the module.')},a=function(e){return Promise.reject("Network failure: "+e)};t.fetchPackage=function(e){return n(void 0,void 0,Promise,(function(){return r(this,(function(t){return[2,fetch(e,o).then(i).catch(a)]}))}))}},5883:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPubSub=t.createPubSub=void 0,t.createPubSub=function(){var e=new Map;return{publish:function(t,n){var r;null===(r=e.get(t))||void 0===r||r.forEach((function(e){(0,e.onMessage)(n)}))},subscribe:function(t,n){var r=(new Date).getTime();return e.has(t)||e.set(t,[]),e.get(t).push({id:r,onMessage:n}),function(){var n,o=null!==(n=e.get(t))&&void 0!==n?n:[],i=o.findIndex((function(e){return e.id===r}));-1!==i&&o.splice(i,1)}}}};var n=null;t.getPubSub=function(){return null===n&&(n=(0,t.createPubSub)()),n}},6435:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.initSentry=t.disableSentry=t.Sentry=void 0;var a=i(n(7356)),u="true"===process.env.DISABLE_SENTRY;t.Sentry=u?null:a,t.disableSentry=function(){t.Sentry=null,console.info("@tivio: Sentry disabled")},t.initSentry=function(){t.Sentry&&(t.Sentry.init({dsn:"https://8b9d489695004b0da95481f939b0455d@o507550.ingest.sentry.io/5600271",release:"@tivio/sdk-react@4.0.1",tracesSampleRate:1}),console.info("@tivio: Sentry enabled"),s())};var s=function(){window.sentry=t.Sentry,console.info("@tivio: Sentry added to window")}},3551:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1649:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4952:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6168:function(e,t,n){"use strict";n.r(t),n.d(t,{Headers:function(){return h},Request:function(){return w},Response:function(){return P},DOMException:function(){return E},fetch:function(){return j}});var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r&&r,o="URLSearchParams"in r,i="Symbol"in r&&"iterator"in Symbol,a="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),u="FormData"in r,s="ArrayBuffer"in r;if(s)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function f(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function v(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function y(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=y(t);return t.readAsArrayBuffer(e),n}function b(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:a&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:u&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&a&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=b(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var e=v(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?v(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(g)}),this.text=function(){var e,t,n,r=v(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=y(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},u&&(this.formData=function(){return this.text().then(O)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=f(e),t=d(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},h.prototype.delete=function(e){delete this.map[f(e)]},h.prototype.get=function(e){return e=f(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(f(e))},h.prototype.set=function(e,t){this.map[f(e)]=d(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},h.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},h.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},i&&(h.prototype[Symbol.iterator]=h.prototype.entries);var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(e,t){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,o=(t=t||{}).body;if(e instanceof w){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),_.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function O(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function P(e,t){if(!(this instanceof P))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},m.call(w.prototype),m.call(P.prototype),P.prototype.clone=function(){return new P(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},P.error=function(){var e=new P(null,{status:0,statusText:""});return e.type="error",e};var S=[301,302,303,307,308];P.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new P(null,{status:t,headers:{location:e}})};var E=r.DOMException;try{new E}catch(e){(E=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),E.prototype.constructor=E}function j(e,t){return new Promise((function(n,o){var i=new w(e,t);if(i.signal&&i.signal.aborted)return o(new E("Aborted","AbortError"));var u=new XMLHttpRequest;function c(){u.abort()}u.onload=function(){var e,t,r={status:u.status,statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new h,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL");var o="response"in u?u.response:u.responseText;setTimeout((function(){n(new P(o,r))}),0)},u.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){o(new E("Aborted","AbortError"))}),0)},u.open(i.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?u.withCredentials=!0:"omit"===i.credentials&&(u.withCredentials=!1),"responseType"in u&&(a?u.responseType="blob":s&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof h?i.headers.forEach((function(e,t){u.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){u.setRequestHeader(e,d(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",c),u.onreadystatechange=function(){4===u.readyState&&i.signal.removeEventListener("abort",c)}),u.send(void 0===i._bodyInit?null:i._bodyInit)}))}j.polyfill=!0,r.fetch||(r.fetch=j,r.Headers=h,r.Request=w,r.Response=P)},670:function(e){"use strict";e.exports=r},6741:function(e){"use strict";e.exports=o},7356:function(e){"use strict";e.exports=t},2937:function(e){"use strict";e.exports=i},6703:function(e){"use strict";e.exports=a},6462:function(e){"use strict";e.exports=u},7661:function(e){"use strict";e.exports=s},8661:function(e){"use strict";e.exports=c},259:function(e){"use strict";e.exports=n},5264:function(e){"use strict";e.exports=l},8156:function(t){"use strict";t.exports=e},7111:function(e){"use strict";e.exports=f},3238:function(e){"use strict";e.exports=d},6128:function(e){"use strict";e.exports=p},5412:function(e){"use strict";e.exports=h},1296:function(e){"use strict";e.exports=v},1608:function(e){"use strict";e.exports=y},7589:function(e){"use strict";e.exports=g}},m={};function _(e){var t=m[e];if(void 0!==t)return t.exports;var n=m[e]={exports:{}};return b[e].call(n.exports,n,n.exports,_),n.exports}return _.d=function(e,t){for(var n in t)_.o(t,n)&&!_.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},_.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},_.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},_(3368)}()}));
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@sentry/browser"),require("mobx"),require("@material-ui/core"),require("@material-ui/icons"),require("firebase/app"),require("firebase/auth"),require("firebase/firestore"),require("formik"),require("i18next"),require("mobx-react"),require("react-dom"),require("react-i18next"),require("react-router-dom"),require("react-spring"),require("react-virtualized"),require("styled-components"),require("yup")):"function"==typeof define&&define.amd?define("@tivio/sdk-react",["react","@sentry/browser","mobx","@material-ui/core","@material-ui/icons","firebase/app","firebase/auth","firebase/firestore","formik","i18next","mobx-react","react-dom","react-i18next","react-router-dom","react-spring","react-virtualized","styled-components","yup"],t):"object"==typeof exports?exports["@tivio/sdk-react"]=t(require("react"),require("@sentry/browser"),require("mobx"),require("@material-ui/core"),require("@material-ui/icons"),require("firebase/app"),require("firebase/auth"),require("firebase/firestore"),require("formik"),require("i18next"),require("mobx-react"),require("react-dom"),require("react-i18next"),require("react-router-dom"),require("react-spring"),require("react-virtualized"),require("styled-components"),require("yup")):e["@tivio/sdk-react"]=t(e.react,e["@sentry/browser"],e.mobx,e["@material-ui/core"],e["@material-ui/icons"],e["firebase/app"],e["firebase/auth"],e["firebase/firestore"],e.formik,e.i18next,e["mobx-react"],e["react-dom"],e["react-i18next"],e["react-router-dom"],e["react-spring"],e["react-virtualized"],e["styled-components"],e.yup)}(this,(function(e,t,n,r,o,i,a,u,s,c,l,f,d,p,h,v,y,g){return function(){var b={194:function(e,t,n){var r,o;e.exports=(r=n(259),o=n(8156),function(){var e={146:function(e){e.exports=function(){var e={2043:function(e,t,n){var r,o;!function(i,a){"use strict";r=function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"];function o(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function a(r){return"debug"===r&&(r="log"),typeof console!==t&&("trace"===r&&n?i:void 0!==console[r]?o(console,r):void 0!==console.log?o(console,"log"):e)}function u(t,n){for(var o=0;o<r.length;o++){var i=r[o];this[i]=o<t?e:this.methodFactory(i,t,n)}this.log=this.debug}function s(e,n,r){return function(){typeof console!==t&&(u.call(this,n,r),this[e].apply(this,arguments))}}function c(e,t,n){return a(e)||s.apply(this,arguments)}function l(e,n,o){var i,a=this;n=null==n?"WARN":n;var s="loglevel";function l(){var e;if(typeof window!==t&&s){try{e=window.localStorage[s]}catch(e){}if(typeof e===t)try{var n=window.document.cookie,r=n.indexOf(encodeURIComponent(s)+"=");-1!==r&&(e=/^([^;]+)/.exec(n.slice(r))[1])}catch(e){}return void 0===a.levels[e]&&(e=void 0),e}}"string"==typeof e?s+=":"+e:"symbol"==typeof e&&(s=void 0),a.name=e,a.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},a.methodFactory=o||c,a.getLevel=function(){return i},a.setLevel=function(n,o){if("string"==typeof n&&void 0!==a.levels[n.toUpperCase()]&&(n=a.levels[n.toUpperCase()]),!("number"==typeof n&&n>=0&&n<=a.levels.SILENT))throw"log.setLevel() called with invalid level: "+n;if(i=n,!1!==o&&function(e){var n=(r[e]||"silent").toUpperCase();if(typeof window!==t&&s){try{return void(window.localStorage[s]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(s)+"="+n+";"}catch(e){}}}(n),u.call(a,n,e),typeof console===t&&n<a.levels.SILENT)return"No console available for logging"},a.setDefaultLevel=function(e){n=e,l()||a.setLevel(e,!1)},a.resetLevel=function(){a.setLevel(n,!1),function(){if(typeof window!==t&&s){try{return void window.localStorage.removeItem(s)}catch(e){}try{window.document.cookie=encodeURIComponent(s)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}()},a.enableAll=function(e){a.setLevel(a.levels.TRACE,e)},a.disableAll=function(e){a.setLevel(a.levels.SILENT,e)};var f=l();null==f&&(f=n),a.setLevel(f,!1)}var f=new l,d={};f.getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=d[e];return t||(t=d[e]=new l(e,f.getLevel(),f.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return f.noConflict=function(){return typeof window!==t&&window.log===f&&(window.log=p),f},f.getLoggers=function(){return d},f.default=f,f},void 0===(o=r.call(t,n,t,e))||(e.exports=o)}()},3958:function(e,t,n){e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",u="[object Boolean]",s="[object Date]",c="[object Error]",l="[object Function]",f="[object Map]",d="[object Number]",p="[object Object]",h="[object Promise]",v="[object RegExp]",y="[object Set]",g="[object String]",b="[object WeakMap]",m="[object ArrayBuffer]",_="[object DataView]",w=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,P={};P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P[i]=P[a]=P[m]=P[u]=P[_]=P[s]=P[c]=P[l]=P[f]=P[d]=P[p]=P[v]=P[y]=P[g]=P[b]=!1;var E="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,S="object"==typeof self&&self&&self.Object===Object&&self,j=E||S||Function("return this")(),T=t&&!t.nodeType&&t,x=T&&e&&!e.nodeType&&e,M=x&&x.exports===T,A=M&&E.process,I=function(){try{return A&&A.binding&&A.binding("util")}catch(e){}}(),C=I&&I.isTypedArray;function L(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function k(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function R(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var D,N,B,F=Array.prototype,V=Function.prototype,U=Object.prototype,G=j["__core-js_shared__"],W=V.toString,z=U.hasOwnProperty,H=(D=/[^.]+$/.exec(G&&G.keys&&G.keys.IE_PROTO||""))?"Symbol(src)_1."+D:"",$=U.toString,Y=RegExp("^"+W.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),K=M?j.Buffer:void 0,J=j.Symbol,q=j.Uint8Array,Q=U.propertyIsEnumerable,Z=F.splice,X=J?J.toStringTag:void 0,ee=Object.getOwnPropertySymbols,te=K?K.isBuffer:void 0,ne=(N=Object.keys,B=Object,function(e){return N(B(e))}),re=xe(j,"DataView"),oe=xe(j,"Map"),ie=xe(j,"Promise"),ae=xe(j,"Set"),ue=xe(j,"WeakMap"),se=xe(Object,"create"),ce=Ce(re),le=Ce(oe),fe=Ce(ie),de=Ce(ae),pe=Ce(ue),he=J?J.prototype:void 0,ve=he?he.valueOf:void 0;function ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function be(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function me(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new be;++t<n;)this.add(e[t])}function _e(e){var t=this.__data__=new ge(e);this.size=t.size}function we(e,t){for(var n=e.length;n--;)if(Le(e[n][0],t))return n;return-1}function Oe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?function(e){var t=z.call(e,X),n=e[X];try{e[X]=void 0;var r=!0}catch(e){}var o=$.call(e);return r&&(t?e[X]=n:delete e[X]),o}(e):function(e){return $.call(e)}(e)}function Pe(e){return Ve(e)&&Oe(e)==i}function Ee(e,t,n,r,o){return e===t||(null==e||null==t||!Ve(e)&&!Ve(t)?e!=e&&t!=t:function(e,t,n,r,o,l){var h=Re(e),b=Re(t),w=h?a:Ae(e),O=b?a:Ae(t),P=(w=w==i?p:w)==p,E=(O=O==i?p:O)==p,S=w==O;if(S&&De(e)){if(!De(t))return!1;h=!0,P=!1}if(S&&!P)return l||(l=new _e),h||Ue(e)?Se(e,t,n,r,o,l):function(e,t,n,r,o,i,a){switch(n){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case m:return!(e.byteLength!=t.byteLength||!i(new q(e),new q(t)));case u:case s:case d:return Le(+e,+t);case c:return e.name==t.name&&e.message==t.message;case v:case g:return e==t+"";case f:var l=k;case y:var p=1&r;if(l||(l=R),e.size!=t.size&&!p)return!1;var h=a.get(e);if(h)return h==t;r|=2,a.set(e,t);var b=Se(l(e),l(t),r,o,i,a);return a.delete(e),b;case"[object Symbol]":if(ve)return ve.call(e)==ve.call(t)}return!1}(e,t,w,n,r,o,l);if(!(1&n)){var j=P&&z.call(e,"__wrapped__"),T=E&&z.call(t,"__wrapped__");if(j||T){var x=j?e.value():e,M=T?t.value():t;return l||(l=new _e),o(x,M,n,r,l)}}return!!S&&(l||(l=new _e),function(e,t,n,r,o,i){var a=1&n,u=je(e),s=u.length;if(s!=je(t).length&&!a)return!1;for(var c=s;c--;){var l=u[c];if(!(a?l in t:z.call(t,l)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var d=!0;i.set(e,t),i.set(t,e);for(var p=a;++c<s;){var h=e[l=u[c]],v=t[l];if(r)var y=a?r(v,h,l,t,e,i):r(h,v,l,e,t,i);if(!(void 0===y?h===v||o(h,v,n,r,i):y)){d=!1;break}p||(p="constructor"==l)}if(d&&!p){var g=e.constructor,b=t.constructor;g==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,n,r,o,l))}(e,t,n,r,Ee,o))}function Se(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var l=-1,f=!0,d=2&n?new me:void 0;for(i.set(e,t),i.set(t,e);++l<u;){var p=e[l],h=t[l];if(r)var v=a?r(h,p,l,t,e,i):r(p,h,l,e,t,i);if(void 0!==v){if(v)continue;f=!1;break}if(d){if(!L(t,(function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,n,r,i)))return d.push(t);var a}))){f=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function je(e){return function(e,t,n){var r=t(e);return Re(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ge,Me)}function Te(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function xe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Fe(e)||function(e){return!!H&&H in e}(e))&&(Ne(e)?Y:w).test(Ce(e))}(n)?n:void 0}ye.prototype.clear=function(){this.__data__=se?se(null):{},this.size=0},ye.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ye.prototype.get=function(e){var t=this.__data__;if(se){var n=t[e];return n===r?void 0:n}return z.call(t,e)?t[e]:void 0},ye.prototype.has=function(e){var t=this.__data__;return se?void 0!==t[e]:z.call(t,e)},ye.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=se&&void 0===t?r:t,this},ge.prototype.clear=function(){this.__data__=[],this.size=0},ge.prototype.delete=function(e){var t=this.__data__,n=we(t,e);return!(n<0||(n==t.length-1?t.pop():Z.call(t,n,1),--this.size,0))},ge.prototype.get=function(e){var t=this.__data__,n=we(t,e);return n<0?void 0:t[n][1]},ge.prototype.has=function(e){return we(this.__data__,e)>-1},ge.prototype.set=function(e,t){var n=this.__data__,r=we(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},be.prototype.clear=function(){this.size=0,this.__data__={hash:new ye,map:new(oe||ge),string:new ye}},be.prototype.delete=function(e){var t=Te(this,e).delete(e);return this.size-=t?1:0,t},be.prototype.get=function(e){return Te(this,e).get(e)},be.prototype.has=function(e){return Te(this,e).has(e)},be.prototype.set=function(e,t){var n=Te(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},me.prototype.add=me.prototype.push=function(e){return this.__data__.set(e,r),this},me.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.clear=function(){this.__data__=new ge,this.size=0},_e.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},_e.prototype.get=function(e){return this.__data__.get(e)},_e.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ge){var r=n.__data__;if(!oe||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new be(r)}return n.set(e,t),this.size=n.size,this};var Me=ee?function(e){return null==e?[]:(e=Object(e),function(t,n){for(var r=-1,o=null==t?0:t.length,i=0,a=[];++r<o;){var u=t[r];s=u,Q.call(e,s)&&(a[i++]=u)}var s;return a}(ee(e)))}:function(){return[]},Ae=Oe;function Ie(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||O.test(e))&&e>-1&&e%1==0&&e<t}function Ce(e){if(null!=e){try{return W.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Le(e,t){return e===t||e!=e&&t!=t}(re&&Ae(new re(new ArrayBuffer(1)))!=_||oe&&Ae(new oe)!=f||ie&&Ae(ie.resolve())!=h||ae&&Ae(new ae)!=y||ue&&Ae(new ue)!=b)&&(Ae=function(e){var t=Oe(e),n=t==p?e.constructor:void 0,r=n?Ce(n):"";if(r)switch(r){case ce:return _;case le:return f;case fe:return h;case de:return y;case pe:return b}return t});var ke=Pe(function(){return arguments}())?Pe:function(e){return Ve(e)&&z.call(e,"callee")&&!Q.call(e,"callee")},Re=Array.isArray,De=te||function(){return!1};function Ne(e){if(!Fe(e))return!1;var t=Oe(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Be(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Fe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ve(e){return null!=e&&"object"==typeof e}var Ue=C?function(e){return function(t){return e(t)}}(C):function(e){return Ve(e)&&Be(e.length)&&!!P[Oe(e)]};function Ge(e){return null!=(t=e)&&Be(t.length)&&!Ne(t)?function(e,t){var n=Re(e),r=!n&&ke(e),o=!n&&!r&&De(e),i=!n&&!r&&!o&&Ue(e),a=n||r||o||i,u=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=u.length;for(var c in e)!z.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ie(c,s))||u.push(c);return u}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||U))return ne(e);var t,n,r=[];for(var o in Object(e))z.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}e.exports=function(e,t){return Ee(e,t)}},3096:function(e){e.exports=function e(t,n,r){function o(a,u){if(!n[a]){if(!t[a]){if(i)return i(a,!0);throw new Error("Cannot find module '"+a+"'")}var s=n[a]={exports:{}};t[a][0].call(s.exports,(function(e){return o(t[a][1][e]||e)}),s,s.exports,e,t,n,r)}return n[a].exports}for(var i=void 0,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){(function(r,o,i,a,u,s,c,l,f){"use strict";var d=e("crypto");function p(e,t){return function(e,t){var n;if(void 0===(n="passthrough"!==t.algorithm?d.createHash(t.algorithm):new m).write&&(n.write=n.update,n.end=n.update),b(t,n).dispatch(e),n.update||n.end(""),n.digest)return n.digest("buffer"===t.encoding?void 0:t.encoding);var r=n.read();return"buffer"!==t.encoding?r.toString(t.encoding):r}(e,t=y(e,t))}(n=t.exports=p).sha1=function(e){return p(e)},n.keys=function(e){return p(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},n.MD5=function(e){return p(e,{algorithm:"md5",encoding:"hex"})},n.keysMD5=function(e){return p(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var h=d.getHashes?d.getHashes().slice():["sha1","md5"];h.push("passthrough");var v=["buffer","hex","binary","base64"];function y(e,t){t=t||{};var n={};if(n.algorithm=t.algorithm||"sha1",n.encoding=t.encoding||"hex",n.excludeValues=!!t.excludeValues,n.algorithm=n.algorithm.toLowerCase(),n.encoding=n.encoding.toLowerCase(),n.ignoreUnknown=!0===t.ignoreUnknown,n.respectType=!1!==t.respectType,n.respectFunctionNames=!1!==t.respectFunctionNames,n.respectFunctionProperties=!1!==t.respectFunctionProperties,n.unorderedArrays=!0===t.unorderedArrays,n.unorderedSets=!1!==t.unorderedSets,n.unorderedObjects=!1!==t.unorderedObjects,n.replacer=t.replacer||void 0,n.excludeKeys=t.excludeKeys||void 0,void 0===e)throw new Error("Object argument required.");for(var r=0;r<h.length;++r)h[r].toLowerCase()===n.algorithm.toLowerCase()&&(n.algorithm=h[r]);if(-1===h.indexOf(n.algorithm))throw new Error('Algorithm "'+n.algorithm+'" not supported. supported values: '+h.join(", "));if(-1===v.indexOf(n.encoding)&&"passthrough"!==n.algorithm)throw new Error('Encoding "'+n.encoding+'" not supported. supported values: '+v.join(", "));return n}function g(e){if("function"==typeof e)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))}function b(e,t,n){function r(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")}return n=n||[],{dispatch:function(t){return e.replacer&&(t=e.replacer(t)),this["_"+(null===t?"null":typeof t)](t)},_object:function(t){var o,a=Object.prototype.toString.call(t),u=/\[object (.*)\]/i.exec(a);if(u=(u=u?u[1]:"unknown:["+a+"]").toLowerCase(),0<=(o=n.indexOf(t)))return this.dispatch("[CIRCULAR:"+o+"]");if(n.push(t),void 0!==i&&i.isBuffer&&i.isBuffer(t))return r("buffer:"),r(t);if("object"===u||"function"===u||"asyncfunction"===u){var s=Object.keys(t);e.unorderedObjects&&(s=s.sort()),!1===e.respectType||g(t)||s.splice(0,0,"prototype","__proto__","constructor"),e.excludeKeys&&(s=s.filter((function(t){return!e.excludeKeys(t)}))),r("object:"+s.length+":");var c=this;return s.forEach((function(n){c.dispatch(n),r(":"),e.excludeValues||c.dispatch(t[n]),r(",")}))}if(!this["_"+u]){if(e.ignoreUnknown)return r("["+u+"]");throw new Error('Unknown object type "'+u+'"')}this["_"+u](t)},_array:function(t,o){o=void 0!==o?o:!1!==e.unorderedArrays;var i=this;if(r("array:"+t.length+":"),!o||t.length<=1)return t.forEach((function(e){return i.dispatch(e)}));var a=[],u=t.map((function(t){var r=new m,o=n.slice();return b(e,r,o).dispatch(t),a=a.concat(o.slice(n.length)),r.read().toString()}));return n=n.concat(a),u.sort(),this._array(u,!1)},_date:function(e){return r("date:"+e.toJSON())},_symbol:function(e){return r("symbol:"+e.toString())},_error:function(e){return r("error:"+e.toString())},_boolean:function(e){return r("bool:"+e.toString())},_string:function(e){r("string:"+e.length+":"),r(e.toString())},_function:function(t){r("fn:"),g(t)?this.dispatch("[native]"):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch("function-name:"+String(t.name)),e.respectFunctionProperties&&this._object(t)},_number:function(e){return r("number:"+e.toString())},_xml:function(e){return r("xml:"+e.toString())},_null:function(){return r("Null")},_undefined:function(){return r("Undefined")},_regexp:function(e){return r("regex:"+e.toString())},_uint8array:function(e){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return r("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return r("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return r("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return r("url:"+e.toString())},_map:function(t){r("map:");var n=Array.from(t);return this._array(n,!1!==e.unorderedSets)},_set:function(t){r("set:");var n=Array.from(t);return this._array(n,!1!==e.unorderedSets)},_file:function(e){return r("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(e.ignoreUnknown)return r("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return r("domwindow")},_bigint:function(e){return r("bigint:"+e.toString())},_process:function(){return r("process")},_timer:function(){return r("timer")},_pipe:function(){return r("pipe")},_tcp:function(){return r("tcp")},_udp:function(){return r("udp")},_tty:function(){return r("tty")},_statwatcher:function(){return r("statwatcher")},_securecontext:function(){return r("securecontext")},_connection:function(){return r("connection")},_zlib:function(){return r("zlib")},_context:function(){return r("context")},_nodescript:function(){return r("nodescript")},_httpparser:function(){return r("httpparser")},_dataview:function(){return r("dataview")},_signal:function(){return r("signal")},_fsevent:function(){return r("fsevent")},_tlswrap:function(){return r("tlswrap")}}}function m(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}n.writeToStream=function(e,t,n){return void 0===n&&(n=t,t={}),b(t=y(e,t),n).dispatch(e)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_7eac155c.js","/")},{buffer:3,crypto:5,lYpoI2:10}],2:[function(e,t,n){(function(e,t,r,o,i,a,u,s,c){!function(e){"use strict";var t="undefined"!=typeof Uint8Array?Uint8Array:Array,n="+".charCodeAt(0),r="/".charCodeAt(0),o="0".charCodeAt(0),i="a".charCodeAt(0),a="A".charCodeAt(0),u="-".charCodeAt(0),s="_".charCodeAt(0);function c(e){var t=e.charCodeAt(0);return t===n||t===u?62:t===r||t===s?63:t<o?-1:t<o+10?t-o+26+26:t<a+26?t-a:t<i+26?t-i+26:void 0}e.toByteArray=function(e){var n,r;if(0<e.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var o=e.length,i="="===e.charAt(o-2)?2:"="===e.charAt(o-1)?1:0,a=new t(3*e.length/4-i),u=0<i?e.length-4:e.length,s=0;function l(e){a[s++]=e}for(n=0;n<u;n+=4,0)l((16711680&(r=c(e.charAt(n))<<18|c(e.charAt(n+1))<<12|c(e.charAt(n+2))<<6|c(e.charAt(n+3))))>>16),l((65280&r)>>8),l(255&r);return 2==i?l(255&(r=c(e.charAt(n))<<2|c(e.charAt(n+1))>>4)):1==i&&(l((r=c(e.charAt(n))<<10|c(e.charAt(n+1))<<4|c(e.charAt(n+2))>>2)>>8&255),l(255&r)),a},e.fromByteArray=function(e){var t,n,r,o,i=e.length%3,a="";function u(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,r=e.length-i;t<r;t+=3)a+=u((o=n=(e[t]<<16)+(e[t+1]<<8)+e[t+2])>>18&63)+u(o>>12&63)+u(o>>6&63)+u(63&o);switch(i){case 1:a+=u((n=e[e.length-1])>>2),a+=u(n<<4&63),a+="==";break;case 2:a+=u((n=(e[e.length-2]<<8)+e[e.length-1])>>10),a+=u(n>>4&63),a+=u(n<<2&63),a+="="}return a}}(void 0===n?this.base64js={}:n)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(e,t,n){(function(t,r,o,i,a,u,s,c,l){var f=e("base64-js"),d=e("ieee754");function o(e,t,n){if(!(this instanceof o))return new o(e,t,n);var r,i,a,u,s,c=typeof e;if("base64"===t&&"string"==c)for(e=(r=e).trim?r.trim():r.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==c)i=T(e);else if("string"==c)i=o.byteLength(e,t);else{if("object"!=c)throw new Error("First argument needs to be a number, array or string.");i=T(e.length)}if(o._useTypedArrays?a=o._augment(new Uint8Array(i)):((a=this).length=i,a._isBuffer=!0),o._useTypedArrays&&"number"==typeof e.byteLength)a._set(e);else if(x(s=e)||o.isBuffer(s)||s&&"object"==typeof s&&"number"==typeof s.length)for(u=0;u<i;u++)o.isBuffer(e)?a[u]=e.readUInt8(u):a[u]=e[u];else if("string"==c)a.write(e,0,t);else if("number"==c&&!o._useTypedArrays&&!n)for(u=0;u<i;u++)a[u]=0;return a}function p(e,t,n,r){r||(N("boolean"==typeof n,"missing or invalid endian"),N(null!=t,"missing offset"),N(t+1<e.length,"Trying to read beyond buffer length"));var o,i=e.length;if(!(i<=t))return n?(o=e[t],t+1<i&&(o|=e[t+1]<<8)):(o=e[t]<<8,t+1<i&&(o|=e[t+1])),o}function h(e,t,n,r){r||(N("boolean"==typeof n,"missing or invalid endian"),N(null!=t,"missing offset"),N(t+3<e.length,"Trying to read beyond buffer length"));var o,i=e.length;if(!(i<=t))return n?(t+2<i&&(o=e[t+2]<<16),t+1<i&&(o|=e[t+1]<<8),o|=e[t],t+3<i&&(o+=e[t+3]<<24>>>0)):(t+1<i&&(o=e[t+1]<<16),t+2<i&&(o|=e[t+2]<<8),t+3<i&&(o|=e[t+3]),o+=e[t]<<24>>>0),o}function v(e,t,n,r){if(r||(N("boolean"==typeof n,"missing or invalid endian"),N(null!=t,"missing offset"),N(t+1<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var o=p(e,t,n,!0);return 32768&o?-1*(65535-o+1):o}}function y(e,t,n,r){if(r||(N("boolean"==typeof n,"missing or invalid endian"),N(null!=t,"missing offset"),N(t+3<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var o=h(e,t,n,!0);return 2147483648&o?-1*(4294967295-o+1):o}}function g(e,t,n,r){return r||(N("boolean"==typeof n,"missing or invalid endian"),N(t+3<e.length,"Trying to read beyond buffer length")),d.read(e,t,n,23,4)}function b(e,t,n,r){return r||(N("boolean"==typeof n,"missing or invalid endian"),N(t+7<e.length,"Trying to read beyond buffer length")),d.read(e,t,n,52,8)}function m(e,t,n,r,o){o||(N(null!=t,"missing value"),N("boolean"==typeof r,"missing or invalid endian"),N(null!=n,"missing offset"),N(n+1<e.length,"trying to write beyond buffer length"),k(t,65535));var i=e.length;if(!(i<=n))for(var a=0,u=Math.min(i-n,2);a<u;a++)e[n+a]=(t&255<<8*(r?a:1-a))>>>8*(r?a:1-a)}function _(e,t,n,r,o){o||(N(null!=t,"missing value"),N("boolean"==typeof r,"missing or invalid endian"),N(null!=n,"missing offset"),N(n+3<e.length,"trying to write beyond buffer length"),k(t,4294967295));var i=e.length;if(!(i<=n))for(var a=0,u=Math.min(i-n,4);a<u;a++)e[n+a]=t>>>8*(r?a:3-a)&255}function w(e,t,n,r,o){o||(N(null!=t,"missing value"),N("boolean"==typeof r,"missing or invalid endian"),N(null!=n,"missing offset"),N(n+1<e.length,"Trying to write beyond buffer length"),R(t,32767,-32768)),e.length<=n||m(e,0<=t?t:65535+t+1,n,r,o)}function O(e,t,n,r,o){o||(N(null!=t,"missing value"),N("boolean"==typeof r,"missing or invalid endian"),N(null!=n,"missing offset"),N(n+3<e.length,"Trying to write beyond buffer length"),R(t,2147483647,-2147483648)),e.length<=n||_(e,0<=t?t:4294967295+t+1,n,r,o)}function P(e,t,n,r,o){o||(N(null!=t,"missing value"),N("boolean"==typeof r,"missing or invalid endian"),N(null!=n,"missing offset"),N(n+3<e.length,"Trying to write beyond buffer length"),D(t,34028234663852886e22,-34028234663852886e22)),e.length<=n||d.write(e,t,n,r,23,4)}function E(e,t,n,r,o){o||(N(null!=t,"missing value"),N("boolean"==typeof r,"missing or invalid endian"),N(null!=n,"missing offset"),N(n+7<e.length,"Trying to write beyond buffer length"),D(t,17976931348623157e292,-17976931348623157e292)),e.length<=n||d.write(e,t,n,r,52,8)}n.Buffer=o,n.SlowBuffer=o,n.INSPECT_MAX_BYTES=50,o.poolSize=8192,o._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(e){return!1}}(),o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.byteLength=function(e,t){var n;switch(e+="",t||"utf8"){case"hex":n=e.length/2;break;case"utf8":case"utf-8":n=A(e).length;break;case"ascii":case"binary":case"raw":n=e.length;break;case"base64":n=I(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;default:throw new Error("Unknown encoding")}return n},o.concat=function(e,t){if(N(x(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new o(0);if(1===e.length)return e[0];if("number"!=typeof t)for(i=t=0;i<e.length;i++)t+=e[i].length;for(var n=new o(t),r=0,i=0;i<e.length;i++){var a=e[i];a.copy(n,r),r+=a.length}return n},o.prototype.write=function(e,t,n,r){var i;isFinite(t)?isFinite(n)||(r=n,n=void 0):(i=r,r=t,t=n,n=i),t=Number(t)||0;var a,u,s,c,l,f,d,p=this.length-t;switch((!n||p<(n=Number(n)))&&(n=p),r=String(r||"utf8").toLowerCase()){case"hex":a=function(e,t,n,r){n=Number(n)||0;var i=e.length-n;(!r||i<(r=Number(r)))&&(r=i);var a=t.length;N(a%2==0,"Invalid hex string"),a/2<r&&(r=a/2);for(var u=0;u<r;u++){var s=parseInt(t.substr(2*u,2),16);N(!isNaN(s),"Invalid hex string"),e[n+u]=s}return o._charsWritten=2*u,u}(this,e,t,n);break;case"utf8":case"utf-8":l=e,f=t,d=n,a=o._charsWritten=C(A(l),this,f,d);break;case"ascii":case"binary":a=function(e,t,n,r){return o._charsWritten=C(function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}(this,e,t,n);break;case"base64":u=e,s=t,c=n,a=o._charsWritten=C(I(u),this,s,c);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":a=function(e,t,n,r){return o._charsWritten=C(function(e){for(var t,n,r,o=[],i=0;i<e.length;i++)n=(t=e.charCodeAt(i))>>8,r=t%256,o.push(r),o.push(n);return o}(t),e,n,r)}(this,e,t,n);break;default:throw new Error("Unknown encoding")}return a},o.prototype.toString=function(e,t,n){var r,o,i,a,u=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(n=void 0!==n?Number(n):n=u.length)===t)return"";switch(e){case"hex":r=function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||r<n)&&(n=r);for(var o="",i=t;i<n;i++)o+=M(e[i]);return o}(u,t,n);break;case"utf8":case"utf-8":r=function(e,t,n){var r="",o="";n=Math.min(e.length,n);for(var i=t;i<n;i++)e[i]<=127?(r+=L(o)+String.fromCharCode(e[i]),o=""):o+="%"+e[i].toString(16);return r+L(o)}(u,t,n);break;case"ascii":case"binary":r=function(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;o++)r+=String.fromCharCode(e[o]);return r}(u,t,n);break;case"base64":o=u,a=n,r=0===(i=t)&&a===o.length?f.fromByteArray(o):f.fromByteArray(o.slice(i,a));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=function(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}(u,t,n);break;default:throw new Error("Unknown encoding")}return r},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.copy=function(e,t,n,r){if(n=n||0,r||0===r||(r=this.length),t=t||0,r!==n&&0!==e.length&&0!==this.length){N(n<=r,"sourceEnd < sourceStart"),N(0<=t&&t<e.length,"targetStart out of bounds"),N(0<=n&&n<this.length,"sourceStart out of bounds"),N(0<=r&&r<=this.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(i<100||!o._useTypedArrays)for(var a=0;a<i;a++)e[a+t]=this[a+n];else e._set(this.subarray(n,n+i),t)}},o.prototype.slice=function(e,t){var n=this.length;if(e=j(e,n,0),t=j(t,n,n),o._useTypedArrays)return o._augment(this.subarray(e,t));for(var r=t-e,i=new o(r,void 0,!0),a=0;a<r;a++)i[a]=this[a+e];return i},o.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},o.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},o.prototype.readUInt8=function(e,t){if(t||(N(null!=e,"missing offset"),N(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},o.prototype.readUInt16LE=function(e,t){return p(this,e,!0,t)},o.prototype.readUInt16BE=function(e,t){return p(this,e,!1,t)},o.prototype.readUInt32LE=function(e,t){return h(this,e,!0,t)},o.prototype.readUInt32BE=function(e,t){return h(this,e,!1,t)},o.prototype.readInt8=function(e,t){if(t||(N(null!=e,"missing offset"),N(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){return v(this,e,!0,t)},o.prototype.readInt16BE=function(e,t){return v(this,e,!1,t)},o.prototype.readInt32LE=function(e,t){return y(this,e,!0,t)},o.prototype.readInt32BE=function(e,t){return y(this,e,!1,t)},o.prototype.readFloatLE=function(e,t){return g(this,e,!0,t)},o.prototype.readFloatBE=function(e,t){return g(this,e,!1,t)},o.prototype.readDoubleLE=function(e,t){return b(this,e,!0,t)},o.prototype.readDoubleBE=function(e,t){return b(this,e,!1,t)},o.prototype.writeUInt8=function(e,t,n){n||(N(null!=e,"missing value"),N(null!=t,"missing offset"),N(t<this.length,"trying to write beyond buffer length"),k(e,255)),t>=this.length||(this[t]=e)},o.prototype.writeUInt16LE=function(e,t,n){m(this,e,t,!0,n)},o.prototype.writeUInt16BE=function(e,t,n){m(this,e,t,!1,n)},o.prototype.writeUInt32LE=function(e,t,n){_(this,e,t,!0,n)},o.prototype.writeUInt32BE=function(e,t,n){_(this,e,t,!1,n)},o.prototype.writeInt8=function(e,t,n){n||(N(null!=e,"missing value"),N(null!=t,"missing offset"),N(t<this.length,"Trying to write beyond buffer length"),R(e,127,-128)),t>=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},o.prototype.writeInt16LE=function(e,t,n){w(this,e,t,!0,n)},o.prototype.writeInt16BE=function(e,t,n){w(this,e,t,!1,n)},o.prototype.writeInt32LE=function(e,t,n){O(this,e,t,!0,n)},o.prototype.writeInt32BE=function(e,t,n){O(this,e,t,!1,n)},o.prototype.writeFloatLE=function(e,t,n){P(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){P(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){E(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){E(this,e,t,!1,n)},o.prototype.fill=function(e,t,n){if(e=e||0,t=t||0,n=n||this.length,"string"==typeof e&&(e=e.charCodeAt(0)),N("number"==typeof e&&!isNaN(e),"value is not a number"),N(t<=n,"end < start"),n!==t&&0!==this.length){N(0<=t&&t<this.length,"start out of bounds"),N(0<=n&&n<=this.length,"end out of bounds");for(var r=t;r<n;r++)this[r]=e}},o.prototype.inspect=function(){for(var e=[],t=this.length,r=0;r<t;r++)if(e[r]=M(this[r]),r===n.INSPECT_MAX_BYTES){e[r+1]="...";break}return"<Buffer "+e.join(" ")+">"},o.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(o._useTypedArrays)return new o(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t<n;t+=1)e[t]=this[t];return e.buffer};var S=o.prototype;function j(e,t,n){return"number"!=typeof e?n:t<=(e=~~e)?t:0<=e||0<=(e+=t)?e:0}function T(e){return(e=~~Math.ceil(+e))<0?0:e}function x(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function M(e){return e<16?"0"+e.toString(16):e.toString(16)}function A(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(e.charCodeAt(n));else{var o=n;55296<=r&&r<=57343&&n++;for(var i=encodeURIComponent(e.slice(o,n+1)).substr(1).split("%"),a=0;a<i.length;a++)t.push(parseInt(i[a],16))}}return t}function I(e){return f.toByteArray(e)}function C(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);o++)t[o+n]=e[o];return o}function L(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function k(e,t){N("number"==typeof e,"cannot write a non-number as a number"),N(0<=e,"specified a negative value for writing an unsigned value"),N(e<=t,"value is larger than maximum value for type"),N(Math.floor(e)===e,"value has a fractional component")}function R(e,t,n){N("number"==typeof e,"cannot write a non-number as a number"),N(e<=t,"value larger than maximum allowed value"),N(n<=e,"value smaller than minimum allowed value"),N(Math.floor(e)===e,"value has a fractional component")}function D(e,t,n){N("number"==typeof e,"cannot write a non-number as a number"),N(e<=t,"value larger than maximum allowed value"),N(n<=e,"value smaller than minimum allowed value")}function N(e,t){if(!e)throw new Error(t||"Failed assertion")}o._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=S.get,e.set=S.set,e.write=S.write,e.toString=S.toString,e.toLocaleString=S.toString,e.toJSON=S.toJSON,e.copy=S.copy,e.slice=S.slice,e.readUInt8=S.readUInt8,e.readUInt16LE=S.readUInt16LE,e.readUInt16BE=S.readUInt16BE,e.readUInt32LE=S.readUInt32LE,e.readUInt32BE=S.readUInt32BE,e.readInt8=S.readInt8,e.readInt16LE=S.readInt16LE,e.readInt16BE=S.readInt16BE,e.readInt32LE=S.readInt32LE,e.readInt32BE=S.readInt32BE,e.readFloatLE=S.readFloatLE,e.readFloatBE=S.readFloatBE,e.readDoubleLE=S.readDoubleLE,e.readDoubleBE=S.readDoubleBE,e.writeUInt8=S.writeUInt8,e.writeUInt16LE=S.writeUInt16LE,e.writeUInt16BE=S.writeUInt16BE,e.writeUInt32LE=S.writeUInt32LE,e.writeUInt32BE=S.writeUInt32BE,e.writeInt8=S.writeInt8,e.writeInt16LE=S.writeInt16LE,e.writeInt16BE=S.writeInt16BE,e.writeInt32LE=S.writeInt32LE,e.writeInt32BE=S.writeInt32BE,e.writeFloatLE=S.writeFloatLE,e.writeFloatBE=S.writeFloatBE,e.writeDoubleLE=S.writeDoubleLE,e.writeDoubleBE=S.writeDoubleBE,e.fill=S.fill,e.inspect=S.inspect,e.toArrayBuffer=S.toArrayBuffer,e}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(e,t,n){(function(n,r,o,i,a,u,s,c,l){var f=new(o=e("buffer").Buffer)(4);f.fill(0),t.exports={hash:function(e,t,n,r){return o.isBuffer(e)||(e=new o(e)),function(e,t,n){for(var r=new o(t),i=n?r.writeInt32BE:r.writeInt32LE,a=0;a<e.length;a++)i.call(r,e[a],4*a,!0);return r}(t(function(e,t){var n;e.length%4!=0&&(n=e.length+(4-e.length%4),e=o.concat([e,f],n));for(var r=[],i=t?e.readInt32BE:e.readInt32LE,a=0;a<e.length;a+=4)r.push(i.call(e,a));return r}(e,r),8*e.length),n,r)}}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],5:[function(e,t,n){(function(t,r,o,i,a,u,s,c,l){o=e("buffer").Buffer;var f=e("./sha"),d=e("./sha256"),p=e("./rng"),h={sha1:f,sha256:d,md5:e("./md5")},v=64,y=new o(v);function g(e,t){var n=h[e=e||"sha1"],r=[];return n||b("algorithm:",e,"is not yet supported"),{update:function(e){return o.isBuffer(e)||(e=new o(e)),r.push(e),e.length,this},digest:function(e){var i=o.concat(r),a=t?function(e,t,n){o.isBuffer(t)||(t=new o(t)),o.isBuffer(n)||(n=new o(n)),t.length>v?t=e(t):t.length<v&&(t=o.concat([t,y],v));for(var r=new o(v),i=new o(v),a=0;a<v;a++)r[a]=54^t[a],i[a]=92^t[a];var u=e(o.concat([r,n]));return e(o.concat([i,u]))}(n,t,i):n(i);return r=null,e?a.toString(e):a}}}function b(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}y.fill(0),n.createHash=function(e){return g(e)},n.createHmac=g,n.randomBytes=function(e,t){if(!t||!t.call)return new o(p(e));try{t.call(this,void 0,new o(p(e)))}catch(e){t(e)}},function(e,t){for(var n in e)t(e[n])}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],(function(e){n[e]=function(){b("sorry,",e,"is not implemented yet")}}))}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:10}],6:[function(e,t,n){(function(n,r,o,i,a,u,s,c,l){var f=e("./helpers");function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var u=n,s=r,c=o,l=i;n=h(n,r,o,i,e[a+0],7,-680876936),i=h(i,n,r,o,e[a+1],12,-389564586),o=h(o,i,n,r,e[a+2],17,606105819),r=h(r,o,i,n,e[a+3],22,-1044525330),n=h(n,r,o,i,e[a+4],7,-176418897),i=h(i,n,r,o,e[a+5],12,1200080426),o=h(o,i,n,r,e[a+6],17,-1473231341),r=h(r,o,i,n,e[a+7],22,-45705983),n=h(n,r,o,i,e[a+8],7,1770035416),i=h(i,n,r,o,e[a+9],12,-1958414417),o=h(o,i,n,r,e[a+10],17,-42063),r=h(r,o,i,n,e[a+11],22,-1990404162),n=h(n,r,o,i,e[a+12],7,1804603682),i=h(i,n,r,o,e[a+13],12,-40341101),o=h(o,i,n,r,e[a+14],17,-1502002290),n=v(n,r=h(r,o,i,n,e[a+15],22,1236535329),o,i,e[a+1],5,-165796510),i=v(i,n,r,o,e[a+6],9,-1069501632),o=v(o,i,n,r,e[a+11],14,643717713),r=v(r,o,i,n,e[a+0],20,-373897302),n=v(n,r,o,i,e[a+5],5,-701558691),i=v(i,n,r,o,e[a+10],9,38016083),o=v(o,i,n,r,e[a+15],14,-660478335),r=v(r,o,i,n,e[a+4],20,-405537848),n=v(n,r,o,i,e[a+9],5,568446438),i=v(i,n,r,o,e[a+14],9,-1019803690),o=v(o,i,n,r,e[a+3],14,-187363961),r=v(r,o,i,n,e[a+8],20,1163531501),n=v(n,r,o,i,e[a+13],5,-1444681467),i=v(i,n,r,o,e[a+2],9,-51403784),o=v(o,i,n,r,e[a+7],14,1735328473),n=y(n,r=v(r,o,i,n,e[a+12],20,-1926607734),o,i,e[a+5],4,-378558),i=y(i,n,r,o,e[a+8],11,-2022574463),o=y(o,i,n,r,e[a+11],16,1839030562),r=y(r,o,i,n,e[a+14],23,-35309556),n=y(n,r,o,i,e[a+1],4,-1530992060),i=y(i,n,r,o,e[a+4],11,1272893353),o=y(o,i,n,r,e[a+7],16,-155497632),r=y(r,o,i,n,e[a+10],23,-1094730640),n=y(n,r,o,i,e[a+13],4,681279174),i=y(i,n,r,o,e[a+0],11,-358537222),o=y(o,i,n,r,e[a+3],16,-722521979),r=y(r,o,i,n,e[a+6],23,76029189),n=y(n,r,o,i,e[a+9],4,-640364487),i=y(i,n,r,o,e[a+12],11,-421815835),o=y(o,i,n,r,e[a+15],16,530742520),n=g(n,r=y(r,o,i,n,e[a+2],23,-995338651),o,i,e[a+0],6,-198630844),i=g(i,n,r,o,e[a+7],10,1126891415),o=g(o,i,n,r,e[a+14],15,-1416354905),r=g(r,o,i,n,e[a+5],21,-57434055),n=g(n,r,o,i,e[a+12],6,1700485571),i=g(i,n,r,o,e[a+3],10,-1894986606),o=g(o,i,n,r,e[a+10],15,-1051523),r=g(r,o,i,n,e[a+1],21,-2054922799),n=g(n,r,o,i,e[a+8],6,1873313359),i=g(i,n,r,o,e[a+15],10,-30611744),o=g(o,i,n,r,e[a+6],15,-1560198380),r=g(r,o,i,n,e[a+13],21,1309151649),n=g(n,r,o,i,e[a+4],6,-145523070),i=g(i,n,r,o,e[a+11],10,-1120210379),o=g(o,i,n,r,e[a+2],15,718787259),r=g(r,o,i,n,e[a+9],21,-343485551),n=b(n,u),r=b(r,s),o=b(o,c),i=b(i,l)}return Array(n,r,o,i)}function p(e,t,n,r,o,i){return b((a=b(b(t,e),b(r,i)))<<(u=o)|a>>>32-u,n);var a,u}function h(e,t,n,r,o,i,a){return p(t&n|~t&r,e,t,o,i,a)}function v(e,t,n,r,o,i,a){return p(t&r|n&~r,e,t,o,i,a)}function y(e,t,n,r,o,i,a){return p(t^n^r,e,t,o,i,a)}function g(e,t,n,r,o,i,a){return p(n^(t|~r),e,t,o,i,a)}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}t.exports=function(e){return f.hash(e,d,16)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(e,t,n){(function(e,n,r,o,i,a,u,s,c){var l;l=function(e){for(var t,n=new Array(e),r=0;r<e;r++)0==(3&r)&&(t=4294967296*Math.random()),n[r]=t>>>((3&r)<<3)&255;return n},t.exports=l}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(e,t,n){(function(n,r,o,i,a,u,s,c,l){var f=e("./helpers");function d(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n,r,o,i,a,u=Array(80),s=1732584193,c=-271733879,l=-1732584194,f=271733878,d=-1009589776,v=0;v<e.length;v+=16){for(var y=s,g=c,b=l,m=f,_=d,w=0;w<80;w++){u[w]=w<16?e[v+w]:h(u[w-3]^u[w-8]^u[w-14]^u[w-16],1);var O=p(p(h(s,5),(o=c,i=l,a=f,(r=w)<20?o&i|~o&a:!(r<40)&&r<60?o&i|o&a|i&a:o^i^a)),p(p(d,u[w]),(n=w)<20?1518500249:n<40?1859775393:n<60?-1894007588:-899497514));d=f,f=l,l=h(c,30),c=s,s=O}s=p(s,y),c=p(c,g),l=p(l,b),f=p(f,m),d=p(d,_)}return Array(s,c,l,f,d)}function p(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function h(e,t){return e<<t|e>>>32-t}t.exports=function(e){return f.hash(e,d,20,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(e,t,n){(function(n,r,o,i,a,u,s,c,l){function f(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function d(e,t){return e>>>t|e<<32-t}function p(e,t){var n,r,o,i,a,u,s,c,l,p,h=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),v=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),y=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var g,b,m,_,w,O,P,E,S=0;S<e.length;S+=16){n=v[0],r=v[1],o=v[2],i=v[3],a=v[4],u=v[5],s=v[6],c=v[7];for(var j=0;j<64;j++)y[j]=j<16?e[j+S]:f(f(f(d(E=y[j-2],17)^d(E,19)^E>>>10,y[j-7]),d(P=y[j-15],7)^d(P,18)^P>>>3),y[j-16]),l=f(f(f(f(c,d(O=a,6)^d(O,11)^d(O,25)),(w=a)&u^~w&s),h[j]),y[j]),p=f(d(_=n,2)^d(_,13)^d(_,22),(g=n)&(b=r)^g&(m=o)^b&m),c=s,s=u,u=a,a=f(i,l),i=o,o=r,r=n,n=f(l,p);v[0]=f(n,v[0]),v[1]=f(r,v[1]),v[2]=f(o,v[2]),v[3]=f(i,v[3]),v[4]=f(a,v[4]),v[5]=f(u,v[5]),v[6]=f(s,v[6]),v[7]=f(c,v[7])}return v}var h=e("./helpers");t.exports=function(e){return h.hash(e,p,32,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],10:[function(e,t,n){(function(e,n,r,o,i,a,u,s,c){function l(){}(e=t.exports={}).nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var n=[];return window.addEventListener("message",(function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0<n.length&&n.shift()())}),!0),function(e){n.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=l,e.addListener=l,e.once=l,e.off=l,e.removeListener=l,e.removeAllListeners=l,e.emit=l,e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:10}],11:[function(e,t,n){(function(e,t,r,o,i,a,u,s,c){n.read=function(e,t,n,r,o){var i,a,u=8*o-r-1,s=(1<<u)-1,c=s>>1,l=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-l)-1,p>>=-l,l+=u;0<l;i=256*i+e[t+f],f+=d,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;0<l;a=256*a+e[t+f],f+=d,l-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},n.write=function(e,t,n,r,o,i){var a,u,s,c=8*i-o-1,l=(1<<c)-1,f=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),2<=(t+=1<=a+f?d/s:d*Math.pow(2,1-f))*s&&(a++,s/=2),l<=a+f?(u=0,a=l):1<=a+f?(u=(t*s-1)*Math.pow(2,o),a+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));8<=o;e[n+p]=255&u,p+=h,u/=256,o-=8);for(a=a<<o|u,c+=o;0<c;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*v}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/ieee754/index.js","/node_modules/ieee754")},{buffer:3,lYpoI2:10}]},{},[1])(1)},5983:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(58),t)},58:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AnalyticsEventName=void 0,(n=t.AnalyticsEventName||(t.AnalyticsEventName={})).VideoView="videoView",n.VideoPlay="videoPlay",n.AdView="adView"},6672:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},u=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.signUp=t.signOut=t.signInWithTenant=t.signInWithEmailAndPassword=t.signInWithCustomToken=t.setTenantId=t.resetPassword=t.isUserInitialized=t.onUserChange=void 0;var c,l=n(1741),f=a(n(6256)),d=n(9786),p=n(699),h=n(2799),v=null,y=function(e,t){if("function"!=typeof e)throw new Error("bug: pendingGuard got arg which is not a function");return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return u(void 0,void 0,void 0,(function(){var r;return s(this,(function(o){switch(o.label){case 0:if(v)throw new Error('Function "'+v+'" is pending, other auth functions should not be used until it finishes');r=void 0,o.label=1;case 1:return o.trys.push([1,,3,4]),v=t,[4,e.apply(void 0,n)];case 2:return r=o.sent(),[3,4];case 3:return v=null,[7];case 4:return[2,r]}}))}))}},g=[new Promise((function(e){c=e})),function(e){l.FirebaseEnvironment.auth.tenantId=e,c(e)}],b=g[0],m=g[1];t.onUserChange=function(e){l.FirebaseEnvironment.auth.onAuthStateChanged((function(t){return u(void 0,void 0,void 0,(function(){var n,r;return s(this,(function(o){switch(o.label){case 0:return n=null,t?[4,(0,p.getCustomClaims)(t)]:[3,2];case 1:r=o.sent().tivioUserId,n=l.FirebaseEnvironment.firestore.doc("users/"+r),o.label=2;case 2:return e(n),[2]}}))}))}))},t.isUserInitialized=(0,d.once)((function(){return new Promise((function(e){(0,t.onUserChange)(e)}))})),t.resetPassword=function(e){return u(void 0,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return[4,b];case 1:return t=n.sent(),[4,f.resetPassword({email:e,tenantId:t})];case 2:return n.sent(),[2]}}))}))},t.setTenantId=function(e){if(null!=l.FirebaseEnvironment.auth.tenantId)throw new Error("setTenantId() can be called only one time.");m(e)};var _=function(e){return u(void 0,void 0,Promise,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return[4,l.FirebaseEnvironment.auth.signInWithCustomToken(e)];case 1:if(!(t=n.sent().user))throw new Error("signInWithCustomToken failed for tenant "+l.FirebaseEnvironment.auth.tenantId);return[4,(0,p.getCustomClaims)(t)];case 2:return n.sent(),[2,t.uid]}}))}))},w=function(e,n){return u(void 0,void 0,Promise,(function(){var r,o,i;return s(this,(function(a){switch(a.label){case 0:return[4,b];case 1:return r=a.sent(),[4,(0,t.isUserInitialized)()];case 2:if(a.sent(),l.FirebaseEnvironment.auth.currentUser)throw new Error("Already signed in");return(null===(i=(0,h.getTenantInfo)(r))||void 0===i?void 0:i.name)===h.TenantName.oktagon?[3,3]:[3,5];case 3:return[4,O({email:e,password:n,tenantId:r})];case 4:return[2,a.sent()];case 5:return[4,l.FirebaseEnvironment.auth.signInWithEmailAndPassword(e,n)];case 6:if(!(o=a.sent().user))throw new Error("signInWithEmailAndPassword failed for user "+e+" and tenant "+r);return[4,(0,p.getCustomClaims)(o)];case 7:return a.sent(),[2,o.uid]}}))}))},O=function(e){return u(void 0,void 0,Promise,(function(){var n,o;return s(this,(function(i){switch(i.label){case 0:return[4,b];case 1:return n=i.sent(),[4,(0,t.isUserInitialized)()];case 2:if(i.sent(),l.FirebaseEnvironment.auth.currentUser)throw new Error("Already signed in");return[4,f.signInWithTenant(r(r({},e),{tenantId:n}))];case 3:return o=i.sent(),[2,_(o)]}}))}))};t.signInWithCustomToken=y(_,"signInWithCustomToken"),t.signInWithEmailAndPassword=y(w,"signInWithEmailAndPassword"),t.signInWithTenant=y(O,"signInWithTenant"),t.signOut=y((function(){return u(void 0,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,b];case 1:return e.sent(),[4,(0,t.isUserInitialized)()];case 2:return e.sent(),[4,l.FirebaseEnvironment.auth.signOut()];case 3:return e.sent(),[2]}}))}))}),"signOut"),t.signUp=y((function(e,t,n,r,o){return u(void 0,void 0,void 0,(function(){var i;return s(this,(function(a){switch(a.label){case 0:return[4,b];case 1:return i=a.sent(),[4,f.signUpWithTenant({email:e,password:t,referralToken:o,tenantId:i,username:n,phoneNumber:r})];case 2:return a.sent(),[2,w(e,t)]}}))}))}),"signUp")},699:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.getCustomClaims=void 0;var i=n(1741),a=new(n(3631).Logger)("customClaims");t.getCustomClaims=function(e){return r(void 0,void 0,Promise,(function(){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),[4,e.getIdTokenResult()];case 1:return(t=r.sent()).claims.tivioUserId?[3,5]:(a.info("Custom claims not found. Generating new..."),[4,i.FirebaseEnvironment.functions.httpsCallable("setCustomClaims")()]);case 2:return r.sent(),[4,e.getIdToken(!0)];case 3:return r.sent(),[4,e.getIdTokenResult()];case 4:if(!(t=r.sent()).claims.tivioUserId)throw new Error("Getting custom claims failed. User probably hasn't corresponding document in Firestore.");r.label=5;case 5:return a.info("Custom claims:",t.claims),[2,t.claims];case 6:throw n=r.sent(),new Error(n);case 7:return[2]}}))}))}},2773:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6672),t),o(n(2799),t),o(n(9418),t)},2799:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.getTenantInfo=t.TenantName=void 0,function(e){e.grape="grape",e.oktagon="oktagon",e.o2Demo="o2_demo"}(n=t.TenantName||(t.TenantName={}));var r=[{id:"Xz3t0GHDgmPwjHRKt1Ga-4vicx",name:n.grape,stage:"production"},{id:"XhkAHxcqCBfqOXFcqe8s-mi6aw",name:n.grape,stage:"dev"},{id:"XA6ZOtuDD90uHsRkXNyj-e2xvz",name:n.oktagon,stage:"production"},{id:"Xo6dD3w9EPgPBsyclQaG-xdlns",name:n.oktagon,stage:"dev"},{id:"X0Q4o9TigUUTNe6TYAqR-j5sg1",name:n.o2Demo,stage:"production"},{id:"XQVQisSMOXeDswNOFwwk-kw39b",name:n.o2Demo,stage:"dev"}];t.getTenantInfo=function(e){var t;return null!==(t=r.find((function(t){return t.id===e})))&&void 0!==t?t:null}},9418:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},44:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerAppInstance=t.setCurrentAppInstance=t.getCurrentFirebaseAppInstance=t.getFirebaseAppInstance=void 0;var n={},r=null;t.getCurrentFirebaseAppInstance=function(){if(!r)throw new Error("Firebase app has not been initialized yet. First call registerAppInstance()");return r};var o=function(e){var t;return null!==(t=n[e])&&void 0!==t?t:null};t.getFirebaseAppInstance=o,t.registerAppInstance=function(e,t){n[e]=t,r||i(e)};var i=function(e){var t=o(e);if(!t)throw new Error("Firebase app instance for environment ("+e+") doesn't exist");r=t};t.setCurrentAppInstance=i},5280:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Environment=void 0,function(e){e.default="default",e.development="development",e.production="production",e.test="test"}(n||(n={})),t.Environment=n},9896:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCurrentEnvironment=t.setFirebaseEnvironment=t.initFirebaseEnvironment=t.FirebaseEnvironment=void 0;var r=n(2043),o=n(534),i=n(5055),a=n(44),u=n(5280);(0,r.setDefaultLevel)("error");var s={},c=null,l=function(){function e(e){this.environmentName=e,this.cachedDocuments={},this.cachedQueries={},s[e]=this,c||d(e)}return e.getCurrentEnvironment=function(){return p()},e.getDocumentWithPath=function(e,t){return p().getDocumentWithPath(e,t)},e.getEnvironment=function(e){return f(e)},e.getQueryWithParams=function(e){return p().getQueryWithParams(e)},e.setEnvironment=function(e,t){void 0===t&&(t=!1);var n=c;d(e),t&&(null==n||n.clearCache())},Object.defineProperty(e,"auth",{get:function(){return p().auth},enumerable:!1,configurable:!0}),Object.defineProperty(e,"firestore",{get:function(){return p().firestore},enumerable:!1,configurable:!0}),Object.defineProperty(e,"functions",{get:function(){return p().functions},enumerable:!1,configurable:!0}),Object.defineProperty(e,"installations",{get:function(){return p().installations},enumerable:!1,configurable:!0}),Object.defineProperty(e,"environmentName",{get:function(){return p().name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"appInstance",{get:function(){var e=(0,a.getFirebaseAppInstance)(this.environmentName);if(!e)throw new Error("Firebase app instance does not exist");return e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"auth",{get:function(){return this.appInstance.auth()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firestore",{get:function(){return this.appInstance.firestore()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"functions",{get:function(){return this.appInstance.functions("europe-west3")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"installations",{get:function(){return this.appInstance.installations()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.environmentName},enumerable:!1,configurable:!0}),e.prototype.clearCache=function(){this.cachedDocuments={},this.cachedQueries={}},e.prototype.getDocumentWithPath=function(e,t){return this.cachedDocuments[e]||(this.cachedDocuments[e]=new o.Document(this,e,t)),this.cachedDocuments[e]},e.prototype.getQueryWithParams=function(e){var t=i.PaginatedQuery.hashParams(e);return this.cachedQueries[t]||(this.cachedQueries[t]=new i.PaginatedQuery(this,e)),this.cachedQueries[t]},e}();t.FirebaseEnvironment=l;var f=function(e){var t;return null!==(t=s[e])&&void 0!==t?t:null};t.initFirebaseEnvironment=function(e,t){if(void 0===t&&(t=u.Environment.default),function(e){return null!=f(e)}(t))throw new Error('Environment "'+t+'" already exists');(0,a.registerAppInstance)(t,e);var n=new l(t);s[t]=n};var d=function(e){var t=f(e);if(!t)throw new Error('Environment "'+e+'" does not exist');c=t,(0,a.setCurrentAppInstance)(e)};t.setFirebaseEnvironment=d;var p=function(){if(!c)throw new Error("Environment not been initialized yet. First call initFirebaseEnvironment()");return c};t.getCurrentEnvironment=p},1741:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FirebaseEnvironment=void 0;var r=n(9896);Object.defineProperty(t,"FirebaseEnvironment",{enumerable:!0,get:function(){return r.FirebaseEnvironment}})},666:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCollectionWithPath=void 0;var r=n(5256);t.getCollectionWithPath=function(e){return new r.Collection(e)}},3363:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDocumentWithPath=t.getDocumentWithCollectionPath=t.getDocumentWithCollection=void 0;var r=n(9896);t.getDocumentWithCollection=function(e,t){var n=(0,r.getCurrentEnvironment)().firestore.collection(e).doc(t).path;return o(n)};var o=function(e,t){return(0,r.getCurrentEnvironment)().getDocumentWithPath(e,t)};t.getDocumentWithPath=o,t.getDocumentWithCollectionPath=function(e,t){var n=(0,r.getCurrentEnvironment)().firestore.collection(e).doc().path;return(0,r.getCurrentEnvironment)().getDocumentWithPath(n,t)}},9269:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(666),t),o(n(3363),t),o(n(7430),t)},7430:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getQueryWithOrderBy=t.convertRowWhereFilterToWhereFilter=t.convertRowFilterToFilter=t.getQueryByFilter=t.getQueryWithWhereFilters=t.getQueryWithParams=void 0;var r=n(9896);t.getQueryWithParams=function(e){return(0,r.getCurrentEnvironment)().getQueryWithParams(e)};var o=function(e,t){return(null==e?void 0:e.length)?e.reduce((function(e,t){return Array.isArray(t.value)&&0===t.value.length?e:e.where(t.field,t.operator,t.value)}),t):t};t.getQueryWithWhereFilters=o,t.getQueryByFilter=function(e,t){var n=o(e.where,t);return a(e.orderBy,n)},t.convertRowFilterToFilter=function(e){var t,n;return{where:null!==(n=null===(t=e.where)||void 0===t?void 0:t.map(i))&&void 0!==n?n:[],orderBy:e.orderBy?[{field:e.orderBy.fieldPath,directionStr:e.orderBy.directionStr}]:[],limit:e.limit}};var i=function(e){return{field:e.fieldPath,operator:e.opStr,value:e.value}};t.convertRowWhereFilterToWhereFilter=i;var a=function(e,t){return(null==e?void 0:e.length)?e.reduce((function(e,t){return e.orderBy(t.field,t.directionStr)}),t):t};t.getQueryWithOrderBy=a},5256:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Collection=void 0;var i=n(44),a=n(3363);t.Collection=function(e){var t=this;this.createDocument=function(e){var n=e?t._ref.doc(e):t._ref.doc();return(0,a.getDocumentWithPath)(n.path)},this.getDocumentFromSnapshot=function(e){return r(t,void 0,Promise,(function(){var t;return o(this,(function(n){switch(n.label){case 0:return[4,(t=(0,a.getDocumentWithPath)(e.ref.path)).updateCache(e.data())];case 1:return n.sent(),[2,t]}}))}))},this.getDocumentsFromQuerySnapshot=function(e){return r(t,void 0,Promise,(function(){var t,n=this;return o(this,(function(i){switch(i.label){case 0:return t={},[4,Promise.all(e.docs.map((function(e){return r(n,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.getDocumentFromSnapshot(e)];case 1:return[2,t.sent()]}}))}))})))];case 1:return[2,(t.data=i.sent(),t.lastCursor=e.size&&e.docs[e.size-1]||null,t)]}}))}))},this.getDocumentsQuery=function(e,n,r){void 0===e&&(e=[]);var o=e.reduce((function(e,t){return e.where(t.field,t.operator,t.value)}),t._ref);return n&&(o=o.orderBy(n.field,n.directionStr)),t.getDocumentsQueryAfter(o,r)},this.getDocumentsQueryAfter=function(e,t,n){return(n&&e.startAfter(n)||e).limit(Math.min(Math.max(t||10,1),10))},this.getDocuments=function(e,n,i){return void 0===e&&(e=[]),r(t,void 0,Promise,(function(){var t,a,u,s=this;return o(this,(function(c){switch(c.label){case 0:return t=this.getDocumentsQuery(e,n,i),u=this.getDocumentsFromQuerySnapshot,[4,t.get()];case 1:return[4,u.apply(this,[c.sent()])];case 2:return[2,{data:(a=c.sent()).data,getNext:function(e){return r(s,void 0,void 0,(function(){var n,r,u,s,c;return o(this,(function(o){switch(o.label){case 0:return a.lastCursor?(s=this.getDocumentsFromQuerySnapshot,[4,this.getDocumentsQueryAfter(t,e||i,a.lastCursor).get()]):[2,[]];case 1:return[4,s.apply(this,[o.sent()])];case 2:return n=o.sent(),r=n.data,u=n.lastCursor,(c=a.data).push.apply(c,r),a.lastCursor=u,[2,r]}}))}))}}]}}))}))},this._ref=(0,i.getCurrentFirebaseAppInstance)().firestore().collection(e)}},534:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Document=void 0;var a=new(n(3631).Logger)("document"),u=function(){function e(e,t,n){var u=this;this.firebaseEnvironment=e,this._data=null,this._fetchPromise=null,this._exists=null,this.cancelSubscription=null,this.delete=function(){return o(u,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this.ref.delete()];case 1:return e.sent(),[2]}}))}))},this.fetch=function(e){return void 0===e&&(e=!1),o(u,void 0,Promise,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this.get(e)];case 1:return[2,t.sent()]}}))}))},this.get=function(e){return void 0===e&&(e=!1),o(u,void 0,Promise,(function(){var t,n=this;return i(this,(function(r){switch(r.label){case 0:return(!this._fetchPromise&&!this.data||e)&&(this._fetchPromise=new Promise((function(e,t){n.ref.get().then((function(t){n.updateCache(t.data()),n._exists=t.exists,e(n.data)})).catch(t)}))),(t=this._fetchPromise)?[4,this._fetchPromise]:[3,2];case 1:t=r.sent(),r.label=2;case 2:return[2,t||this.data]}}))}))},this.subscribe=function(){return o(u,void 0,void 0,(function(){var e=this;return i(this,(function(t){return this.isSubscribing||(a.info("Started subscribing to document changes ("+this.ref.path+")"),this.cancelSubscription=this.ref.onSnapshot({next:function(t){e.updateCache(t.data())}})),[2]}))}))},this.unsubscribe=function(){u.cancelSubscription&&(u.cancelSubscription(),u.cancelSubscription=null,a.info("Stopped subscribing to document changes ("+u.ref.path+")"))},this.update=function(e,t){return void 0===t&&(t=null),o(u,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return e?(this.updateCache(e,t),[4,this.ref.set(e,t||{})]):[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},this.updateCache=function(e,t){void 0===t&&(t=null),e&&(t?t.merge&&(u._data=r(r({},u._data),e)):u._data=e)},this.ref=e.firestore.doc(t),this.updateCache(n)}return Object.defineProperty(e.prototype,"id",{get:function(){return this.ref.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSubscribing",{get:function(){return null!==this.cancelSubscription},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLoaded",{get:function(){return null!=this._data||!1===this._exists},enumerable:!1,configurable:!0}),e}();t.Document=u},5474:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.runTransaction=t.Document=t.Collection=t.batch=t.admin=void 0;var i=n(5256);Object.defineProperty(t,"Collection",{enumerable:!0,get:function(){return i.Collection}});var a=n(534);Object.defineProperty(t,"Document",{enumerable:!0,get:function(){return a.Document}});var u=n(4679);Object.defineProperty(t,"batch",{enumerable:!0,get:function(){return u.batch}}),Object.defineProperty(t,"runTransaction",{enumerable:!0,get:function(){return u.runTransaction}});var s={batch:u.batchAdmin,runTransaction:u.runTransactionAdmin,collection:u.collectionAdmin};t.admin=s,o(n(9269),t),o(n(5055),t),o(n(7540),t),o(n(9807),t)},1174:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6040:function(e,t){"use strict";var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.AdProfileType=t.OnlineSkippability=t.StreamSkippability=void 0,(o=t.StreamSkippability||(t.StreamSkippability={})).SKIPPABLE="SKIPPABLE",o.NOT_SKIPPABLE="NOT_SKIPPABLE",o.AUTO_SKIP="AUTO_SKIP",(r=t.OnlineSkippability||(t.OnlineSkippability={})).SKIPPABLE="SKIPPABLE",r.NOT_SKIPPABLE="NOT_SKIPPABLE",r.VAST_BASED="VAST_BASED",(n=t.AdProfileType||(t.AdProfileType={})).ONLINE="ONLINE",n.STREAM="STREAM"},4248:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8298:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1174),t),o(n(4248),t),o(n(6040),t)},5164:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5427:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ASSET_PRESET_PLACEMENTS=t.AssetPresetPlacement=void 0,function(e){e.TV_CHANNEL="tvChannel",e.CHANNEL="channel",e.SECTION="section",e.VIDEO="video",e.TAG="tag"}(n=t.AssetPresetPlacement||(t.AssetPresetPlacement={})),t.ASSET_PRESET_PLACEMENTS=Object.values(n)},2399:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5164),t),o(n(5427),t)},9970:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6172:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2082:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(9970),t),o(n(6172),t)},6205:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8458:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6205),t)},8372:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalConfigurationType=void 0,(t.GlobalConfigurationType||(t.GlobalConfigurationType={})).SOURCE_DOMAINS="sourceDomains"},9807:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(8298),t),o(n(2399),t),o(n(8458),t),o(n(2082),t),o(n(8372),t),o(n(2867),t),o(n(6241),t),o(n(8362),t),o(n(721),t),o(n(7031),t),o(n(735),t),o(n(1273),t),o(n(5296),t),o(n(2665),t),o(n(5532),t),o(n(925),t),o(n(5137),t),o(n(6195),t),o(n(9969),t),o(n(5628),t),o(n(7888),t),o(n(9574),t),o(n(2585),t),o(n(4327),t),o(n(9279),t),o(n(2163),t)},2867:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5900),t),o(n(7083),t)},5900:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7083:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.InviteType=t.InviteState=void 0,(r=t.InviteState||(t.InviteState={})).CANCELLED="CANCELLED",r.CLOSED="CLOSED",r.EXPIRED="EXPIRED",r.NEW="NEW",(n=t.InviteType||(t.InviteType={})).ADMIN="ADMIN",n.PAIR_ACCOUNTS="PAIR_ACCOUNTS",n.SINGLE_SIGN_ON="SINGLE_SIGN_ON"},6241:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5671),t)},5671:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MarkerType=void 0,(n=t.MarkerType||(t.MarkerType={})).AD="AD",n.AD_SEGMENT="AD_SEGMENT",n.CHAPTER="CHAPTER",n.CREDITS="CREDITS",n.INTRO="INTRO"},8362:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(7140),t)},7140:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},721:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1725),t),o(n(7421),t),o(n(7302),t)},1725:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7421:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MonetizationPlacementType=void 0,(n=t.MonetizationPlacementType||(t.MonetizationPlacementType={})).VIDEO="video",n.SECTION="section",n.CHANNEL="channel",n.CONDITION="condition",n.TV_CHANNEL="tvChannel"},7302:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7031:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(9422),t),o(n(5001),t)},9422:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5001:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},735:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(2180),t)},2180:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1273:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(193),t),o(n(5034),t)},193:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseDocumentGateway=void 0,(n=t.PurchaseDocumentGateway||(t.PurchaseDocumentGateway={})).qerko="qerko",n.oktagon="oktagon",n.voucher="voucher",n.comgate="comgate"},5034:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5296:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1573),t)},1573:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2665:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4855),t),o(n(6315),t),o(n(2954),t)},4855:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6315:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.RowOrderByFieldPath=t.RowWhereFilterFieldPath=t.RowFilterCollection=void 0,(r=t.RowFilterCollection||(t.RowFilterCollection={})).VIDEOS="videos",r.TAGS="tags",r.TV_CHANNELS="tvChannels",(n=t.RowWhereFilterFieldPath||(t.RowWhereFilterFieldPath={})).CREATED="created",n.TAGS="tags",n.TAG_TYPE_REF="tagTypeRef",n.TYPE="type",n.CONTENT_TYPE="contentType",(t.RowOrderByFieldPath||(t.RowOrderByFieldPath={})).CREATED="created"},2954:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ORDER_BY_DIRECTIONS=t.WHERE_FILTER_OPERATORS=t.SCREEN_ROW_TYPES=void 0,t.SCREEN_ROW_TYPES=["filter","custom","continueToWatch","favourites"],t.WHERE_FILTER_OPERATORS=["<","<=","==","!=",">=",">","array-contains","in","array-contains-any","not-in"],t.ORDER_BY_DIRECTIONS=["desc","asc"]},5532:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4539),t)},4539:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2163:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1637),t),o(n(4570),t)},1637:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4570:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},925:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(2966),t)},2966:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6195:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.ContentType=t.DurationUnits=void 0,(r=t.DurationUnits||(t.DurationUnits={})).DAY="day",r.MONTH="month",(n=t.ContentType||(t.ContentType={})).CHANNEL="channel",n.EPISODE="episode",n.MOVIE="movie",n.MAGAZINE="magazine",n.PLAYLIST="playlist",n.SHOW="show",n.TRAILER="trailer"},5137:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4543),t)},4543:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9969:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1011),t),o(n(4773),t),o(n(691),t)},1011:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4773:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.TagSimplicityType=t.TagMetadataFieldType=void 0,(r=t.TagMetadataFieldType||(t.TagMetadataFieldType={})).STRING="STRING",r.TRANSLATION="TRANSLATION",r.NUMBER="NUMBER",r.BOOLEAN="BOOLEAN",r.AVAILABLE_SEASONS="AVAILABLE_SEASONS",(n=t.TagSimplicityType||(t.TagSimplicityType={})).SIMPLE="SIMPLE",n.COMPOSED="COMPOSED"},691:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TAG_LANDSCAPE_COVER_ASSET_NAME=t.TAG_PORTRAIT_COVER_ASSET_NAME=t.TAG_COVER_ASSET_NAME=t.TAG_DETAIL_BANNER_ASSET_NAME=t.TAG_BANNER_ASSET_NAME=void 0,t.TAG_BANNER_ASSET_NAME="tag_banner",t.TAG_DETAIL_BANNER_ASSET_NAME="tag_detail",t.TAG_COVER_ASSET_NAME="tag_cover",t.TAG_PORTRAIT_COVER_ASSET_NAME="tag_portrait_cover",t.TAG_LANDSCAPE_COVER_ASSET_NAME="tag_landscape_cover"},5628:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5283),t),o(n(8097),t),o(n(8614),t)},5283:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8097:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalTagTypeId=void 0,(n=t.GlobalTagTypeId||(t.GlobalTagTypeId={})).Actor="actor",n.Genre="genre",n.Series="series"},8614:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7888:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(3194),t),o(n(2958),t)},3194:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2958:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TvStreamType=void 0,(n=t.TvStreamType||(t.TvStreamType={})).STARTOVER="startover",n.TIMESHIFT="timeshift",n.LIVE="live",n.ALL="all"},9574:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(610),t),o(n(5717),t),o(n(8068),t)},610:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5717:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.UserDataType=void 0,(n=t.UserDataType||(t.UserDataType={})).FAVORITE="favorite",n.PURCHASE="purchase",n.WATCH_POSITION="watchPosition"},8068:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2585:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6717),t),o(n(7969),t),o(n(4823),t),o(n(1639),t)},6717:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VideoAnalyticsHistogramPercentages=void 0,t.VideoAnalyticsHistogramPercentages=["5","10","15","20","25","30","35","40","45","50","55","60","65","70","75","80","85","90","95","100"]},7969:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4823:function(e,t){"use strict";var n,r,o,i,a,u;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoTranscodingStatus=t.VideoDataSource=t.VideoSourceCodec=t.VideoSourceEncryption=t.VideoSourceProtocol=t.VideoStatus=void 0,(u=t.VideoStatus||(t.VideoStatus={})).DRAFT="DRAFT",u.PUBLISHED="PUBLISHED",(a=t.VideoSourceProtocol||(t.VideoSourceProtocol={})).HLS="hls",a.DASH="dash",a.MP4="mp4",(i=t.VideoSourceEncryption||(t.VideoSourceEncryption={})).NONE="none",i.WIDEVINE="widevine",i.FAIRPLAY="fairplay",i.PLAYREADY="playready",(o=t.VideoSourceCodec||(t.VideoSourceCodec={})).H264="h264",o.H265="h265",(r=t.VideoDataSource||(t.VideoDataSource={})).EPG_IMPORT="EPG_IMPORT",r.MALL_TV="MALL_TV",r.TIVIO_ADMIN="TIVIO_ADMIN",r.JOJ="JOJ",(n=t.VideoTranscodingStatus||(t.VideoTranscodingStatus={})).ON_HOLD="CREATED",n.IN_PROGRESS="ENCODING",n.DONE="ENCODING_DONE",n.ERROR="ERROR"},1639:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VIDEO_DETAIL_ASSET_NAME=void 0,t.VIDEO_DETAIL_ASSET_NAME="video_detail"},4327:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6733),t)},6733:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9279:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6835),t)},6835:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5055:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PaginatedQuery=void 0;var u=a(n(3958)),s=a(n(3096)),c=n(44),l=function(){function e(e,t){var n=this;this.firebaseEnvironment=e,this.params=t,this._isSubscribing=!1,this.pages=[],this.isFirstPageLoaded=!1,this.clearCache=function(){n.unsubscribe(),n.pages=[]},this.get=function(){return o(n,void 0,Promise,(function(){var e,t;return i(this,(function(n){return this.data.length>0?[2,this.data]:this.pages.length>0?[2,null!==(t=null===(e=this.pages[0])||void 0===e?void 0:e.dataPromise)&&void 0!==t?t:[]]:[2,this.getNext()]}))}))},this.getNext=function(){var e;if(null===(e=n.lastPage)||void 0===e?void 0:e.dataPromise)return n.lastPage.dataPromise;var t=void 0,r=new Promise((function(e){return t=e}));return n._pushToPages({data:[],dataPromise:r,dataResolve:t}),n.getPage(n.pages.length-1)},this._pushToPages=function(e){n.pages.push(e)},this.subscribe=function(){n.isSubscribing||(n._isSubscribing=!0,n.pages.length>0?n.pages.forEach((function(e,t){return n.getPage(t)})):n.getNext())},this.unsubscribe=function(){n._isSubscribing=!1,n.pages.forEach((function(e){e.unsubscribe&&(e.unsubscribe(),e.unsubscribe=void 0)}))},this._handlePageSnapshot=function(e,t){var r,o;n.isFirstPageLoaded=!0;var i=n.pages[e];i.data=t.docs.map((function(e){var t=n.firebaseEnvironment.getDocumentWithPath(e.ref.path);return t.updateCache(e.data()),t})),i.endSnapshot=null!==(r=t.docs[t.size-1])&&void 0!==r?r:void 0,i.startSnapshot=null!==(o=t.docs[0])&&void 0!==o?o:void 0,i.dataResolve&&i.dataResolve(i.data),i.dataResolve=void 0;var a=i.dataPromise;return i.dataPromise=void 0,a},this.getPage=function(e){return o(n,void 0,Promise,(function(){var t,n,r,o,a,u,s=this;return i(this,(function(i){switch(i.label){case 0:if(e<0||e>=this.pages.length)throw new Error("Query.getPage can not get page with index ("+e+"}) which is not in pages range ("+this.pages.length+")");return t=this.pages[e],n=null!==(u=this.pages[e-1])&&void 0!==u?u:null,r=this.buildPageQuery(n,t),this.isSubscribing?(t.unsubscribe=r.onSnapshot({next:function(t){return s._handlePageSnapshot(e,t)}}),[3,3]):[3,1];case 1:return[4,r.get()];case 2:if(o=i.sent(),a=this._handlePageSnapshot(e,o))return[2,a];i.label=3;case 3:return[2,[]]}}))}))}}return e.isEqual=function(e,t){return(0,u.default)(e.params,t.params)},e.hashParams=function(e){return(0,s.default)(r(r({},e),{filters:e.filters.map((function(e){return r(r({},e),{value:(t=e.value,t?t.path?t.path:t:"")});var t}))}))},Object.defineProperty(e.prototype,"data",{get:function(){return this.pages.map((function(e){return e.data.slice()})).flat()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return e.hashParams(this.params)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSubscribing",{get:function(){return this._isSubscribing},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastPage",{get:function(){return 0===this.pages.length?null:this.pages[this.pages.length-1]},enumerable:!1,configurable:!0}),e.prototype.buildPageQuery=function(e,t){var n=this.buildQuery();return e&&t.startSnapshot?n=n.startAt(t.startSnapshot):e&&e.endSnapshot&&(n=n.startAfter(e.endSnapshot)),t.endSnapshot?n=n.endAt(t.endSnapshot):this.params.limit&&(n=n.limit(this.params.limit)),n},e.prototype.buildQuery=function(){var e=(0,c.getCurrentFirebaseAppInstance)().firestore(),t=this.params.isCollectionGroup?e.collectionGroup(this.params.collection):e.collection(this.params.collection),n=this.params.filters.reduce((function(e,t){return e.where(t.field,t.operator,t.value)}),t);return this.params.orderBy&&(n=n.orderBy(this.params.orderBy.field,this.params.orderBy.directionStr)),n},e}();t.PaginatedQuery=l},4679:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.collectionAdmin=t.runTransactionAdmin=t.batchAdmin=t.runTransaction=t.batch=void 0;var r=n(44),o=function(){return(0,r.getCurrentFirebaseAppInstance)().firestore()},i=function(){return o()};t.batch=function(){return o().batch()},t.runTransaction=function(e){return o().runTransaction(e)},t.batchAdmin=function(){return i().batch()},t.runTransactionAdmin=function(e,t){return i().runTransaction(e,t)},t.collectionAdmin=function(e){return i().collection(e)}},7540:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6256:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(7745),t),o(n(5970),t),o(n(3034),t),o(n(3006),t),o(n(9088),t),o(n(7192),t),o(n(1018),t)},7745:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.applyInviteCode=void 0;var i=n(1741);t.applyInviteCode=function(e){return r(void 0,void 0,Promise,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("applyInviteCode")(e)];case 1:return[2,t.sent().data]}}))}))}},1018:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.logEvent=void 0;var i=n(1741),a=new(n(3631).Logger)("logEvent");t.logEvent=function(e){return r(void 0,void 0,void 0,(function(){return o(this,(function(t){return a.info("logging event "+e.event_name+" with data",e),i.FirebaseEnvironment.functions.httpsCallable("logEvent")(e),[2]}))}))}},5970:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.logRequestBody=void 0;var i=n(1741);t.logRequestBody=function(e){return r(void 0,void 0,void 0,(function(){return o(this,(function(t){return i.FirebaseEnvironment.functions.httpsCallable("logRequestBody")(e),[2]}))}))}},3034:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.purchaseRecovery=void 0;var i=n(1741);t.purchaseRecovery=function(e){return r(void 0,void 0,Promise,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("purchaseRecovery")(e)];case 1:return[2,t.sent().data]}}))}))}},3006:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.getReferralInfo=void 0;var i=n(1741);t.getReferralInfo=function(e,t){return r(void 0,void 0,Promise,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("getReferralInfo")({organizationId:e,token:t})];case 1:return[2,n.sent().data]}}))}))}},9088:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.signUpWithTenant=t.signInWithTenant=t.resetPassword=void 0;var i=n(1741);t.resetPassword=function(e){return r(void 0,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("resetPassword")(e)];case 1:return[2,t.sent()]}}))}))},t.signInWithTenant=function(e){return r(void 0,void 0,Promise,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("signInWithTenant")(e)];case 1:return[2,t.sent().data]}}))}))},t.signUpWithTenant=function(e){return r(void 0,void 0,Promise,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("signUpWithTenant")(e)];case 1:return[2,t.sent().data]}}))}))}},7192:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.getDrmLicense=void 0;var i=n(1741);t.getDrmLicense=function(e){return r(void 0,void 0,Promise,(function(){var t,n,r,a;return o(this,(function(o){switch(o.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("generateDrmLicense")({videoId:e})];case 1:return t=o.sent(),n=t.data,r=n[0],a=n[1],1===r?[2,a]:[2,null]}}))}))}},4027:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.hashObject=t.utils=t.migration=t.installations=t.functions=t.firestore=t.auth=t.Environment=t.setFirebaseEnvironment=t.initFirebaseEnvironment=t.FirebaseEnvironment=void 0;var s=n(9896);Object.defineProperty(t,"FirebaseEnvironment",{enumerable:!0,get:function(){return s.FirebaseEnvironment}}),Object.defineProperty(t,"initFirebaseEnvironment",{enumerable:!0,get:function(){return s.initFirebaseEnvironment}}),Object.defineProperty(t,"setFirebaseEnvironment",{enumerable:!0,get:function(){return s.setFirebaseEnvironment}});var c=n(5280);Object.defineProperty(t,"Environment",{enumerable:!0,get:function(){return c.Environment}}),t.auth=i(n(2773)),t.firestore=i(n(5474)),t.functions=i(n(6256)),t.installations=i(n(809)),t.migration=i(n(6739)),t.utils=i(n(5538)),a(n(5983),t),a(n(5474),t);var l=u(n(3096));t.hashObject=l.default},809:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getId=void 0;var o=(0,r(n(7060)).default)();t.getId=function(){return o}},6739:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Migration=t.DocumentMigrationResponse=void 0;var r=n(2364);Object.defineProperty(t,"DocumentMigrationResponse",{enumerable:!0,get:function(){return r.DocumentMigrationResponse}}),Object.defineProperty(t,"Migration",{enumerable:!0,get:function(){return r.Migration}})},2364:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Migration=t.migrationLogger=void 0;var i=n(2043),a=n(1741);t.migrationLogger=(0,i.getLogger)("migration");var u=function(){function e(e,n){this.migratedDocuments=[],t.migrationLogger.info("Migration from "+(null!=n?n:a.FirebaseEnvironment.environmentName)+" -> to "+e);var r=a.FirebaseEnvironment.getEnvironment(null!=n?n:a.FirebaseEnvironment.environmentName),o=a.FirebaseEnvironment.getEnvironment(e);if(!r||!o)throw new Error("Migration failed, one of the environments doesn't exist");this.fromEnvironment=r,this.toEnvironment=o}return e.prototype.defaultDocumentMigration=function(e,t){return r(this,void 0,Promise,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,e.fetch()];case 1:if(n.sent(),!e.data)throw new Error("Document ("+e.ref.path+") migration failed");return[2,{data:e.data,path:t||e.ref.path}]}}))}))},e.prototype.migrateDocument=function(e,t){return void 0===t&&(t=this.defaultDocumentMigration),r(this,void 0,Promise,(function(){var n,r,i,a;return o(this,(function(o){switch(o.label){case 0:return[4,t(e)];case 1:return n=o.sent(),r=n.data,i=n.path,[4,(a=this.toEnvironment.getDocumentWithPath(i)).update(r)];case 2:return o.sent(),this.migratedDocuments.push(a),[2,a]}}))}))},e.prototype.migrateQuery=function(e,t){return void 0===t&&(t=this.defaultDocumentMigration),r(this,void 0,Promise,(function(){var n,i=this;return o(this,(function(a){switch(a.label){case 0:return[4,e.get()];case 1:return n=a.sent(),[4,Promise.all(n.map((function(e){return r(i,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.migrateDocument(e,t)];case 1:return[2,n.sent()]}}))}))})))];case 2:return[2,a.sent()]}}))}))},e.prototype.revertMigration=function(){return r(this,void 0,void 0,(function(){var e=this;return o(this,(function(t){switch(t.label){case 0:if(this.fromEnvironment.name===this.toEnvironment.name)throw new Error("Can not revert documents from the same environemtns");return[4,Promise.all(this.migratedDocuments.map((function(t){return r(e,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,t.delete()];case 1:return[2,e.sent()]}}))}))})))];case 1:return t.sent(),this.migratedDocuments=[],[2]}}))}))},e}();t.Migration=u},9786:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.once=void 0,t.once=function(e){var t=!1,n=null;return function(){return t||(n=e(),t=!0),n}}},4457:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseGenerator=void 0;var u=n(5474),s=function(){function e(e){var t=this;this.documents=[],this.generateDocuments=function(e,n){return o(t,void 0,Promise,(function(){var t=this;return i(this,(function(a){switch(a.label){case 0:return[4,Promise.all(Array(e).fill(null).map((function(e,a){return o(t,void 0,void 0,(function(){var e,t=this;return i(this,(function(o){switch(o.label){case 0:return[4,(e=this.collection.createDocument()).update(Object.entries(n).reduce((function(e,n){var o,i=n[0],u=n[1];return r(r({},e),((o={})[i]=t.replaceTemplateValue(u,a),o))}),{}))];case 1:return o.sent(),this.documents.push(e),[2,e]}}))}))})))];case 1:return[2,a.sent()]}}))}))},this.generateDocumentsWithData=function(e){return o(t,void 0,Promise,(function(){var t=this;return i(this,(function(n){switch(n.label){case 0:return[4,Promise.all(e.map((function(e){return o(t,void 0,void 0,(function(){var t,n,r;return i(this,(function(o){switch(o.label){case 0:return t=e.id,n=a(e,["id"]),[4,(r=this.collection.createDocument(t)).update(n)];case 1:return o.sent(),this.documents.push(r),[2,r]}}))}))})))];case 1:return[2,n.sent()]}}))}))},this.collection=(0,u.getCollectionWithPath)(e)}return Object.defineProperty(e.prototype,"sortedDocuments",{get:function(){return this.documents.sort((function(e,t){return e.id<t.id?-1:1}))},enumerable:!1,configurable:!0}),e.prototype.getDocumentById=function(e){return this.documents.find((function(t){return t.id===e}))},e.prototype.getDocumentsByIds=function(e){return this.sortedDocuments.filter((function(t){return e.includes(t.id)}))},e.prototype.clean=function(){return o(this,void 0,void 0,(function(){var e=this;return i(this,(function(t){switch(t.label){case 0:return[4,Promise.all(this.documents.map((function(t){return o(e,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,t.ref.delete()];case 1:return[2,e.sent()]}}))}))})))];case 1:return t.sent(),this.documents=[],[2]}}))}))},e.prototype.replaceTemplateValue=function(e,t){return void 0===t&&(t=0),"string"==typeof e?e.replace("$index",""+(this.documents.length+t)):e},e}();t.BaseGenerator=s},7287:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)}),i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelGenerator=void 0;var u=n(4457),s=n(9865),c=function(e){function t(){var t=e.call(this,"channels")||this;return t.sectionGenerators={},t}return o(t,e),t.prototype.clean=function(){return i(this,void 0,void 0,(function(){var t=this;return a(this,(function(n){switch(n.label){case 0:return[4,e.prototype.clean.call(this)];case 1:return n.sent(),[4,Promise.all(Object.values(this.sectionGenerators).map((function(e){return i(t,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,e.clean()];case 1:return[2,t.sent()]}}))}))})))];case 2:return n.sent(),[2]}}))}))},t.prototype.getSectionGenerator=function(e){return this.sectionGenerators[e.ref.path]||(this.sectionGenerators[e.ref.path]=new s.SectionGenerator(e)),this.sectionGenerators[e.ref.path]},t.prototype.generateSections=function(e,t,n){return i(this,void 0,Promise,(function(){return a(this,(function(r){switch(r.label){case 0:return[4,this.getSectionGenerator(e).generateDocuments(t,n)];case 1:return[2,r.sent()]}}))}))},t}(u.BaseGenerator);t.ChannelGenerator=c},1715:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)});Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalAssetPresetGenerator=void 0;var i=function(e){function t(){return e.call(this,"globalAssetPresets")||this}return o(t,e),t}(n(4457).BaseGenerator);t.GlobalAssetPresetGenerator=i},8181:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)});Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalTagTypeGenerator=void 0;var i=function(e){function t(){return e.call(this,"globalTagTypes")||this}return o(t,e),t}(n(4457).BaseGenerator);t.GlobalTagTypeGenerator=i},6707:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.MembershipGenerator=t.WatchPositionGenerator=t.PurchaseGenerator=t.GlobalTagTypeGenerator=t.GlobalAssetPresetGenerator=t.TvChannelGenerator=t.MonetizationGenerator=t.WidgetGenerator=t.SectionGenerator=t.ChannelGenerator=void 0;var i=n(7287);Object.defineProperty(t,"ChannelGenerator",{enumerable:!0,get:function(){return i.ChannelGenerator}});var a=n(9865);Object.defineProperty(t,"SectionGenerator",{enumerable:!0,get:function(){return a.SectionGenerator}}),o(n(6612),t);var u=n(4503);Object.defineProperty(t,"WidgetGenerator",{enumerable:!0,get:function(){return u.WidgetGenerator}});var s=n(227);Object.defineProperty(t,"MonetizationGenerator",{enumerable:!0,get:function(){return s.MonetizationGenerator}}),o(n(8202),t),o(n(299),t);var c=n(1128);Object.defineProperty(t,"TvChannelGenerator",{enumerable:!0,get:function(){return c.TvChannelGenerator}});var l=n(1715);Object.defineProperty(t,"GlobalAssetPresetGenerator",{enumerable:!0,get:function(){return l.GlobalAssetPresetGenerator}});var f=n(8181);Object.defineProperty(t,"GlobalTagTypeGenerator",{enumerable:!0,get:function(){return f.GlobalTagTypeGenerator}});var d=n(4425);Object.defineProperty(t,"PurchaseGenerator",{enumerable:!0,get:function(){return d.PurchaseGenerator}});var p=n(2752);Object.defineProperty(t,"WatchPositionGenerator",{enumerable:!0,get:function(){return p.WatchPositionGenerator}});var h=n(5113);Object.defineProperty(t,"MembershipGenerator",{enumerable:!0,get:function(){return h.MembershipGenerator}})},5113:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)});Object.defineProperty(t,"__esModule",{value:!0}),t.MembershipGenerator=void 0;var i=function(e){function t(t){return e.call(this,"organizations/"+t+"/memberships")||this}return o(t,e),t}(n(4457).BaseGenerator);t.MembershipGenerator=i},227:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)});Object.defineProperty(t,"__esModule",{value:!0}),t.MonetizationGenerator=void 0;var i=function(e){function t(){return e.call(this,"monetizations")||this}return o(t,e),t}(n(4457).BaseGenerator);t.MonetizationGenerator=i},299:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)});Object.defineProperty(t,"__esModule",{value:!0}),t.OrganizationGenerator=void 0;var i=function(e){function t(){return e.call(this,"organizations")||this}return o(t,e),t}(n(4457).BaseGenerator);t.OrganizationGenerator=i},4425:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)});Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseGenerator=void 0;var i=function(e){function t(t){return e.call(this,"users/"+t+"/purchases")||this}return o(t,e),t}(n(4457).BaseGenerator);t.PurchaseGenerator=i},9865:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},u=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.SectionGenerator=void 0;var s=n(4457),c=n(6612),l=function(e){function t(t){var n=e.call(this,t.ref.path+"/sections")||this;return n.videoGenerator=new c.VideoGenerator,n.channel=t,n}return o(t,e),t.prototype.clean=function(){return a(this,void 0,void 0,(function(){return u(this,(function(t){switch(t.label){case 0:return[4,e.prototype.clean.call(this)];case 1:return t.sent(),[4,this.videoGenerator.clean()];case 2:return t.sent(),[2]}}))}))},t.prototype.generateVideos=function(e,t,n){return a(this,void 0,Promise,(function(){return u(this,(function(r){return[2,this.videoGenerator.generateDocuments(t,i(i({},n),{channelRef:this.channel.ref,sectionRef:e.ref}))]}))}))},t}(s.BaseGenerator);t.SectionGenerator=l},8202:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)});Object.defineProperty(t,"__esModule",{value:!0}),t.TagGenerator=void 0;var i=function(e){function t(t){return e.call(this,t?"organizations/"+t+"/tags":"tags")||this}return o(t,e),t}(n(4457).BaseGenerator);t.TagGenerator=i},1128:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)});Object.defineProperty(t,"__esModule",{value:!0}),t.TvChannelGenerator=void 0;var i=function(e){function t(){return e.call(this,"tvChannels")||this}return o(t,e),t}(n(4457).BaseGenerator);t.TvChannelGenerator=i},6612:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)});Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVideoGenerator=t.VideoGenerator=void 0;var i=n(4457),a=function(e){function t(){return e.call(this,"videos")||this}return o(t,e),t}(i.BaseGenerator);t.VideoGenerator=a;var u=function(e){function t(){return e.call(this,"videos")||this}return o(t,e),t}(i.BaseGenerator);t.GlobalVideoGenerator=u},2752:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)});Object.defineProperty(t,"__esModule",{value:!0}),t.WatchPositionGenerator=void 0;var i=function(e){function t(t){return e.call(this,"users/"+t+"/watchPositions")||this}return o(t,e),t}(n(4457).BaseGenerator);t.WatchPositionGenerator=i},4503:function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},u=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetGenerator=void 0;var s=function(e){function t(){return e.call(this,"widgets")||this}return o(t,e),t.prototype.generateWidgets=function(e,t,n){return a(this,void 0,Promise,(function(){return u(this,(function(r){switch(r.label){case 0:return[4,this.generateDocuments(t,i(i({},n),{channelsOrder:e.map((function(e){return e.ref}))}))];case 1:return[2,r.sent()]}}))}))},t}(n(4457).BaseGenerator);t.WidgetGenerator=s},5538:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.generators=void 0,t.generators=i(n(6707))},3631:function(e,t){"use strict";var n=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.createLogger=t.Logger=void 0;var r=function(){function e(e){this.name=e,this.isEnabled=!0}return e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log.apply(this,n(["error"],e,!1))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log.apply(this,n(["info"],e,!1))},e.prototype.off=function(){this.isEnabled=!1},e.prototype.on=function(){this.isEnabled=!0},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log.apply(this,n(["warn"],e,!1))},e.prototype.forceInfo=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];console.info.apply(console,n([e.prefix+":"+this.name],t,!1))},e.prototype.log=function(t){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];e.enabled&&this.isEnabled&&console[t].apply(console,n([e.prefix+":"+this.name],r,!1))},e.enabled=!0,e.prefix="tivio",e}();t.Logger=r,t.createLogger=function(e){return new r(e)}},7060:function(e,t,n){"use strict";!function(){var t,r,o,i=0,a=[];for(r=0;r<256;r++)a[r]=(r+256).toString(16).substr(1);function u(){var e=((!t||i+16>s.BUFFER_SIZE)&&(i=0,t=s.randomBytes(s.BUFFER_SIZE)),t.slice(i,i+=16));return e[6]=15&e[6]|64,e[8]=63&e[8]|128,e}function s(){var e=u();return a[e[0]]+a[e[1]]+a[e[2]]+a[e[3]]+"-"+a[e[4]]+a[e[5]]+"-"+a[e[6]]+a[e[7]]+"-"+a[e[8]]+a[e[9]]+"-"+a[e[10]]+a[e[11]]+a[e[12]]+a[e[13]]+a[e[14]]+a[e[15]]}s.BUFFER_SIZE=4096,s.bin=u,s.clearBuffer=function(){t=null,i=0},s.test=function(e){return"string"==typeof e&&/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)},"undefined"!=typeof crypto?o=crypto:"undefined"!=typeof window&&void 0!==window.msCrypto&&(o=window.msCrypto),o=o||n(2705),e.exports=s,s.randomBytes=function(){if(o){if(o.randomBytes)return o.randomBytes;if(o.getRandomValues)return"function"!=typeof Uint8Array.prototype.slice?function(e){var t=new Uint8Array(e);return o.getRandomValues(t),Array.from(t)}:function(e){var t=new Uint8Array(e);return o.getRandomValues(t),t}}return function(e){var t,n=[];for(t=0;t<e;t++)n.push(Math.floor(256*Math.random()));return n}}()}()},2705:function(){}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n(4027)}()},741:function(e){e.exports=function(){"use strict";var e={723:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(902),t)},902:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.VAST_PROVIDERS=t.VastProvider=void 0,function(e){e.CNC_PREBID="cnc-prebid",e.ETARGET_PREBID="etarget-prebid",e.FALLBACK_HLS="fallback-hls",e.FALLBACK_MP4="fallback",e.GARAZ_TV="garaz.tv",e.GARAZ_TV_DEV="garaz.tv.dev",e.IMPRESSION_MEDIA_PREBID="impressionMedia-prebid",e.JOJ="joj",e.JOJ_AD_MANAGER_VOD_PREROLL="joj-ad-manager-vod-preroll",e.JOJ_AD_MANAGER_VOD_MIDROLL="joj-ad-manager-vod-midroll",e.JOJ_AD_MANAGER_LIVE_PREROLL="joj-ad-manager-live-preroll",e.MALL_TV="malltv",e.MALL_TV_PREBID="malltv-prebid",e.PRIMA="prima",e.TEST="test",e.TEST_VPAID="test-vpaid"}(n=t.VastProvider||(t.VastProvider={})),t.VAST_PROVIDERS=[{id:n.ETARGET_PREBID,name:"Etarget Prebid"},{id:n.MALL_TV_PREBID,name:"MALL.TV Prebid"},{id:n.IMPRESSION_MEDIA_PREBID,name:"Impression Media Prebid"},{id:n.CNC_PREBID,name:"CNC Prebid"},{id:n.MALL_TV,name:"MALL.TV"},{id:n.JOJ,name:"JOJ"},{id:n.JOJ_AD_MANAGER_VOD_PREROLL,name:"JOJ AdManager VOD Preroll"},{id:n.JOJ_AD_MANAGER_VOD_MIDROLL,name:"JOJ AdManager VOD Midroll"},{id:n.JOJ_AD_MANAGER_LIVE_PREROLL,name:"JOJ AdManager Live Preroll"},{id:n.PRIMA,name:"Prima"},{id:n.GARAZ_TV,name:"Garaz TV"},{id:n.GARAZ_TV_DEV,name:"Garaz TV dev"},{id:n.FALLBACK_MP4,name:"Tivio Prebid",development:!1},{id:n.FALLBACK_HLS,name:"Fallback (HLS)",development:!0},{id:n.TEST,name:"Test",development:!0},{id:n.TEST_VPAID,name:"Test VPAID",development:!0}]},920:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(895),t),o(n(216),t),o(n(723),t)},216:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},489:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},304:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerWrapperEventType=void 0,(n=t.PlayerWrapperEventType||(t.PlayerWrapperEventType={})).adMetadata="adMetadata",n.markers="markers"},690:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.CUSTOMER_BUILD=void 0,(n=t.CUSTOMER_BUILD||(t.CUSTOMER_BUILD={})).OKTAGON="OKTAGON",n.JOJ="JOJ",n.MALL="MALL",n.GARAZ="GARAZ",n.U_KULATEHO_STOLU="U_KULATEHO_STOLU",n.INVESTOREES="INVESTOREES",n.DVTV="DVTV"},801:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},423:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},2:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PLATFORM=void 0,(n=t.PLATFORM||(t.PLATFORM={})).MOBILE="MOBILE",n.WEB="WEB",n.TV="TV"},123:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},589:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},352:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(489),t),o(n(304),t),o(n(690),t),o(n(801),t),o(n(423),t),o(n(495),t),o(n(2),t),o(n(123),t),o(n(589),t),o(n(889),t),o(n(703),t),o(n(743),t),o(n(407),t),o(n(757),t)},889:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},495:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},703:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},743:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},407:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},757:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},255:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_ORDER_BY=t.CURRENCIES=t.languages=t.LangCode=void 0,function(e){e.CS="cs",e.DE="de",e.EN="en",e.FR="fr",e.IT="it",e.PL="pl",e.SK="sk",e.ES="es"}(n=t.LangCode||(t.LangCode={})),t.languages=Object.values(n),t.CURRENCIES=["CZK","EUR","USD"],t.DEFAULT_ORDER_BY=[{field:"created",directionStr:"desc"}]},396:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},202:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},129:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},786:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(363),t),o(n(635),t),o(n(202),t),o(n(910),t),o(n(906),t),o(n(948),t),o(n(535),t),o(n(161),t),o(n(656),t),o(n(614),t),o(n(396),t),o(n(738),t),o(n(129),t),o(n(959),t),o(n(605),t),o(n(190),t)},959:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MONETIZATION_FREQUENCY=void 0,(n=t.MONETIZATION_FREQUENCY||(t.MONETIZATION_FREQUENCY={})).ONE_TIME_PAYMENT="ONE_TIME_PAYMENT",n.DAILY="DAILY",n.WEEKLY="WEEKLY",n.MONTHLY="MONTHLY",n.ANNUALLY="ANNUALLY"},910:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},738:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},535:function(e,t){var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ROW_ITEM_TYPES=t.RowItemComponent=t.RowComponent=void 0,(o=t.RowComponent||(t.RowComponent={})).ROW="ROW",o.BANNER="BANNER",(r=t.RowItemComponent||(t.RowItemComponent={})).ROW_ITEM_PORTRAIT="ROW_ITEM_PORTRAIT",r.ROW_ITEM_LANDSCAPE="ROW_ITEM_LANDSCAPE",r.ROW_ITEM_CIRCLED="ROW_ITEM_CIRCLED",(n=t.ROW_ITEM_TYPES||(t.ROW_ITEM_TYPES={})).VIDEO="VIDEO",n.TAG="TAG",n.TV_CHANNEL="TV_CHANNEL"},161:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},605:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ALGOLIA_INDEX_NAME=void 0,(n=t.ALGOLIA_INDEX_NAME||(t.ALGOLIA_INDEX_NAME={})).VIDEOS="videos",n.VIDEOSDESC="videos_created_desc",n.TAGS="tags",n.TV_CHANNELS="tvChannels",n.USERS="users"},190:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},614:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},656:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},906:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},363:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseStatus=t.UserType=void 0,(r=t.UserType||(t.UserType={})).ORGANIZATION_USER="ORGANIZATION_USER",r.TIVIO_USER="TIVIO_USER",(n=t.PurchaseStatus||(t.PurchaseStatus={})).NEW="NEW",n.PAID="PAID",n.CANCELLED="CANCELLED",n.ERROR="ERROR",n.BLOCKED="BLOCKED"},948:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoType=t.VideoContentType=void 0,(r=t.VideoContentType||(t.VideoContentType={})).VIDEO="VIDEO",r.FILM="FILM",r.SERIES="SERIES",(n=t.VideoType||(t.VideoType={})).PLAYLIST="PLAYLIST",n.VIDEO="VIDEO",n.TV_PROGRAM="TV_PROGRAM",n.SERIES="SERIES"},635:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},895:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(786),t),o(n(352),t),o(n(255),t),o(n(620),t)},620:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})}},t={};return function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}(920)}()},96:function(e){"use strict";function t(e,t){for(var n=e.toString();n.length<t;)n="0"+n;return n}function n(e){return t(e,2)}function r(r,o){"string"!=typeof r&&(o=r,r=e.exports.ISO8601_FORMAT),o||(o=e.exports.now());var i,a,u,s,c=n(o.getDate()),l=n(o.getMonth()+1),f=n(o.getFullYear()),d=n(f.substring(2,4)),p=r.indexOf("yyyy")>-1?f:d,h=n(o.getHours()),v=n(o.getMinutes()),y=n(o.getSeconds()),g=t(o.getMilliseconds(),3),b=(i=o.getTimezoneOffset(),a=Math.abs(i),u=String(Math.floor(a/60)),s=String(a%60),1===u.length&&(u="0"+u),1===s.length&&(s="0"+s),i<0?"+"+u+s:"-"+u+s);return r.replace(/dd/g,c).replace(/MM/g,l).replace(/y{1,4}/g,p).replace(/hh/g,h).replace(/mm/g,v).replace(/ss/g,y).replace(/SSS/g,g).replace(/O/g,b)}function o(e,t,n,r){e["set"+(r?"":"UTC")+t](n)}e.exports=r,e.exports.asString=r,e.exports.parse=function(t,n,r){if(!t)throw new Error("pattern must be supplied");return function(t,n,r){var i=t.indexOf("O")<0,a=[{pattern:/y{1,4}/,regexp:"\\d{1,4}",fn:function(e,t){o(e,"FullYear",t,i)}},{pattern:/MM/,regexp:"\\d{1,2}",fn:function(e,t){o(e,"Month",t-1,i)}},{pattern:/dd/,regexp:"\\d{1,2}",fn:function(e,t){o(e,"Date",t,i)}},{pattern:/hh/,regexp:"\\d{1,2}",fn:function(e,t){o(e,"Hours",t,i)}},{pattern:/mm/,regexp:"\\d\\d",fn:function(e,t){o(e,"Minutes",t,i)}},{pattern:/ss/,regexp:"\\d\\d",fn:function(e,t){o(e,"Seconds",t,i)}},{pattern:/SSS/,regexp:"\\d\\d\\d",fn:function(e,t){o(e,"Milliseconds",t,i)}},{pattern:/O/,regexp:"[+-]\\d{3,4}|Z",fn:function(e,t){"Z"===t&&(t=0);var n=Math.abs(t),r=(t>0?-1:1)*(n%100+60*Math.floor(n/100));e.setUTCMinutes(e.getUTCMinutes()+r)}}],u=a.reduce((function(e,t){return t.pattern.test(e.regexp)?(t.index=e.regexp.match(t.pattern).index,e.regexp=e.regexp.replace(t.pattern,"("+t.regexp+")")):t.index=-1,e}),{regexp:t,index:[]}),s=a.filter((function(e){return e.index>-1}));s.sort((function(e,t){return e.index-t.index}));var c=new RegExp(u.regexp).exec(n);if(c){var l=r||e.exports.now();return s.forEach((function(e,t){e.fn(l,c[t+1])})),l}throw new Error("String '"+n+"' could not be parsed as '"+t+"'")}(t,n,r)},e.exports.now=function(){return new Date},e.exports.ISO8601_FORMAT="yyyy-MM-ddThh:mm:ss.SSS",e.exports.ISO8601_WITH_TZ_OFFSET_FORMAT="yyyy-MM-ddThh:mm:ss.SSSO",e.exports.DATETIME_FORMAT="dd MM yyyy hh:mm:ss.SSS",e.exports.ABSOLUTETIME_FORMAT="hh:mm:ss.SSS"},924:function(e,t,n){"use strict";n.r(t),n.d(t,{BrowserInfo:function(){return o},NodeInfo:function(){return i},SearchBotDeviceInfo:function(){return a},BotInfo:function(){return u},ReactNativeInfo:function(){return s},detect:function(){return d},browserName:function(){return h},parseUserAgent:function(){return v},detectOS:function(){return y},getNodeVersion:function(){return g}});var r=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},o=function(e,t,n){this.name=e,this.version=t,this.os=n,this.type="browser"},i=function(e){this.version=e,this.type="node",this.name="node",this.os=process.platform},a=function(e,t,n,r){this.name=e,this.version=t,this.os=n,this.bot=r,this.type="bot-device"},u=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},s=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},c=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,l=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],f=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function d(e){return e?v(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new s:"undefined"!=typeof navigator?v(navigator.userAgent):g()}function p(e){return""!==e&&l.reduce((function(t,n){var r=n[0],o=n[1];if(t)return t;var i=o.exec(e);return!!i&&[r,i]}),!1)}function h(e){var t=p(e);return t?t[0]:null}function v(e){var t=p(e);if(!t)return null;var n=t[0],i=t[1];if("searchbot"===n)return new u;var s=i[1]&&i[1].split(".").join("_").split("_").slice(0,3);s?s.length<3&&(s=r(r([],s,!0),function(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}(3-s.length),!0)):s=[];var l=s.join("."),f=y(e),d=c.exec(e);return d&&d[1]?new a(n,l,f,d[1]):new o(n,l,f)}function y(e){for(var t=0,n=f.length;t<n;t++){var r=f[t],o=r[0];if(r[1].exec(e))return o}return null}function g(){return"undefined"!=typeof process&&process.version?new i(process.version.slice(1)):null}},421:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){o(e,t,n[t])}))}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}n.r(t),n.d(t,{default:function(){return $}});var h={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},v=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,e),this.init(t,n)}return s(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||h,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,i({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}(),y=new v,g=function(){function e(){a(this,e),this.observers={}}return s(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(n))}))}}]),e}();function b(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function m(e){return null==e?"":""+e}function _(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function w(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function O(e,t,n){var r=w(e,t,Object);r.obj[r.k]=n}function P(e,t){var n=w(e,t),r=n.obj,o=n.k;if(r)return r[o]}function E(e,t,n){var r=P(e,n);return void 0!==r?r:P(t,n)}function S(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):S(e[r],t[r],n):e[r]=t[r]);return e}function j(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var T={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function x(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return T[e]})):e}var M="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,A=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return a(this,t),n=l(this,f(t).call(this)),M&&g.call(c(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return p(t,e),s(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split(".")),P(this.data,i)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),O(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},u=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(u=e.split("."))[1]),this.addNamespaces(t);var s=P(this.data,u)||{};r?S(s,n,o):s=i({},s,n),O(this.data,u,s),a.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?i({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(g),I={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},C={},L=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(this,t),n=l(this,f(t).call(this)),M&&g.call(c(n)),_(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,c(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=y.create("translator"),n}return p(t,e),s(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,o){var a=this;if("object"!==r(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var u=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],n),c=s.key,l=s.namespaces,f=l[l.length-1],d=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var h=n.nsSeparator||this.options.nsSeparator;return f+h+c}return c}var v=this.resolve(e,n),y=v&&v.res,g=v&&v.usedKey||c,b=v&&v.exactUsedKey||c,m=Object.prototype.toString.apply(y),_=["[object Number]","[object Function]","[object RegExp]"],w=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,O=!this.i18nFormat||this.i18nFormat.handleAsObject;if(O&&y&&"string"!=typeof y&&"boolean"!=typeof y&&"number"!=typeof y&&_.indexOf(m)<0&&("string"!=typeof w||"[object Array]"!==m)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,y,n):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(u){var P="[object Array]"===m,E=P?[]:{},S=P?b:g;for(var j in y)if(Object.prototype.hasOwnProperty.call(y,j)){var T="".concat(S).concat(u).concat(j);E[j]=this.translate(T,i({},n,{joinArrays:!1,ns:l})),E[j]===T&&(E[j]=y[j])}y=E}}else if(O&&"string"==typeof w&&"[object Array]"===m)(y=y.join(w))&&(y=this.extendTranslation(y,e,n,o));else{var x=!1,M=!1,A=void 0!==n.count&&"string"!=typeof n.count,I=t.hasDefaultValue(n),C=A?this.pluralResolver.getSuffix(d,n.count):"",L=n["defaultValue".concat(C)]||n.defaultValue;!this.isValidLookup(y)&&I&&(x=!0,y=L),this.isValidLookup(y)||(M=!0,y=c);var k=I&&L!==y&&this.options.updateMissing;if(M||x||k){if(this.logger.log(k?"updateKey":"missingKey",d,f,c,k?L:y),u){var R=this.resolve(c,i({},n,{keySeparator:!1}));R&&R.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var D=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&N&&N[0])for(var B=0;B<N.length;B++)D.push(N[B]);else"all"===this.options.saveMissingTo?D=this.languageUtils.toResolveHierarchy(n.lng||this.language):D.push(n.lng||this.language);var F=function(e,t,r){a.options.missingKeyHandler?a.options.missingKeyHandler(e,f,t,k?r:y,k,n):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(e,f,t,k?r:y,k,n),a.emit("missingKey",e,f,t,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?D.forEach((function(e){a.pluralResolver.getSuffixes(e).forEach((function(t){F([e],c+t,n["defaultValue".concat(t)]||L)}))})):F(D,c,L))}y=this.extendTranslation(y,e,n,v,o),M&&y===c&&this.options.appendNamespaceToMissingKey&&(y="".concat(f,":").concat(c)),M&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(y))}return y}},{key:"extendTranslation",value:function(e,t,n,r,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(i({},n,{interpolation:i({},this.options.interpolation,n.interpolation)}));var u,s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var c=e.match(this.interpolator.nestingRegexp);u=c&&c.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=i({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),s){var f=e.match(this.interpolator.nestingRegexp);u<(f&&f.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return o&&o[0]===r[0]&&!n.context?(a.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):a.translate.apply(a,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,p="string"==typeof d?[d]:d;return null!=e&&p&&p.length&&!1!==n.applyPostProcessor&&(e=I.handle(p,e,t,this.options&&this.options.postProcessPassResolved?i({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,u),c=s.key;n=c;var l=s.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,d=void 0!==u.context&&"string"==typeof u.context&&""!==u.context,p=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(i=e,!C["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(C["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,l=c,p=[l];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,c,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(l+i),d&&p.push(l+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(l+=i));s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}(g);function k(e){return e.charAt(0).toUpperCase()+e.slice(1)}var R=function(){function e(t){a(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=y.create("languageUtils")}return s(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=k(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=k(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=k(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),D=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],N={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function B(){var e={};return D.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:N[t.fc]}}))})),e}var F=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,e),this.languageUtils=t,this.options=n,this.logger=y.create("pluralResolver"),this.rules=B()}return s(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),V=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(this,e),this.logger=y.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return s(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:x,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?j(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?j(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?j(t.nestingPrefix):t.nestingPrefixEscaped||j("$t("),this.nestingSuffix=t.nestingSuffix?j(t.nestingSuffix):t.nestingSuffixEscaped||j(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(u.formatSeparator)<0){var o=E(t,s,e);return u.alwaysFormat?u.format(o,void 0,n):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),c=i.join(u.formatSeparator).trim();return u.format(E(t,s,a),c,n,r)};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?c(u.escape(e)):c(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=l(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=m(i));if(e=e.replace(o[0],t.safeValue(i)),t.regex.lastIndex=0,++a>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=i({},a);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,u)).replace(/'/g,'"');try{u=JSON.parse(o),t&&(u=i({},t,u))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete u.defaultValue,e}for(u.applyPostProcessor=!1,delete u.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],l=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=f.shift(),c=f,l=!0}if((r=t(s.call(this,n[1].trim(),u),u))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=m(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=c.reduce((function(e,t){return o.format(e,t,a.lng,a)}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),U=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return a(this,t),o=l(this,f(t).call(this)),M&&g.call(c(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=y.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return p(t,e),s(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),s.indexOf(t)<0&&s.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,u,s,c,l;r=n.loaded,u=i,(c=(s=w(r,[o],Object)).obj)[l=s.k]=c[l]||[],c[l].push(u),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(u,s){u&&s&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(u,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,i({},a,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(g);function G(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===r(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===r(e[2])||"object"===r(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function W(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function z(){}var H=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(a(this,t),e=l(this,f(t).call(this)),M&&g.call(c(e)),e.options=W(n),e.services={},e.logger=y,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),l(e,c(e));setTimeout((function(){e.init(n,r)}),0)}return e}return p(t,e),s(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},G(),this.options,W(t)),this.format=this.options.interpolation.format,n||(n=z),!this.options.isClone){this.modules.logger?y.init(r(this.modules.logger),this.options):y.init(null,this.options);var o=new R(this.options);this.store=new A(this.options.resources,this.options);var a=this.services;a.logger=y,a.resourceStore=this.store,a.languageUtils=o,a.pluralResolver=new F(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new V(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new U(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(a.languageDetector=r(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=r(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new L(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var s=b(),c=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),s.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),s}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};r?i(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)})),this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=b();return e||(e=this.languages),t||(t=this.options.ns),n||(n=z),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&I.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=b();this.emit("languageChanging",e);var o=function(e){var o="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,o=function e(t,o){var a;if("object"!==r(o)){for(var u=arguments.length,s=new Array(u>2?u-2:0),c=2;c<u;c++)s[c-2]=arguments[c];a=n.options.overloadTranslationOptionHandler([t,o].concat(s))}else a=i({},o);return a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns,n.t(t,a)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=b();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=b();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z,o=i({},this.options,n,{isClone:!0}),a=new t(o);return["store","services","language"].forEach((function(t){a[t]=e[t]})),a.services=i({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new L(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];a.emit.apply(a,[e].concat(n))})),a.init(o,r),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}}]),t}(g),$=new H},160:function(e,t,n){e=n.nmd(e);var r,o,i,a="[object Map]",u="[object Promise]",s="[object Set]",c="[object WeakMap]",l="[object DataView]",f=/^\[object .+?Constructor\]$/,d="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,p="object"==typeof self&&self&&self.Object===Object&&self,h=d||p||Function("return this")(),v=t&&!t.nodeType&&t,y=v&&e&&!e.nodeType&&e,g=y&&y.exports===v,b=Function.prototype,m=Object.prototype,_=h["__core-js_shared__"],w=(r=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",O=b.toString,P=m.hasOwnProperty,E=m.toString,S=RegExp("^"+O.call(P).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=g?h.Buffer:void 0,T=m.propertyIsEnumerable,x=j?j.isBuffer:void 0,M=(o=Object.keys,i=Object,function(e){return o(i(e))}),A=U(h,"DataView"),I=U(h,"Map"),C=U(h,"Promise"),L=U(h,"Set"),k=U(h,"WeakMap"),R=!T.call({valueOf:1},"valueOf"),D=W(A),N=W(I),B=W(C),F=W(L),V=W(k);function U(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!K(e)||function(e){return!!w&&w in e}(e))return!1;var t=Y(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?S:f;return t.test(W(e))}(n)?n:void 0}var G=function(e){return E.call(e)};function W(e){if(null!=e){try{return O.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(A&&G(new A(new ArrayBuffer(1)))!=l||I&&G(new I)!=a||C&&G(C.resolve())!=u||L&&G(new L)!=s||k&&G(new k)!=c)&&(G=function(e){var t=E.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?W(n):void 0;if(r)switch(r){case D:return l;case N:return a;case B:return u;case F:return s;case V:return c}return t});var z=Array.isArray;function H(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!Y(e)}var $=x||function(){return!1};function Y(e){var t=K(e)?E.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function K(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){if(H(e)&&(z(e)||"string"==typeof e||"function"==typeof e.splice||$(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&H(e)}(e)&&P.call(e,"callee")&&(!T.call(e,"callee")||"[object Arguments]"==E.call(e))}(e)))return!e.length;var t=G(e);if(t==a||t==s)return!e.size;if(R||function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||m)}(e))return!M(e).length;for(var n in e)if(P.call(e,n))return!1;return!0}},302:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(875),t),o(n(209),t)},209:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.trackedKeys=t.TizenRcKey=void 0,function(e){e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Enter="Enter",e.Back="Back",e.VolumeUp="VolumeUp",e.VolumeDown="VolumeDown",e.VolumeMute="VolumeMute",e.ChannelUp="ChannelUp",e.ChannelDown="ChannelDown",e.ChannelList="ChannelList",e.ColorF0Red="ColorF0Red",e.ColorF1Green="ColorF1Green",e.ColorF2Yellow="ColorF2Yellow",e.ColorF3Blue="ColorF3Blue",e.MediaPlayPause="MediaPlayPause",e.MediaRewind="MediaRewind",e.MediaFastForward="MediaFastForward",e.MediaPlay="MediaPlay",e.MediaPause="MediaPause",e.MediaStop="MediaStop",e.MediaRecord="MediaRecord",e.MediaTrackPrevious="MediaTrackPrevious",e.MediaTrackNext="MediaTrackNext",e.Num0="0",e.Num1="1",e.Num2="2",e.Num3="3",e.Num4="4",e.Num5="5",e.Num6="6",e.Num7="7",e.Num8="8",e.Num9="9",e.Minus="Minus",e.PreviousChannel="PreviousChannel",e.Menu="Menu",e.Tools="Tools",e.Info="Info",e.Source="Source",e.Exit="Exit",e.Caption="Caption",e["E-Manual"]="E-Manual",e["3D"]="3D",e.Extra="Extra",e.PictureSize="PictureSize",e.Soccer="Soccer",e.Teletext="Teletext",e.MTS="MTS",e.Search="Search",e.Guide="Guide"}(n||(n={})),t.TizenRcKey=n;var r=new Set(["ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Enter","Back","MediaPlayPause","MediaRewind","MediaFastForward","MediaPlay","MediaPause","MediaStop","0","1","2","3","4","5","6","7","8","9"]);t.trackedKeys=r},875:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.initializeTizen=t.isTizenVersionGreaterThan=t.getTizenVersion=t.getTizenApi=t.getKeyCode=void 0;var i=n(405),a=n(209),u=new i.Logger("tizen"),s=function(){return"undefined"==typeof tizen?null:tizen};t.getTizenApi=s;var c=function(e,t){return void 0===t&&(t=0),parseInt(null!=e?e:t)},l=function(){if(!s())return null;var e=s().systeminfo.getCapability("http://tizen.org/feature/platform.version"),t=e.split("."),n=t[0],r=t[1];return{version:e,major:c(n),minor:c(r)}};t.getTizenVersion=l,t.isTizenVersionGreaterThan=function(e){var t=l();return Boolean(t&&t.major>e)};var f=new Map,d=function(e){return r(void 0,void 0,void 0,(function(){var t,n;return o(this,(function(r){switch(r.label){case 0:t=new Promise((function(t,n){var r=e.tvinputdevice.getSupportedKeys().map((function(e){return e.name})).filter((function(e){return a.trackedKeys.has(e)}));e.tvinputdevice.registerKeyBatch(r,t,n)})),r.label=1;case 1:return r.trys.push([1,3,,4]),u.info("Initializing RC keys..."),[4,t];case 2:return r.sent(),u.info("RC keys are ready."),[3,4];case 3:return n=r.sent(),u.error("Failed to initialize listening to RC keys. This may be caused by a missing privilege http://tizen.org/privilege/tv.inputdevice.",n.message),[3,4];case 4:return[2]}}))}))};t.getKeyCode=function(e){var t;return null!==(t=f.get(e))&&void 0!==t?t:null},t.initializeTizen=function(){return r(void 0,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return(e=s())?(function(e){var t=e.tvinputdevice.getSupportedKeys();t.forEach((function(e){f.set(e.name,e.code)})),u.info("Keycode map has been initialized",t)}(e),[4,d(e)]):[2];case 1:return t.sent(),[2]}}))}))}},586:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(869),t)},869:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VideoStatus=t.VideoTranscodingStatus=t.firestoreJavascriptFilters=t.firestoreArrayFilters=t.firestoreObjectFilters=void 0;var r=n(146);Object.defineProperty(t,"VideoTranscodingStatus",{enumerable:!0,get:function(){return r.VideoTranscodingStatus}}),Object.defineProperty(t,"VideoStatus",{enumerable:!0,get:function(){return r.VideoStatus}}),t.firestoreObjectFilters={isTranscoded:{field:"transcodingStatus",operator:"==",value:r.VideoTranscodingStatus.DONE},isPublished:{field:"publishedStatus",operator:"==",value:r.VideoStatus.PUBLISHED}},t.firestoreArrayFilters={isTranscoded:Object.values(t.firestoreObjectFilters.isTranscoded),isPublished:Object.values(t.firestoreObjectFilters.isPublished)},t.firestoreJavascriptFilters={isTranscoded:function(e){return e===r.VideoTranscodingStatus.DONE},isPublished:function(e){return e===r.VideoStatus.PUBLISHED}}},945:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(554),t),o(n(961),t),o(n(480),t)},961:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useImageLoader=void 0;var r=n(156);t.useImageLoader=function(e,t){var n=(0,r.useState)(e),o=n[0],i=n[1],a=(0,r.useState)(!1),u=a[0],s=a[1];return(0,r.useEffect)((function(){if(t){var e=new Image;e.src=t,e.onload=function(){i(t),s(!0)}}}),[t]),{loadedImageSrc:o,imageIsLoaded:u}}},554:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useLoading=void 0;var r=n(156);t.useLoading=function(e){void 0===e&&(e=!1);var t=(0,r.useState)(e),n=t[0],o=t[1],i=(0,r.useRef)(n),a=function(e){o(e),i.current=e};return{loading:n,startLoading:function(){i.current||a(!0)},stopLoading:function(){i.current&&a(!1)}}}},480:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useOnChange=t.usePrevious=void 0;var r=n(156);function o(e){var t,n=(0,r.useState)([]),o=n[0],i=n[1];return(0,r.useEffect)((function(){i(o.concat(e).slice(-2))}),[e]),null!==(t=o[o.length-2])&&void 0!==t?t:null}t.usePrevious=o,t.useOnChange=function(e,t){var n=o(e);n!==e&&t(n,e)}},322:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.LanguagePicker=void 0;var a=i(n(156)),u=n(877);t.LanguagePicker=function(){var e=(0,u.useLanguageOptions)(),t=e.language,n=e.languages,r=e.selectLanguage,o=(0,a.useCallback)((function(e){r(e.target.value)}),[r]);return a.default.createElement("select",{name:"tivio-language-select","data-e2e":"tivio-language-select",value:t,onChange:o},n.map((function(e){return a.default.createElement("option",{key:e,value:e},e)})))}},877:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.useLanguage=t.useLanguageOptions=t.useT=t.useI18n=void 0;var o=n(741),i=n(156),a=n(799),u=n(71);t.useI18n=function(){return(0,i.useContext)(a.I18nContext).i18n},t.useT=function(){var e=(0,t.useI18n)();return e?e.t.bind(e):function(e){return e}},t.useLanguageOptions=function(){var e=(0,i.useContext)(u.LanguageContext);return r(r({},e),{languages:o.languages})},t.useLanguage=function(){return(0,i.useContext)(u.LanguageContext).language}},799:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.I18nContextProvider=t.I18nContext=void 0;var u=a(n(421)),s=i(n(156)),c=n(405),l=n(71),f=new c.Logger("language");t.I18nContext=(0,s.createContext)({i18n:null}),t.I18nContextProvider=function(e){var n=e.children,r=e.translations,o=(0,s.useState)({i18n:null}),i=o[0],a=o[1],c=(0,s.useContext)(l.LanguageContext).language;return(0,s.useLayoutEffect)((function(){f.info("initializing language",c),function(e,t){return new Promise((function(n,r){n(u.default.createInstance({lng:t,resources:e},(function(e){e&&r(e)})))}))}(r,c).then((function(e){a({i18n:e})}))}),[]),(0,s.useLayoutEffect)((function(){i.i18n&&(f.info("changing language",c),i.i18n.changeLanguage(c),a({i18n:i.i18n}))}),[c]),s.default.createElement(t.I18nContext.Provider,{value:i},n)}},250:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(877),t),o(n(799),t),o(n(71),t),o(n(164),t),o(n(322),t)},71:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageContextProvider=t.LanguageContext=void 0;var a=n(741),u=i(n(156)),s=n(405),c=n(116),l=new s.Logger("language");t.LanguageContext=(0,u.createContext)({language:a.LangCode.EN,selectLanguage:function(){}}),t.LanguageContextProvider=function(e){var n=e.language,r=e.children,o=(0,u.useState)((0,c.normalizeLanguage)(n)),i=o[0],a=o[1];(0,u.useLayoutEffect)((function(){var e=(0,c.normalizeLanguage)(n);a(e),l.info("Setting language (passed as prop): "+e+" (before normalization: "+n+")")}),[n]);var s=(0,u.useCallback)((function(e){l.info("Setting language: "+e),a(e)}),[]);return u.default.createElement(t.LanguageContext.Provider,{value:{language:i,selectLanguage:s}},r)}},164:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},116:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeLanguage=void 0;var r=n(741),o=new(n(405).Logger)("i18n");t.normalizeLanguage=function(e){if(null==e)return r.LangCode.EN;var t=e.toLocaleLowerCase();return"cs"===t||"cz"===t||"cze"===t||"ces"===t?r.LangCode.CS:"sk"===t||"slk"===t||"slo"===t?r.LangCode.SK:("en"===t||"eng"===t||o.warn("Unrecognized language (input: "+e+"). Falling back to ENG"),r.LangCode.EN)}},368:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageContextProviderProps=t.I18nContextProviderProps=t.LanguagePicker=t.useLanguageOptions=t.I18nContextProvider=t.LanguageContextProvider=t.useT=t.VideoStatus=t.VideoTranscodingStatus=t.ObjectFilter=t.firestoreObjectFilters=t.firestoreJavascriptFilters=t.firestoreArrayFilters=t.IRefsPagination=t.PaginationInterface=t.PaginationOptions=t.Pagination=t.RefsPagination=void 0;var i=n(21),a=n(118);Object.defineProperty(t,"RefsPagination",{enumerable:!0,get:function(){return a.RefsPagination}}),Object.defineProperty(t,"Pagination",{enumerable:!0,get:function(){return a.Pagination}}),Object.defineProperty(t,"PaginationOptions",{enumerable:!0,get:function(){return a.PaginationOptions}}),Object.defineProperty(t,"PaginationInterface",{enumerable:!0,get:function(){return a.PaginationInterface}}),Object.defineProperty(t,"IRefsPagination",{enumerable:!0,get:function(){return a.IRefsPagination}}),o(n(945),t),o(n(405),t);var u=n(586);Object.defineProperty(t,"firestoreArrayFilters",{enumerable:!0,get:function(){return u.firestoreArrayFilters}}),Object.defineProperty(t,"firestoreJavascriptFilters",{enumerable:!0,get:function(){return u.firestoreJavascriptFilters}}),Object.defineProperty(t,"firestoreObjectFilters",{enumerable:!0,get:function(){return u.firestoreObjectFilters}}),Object.defineProperty(t,"ObjectFilter",{enumerable:!0,get:function(){return u.ObjectFilter}}),Object.defineProperty(t,"VideoTranscodingStatus",{enumerable:!0,get:function(){return u.VideoTranscodingStatus}}),Object.defineProperty(t,"VideoStatus",{enumerable:!0,get:function(){return u.VideoStatus}});var s=n(250);Object.defineProperty(t,"useT",{enumerable:!0,get:function(){return s.useT}}),Object.defineProperty(t,"LanguageContextProvider",{enumerable:!0,get:function(){return s.LanguageContextProvider}}),Object.defineProperty(t,"I18nContextProvider",{enumerable:!0,get:function(){return s.I18nContextProvider}}),Object.defineProperty(t,"useLanguageOptions",{enumerable:!0,get:function(){return s.useLanguageOptions}}),Object.defineProperty(t,"LanguagePicker",{enumerable:!0,get:function(){return s.LanguagePicker}}),Object.defineProperty(t,"I18nContextProviderProps",{enumerable:!0,get:function(){return s.I18nContextProviderProps}}),Object.defineProperty(t,"LanguageContextProviderProps",{enumerable:!0,get:function(){return s.LanguageContextProviderProps}}),o(n(302),t),(0,i.polyfill)()},507:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Pagination=void 0;var i=n(259),a=(0,n(405).createLogger)("Pagination");t.Pagination=function(e,t,n){var u,s,c=this;this.query=e,this.creator=t,this.options=n,this.lastDocumentSnapshot=null,this.items=[],this.hasNextPage=!0,this.loading=!1,this.fetchMore=function(){c.loading?a.info("loading ..."):c.hasNextPage?(a.info("fetch more"),c.fetchData()):a.info("no more data")},this.fetchData=function(){return r(c,void 0,void 0,(function(){var e,t,n,r,i;return o(this,(function(o){switch(o.label){case 0:a.info("fetch data"),o.label=1;case 1:return o.trys.push([1,3,4,5]),this.startLoading(),[4,this.makeQuery()];case 2:return e=o.sent(),a.info("fetched "+e.size+" docs, going to create entities"),this.lastDocumentSnapshot=this.getLastSnapshotFromQuerySnapshot(e),t=this.getQuerySnapshotDocs(e),n=this.querySnapshotToEntities(t),r=this.items.concat(n),this.setItems(r),[3,5];case 3:return i=o.sent(),a.error(i),[3,5];case 4:return this.stopLoading(),[7];case 5:return[2]}}))}))},this.querySnapshotToEntities=function(e){return e.map((function(e){return c.creator(e.ref,e.data())}))},this.makeQuery=function(){return r(c,void 0,void 0,(function(){var e;return o(this,(function(t){return e=this.query,this.extraLimit?this.lastDocumentSnapshot?(a.info("making query with limit",this.extraLimit),e=e.limit(this.extraLimit).startAfter(this.lastDocumentSnapshot)):(a.info("making first query with limit",this.extraLimit),e=e.limit(this.extraLimit)):(a.info("fetch all documents without pagination"),this.setHasNextPage(!1)),[2,e.get()]}))}))},this.getLastSnapshotFromQuerySnapshot=function(e){var t=e.size;if(c.setHasNextPage(!!c.limit&&t>c.limit),c.hasNextPage){var n=c.getQuerySnapshotDocs(e);return n[n.length-1]}return null},this.getQuerySnapshotDocs=function(e){var t=e.docs;return c.hasNextPage&&t.pop(),t},this.startLoading=function(){c.loading=!0},this.stopLoading=function(){c.loading=!1},this.addItemToEnd=function(e){c.hasNextPage?a.info("ignoring of adding an item to pagination locally because not all items are loaded"):(a.info("add item to end"),c.setItems(c.items.concat([e])))},this.addItemToStart=function(e){a.info("add item to start"),c.setItems([e].concat(c.items))},this.setItems=function(e){c.items=e},this.setHasNextPage=function(e){c.hasNextPage=e},(0,i.makeObservable)(this,{items:i.observable,loading:i.observable,hasNextPage:i.observable,setItems:i.action,setHasNextPage:i.action,startLoading:i.action,stopLoading:i.action}),(null==n?void 0:n.noLimit)?(this.limit=null,this.extraLimit=null):(this.limit=null!==(s=null===(u=this.options)||void 0===u?void 0:u.limit)&&void 0!==s?s:10,this.extraLimit=this.limit+1),this.fetchData()}},118:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(177),t),o(n(507),t)},177:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RefsPagination=void 0;var i=n(259),a=n(405),u=(0,a.createLogger)("RefsPagination"),s=function(){function e(e,t,n,s,c){var l=this;if(void 0===n&&(n=!0),void 0===s&&(s=10),void 0===c&&(c=!0),this.refs=e,this.creator=t,this.initialized=n,this.limit=s,this.items=[],this.currentItems=[],this.currentPage=0,this.hasNextPage=!0,this.loading=!1,this.error=null,this.fetchMore=function(){return r(l,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return this.isLoading?[2]:(this.currentPage++,[4,this.fetchData()]);case 1:return e.sent(),[2]}}))}))},this.fetchData=function(){return r(l,void 0,void 0,(function(){var e,t,n,i,s,c,l=this;return o(this,(function(f){switch(f.label){case 0:if(this.isLoading||!this.hasNextPage)return[2];f.label=1;case 1:return f.trys.push([1,4,5,6]),u.info("fetchData"),e=this.currentPage*this.limit,t=e+this.limit,0!==this.items.slice(e,t).length?[3,3]:(n=this.refs.slice(e,t),t>=this.refs.length&&(this.hasNextPage=!1),this.startLoading(),[4,Promise.all(n.map((function(e){return r(l,void 0,void 0,(function(){var t,n;return o(this,(function(r){switch(r.label){case 0:return[4,e.get()];case 1:return t=r.sent(),(n=t.data())?[2,this.creator(e,n)]:[2,null]}}))}))})))]);case 2:return i=f.sent(),s=i.filter(a.notEmptyFilter),u.info("fetched "+s.length+" items of "+n.length+" refs"),this.endLoading(),this.setCurrentItems=s,this.setItems=this.items.concat(s),[3,3];case 3:return[3,6];case 4:return c=f.sent(),u.error(c),this.setError=c,[3,6];case 5:return this.endLoading(),[7];case 6:return[2]}}))}))},this.addItemToStart=function(e,t){l.refs=l.refs.concat([t]),l.getItems.unshift(e)},this.addItem=function(e,t){l.refs.length===l.items.length&&(l.setItems=l.items.concat([e])),l.refs=l.refs.concat([t])},this.getItem=function(e){return r(l,void 0,void 0,(function(){var t,n,r;return o(this,(function(o){switch(o.label){case 0:return(t=this.refs.find((function(t){return t.id===e})))?[4,t.get()]:[3,2];case 1:return n=o.sent(),(r=n.data())?[2,this.creator(n.ref,r)]:[3,3];case 2:throw new Error("ref-not-found");case 3:return[2]}}))}))},this.limit>1e3)throw new Error("Limit cannot be greater than 1000");c&&this.fetchData(),(0,i.makeObservable)(this,{items:i.observable,refs:i.observable,loading:i.observable,error:i.observable,hasNextPage:i.observable})}return e.prototype.startLoading=function(){this.setLoading=!0},e.prototype.endLoading=function(){this.setLoading=!1},Object.defineProperty(e.prototype,"getError",{get:function(){return this.error},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getCurrentItems",{get:function(){return this.currentItems},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getItems",{get:function(){return this.items},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getRefs",{get:function(){return this.refs},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getHasNextPage",{get:function(){return this.hasNextPage},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.loading},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getItemsCount",{get:function(){return this.refs.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInitialized",{get:function(){return this.initialized},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setItems",{set:function(e){this.items=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setLoading",{set:function(e){this.loading=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setCurrentItems",{set:function(e){this.currentItems=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setIsInitialized",{set:function(e){this.initialized=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setError",{set:function(e){this.error=e},enumerable:!1,configurable:!0}),e}();t.RefsPagination=s},21:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polyfill=void 0,t.polyfill=function(){"object"==typeof window&&"object"==typeof document&&window.addEventListener("load",(function(){var e=document.createElement("script");e.src="https://polyfill.io/v3/polyfill.min.js?features=String.prototype.normalize",e.id="tivio-polyfill-string-prototype-normalize",document.head.appendChild(e)}))}},122:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addOrReplace=t.replaceWithoutOverwritingValues=t.chunkArray=t.uniqueFilter=t.notEmptyFilter=void 0,t.notEmptyFilter=function(e){return!!e},t.uniqueFilter=function(e,t,n){return n.indexOf(e)===t},t.chunkArray=function(e,t){var n,r=e.length,o=[];for(n=0;n<r;n+=t){var i=e.slice(n,n+t);o.push(i)}return o},t.replaceWithoutOverwritingValues=function(e,t,n){var r=[];return t.forEach((function(t){var o=e.find((function(e){return n(t,e)}));r.push(null!=o?o:t)})),r},t.addOrReplace=function(e,t,n){void 0===n&&(n=function(e,t){return e===t});var r=e.findIndex((function(e){return n(t,e)}));return-1!==r?e[r]=t:e.push(t),e}},359:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Cache=void 0;var n=function(){function e(e){var t,n;this.enabled=!0,this.map=new Map,this.max=null!==(t=null==e?void 0:e.max)&&void 0!==t?t:1e3,this.convertKey=null!==(n=null==e?void 0:e.convertKey)&&void 0!==n?n:function(e){return e}}return e.prototype.set=function(e,t){this.enabled&&(this.map.size>this.max&&this.map.clear(),this.map.set(this.convertKey(e),t))},e.prototype.get=function(e){var t;return null!==(t=this.map.get(this.convertKey(e)))&&void 0!==t?t:null},e.prototype.has=function(e){return!!this.enabled&&this.map.has(this.convertKey(e))},e.prototype.getSize=function(){return this.map.size},e.prototype.disable=function(){this.enabled=!1},e}();t.Cache=n},530:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.onceAsync=t.once=void 0,t.once=function(e){var t=!1,n=null;return function(){return t||(n=e(),t=!0),n}},t.onceAsync=function(e){var t=!1,o=null;return function(){return n(void 0,void 0,void 0,(function(){return r(this,(function(n){switch(n.label){case 0:return t?[2,o]:(t=!0,[4,e()]);case 1:return[2,o=n.sent()]}}))}))}}},742:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.stringComparator=t.booleanComparator=t.numberComparator=t.SortDirection=void 0,function(e){e.ASC="ASC",e.DESC="DESC"}(n=t.SortDirection||(t.SortDirection={})),t.numberComparator=function(e,t,r){return void 0===r&&(r=n.ASC),r===n.ASC?e-t:t-e},t.booleanComparator=function(e,t){return e&&t?0:e&&!t?-1:!e&&t?1:0},t.stringComparator=function(e,t){return e<t?-1:1}},569:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(742),t),o(n(900),t),o(n(482),t)},900:function(e,t,n){"use strict";var r,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.strategiesComparator=t.expirationComparator=t.placementTypeComparator=t.PLACEMENT_TYPE_PRIORITIES=void 0;var i=n(146),a=o(n(160)),u=n(742);t.PLACEMENT_TYPE_PRIORITIES=((r={})[i.MonetizationPlacementType.TV_CHANNEL]=4,r[i.MonetizationPlacementType.VIDEO]=3,r[i.MonetizationPlacementType.CONDITION]=2,r[i.MonetizationPlacementType.SECTION]=1,r[i.MonetizationPlacementType.CHANNEL]=0,r),t.placementTypeComparator=function(e,n,r){return void 0===r&&(r=u.SortDirection.DESC),(0,u.numberComparator)(t.PLACEMENT_TYPE_PRIORITIES[e.placementType],t.PLACEMENT_TYPE_PRIORITIES[n.placementType],r)},t.expirationComparator=function(e,t,n){var r,o;return void 0===n&&(n=u.SortDirection.ASC),(0,u.numberComparator)(null!==(r=e.expirationDaysSincePublished)&&void 0!==r?r:Number.MAX_VALUE,null!==(o=t.expirationDaysSincePublished)&&void 0!==o?o:Number.MAX_VALUE,n)},t.strategiesComparator=function(e,t){return(0,u.numberComparator)((0,a.default)(e.strategies)?0:1,(0,a.default)(t.strategies)?0:1,u.SortDirection.ASC)}},482:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.globalsFirstRestAlphabeticallyComparator=t.alphabeticComparator=t.sortAlphabetically=void 0;var r=n(742);t.sortAlphabetically=function(e){return e.sort((function(e,t){return(0,r.stringComparator)(e.name,t.name)}))},t.alphabeticComparator=function(e,t){return(0,r.stringComparator)(e.name,t.name)},t.globalsFirstRestAlphabeticallyComparator=function(e,t){var n,o;return(0,r.booleanComparator)(null!==(n=e.isGlobal)&&void 0!==n&&n,null!==(o=t.isGlobal)&&void 0!==o&&o)||(0,r.stringComparator)(e.name,t.name)}},484:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.overrideDevice=t.isWebsite=t.isWebos=t.isTizen=t.isSmartTv=t.isSafari=t.isReactNative=t.isNewArris=t.isMobileBrowser=t.isLocalStorageEnabled=t.isIos=t.isIndexedDbSupported=t.isCookiesEnabled=t.isBrowserCompatible=t.isArris=t.getDeviceInfo=t.getArrisModelNumber=t.device=void 0;var r=n(741),o=n(924),i="undefined",a=function(){return typeof window!==i&&typeof document!==i};t.isBrowserCompatible=a,t.isMobileBrowser=function(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),t},t.isReactNative=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product},t.isCookiesEnabled=function(){if(!a()||"string"!=typeof document.cookie)return!1;document.cookie="tiviocookietest=1";var e=-1!=document.cookie.indexOf("tiviocookietest=");return document.cookie="tiviocookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e},t.isLocalStorageEnabled=function(){if(!a()||typeof window.localStorage===i)return!1;var e="tiviolocalstoragetest";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}};var u=function(){return a()&&typeof window.tizen!==i};t.isTizen=u;var s=function(){return a()&&typeof window.webOS!==i};t.isWebos=s;var c=function(){var e;return"arris"===(null===(e=f.info)||void 0===e?void 0:e.type)||a()&&typeof window.toi!==i};t.isArris=c;var l=function(){return u()||s()||c()};t.isSmartTv=l,t.isWebsite=function(){return!!a()&&(window.tivioDeviceOverride?"web"===window.tivioDeviceOverride:!l())},t.isIndexedDbSupported=function(){return window&&null!=window.indexedDB&&null!=window.IDBCursor&&null!=window.IDBCursorWithValue&&null!=window.IDBDatabase&&null!=window.IDBFactory&&null!=window.IDBIndex&&null!=window.IDBKeyRange&&null!=window.IDBObjectStore&&null!=window.IDBOpenDBRequest&&null!=window.IDBRequest&&null!=window.IDBTransaction&&null!=window.IDBVersionChangeEvent},t.isSafari=function(){var e=(0,o.detect)();return"safari"==(null==e?void 0:e.name)},t.isIos=function(){var e=(0,o.detect)();return"iOS"==(null==e?void 0:e.os)};var f={info:null};t.device=f,t.overrideDevice=function(e){f.info=e};var d=function(e){var t=e.replace("VIP",""),n=parseInt(t);return Number.isFinite(n)?n:null};t.getArrisModelNumber=d,t.getDeviceInfo=function(){if(f.info)switch(f.info.type){case"arris":return{os:"Arris",platform:r.PLATFORM.TV};case"react-native":if(!f.info.os)break;return{os:f.info.os,version:f.info.osVersion,platform:f.info.platform};default:console.warn("Unexpected device info object "+JSON.stringify(f.info))}if(u())return{os:"Tizen",platform:r.PLATFORM.TV};if(s())return{os:"webOS",platform:r.PLATFORM.TV};if(c())return{os:"Arris",platform:r.PLATFORM.TV};if(null===navigator||void 0===navigator?void 0:navigator.userAgent){var e=(0,o.detectOS)(navigator.userAgent);return e?{os:e,platform:r.PLATFORM.WEB}:void 0}},t.isNewArris=function(e){var t;if(!e)return!1;if("arris"!==e.type)return!1;var n=d(null!==(t=e.model)&&void 0!==t?t:"");return null!=n&&n>=4e3}},174:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.injectScriptToHead=t.injectScriptsToHead=void 0;var o=function(e){return new Promise((function(t,n){var r=document.createElement("script");r.type="text/javascript",r.src=e,r.onload=function(){return t()},r.onabort=function(){return n()},document.getElementsByTagName("head")[0].appendChild(r)}))};t.injectScriptToHead=o,t.injectScriptsToHead=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n(void 0,void 0,Promise,(function(){return r(this,(function(t){return[2,Promise.all(e.map(o))]}))}))}},447:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeAsNewEventLoopJob=void 0,t.executeAsNewEventLoopJob=function(e){setTimeout(e)}},479:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatCurrency=t.formatEpisode=t.toTwoPlaces=t.msToMMSS=t.msToMinutesString=void 0;var n=function(e){return e<10?"0"+e:""+e};t.toTwoPlaces=n,t.formatEpisode=function(e,t){return"S"+n(e)+"E"+n(t)},t.formatCurrency=function(e){switch(e){case"CZK":return"Kč";case"EUR":return"€";case"USD":return"$"}};var r=function(e){var t=Math.floor(e/1e3);return{minutes:Math.floor(t/60),seconds:t%60}};t.msToMinutesString=function(e){return r(e).minutes+" min"},t.msToMMSS=function(e){var t=r(e),o=t.minutes,i=t.seconds;return o+":"+n(i)}},513:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.preloadImages=t.preloadImage=void 0,t.preloadImage=function(e){return new Promise((function(t,n){var r=new Image;r.src=e,r.onload=t,r.onerror=function(){n("image failed to load (uri:"+e+")")}}))},t.preloadImages=function(e){return Promise.all(e.map(t.preloadImage))}},405:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(122),t),o(n(783),t),o(n(40),t),o(n(359),t),o(n(569),t),o(n(513),t),o(n(479),t),o(n(647),t),o(n(447),t),o(n(530),t),o(n(484),t),o(n(893),t),o(n(341),t),o(n(174),t)},783:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=t.createLogger=void 0;var o=n(484),i=function(){function e(e){this.name=e,this._isEnabled=!0}return e.initialize=function(){(0,o.isBrowserCompatible)()&&(window.onerror=function(t){var n,r;"string"==typeof t?null===(n=e.onLog)||void 0===n||n.call(e,"error",{text:[t]}):null===(r=e.onLog)||void 0===r||r.call(e,"error",{classic:[t]})})},e.shouldUseLegacyLogger=function(){return e.legacy||(0,o.isArris)()},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.safeLog("error",{classic:e})},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.safeLog("warn",{classic:e})},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.safeLog("info",{classic:e})},e.prototype.safeError=function(e){this.safeLog("error",e)},e.prototype.safeWarn=function(e){this.safeLog("warn",e)},e.prototype.safeInfo=function(e){this.safeLog("info",e)},e.prototype.safeLog=function(t,n){var r,o,i,a;this._isEnabled&&e.onLog&&(a=null!==(r=n.text)&&void 0!==r?r:n.classic)&&e.onLog(t,n),this.isEnabled()&&(e.shouldUseLegacyLogger()?(a=null!==(o=n.text)&&void 0!==o?o:(null!==(i=n.classic)&&void 0!==i?i:[]).map((function(e){return null==e?"falsy":e})).map((function(e){return JSON.stringify(e)}))).length>0&&this.legacyConsoleLogMessages(t,a):n.classic&&n.classic.length>0?this.log(t,n.classic):n.text&&n.text.length>0&&this.log(t,n.text))},e.prototype.off=function(){this._isEnabled=!1},e.prototype.on=function(){this._isEnabled=!0},e.prototype.forceInfo=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];console.info.apply(console,r([e.prefix+":"+this.name],t,!1))},e.prototype.isEnabled=function(){return e.enabled&&this._isEnabled},e.prototype.log=function(e,t){console[e].apply(console,r([this.getPrefix()],t,!1))},e.prototype.legacyConsoleLogMessages=function(e,t){var n=t.join(", ");console[e](this.getPrefix()+" "+n)},e.prototype.getPrefix=function(){return e.prefix+":"+this.name},e.enabled=!0,e.legacy=!1,e.onLog=null,e.prefix="tivio",e}();t.Logger=i,i.initialize(),t.createLogger=function(e){return new i(e)}},893:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keepNonNegative=t.getPercentOf=t.isClose=t.toPercent=t.safeParseInt=t.round=t.random=t.intervalContainsPoint=t.intervalContains=t.clampPercent=t.clamp=void 0,t.random=function(e){return Math.round(Math.random()*e)},t.safeParseInt=function(e,t){return void 0===t&&(t=0),parseInt(null!=e?e:t)};var n=function(e,t,n){return Math.min(Math.max(e,t),n)};t.clamp=n;var r=function(e){return n(e,0,100)};t.clampPercent=r,t.toPercent=function(e){return r(Math.round(100*e))},t.round=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},t.intervalContains=function(e,t){return e.from<t.from&&t.to<e.to},t.intervalContainsPoint=function(e,t){return e.from<=t&&t<=e.to},t.isClose=function(e,t,n){return Math.abs(e-t)<=n},t.getPercentOf=function(e,t){var n=Math.round(e/t*100);return isFinite(n)?r(n):null},t.keepNonNegative=function(e){return Math.max(0,e)}},341:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToInteger=void 0,t.stringToInteger=function(e){return e&&Number.isInteger(Number(e))?Number(e):null}},647:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toSnakeCase=t.toKebabCase=t.removeAccents=t.normalizeText=t.capitalizeText=void 0;var n=function(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")};t.removeAccents=n;var r=function(e){return e.trim().toLocaleLowerCase().replace(/\s+/g,"_").replace("-","_")};t.toSnakeCase=r;var o=function(e){return e.trim().toLocaleLowerCase().replace(/\s+/g,"-").replace("_","-")};t.toKebabCase=o,t.normalizeText=function(e,t){void 0===t&&(t="snake-case");var i=n(e);return"snake-case"===t?r(i):o(i)},t.capitalizeText=function(e){return(null==e?void 0:e.length)?e.charAt(0).toUpperCase()+e.substr(1).toLowerCase():""}},40:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.secondsToMilliseconds=t.getRelativeTime=t.getDuration=t.getMinsSecsHours=t.getMinsSecs=t.twoPlaces=t.getHours=t.getMins=t.getSecs=t.parseCzechDate=t.isInThePast=t.addSeconds=t.addMs=t.addMinutes=t.addHours=t.addDays=void 0;var a=i(n(96));function u(e,t){return s(e,60*t)}function s(e,t){return l(e,60*t)}function c(e,t){return new Date(e.getTime()+t)}function l(e,t){return c(e,1e3*t)}function f(e,t){var n=null!=e?Math.floor(e/1e3):0;return t?n%60:n}function d(e,t){var n=null!=e?Math.floor(f(e)/60):0;return t?n%60:n}function p(e,t){var n=null!=e?Math.floor(d(e)/60):0;return t?n%24:n}function h(e){return e>=10?e:"0"+e}t.addDays=function(e,t){return u(e,24*t)},t.addHours=u,t.addMinutes=s,t.addMs=c,t.addSeconds=l,t.isInThePast=function(e){return e<new Date},t.parseCzechDate=function(e){var t=a.parse("dd.MM.yyyy hh:mm",e),n=1e3*t.getSeconds()+t.getMilliseconds();return new Date(t.getTime()-n)},t.getSecs=f,t.getMins=d,t.getHours=p,t.twoPlaces=h,t.getMinsSecs=function(e){if(e<0)return{mins:0,secs:0,text:"",textWordy:""};var t=d(e),n=f(e,!0),r="";return n&&(r=n+" s"),t&&(r=t+" min"+(r.length>0?" "+r:"")),{mins:t,secs:n,text:t+":"+h(n),textWordy:r}},t.getMinsSecsHours=function(e){var t=p(e),n=d(e,!0),r=f(e,!0),o=n+":"+h(r);return t>0&&(4===o.length&&(o="0"+o),o=t+":"+o),{hours:t,mins:n,secs:r,text:o}},t.getDuration=function(e){return null==e||e<0?null:Math.round(e/60)+" MIN"},t.getRelativeTime=function(e){if(null==e)return"";var t=((new Date).getTime()-e.getTime())/36e5,n=Math.floor(t);if(n<1)return"";if(n<24)return n+" HOURS AGO";var r=t/24,o=Math.floor(r);if(o<7)return o+" DAYS AGO";var i=r/7,a=Math.floor(i);if(a<5)return a+" WEEKS AGO";var u=r/30,s=Math.floor(u);if(s<12)return s+" MONTHS AGO";var c=r/365;return Math.ceil(c)+" YEARS AGO"},t.secondsToMilliseconds=function(e){return null==e?null:1e3*Number(e)}},259:function(e){"use strict";e.exports=r},156:function(e){"use strict";e.exports=o}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return 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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),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})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n(368)}())},8741:function(e){e.exports=function(){"use strict";var e={723:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(902),t)},902:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.VAST_PROVIDERS=t.VastProvider=void 0,function(e){e.CNC_PREBID="cnc-prebid",e.ETARGET_PREBID="etarget-prebid",e.FALLBACK_HLS="fallback-hls",e.FALLBACK_MP4="fallback",e.GARAZ_TV="garaz.tv",e.GARAZ_TV_DEV="garaz.tv.dev",e.IMPRESSION_MEDIA_PREBID="impressionMedia-prebid",e.JOJ="joj",e.JOJ_AD_MANAGER_VOD_PREROLL="joj-ad-manager-vod-preroll",e.JOJ_AD_MANAGER_VOD_MIDROLL="joj-ad-manager-vod-midroll",e.JOJ_AD_MANAGER_LIVE_PREROLL="joj-ad-manager-live-preroll",e.MALL_TV="malltv",e.MALL_TV_PREBID="malltv-prebid",e.PRIMA="prima",e.TEST="test",e.TEST_VPAID="test-vpaid"}(n=t.VastProvider||(t.VastProvider={})),t.VAST_PROVIDERS=[{id:n.ETARGET_PREBID,name:"Etarget Prebid"},{id:n.MALL_TV_PREBID,name:"MALL.TV Prebid"},{id:n.IMPRESSION_MEDIA_PREBID,name:"Impression Media Prebid"},{id:n.CNC_PREBID,name:"CNC Prebid"},{id:n.MALL_TV,name:"MALL.TV"},{id:n.JOJ,name:"JOJ"},{id:n.JOJ_AD_MANAGER_VOD_PREROLL,name:"JOJ AdManager VOD Preroll"},{id:n.JOJ_AD_MANAGER_VOD_MIDROLL,name:"JOJ AdManager VOD Midroll"},{id:n.JOJ_AD_MANAGER_LIVE_PREROLL,name:"JOJ AdManager Live Preroll"},{id:n.PRIMA,name:"Prima"},{id:n.GARAZ_TV,name:"Garaz TV"},{id:n.GARAZ_TV_DEV,name:"Garaz TV dev"},{id:n.FALLBACK_MP4,name:"Tivio Prebid",development:!1},{id:n.FALLBACK_HLS,name:"Fallback (HLS)",development:!0},{id:n.TEST,name:"Test",development:!0},{id:n.TEST_VPAID,name:"Test VPAID",development:!0}]},920:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(895),t),o(n(216),t),o(n(723),t)},216:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},489:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},304:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerWrapperEventType=void 0,(n=t.PlayerWrapperEventType||(t.PlayerWrapperEventType={})).adMetadata="adMetadata",n.markers="markers"},690:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.CUSTOMER_BUILD=void 0,(n=t.CUSTOMER_BUILD||(t.CUSTOMER_BUILD={})).OKTAGON="OKTAGON",n.JOJ="JOJ",n.MALL="MALL",n.GARAZ="GARAZ",n.U_KULATEHO_STOLU="U_KULATEHO_STOLU",n.INVESTOREES="INVESTOREES",n.DVTV="DVTV"},801:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},423:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},2:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PLATFORM=void 0,(n=t.PLATFORM||(t.PLATFORM={})).MOBILE="MOBILE",n.WEB="WEB",n.TV="TV"},123:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},589:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},352:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(489),t),o(n(304),t),o(n(690),t),o(n(801),t),o(n(423),t),o(n(495),t),o(n(2),t),o(n(123),t),o(n(589),t),o(n(889),t),o(n(703),t),o(n(743),t),o(n(407),t),o(n(757),t)},889:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},495:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},703:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},743:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},407:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},757:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},255:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_ORDER_BY=t.CURRENCIES=t.languages=t.LangCode=void 0,function(e){e.CS="cs",e.DE="de",e.EN="en",e.FR="fr",e.IT="it",e.PL="pl",e.SK="sk",e.ES="es"}(n=t.LangCode||(t.LangCode={})),t.languages=Object.values(n),t.CURRENCIES=["CZK","EUR","USD"],t.DEFAULT_ORDER_BY=[{field:"created",directionStr:"desc"}]},396:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},202:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},129:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},786:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(363),t),o(n(635),t),o(n(202),t),o(n(910),t),o(n(906),t),o(n(948),t),o(n(535),t),o(n(161),t),o(n(656),t),o(n(614),t),o(n(396),t),o(n(738),t),o(n(129),t),o(n(959),t),o(n(605),t),o(n(190),t)},959:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MONETIZATION_FREQUENCY=void 0,(n=t.MONETIZATION_FREQUENCY||(t.MONETIZATION_FREQUENCY={})).ONE_TIME_PAYMENT="ONE_TIME_PAYMENT",n.DAILY="DAILY",n.WEEKLY="WEEKLY",n.MONTHLY="MONTHLY",n.ANNUALLY="ANNUALLY"},910:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},738:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},535:function(e,t){var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ROW_ITEM_TYPES=t.RowItemComponent=t.RowComponent=void 0,(o=t.RowComponent||(t.RowComponent={})).ROW="ROW",o.BANNER="BANNER",(r=t.RowItemComponent||(t.RowItemComponent={})).ROW_ITEM_PORTRAIT="ROW_ITEM_PORTRAIT",r.ROW_ITEM_LANDSCAPE="ROW_ITEM_LANDSCAPE",r.ROW_ITEM_CIRCLED="ROW_ITEM_CIRCLED",(n=t.ROW_ITEM_TYPES||(t.ROW_ITEM_TYPES={})).VIDEO="VIDEO",n.TAG="TAG",n.TV_CHANNEL="TV_CHANNEL"},161:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},605:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ALGOLIA_INDEX_NAME=void 0,(n=t.ALGOLIA_INDEX_NAME||(t.ALGOLIA_INDEX_NAME={})).VIDEOS="videos",n.VIDEOSDESC="videos_created_desc",n.TAGS="tags",n.TV_CHANNELS="tvChannels",n.USERS="users"},190:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},614:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},656:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},906:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},363:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseStatus=t.UserType=void 0,(r=t.UserType||(t.UserType={})).ORGANIZATION_USER="ORGANIZATION_USER",r.TIVIO_USER="TIVIO_USER",(n=t.PurchaseStatus||(t.PurchaseStatus={})).NEW="NEW",n.PAID="PAID",n.CANCELLED="CANCELLED",n.ERROR="ERROR",n.BLOCKED="BLOCKED"},948:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoType=t.VideoContentType=void 0,(r=t.VideoContentType||(t.VideoContentType={})).VIDEO="VIDEO",r.FILM="FILM",r.SERIES="SERIES",(n=t.VideoType||(t.VideoType={})).PLAYLIST="PLAYLIST",n.VIDEO="VIDEO",n.TV_PROGRAM="TV_PROGRAM",n.SERIES="SERIES"},635:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},895:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(786),t),o(n(352),t),o(n(255),t),o(n(620),t)},620:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})}},t={};return function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}(920)}()},8879:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",u="week",s="month",c="quarter",l="year",f="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},g={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,s),i=n-o<0,a=t.clone().add(r+(i?-1:1),s);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:l,w:u,d:a,D:f,h:i,m:o,s:r,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",m={};m[b]=v;var _=function(e){return e instanceof E},w=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();m[i]&&(o=i),n&&(m[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var u=t.name;m[u]=t,o=u}return!r&&o&&(b=o),o||!r&&b},O=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},P=g;P.l=w,P.i=_,P.w=function(e,t){return O(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function v(e){this.$L=w(e.locale,null,!0),this.parse(e)}var y=v.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(P.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return P},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(e,t){var n=O(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return O(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<O(e)},y.$g=function(e,t,n){return P.u(e)?this[t]:this.set(n,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var n=this,c=!!P.u(t)||t,d=P.p(e),p=function(e,t){var r=P.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(a)},h=function(e,t){return P.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},v=this.$W,y=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(d){case l:return c?p(1,0):p(31,11);case s:return c?p(1,y):p(0,y+1);case u:var m=this.$locale().weekStart||0,_=(v<m?v+7:v)-m;return p(c?g-_:g+(6-_),y);case a:case f:return h(b+"Hours",0);case i:return h(b+"Minutes",1);case o:return h(b+"Seconds",2);case r:return h(b+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var u,c=P.p(e),d="set"+(this.$u?"UTC":""),p=(u={},u[a]=d+"Date",u[f]=d+"Date",u[s]=d+"Month",u[l]=d+"FullYear",u[i]=d+"Hours",u[o]=d+"Minutes",u[r]=d+"Seconds",u[n]=d+"Milliseconds",u)[c],h=c===a?this.$D+(t-this.$W):t;if(c===s||c===l){var v=this.clone().set(f,1);v.$d[p](h),v.init(),this.$d=v.set(f,Math.min(this.$D,v.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[P.p(e)]()},y.add=function(n,c){var f,d=this;n=Number(n);var p=P.p(c),h=function(e){var t=O(d);return P.w(t.date(t.date()+Math.round(e*n)),d)};if(p===s)return this.set(s,this.$M+n);if(p===l)return this.set(l,this.$y+n);if(p===a)return h(1);if(p===u)return h(7);var v=(f={},f[o]=e,f[i]=t,f[r]=1e3,f)[p]||1,y=this.$d.getTime()+n*v;return P.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=P.z(this),i=this.$H,a=this.$m,u=this.$M,s=n.weekdays,c=n.months,l=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].substr(0,i)},f=function(e){return P.s(i%12||12,e,"0")},p=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},v={YY:String(this.$y).slice(-2),YYYY:this.$y,M:u+1,MM:P.s(u+1,2,"0"),MMM:l(n.monthsShort,u,c,3),MMMM:l(c,u),D:this.$D,DD:P.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,s,2),ddd:l(n.weekdaysShort,this.$W,s,3),dddd:s[this.$W],H:String(i),HH:P.s(i,2,"0"),h:f(1),hh:f(2),a:p(i,a,!0),A:p(i,a,!1),m:String(a),mm:P.s(a,2,"0"),s:String(this.$s),ss:P.s(this.$s,2,"0"),SSS:P.s(this.$ms,3,"0"),Z:o};return r.replace(h,(function(e,t){return t||v[e]||o.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(n,f,d){var p,h=P.p(f),v=O(n),y=(v.utcOffset()-this.utcOffset())*e,g=this-v,b=P.m(this,v);return b=(p={},p[l]=b/12,p[s]=b,p[c]=b/3,p[u]=(g-y)/6048e5,p[a]=(g-y)/864e5,p[i]=g/t,p[o]=g/e,p[r]=g/1e3,p)[h]||g,d?b:P.a(b)},y.daysInMonth=function(){return this.endOf(s).$D},y.$locale=function(){return m[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=w(e,t,!0);return r&&(n.$L=r),n},y.clone=function(){return P.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},v}(),S=E.prototype;return O.prototype=S,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",a],["$M",s],["$y",l],["$D",f]].forEach((function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),O.extend=function(e,t){return e.$i||(e(t,E,O),e.$i=!0),O},O.locale=w,O.isDayjs=_,O.unix=function(e){return O(1e3*e)},O.en=m[b],O.Ls=m,O.p={},O}()},6916:function(e,t,n){e.exports=function(){"use strict";var e=n(1350),t=Function.bind.call(Function.call,Array.prototype.reduce),r=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),o=Function.bind.call(Function.call,Array.prototype.concat);return Object.values||(Object.values=function(n){return t(e(n),(function(e,t){return o(e,"string"==typeof t&&r(n,t)?[n[t]]:[])}),[])}),Object.entries||(Object.entries=function(n){return t(e(n),(function(e,t){return o(e,"string"==typeof t&&r(n,t)?[[t,n[t]]]:[])}),[])}),Object}()},1350:function(e){"object"==typeof Reflect&&"function"==typeof Reflect.ownKeys?e.exports=Reflect.ownKeys:"function"==typeof Object.getOwnPropertySymbols?e.exports=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:e.exports=Object.getOwnPropertyNames},3996:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextProvider=void 0;var o=r(n(8156));t.ContextProvider=function(e){var t=e.bundleState,n=e.children,r=t.internal;return(null==r?void 0:r.providers)?o.default.createElement(r.providers.UserContextProvider,null,o.default.createElement(r.providers.OrganizationSubscriptionsContextProvider,null,o.default.createElement(r.providers.PurchasesWithVideosContextProvider,null,n))):o.default.createElement(o.default.Fragment,null,n)}},8074:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.withPlayerContext=t.PlayerProvider=t.PlayerContext=void 0;var u=a(n(8156)),s=n(7968);t.PlayerContext=u.default.createContext(void 0),t.PlayerProvider=function(e){var n=e.children,r=e.playerWrapperId,o=c(void 0===r?"default":r),i=l(),a=u.default.createElement(t.PlayerContext.Provider,{value:o},n);return i&&(a=u.default.createElement(i.Provider,{value:{player:o}},a)),a};var c=function(e){var t,n=(0,u.useState)(null!==(t=null===s.tivioBundle||void 0===s.tivioBundle?void 0:s.tivioBundle.getters.getPlayerWrapper({playerWrapperId:e}))&&void 0!==t?t:null),r=n[0],o=n[1];return(0,u.useEffect)((function(){s.tivioBundle||s.bundlePromise.then((function(t){var n=t.getters.getPlayerWrapper({playerWrapperId:e});o(n)})).catch((function(){}))}),[e]),r},l=function(){var e=(0,u.useState)(null),t=e[0],n=e[1];return(0,u.useEffect)((function(){s.bundlePromise.then((function(e){var t,r=null===(t=e.components)||void 0===t?void 0:t.PlayerDataContext;n(r)})).catch((function(){}))}),[]),t};t.withPlayerContext=function(e){return function(n){return function(o){return u.default.createElement(t.PlayerProvider,{playerWrapperId:e},u.default.createElement(n,r({},o)))}}}},8185:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TivioProvider=t.TivioContext=void 0;var a=i(n(8156)),u=n(952),s=n(6111),c=n(6435),l=n(3996),f=(0,s.createUseRemoteBundle)();t.TivioContext=a.default.createContext(null),t.TivioProvider=function(e){var n,r=e.children,o=e.conf,i=(0,a.useMemo)((function(){return(0,u.createInternalConf)(o)}),[]),s=f(i);if((0,a.useEffect)((function(){!1===(null==i?void 0:i.enable)||!1===(null==i?void 0:i.enableSentry)?(0,c.disableSentry)():(0,c.initSentry)()}),[]),(null==i?void 0:i.runFeatureSupportCheck)&&"ready"===s.state&&(null===(n=s.components)||void 0===n?void 0:n.FeatureSupportCheck))return a.default.createElement(s.components.FeatureSupportCheck,null);var d="ready"===(null==s?void 0:s.state)&&s.components?a.default.createElement(s.components.Provider,{language:i.language,disableUnmounting:i.disableUnmounting},r):r;return a.default.createElement(l.ContextProvider,{bundleState:s},a.default.createElement(t.TivioContext.Provider,{value:s},d))}},5111:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TivioWidget=void 0;var a=i(n(8156)),u=n(1012),s=n(3366);t.TivioWidget=a.default.forwardRef((function(e,t){var n=e.id,r=e.onBlur,o=e.onEnabled;if("string"!=typeof n||!n.length)return a.default.createElement(s.TivioWidgetError,{error:"TivioWidget must have a mandatory property 'id'."});var i=(0,u.useTivioData)(),c=i.state,l=i.error,f=i.components,d=i.config,p=d.ErrorComponent,h=d.LoaderComponent;switch((0,a.useEffect)((function(){"error"===c&&(null==o||o(!1))}),[c]),c){case"error":return a.default.createElement(p,{error:l});case"loading":return a.default.createElement(h,null);case"ready":return f?a.default.createElement(f.Widget,{id:n,ref:t,onEnabled:o,onBlur:r}):null}}))},3366:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TivioWidgetError=void 0;var o=r(n(8156));t.TivioWidgetError=function(e){var t=e.error;return o.default.createElement("div",{style:{backgroundColor:"#d84f92",color:"#fff",padding:"1rem"}},t)}},8491:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TivioWidgetLoader=void 0;var o=r(n(8156));t.TivioWidgetLoader=function(){return o.default.createElement("div",null,"loading...")}},467:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TvTivioProvider=void 0;var a=i(n(8156)),u=n(952),s=n(6111),c=n(6435),l=n(3996),f=n(8185),d=(0,s.createUseRemoteBundle)();t.TvTivioProvider=function(e){var t,n=e.children,r=e.conf,o=(0,u.createInternalConf)(null!=r?r:null),i=d(o);return(0,a.useEffect)((function(){!1===(null==o?void 0:o.enable)||!1===(null==o?void 0:o.enableSentry)?(0,c.disableSentry)():(0,c.initSentry)()}),[]),(null==o?void 0:o.runFeatureSupportCheck)&&"ready"===i.state&&(null===(t=i.components)||void 0===t?void 0:t.FeatureSupportCheck)?a.default.createElement(i.components.FeatureSupportCheck,null):a.default.createElement(l.ContextProvider,{bundleState:i},a.default.createElement(f.TivioContext.Provider,{value:i},n))}},1012:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5545),t),o(n(8919),t),o(n(4588),t),o(n(2045),t),o(n(1530),t),o(n(8186),t),o(n(3991),t),o(n(9735),t),o(n(5382),t),o(n(6621),t),o(n(3533),t),o(n(2997),t),o(n(360),t),o(n(563),t),o(n(2700),t),o(n(2484),t),o(n(7337),t),o(n(8918),t),o(n(7571),t)},6621:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useAdSegment=t.useSeekState=t.useCurrentMarker=t.useAd=t.useIntro=t.useBetOffer=t.useMarkers=t.usePlayerEvent=void 0;var r=n(8156),o=n(8074),i=n(2484);t.usePlayerEvent=function(e){var t=(0,r.useContext)(o.PlayerContext);if(void 0===t)throw new Error("usePlayerEvent must be inside PlayerContext");var n=(0,r.useState)(null),i=n[0],a=n[1];return(0,r.useEffect)((function(){if(null==t?void 0:t.events)return t.events.addListener(e,a),function(){return t.events.removeListener(e,a)}}),[null==t?void 0:t.events]),i},t.useMarkers=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useMarkers must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events)return e.events.addListener("markers",i),function(){return e.events.removeListener("markers",i)}}),[null==e?void 0:e.events]),n},t.useBetOffer=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useBetOffer must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events)return e.events.addListener("bet-offer",i),function(){return e.events.removeListener("bet-offer",i)}}),[null==e?void 0:e.events]),n},t.useIntro=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useIntro must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events)return e.events.addListener("intro",i),function(){return e.events.removeListener("intro",i)}}),[null==e?void 0:e.events]),n},t.useAd=function(){var e,t,n=(0,i.useTivioReadyData)();return(null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.useAd())&&void 0!==t?t:[null])[0]},t.useCurrentMarker=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useCurrentMarker must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events)return e.events.addListener("current-marker",i),function(){return e.events.removeListener("current-marker",i)}}),[null==e?void 0:e.events]),n},t.useSeekState=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useSeekState must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events){var t=function(){return i(!1)},n=function(){return i(!0)};return e.events.addListener("disable-seek",t),e.events.addListener("enable-seek",n),function(){e.events.removeListener("disable-seek",t),e.events.removeListener("enable-seek",n)}}}),[null==e?void 0:e.events]),n},t.useAdSegment=function(){var e,t,n=(0,i.useTivioReadyData)();return null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.useAdSegment())&&void 0!==t?t:null}},8918:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useApplyInviteCode=void 0;var r=n(2484);t.useApplyInviteCode=function(){var e,t,n=(0,r.useTivioData)().hooks;return null!==(t=null===(e=null==n?void 0:n.useApplyInviteCode)||void 0===e?void 0:e.call(n))&&void 0!==t?t:{applyInviteCodeResult:void 0,loading:!0,error:void 0,applyInviteCode:function(){},inviteCodeReset:function(){}}}},1530:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useCancelSubscription=void 0;var r=n(2484);t.useCancelSubscription=function(e){var t,n,o=(0,r.useTivioData)().hooks,i=null!==(n=null===(t=null==o?void 0:o.useCancelSubscription)||void 0===t?void 0:t.call(o,e))&&void 0!==n?n:{},a=i.cancelSubscription,u=i.cancellationInfo;return{cancelSubscription:null!=a?a:function(){return Promise.resolve()},cancellationInfo:null!=u?u:null,error:i.error}}},7571:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIsLoaded=void 0;var r=n(8156),o=n(2484);t.useIsLoaded=function(){var e=(0,r.useState)(!1),t=e[0],n=e[1],i=(0,o.useTivioData)();return(0,r.useEffect)((function(){i.getters&&i.getters.isTivioLoaded(n)}),[i]),{isTivioLoaded:t}}},2997:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIsMonetizationPurchased=void 0;var r=n(2484);t.useIsMonetizationPurchased=function(){var e,t=(0,r.useTivioData)().internal;return null!==(e=null==t?void 0:t.hooks.useIsMonetizationPurchased())&&void 0!==e?e:{isOneOfSubscriptionPurchased:function(){return!1}}}},2045:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useItemsInRow=void 0;var r=n(2484);t.useItemsInRow=function(e,t){var n,o;void 0===t&&(t={noLimit:!1,limit:3});var i=(0,r.useTivioData)().hooks;return null!==(o=null===(n=null==i?void 0:i.useItemsInRow)||void 0===n?void 0:n.call(i,e,t))&&void 0!==o?o:{pagination:null,error:null}}},3533:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useOrganizationSubscriptions=void 0;var r=n(2484);t.useOrganizationSubscriptions=function(){var e,t,n=(0,r.useTivioData)().internal;return null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.useOrganizationSubscriptions())&&void 0!==t?t:{subscriptions:[]}}},3991:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.usePurchaseRecovery=void 0;var r=n(2484);t.usePurchaseRecovery=function(){var e,t,n=(0,r.useTivioData)().hooks;return null!==(t=null===(e=null==n?void 0:n.usePurchaseRecovery)||void 0===e?void 0:e.call(n))&&void 0!==t?t:{purchaseRecoveryResult:void 0,loading:!0,error:void 0,purchaseRecovery:function(){}}}},9735:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.usePurchaseSubscription=void 0;var i=n(2484);t.usePurchaseSubscription=function(e,t){var n,a,u=(0,i.useTivioData)().hooks;return null!==(a=null===(n=null==u?void 0:u.usePurchaseSubscription)||void 0===n?void 0:n.call(u,e,t))&&void 0!==a?a:{paymentInfo:null,getPaymentInfo:function(){return r(void 0,void 0,void 0,(function(){return o(this,(function(e){return[2]}))}))},paymentStatus:null,paymentError:null}}},360:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.usePurchasesWithVideos=void 0;var r=n(2484);t.usePurchasesWithVideos=function(){var e,t,n=(0,r.useTivioData)().internal;return null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.usePurchasesWithVideos())&&void 0!==t?t:{purchases:[]}}},563:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useRowsInScreen=void 0;var r=n(2484);t.useRowsInScreen=function(e,t){var n,o;void 0===t&&(t={noLimit:!1,limit:3});var i=(0,r.useTivioData)().hooks;return null!==(o=null===(n=null==i?void 0:i.useRowsInScreen)||void 0===n?void 0:n.call(i,e,t))&&void 0!==o?o:{pagination:null,error:null}}},4588:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSearch=void 0;var r=n(2484);t.useSearch=function(e,t){var n,o,i=(0,r.useTivioData)().hooks,a=null!==(o=null===(n=null==i?void 0:i.useSearch)||void 0===n?void 0:n.call(i,e,t))&&void 0!==o?o:{},u=a.search,s=a.pagination,c=a.isLoading,l=a.error,f=a.lastQuery;return{search:null!=u?u:function(){return Promise.resolve()},pagination:null!=s?s:null,isLoading:null==c||c,error:null!=l?l:null,lastQuery:null!=f?f:""}}},8919:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useTaggedVideos=void 0;var r=n(2484);t.useTaggedVideos=function(e,t){var n,o;void 0===t&&(t={noLimit:!1,limit:3});var i=(0,r.useTivioData)().hooks;return null!==(o=null===(n=null==i?void 0:i.useTaggedVideos)||void 0===n?void 0:n.call(i,e,t))&&void 0!==o?o:{pagination:null,error:null}}},2484:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useTivioReadyData=t.useTivioData=void 0;var r=n(8156),o=n(8185);t.useTivioData=function(){var e=(0,r.useContext)(o.TivioContext);if(null===e)throw new Error("Make sure to wrap your app in TivioProvider");return e},t.useTivioReadyData=function(){var e=(0,t.useTivioData)();return"ready"===e.state?e:null}},8186:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.useTransactionPayment=void 0;var i=n(2484);t.useTransactionPayment=function(e,t,n){var a,u,s=(0,i.useTivioData)().hooks;return null!==(u=null===(a=null==s?void 0:s.useTransactionPayment)||void 0===a?void 0:a.call(s,e,t,n))&&void 0!==u?u:{paymentInfo:null,getPaymentInfo:function(){return r(void 0,void 0,void 0,(function(){return o(this,(function(e){return[2]}))}))},paymentStatus:null,paymentError:null}}},5545:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useUser=void 0;var r=n(2484);t.useUser=function(){var e,t,n=(0,r.useTivioData)().internal;return null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.useUser())&&void 0!==t?t:{user:null,error:null,isInitialized:!1}}},5382:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useVideo=void 0;var r=n(3368);t.useVideo=function(e){var t,n=(0,r.useTivioData)().hooks;return null!==(t=null==n?void 0:n.useVideo(null!=e?e:""))&&void 0!==t?t:{error:null,data:null}}},2700:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useVoucher=void 0;var r=n(3368);t.useVoucher=function(e){var t=(0,r.useTivioData)().hooks,n=null==t?void 0:t.useVoucher(e);return{activate:n?n.activate:null,voucher:n?n.voucher:null,error:n?n.error:null,activationSuccess:!!n&&n.activationSuccess}}},7337:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useWatchWithoutAdsOffer=void 0;var r=n(2484);t.useWatchWithoutAdsOffer=function(){var e,t,n=(0,r.useTivioReadyData)();return null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.useWatchWithoutAdsOffer())&&void 0!==t?t:{canPurchaseWatchWithoutAds:!1,showPurchaseDialog:function(){}}}},952:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createInternalConf=t.defaultConf=void 0;var o=n(3366),i=n(8491),a=n(5167),u=n(8323),s=n(5883),c=n(8741);t.defaultConf={secret:"",resolverUrl:"https://tivio-resolver-production.tiv.io/serveBundle/resolver2.js",currency:"CZK",language:c.LangCode.EN,disableUnmounting:!1,fetchPackage:u.fetchPackage,pubSub:(0,s.getPubSub)(),LoaderComponent:i.TivioWidgetLoader,ErrorComponent:o.TivioWidgetError},t.createInternalConf=function(e){if(e&&null==e.currency)throw new Error(".currency is missing in Tivio config");return r(r(r(r({},t.defaultConf),null!=e?e:{}),(null==e?void 0:e.secret)?{}:{enable:!1}),{logger:void 0!==(null==e?void 0:e.logger)?e.logger:(0,a.createLogger)({isConsoleEnabled:!0}),sdkVersion:"4.1.0"})}},3368:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.showGdprConsentPreferences=t.setUser=t.Nullable=t.Empty=t.Disposer=t.bundlePromise=t.withPlayerContext=t.PlayerProvider=void 0,n(6168),n(6916);var i=n(8074);Object.defineProperty(t,"PlayerProvider",{enumerable:!0,get:function(){return i.PlayerProvider}}),Object.defineProperty(t,"withPlayerContext",{enumerable:!0,get:function(){return i.withPlayerContext}});var a=n(7968);Object.defineProperty(t,"bundlePromise",{enumerable:!0,get:function(){return a.bundlePromise}}),o(n(1012),t),o(n(8185),t),o(n(5111),t),o(n(3366),t),o(n(467),t),o(n(8491),t),o(n(6111),t),o(n(5883),t),o(n(4952),t);var u=n(1649);Object.defineProperty(t,"Disposer",{enumerable:!0,get:function(){return u.Disposer}});var s=n(1649);Object.defineProperty(t,"Empty",{enumerable:!0,get:function(){return s.Empty}});var c=n(1649);Object.defineProperty(t,"Nullable",{enumerable:!0,get:function(){return c.Nullable}}),o(n(3551),t);var l=n(6732);Object.defineProperty(t,"setUser",{enumerable:!0,get:function(){return l.setUser}});var f=n(4207);Object.defineProperty(t,"showGdprConsentPreferences",{enumerable:!0,get:function(){return f.showGdprConsentPreferences}}),o(n(8741),t),(0,n(5936).logInfo)()},5936:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logInfo=void 0;var r=n(194),o=new r.Logger("tivio");t.logInfo=function(){var e=(0,r.getTizenVersion)();e&&o.info("Device: Tizen, version: "+e.version)}},6111:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.createUseRemoteBundle=t.createRemotePackageLoader=t.fetchBundle=void 0,n(3258);var a=n(194),u=n(8156),s=n(6457),c=new a.Logger("bundleLoader"),l=function(e){var t=e.resolverUrl;return(0,e.fetchPackage)(t)},f=function(e){return o(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return c.info("Fetching bundle by url",e),[4,fetch(e)];case 1:if(!((r=(t=n.sent()).status)>=200&&r<=400))throw new Error("Failed to fetch bundleUrlOverride "+e+", HTTP error status code: "+t.status);return[4,t.text()];case 2:return[2,n.sent()]}var r}))}))},d=function(e){return o(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return[4,fetch("https://europe-west3-tivio-production.cloudfunctions.net/getRemoteBundle",{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify({secret:e})})];case 1:return[4,n.sent().json()];case 2:return t=n.sent(),[2,f(t.bundleUrl)]}}))}))},p=function(e,t){return o(void 0,void 0,void 0,(function(){return i(this,(function(n){return c.info("Fetching bundle via resolver"),[2,l(t).then((function(n){var r,o={},i={exports:o};try{new Function("require","module","exports",n)(s.resolveShared,i,o)}catch(e){return Promise.reject("Cannot load Tivio Resolver "+e)}return"function"!=typeof(null===(r=i.exports.tivio)||void 0===r?void 0:r.fetch)?Promise.reject("Invalid Tivio Resolver export"):i.exports.tivio.fetch(e,t.sdkVersion)}))]}))}))};t.fetchBundle=function(e,t){return o(void 0,void 0,Promise,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return n="",t.forceCloudFnResolver?(c.info("Fetching bundle via cloudfn (forced by config)"),[4,d(e)]):[3,2];case 1:return n=r.sent(),[3,10];case 2:return t.bundleUrlOverride?(c.info("Fetching bundle directly based on config.bundleUrlOverride",t.bundleUrlOverride),[4,f(t.bundleUrlOverride)]):[3,4];case 3:return n=r.sent(),[3,10];case 4:return(0,a.isIndexedDbSupported)()?[3,6]:(c.info("Fetching bundle via cloudfn, because indexedDB is not supported"),[4,d(e)]);case 5:return n=r.sent(),[3,10];case 6:return(0,a.isTizenVersionGreaterThan)(5)?(c.info("Fetching bundle via cloudfn, because Tizen version is > 5"),[4,d(e)]):[3,8];case 7:return n=r.sent(),[3,10];case 8:return[4,p(e,t)];case 9:n=r.sent(),r.label=10;case 10:return function(e,t){if(e.length<5e4){var n="Invalid bundle, the loaded bundle has extremely small char count (only "+e.length+") chars";throw c.error(n,e),new Error(n)}}(n),[2,n]}}))}))},t.createRemotePackageLoader=function(){return function(e,n){return o(void 0,void 0,Promise,(function(){return i(this,(function(r){return[2,(0,t.fetchBundle)(e,n).then((function(e){var t={},n={exports:t};try{new Function("require","module","exports",e)(s.resolveShared,n,t)}catch(e){return Promise.reject("Cannot load module "+e)}return"object"!=typeof n.exports.Tivio?Promise.reject('Tivio package does not export "Tivio" namespace'):"object"!=typeof n.exports.Tivio.components?Promise.reject('Tivio namespace does not export "components" member'):"function"!=typeof n.exports.Tivio.setUser?Promise.reject('Tivio namespace does not export "setUser" member'):"function"!=typeof n.exports.Tivio.init?Promise.reject('Tivio namespace does not export "init" member'):n.exports.Tivio}))]}))}))}},t.createUseRemoteBundle=function(){var e=(0,t.createRemotePackageLoader)(),n=!1;return function(t){var a=(0,u.useState)({auth:null,components:null,config:t,error:null,getters:null,init:null,destroy:null,purchaseSubscriptionWithQerko:null,purchaseVideoWithQerko:null,cancelSubscriptionWithQerko:null,setBundleVersion:null,setLanguage:null,setStorageManager:null,showConsentPreferences:null,setUser:null,sources:null,hooks:null,state:"loading",subscriptions:null,internal:null}),s=a[0],c=a[1];return(0,u.useEffect)((function(){null!=t.secret&&!1!==t.enable&&e(t.secret,t).then((function(e){return o(void 0,void 0,void 0,(function(){var o;return i(this,(function(i){switch(i.label){case 0:return n?[3,2]:[4,e.init(t)];case 1:i.sent(),n=!0,i.label=2;case 2:return o=r(r({},e),{config:t,error:null,state:"ready"}),c(o),t.pubSub.publish("on-ready",o),[2]}}))}))})).catch((function(e){var n;null===(n=t.logger)||void 0===n||n.exception(e),c(r(r({},s),{config:t,error:""+e,state:"error"})),t.pubSub.publish("on-error",e)}))}),[]),s}}},7968:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bundlePromise=t.tivioBundle=void 0;var r=n(5883);t.tivioBundle=null,t.bundlePromise=new Promise((function(e,n){(0,r.getPubSub)().subscribe("on-ready",(function(n){t.tivioBundle=n,e(n)})),(0,r.getPubSub)().subscribe("on-error",(function(e){n(e)}))})).catch((function(e){throw console.error("@tivio/sdk-react failed to load. Reason:",e),e})).then((function(e){return console.info("@tivio/sdk-react loaded successfully."),e}))},6457:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resolveShared=void 0;var u=i(n(670)),s=i(n(6741)),c=i(n(8879)),l=a(n(2937));n(6703),n(6462);var f=i(n(7661)),d=i(n(8661)),p=i(n(259)),h=i(n(5264)),v=i(n(8156)),y=i(n(7111)),g=i(n(3238)),b=i(n(6128)),m=i(n(5412)),_=i(n(1296)),w=i(n(1608)),O=i(n(7589)),P={mobx:p,"mobx-react":h,firebase:l.default,"firebase/app":l.default,"firebase/auth":null,"firebase/firestore":null,react:v,React:v,"react-dom":y,"styled-components":w,"@material-ui/core":u,"@material-ui/icons":s,formik:f,i18next:d,"react-i18next":g,"react-router-dom":b,"react-virtualized":_,"react-spring":m,yup:O,dayjs:c};t.resolveShared=function(e){if(!(e in P))throw new Error("Could not resolve shared dependency "+e);return P[e]}},4207:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.showGdprConsentPreferences=void 0;var i=n(7968);t.showGdprConsentPreferences=function(){return r(void 0,void 0,void 0,(function(){var e,t;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,i.bundlePromise];case 1:return e=n.sent(),null===(t=e.showConsentPreferences)||void 0===t||t.call(e),[3,3];case 2:return n.sent(),[3,3];case 3:return[2]}}))}))}},3258:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadBundleFromDist=void 0,t.loadBundleFromDist=function(){}},5167:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.createLogger=void 0;var o=n(6435);t.createLogger=function(e){var t=!1!==e.isSentryEnabled,n=function(n,i){e.isConsoleEnabled&&console[n].apply(console,r(["Tivio SDK "],i,!1)),t&&(null===o.Sentry||void 0===o.Sentry||o.Sentry.captureMessage(""+i,o.Sentry.Severity.fromString(n)))};return{error:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n("error",e)},info:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n("info",e)},warn:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n("warn",e)},debug:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n("debug",e)},exception:function(n){e.isConsoleEnabled&&console.error(n),t&&(null===o.Sentry||void 0===o.Sentry||o.Sentry.captureException(n))}}}},6732:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.setUser=void 0;var i=n(7968);t.setUser=function(e,t){return r(void 0,void 0,void 0,(function(){var n,r;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,i.bundlePromise];case 1:return n=o.sent(),[4,null===(r=n.setUser)||void 0===r?void 0:r.call(n,e,t)];case 2:case 3:return o.sent(),[3,4];case 4:return[2]}}))}))}},8323:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.fetchPackage=void 0;var o={cache:"no-store"},i=function(e){var t=e.headers.get("content-type");return 200!==e.status?Promise.reject('Incorrect status "'+e.status+'" was obtained while fetching the module.'):t&&(t.includes("application/javascript")||t.includes("text/javascript"))?e.text():Promise.reject('Incorrect content "'+t+'" was obtained while fetching the module.')},a=function(e){return Promise.reject("Network failure: "+e)};t.fetchPackage=function(e){return n(void 0,void 0,Promise,(function(){return r(this,(function(t){return[2,fetch(e,o).then(i).catch(a)]}))}))}},5883:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPubSub=t.createPubSub=void 0,t.createPubSub=function(){var e=new Map;return{publish:function(t,n){var r;null===(r=e.get(t))||void 0===r||r.forEach((function(e){(0,e.onMessage)(n)}))},subscribe:function(t,n){var r=(new Date).getTime();return e.has(t)||e.set(t,[]),e.get(t).push({id:r,onMessage:n}),function(){var n,o=null!==(n=e.get(t))&&void 0!==n?n:[],i=o.findIndex((function(e){return e.id===r}));-1!==i&&o.splice(i,1)}}}};var n=null;t.getPubSub=function(){return null===n&&(n=(0,t.createPubSub)()),n}},6435:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.initSentry=t.disableSentry=t.Sentry=void 0;var a=i(n(7356)),u="true"===process.env.DISABLE_SENTRY;t.Sentry=u?null:a,t.disableSentry=function(){t.Sentry=null,console.info("@tivio: Sentry disabled")},t.initSentry=function(){t.Sentry&&(t.Sentry.init({dsn:"https://8b9d489695004b0da95481f939b0455d@o507550.ingest.sentry.io/5600271",release:"@tivio/sdk-react@4.1.0",tracesSampleRate:1}),console.info("@tivio: Sentry enabled"),s())};var s=function(){window.sentry=t.Sentry,console.info("@tivio: Sentry added to window")}},3551:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1649:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4952:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6168:function(e,t,n){"use strict";n.r(t),n.d(t,{Headers:function(){return h},Request:function(){return w},Response:function(){return P},DOMException:function(){return S},fetch:function(){return j}});var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r&&r,o="URLSearchParams"in r,i="Symbol"in r&&"iterator"in Symbol,a="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),u="FormData"in r,s="ArrayBuffer"in r;if(s)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function f(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function v(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function y(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=y(t);return t.readAsArrayBuffer(e),n}function b(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:a&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:u&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&a&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=b(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var e=v(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?v(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(g)}),this.text=function(){var e,t,n,r=v(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=y(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},u&&(this.formData=function(){return this.text().then(O)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=f(e),t=d(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},h.prototype.delete=function(e){delete this.map[f(e)]},h.prototype.get=function(e){return e=f(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(f(e))},h.prototype.set=function(e,t){this.map[f(e)]=d(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},h.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},h.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},i&&(h.prototype[Symbol.iterator]=h.prototype.entries);var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(e,t){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,o=(t=t||{}).body;if(e instanceof w){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),_.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function O(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function P(e,t){if(!(this instanceof P))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},m.call(w.prototype),m.call(P.prototype),P.prototype.clone=function(){return new P(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},P.error=function(){var e=new P(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];P.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new P(null,{status:t,headers:{location:e}})};var S=r.DOMException;try{new S}catch(e){(S=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),S.prototype.constructor=S}function j(e,t){return new Promise((function(n,o){var i=new w(e,t);if(i.signal&&i.signal.aborted)return o(new S("Aborted","AbortError"));var u=new XMLHttpRequest;function c(){u.abort()}u.onload=function(){var e,t,r={status:u.status,statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new h,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL");var o="response"in u?u.response:u.responseText;setTimeout((function(){n(new P(o,r))}),0)},u.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){o(new S("Aborted","AbortError"))}),0)},u.open(i.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?u.withCredentials=!0:"omit"===i.credentials&&(u.withCredentials=!1),"responseType"in u&&(a?u.responseType="blob":s&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof h?i.headers.forEach((function(e,t){u.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){u.setRequestHeader(e,d(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",c),u.onreadystatechange=function(){4===u.readyState&&i.signal.removeEventListener("abort",c)}),u.send(void 0===i._bodyInit?null:i._bodyInit)}))}j.polyfill=!0,r.fetch||(r.fetch=j,r.Headers=h,r.Request=w,r.Response=P)},670:function(e){"use strict";e.exports=r},6741:function(e){"use strict";e.exports=o},7356:function(e){"use strict";e.exports=t},2937:function(e){"use strict";e.exports=i},6703:function(e){"use strict";e.exports=a},6462:function(e){"use strict";e.exports=u},7661:function(e){"use strict";e.exports=s},8661:function(e){"use strict";e.exports=c},259:function(e){"use strict";e.exports=n},5264:function(e){"use strict";e.exports=l},8156:function(t){"use strict";t.exports=e},7111:function(e){"use strict";e.exports=f},3238:function(e){"use strict";e.exports=d},6128:function(e){"use strict";e.exports=p},5412:function(e){"use strict";e.exports=h},1296:function(e){"use strict";e.exports=v},1608:function(e){"use strict";e.exports=y},7589:function(e){"use strict";e.exports=g}},m={};function _(e){var t=m[e];if(void 0!==t)return t.exports;var n=m[e]={exports:{}};return b[e].call(n.exports,n,n.exports,_),n.exports}return _.d=function(e,t){for(var n in t)_.o(t,n)&&!_.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},_.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},_.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},_(3368)}()}));
|