_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[100],{"+2XC":function(e,t,r){e.exports={controlsBar:"styles_controlsBar__1dzJG",controlsTop:"styles_controlsTop__JjA_s",controlsBottom:"styles_controlsBottom__Cab13",controlsBottomLeft:"styles_controlsBottomLeft__238BA",controlsBottomRight:"styles_controlsBottomRight__32nOV"}},"+LXs":function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},"/+u3":function(e,t,r){e.exports={subtitle:"styles_subtitle__pMIk6",subtitleIconWrapper:"styles_subtitleIconWrapper__1hrbn",subtitleHelperArea:"styles_subtitleHelperArea__3Pmt0",subtitleIcon:"styles_subtitleIcon__-HEHv",subtitleBarWarpper:"styles_subtitleBarWarpper__3vBGS",languageMenu:"styles_languageMenu__18asL",menuActive:"styles_menuActive__ruugU",subtitleMenu:"styles_subtitleMenu__1rgiQ",listTitle:"styles_listTitle__2mnN2",fadeInUp:"styles_fadeInUp__2gnvk"}},"2FwC":function(e,t,r){"use strict";var n;!function(e){e.Url="Url",e.TypeId="TypeId"}(n||(n={})),t.a=n},"2qu3":function(e,t,r){"use strict";var n=r("oI91"),a=r("/GRZ"),o=r("i2R6");function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t){var r;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}t.__esModule=!0,t.default=void 0;var c,d=(c=r("q1tI"))&&c.__esModule?c:{default:c},f=r("8L3h"),p=r("jwwS");var v=[],m=[],y=!1;function h(e){var t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then((function(e){return r.loading=!1,r.loaded=e,e})).catch((function(e){throw r.loading=!1,r.error=e,e})),r}function b(e){var t={loading:!1,loaded:{},error:null},r=[];try{Object.keys(e).forEach((function(n){var a=h(e[n]);a.loading?t.loading=!0:(t.loaded[n]=a.loaded,t.error=a.error),r.push(a.promise),a.promise.then((function(e){t.loaded[n]=e})).catch((function(e){t.error=e}))}))}catch(n){t.error=n}return t.promise=Promise.all(r).then((function(e){return t.loading=!1,e})).catch((function(e){throw t.loading=!1,e})),t}function g(e,t){return d.default.createElement(function(e){return e&&e.__esModule?e.default:e}(e),t)}function S(e,t){var r=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:g,webpack:null,modules:null},t),n=null;function a(){if(!n){var t=new I(e,r);n={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return n.promise()}if(!y&&"function"===typeof r.webpack){var o=r.webpack();m.push((function(e){var t,r=u(o);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(-1!==e.indexOf(n))return a()}}catch(i){r.e(i)}finally{r.f()}}))}var i=function(e,t){a();var o=d.default.useContext(p.LoadableContext),i=(0,f.useSubscription)(n);return d.default.useImperativeHandle(t,(function(){return{retry:n.retry}}),[]),o&&Array.isArray(r.modules)&&r.modules.forEach((function(e){o(e)})),d.default.useMemo((function(){return i.loading||i.error?d.default.createElement(r.loading,{isLoading:i.loading,pastDelay:i.pastDelay,timedOut:i.timedOut,error:i.error,retry:n.retry}):i.loaded?r.render(i.loaded,e):null}),[e,i])};return i.preload=function(){return a()},i.displayName="LoadableComponent",d.default.forwardRef(i)}var I=function(){function e(t,r){a(this,e),this._loadFn=t,this._opts=r,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return o(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,r=this._opts;t.loading&&("number"===typeof r.delay&&(0===r.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),r.delay)),"number"===typeof r.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),r.timeout))),this._res.promise.then((function(){e._update({}),e._clearTimeouts()})).catch((function(t){e._update({}),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=s(s({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks.delete(e)}}}]),e}();function O(e){return S(h,e)}function k(e,t){for(var r=[];e.length;){var n=e.pop();r.push(n(t))}return Promise.all(r).then((function(){if(e.length)return k(e,t)}))}O.Map=function(e){if("function"!==typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return S(b,e)},O.preloadAll=function(){return new Promise((function(e,t){k(v).then(e,t)}))},O.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var r=function(){return y=!0,t()};k(m,e).then(r,r)}))},window.__NEXT_PRELOADREADY=O.preloadReady;var _=O;t.default=_},"31HF":function(e,t,r){"use strict";var n;!function(e){e.CreditStartsAt="CreditStartsAt",e.Subtitles="Subtitles",e.RestrictDownloadRent="RestrictDownloadRent",e.RestrictDownloadSVOD="RestrictDownloadSVOD",e.RestrictDownloadBrazil="RestrictDownloadBrazil",e.DubbedInfo="DubbedInfo",e.Audios="Audios",e.RestrictDownloadBuy="RestrictDownloadBuy",e.Duration="Duration",e.Definition="Definition"}(n||(n={})),t.a=n},"3JFx":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r("cTRj")),a=s(r("t0y4")),o=s(r("s/rx")),i=s(r("4Y/j"));function s(e){return e&&e.__esModule?e:{default:e}}var u=(0,n.default)("youtube-player"),l={proxyEvents:function(e){var t={},r=function(r){var n="on"+r.slice(0,1).toUpperCase()+r.slice(1);t[n]=function(t){u('event "%s"',n,t),e.trigger(r,t)}},n=!0,a=!1,i=void 0;try{for(var s,l=o.default[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){r(s.value)}}catch(c){a=!0,i=c}finally{try{!n&&l.return&&l.return()}finally{if(a)throw i}}return t},promisifyPlayer:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={},n=function(n){t&&i.default[n]?r[n]=function(){for(var t=arguments.length,r=Array(t),a=0;a<t;a++)r[a]=arguments[a];return e.then((function(e){var t=i.default[n],a=e.getPlayerState(),o=e[n].apply(e,r);return t.stateChangeRequired||Array.isArray(t.acceptableStates)&&-1===t.acceptableStates.indexOf(a)?new Promise((function(r){e.addEventListener("onStateChange",(function n(){var a=e.getPlayerState(),o=void 0;"number"===typeof t.timeout&&(o=setTimeout((function(){e.removeEventListener("onStateChange",n),r()}),t.timeout)),Array.isArray(t.acceptableStates)&&-1!==t.acceptableStates.indexOf(a)&&(e.removeEventListener("onStateChange",n),clearTimeout(o),r())}))})).then((function(){return o})):o}))}:r[n]=function(){for(var t=arguments.length,r=Array(t),a=0;a<t;a++)r[a]=arguments[a];return e.then((function(e){return e[n].apply(e,r)}))}},o=!0,s=!1,u=void 0;try{for(var l,c=a.default[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var d=l.value;n(d)}}catch(f){s=!0,u=f}finally{try{!o&&c.return&&c.return()}finally{if(s)throw u}}return r}};t.default=l,e.exports=t.default},"4Y/j":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=r("u6sg"),o=(n=a)&&n.__esModule?n:{default:n};t.default={pauseVideo:{acceptableStates:[o.default.ENDED,o.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[o.default.ENDED,o.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[o.default.ENDED,o.default.PLAYING,o.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},e.exports=t.default},"4qA7":function(e,t,r){var n;function a(e){function r(){if(r.enabled){var e=r,a=+new Date,o=a-(n||a);e.diff=o,e.prev=n,e.curr=a,n=a;for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];i[0]=t.coerce(i[0]),"string"!==typeof i[0]&&i.unshift("%O");var u=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(r,n){if("%%"===r)return r;u++;var a=t.formatters[n];if("function"===typeof a){var o=i[u];r=a.call(e,o),i.splice(u,1),u--}return r})),t.formatArgs.call(e,i);var l=r.log||t.log||console.log.bind(console);l.apply(e,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var r,n=0;for(r in e)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]}(e),"function"===typeof t.init&&t.init(r),r}(t=e.exports=a.debug=a.default=a).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var r=("string"===typeof e?e:"").split(/[\s,]+/),n=r.length,a=0;a<n;a++)r[a]&&("-"===(e=r[a].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r("Gtzc"),t.names=[],t.skips=[],t.formatters={}},"5Ki7":function(e,t,r){"use strict";var n;!function(e){e.UrlSMI="UrlSMI",e.UrlSRT="UrlSRT",e.UrlVTT="UrlVTT",e.UrlTTM="UrlTTM",e.Name="Name",e.Code="Code",e.LCID="LCID"}(n||(n={})),t.a=n},"6FTQ":function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,"a",(function(){return n}))},7081:function(e,t,r){e.exports={progressBarWrapper:"styles_progressBarWrapper__1CHg_",progressBarLeftWrapper:"styles_progressBarLeftWrapper__y5BW6",progressBar:"styles_progressBar__2u4BT",progrees:"styles_progrees__QJb07",seekBallonWrapper:"styles_seekBallonWrapper__2GEhc",timer:"styles_timer__2eBMn"}},"8Q/q":function(e,t,r){"use strict";var n=r("q1tI");t.a=Object(n.createContext)({t:function(e){return Array.isArray(e)?e[0]:e},lang:""})},"8rE2":function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r("6FTQ");function a(e,t){if(e){if("string"===typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},"9hEd":function(e,t,r){e.exports={wrapper:"styles_wrapper__JR5fT",logo:"styles_logo__3e6Qh"}},CKgc:function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n=r("vJKn"),a=r.n(n),o=r("rg98"),i=r("LeJ0"),s=r("RC5v"),u=r("r8nI"),l=r("WED6");var c=function(e){if(!(null===e||void 0===e?void 0:e.GetUserInfoResult))return null;var t=[{type:l.a.residential,countryCode:u.a.BRA,areaCode:e.GetUserInfoResult.User.PhoneResidencialAreaCode,number:e.GetUserInfoResult.User.PhoneResidencialNumber},{type:l.a.mobile,countryCode:u.a.BRA,areaCode:e.GetUserInfoResult.User.PhoneCelularAreaCode,number:e.GetUserInfoResult.User.PhoneCelularNumber},{type:l.a.other,countryCode:u.a.BRA,areaCode:e.GetUserInfoResult.User.PhoneOtherAreaCode,number:e.GetUserInfoResult.User.PhoneOtherNumber}];return{id:e.GetUserInfoResult.User.UserId,firstName:e.GetUserInfoResult.User.FirstName,birthday:e.GetUserInfoResult.User.Birthday,document:e.GetUserInfoResult.User.Document,email:e.GetUserInfoResult.User.Email,gender:e.GetUserInfoResult.User.Gender,isSubscriber:e.GetUserInfoResult.User.IsSubscriber,lastName:e.GetUserInfoResult.User.LastName,phones:t,registerNotCompleted:e.GetUserInfoResult.User.RegisterNotCompleted,type:e.GetUserInfoResult.User.PersonType,userName:e.GetUserInfoResult.User.UserName,address:{street:e.GetUserInfoResult.User.Address,complement:e.GetUserInfoResult.User.AddressAdditionalNumber,city:e.GetUserInfoResult.User.AddressCity,countryCode:e.GetUserInfoResult.User.CountryCode,district:e.GetUserInfoResult.User.AddressDistrict,number:e.GetUserInfoResult.User.AddressNumber,state:e.GetUserInfoResult.User.AddressState,zip:e.GetUserInfoResult.User.ZIP}}};function d(){return f.apply(this,arguments)}function f(){return(f=Object(o.a)(a.a.mark((function e(){var t,r,n,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={AuthenticationTicket:i.a.api.secret},e.next=3,s.b.post("/GetUserInfo",t);case 3:return r=e.sent,n=r.data,o=c(n),e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},"D+Oc":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="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},a=s(r("MEFE")),o=s(r("MIx2")),i=s(r("3JFx"));function s(e){return e&&e.__esModule?e:{default:e}}var u=void 0;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=(0,a.default)();if(u||(u=(0,o.default)(s)),t.events)throw new Error("Event handlers cannot be overwritten.");if("string"===typeof e&&!document.getElementById(e))throw new Error('Element "'+e+'" does not exist.');t.events=i.default.proxyEvents(s);var l=new Promise((function(r){"object"===("undefined"===typeof e?"undefined":n(e))&&e.playVideo instanceof Function?r(e):u.then((function(n){var a=new n.Player(e,t);return s.on("ready",(function(){r(a)})),null}))})),c=i.default.promisifyPlayer(l,r);return c.on=s.on,c.off=s.off,c},e.exports=t.default},Gtzc:function(e,t){var r=1e3,n=6e4,a=60*n,o=24*a,i=365.25*o;function s(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}e.exports=function(e,t){t=t||{};var u,l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*i;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*a;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===l&&!1===isNaN(e))return t.long?s(u=e,o,"day")||s(u,a,"hour")||s(u,n,"minute")||s(u,r,"second")||u+" ms":function(e){if(e>=o)return Math.round(e/o)+"d";if(e>=a)return Math.round(e/a)+"h";if(e>=n)return Math.round(e/n)+"m";if(e>=r)return Math.round(e/r)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},"H+61":function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,"a",(function(){return n}))},"HE+r":function(e,t,r){"use strict";var n;!function(e){e[e.Thumb335=-1]="Thumb335",e[e.Thumb200=-2]="Thumb200",e[e.Thumb127=-3]="Thumb127",e[e.ThumbHorizontal=1012]="ThumbHorizontal",e[e.FeaturedBanner=4001]="FeaturedBanner",e[e.FeaturedPlayplus=9002]="FeaturedPlayplus",e[e.ThumbLargePlayplus=9001]="ThumbLargePlayplus"}(n||(n={})),t.a=n},I009:function(e,t,r){"use strict";var n;!function(e){e.SingleList="SingleList",e.Group="Group",e.GroupAndCopyFirstItem="GroupAndCopyFirstItem",e.AutomaticGroup="AutomaticGroup",e.AutomaticGroupAndCopyFirstItem="AutomaticGroupAndCopyFirstItem",e.FullGroup="FullGroup"}(n||(n={})),t.a=n},KyXm:function(e,t,r){"use strict";var n;!function(e){e.None="None",e.MediaName="MediaName",e.OriginalName="OriginalName",e.NumberOfDownloads="NumberOfDownloads",e.ReleaseDate="ReleaseDate",e.MediaYear="MediaYear",e.PriceBuy="PriceBuy",e.PriceRental="PriceRental",e.SalesAllTime="SalesAllTime",e.SalesLastSevenDays="SalesLastSevenDays",e.SalesLastThirtyDays="SalesLastThirtyDays",e.Random="Random",e.Custom="Custom",e.Exact="Exact",e.IMDBRateReleaseDate="IMDBRateReleaseDate",e.LaunchDate="LaunchDate",e.Date="Date"}(n||(n={})),t.a=n},MEFE:function(e,t,r){"use strict";var n;n=function(){var e={},t={};return e.on=function(e,r){var n={name:e,handler:r};return t[e]=t[e]||[],t[e].unshift(n),n},e.off=function(e){var r=t[e.name].indexOf(e);-1!==r&&t[e.name].splice(r,1)},e.trigger=function(e,r){var n,a=t[e];if(a)for(n=a.length;n--;)a[n].handler(r)},e},e.exports=n},MIx2:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=r("MuZe"),o=(n=a)&&n.__esModule?n:{default:n};t.default=function(e){return new Promise((function(t){if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function)t(window.YT);else{var r="http:"===window.location.protocol?"http:":"https:";(0,o.default)(r+"//www.youtube.com/iframe_api",(function(t){t&&e.trigger("error",t)}));var n=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){n&&n(),t(window.YT)}}}))},e.exports=t.default},MuZe:function(e,t){function r(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function n(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}e.exports=function(e,t,a){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");"function"===typeof t&&(a=t,t={}),t=t||{},a=a||function(){},i.type=t.type||"text/javascript",i.charset=t.charset||"utf8",i.async=!("async"in t)||!!t.async,i.src=e,t.attrs&&function(e,t){for(var r in t)e.setAttribute(r,t[r])}(i,t.attrs),t.text&&(i.text=""+t.text),("onload"in i?r:n)(i,a),i.onload||r(i,a),o.appendChild(i)}},OgpL:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return h})),r.d(t,"c",(function(){return b}));var n,a=r("cpVT"),o=r("vJKn"),i=r.n(o),s=r("rg98"),u=r("q1tI"),l=r.n(u),c=r("RC5v"),d=r("PFlM"),f=r("CKgc"),p=r("i73s"),v=l.a.createElement;function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}!function(e){e.Token="tk",e.RefreshToken="rtk",e.User="usr",e.Profile="prfl"}(n||(n={}));var y=Object(u.createContext)({}),h=function(e){var t=e.children;Object(u.useEffect)((function(){sessionStorage.getItem("initializedSection")||(sessionStorage.setItem("initializedSection","true"),b())}),[]);var r=Object(u.useState)((function(){if("undefined"!==typeof localStorage){var e=localStorage.getItem(n.Token),t=localStorage.getItem(n.RefreshToken),r=JSON.parse(localStorage.getItem(n.User)||"{}"),a=JSON.parse(localStorage.getItem(n.Profile)||"{}");if(e&&t&&r)return Object(c.c)(e,t),Object(p.b)({success:function(e){return k(e)},error:function(){return O()}}),{token:e,refreshToken:t,user:r,profiles:[a]}}return{}})),o=r[0],l=r[1],h=function(){var e=localStorage.getItem(n.Token);return{refreshToken:localStorage.getItem(n.RefreshToken),token:e,user:JSON.parse(localStorage.getItem(n.User)||"{}")}},b=function(){var e=Object(s.a)(i.a.mark((function e(){var t,r,n,a,o;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=h(),e.next=3,Object(d.a)({refreshToken:t.refreshToken});case 3:if(r=e.sent,n=r.token,a=r.refreshToken,0===r.result){e.next=10;break}return O(),e.abrupt("return");case 10:return Object(c.c)(n,a),Object(p.b)({success:function(e){return k(e)},error:function(){return O()}}),t.token=n,t.refreshToken=a,e.next=16,Object(f.a)();case 16:o=e.sent,t.user=o,I(t);case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=Object(u.useCallback)((function(e){I(e)}),[]),S=Object(u.useCallback)((function(e){localStorage.setItem(n.Profile,JSON.stringify(e))}),[]),I=Object(u.useCallback)((function(e){localStorage.setItem(n.Token,e.token),localStorage.setItem(n.RefreshToken,e.refreshToken),localStorage.setItem(n.User,JSON.stringify(e.user)),l({refreshToken:e.token,token:e.refreshToken,user:e.user,profiles:e.profiles}),Object(c.c)(e.token,e.refreshToken),Object(p.b)({success:function(e){return k(e)},error:function(){return O()}})}),[]),O=Object(u.useCallback)((function(){localStorage.removeItem(n.Token),localStorage.removeItem(n.RefreshToken),localStorage.removeItem(n.User),localStorage.removeItem(n.Profile),Object(p.c)(),l({}),Object(c.d)()}),[]),k=Object(u.useCallback)((function(e){var t=e.token,r=e.refreshToken;localStorage.setItem(n.Token,t),localStorage.setItem(n.RefreshToken,r),l(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){Object(a.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({refreshToken:r,token:t},o)),Object(c.c)(t,r)}),[]);return v(y.Provider,{value:{user:null===o||void 0===o?void 0:o.user,signIn:g,signInProfile:S,signOut:O,updateCredentials:I,renewToken:k,profiles:null===o||void 0===o?void 0:o.profiles}},t)},b=function(){var e=Object(u.useContext)(y);if(!e)throw new Error("using auth context without provider...");return e}},P72a:function(e,t,r){"use strict";r.d(t,"a",(function(){return d})),r.d(t,"b",(function(){return f}));var n=r("q1tI"),a=r.n(n),o=r("H+61"),i=r("UlJF"),s=function(){function e(){Object(o.a)(this,e),this.callbacks=[]}return Object(i.a)(e,[{key:"on",value:function(e,t){this.callbacks[e]=this.callbacks[e]||[],this.callbacks[e].push(t)}},{key:"trigger",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=this.callbacks[e]||[];r.forEach((function(e){e.bind(null,t).call()}))}}]),e}(),u=r("lOkQ"),l=a.a.createElement,c=Object(n.createContext)({}),d=function(e){var t=e.children,r=Object(n.useState)(!0),a=r[0],o=r[1],i=Object(n.useState)(!1),d=i[0],f=i[1],p=Object(n.useState)(!1),v=p[0],m=p[1],y=Object(n.useState)(u.a.Loading),h=y[0],b=y[1],g=Object(n.useState)(0),S=g[0],I=g[1],O=Object(n.useState)(0),k=O[0],_=O[1],w=Object(n.useState)(50),P=w[0],C=w[1],T=Object(n.useState)([]),E=T[0],j=T[1],x=Object(n.useState)(""),N=x[0],D=x[1],L=Object(n.useState)(null),M=L[0],R=L[1],A=Object(n.useState)(),U=A[0],F=A[1],B=Object(n.useState)(),G=B[0],V=B[1],W=Object(n.useState)(0),H=W[0],q=W[1],K=Object(n.useState)(!1),J=K[0],Y=K[1],z=Object(n.useState)(!1),Q=z[0],X=z[1],Z=Object(n.useState)(0),$=Z[0],ee=Z[1];return Object(n.useEffect)((function(){return R(new s)}),[]),l(c.Provider,{value:{buffering:a,setBuffering:o,imaLoaded:d,setImaLoaded:f,isFullScreen:v,setIsFullScreen:m,playbackStatus:h,setPlaybackStatus:b,timeInSeconds:k,setTimeInSeconds:_,maxTimeInSeconds:S,setMaxTimeInSeconds:I,volume:P,setVolume:C,subtitles:E,setSubtitles:j,selectedSubtitle:N,setSelectedSubtitle:D,events:M,audioTracks:U,setAudioTracks:F,selectedAudioTrack:G,setSelectedAudioTrack:V,timeInSecondsToNextAds:H,setTimeInSecondsToNextAds:q,adsInProgress:J,setAdsInProgress:Y,adBlockDetected:Q,setAdBlockDetected:X,bandwidth:$,setBandwidth:ee}},t)},f=function(){var e=Object(n.useContext)(c);if(!e)throw new Error("using auth context without provider...");return e}},"PKM/":function(e,t,r){"use strict";var n;!function(e){e.SerieName="SerieName",e.SeasonName="SeasonName",e.EpisodeName="EpisodeName",e.Position="Position"}(n||(n={})),t.a=n},Pmkd:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n,a=r("cpVT"),o=r("q1tI"),i=r.n(o),s=r("UE8m"),u=r.n(s),l=r("rvfw"),c=r("QWYd"),d=i.a.createElement;!function(e){e.Success="success",e.Alert="alert",e.Image="image",e.Message="message"}(n||(n={})),t.b=function(e){var t,r=e.onClose,s=e.alertType,f=void 0===s?n.Message:s,p=e.urlImage,v=e.hiddenCloseOption,m=void 0!==v&&v,y=e.show,h=void 0===y||y,b=e.title,g=e.description,S=e.children,I=e.actionDirectionColumn,O=void 0!==I&&I,k=(t={},Object(a.a)(t,n.Success,d(l.a,null)),Object(a.a)(t,n.Alert,d(c.a,null)),Object(a.a)(t,n.Image,d("img",{src:p})),t),_=Object(o.useState)(!0),w=_[0],P=_[1];Object(o.useEffect)((function(){P(h)}),[h]);return d(i.a.Fragment,null,w&&d("div",{id:u.a.dialog,className:h?u.a.show:""},d("section",{className:u.a.dialogContent},!m&&d("button",{className:u.a.closeButton,onClick:function(){P(!1),r&&r()}},"X"),d("span",null," ",k[f]," "),d("h2",null,b),d("p",null,g),S&&d("div",{className:"".concat(u.a.actions," ").concat(O?u.a.directionColumn:"")},S))))}},QWYd:function(e,t,r){"use strict";var n=r("q1tI"),a=r.n(n).a.createElement;t.a=function(){return a("svg",{width:"92",height:"92",viewBox:"0 0 92 92",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M41.25 59.5833H50.4167V68.75H41.25V59.5833ZM41.25 22.9167H50.4167V50.4167H41.25V22.9167ZM45.8333 0C20.4875 0 0 20.625 0 45.8333C0 57.9891 4.82885 69.647 13.4243 78.2424C17.6803 82.4984 22.7329 85.8745 28.2937 88.1778C33.8544 90.4812 39.8144 91.6667 45.8333 91.6667C57.9891 91.6667 69.647 86.8378 78.2424 78.2424C86.8378 69.647 91.6667 57.9891 91.6667 45.8333C91.6667 39.8144 90.4812 33.8544 88.1778 28.2937C85.8745 22.7329 82.4984 17.6803 78.2424 13.4243C73.9864 9.16825 68.9337 5.7922 63.373 3.48886C57.8122 1.18551 51.8523 0 45.8333 0V0ZM45.8333 82.5C36.1087 82.5 26.7824 78.6369 19.9061 71.7606C13.0298 64.8843 9.16667 55.5579 9.16667 45.8333C9.16667 36.1087 13.0298 26.7824 19.9061 19.9061C26.7824 13.0298 36.1087 9.16667 45.8333 9.16667C55.5579 9.16667 64.8843 13.0298 71.7606 19.9061C78.6369 26.7824 82.5 36.1087 82.5 45.8333C82.5 55.5579 78.6369 64.8843 71.7606 71.7606C64.8843 78.6369 55.5579 82.5 45.8333 82.5V82.5Z",fill:"#FDC20F"}))}},S1Ht:function(e,t,r){e.exports={wrapper:"styles_wrapper__1WiJ6",left:"styles_left__1oghZ",right:"styles_right__1yQiR",center:"styles_center__dHCeP",container:"styles_container__3ZMQp",default:"styles_default__2k9c4",gray:"styles_gray__1lOzr",loader:"styles_loader__3HtQm",loader1:"styles_loader1__3WAh3",loader2:"styles_loader2__3gSU7",loader3:"styles_loader3__2ugVv"}},TQwL:function(e,t,r){"use strict";var n;!function(e){e[e.None=0]="None",e[e.Box=1]="Box",e[e.Content=2]="Content",e[e.Episode=4]="Episode",e[e.Movie=8]="Movie",e[e.Clip=16]="Clip",e[e.AllWithClip=32]="AllWithClip",e[e.Banner=64]="Banner",e[e.Live=128]="Live",e[e.LiveGrid=256]="LiveGrid",e[e.Channel=512]="Channel",e[e.Link=1024]="Link"}(n||(n={})),t.a=n},UE8m:function(e,t,r){e.exports={dialog:"styles_dialog__1wrOZ",showDialogBackground:"styles_showDialogBackground__1Rf45",dialogContent:"styles_dialogContent__1dJZu",showDialogContent:"styles_showDialogContent__2oGhC",showIcon:"styles_showIcon__3K0Zs",closeButton:"styles_closeButton__361Dt",directionColumn:"styles_directionColumn__MO5re",actions:"styles_actions__3W5X4"}},UlJF:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}r.d(t,"a",(function(){return a}))},WED6:function(e,t,r){"use strict";var n;!function(e){e.mobile="mobile",e.residential="residential",e.other="other"}(n||(n={})),t.a=n},XCn0:function(e,t,r){e.exports={playPause:"styles_playPause__3x-7O"}},YFqc:function(e,t,r){e.exports=r("cTJO")},a6RD:function(e,t,r){"use strict";var n=r("oI91");function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.__esModule=!0,t.noSSR=u,t.default=function(e,t){var r=i.default,n={loading:function(e){e.error,e.isLoading;return e.pastDelay,null}};e instanceof Promise?n.loader=function(){return e}:"function"===typeof e?n.loader=e:"object"===typeof e&&(n=o(o({},n),e));if(n=o(o({},n),t),"object"===typeof e&&!(e instanceof Promise)&&(e.render&&(n.render=function(t,r){return e.render(r,t)}),e.modules)){r=i.default.Map;var a={},s=e.modules();Object.keys(s).forEach((function(e){var t=s[e];"function"!==typeof t.then?a[e]=t:a[e]=function(){return t.then((function(e){return e.default||e}))}})),n.loader=a}n.loadableGenerated&&delete(n=o(o({},n),n.loadableGenerated)).loadableGenerated;if("boolean"===typeof n.ssr){if(!n.ssr)return delete n.ssr,u(r,n);delete n.ssr}return r(n)};s(r("q1tI"));var i=s(r("2qu3"));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return delete t.webpack,delete t.modules,e(t)}},aCfr:function(e,t,r){"use strict";var n;!function(e){e.Subtitles="Subtitles",e.Audios="Audios",e.Censure="Censure",e.Genres="Genres"}(n||(n={})),t.a=n},aOGj:function(e,t,r){"use strict";var n;!function(e){e.Play="Play",e.Pause="Pause",e.Seek="Seek",e.ChangeVolume="ChangeVolume",e.MediaLoaded="MediaLoaded",e.SelectSubtitle="SelectSubtitle",e.SeekVideoTenSeconds="SeekVideoTenSeconds",e.SelectAudioTrack="SelectAudioTrack"}(n||(n={})),t.a=n},aUsF:function(e,t,r){"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,a,o;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(a=n;0!==a--;)if(!e(t[a],r[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(a=n;0!==a--;)if(!Object.prototype.hasOwnProperty.call(r,o[a]))return!1;for(a=n;0!==a--;){var i=o[a];if(!e(t[i],r[i]))return!1}return!0}return t!==t&&r!==r}},"al+m":function(e,t,r){e.exports={watch:"styles_watch__1uUPu",watchHeader:"styles_watchHeader__3YIaR"}},cTJO:function(e,t,r){"use strict";var n=r("zoAU"),a=r("7KCV");t.__esModule=!0,t.default=void 0;var o=a(r("q1tI")),i=r("elyg"),s=r("nOHt"),u=r("vNVm"),l={};function c(e,t,r,n){if((0,i.isLocalURL)(t)){e.prefetch(t,r,n).catch((function(e){0}));var a=n&&"undefined"!==typeof n.locale?n.locale:e&&e.locale;l[t+"%"+r+(a?"%"+a:"")]=!0}}var d=function(e){var t=!1!==e.prefetch,r=(0,s.useRouter)(),a=r&&r.pathname||"/",d=o.default.useMemo((function(){var t=(0,i.resolveHref)(a,e.href,!0),r=n(t,2),o=r[0],s=r[1];return{href:o,as:e.as?(0,i.resolveHref)(a,e.as):s||o}}),[a,e.href,e.as]),f=d.href,p=d.as,v=e.children,m=e.replace,y=e.shallow,h=e.scroll,b=e.locale;"string"===typeof v&&(v=o.default.createElement("a",null,v));var g=o.Children.only(v),S=g&&"object"===typeof g&&g.ref,I=(0,u.useIntersection)({rootMargin:"200px"}),O=n(I,2),k=O[0],_=O[1],w=o.default.useCallback((function(e){k(e),S&&("function"===typeof S?S(e):"object"===typeof S&&(S.current=e))}),[S,k]);(0,o.useEffect)((function(){var e=_&&t&&(0,i.isLocalURL)(f),n="undefined"!==typeof b?b:r&&r.locale,a=l[f+"%"+p+(n?"%"+n:"")];e&&!a&&c(r,f,p,{locale:n})}),[p,f,_,b,t,r]);var P={ref:w,onClick:function(e){g.props&&"function"===typeof g.props.onClick&&g.props.onClick(e),e.defaultPrevented||function(e,t,r,n,a,o,s,u){("A"!==e.currentTarget.nodeName||!function(e){var t=e.currentTarget.target;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)&&(0,i.isLocalURL)(r))&&(e.preventDefault(),null==s&&(s=n.indexOf("#")<0),t[a?"replace":"push"](r,n,{shallow:o,locale:u}).then((function(e){e&&s&&(window.scrollTo(0,0),document.body.focus())})))}(e,r,f,p,m,y,h,b)},onMouseEnter:function(e){(0,i.isLocalURL)(f)&&(g.props&&"function"===typeof g.props.onMouseEnter&&g.props.onMouseEnter(e),c(r,f,p,{priority:!0}))}};return(e.passHref||"a"===g.type&&!("href"in g.props))&&(P.href=(0,i.addBasePath)((0,i.addLocale)(p,"undefined"!==typeof b?b:r&&r.locale,r&&r.defaultLocale))),o.default.cloneElement(g,P)};t.default=d},cTRj:function(e,t,r){(function(n){function a(){var e;try{e=t.storage.debug}catch(r){}return!e&&"undefined"!==typeof n&&"env"in n&&(e=n.env.DEBUG),e}(t=e.exports=r("4qA7")).log=function(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var a=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(a++,"%c"===e&&(o=a))})),e.splice(o,0,n)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(r){}},t.load=a,t.useColors=function(){if("undefined"!==typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},t.enable(a())}).call(this,r("8oxB"))},dktV:function(e,t,r){"use strict";var n=r("q1tI"),a=r.n(n),o=r("S1Ht"),i=r.n(o),s=a.a.createElement;t.a=function(e){var t=e.message,r=e.align,n=void 0===r?"center":r,a=e.color,o=void 0===a?"default":a;return s("div",{className:i.a.wrapper},s("div",{className:"".concat(i.a.container," ").concat(i.a[n])},s("div",{className:"".concat(i.a.loader," ").concat(i.a[o])},s("div",null),s("div",null),s("div",null),s("div",null)),t&&s("p",{className:i.a[o]},t)))}},f8Ye:function(e,t,r){"use strict";var n;!function(e){e.Status="Status",e.LastPosition="LastPosition",e.Duration="Duration",e.Percentage="Percentage"}(n||(n={})),t.a=n},gwmS:function(e,t,r){e.exports={TitleWrapper:"styles_TitleWrapper__3wLTn",contentTitle:"styles_contentTitle__1KHF7",backNavigation:"styles_backNavigation__37kkH",title:"styles_title__3JGXs"}},hoXQ:function(e,t,r){"use strict";var n=r("q1tI"),a=r.n(n),o=r("YFqc"),i=r.n(o),s=r("9hEd"),u=r.n(s),l=a.a.createElement;t.a=function(e){var t=e.logo,r=e.title,n=e.url;return l("div",{className:u.a.wrapper},"string"==typeof t&&l(i.a,{href:n},l("a",null,l("img",{src:"/assets/images/netmovies.webp",alt:""}),!!r&&l("p",null,r))),"string"!=typeof t&&!!n&&l(i.a,{href:n},l("a",null,t,!!r&&l("p",null,r))),"string"!=typeof t&&!n&&l("div",{className:u.a.logo},t,l("p",null,r)))}},jwwS:function(e,t,r){"use strict";var n;t.__esModule=!0,t.LoadableContext=void 0;var a=((n=r("q1tI"))&&n.__esModule?n:{default:n}).default.createContext(null);t.LoadableContext=a},kCph:function(e,t,r){e.exports={btn:"styles_btn__3OPju",primary:"styles_primary__1B97E",secondary:"styles_secondary__15rPi"}},kZKI:function(e,t,r){e.exports={volume:"styles_volume__36Yka",volumeIconWrapper:"styles_volumeIconWrapper__1-GM1",volumeHelperArea:"styles_volumeHelperArea__1u9ZO",fadeInUp:"styles_fadeInUp__OoZ5b",volumeIcon:"styles_volumeIcon__1VDcA",volumeBarWarpper:"styles_volumeBarWarpper__2g1RS",volumeBar:"styles_volumeBar__xSncq",currentVolumeBar:"styles_currentVolumeBar__1seFK"}},lOkQ:function(e,t,r){"use strict";var n;!function(e){e.Playing="Playing",e.Paused="Paused",e.Loading="Loading",e.Error="Error"}(n||(n={})),t.a=n},lRNq:function(e,t,r){e.exports={skip:"styles_skip__1Ek4d",replayAnimation:"styles_replayAnimation__3FhN5",forwardAnimation:"styles_forwardAnimation__1JYc2",animateFadeOutDown:"styles_animateFadeOutDown__f6BwD",FadeOutDown:"styles_FadeOutDown__3MeUd"}},nbPw:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r("q1tI");function a(e,t){if("string"!==typeof t)return e;return function(r,n,a){void 0===r&&(r="");var o=Array.isArray(r)?r[0]:r;if(o.includes(":")||(o=t+":"+o),null===a||void 0===a?void 0:a.fallback)if(Array.isArray(a.fallback))a.fallback=a.fallback.map((function(e){return e.includes(":")?e:t+":"+e}));else{var i=a.fallback;a.fallback=i.includes(":")?i:t+":"+i}return e(o,n,a)}}var o=r("8Q/q"),i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function s(e){var t=Object(n.useContext)(o.a);return i(i({},t),{t:a(t.t,e)})}},nzXM:function(e,t,r){e.exports={TitleWrapper:"styles_TitleWrapper__16pTI",contentTitle:"styles_contentTitle__3KHK1",backNavigation:"styles_backNavigation__1gbQR",title:"styles_title__2yrEt"}},oI91:function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},qwH6:function(e,t,r){e.exports={seekBallon:"styles_seekBallon__2--ns"}},r8nI:function(e,t,r){"use strict";var n;!function(e){e[e.BRA=55]="BRA"}(n||(n={})),t.a=n},ruCI:function(e,t,r){"use strict";var n=r("q1tI"),a=r.n(n),o=r("YFqc"),i=r.n(o),s=r("kCph"),u=r.n(s),l=a.a.createElement;t.a=function(e){var t=e.children,r=e.as,n=e.url,a=e.handleClick,o=e.type,s=void 0===o?"button":o,c=e.secondary,d=void 0!==c&&c;return l("div",{className:u.a.btn},"link"===r&&l(i.a,{href:n},l("a",{className:d?u.a.secondary:u.a.primary},t)),"button"===r&&l("button",{type:s,onClick:a,className:d?u.a.secondary:u.a.primary},t))}},rvfw:function(e,t,r){"use strict";var n=r("q1tI"),a=r.n(n).a.createElement;t.a=function(){return a("svg",{width:"92",height:"92",viewBox:"0 0 110 110",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M77.9576 35.4799H72.1998C70.9475 35.4799 69.7567 36.0815 69.0201 37.1128L49.721 63.8762L40.9799 51.7467C40.2433 50.7277 39.0647 50.1139 37.8002 50.1139H32.0424C31.2444 50.1139 30.7779 51.0224 31.2444 51.673L46.5413 72.8873C46.9027 73.3917 47.379 73.8027 47.9309 74.0862C48.4828 74.3697 49.0944 74.5176 49.7148 74.5176C50.3353 74.5176 50.9468 74.3697 51.4987 74.0862C52.0506 73.8027 52.527 73.3917 52.8884 72.8873L78.7433 37.0391C79.2221 36.3884 78.7556 35.4799 77.9576 35.4799Z",fill:"#FDC20F"}),a("path",{d:"M55 0C24.6272 0 0 24.6272 0 55C0 85.3728 24.6272 110 55 110C85.3728 110 110 85.3728 110 55C110 24.6272 85.3728 0 55 0ZM55 100.67C29.7835 100.67 9.33036 80.2165 9.33036 55C9.33036 29.7835 29.7835 9.33036 55 9.33036C80.2165 9.33036 100.67 29.7835 100.67 55C100.67 80.2165 80.2165 100.67 55 100.67Z",fill:"#FDC20F"}))}},"s/rx":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],e.exports=t.default},sFKb:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/player/[slug]/[id]",function(){return r("v9A1")}])},sHIJ:function(e,t,r){e.exports={fullscreen:"styles_fullscreen__2o2Jj"}},t0y4:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["cueVideoById","loadVideoById","cueVideoByUrl","loadVideoByUrl","playVideo","pauseVideo","stopVideo","getVideoLoadedFraction","cuePlaylist","loadPlaylist","nextVideo","previousVideo","playVideoAt","setShuffle","setLoop","getPlaylist","getPlaylistIndex","setOption","mute","unMute","isMuted","setVolume","getVolume","seekTo","getPlayerState","getPlaybackRate","setPlaybackRate","getAvailablePlaybackRates","getPlaybackQuality","setPlaybackQuality","getAvailableQualityLevels","getCurrentTime","getDuration","removeEventListener","getVideoUrl","getVideoEmbedCode","getOptions","getOption","addEventListener","destroy","setSize","getIframe"],e.exports=t.default},"t95/":function(e,t,r){"use strict";r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return c}));var n,a=r("q1tI"),o={randomDigits:function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)},newGuid:function(){for(var e="",t=0;t<5;t++)t>0&&(e+="-"),e+=0===t?"".concat(o.randomDigits()).concat(o.randomDigits()):4===t?"".concat(o.randomDigits()).concat(o.randomDigits()).concat(o.randomDigits()):"".concat(o.randomDigits());return e}},i=o,s=r.n(a).a.createElement;!function(e){e.DeviceId="did",e.SessionId="sid"}(n||(n={}));var u=Object(a.createContext)({}),l=function(e){var t=e.children,r=Object(a.useState)((function(){if("undefined"===typeof localStorage)return null;var e=localStorage.getItem(n.DeviceId);if(e)return e;var t=i.newGuid();return localStorage.setItem(n.DeviceId,t),t})),o=r[0],l=r[1],c=Object(a.useState)((function(){if("undefined"===typeof localStorage)return null;var e=sessionStorage.getItem(n.SessionId);if(e)return e;var t=i.newGuid();return sessionStorage.setItem(n.SessionId,t),t})),d=c[0],f=c[1];return Object(a.useEffect)((function(){var e=sessionStorage.getItem(n.SessionId);if(e)f(e);else{var t=i.newGuid();sessionStorage.setItem(n.SessionId,t),f(t)}var r=localStorage.getItem(n.DeviceId);if(r)l(r);else{var a=i.newGuid();localStorage.setItem(n.DeviceId,a),l(a)}}),[]),s(u.Provider,{value:{deviceId:o,sessionId:d}},t)},c=function(){var e=Object(a.useContext)(u);if(!e)throw new Error("using auth context without provider...");return e}},tEFk:function(e,t,r){e.exports=r("tIq0")()},tIq0:function(e,t,r){"use strict";var n=r("+LXs");function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,o,i){if(i!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return r.PropTypes=r,r}},u6sg:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},e.exports=t.default},v9A1:function(e,t,r){"use strict";r.r(t);var n,a=r("q1tI"),o=r.n(a),i=r("P72a"),s=r("al+m"),u=r.n(s),l=r("hoXQ"),c=o.a.createElement,d=function(e){var t=e.children;return c(o.a.Fragment,null,c("div",{className:u.a.watch},c("div",{className:u.a.watchHeader},c(l.a,{logo:"/assets/images/netmovies.webp",url:"/"})),t))},f=r("vJKn"),p=r.n(f),v=r("rg98"),m=r("nOHt"),y=r("OgpL");!function(e){e[e.None=0]="None",e[e.SilverLightWindows8=3]="SilverLightWindows8",e[e.Unknow=8]="Unknow",e[e.LookeRegister=9]="LookeRegister",e[e.GloboBrands=6]="GloboBrands",e[e.Saraiva=2]="Saraiva",e[e.Sky=15]="Sky",e[e.TvPhilips=20]="TvPhilips",e[e.TvSamsung=11]="TvSamsung",e[e.TvSony=27]="TvSony",e[e.TvLG=4]="TvLG",e[e.TvPanasonic=61]="TvPanasonic",e[e.TvTCL=62]="TvTCL",e[e.TvToshiba=63]="TvToshiba",e[e.TvOpera=64]="TvOpera",e[e.TvPC=65]="TvPC",e[e.TvUnknow=49]="TvUnknow",e[e.Playstation=48]="Playstation",e[e.XboxOne=31]="XboxOne",e[e.Xbox360=33]="Xbox360",e[e.iOS=34]="iOS",e[e.Android=32]="Android",e[e.AndroidSamsung=50]="AndroidSamsung",e[e.AndroidS=36]="AndroidS",e[e.Windows=55]="Windows",e[e.SiteLookeSamsung=51]="SiteLookeSamsung",e[e.SiteLooke=25]="SiteLooke",e[e.SiteLookeSaraiva=37]="SiteLookeSaraiva",e[e.SiteLookeArcoplex=38]="SiteLookeArcoplex",e[e.SiteLookeCurtaEmCasa=39]="SiteLookeCurtaEmCasa",e[e.SiteLookeLumiere=40]="SiteLookeLumiere",e[e.SiteLookeItau=41]="SiteLookeItau",e[e.SiteLookeCinesystem=42]="SiteLookeCinesystem",e[e.SiteLookeHabibs=43]="SiteLookeHabibs",e[e.SiteLookeBRB=44]="SiteLookeBRB",e[e.SiteLookeAfa=45]="SiteLookeAfa",e[e.SiteLookeEncripta=46]="SiteLookeEncripta",e[e.SiteA2=26]="SiteA2",e[e.SiteLookeCineMilani=52]="SiteLookeCineMilani",e[e.SiteLookeAgaCinemas=53]="SiteLookeAgaCinemas",e[e.SiteLookeLocahouse=56]="SiteLookeLocahouse",e[e.SiteLookeMultiplus=60]="SiteLookeMultiplus",e[e.SiteLookeSolux=66]="SiteLookeSolux",e[e.SiteLookeInova=67]="SiteLookeInova",e[e.SiteLookeGoldflix=68]="SiteLookeGoldflix",e[e.SiteLookeEasytv=69]="SiteLookeEasytv",e[e.SiteLookeAdoroCinema=72]="SiteLookeAdoroCinema",e[e.SiteLookeUol=73]="SiteLookeUol",e[e.SiteLookeCatraca=76]="SiteLookeCatraca",e[e.SiteLookeNetMovies=54]="SiteLookeNetMovies",e[e.SiteNetMovies=57]="SiteNetMovies",e[e.SiteNetMovies_Samsung=58]="SiteNetMovies_Samsung",e[e.SiteUniver=70]="SiteUniver",e[e.SitePlayPlus=7]="SitePlayPlus",e[e.SiteSwen=90]="SiteSwen",e[e.ImportacaoNetmovies=59]="ImportacaoNetmovies",e[e.Nextel=75]="Nextel",e[e.Tim=71]="Tim",e[e.NetClaro=85]="NetClaro",e[e.TimLive=74]="TimLive",e[e.ClaroMobile=77]="ClaroMobile",e[e.TvOS=86]="TvOS",e[e.SiteLookeFilmow=87]="SiteLookeFilmow",e[e.SiteLookeShopback=88]="SiteLookeShopback",e[e.SiteLookeIG=89]="SiteLookeIG",e[e.IOSBRL=91]="IOSBRL",e[e.SiteLookeSpcine=92]="SiteLookeSpcine",e[e.SiteLookeMedialand=93]="SiteLookeMedialand",e[e.SiteLookeRiachuelo=94]="SiteLookeRiachuelo",e[e.Roku=95]="Roku",e[e.SiteLookeViuReview=96]="SiteLookeViuReview",e[e.Stenna=97]="Stenna",e[e.SiteLookeRoku=98]="SiteLookeRoku",e[e.SiteLookeLivelo=99]="SiteLookeLivelo",e[e.SiteLookeVarilux=100]="SiteLookeVarilux",e[e.CinemaVirtual=101]="CinemaVirtual",e[e.SiteLooke_MostraCinemaReflexao=102]="SiteLooke_MostraCinemaReflexao",e[e.VivoMobile=103]="VivoMobile",e[e.SiteLookeCinemaItaliano=104]="SiteLookeCinemaItaliano",e[e.SiteLookePrime=105]="SiteLookePrime",e[e.SiteLookeETudoVerdade=106]="SiteLookeETudoVerdade",e[e.PreventSenior=107]="PreventSenior",e[e.SiteLookeBancoNext=108]="SiteLookeBancoNext"}(n||(n={}));var h,b=n,g=r("lOkQ");!function(e){e.Chrome="Chrome",e.IExplorer="IExplorer",e.Firefox="Firefox",e.Safari="Safari",e.Opera="Opera",e.Edge="Edge",e.NotFound="NotFound"}(h||(h={}));var S=function(){var e=navigator.userAgent,t=e.indexOf("Chrome")>-1,r=e.indexOf("MSIE")>-1||e.indexOf("rv:")>-1,n=e.indexOf("Firefox")>-1,a=e.indexOf("Safari")>-1;t&&a&&(a=!1);var o=e.indexOf("OP")>-1;return t&&o&&(t=!1),e.indexOf("Microsoft Edge")>-1||e.indexOf("Edg/")>-1?h.Edge:t?h.Chrome:r?h.IExplorer:n?h.Firefox:a?h.Safari:o?h.Opera:h.NotFound},I=r("LeJ0"),O=r("vDqi"),k=r.n(O);function _(){return(_=Object(v.a)(p.a.mark((function e(t){return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,k.a.post("".concat(I.a.heartbeat.apiUrl,"/beat"),t);case 3:if(200===e.sent.status){e.next=6;break}throw Error("beatResponse.status !== 200");case 6:return e.abrupt("return",!0);case 9:return e.prev=9,e.t0=e.catch(0),console.log("beat failed",e.t0,t),e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e,null,[[0,9]])})))).apply(this,arguments)}var w,P=function(e){return _.apply(this,arguments)};!function(e){e.Windows="windows",e.Mac="Mac",e.Unix="Unix",e.Linux="Linux",e.Unknown="Unknown"}(w||(w={}));var C=function(){var e=window.navigator.userAgent,t=w.Unknown,r="Unknown";return-1!=e.indexOf("Windows NT 10.0")&&(t=w.Windows,r="10"),-1!=e.indexOf("Windows NT 6.2")&&(t=w.Windows,r="8"),-1!=e.indexOf("Windows NT 6.1")&&(t=w.Windows,r="7"),-1!=e.indexOf("Windows NT 6.0")&&(t=w.Windows,r="Vista"),-1!=e.indexOf("Windows NT 5.1")&&(t=w.Windows,r="XP"),-1!=e.indexOf("Windows NT 5.0")&&(t=w.Windows,r="2000"),-1!=e.indexOf("Mac")&&(t=w.Mac,r=""),-1!=e.indexOf("X11")&&(t=w.Unix,r=""),-1!=e.indexOf("Linux")&&(t=w.Linux,r=""),{type:t,version:r}},T=o.a.createElement,E=function(e){var t=e.userId,r=e.mediaId,n=e.orderItemId,s=e.transactionType,u=e.sessionClientId,l=e.deviceType,c=Object(a.useRef)(0),d=Object(a.useRef)(g.a.Loading),f=Object(a.useRef)(0),p=Object(a.useRef)(0),v=Object(i.b)(),m=v.timeInSeconds,b=v.playbackStatus,O=v.bandwidth,k=JSON.parse(localStorage.getItem(y.b.Profile)||"{}"),_=Object(a.useMemo)((function(){return C()}),[]),w=Object(a.useMemo)((function(){var e=S(),t="Dash";return e===h.Safari&&(t="HLS"),"".concat(e," ").concat(t)}),[]),E=function(){var e,a;d.current!==g.a.Playing||c.current<=f.current||(P({userId:t,mediaId:r,orderItemId:n,transactionType:s,sessionClientId:u,position:1e3*c.current,bitRate:null!==(e=p.current)&&void 0!==e?e:0,deviceType:l,deviceOS:_.type,deviceOSVersion:_.version,playerName:w,profileId:null!==(a=null===k||void 0===k?void 0:k.id)&&void 0!==a?a:""}),f.current=c.current)};return Object(a.useEffect)((function(){var e=setInterval(E,1e3*I.a.heartbeat.intervalInSeconds);return function(){return clearInterval(e)}}),[]),Object(a.useEffect)((function(){c.current=m}),[m]),Object(a.useEffect)((function(){d.current=b,p.current=O}),[b,O]),T(o.a.Fragment,null)},j=r("cpVT"),x=r("a6RD"),N=r.n(x),D=o.a.createElement,L=N()((function(){return r.e(111).then(r.bind(null,"fJZH"))}),{ssr:!1,loadableGenerated:{webpack:function(){return["fJZH"]},modules:["@core-player/components/HLSPlayer"]}}),M=N()((function(){return Promise.all([r.e(72),r.e(0),r.e(112)]).then(r.bind(null,"GXj+"))}),{ssr:!1,loadableGenerated:{webpack:function(){return["GXj+"]},modules:["@core-player/components/ShakaPlayer"]}});var R=function(e){var t=e.configuration,r=e.textTracks,n=e.mediaId,o=e.lastPosition;return Object(a.useMemo)((function(){return function(e){var t,r=e.configuration,n=e.textTracks,a=e.mediaId,o=e.lastPosition;return(t={},Object(j.a)(t,"".concat(h.Safari),D(L,{configuration:r,textTracks:n,mediaId:a,lastPosition:o})),Object(j.a)(t,"".concat(h.Chrome),D(M,{configuration:r,textTracks:n,mediaId:a,lastPosition:o})),Object(j.a)(t,"".concat(h.Firefox),D(M,{configuration:r,textTracks:n,mediaId:a,lastPosition:o})),Object(j.a)(t,"".concat(h.Opera),D(M,{configuration:r,textTracks:n,mediaId:a,lastPosition:o})),Object(j.a)(t,"".concat(h.IExplorer),D(M,{configuration:r,textTracks:n,mediaId:a,lastPosition:o})),t)[S()]||D(M,{configuration:r,textTracks:n,mediaId:a,lastPosition:o})}({configuration:t,textTracks:r,mediaId:n,lastPosition:o})}),[])},A=r("tEFk"),U=r.n(A),F=r("aUsF"),B=r.n(F),G=r("D+Oc"),V=r.n(G),W=Object.defineProperty,H=Object.defineProperties,q=Object.getOwnPropertyDescriptors,K=Object.getOwnPropertySymbols,J=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,z=(e,t,r)=>t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Q=(e,t)=>{for(var r in t||(t={}))J.call(t,r)&&z(e,r,t[r]);if(K)for(var r of K(t))Y.call(t,r)&&z(e,r,t[r]);return e},X=(e,t)=>H(e,q(t));function Z(e={}){return X(Q({},e),{height:0,width:0,playerVars:X(Q({},e.playerVars),{autoplay:0,start:0,end:0})})}var $={videoId:U.a.string,id:U.a.string,className:U.a.string,iframeClassName:U.a.string,style:U.a.object,title:U.a.string,loading:U.a.oneOf(["lazy","eager"]),opts:U.a.objectOf(U.a.any),onReady:U.a.func,onError:U.a.func,onPlay:U.a.func,onPause:U.a.func,onEnd:U.a.func,onStateChange:U.a.func,onPlaybackRateChange:U.a.func,onPlaybackQualityChange:U.a.func},ee=class extends o.a.Component{constructor(e){super(e),this.destroyPlayerPromise=void 0,this.onPlayerReady=e=>{var t,r;return null==(r=(t=this.props).onReady)?void 0:r.call(t,e)},this.onPlayerError=e=>{var t,r;return null==(r=(t=this.props).onError)?void 0:r.call(t,e)},this.onPlayerStateChange=e=>{var t,r,n,a,o,i,s,u;switch(null==(r=(t=this.props).onStateChange)||r.call(t,e),e.data){case ee.PlayerState.ENDED:null==(a=(n=this.props).onEnd)||a.call(n,e);break;case ee.PlayerState.PLAYING:null==(i=(o=this.props).onPlay)||i.call(o,e);break;case ee.PlayerState.PAUSED:null==(u=(s=this.props).onPause)||u.call(s,e)}},this.onPlayerPlaybackRateChange=e=>{var t,r;return null==(r=(t=this.props).onPlaybackRateChange)?void 0:r.call(t,e)},this.onPlayerPlaybackQualityChange=e=>{var t,r;return null==(r=(t=this.props).onPlaybackQualityChange)?void 0:r.call(t,e)},this.destroyPlayer=()=>this.internalPlayer?(this.destroyPlayerPromise=this.internalPlayer.destroy().then(()=>this.destroyPlayerPromise=void 0),this.destroyPlayerPromise):Promise.resolve(),this.createPlayer=()=>{if("undefined"===typeof document)return;if(this.destroyPlayerPromise)return void this.destroyPlayerPromise.then(this.createPlayer);const e=X(Q({},this.props.opts),{videoId:this.props.videoId});this.internalPlayer=V()(this.container,e),this.internalPlayer.on("ready",this.onPlayerReady),this.internalPlayer.on("error",this.onPlayerError),this.internalPlayer.on("stateChange",this.onPlayerStateChange),this.internalPlayer.on("playbackRateChange",this.onPlayerPlaybackRateChange),this.internalPlayer.on("playbackQualityChange",this.onPlayerPlaybackQualityChange),(this.props.title||this.props.loading)&&this.internalPlayer.getIframe().then(e=>{this.props.title&&e.setAttribute("title",this.props.title),this.props.loading&&e.setAttribute("loading",this.props.loading)})},this.resetPlayer=()=>this.destroyPlayer().then(this.createPlayer),this.updatePlayer=()=>{var e;null==(e=this.internalPlayer)||e.getIframe().then(e=>{this.props.id?e.setAttribute("id",this.props.id):e.removeAttribute("id"),this.props.iframeClassName?e.setAttribute("class",this.props.iframeClassName):e.removeAttribute("class"),this.props.opts&&this.props.opts.width?e.setAttribute("width",this.props.opts.width.toString()):e.removeAttribute("width"),this.props.opts&&this.props.opts.height?e.setAttribute("height",this.props.opts.height.toString()):e.removeAttribute("height"),this.props.title?e.setAttribute("title",this.props.title):e.setAttribute("title","YouTube video player"),this.props.loading?e.setAttribute("loading",this.props.loading):e.removeAttribute("loading")})},this.getInternalPlayer=()=>this.internalPlayer,this.updateVideo=()=>{var e,t,r,n;if("undefined"===typeof this.props.videoId||null===this.props.videoId)return void(null==(e=this.internalPlayer)||e.stopVideo());let a=!1;const o={videoId:this.props.videoId};(null==(t=this.props.opts)?void 0:t.playerVars)&&(a=1===this.props.opts.playerVars.autoplay,"start"in this.props.opts.playerVars&&(o.startSeconds=this.props.opts.playerVars.start),"end"in this.props.opts.playerVars&&(o.endSeconds=this.props.opts.playerVars.end)),a?null==(r=this.internalPlayer)||r.loadVideoById(o):null==(n=this.internalPlayer)||n.cueVideoById(o)},this.refContainer=e=>{this.container=e},this.container=null,this.internalPlayer=null}componentDidMount(){this.createPlayer()}componentDidUpdate(e){return t=this,r=null,n=function*(){(function(e,t){var r,n,a,o;return e.id!==t.id||e.className!==t.className||(null==(r=e.opts)?void 0:r.width)!==(null==(n=t.opts)?void 0:n.width)||(null==(a=e.opts)?void 0:a.height)!==(null==(o=t.opts)?void 0:o.height)||e.iframeClassName!==t.iframeClassName||e.title!==t.title})(e,this.props)&&this.updatePlayer(),function(e,t){return e.videoId!==t.videoId||!B()(Z(e.opts),Z(t.opts))}(e,this.props)&&(yield this.resetPlayer()),function(e,t){var r,n;if(e.videoId!==t.videoId)return!0;const a=(null==(r=e.opts)?void 0:r.playerVars)||{},o=(null==(n=t.opts)?void 0:n.playerVars)||{};return a.start!==o.start||a.end!==o.end}(e,this.props)&&this.updateVideo()},new Promise((e,a)=>{var o=e=>{try{s(n.next(e))}catch(t){a(t)}},i=e=>{try{s(n.throw(e))}catch(t){a(t)}},s=t=>t.done?e(t.value):Promise.resolve(t.value).then(o,i);s((n=n.apply(t,r)).next())});var t,r,n}componentWillUnmount(){this.destroyPlayer()}render(){return o.a.createElement("div",{className:this.props.className,style:this.props.style},o.a.createElement("div",{id:this.props.id,className:this.props.iframeClassName,ref:this.refContainer}))}},te=ee;te.propTypes=$,te.defaultProps={videoId:"",id:"",className:"",iframeClassName:"",style:{},title:"",loading:void 0,opts:{},onReady:()=>{},onError:()=>{},onPlay:()=>{},onPause:()=>{},onEnd:()=>{},onStateChange:()=>{},onPlaybackRateChange:()=>{},onPlaybackQualityChange:()=>{}},te.PlayerState={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5};var re,ne=te,ae=r("gwmS"),oe=r.n(ae),ie=o.a.createElement,se=function(e){var t=e.title,r=Object(m.useRouter)();return ie("div",{className:oe.a.TitleWrapper},ie("div",{className:oe.a.contentTitle,title:"Voltar"},ie("img",{className:oe.a.backNavigation,src:"/assets/images/player/backnavigation.svg",alt:"Back Navigation",onClick:function(){return r.back()}}),ie("p",{className:oe.a.title},t)))},ue=o.a.createElement;!function(e){e[e.NotStarted=-1]="NotStarted",e[e.Ended=0]="Ended",e[e.Playing=1]="Playing",e[e.Paused=2]="Paused",e[e.Buffering=3]="Buffering",e[e.Cued=5]="Cued"}(re||(re={}));var le=function(e){var t=e.deviceType,r=e.mediaId,n=e.orderItemId,i=e.sessionClientId,s=e.transactionType,u=e.userId,l=e.youtubeId,c=e.startTimeInMiliSeconts,d=Object(a.useState)(!1),f=d[0],p=d[1],v=Object(a.useRef)(0),m=Object(a.useRef)(null),h=Object(a.useMemo)((function(){return C()}),[]),b=JSON.parse(localStorage.getItem(y.b.Profile)||"{}"),g=Object(a.useMemo)((function(){var e=S();return"".concat(e," ").concat("Youtube")}),[]),O={playerVars:{autoplay:1,rel:0,start:c?c/1e3:0},width:"100%",height:"100%"};Object(a.useEffect)((function(){if(f){var e=setTimeout((function(){return p(!1)}),3300);return function(){return clearTimeout(e)}}}),[f]),Object(a.useEffect)((function(){return function(){m.current&&clearInterval(m.current)}}),[]);var k=function(e,a){var o;a!==re.Playing||e<=v.current||(console.log(a,e),P({userId:u,mediaId:r,orderItemId:n,transactionType:s,sessionClientId:i,position:1e3*Math.floor(e),bitRate:0,deviceType:t,deviceOS:h.type,deviceOSVersion:h.version,playerName:g,profileId:null!==(o=null===b||void 0===b?void 0:b.id)&&void 0!==o?o:""}),v.current=Math.floor(e))};return ue(o.a.Fragment,null,f&&ue(se,null),ue("div",{style:{width:"100%",height:"100%",position:"relative"},onMouseMove:function(){p(!0)}},ue(ne,{videoId:l,opts:O,style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},onReady:function(e){m.current=setInterval((function(){var t=e.target.getCurrentTime(),r=e.target.getPlayerState();k(t,r)}),1e3*I.a.heartbeat.intervalInSeconds)}})))},ce=r("xvhg"),de=r("H+61"),fe=r("UlJF"),pe=r("RC5v");function ve(e){return me.apply(this,arguments)}function me(){return(me=Object(v.a)(p.a.mark((function e(t){var r,n,a,o,i,s,u,l;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.mediaId,n={MediaId:r,AuthenticationTicket:I.a.api.secret},e.next=4,pe.b.post("/GetConcurrent",n);case 4:return a=e.sent,o=a.data,0,i=0===o.GetConcurrentResult.Result&&!1===o.GetConcurrentResult.Block,s="",u="",i||(s="You are already using you limite of ".concat(o.GetConcurrentResult.Count,"/").concat(o.GetConcurrentResult.Max),u="limitConcurrentDevices"),l={success:i,message:s,messageCode:u,resultCode:o.GetConcurrentResult.Result},e.abrupt("return",l);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ye,he=r("voTe"),be=r("HE+r"),ge=r("I009"),Se=r("KyXm"),Ie=r("zuMC"),Oe=r("TQwL"),ke=r("aCfr"),_e=r("2FwC"),we=r("5Ki7"),Pe=r("PKM/"),Ce=r("31HF");!function(e){e.Subtitles="subtitles",e.Captions="captions",e.Descriptions="descriptions",e.Chapters="chapters"}(ye||(ye={}));var Te=ye;var Ee=function(e){var t,r,n,a,o,i,s,u,l,c,d,f,p,v,m,y,h,b,g,S,I,O,k,_,w,P,C,T,E,j,x;if(e.FindMediaResult){var N=e.FindMediaResult.Movies[0],D={};null===(t=N.Images)||void 0===t||t.forEach((function(e){D["".concat(e.TypeId)]=e.Url.replace("http://","https://")}));var L=[];null===(r=N.Metadata)||void 0===r||null===(n=r.Actors)||void 0===n||n.forEach((function(e){L.push(e.Name)}));var M=[];null===(a=N.Metadata)||void 0===a||null===(o=a.Directors)||void 0===o||o.forEach((function(e){M.push(e.Name)}));var R=(null===(i=N.Metadata)||void 0===i||null===(s=i.Genres)||void 0===s?void 0:s.map((function(e){return e.Name})))||[],A=[];null===(u=N.FileInfo)||void 0===u||u.Subtitles.map((function(e){A.push({kind:Te.Subtitles,label:e.Code||"",srcLang:e.Name||"",src:e.UrlVTT.replace("http://","https://")||""})}));var U=null===(l=N.Childs)||void 0===l?void 0:l.map((function(e){var t,r,n,a;return{id:e.Id,youtubeId:null!==(t=e.YoutubeId)&&void 0!==t?t:"",description:e.Metadata.Description,synopsis:e.Metadata.Synopsis,distributor:e.Metadata.Distributor.Name,audios:e.FileInfo.Audios,images:D,slug:(null===(r=e.Metadata)||void 0===r?void 0:r.UniqueUrl)||"details",title:e.FullTitle,trailerUrl:e.Metadata.TrailerUrl.replace("http://","https://"),frameImage:e.Smooth.TimeFrameUrl?e.Smooth.TimeFrameUrl.replace("http://","https://"):"",directors:M,actors:L,rating:e.Metadata.AverageRating?e.Metadata.AverageRating:0,censure:{age:null!==(n=e.Metadata.Censure.Age)&&void 0!==n?n:0,descriptors:null!==(a=e.Metadata.Censure.Descriptors)&&void 0!==a?a:[],autoRating:e.Metadata.Censure.AutoRating},year:e.Metadata.Year,duration:e.FileInfo.Duration,country:e.Metadata.Country,dubbedInfo:e.FileInfo.DubbedInfo,definition:e.FileInfo.Definition,genres:R,serieInfo:e.SerieInfo.EpisodeName?{episodeName:e.SerieInfo.EpisodeName}:{}}}));U=U||[];var F,B,G,V,W,H,q,K,J,Y,z=null;if(N.Smooth)z={KID:(null===(F=N.Smooth)||void 0===F?void 0:F.KID)||"",KIDGuid:(null===(B=N.Smooth)||void 0===B?void 0:B.KIDGuid)||"",TimeFrame:{Url:(null===(G=N.Smooth)||void 0===G||null===(V=G.TimeFrameUrl)||void 0===V?void 0:V.replace("http://","https://"))||"",Distance:(null===(W=N.Smooth)||void 0===W?void 0:W.TimeFrameDistance)||0},URLs:{Dash:(null===(H=N.Smooth)||void 0===H||null===(q=H.UrlDashStreaming)||void 0===q?void 0:q.replace("http://","https://"))||"",HLS:(null===(K=N.Smooth)||void 0===K||null===(J=K.UrlHLS)||void 0===J?void 0:J.replace("http://","https://"))||""}};if((null===N||void 0===N||null===(c=N.PlayDetails)||void 0===c?void 0:c.LastPosition)&&(null===N||void 0===N||null===(d=N.FileInfo)||void 0===d?void 0:d.Duration)){var Q=N.PlayDetails.LastPosition/6e4/N.FileInfo.Duration*100;Y=Math.round(100*Q)/100}return{id:N.Id,description:(null===(f=N.Metadata)||void 0===f?void 0:f.Description)||"",youtubeId:null!==(p=N.YoutubeId)&&void 0!==p?p:"",synopsis:(null===(v=N.Metadata)||void 0===v?void 0:v.Synopsis)||"",distributor:(null===(m=N.Metadata)||void 0===m?void 0:m.Distributor.Name)||"",audios:(null===(y=N.FileInfo)||void 0===y?void 0:y.Audios)||[],subtitles:A,currentPercentage:Y||0,lastPosition:(null===(h=N.PlayDetails)||void 0===h?void 0:h.LastPosition)||0,images:D,slug:(null===(b=N.Metadata)||void 0===b?void 0:b.UniqueUrl)||"details",title:N.FullTitle||"",trailerUrl:(null===(g=N.Metadata)||void 0===g?void 0:g.TrailerUrl.replace("http://","https://"))||"",directors:M,actors:L,rating:(null===(S=N.Metadata)||void 0===S?void 0:S.AverageRating)?null===(I=N.Metadata)||void 0===I?void 0:I.AverageRating:0,censure:{age:null!==(O=null===(k=N.Metadata)||void 0===k?void 0:k.Censure.Age)&&void 0!==O?O:0,descriptors:null!==(_=null===(w=N.Metadata)||void 0===w?void 0:w.Censure.Descriptors)&&void 0!==_?_:[],autoRating:null===(P=N.Metadata)||void 0===P?void 0:P.Censure.AutoRating},year:(null===(C=N.Metadata)||void 0===C?void 0:C.Year)||0,duration:(null===(T=N.FileInfo)||void 0===T?void 0:T.Duration)||0,country:(null===(E=N.Metadata)||void 0===E?void 0:E.Country)||"",dubbedInfo:(null===(j=N.FileInfo)||void 0===j?void 0:j.DubbedInfo)||0,definition:(null===(x=N.FileInfo)||void 0===x?void 0:x.Definition)||"",genres:R,child:U,streaming:z}}},je=r("ytbN"),xe=r("f8Ye");function Ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function De(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(r),!0).forEach((function(t){Object(j.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Le(e){return Me.apply(this,arguments)}function Me(){return(Me=Object(v.a)(p.a.mark((function e(t){var r,n,a,o,i,s,u;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,n=t.deviceId,a={Criteria:{MediaType:Oe.a.Content|Oe.a.Episode|Oe.a.Movie|Oe.a.Clip,MediaId:r},Entities:[{EntityName:ke.a.Subtitles,EntityProperties:[we.a.Code,we.a.Name,we.a.UrlVTT,we.a.UrlSRT].join("|")}],Groups:[{GroupName:he.a.SerieInfo,GroupProperties:[Pe.a.EpisodeName,Pe.a.Position].join("|")},{GroupName:he.a.FileInfo,GroupProperties:[Ce.a.Subtitles,Ce.a.Duration,Ce.a.CreditStartsAt].join("|")},{GroupName:he.a.Smooth,GroupProperties:[je.a.KID,je.a.TimeFrameUrl,je.a.TimeFrameDistance,je.a.UrlDashStreaming,je.a.UrlHLS,je.a.KIDGuid].join("|")},{GroupName:he.a.Images,GroupProperties:[_e.a.TypeId,_e.a.Url].join("|")},{GroupName:he.a.PlayDetails,GroupProperties:[xe.a.LastPosition,xe.a.Status].join("|")}],Options:{BoxBehavior:ge.a.SingleList,DeviceID:n,FillSiblings:!1,FillSiblingsChilds:!1,ImageTypeIds:[be.a.Thumb335,be.a.FeaturedBanner],IncludeCinemaItens:!0,IncludeNullPriceItens:!0,IncludePlayInfo:!0,OnlyEnabledItens:!1,OnlySVODItens:!1,PageNumber:0,RecordsPerPage:1,SortCriteria:Se.a.None,SortOrder:Ie.a.Desc,UseApplePriceBRL:!0},AuthenticationTicket:I.a.api.secret},e.next=4,pe.a.post("/FindMediaWithUserInformation",a);case 4:if(o=e.sent,(i=o.data).FindMediaResult&&0===i.FindMediaResult.Result){e.next=8;break}throw new Error("Ocorreu um erro ao carregar o conte\xfado");case 8:return s=De({FindMediaResult:i.FindMediaResult},i),u=Ee(s),e.abrupt("return",u);case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Re,Ae=function(e){var t=e.EntitleResult;return{orderId:t.OrderID,orderItemId:t.OrderItemId,transactionType:t.TransactionType}};function Ue(e){return Fe.apply(this,arguments)}function Fe(){return(Fe=Object(v.a)(p.a.mark((function e(t){var r,n,a,o,i,s;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.mediaId,n=t.transactionSource,a={MediaId:r,TransactionSource:n,AuthenticationTicket:I.a.api.secret},e.next=4,pe.b.post("/Entitle",a);case 4:if(o=e.sent,0===(i=o.data).EntitleResult.Result){e.next=8;break}return e.abrupt("return",[i.EntitleResult.Result,null]);case 8:return s=Ae(i),e.abrupt("return",[null,s]);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Be(e){return Ge.apply(this,arguments)}function Ge(){return(Ge=Object(v.a)(p.a.mark((function e(t){var r,n,a,o,i;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.deviceId,n=t.useDate,a={UseDate:void 0===n||n,DeviceId:r,AuthenticationTicket:I.a.api.secret},e.next=4,pe.b.post("/GetCodedInfo",a);case 4:if(o=e.sent,0===(i=o.data).GetCodedInfoResult.Result){e.next=8;break}throw new Error("Error obtaining coded info data");case 8:return e.abrupt("return",{deviceIdEncoded:i.GetCodedInfoResult.deviceIdCoded,userIdEncoded:i.GetCodedInfoResult.userIdCoded});case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function We(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(r),!0).forEach((function(t){Object(j.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ve(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}!function(e){e.Startup="playerStartupError"}(Re||(Re={}));var He=function(){function e(t){var r=t._userId,n=t._deviceId,a=t._mediaId,o=t._transactionSource,i=t._useDateInEncodedDeviceId,s=void 0===i||i;Object(de.a)(this,e),this.deviceId=n,this.userId=r,this.mediaId=a,this.transactionSource=o,this.useDateInEncodedDeviceId=s}return Object(fe.a)(e,[{key:"execute",value:function(){var e=Object(v.a)(p.a.mark((function e(){var t,r,n,a,o;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadMedia();case 2:return t=e.sent,e.next=5,this.executeEntitle();case 5:return r=e.sent,e.next=8,this.executeConcurrent();case 8:return n=e.sent,a=n.deviceIdEncoded,o=n.userIdEncoded,e.abrupt("return",{authorizationOrder:r,deviceIdEncoded:a,userIdEncoded:o,media:t});case 12:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"loadMedia",value:function(){var e=Object(v.a)(p.a.mark((function e(){var t;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Le({deviceId:this.deviceId,id:this.mediaId});case 3:return t=e.sent,e.abrupt("return",t);case 7:e.prev=7,e.t0=e.catch(0),this.trackError({errorMessageCode:"mediaNotFound",errorMessageForTrack:"Error loading midia",supportData:{mediaId:this.mediaId,userId:this.userId,deviceId:this.deviceId}});case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));return function(){return e.apply(this,arguments)}}()},{key:"executeEntitle",value:function(){var e=Object(v.a)(p.a.mark((function e(){var t,r,n,a,o;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={mediaId:this.mediaId,transactionSource:this.transactionSource},e.next=3,Ue(t);case 3:return r=e.sent,n=Object(ce.a)(r,2),a=n[0],o=n[1],a&&this.trackError({errorMessageForTrack:"Error in entitle",supportData:We({userId:this.userId},t)}),e.abrupt("return",o);case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"executeConcurrent",value:function(){var e=Object(v.a)(p.a.mark((function e(){var t,r,n,a;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Be({deviceId:this.deviceId,useDate:this.useDateInEncodedDeviceId});case 2:return t=e.sent,r=t.deviceIdEncoded,n=t.userIdEncoded,e.next=7,ve({mediaId:this.mediaId});case 7:return(a=e.sent).success||this.trackError({errorMessageForTrack:"Error in getConcurrent",supportData:{userId:this.userId,mediaId:this.mediaId,concurrentResult:a}}),e.abrupt("return",{deviceIdEncoded:r,userIdEncoded:n});case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"trackError",value:function(e){var t=e.errorMessageCode,r=void 0===t?Re.Startup:t,n=e.errorMessageForTrack,a=e.supportData,o=e.throwException,i=void 0===o||o;if(console.log("Error: ".concat(n)),console.log("data: ",a),i)throw new Error(r)}}]),e}(),qe=r("aOGj"),Ke=r("x/M8"),Je=r("lRNq"),Ye=r.n(Je),ze=o.a.createElement,Qe=function(e){var t=e.handleSkipMediaTo,r=Object(a.useState)(!1),n=r[0],o=r[1],i=Object(a.useState)(!1),s=i[0],u=i[1],l=function(e){"backward"===e?o(!0):u(!0)};return Object(a.useEffect)((function(){setTimeout((function(){!0===n&&o(!1)}),800)}),[n]),Object(a.useEffect)((function(){setTimeout((function(){!0===s&&u(!1)}),800)}),[s]),ze("div",{className:Ye.a.skip},ze("ul",null,ze("li",{onClick:function(){return t(Ke.a.Backward)}},ze("img",{className:Ye.a.replayicon,src:"/assets/images/player/backward.svg",onClick:function(){return l("backward")}}),ze("img",{className:"".concat(Ye.a.replayAnimation," ").concat(n?Ye.a.animateFadeOutDown:""),src:"/assets/images/player/backward.svg"})),ze("li",{onClick:function(){return t(Ke.a.Forward)}},ze("img",{className:Ye.a.replayicon,src:"/assets/images/player/forward.svg",onClick:function(){return l("forward")}}),ze("img",{className:"".concat(Ye.a.forwardAnimation," ").concat(s?Ye.a.animateFadeOutDown:""),src:"/assets/images/player/forward.svg"}))))},Xe=r("XCn0"),Ze=r.n(Xe),$e=o.a.createElement,et=function(e){var t=e.playing,r=void 0!==t&&t,n=e.handlePlayPause;return $e("div",{className:Ze.a.playPause},$e("img",r?{src:"/assets/images/player/pause.svg",onClick:function(){return n()}}:{src:"/assets/images/player/play.svg",onClick:function(){return n()}}))},tt=r("kZKI"),rt=r.n(tt),nt=o.a.createElement,at=function(e){var t=e.currentVolume,r=e.handleChangeVolume,n=Object(a.useState)(t),o=n[0],i=n[1];return nt("div",{className:rt.a.volume},nt("div",{className:rt.a.volumeIconWrapper},nt("div",{onClick:function(){return r(0===t?o:0)}},nt("img",0===t?{className:rt.a.volumeIcon,src:"/assets/images/player/muteicon.svg"}:{className:rt.a.volumeIcon,src:"/assets/images/player/volume3.svg"})),nt("div",{className:rt.a.volumeHelperArea},nt("div",{className:rt.a.volumeBarWarpper},nt("div",{className:rt.a.volumeBar,onClick:function(e){!function(e){e.persist();var t=e.currentTarget.offsetWidth,n=e.nativeEvent.offsetX/t*100;i(n),r(n)}(e)}},nt("div",{className:rt.a.currentVolumeBar,style:{width:"".concat(t,"%")}}))))))},ot=r("sHIJ"),it=r.n(ot),st=o.a.createElement,ut=function(e){var t=e.containerElement;return st("div",{className:it.a.fullscreen,onClick:function(){var e=t.current;e.requestFullscreen?document.fullscreenElement?document.exitFullscreen():"function"===typeof e.requestFullscreen&&e.requestFullscreen():e.webkitRequestFullscreen?document.webkitFullscreenElement?document.webkitExitFullscreen():e.webkitRequestFullScreen():console.log("Fullscreen API is not supported")}},st("img",{src:"/assets/images/player/fullscreen.svg"}))},lt=r("/+u3"),ct=r.n(lt),dt=o.a.createElement,ft=function(){var e=Object(i.b)(),t=e.events,r=e.audioTracks,n=e.selectedAudioTrack,a=e.selectedSubtitle,o=e.subtitles;return dt("div",{className:ct.a.subtitle},dt("div",{className:ct.a.subtitleIconWrapper},dt("img",{className:ct.a.subtitleIcon,src:"/assets/images/player/subtitle.svg"}),dt("div",{className:ct.a.subtitleHelperArea},dt("div",{className:ct.a.subtitleBarWarpper},dt("div",{className:ct.a.languageMenu},dt("ul",null,dt("li",{className:ct.a.listTitle},"Idioma"),r&&r.map((function(e,r){return dt("li",{key:r,className:" ".concat(n===e?ct.a.menuActive:""),onClick:function(){return function(e){t.trigger(qe.a.SelectAudioTrack,{track:e})}(e)}},e)})))),dt("div",{className:ct.a.subtitleMenu},dt("ul",null,dt("li",{className:ct.a.listTitle},"Legenda"),o.map((function(e,r){return dt("li",{key:r,className:"".concat(a==e?ct.a.menuActive:""),onClick:function(){return r=e,void t.trigger(qe.a.SelectSubtitle,{lang:r});var r}},e)}))))))))},pt=r("7081"),vt=r.n(pt),mt=r("qwH6"),yt=r.n(mt),ht=o.a.createElement,bt=function(e){var t=e.position,r=e.time,n=e.urlThumb,a=(e.thumbInterval,e.maxTimeInSeconds),o=e.currentPlayedPercentage;var i=100/Math.floor(1e3*a/1e4),s=1e4*Math.round(o/i),u=n.replace("{0}","".concat(s));return ht("div",{style:{left:"calc(".concat(t,"% - 125px)")},className:yt.a.seekBallon},ht("img",{src:u,alt:"movie preview"}),ht("p",null,r))},gt=o.a.createElement,St=function(e){var t=e.currentTimeInSeconds,r=e.maxTimeInSeconds,n=e.handleSeekMedia,o=e.urlThumb,i=e.thumbInterval,s=Object(a.useState)(0),u=s[0],l=s[1],c=Object(a.useState)(0),d=c[0],f=c[1],p=Object(a.useState)(""),v=p[0],m=p[1],y=Object(a.useState)(),h=y[0],b=y[1],g=Object(a.useState)(),S=g[0],I=g[1];Object(a.useEffect)((function(){I(O(r))}),[r]),Object(a.useEffect)((function(){var e=O(d/100*r);m(e)}),[d]),Object(a.useEffect)((function(){t&&r&&(l(t/r*100),b(O(t)))}),[t,r]);var O=function(e){var t=parseInt(e,10);return[Math.floor(t/3600),Math.floor(t/60)%60,t%60].map((function(e){return e<10?"0"+e:e})).join(":")};return gt("div",{className:vt.a.progressBarWrapper},gt("div",{className:vt.a.progressBarLeftWrapper,onMouseMove:function(e){!function(e){e.persist();var t=e.currentTarget.offsetWidth,r=e.nativeEvent.offsetX;f(r/t*100)}(e)}},gt("div",{className:vt.a.progressBar,onClick:function(e){!function(e){e.persist();var t=e.currentTarget.offsetWidth,r=e.nativeEvent.offsetX/t*100;l(r),n(r)}(e)}},gt("div",{className:vt.a.progrees,style:{width:"".concat(u,"%")}})),gt("div",{className:vt.a.seekBallonWrapper},gt(bt,{thumbInterval:i,position:d,time:v,urlThumb:o,maxTimeInSeconds:r,currentPlayedPercentage:d}))),gt("div",{className:vt.a.timer},gt("p",null,h||"00:00:00","/ ",S||"00:00:00")))},It=r("+2XC"),Ot=r.n(It),kt=o.a.createElement,_t=function(e){var t=e.containerElement,r=e.urlThumb,n=e.thumbInterval,o=Object(i.b)(),s=o.events,u=o.playbackStatus,l=o.volume,c=o.maxTimeInSeconds,d=o.timeInSeconds,f=o.adBlockDetected,p=o.buffering,v=o.imaLoaded,m=Object(a.useState)(!0),y=m[0],h=m[1],b=Object(a.useState)(!1),S=b[0],I=b[1];return Object(a.useEffect)((function(){f||p||!v||(h(!1),s.trigger(qe.a.Play),I(!0))}),[f,p,v]),Object(a.useEffect)((function(){y||(u===g.a.Playing?I(!0):u===g.a.Paused&&I(!1))}),[u]),kt("div",{className:Ot.a.controlsBar},kt("div",{className:Ot.a.controlsTop},kt(St,{urlThumb:r,currentTimeInSeconds:d,maxTimeInSeconds:c,handleSeekMedia:function(e){var t=e/100*c;s.trigger(qe.a.Seek,{destinyTimeInSeconds:t})},thumbInterval:n})),kt("div",{className:Ot.a.controlsBottom},kt("div",{className:Ot.a.controlsBottomLeft},kt(et,{handlePlayPause:function(){S?(s.trigger(qe.a.Pause),I(!1)):(s.trigger(qe.a.Play),I(!0))},playing:S}),kt(Qe,{handleSkipMediaTo:function(e){s.trigger(qe.a.SeekVideoTenSeconds,{destination:e})}}),kt(at,{currentVolume:l,handleChangeVolume:function(e){s.trigger(qe.a.ChangeVolume,{toVolume:Number(e)})}})),kt("div",{className:Ot.a.controlsBottomRight},kt(ft,null),kt(ut,{containerElement:t}))))},wt=r("nzXM"),Pt=r.n(wt),Ct=o.a.createElement,Tt=function(e){var t=e.title,r=Object(m.useRouter)();return Ct("div",{className:Pt.a.TitleWrapper},Ct("div",{className:Pt.a.contentTitle},Ct("img",{className:Pt.a.backNavigation,src:"/assets/images/player/backnavigation.svg",alt:"Back Navigation",onClick:function(){return r.back()}}),Ct("p",{className:Pt.a.title},t)))},Et=r("zrpz"),jt=r.n(Et),xt=r("dktV"),Nt=o.a.createElement,Dt=function(e){var t=e.children,r=e.title,n=e.timelineThumbsUrlTemplate,s=e.timeLineThumbsIntervalInMilliseconds,u=Object(a.useState)(!0),l=u[0],c=u[1],d=Object(i.b)(),f=d.adsInProgress,p=d.adBlockDetected,v=d.buffering,m=d.setIsFullScreen;Object(a.useEffect)((function(){if(!0===l){var e=setTimeout((function(){return c(!1)}),1e4);return function(){return clearTimeout(e)}}}),[l]);var y=Object(a.useRef)(null);return Object(a.useEffect)((function(){y.current.addEventListener("fullscreenchange",(function(){document.fullscreenElement?m(!0):m(!1)}))}),[]),Nt(o.a.Fragment,null,Nt("div",{ref:y,className:jt.a.playerHover,onMouseMoveCapture:function(){c(!0)},onDoubleClick:function(){document.fullscreenElement?document.exitFullscreen():"function"===typeof y.current.requestFullscreen&&y.current.requestFullscreen()}},v&&Nt("div",{className:jt.a.loaderWrapper},Nt("div",{className:jt.a.loader},Nt(xt.a,null))),t,Nt("div",{className:"".concat(jt.a.playerWrapper," ").concat(!l&&jt.a.hideControls)},!p&&Nt(Tt,{title:r}),!f&&!p&&Nt(_t,{containerElement:y,thumbInterval:s,urlThumb:n}))))},Lt=r("t95/"),Mt=r("nbPw"),Rt=r("ruCI"),At=r("Pmkd"),Ut=o.a.createElement,Ft=function(){var e,t,r,n,i,s,u,l,c=Object(a.useState)(!0),d=c[0],f=c[1],g=Object(a.useState)(null),O=g[0],k=g[1],_=Object(a.useState)(null),w=_[0],P=_[1],C=Object(a.useState)(null),T=C[0],j=C[1],x=Object(a.useState)(null),N=x[0],D=x[1],L=Object(a.useState)(null),M=L[0],A=L[1],U=Object(y.c)().user,F=Object(Lt.b)(),B=F.deviceId,G=F.sessionId,V=Object(m.useRouter)(),W=Object(Mt.a)().t;return Object(a.useEffect)((function(){var e=V.query.id;(e||V.push("/"),U||V.push("/session/login"),B)&&function(){var t=Object(v.a)(p.a.mark((function t(){var r,n;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=new He({_deviceId:B,_mediaId:Number(e),_transactionSource:b.SiteNetMovies,_userId:null===U||void 0===U?void 0:U.id,_useDateInEncodedDeviceId:S()!==h.Edge}),t.next=4,r.execute();case 4:n=t.sent,k(n.media),j(n.deviceIdEncoded),P(n.userIdEncoded),D(n.authorizationOrder),f(!1),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(0),console.log("final: ",t.t0),A(t.t0);case 16:case"end":return t.stop()}}),t,null,[[0,12]])})));return function(){return t.apply(this,arguments)}}()()}),[B,U]),Ut(o.a.Fragment,null,d&&Ut("div",null,"Loading..."),M&&Ut("div",null,Ut(At.b,{title:W("player:error"),description:W("player:".concat(M).replace("Error: ","")),alertType:At.a.Alert},Ut(Rt.a,{as:"button",handleClick:function(){return V.back()}},W("player:goBack")))),!d&&Ut(o.a.Fragment,null,O.youtubeId?Ut(le,{youtubeId:O.youtubeId,userId:U.id,deviceType:"browser",mediaId:O.id,orderItemId:N.orderItemId,transactionType:N.transactionType,sessionClientId:G,profileId:"",startTimeInMiliSeconts:null===O||void 0===O?void 0:O.lastPosition}):Ut(o.a.Fragment,null,Ut(E,{userId:U.id,deviceType:"browser",mediaId:O.id,orderItemId:N.orderItemId,transactionType:N.transactionType,sessionClientId:G,profileId:""}),Ut(Dt,{title:O.title,timelineThumbsUrlTemplate:(null===(e=O.streaming)||void 0===e||null===(t=e.TimeFrame)||void 0===t?void 0:t.Url)||"",timeLineThumbsIntervalInMilliseconds:null===(r=O.streaming)||void 0===r||null===(n=r.TimeFrame)||void 0===n?void 0:n.Distance},Ut(R,{mediaId:O.id,lastPosition:O.lastPosition,textTracks:O.subtitles,configuration:{dash:(null===(i=O.streaming)||void 0===i||null===(s=i.URLs)||void 0===s?void 0:s.Dash)||"",hls:(null===(u=O.streaming)||void 0===u||null===(l=u.URLs)||void 0===l?void 0:l.HLS)||"",smooth:"",DRM:{servers:{playready:"".concat(I.a.DRM.servers.playready,"?userId=").concat(w,"&dash=true&machineId=").concat(T),widevine:"".concat(I.a.DRM.servers.widevine,"?userId=").concat(w,"&deviceId=").concat(T),fairplay:"".concat(I.a.DRM.servers.fairplay,"?KeyId=").concat(O.streaming.KIDGuid,"&EncUserId=").concat(w,"&EncDeviceId=").concat(T)}}}})))))},Bt=o.a.createElement;t.default=function(){return Bt(i.a,null,Bt(d,null,Bt(Ft,null)))}},vNVm:function(e,t,r){"use strict";var n=r("zoAU"),a=r("AroE");t.__esModule=!0,t.useIntersection=function(e){var t=e.rootMargin,r=e.disabled||!s,a=(0,o.useRef)(),l=(0,o.useState)(!1),c=n(l,2),d=c[0],f=c[1],p=(0,o.useCallback)((function(e){a.current&&(a.current(),a.current=void 0),r||d||e&&e.tagName&&(a.current=function(e,t,r){var n=function(e){var t=e.rootMargin||"",r=u.get(t);if(r)return r;var n=new Map,a=new IntersectionObserver((function(e){e.forEach((function(e){var t=n.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)}))}),e);return u.set(t,r={id:t,observer:a,elements:n}),r}(r),a=n.id,o=n.observer,i=n.elements;return i.set(e,t),o.observe(e),function(){o.unobserve(e),0===i.size&&(o.disconnect(),u.delete(a))}}(e,(function(e){return e&&f(e)}),{rootMargin:t}))}),[r,t,d]);return(0,o.useEffect)((function(){s||d||(0,i.default)((function(){return f(!0)}))}),[d]),[p,d]};var o=r("q1tI"),i=a(r("0G5g")),s="undefined"!==typeof IntersectionObserver;var u=new Map},voTe:function(e,t,r){"use strict";var n;!function(e){e.SerieInfo="SerieInfo",e.Metadata="Metadata",e.FileInfo="FileInfo",e.Smooth="Smooth",e.Images="Images",e.PlayDetails="PlayDetails",e.Price="Price",e.License="License",e.Media="Media",e.Acquireds="Acquireds",e.PlayInfo="PlayInfo"}(n||(n={})),t.a=n},"x/M8":function(e,t,r){"use strict";var n;!function(e){e.Forward="forward",e.Backward="backward"}(n||(n={})),t.a=n},xvhg:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r("8rE2");function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(u){a=!0,o=u}finally{try{n||null==s.return||s.return()}finally{if(a)throw o}}return r}}(e,t)||Object(n.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},ytbN:function(e,t,r){"use strict";var n;!function(e){e.Url="Url",e.KID="KID",e.KIDGuid="KIDGuid",e.Subtitle="Subtitle",e.TimeFrameDistance="TimeFrameDistance",e.TimeFrameUrl="TimeFrameUrl",e.UrlDash="UrlDash",e.UrlDashStreaming="UrlDashStreaming",e.UrlFragment="UrlFragment",e.UrlHLS="UrlHLS",e.UrlHLSSubtitle="UrlHLSSubtitle"}(n||(n={})),t.a=n},zrpz:function(e,t,r){e.exports={playerUI:"styles_playerUI__csN-M",watchHeader:"styles_watchHeader__1s4aM",loaderWrapper:"styles_loaderWrapper__18RPg",loader:"styles_loader__1nfrg",playerHover:"styles_playerHover__o7xV9",videoWrapper:"styles_videoWrapper__3TPFG",playerWrapper:"styles_playerWrapper__1MoCr",hideControls:"styles_hideControls__xK35j"}},zuMC:function(e,t,r){"use strict";var n;!function(e){e.Asc="ASC",e.Desc="DESC"}(n||(n={})),t.a=n}},[["sFKb",1,2,0,3]]]);