/* VimeoPlayer - v3.18.9 - 2020-03-25 - https://player.vimeo.com/NOTICE.txt */
!function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(t,n){return t(n={exports:{}},n.exports),n.exports}var e=i((function(t,i){
/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version v4.2.6+9869a4bc
*/
t.exports=function(){function t(t){return"function"==typeof t}var i=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},e=0,r=void 0,o=void 0,u=function(t,n){h[e]=t,h[e+1]=n,2===(e+=2)&&(o?o(v):p())},a="undefined"!=typeof window?window:void 0,s=a||{},c=s.MutationObserver||s.WebKitMutationObserver,f="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),l="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function d(){var t=setTimeout;return function(){return t(v,1)}}var h=new Array(1e3);function v(){for(var t=0;t>>0,e=arguments[1],r=0;r>>0,e=arguments[1],r=0;r>>0;if(0===e)return!1;var r=0|n,o=Math.max(r>=0?r:e-Math.abs(r),0);function u(t,n){return t===n||"number"==typeof t&&"number"==typeof n&&isNaN(t)&&isNaN(n)}for(;othis.length)&&-1!==this.indexOf(t,n)}),Object.values||(Object.values=function(t){return Object.keys(t).map((function(n){return t[n]}))});var u,a,s,c,f={object:!0,symbol:!0},l=function(t){return null!=t},d=Object.keys,h=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}()?Object.keys:function(t){return d(l(t)?Object(t):t)},v=function(t){if(!l(t))throw new TypeError("Cannot use null or undefined");return t},p=Math.max,m=function(){var t,n=Object.assign;return"function"==typeof n&&(n(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}()?Object.assign:function(t,n){var i,e,r,o=p(arguments.length,2);for(t=Object(v(t)),r=function(e){try{t[e]=n[e]}catch(t){i||(i=t)}},e=1;e-1},S=i((function(t){(t.exports=function(t,n){var i,e,r,o,u;return arguments.length<2||"string"!=typeof t?(o=n,n=t,t=null):o=arguments[2],null==t?(i=r=!0,e=!1):(i=T.call(t,"c"),e=T.call(t,"e"),r=T.call(t,"w")),u={value:n,configurable:i,enumerable:e,writable:r},o?m(y(o),u):u}).gs=function(t,n,i){var e,r,o,u;return"string"!=typeof t?(o=i,i=n,n=t,t=null):o=arguments[3],null==n?n=void 0:_(n)?null==i?i=void 0:_(i)||(o=i,i=void 0):(o=n,n=i=void 0),null==t?(e=!0,r=!1):(e=T.call(t,"c"),r=T.call(t,"e")),u={get:n,set:i,configurable:e,enumerable:r},o?m(y(o),u):u}})),A=function(t){if(!function(t){return!!t&&("symbol"==typeof t||!!t.constructor&&"Symbol"===t.constructor.name&&"Symbol"===t[t.constructor.toStringTag])}(t))throw new TypeError(t+" is not a symbol");return t},x=Object.create,M=Object.defineProperties,C=Object.defineProperty,R=Object.prototype,O=x(null);if("function"==typeof Symbol){u=Symbol;try{String(u()),c=!0}catch(t){}}var I=function(){var t=x(null);return function(n){for(var i,e,r=0;t[n+(r||"")];)++r;return t[n+=r||""]=!0,C(R,i="@@"+n,S.gs(null,(function(t){e||(e=!0,C(this,i,S(t)),e=!1)}))),i}}();s=function(t){if(this instanceof s)throw new TypeError("TypeError: Symbol is not a constructor");return a(t)};var j=a=function t(n){var i;if(this instanceof t)throw new TypeError("TypeError: Symbol is not a constructor");return c?u(n):(i=x(s.prototype),n=void 0===n?"":String(n),M(i,{N:S("",n),F:S("",I(n))}))};M(a,{for:S((function(t){return O[t]?O[t]:O[t]=a(String(t))})),keyFor:S((function(t){var n;for(n in A(t),O)if(O[n]===t)return n})),hasInstance:S("",u&&u.hasInstance||a("hasInstance")),isConcatSpreadable:S("",u&&u.isConcatSpreadable||a("isConcatSpreadable")),iterator:S("",u&&u.iterator||a("iterator")),match:S("",u&&u.match||a("match")),replace:S("",u&&u.replace||a("replace")),search:S("",u&&u.search||a("search")),species:S("",u&&u.species||a("species")),split:S("",u&&u.split||a("split")),toPrimitive:S("",u&&u.toPrimitive||a("toPrimitive")),toStringTag:S("",u&&u.toStringTag||a("toStringTag")),unscopables:S("",u&&u.unscopables||a("unscopables"))}),M(s.prototype,{constructor:S(a),toString:S("",(function(){return this.F}))}),M(a.prototype,{toString:S((function(){return"Symbol ("+A(this).N+")"})),valueOf:S((function(){return A(this)}))}),C(a.prototype,a.toPrimitive,S("",(function(){var t=A(this);return"symbol"==typeof t?t:t.toString()}))),C(a.prototype,a.toStringTag,S("c","Symbol")),C(s.prototype,a.toStringTag,S("c",a.prototype[a.toStringTag])),C(s.prototype,a.toPrimitive,S("c",a.prototype[a.toPrimitive]));var D=function(){var t;if("function"!=typeof Symbol)return!1;t=Symbol("test symbol");try{String(t)}catch(t){return!1}return!!f[typeof Symbol.iterator]&&!!f[typeof Symbol.toPrimitive]&&!!f[typeof Symbol.toStringTag]}()?Symbol:j,L=window.Map||function(){var t,n,i,e=function(){n=[],i=[]},r=function(i){return-1<(t=n.indexOf(i))};return e(),{get size(){return n.length},has:r,clear:e,get:function(t){return i[n.indexOf(t)]},keys:function(){return n.slice()},values:function(){return i.slice()},entries:function(){return n.map((function(t,n){return[t,i[n]]}))},delete:function(e){return r(e)&&n.splice(t,1)&&!!i.splice(t,1)},forEach:function(t,e){var r=this;i.forEach((function(i,o){return t.call(e,i,n[o],r)}))},set:function(e,o){return r(e)?i[t]=o:i[n.push(e)-1]=o,this}}},P=window.WeakMap||function(){var t=Object.defineProperty,n=Date.now()%1e9,i=function(){this.name="__st"+(1e9*Math.random()>>>0)+n+++"__"};return i.prototype.set=function(n,i){if("object"!==V(n)&&"function"!=typeof n)throw new TypeError("Invalid value used as weak map key");var e=n[this.name];return e&&e[0]===n?e[1]=i:t(n,this.name,{value:[n,i],writable:!0}),this},i.prototype.get=function(t){var n;return(n=t[this.name])&&n[0]===t?n[1]:void 0},i.prototype.delete=function(t){var n=t[this.name];return!(!n||n[0]!==t||(n[0]=n[1]=void 0,0))},i.prototype.has=function(t){var n=t[this.name];return!!n&&n[0]===t},i}(),N=window.Array.from,F=[1];"function"==typeof N&&N(F)===F&&(N=!1);var U=N||function(t){return[].slice.call(t,0)};function V(t){return(V="function"==typeof D&&"symbol"==typeof D.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof D&&t.constructor===D&&t!==D.prototype?"symbol":typeof t})(t)}function B(t,n){for(var i=0;i1?i-1:0),r=1;r1?i-1:0),r=1;r0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}(Ht);function Wt(t,n){return zt(function(t,n,i){return n=pt(void 0===n?t.length-1:n,0),function(){for(var e=arguments,r=-1,o=pt(e.length-n,0),u=Array(o);++r-1},Yt.prototype.set=function(t,n){var i=this.G,e=$t(i,t);return e<0?(++this.size,i.push([t,n])):i[e][1]=n,this};var Jt=Vt(gt,"Map"),Xt=Vt(Object,"create"),Zt=Object.prototype.hasOwnProperty,Qt=Object.prototype.hasOwnProperty;function tn(t){var n=-1,i=null==t?0:t.length;for(this.clear();++n-1&&t%1==0&&t<=9007199254740991}function In(t){return null!=t&&On(t.length)&&!Ct(t)}var jn="object"==(void 0===t?"undefined":V(t))&&t&&!t.nodeType&&t,Dn=jn&&"object"==("undefined"==typeof module?"undefined":V(module))&&module&&!module.nodeType&&module,Ln=Dn&&Dn.exports===jn?gt.Buffer:void 0,Pn=(Ln?Ln.isBuffer:void 0)||function(){return!1},Nn=Function.prototype,Fn=Object.prototype,Un=Nn.toString,Vn=Fn.hasOwnProperty,Bn=Un.call(Object);function Hn(t){if(!Tn(t)||"[object Object]"!=xt(t))return!1;var n=yn(t);if(null===n)return!0;var i=Vn.call(n,"constructor")&&n.constructor;return"function"==typeof i&&i instanceof i&&Un.call(i)==Bn}var qn={};function zn(t){return function(n){return t(n)}}qn["[object Float32Array]"]=qn["[object Float64Array]"]=qn["[object Int8Array]"]=qn["[object Int16Array]"]=qn["[object Int32Array]"]=qn["[object Uint8Array]"]=qn["[object Uint8ClampedArray]"]=qn["[object Uint16Array]"]=qn["[object Uint32Array]"]=!0,qn["[object Arguments]"]=qn["[object Array]"]=qn["[object ArrayBuffer]"]=qn["[object Boolean]"]=qn["[object DataView]"]=qn["[object Date]"]=qn["[object Error]"]=qn["[object Function]"]=qn["[object Map]"]=qn["[object Number]"]=qn["[object Object]"]=qn["[object RegExp]"]=qn["[object Set]"]=qn["[object String]"]=qn["[object WeakMap]"]=!1;var Wn="object"==(void 0===t?"undefined":V(t))&&t&&!t.nodeType&&t,Gn=Wn&&"object"==("undefined"==typeof module?"undefined":V(module))&&module&&!module.nodeType&&module,$n=Gn&&Gn.exports===Wn&&wt.process,Kn=function(){try{return Gn&&Gn.require&&Gn.require("util").types||$n&&$n.binding&&$n.binding("util")}catch(t){}}(),Yn=Kn&&Kn.isTypedArray,Jn=Yn?zn(Yn):function(t){return Tn(t)&&On(t.length)&&!!qn[xt(t)]};function Xn(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}var Zn=Object.prototype.hasOwnProperty;function Qn(t,n,i){var e=t[n];Zn.call(t,n)&&Gt(e,i)&&(void 0!==i||n in t)||on(t,n,i)}function ti(t,n,i,e){var r=!i;i||(i={});for(var o=-1,u=n.length;++o-1&&t%1==0&&t1?i[r-1]:void 0,u=r>2?i[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,u&&function(t,n,i){if(!Mt(i))return!1;var e=V(n);return!!("number"==e?In(i)&&ii(n,i.length):"string"==e&&n in i)&&Gt(i[n],t)}(i[0],i[1],u)&&(o=r<3?void 0:o,r=1),n=Object(n);++e0&&void 0!==arguments[0]?arguments[0]:this.J;n.addEventListener(hi.LOADED_METADATA,(function(n){t.fire(hi.LOADED_METADATA,n)})),n.addEventListener("webkitplaybacktargetavailabilitychanged",(function(n){switch(n.availability){case"available":t.$||(t.$=!0,t.fire(pi.AIRPLAY_AVAILABLE));break;case"not-available":t.$&&(t.$=!1,t.fire(pi.AIRPLAY_UNAVAILABLE))}})),n.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",(function(n){if(n.target.webkitCurrentPlaybackTargetIsWireless)return t.K=!0,void t.fire(pi.AIRPLAY_ACTIVATED);t.K=!1,t.fire(pi.AIRPLAY_DEACTIVATED)}))},n.showPicker=function(){var t=this;this.J.webkitShowPlaybackTargetPicker(),this.loadMetadata().then((function(){return t.J.webkitShowPlaybackTargetPicker()})).catch((function(){}))},n.loadMetadata=function(){var t=this;return this.J.readyState>=1?r.resolve():new r((function(n,i){t.J.addEventListener(hi.LOADED_METADATA,(function(){n()})),t.J.src=t.getFile().src}))},H(AirPlayExternalDisplay,[{key:"element",get:function(){return this.J},set:function(t){if(!(t instanceof HTMLVideoElement))throw new TypeError("The element for AirPlay must be a
'+t.bandwidthSeriesSvg+"
"),n+="",t.sessionId&&(n+='Debug Key:
'+t.sessionId+"
"),n+""},n.templates.icon_airplay=function(t){return''},n.templates.icon_back=function(t){return''},n.templates.icon_broken_heart=function(t){return''},n.templates.icon_card_arrow=function(t){return''},n.templates.icon_cc=function(t){return''},n.templates.icon_chapters=function(t){return''},n.templates.icon_check=function(t){return''},n.templates.icon_clock=function(t){return''},n.templates.icon_close_new=function(t){return''},n.templates.icon_close=function(t){return''},n.templates.icon_collections=function(t){return''},n.templates.icon_embed=function(t){return''},n.templates.icon_facebook=function(t){return''},n.templates.icon_fast_forward=function(t){return''},n.templates.icon_follow=function(t){return''},n.templates.icon_fullscreen=function(t){return''},n.templates.icon_gear=function(t){return''},n.templates.icon_heart=function(t){return''},n.templates.icon_line_arrow=function(t){return''},n.templates.icon_live_viewers=function(t){return''},n.templates.icon_lock=function(t){return''},n.templates.icon_mail=function(t){return''},n.templates.icon_muted=function(t){return''},n.templates.icon_pause=function(t){return''},n.templates.icon_pip=function(t){return''},n.templates.icon_play=function(t){return''},n.templates.icon_prev=function(t){return''},n.templates.icon_replay=function(t){return''},n.templates.icon_share=function(t){return''},n.templates.icon_spin=function(t){return''},n.templates.icon_stereoscopic=function(t){return''},n.templates.icon_tumblr=function(t){return''},n.templates.icon_twitter=function(t){return''},n.templates.icon_unfullscreen=function(t){return''},n.templates.icon_vod_download=function(t){return''},n.templates.icon_vod_rent=function(t){return''},n.templates.icon_vod_subscribe=function(t){return''},n.templates.icon_vod=function(t){return''},n.templates.icon_warning=function(t){return''},n.templates.live_status=function(t){return''},n.templates.live_viewer_count=function(t){var n=' ';return(n+=this.render("icon_live_viewers")||"")+'
0 '},n.templates.logo=function(t){return''},n.templates.menu_list_panel=function(t){var n=' ';for(var i=0;i ',t.items[i].index&&(n+=''+t.items[i].index+""),n+=' '+t.items[i].label+" ","chapters"===t.id&&(n+=' '),n+=" ";return n+'
'},n.templates.menu=function(t){var n='"},n.templates.nudge=function(t){var n=' ';return n+=this.render("icon_fast_forward")||"",n+='
',(n+=this.render("icon_fast_forward")||"")+"
"},n.templates.outer=function(t){var n=' ';return n+=this.render("icon_spin")||"",n+='
This opens in a new window.'},n.templates.sidedock=function(t){var n="";return t.vodButton&&(n+=' '),t.likeButton&&(n+='
"),t.watchLaterButton&&(n+='
"),t.collectionsButton&&(n+='
"),t.shareButton&&(n+='
"),t.vodButton&&(n+="
"),n+""},n.templates.app_redirect=function(t){var n=' ';return t.strings.title&&(n+='
'+t.strings.title+"
"),t.hideRedirectButton||(n+='
"),t.strings.ignoreText&&(n+='
'+t.strings.ignoreText+"
"),t.strings.bottomText&&(n+='
'+t.strings.bottomText+"
"),n+"
"},n.templates.email_capture=function(t){var n=' ';return t.customLogo&&(n+='
'),n+='
',n+=this.escape(t.text)||"",n+="
",t.subtitle&&(n+='
',n+=this.escape(t.subtitle)||"",n+="
"),n+='
'+t.strings.disclaimer+'
',(n+=this.escape(t.confirmation)||"")+"
"},n.templates.error=function(t){var n=' ';return t.title&&(n+="
"+t.title+"
"),t.message&&(n+="
"+t.message+"
"),n+"
"},n.templates.help=function(t){var n=''+t.strings.title+'
- ↑
- '+t.strings.volumeUp+'
- ↓
- '+t.strings.volumeDown+'
- →
- '+t.strings.scrubForward+'
- ←
- '+t.strings.scrubBackwards+'
- L
- '+t.strings.like+'
- S
- '+t.strings.share+'
- W
- '+t.strings.watchLater+'
- C
- '+t.strings.captions+'
- H
- '+t.strings.prefs+'
- F
- '+t.strings.fullscreen+"
";return t.onSite||(n+='- V
- '+t.strings.viewOnVimeo+"
"),n+"
"},n.templates.outro_email=function(t){var n=''},n.templates.outro_image=function(t){var n='"},n.templates.outro_link=function(t){var n=' ',t.title&&(n+='
',n+=this.escape(t.title)||"",n+="
"),t.description&&(n+='
',n+=this.escape(t.description)||"",n+="
"),t.text&&t.url&&(n+='
"),t.text2&&t.url2&&(n+='
"),n+"
"},n.templates.outro_nothing=function(t){return''},n.templates.outro_share=function(t){var n='"},n.templates.outro_staticimage=function(t){var n='"},n.templates.outro_text=function(t){return'"},n.templates.outro_videos=function(t){var n=' ';for(var i=0,e=t.contexts.length;i
';for(var o=0,u=r.videos.length;o ";n+="
"}return n+""},n.templates.outro_vod=function(t){var n=' ";var i=t.countries,e=t.country;if(this.helpers.isAvailableInCountry(i,e))if(t.purchased)n+='
'+t.strings.watch+" ";else{if(!t.isComingSoon){n+='
"}(t.isPreorder||t.isComingSoon)&&(n+="
"+t.strings.preRelease+"
")}return n+"
"},n.templates.password=function(t){return''},n.templates.private_locked=function(t){return''+t.strings.title+'
'+t.strings.subtitle+'
"},n.templates.private_unlocked=function(t){return''+t.strings.title+'
'+t.strings.subtitle+'
"},n.templates.share=function(t){var n=''+t.strings.share+'
",t.embed&&(n+=' "),t.url&&(n+=' "),n+=" ",t.embed&&(n+='
'+t.strings.embedTitle+'
'+t.strings.embedSubtitle+'
",t.customizeEmbed&&(n+=' "),n+="
"),n+"
"},n.templates.threesixty_reminder=function(t){var n=' ';return t.showArrows&&(n+='
'),n+"
"+t.text+"
"},n.templates.time_series_graph=function(t){return'"},n.templates.title_byline_badge=function(t){var n="";return t.displayBadge&&(n+=" ",t.link&&(n+='"),n+=' '+t.cssClass+"",t.link&&(n+=""),n+=""),n+""},n.templates.title_owner_byline=function(t){var n="";return t.linkToOwner?(n+='',n+=this.escape(t.owner)||"",n+=""):(n+='',n+=this.escape(t.owner)||"",n+=""),n+""},n.templates.title=function(t){var n='"},n.templates.unmute_button=function(t){var n='"},t.exports?t.exports=n:window.Aftershave=n}()}));function ad(t,n){var i,e=t.querySelector(".vp-shade"),r=t.querySelector(".vp-spin");function o(){clearTimeout(i),e.classList.add("vp-shade-invisible"),r.classList.add("vp-spin-invisible")}return n.on(mi.BUFFER_STARTED,(function(){clearTimeout(i),i=setTimeout((function(){e.classList.remove("vp-shade-invisible"),r.classList.remove("vp-spin-invisible")}),600)})),n.on([mi.BUFFER_ENDED,Oc.Fe],o),pf.on(df.buffering,(function(){r.classList.remove("vp-spin-invisible")})),pf.on([df.playing,df.paused],(function(){clearTimeout(i),r.classList.add("vp-spin-invisible")})),pf.on(df.connected,(function(){e.classList.remove("vp-shade-invisible")})),pf.on(df.disconnected,(function(){o()})),{}}var sd=function(t){return function(n){for(var i=arguments.length,e=new Array(i>1?i-1:0),r=1;r=12?"PM":"AM";return(n=(n%=12)||12)+":"+(i=i<10?"0"+i:i)+" "+e}function vd(t,n){var i=Math.floor(t/3600%60),e=Math.floor(t/60%60);if(t=Math.floor(t%60),n){var r=t+" second"+(1===t?"":"s");return e>0&&(r=e+" minute"+(1===e?"":"s")+", "+r),i>0&&(r=i+" hour"+(1===i?"":"s")+", "+r),r}return(i>0?i+":":"")+pd(e,2)+":"+pd(t,2)}function pd(t,n,i){return t=String(t),new Array(n-t.length+1).join(i||"0")+t}function md(t,n,i){var e=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Mt(i)&&(e="leading"in i?!!i.leading:e,r="trailing"in i?!!i.trailing:r),uf(t,n,{leading:e,maxWait:n,trailing:r})}var wd=function(){if(void 0!==L)return L;function t(t,n){var i=-1;return t.some((function(t,e){return t[0]===n&&(i=e,!0)})),i}return(function(){function n(){this.nl=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.nl.length},enumerable:!0,configurable:!0}),n.prototype.get=function(n){var i=t(this.nl,n),e=this.nl[i];return e&&e[1]},n.prototype.set=function(n,i){var e=t(this.nl,n);~e?this.nl[e][1]=i:this.nl.push([n,i])},n.prototype.delete=function(n){var i=this.nl,e=t(i,n);~e&&i.splice(e,1)},n.prototype.has=function(n){return!!~t(this.nl,n)},n.prototype.clear=function(){this.nl.splice(0)},n.prototype.forEach=function(t,n){void 0===n&&(n=null);for(var i=0,e=this.nl;i0},t.prototype.connect_=function(){bd&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ed?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){bd&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var n=t.propertyName,i=void 0===n?"":n;_d.some((function(t){return!!~i.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Td=function(t,n){for(var i=0,e=Object.keys(n);i0},t}(),Ld=void 0!==P?new P:new wd,Pd=function t(n){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=kd.getInstance(),e=new Dd(n,i,this);Ld.set(this,e)};["observe","unobserve","disconnect"].forEach((function(t){Pd.prototype[t]=function(){var n;return(n=Ld.get(this))[t].apply(n,arguments)}}));var Nd=void 0!==gd.ResizeObserver?gd.ResizeObserver:Pd;function Fd(t,n,i){var e=u()?i.parentElement:i,r=md(o,150);function o(){var t=Zs(e),i=t.width,r=t.height;n.dispatch(function(t,n){return{type:"CONTAINER_RESIZE",payload:{width:t,height:n}}}(i,r))}function u(){return i.parentElement===document.body}function a(t){var n=t.size,r=t.ratio,o=t.bottom;u()&&(e.classList.toggle("vp-center","contain"===n),function(t,n){[].concat(["height","max-width","max-height","bottom"]).map((function(n){return t.style.removeProperty(n)}))}(i),"contain"!==n?o>0&&lc(i,{height:"calc(100% - ".concat(o,"px)"),bottom:"".concat(o/2,"px")}):lc(i,o>0?{maxWidth:"calc((100vh - ".concat(o,"px) / ").concat(r,")"),maxHeight:"calc(100vh - ".concat(o,"px)"),height:"calc(".concat(r," * 100vw)"),bottom:"".concat(o/2,"px")}:{maxWidth:"calc(100vh / ".concat(r,")"),height:"calc(".concat(r," * 100vw)")}))}n.watch("ui.layout.bottom",(function(n){t.events.fire(Oc.if,[{bottom:n}])})),n.watch("ui.layout.settings",a),a(n.get("ui.layout.settings")),new Nd(r).observe(e),window.addEventListener("orientationchange",r),t.events.on(Oc.zs,r),t.events.on(Oc.Gs,r),o()}function Ud(t,n,i){this.constructorName="MessageApiError",this.message=t,this.name=n,this.source=i}function Vd(t){return t}function Bd(t){if(!t||""===t)return{};if("object"===V(t))return t;try{return JSON.parse(t)}catch(t){return{}}}function Hd(t){}Ud.prototype=new Error;var qd={captureException:function(t){},captureMessage:function(t){},captureBreadcrumb:function(){}},zd=qd,Wd=function(t){zd=Object.assign({},qd,t)},Gd=function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"backbone",e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"info";return zd.captureBreadcrumb(t,n,i,e)};function $d(t){var n=function(t){var n=document.referrer||t;try{n=decodeURIComponent(n)}catch(t){n=unescape(n)}return n}(t),i={},e={},o={parseMessage:Bd,buildMessage:Vd,logError:Hd},u={},a={get methods(){return i},extendMethods:function(){for(var t=arguments.length,n=new Array(t),e=0;e1?n-1:0),e=1;e-1))try{var a=function(t,n){if(!t)return null;var i=Object.getOwnPropertyDescriptor(n,t);if(i&&"function"==typeof i.value)return i.value;if(i&&"function"==typeof i.get)return i.get;var e=t.substr(0,3),r=t.substr(3,1).toLowerCase()+t.substr(4);return i=Object.getOwnPropertyDescriptor(n,r),"get"===e&&i&&"function"==typeof i.get?i.get:"set"===e&&i&&"function"==typeof i.set?i.set:null}(e,i);if(!a)throw new Ud("“".concat(t,"” is not a valid method. Valid methods are: ").concat(function(t){return Object.keys(t).reduce((function(n,i){var e=Object.getOwnPropertyDescriptor(t,i);return"function"==typeof e.value?(n.push(i),n):("function"==typeof e.get&&n.push("get"+i.charAt(0).toUpperCase()+i.slice(1)),"function"==typeof e.set&&n.push("set"+i.charAt(0).toUpperCase()+i.slice(1)),n)}),[]).sort()}(i).join(", "),"."),"TypeError",e);Gd("API message received",n,"api"),r.resolve(a.call(t,u)).then((function(t){return c({method:e,value:null==t?u:t})})).catch(o.logError)}catch(t){o.logError(t)}}}),!1),a}function Kd(t){return"string"==typeof(t=t.replace("#",""))&&(3===t.length||6===t.length)&&!isNaN(parseInt(t,16))}function Yd(t){var n=/rgba?\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(,\s*([\d.]+))?\)/.exec(t);if(!n)throw new Error("Invalid rgb value");return{red:parseInt(n[1],10),green:parseInt(n[2],10),blue:parseInt(n[3],10),alpha:parseFloat(n[5])||1}}function Jd(){for(var t=arguments.length,n=new Array(t),i=0;i=0)return this.rgba=Yd(n[0]),this;if(!Kd("".concat(n[0])))throw new Error("Invalid hex value");return this.hex=n[0],this}if(3===n.length||4===n.length){for(var r=0;r<3;r++)if(isNaN(parseInt(n[r],10))||parseInt(n[r],10)<0||parseInt(n[r],10)>255)throw new Error("Invalid rgb value");if(n[3]&&parseFloat(n[3])<0||parseFloat(n[3])>1)throw new Error("Invalid alpha value");return this.rgba={red:n[0],green:n[1],blue:n[2],alpha:parseFloat(n[3])||1},this}throw new Error("Invalid color")}function Xd(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!t||"null"===t||0===n.length)return{track:null};var i=t.split("."),e=Q(i,2),r=e[0],o=e[1],u=r.split(/[-_]/),a=Q(u,1),s=a[0],c=r!==s,f=n.filter((function(t){return c&&t.language===r||t.language===s})).sort((function(t,n){var i=2*(t.language===s&&t.kind===o)+2*(t.language===r)+1*(t.kind===o);return 2*(n.language===s&&n.kind===o)+2*(n.language===r)+1*(n.kind===o)-i}));return f.length>0?{track:f[0],exactMatch:f[0].language===r&&f[0].kind===o}:{track:null}}function Zd(t,n){switch(t.view){case 2:throw new Ud("The video is private.","PrivacyError",n);case 4:throw new Ud("The video is password-protected. The viewer must enter the password first.","PasswordError",n);case 7:throw new Ud(t.message,"NotFoundError",n)}}function Qd(t){for(var n=[],i=0;it.config.video.duration)throw new Ud("Cue point time must be positive number less than the duration of the video (".concat(uc(t.config.video.duration),")."),"RangeError","addCuePoint");try{var e=t.backbone.addCuePoint(n,i);return setTimeout((function(){o.fire(Oc.Ls,e)}),0),e.id}catch(t){if("CuePointsNotSupported"===t.name)throw new Ud("Cue points are not supported in the current player.","UnsupportedError","addCuePoint");throw new Ud("Unable to add cue point","InvalidCuePoint","addCuePoint")}},removeCuePoint:function(n){var i=t.backbone.cuePoints.filter((function(t){return t.id===n}))[0];if(!i)throw new Ud("Cue point “".concat(n,"” was not found."),"InvalidCuePoint","removeCuePoint");t.backbone.removeCuePoint(i),setTimeout((function(){o.fire(Oc.Ps,i)}),0)},enableTextTrack:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=("text_tracks"in t.config.request?t.config.request.text_tracks:[]).map((function(t){return t.language=t.lang,t})),a=u.some((function(t){return t.language.toLowerCase()===n.toLowerCase()}));if(!a)throw new Ud("There are no tracks for “".concat(n.toUpperCase(),"”."),"InvalidTrackLanguageError","enableTextTrack");var s=e?"".concat(n,".").concat(e):n,c=Xd(s,u),f=c.track;if(!f||e&&f.kind!==e)throw new Ud("There are no ".concat(e," tracks for “").concat(n.toUpperCase(),"”."),"InvalidTrackError","enableTextTrack");return o.fire(yc.Fa,f.id),i<3?null:new r((function(t,n){o.once(Oc.Ds,(function(n,i){t({label:n.label,language:n.language,kind:n.kind})}))}))},disableTextTrack:function(){o.fire(yc.Ua)},get autopause(){return!!t.config.embed.autopause},set autopause(n){t.config.embed.autopause=!!n},get chromecasting(){return!!pf.currentSession},get color(){return t.config.embed.color.replace("#","")},set color(n){if(t.config.embed.settings.color&&!t.config.embed.on_site)throw new Ud("The creator of the video has chosen to always use ".concat(new Jd(t.config.embed.color).hex,"."),"EmbedSettingsError","setColor");try{var i=new Jd(n);o.fire(yc.Ia,i.hex)}catch(t){throw new Ud("The color should be 3- or 6-digit hex value.","TypeError","setColor")}var e=new Jd(23,35,34,.75);if(e.contrast(i).ratio<3){var r=i.clone().lighten(5,3,e);throw new Ud("".concat(i.hex," does not meet minimum contrast ratio. We recommend using brighter colors. (You could try ").concat(r.hex," instead.) See WCAG 2.0 guidelines: http://www.w3.org/TR/WCAG/#visual-audio-contrast"),"ContrastError","setColor")}},get cuePoints(){return t.backbone.cuePoints.map((function(t){return{time:t.time,data:t.data,id:t.id}}))},get currentTime(){return t.currentTime},set currentTime(n){if(n=parseFloat(n),isNaN(n)||n<0||n>t.config.video.duration)throw new Ud("Seconds must be a positive number less than the duration of the video (".concat(uc(t.config.video.duration),")."),"RangeError","setCurrentTime");return o.fire(Ic.ka),o.fire(yc.ka,null,n),o.fire(Oc.yc),i<3?null:new r((function(t,n){o.once(hi.SEEKED,(function(n){var i=n.currentTime;t(i)}))}))},get duration(){return uc(t.config.video.duration)},get ended(){return!!t.backbone.ended},get loop(){return!!t.config.embed.loop},set loop(t){o.fire(yc.Ca,t)},set muted(n){t.backbone.muted=n},get muted(){return t.backbone.muted},get paused(){return!(t.backbone&&"paused"in t.backbone&&!t.backbone.paused)},get buffered(){return Qd(t.backbone.buffered)},get played(){return Qd(t.backbone.played)},get seekable(){return Qd(t.backbone.seekable)},get seeking(){return t.backbone.seeking},get playbackRate(){return t.backbone?t.backbone.playbackRate:1},set playbackRate(n){if(!t.config.embed.settings.speed)throw new Ud("Setting the playback rate is not enabled for this video.","Error","setPlaybackRate");if(isNaN(n)||n<.5||n>2)throw new Ud("Playback rate should be a number between ".concat(.5," and ").concat(2,"."),"RangeError","setPlaybackRate");o.fire(yc.Ya,n)},get textTracks(){return(t.backbone?t.backbone.video.textTracks:[]).map((function(t){return{label:t.label,language:t.language,kind:t.kind,mode:t===l?"showing":"disabled"}}))},get videoEmbedCode(){return t.config.video.embed_code},get videoHeight(){return t.backbone.videoHeight||t.config.video.height},get videoId(){return t.config.video.id},get videoTitle(){return t.config.video.title},get videoWidth(){return t.backbone.videoWidth||t.config.video.width},get videoUrl(){if(!t.config.video.url)throw new Ud("The URL is not available because of the video’s privacy settings.","PrivacyError","getVideoUrl");return t.config.video.url},get volume(){var n=uc(t.config.request.cookie.volume);return 1===i?Math.round(100*n):n},set volume(t){if(t=parseFloat(t),1===i&&(t/=100),isNaN(t)||t<0||t>1)throw new Ud("Volume should be a number between 0 and 1.","RangeError","setVolume");d=t,o.fire(yc.Ta,t,!0)},_loadVideo:function(n,i){return t.loadVideo(n,i)},get _like(){return!!t.config.user.liked},set _like(n){if(t.config.embed.on_site){if(t.config.user.liked===n)return;o.fire(Oc.$s,n)}},get _watchLater(){return!!t.config.user.watch_later},set _watchLater(n){if(t.config.embed.on_site){if(t.config.user.watch_later===n)return;o.fire(Oc.Ks,n)}},_addChapter:function(n,i){if(n=parseFloat(n),isNaN(n)||n<0||n>t.config.video.duration)throw new Ud("Chapter timecode must be positive number less than the duration of the video (".concat(uc(t.config.video.duration),")."),"RangeError","addCuePoint");try{t.backbone.addChapter(n,i)}catch(t){if("ChaptersNotSupported"===t.name)throw new Ud(t.message,"UnsupportedError","_addChapter");throw new Ud("Unable to add chapter","InvalidChapter","_addChapter")}},_removeChapter:function(n){var i;try{i=t.backbone.chapters.getCueById(n)}catch(t){throw new Ud("Chapters are not supported in this browser.","UnsupportedError","_removeChapter")}if(!i)throw new Ud("Chapter was not found.","InvalidChapter","_removeChapter");try{t.backbone.removeChapter(i)}catch(t){if("ChaptersNotSupported"===t.name)throw new Ud("Chapters are not supported in this browser.","UnsupportedError","_removeChapter");throw new Ud("Unable to remove chapter","InvalidChapter","_removeChapter")}},_addCard:function(t){o.fire(yc._addCard,t)},_removeCard:function(t){o.fire(yc._removeCard,t)},_setOutro:function(n,i){t.config.embed.outro!==n?(o.fire(yc._hideOutro),setTimeout((function(){t.config.embed.outro=n,o.fire(yc.Ba,n,i)}),400)):o.fire(yc.Ba,n,i)},_hideOutro:function(){o.fire(yc._hideOutro)},_setEmailCapture:function(n){if(n){if(t.config.embed.email=t.config.embed.email||{},t.config.embed.email.position=n.position.toLowerCase(),"after"===n.position.toLowerCase())return t.config.embed.outro="email",void o.fire(yc.Ba,"email",{version:2,data:n});t.config.embed.email.timecode=n.timecode,n.nohide=!0,n.noblur=!0,n.nofocus=Bu(n,"nofocus",!0),v._showOverlay("email-capture",n)}else v._unsetEmailCapture()},_unsetEmailCapture:function(){t.config.embed.outro&&(o.fire(yc._hideOutro),delete t.config.embed.outro),t.config.embed.email&&(o.fire(yc.Aa,{unmakeModal:!0}),delete t.config.embed.email)},_showOverlay:function(t,n){o.fire(yc._showOverlay,t,n)},_fireEvent:function(){for(var t=arguments.length,n=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:[],i=t||{},e=i.language,r=void 0===e?null:e,o=i.label,u=void 0===o?null:o,a=i.kind,s=void 0===a?null:a;return{label:u,language:r,kind:s,cues:n}}))),o.on(Oc.rs,w(Dc.ENDED,(function(){return s=!1,{seconds:uc(t.config.video.duration),percent:1,duration:uc(t.config.video.duration)}}))),o.on(Oc.Fe,w(Dc.PAUSE,(function(n){return s=!1,{seconds:uc(n),percent:uc(n/t.config.video.duration),duration:uc(t.config.video.duration)}}))),o.on(Oc.ls,w(Dc.PLAYBACK_RATE_CHANGE,(function(t){return{playbackRate:t}}))),o.on(Oc.Ds,w(Dc.TEXT_TRACK_CHANGE,(function(t){l=t;var n=t||{},i=n.language,e=void 0===i?null:i,r=n.label,o=void 0===r?null:r,u=n.kind;return{label:o,language:e,kind:void 0===u?null:u}}))),o.on(Oc.os,w(Dc.VOLUME_CHANGE,(function(t){return{volume:uc(t)}}))),o.on(Oc.Rs,w(Dc.CONTROL_BAR_VISIBILITY_CHANGED,(function(t){return{visible:t}}))),o.on(Oc.Oc,(function(t){d&&setTimeout((function(){o.fire(yc.Ta,d,!0)}),0),t&&g()})),o.on(Oc.Za,(function(t){var n=y(t);a&&m(Dc.ERROR,n)})),o.on(Oc.zs,w(Dc.FULLSCREENCHANGE,(function(){return{fullscreen:!0}}))),o.on(Oc.Gs,w(Dc.FULLSCREENCHANGE,(function(){return{fullscreen:!1}}))),o.on(Oc.xf,w(Dc.AD_STARTED)),o.on(Oc.Ef,w(Dc.AD_COMPLETED)),o.on(Oc.Tf,w(Dc.AD_ERROR)),o.on(Oc.Mf,w(Dc.AD_SKIPPED)),o.on(Oc.Cf,w(Dc.AD_ALL_COMPLETED)),o.once(Oc.te,(function(){a=!0,m(Dc.READY),c&&(m(Dc.ERROR,y(c)),c=null)})),o.on($o.EVENT_ENDED,w(Dc.LIVE_EVENT_ENDED)),o.on($o.EVENT_STARTED,w(Dc.LIVE_EVENT_STARTED)),o.on($o.STREAM_OFFLINE,w(Dc.LIVE_STREAM_OFFLINE)),o.on($o.STREAM_ONLINE,w(Dc.LIVE_STREAM_ONLINE)),o.on(bi.MOTION_END,w(Dc.MOTION_END)),o.on(bi.MOTION_START,w(Dc.MOTION_START)),o.on(bi.WEBVR_HARDWARE_AVAILABLE,w(Dc.WEBVR_HARDWARE_AVAILABLE)),o.on(bi.WEBVR_ENTER,w(Dc.ENTER_WEBVR)),o.on(bi.WEBVR_EXIT,w(Dc.EXIT_WEBVR)),o.on(bi.SPATIAL_UNSUPPORTED,w(Dc.SPATIAL_UNSUPPORTED)),o.on(hi.PLAY,w(Dc.PLAY,(function(n){return s?null:(s=!0,{seconds:uc(n),percent:uc(n/t.config.video.duration),duration:uc(t.config.video.duration)})}))),o.on(hi.PLAYING,w(Dc.PLAYING,(function(){return s?{seconds:uc(t.currentTime),percent:uc(t.currentTime/t.config.video.duration),duration:uc(t.config.video.duration)}:null}))),o.on(hi.PROGRESS,w(Dc.PROGRESS,(function(t){var n=t.loaded,e=t.duration,r=t.loadProgress,o={seconds:uc(n),percent:uc(r),duration:uc(e)};return i<3&&(o.bytesLoaded=-1,o.bytesTotal=-1),o}))),o.on(hi.SEEKING,w(Dc.SEEKING,b)),o.on(hi.SEEKED,w(Dc.SEEKED,b)),o.on(hi.TIME_UPDATE,w(Dc.TIME_UPDATE,(function(t){var n=t.currentTime,i=t.duration,e=t.timeProgress;return{seconds:uc(n),percent:uc(e),duration:uc(i)}}))),o.on(hi.LOADED_METADATA,w(Dc.LOADED_METADATA)),o.on(hi.DURATION_CHANGE,w(Dc.DURATION_CHANGE,(function(n){return{duration:t.backbone.duration}}))),o.on(hi.WAITING,w(Dc.WAITING)),o.on(hi.LOADED_DATA,w(Dc.LOADED_DATA)),o.on(hi.LOAD_START,w(Dc.LOAD_START)),o.on(df.connected,w(Dc.CHROMECAST_CONNECTED)),o.on(yc.Ma,(function(){c=null,f=!1})),t.doNotTrackEnabled||o.on(Oc.Gc,(function(){m(Dc.EMAIL_CAPTURE)})),o.on(Oc.if,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n&&(n.listeners[Dc.SPACE_CHANGE]=!0,m(Dc.SPACE_CHANGE,t))})),o.fire(Oc.hf),v}Jd.prototype={get complement(){var t=this.clone();return t.rgb={red:255-this.red,green:255-this.green,blue:255-this.blue},t},get hex(){return Jd.rgbToHex(this.red,this.green,this.blue)},set hex(t){return this.rgba=Jd.hexToRgb(t),this},get hsl(){return"hsl("+this.hue+","+this.saturation+"%,"+Math.round(this.lightness)+"%)"},set hsl(t){this.hue=t.hue,this.saturation=t.saturation,this.lightness=t.lightness;var n=Jd.hslToRgb(t.hue,t.saturation,t.lightness);return this.red=n.red,this.green=n.green,this.blue=n.blue,this.alpha=n.alpha,this},get luminance(){function t(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*t(this.red/255)+.7152*t(this.green/255)+.0722*t(this.blue/255)},get rgb(){return"rgb("+this.red+","+this.green+","+this.blue+")"},set rgb(t){return this.rgba=t,this},get rgba(){return"rgba("+this.red+","+this.green+","+this.blue+","+this.alpha+")"},set rgba(t){this.red=t.red,this.green=t.green,this.blue=t.blue,this.alpha=t.alpha||1;var n=Jd.rgbToHsl(t.red,t.green,t.blue);return this.hue=n.hue,this.saturation=n.saturation,this.lightness=n.lightness,this},get yiq(){return(299*this.red+587*this.green+114*this.blue)/1e3},clone:function(){return new Jd(this)},lighten:function(t,n,i){if(this.hsl={hue:this.hue,saturation:this.saturation,lightness:this.lightness+t},n&&i)for(var e=i.contrast(this).ratio;e=100)););return this},darken:function(t,n,i){if(this.hsl={hue:this.hue,saturation:this.saturation,lightness:this.lightness-t},n&&i)for(var e=i.contrast(this).ratio;e=1)return this;var n=this.clone();return n.rgba={red:n.red*this.alpha+t.red*t.alpha*(1-this.alpha),green:n.green*this.alpha+t.green*t.alpha*(1-this.alpha),blue:n.blue*this.alpha+t.blue*t.alpha*(1-this.alpha),alpha:n.alpha+t.alpha*(1-this.alpha)},n},contrast:function(t){var n=this.alpha;if(n>=1){t.alpha<1&&(t=t.overlayOn(this));var i=this.luminance+.05,e=t.luminance+.05,r=i/e;return e>i&&(r=1/r),{ratio:r=Math.round(10*r)/10,error:0,min:r,max:r}}var o=this.overlayOn(Jd.white).contrast(t).ratio,u=this.overlayOn(Jd.black).contrast(t).ratio,a=Math.max(o,u),s={red:Math.min(Math.max(0,(t.red-this.red*n)/(1-n)),255),green:Math.min(Math.max(0,(t.green-this.green*n)/(1-n)),255),blue:Math.min(Math.max(0,(t.blue-this.blue*n)/(1-n)),255)},c=this.clone();c.rgb=s;var f=this.overlayOn(c).contrast(t).ratio;return{ratio:Math.round((f+a)/2*10)/10,error:Math.round((a-f)/2*10)/10,min:f,max:a,closest:c,farthest:u===a?Jd.white:Jd.black}},wcagAACompliant:function(t){return this.contrast(t).ratio>=4.5},wcagAAACompliant:function(t){return this.contrast(t).ratio>=7},yiqContrastColor:function(){return this.yiq>=120?new Jd(0,0,0):new Jd(255,255,255)}},Jd.hexToRgb=function(t){var n;return 3===(t=String(t)).length||4===t.length?(n=/^#?([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(t))&&(n[1]+=n[1],n[2]+=n[2],n[3]+=n[3]):n=/^#?([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(t),n?{red:parseInt(n[1],16),green:parseInt(n[2],16),blue:parseInt(n[3],16),alpha:1}:null},Jd.rgbToHex=function(t,n,i){return"#"+((1<<24)+(Math.round(t)<<16)+(Math.round(n)<<8)+Math.round(i)).toString(16).slice(1)},Jd.rgbToHsl=function(t,n,i){t/=255,n/=255,i/=255;var e,r=Math.max(t,n,i),o=Math.min(t,n,i),u=(r+o)/2,a=u;if(r===o)return{hue:0,saturation:0,lightness:100*a};var s=r-o;return e=a>.5?s/(2-r-o):s/(r+o),r===t?u=(n-i)/s+(n1&&(i-=1),6*i<1?t+6*(n-t)*i:2*i<1?n:3*i<2?t+6*(2/3-i)*(n-t):t}if(t/=360,i/=100,0==(n/=100))return{red:Math.floor(255*i),green:Math.floor(255*i),blue:Math.floor(255*i)};var r=i<.5?i*(1+n):i+n-n*i,o=2*i-r;return{red:Math.floor(255*e(o,r,t+1/3)),green:Math.floor(255*e(o,r,t)),blue:Math.floor(255*e(o,r,t-1/3))}},Jd.hslToHex=function(t,n,i){var e=Jd.hslToRgb(t,n,i);return Jd.rgbToHex(e.red,e.green,e.blue)},Jd.white=new Jd("fff"),Jd.black=new Jd("000");var nh=function(){function t(t){this.alertTextElement=t.querySelector(".vp-text-alert-wrapper"),this.alertContentElement=this.alertTextElement.querySelector(".vp-alert-text")}var n=t.prototype;return n.show=function(t){this.alertContentElement.innerHTML=t,this.alertContentElement.classList.remove("hidden"),this.alertTextElement.classList.remove("hidden")},n.hide=function(){this.alertContentElement.classList.add("hidden"),this.alertTextElement.classList.add("hidden")},t}(),ih=i((function(t){!function(){var i="undefined"!=typeof window&&window===this?this:void 0!==n&&null!=n?n:this,e="function"==typeof Object.defineProperties?Object.defineProperty:function(t,n,i){t!=Array.prototype&&t!=Object.prototype&&(t[n]=i.value)};function o(){o=function(){},i.Symbol||(i.Symbol=a)}var u=0;function a(t){return"jscomp_symbol_"+(t||"")+u++}function s(){o();var t=i.Symbol.iterator;t||(t=i.Symbol.iterator=i.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&e(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return c(this)}}),s=function(){}}function c(t){var n=0;return function(t){return s(),(t={next:t})[i.Symbol.iterator]=function(){return this},t}((function(){return nn||(clearTimeout(t.j),t.j=setTimeout((function(){var n=performance.timing.navigationStart,i=p(t.g,t.b);if(n=(window.a&&window.a.A?1e3*window.a.A().C-n:0)||performance.timing.domContentLoadedEventEnd-n,t.u)var e=t.u;else e=performance.timing.domContentLoadedEventEnd?(e=performance.timing).domContentLoadedEventEnd-e.navigationStart:null;var r=performance.now();null===e&&b(t,Math.max(i+5e3,r+1e3));var o=t.a;(i=5e3>r-i||5e3>r-(i=o.length?o[o.length-1].end:n)?null:Math.max(i,e))&&(t.s(i),clearTimeout(t.j),t.i=!1,t.c&&t.c.disconnect(),t.h&&t.h.disconnect()),b(t,performance.now()+1e3)}),n-performance.now()),t.v=n)}m.prototype.getFirstConsistentlyInteractive=function(){var t=this;return new r((function(n){t.s=n,"complete"==document.readyState?w(t):window.addEventListener("load",(function(){w(t)}))}))},m.prototype.m=function(t){this.f.set(t,performance.now())},m.prototype.l=function(t){this.f.delete(t)},m.prototype.B=function(){b(this,performance.now()+5e3)},i.Object.defineProperties(m.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return[].concat(l(this.f.values()))}}});var g={getFirstConsistentlyInteractive:function(t){return t=t||{},"PerformanceLongTaskTiming"in window?new m(t).getFirstConsistentlyInteractive():r.resolve(null)}};t.exports?t.exports=g:window.ttiPolyfill=g}()})),eh=W({},zc,{ALERT_DISPLAYED:"alert-displayed",ALERT_HIDDEN:"alert-hidden",CAPTIONS_ENABLED:"captions-enabled",CAPTIONS_DISABLED:"captions-disabled",CHROMECAST_CONNECTED:"chromecast-connected",CHROMECAST_DISCONNECTED:"chromecast-disconnected",ERROR_LINK_PRESSED:"error-link-pressed",MEDIASESSION_PLAY:"mediasession-play",MEDIASESSION_PAUSE:"mediasession-pause",MEDIASESSION_SEEK_FORWARD:"mediasession-seekforward",MEDIASESSION_SEEK_BACKWARD:"mediasession-seekbackward",SLATE_DISPLAYED:"slate-displayed",CLICK:"click",VIDEO_DURATION_MISMATCH:"video-duration-mismatch",VIDEO_FULLSCREEN_CHANGE:"video-fullscreen-change",VIDEO_MANIFEST_LOADED:"video-manifest-loaded",VIDEO_MANIFEST_TIMEOUT:"video-manifest-timeout",VIDEO_PLAYBACK_RATE_CHANGED:"video-playback-rate-changed",VIDEO_STREAM_CHANGE:"video-stream-change",VIDEO_SWITCH_BACK_TO_AUTO:"video-switch-back-to-auto",VIDEO_SWITCH_FROM_AUTO:"video-switch-from-auto",AD_BUFFERING:"ad-buffering",AD_COMPLETE:"ad-complete",AD_CLICKED:"ad-clicked",AD_ERROR:"ad-error",AD_PAUSED:"ad-paused",AD_RESUMED:"ad-resumed",AD_STARTED:"ad-started",AD_SKIPPED:"ad-skipped",OUTRO_VIDEO_SELECTED:"outro-video-selected",WEBVR_HARDWARE_AVAILABLE:"webvr-hardware-available",ENTER_WEBVR:"enter-webvr",EXIT_WEBVR:"exit-webvr"});function rh(t){return t.quality||t.metadata.quality}function oh(t){return vc("av01",t)?"AV1":vc("hvc1",t)?"HEVC":vc("avc1",t)?"AVC":null}function uh(t){var n=rh(t),i={"1440p":"2K","2160p":"4K","2700p":"5K","3240p":"6K","3780p":"7K","4320p":"8K"};for(var e in i)n=n.replace(e,i[e]);return n}function ah(t,n){var i,e;return(null==t||null==(i=t.request)||null==(e=i.ab_tests)?void 0:e[n])?t.request.ab_tests[n]:{}}function sh(t,n,i,e){var o,u,a,s,c=function(t){return function(){for(var n=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:{};(n=Object.assign(X(),u?u.globalProperties():void 0,n)).name=t,o.log(n).catch((function(t){}))}function X(){return Object.assign(function(){var n={autoplay:1===t.config.embed.autoplay,background:!!t.config.embed.settings.background,clip_id:t.config.video.id,context:t.config.embed.context,device_pixel_ratio:window.devicePixelRatio||1,drm:t.config.request.drm||!1,embed:!t.config.embed.on_site,is_mod:!!t.config.user.mod,is_spatial:!(!os.spatialPlayback||!t.config.video.spatial),logged_in:!!t.config.user.logged_in,looping:!!t.config.embed.loop,product:Yc(t),referrer:t.config.request.referrer,session_id:t.config.request.session,stayed_on_auto:v,version:Jc(t.config),version_backend:t.config.request.build.backend,vuid:bf("vuid")};return t.config.video.owner&&(n.account_type=t.config.video.owner.account_type),t.config.embed.api&&(n.api_version=t.config.embed.api),t.config.embed.app_id&&(n.app_id=String(t.config.embed.app_id)),t.config.video.privacy&&(n.privacy=t.config.video.privacy),i.get(jf)&&(n.live_session_id=t.config.video.live_event.id),os.webvr&&t.config.video.spatial&&(n.webvr_support=!0),os.webxr&&t.config.video.spatial&&(n.webxr_support=!0),n}(),function(){var n=t.backbone.video?t.backbone.video.currentFile:{},i=function(){var n={},i=cd(),e=Ea("asc"),r="MediaSourceScanner"===t.backbone.currentScannerName,o="HTMLScanner"===t.backbone.currentScannerName,u="HLSLiveScanner"===t.backbone.currentScannerName,a=[];o&&(a=Bu(t.config,"request.files.progressive")||Bu(t.config,"request.files.hls")||[]),r&&(a=Bu(t.config,"request.files.dash.streams",[])),u&&(a=t.backbone.video.currentFile.mime===gc.dashMpd?Bu(t.config,"request.files.dash.streams",[]):Bu(t.config,"request.files.hls.streams",[]));var s=U(a).sort(e).map((function(t){return t.profile})),c=-1,f=0,l=null;if(Object.keys(g).forEach((function(t){var n=s.indexOf(parseInt(t,10));n>c&&(c=n);var e=g[t].reduce((function(t,n){return((n.end||i)-n.start)/1e3+t}),0);e>f&&(f=e,l=t)})),n.highest_profile=s[c],n.highest_available_profile=s[s.length-1],n.most_used_profile=l,(r||u)&&k){n.max_speed=Math.round(Math.max.apply(Math,tt(k)))/1e3,n.min_speed=Math.round(Math.min.apply(Math,tt(k)))/1e3;var d=k.reduce((function(t,n){return t+n}),0);n.average_speed=Math.round(d/k.length)/1e3}return n}(),e=n.id,r=void 0===e?0:e,o=n.mime,u=void 0===o?gc.h264:o,a=n.metadata,s=(a=void 0===a?{}:a).profile,c=void 0===s?null:s,f=!1,h=!1;switch(u){case gc.dash:0===n.restrictedStreamIndexes.length&&(f=!0),Bu(t.config,"request.files.dash.separate_av")&&(h=!0),c=b?b.profile:null;break;case gc.hls:f=!0}return{audio_bitrate:t.backbone.getBitrateAtTime(t.backbone.currentTime,"audio")/1e3,auto:f,average_speed:i.average_speed||0,cdn:n.metadata?n.metadata.cdn:"akamai",delivery:"live"!==jc[u]?jc[u]:"dash",dropped_frames:j,dropped_frame_percent:I,event_time:l+fd(d),ended:x,forced_embed_quality:M,fullscreen:C,highest_available_profile:i.highest_available_profile?String(i.highest_available_profile):null,highest_profile:i.highest_profile?String(i.highest_profile):null,max_speed:isFinite(i.max_speed)?i.max_speed:0,mime:n.mime||null,min_speed:isFinite(i.min_speed)?i.min_speed:0,most_used_profile:i.most_used_profile?String(i.most_used_profile):null,origin:n.metadata?n.metadata.origin:"",profile_id:c?String(c):null,codec:fu(b)?"":oh(b.codecs),quality:b?b.quality:null,quality_downswitch_count:O,quality_upswitch_count:R,quality_switch_count:R+O,separate_av:h,target_profile_id:z,ttfb:Z(),video_bitrate:t.backbone.getBitrateAtTime(t.backbone.currentTime,"video")/1e3,video_duration:uc(t.config.video.duration),video_file_id:Number.isInteger(Number(r))?parseInt(r,10):null}}(),function(){var n={};if(t.config.request.ab_tests)for(var i in t.config.request.ab_tests){var e=t.config.request.ab_tests[i];for(var r in n["".concat(i,"_test")]=1,n["".concat(i,"_group")]=e.group,e.data)n["".concat(i,"_data_").concat(r)]=e.data[r]}return n}())}function Z(){var t=-1;if(void 0!==window.performance&&"function"==typeof window.performance.getEntriesByType){var n=window.performance.getEntriesByType("resource");if(n){var i=n.filter((function(t){return null!==t.name.split("?")[0].match(/\.m4s$|\.ts$/)}));t=i.map((function(t){return t.responseStart-t.connectStart})).reduce((function(t,n){return t+n}),0)/(i.length||1)}}return uc(t,2)}function Q(t){var n=t.url,i=-1;if(window.performance){var e=window.performance.getEntriesByType("resource");if(e.length){var r=e.filter((function(t){return t.name===n})).sort((function(t,n){return t.connectStart-n.connectStart}));if(r.length){var o=r[r.length-1];i=o.responseStart-o.connectStart}}}return uc(i,2)}function nt(t,n){if(!t||!t.length)return 0;if(1===t.length&&t.end(0)-t.start(0)<1e-6)return 0;for(var i=0,e=t.length-1;e>=0&&t.end(e)>n;--e)i+=t.end(e)-Math.max(t.start(e),n);return uc(i,2)}d=ld(),l=t.config.request.timestamp,o=new Wc(function(){var n="?beacon=1&session-id=".concat(t.config.request.session);return t.config.request.urls.fresnel+n}()),t.events.on(Oc.Za,(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{final:!0},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e={error_type:t,error_reason:i};u.handleExternalError(e,n)})),t.events.on(yc.Ma,(function(){A=!1})),t.events.on(yc.ka,(function(){W=!0})),t.events.on(Oc.Yc,(function(t,n){J(eh.ERROR_LINK_PRESSED,{error_type:n,error_url:t})})),t.events.on(Oc.zs,(function(){C=!0,J(eh.VIDEO_FULLSCREEN_CHANGE)})),t.events.on(Oc.Gs,(function(){C=!1,J(eh.VIDEO_FULLSCREEN_CHANGE)})),t.events.on(Oc.pf,(function(t,n){J(t?eh.ALERT_DISPLAYED:eh.ALERT_HIDDEN)})),t.events.on(Oc.Oc,(function(){l=t.config.request.timestamp,d=ld(),h=!1,v=!0,p=!1,m=!1,w="auto",b={},g={},y=null,_=null,E=null,k=[],T=null,S={},A=!1,x=!1,M="none",C=!1,R=0,O=0,I=0,j=0,D=null,L=null,N=null,F=null,B=null,z=null,$=0,u&&(u.reset(),Y())})),t.events.on(Oc.ds,(function(){q={seek_type:"nudge"}})),t.events.on(Oc.Ss,(function(t,n){q={seek_type:n}})),t.events.on(Oc._s,(function(t){q={seek_type:"chapter-".concat(t)}})),t.events.on(Oc.Hc,(function(t){J(eh.OUTRO_VIDEO_SELECTED,{selected_video_id:t})})),t.events.on(Do,(function(){A||pf.isCastConnected||(t.performDelegateAction(Rc,(function(t){A=!0,s.then((function(){return u.logStartRequest()})).catch((function(){}))})),ah(t.config,"chunk_logging").group&&t.config.request.urls.fresnel_manifest_url&&function(t,n,i,e){var r=Date.now(),o=[{uuid:ac(),created_at:r,event:{name:"session_manifest",version:1,ts_ms:r,fields:{sessionID:n,manifest:i}},tracker:{name:"vimeo-player",version:e}}];new Wc(t).logRequestPromiseWithUrl(t,JSON.stringify(o),!0)}(t.config.request.urls.fresnel_manifest_url+"?beacon=1",t.config.request.session,t.backbone.manifest,Jc(t.config)))})),t.events.on(Oc.tc,(function(t){"email-capture"===t&&J(eh.SLATE_DISPLAYED,{slate_type:"email"})})),t.events.on(Oc.ls,(function(t,n){J(eh.VIDEO_PLAYBACK_RATE_CHANGED,{previous_playback_rate:n})})),t.events.on(Oc.cs,(function(t){J(eh.CLICK,{click_target:t})})),t.events.on(yc.Ra,(function(n){"auto"!==n&&(v=!1),t.backbone.video.currentFile.mime===gc.dash&&("auto"===n||p?"auto"===n&&p&&!m&&(J(eh.VIDEO_SWITCH_BACK_TO_AUTO,{quality:w,auto:1}),m=!0):(J(eh.VIDEO_SWITCH_FROM_AUTO,{quality:n,auto:0}),p=!0),w=n)})),t.events.on(yc.Fa,(function(t){T!==t&&(T=t,J(eh.CAPTIONS_ENABLED,{captions_id:String(t)}))})),t.events.on(yc.Ua,(function(){T&&(T=null,J(eh.CAPTIONS_DISABLED))})),t.events.on(df.connected,(function(){J(eh.CHROMECAST_CONNECTED)})),t.events.on(df.disconnected,(function(){J(eh.CHROMECAST_DISCONNECTED)})),t.events.on(mi.STREAM_CHANGE,(function(t,n,i){b=t;var e=t.profile?t.profile:t.id,r=cd();if(g[e]=g[e]||[],y){var o=g[y].length-1;g[y][o]&&(g[y][o].end=r)}_&&(i[n].bitrate>_?R+=1:O+=1),g[e].push({start:r}),S[e]={bitrate:i[n].bitrate,width:i[n].width,height:i[n].height},J(eh.VIDEO_STREAM_CHANGE,{previous_audio_bitrate:E/1e3,previous_video_bitrate:_/1e3,previous_profile_id:String(y)}),y=e,_=i[n].bitrate,E=i[n].audioBitrate})),t.events.on(mi.STREAM_TARGET_CHANGE,(function(t){t&&(z=String(t.profile||"")||null)})),t.events.on(Po,(function(t){M=t})),t.events.on(hi.PLAYING,(function(){W=!1})),t.events.once(Oc.fs,(function(){h=!0})),t.events.on(Oc._f,(function(){J(eh.AD_BUFFERING)})),t.events.on(Oc.Ef,(function(){J(eh.AD_COMPLETE)})),t.events.on(Oc.kf,(function(){J(eh.AD_CLICKED)})),t.events.on(Oc.Tf,(function(t){J(eh.AD_ERROR,{error_type:t.errorType,error_reason:t.errorReason})})),t.events.on(Oc.Sf,(function(){J(eh.AD_PAUSED)})),t.events.on(Oc.Af,(function(){J(eh.AD_RESUMED)})),t.events.on(Oc.xf,(function(t){J(eh.AD_STARTED,{startup_duration:t.time?uc(t.time/1e3,2):null})})),t.events.on(Oc.Mf,(function(){J(eh.AD_SKIPPED)})),t.events.on(Oc.ns,(function(){os.iPhone&&u.setDisplayContext(1)})),t.events.on(Oc.es,(function(){os.iPhone&&u.setDisplayContext(0)})),t.events.on(mi.DROPPED_FRAMES,(function(t){var n=t.dropped/t.total*100;I=Math.round(100*n)/100,j=t.dropped})),t.events.on(mi.BANDWIDTH,(function(t){var n=t.speed;k.push(n),k.length>500&&k.shift()})),t.events.on(mi.MANIFEST_TIMEOUT,(function(){J(eh.VIDEO_MANIFEST_TIMEOUT)})),t.events.on(mi.MANIFEST_LOADED,(function(){J(eh.VIDEO_MANIFEST_LOADED)})),t.events.on(mi.DOWNLOAD_END,c),t.events.on(mi.SCANNER_CHANGE,(function(){F=null})),t.events.on(mi.AV_DURATION_MISMATCH,(function(t){J(eh.VIDEO_DURATION_MISMATCH,{duration_difference:Math.round(100*t)/100})})),t.events.on(mi.QUOTA_EXCEEDED_ERROR,(function(t){var n=t.buffered,i={error_type:mi.QUOTA_EXCEEDED_ERROR};i.buffered=uc(nt(n,0),2),i.bytes_loaded=$,J(eh.VIDEO_PLAYBACK_ERROR,i)})),t.events.on(gi.MEDIASESSION_PLAY,(function(){J(eh.MEDIASESSION_PLAY)})),t.events.on(gi.MEDIASESSION_PAUSE,(function(){J(eh.MEDIASESSION_PAUSE)})),t.events.on(gi.MEDIASESSION_SEEK_FORWARD,(function(){J(eh.MEDIASESSION_SEEK_FORWARD)})),t.events.on(gi.MEDIASESSION_SEEK_BACKWARD,(function(){J(eh.MEDIASESSION_SEEK_BACKWARD)})),t.events.on(Ic.ka,(function(){q={seek_type:"api"}})),t.events.on(Ic.Rf,(function(){G=!0})),t.events.on(Ic.Of,(function(){G=!0})),t.events.on(bi.WEBVR_HARDWARE_AVAILABLE,(function(t){J(eh.WEBVR_HARDWARE_AVAILABLE,{vr_hardware:t.displayName})})),t.events.on(bi.WEBVR_ENTER,(function(){J(eh.ENTER_WEBVR,!0)})),t.events.on(bi.WEBVR_EXIT,(function(){J(eh.EXIT_WEBVR,!0)})),t.events.on(yi.BRAIN_ML_MODEL_INPUTS,(function(n){var i;(null==(i=n.geolocation)?void 0:i.length)&&n.geolocation[0].length?n.geolocation=n.geolocation[0][0]:n.geolocation="",t.config.request.urls.fresnel_mimir_inputs_url&&function(t,n,i,e){var r={chunk_request_id:i.chunkRequestID,duration:i.duration,available_qualities:i.availableQualities,next_chunk_sizes:i.nextChunkSizes,last_buffer_sizes:i.lastBufferSizes,last_chunk_download_times:i.lastChunkDownloadTimes,last_chunk_sizes:i.lastChunkSizes,last_chunk_qualities:i.lastChunkQualities,num_remaining_chunks:i.numRemainingChunks,last_playback_heads:i.lastPlaybackHeads,geolocation:i.geolocation,session_id:n},o=Date.now(),u=[{uuid:ac(),created_at:o,event:{name:"mimir_inputs",version:1,ts_ms:o,fields:r},tracker:{name:"vimeo-player",version:e}}];new Wc(t).logRequestPromiseWithUrl(t,JSON.stringify(u),!0)}(t.config.request.urls.fresnel_mimir_inputs_url+"?beacon=1",t.config.request.session,n,Jc(t.config))})),(s=new r((function(n,i){var e;(null==(e=t.backbone)?void 0:e.video)&&n(),t.events.on(jo,n)}))).then(K).catch((function(){})),t.events.on(Oc.$c,K),ih.getFirstConsistentlyInteractive().then((function(t){B=uc(t)})).catch((function(){}))}var ch=function(){function t(t,n,i){this.player=t,this.element=n,this.store=i,this.muxClient=null,this.rl()&&this.ol()}var n=t.prototype;return n.ul=function(){return!!this.player.config.request.flags.ott},n.rl=function(){return!(this.player.doNotTrackEnabled||!this.ul()&&!this.store.get(jf))},n.ol=function(){var t=this;if(!document.getElementById("vp-mux-client")){var n=document.createElement("script");n.setAttribute("id","vp-mux-client"),n.setAttribute("src",this.player.config.request.urls.mux_url),n.onreadystatechange=n.onload=function(){t.al(),t.sl()},document.getElementsByTagName("head")[0].appendChild(n)}},n.sl=function(){var t=this;this.player.events.on(Oc.Oc,(function(){t.rl()&&t.al()})),this.store.watch("ui.liveEvent.isLiveStarted",(function(n){n&&t.al()}))},n.al=function(){if("undefined"!=typeof mux){var t=this.player.backbone.video?this.player.backbone.video.currentFile:{},n=this.element.querySelector(".vp-telecine").getElementsByTagName("video")[0];null!==this.muxClient&&mux.destroyMonitor(n);var i="dev"===this.player.config.request.build.js?"6eq01ih8u9u8fkk4hbindded5":"73cngs5ov03sbnck36isdkndt";this.store.get("ui.liveEvent.isLiveStarted")&&(i="dev"===this.player.config.request.build.js?"kghblrf3bb9uk33lv58ompm3k":"md0ig7ssl8unl2kpl0h6p0drn");var e={property_key:i,player_name:"Vimeo Player",player_init_time:Date.now(),player_version:Jc(this.player.config),video_title:this.player.config.video.title,video_id:this.player.config.video.id,video_duration:1e3*this.player.config.video.duration,video_cdn:t.metadata?t.metadata.cdn:"akamai",video_stream_type:this.store.get(jf)?"live":"vod",viewer_user_id:this.player.config.request.session};this.ul()&&(e.property_key="dev"===this.player.config.request.build.js?"3tb8rggvj5m71caj9jfpiidos":"lrc6o7kvhc6npvqq2r5iks5u4",this.player.config.ott&&(e=Object.assign(e,this.player.config.ott))),this.muxClient=mux.monitor(n,{debug:!1,minimumRebufferDuration:500,data:e})}},t}();function fh(t){var n,i,e,o,u,a="https://collector.vhx.tv/events.gif",s=new Wc(a),c=t.config.ott||{};function f(){c=t.config.ott||{},e=null,o=null,u=null,i=!1,n=!1}function l(i,e){(e=Object.assign({},e,{name:c.video_title,user_id:c.viewer_user_id,channel_id:c.video_series,user_agent:navigator.userAgent,url:top===self?window.location.href:document.referrer,referrer:t.config.request.referrer,session_id:t.config.request.session,device:"html5"},{type:"video",video_id:c.video_id,current_src:t.backbone.currentFile.src,current_subtitle:"none",current_type:c.video_content_type,duration:c.video_duration,is_drm:t.config.request.drm?1:0,is_fullscreen:n?1:0,is_trailer:c.is_trailer?1:0,is_chromecast:pf.isCastConnected?1:0,is_live:t.config.video.live_event,seconds:10,timecode:t.currentTime})).name=i,void 0===e.timestamp&&(e.timestamp=Math.round(.001*Date.now()));var r=qs(e),o=a+r;return s.logRequestPromiseWithUrl(o,{},!0,"GET").catch((function(t){}))}function d(){t.events.on(hi.ENDED,h),t.events.on(hi.ERROR,v),t.events.on(hi.PAUSE,p),t.events.on(hi.PLAY,m),t.events.on(hi.SEEKED,w),t.events.on(hi.WAITING,b),t.events.on(Oc.zs,g),t.events.on(Oc.Gs,y),t.events.on(Oc._f,_),t.events.on(Oc.Ef,E),t.events.on(Oc.kf,k),t.events.on(Oc.Tf,T),t.events.on(Oc.Sf,S),t.events.on(Oc.Af,A),t.events.on(Oc.xf,x),t.events.on(Oc.Mf,M)}function h(){clearTimeout(u),l("ended")}function v(){clearTimeout(u),l("error")}function p(){clearTimeout(u),l("pause")}function m(){if(function t(){o=Date.now(),clearTimeout(u),u=setTimeout((function(){!function(t){var n=t.elapsedTime,i=Math.round(.001*n);null!==e&&e(),l("timeupdate",Object.assign({seconds:i}))}({elapsedTime:Date.now()-o}),t()}),1e4)}(),!i)return i=!0,void l("firstplay");l("play")}function w(){l("seeked")}function b(){l("waiting")}function g(){n=!0}function y(){n=!1}function _(){l(eh.AD_BUFFERING)}function E(){l(eh.AD_COMPLETE)}function k(){l(eh.AD_CLICKED)}function T(){l(eh.AD_ERROR)}function S(){l(eh.AD_PAUSED)}function A(){l(eh.AD_RESUMED)}function x(){l(eh.AD_STARTED)}function M(){l(eh.AD_SKIPPED)}return f(),t.config.ott?d():new r((function(n,i){t.ottVideoMetadata?n():t.events.on(Oc.Uc,(function(t){n()}))})).then((function(){c=t.ottVideoMetadata,d()})).catch((function(t){})),t.events.on(Oc.Oc,f),{reset:function(){clearTimeout(u),o=null,u=null}}}var lh=function(t){return function(n){for(var i=arguments.length,e=new Array(i>1?i-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{};return function(n){return function(){var i=n.apply(void 0,arguments);function e(){return t}var r=Pu((function(t){if(Ct(t))return t;var n=Bu(e(),t);return Ct(n)?n:function(n){return Bu(n,t)}}));function o(t,n){var e=(t=r(t))(i.getState());return void 0!==n&&(e=rl(e,n)),e}return W({},i,{getSelectors:e,createGetter:r,get:o})}}}(rd),Ls.apply(void 0,[]))),f=new L,l=nt(),d=new nf({events:l}),h=ac();n.classList.add("player-".concat(h)),n.classList.add("loading"),n.id||(n.id="player".concat(h)),n.innerHTML=ud.render("outer",{strings:{back:"Voltar",close:"Fechar sobreposição"}});var v=n.querySelector(".vp-telecine");if(os.iOS){var p=document.createElement("video");v.appendChild(p);try{p.setAttribute("muted",""),p.setAttribute("playsinline",""),p.load()}catch(t){tf.captureException(t)}}var m,w,b,g,y,_=null,E=null,k=null,T=null,S=null,A=null,x={},M=new r((function(t,n){y=t})).then((function(){return l.fire(Oc.te),null})),C={get config(){return d.config},set config(t){d.config=t},get delegate(){return e},set delegate(t){e=t},ready:function(t){if(!t)return M;M.then((function(){return t()})).catch((function(t){tf.captureException(t)}))},get sessionId(){return d.config.request.session}};function R(t){var n=t.old,i=t.loaded;if(function(t,n){t&&s&&"".concat(s," ")}(!n),window.parent!==window){var e,r="Private Video on Vimeo";1!==i.view&&3!==i.view||(r="".concat(i.video.title," from ").concat(i.video.owner.name," on Vimeo")),document.title=r,(null==(e=history)?void 0:e.replaceState)&&i.video&&n&&history.replaceState({id:i.video.id},"","/video/".concat(i.video.id).concat(window.location.search))}if(1!==i.view&&3!==i.view)throw new Error("Config not authorized: ".concat(i.view));(null==n?void 0:n.embed)&&n.embed.color!==i.embed.color&&l.fire(yc.Ia,i.embed.color),T&&T.reset();var o=!n||!n.video||n.video.id!==i.video.id||n.video.version.current!==i.video.version.current;return function(t){at=t.substring(0,t.lastIndexOf("/")+1)}(i.request.urls.js),m=null,b=_,l.fire(yc.Ma),c.dispatch(Af(i)),l.fire(Oc.Oc,o,i),t}function O(t){if("opacity"===t.propertyName){var n=document.querySelector(".vp-placeholder");n&&($f(n).off("transitionend",O),n.parentNode.removeChild(n))}}function I(){!function(){var t=document.querySelector(".vp-placeholder");t&&($f(t).on("transitionend",O),t.classList.add("vp-placeholder-fadeout"))}(),n.classList.remove("loading"),y()}function j(t){return u.then((function(){if(P(t),E&&E.resetThumbnail(),"function"!=typeof x.authorizationHandler)throw new Error("Config was not authorized.");return x.authorizationHandler(I)})).then((function(t){return d.config=t,m=null,c.dispatch(Af(d.config)),l.fire(yc.Ma),l.fire(Oc.Oc,!0,d.config),t}))}function D(t){(function(){var t=document.location.hash,n=function(t){var n,i=t.match(/\ba?t=([0-9hms:]+)/);null!==i&&(t=i[1]);var e=!1,r=0,o=0,u=0;if((null==(n=i=t.match(/^([0-9]+)$/))?void 0:n.length)&&(e=!0,u=i[1]),!1===e&&null!==(i=t.match(/^(?:([0-9]+)h)?(?:([0-9]+)m)?(?:([0-9]+)s)?/))&&""!==i[0]){e=!0;var a=Q(i,4),s=a[1];r=void 0===s?0:s;var c=a[2];o=void 0===c?0:c;var f=a[3];u=void 0===f?0:f}if(!1===e&&null!==(i=t.match(/^([0-9:]+)/))){e=!0;var l=Q(t.split(":").reverse(),3);u=l[0];var d=l[1];o=void 0===d?0:d;var h=l[2];r=void 0===h?0:h}return e?60*parseInt(r,10)*60+60*parseInt(o,10)+parseInt(u,10):null}(t);null!==n&&(d.config.embed.time=nc(n,0,d.config.video.duration),-1!==t.indexOf("at=")&&history&&history.replaceState&&history.replaceState("","",window.location.pathname+window.location.search))})(),l.on(Oc.Ac,(function(t){d.reload().then((function(n){if(!d.config.user.logged_in)return l.fire(Oc.Cc),n;switch(l.fire(Oc.xc,t),t){case"like":d.config.user.liked&&l.fire(Oc.Ec);break;case"watch-later":d.config.user.watch_later&&l.fire(Oc.Tc);break;case"private":l.fire(Oc.jc)}return n})).catch((function(t){tf.captureException(t)}))})),l.on(Oc.Mc,(function(){d.reload().catch((function(t){tf.captureException(t)}))})),function(t){var i,e;new Fd(t,c,n),E=new mf(t,c,n.querySelector(".vp-preview")),l.on([mi.BUFFER_ENDED,hi.PLAYING],(function(){E.hide()})),_=new Wa(v,d.config),b=_,new Nf(t,c,n.querySelector(".vp-video-wrapper")),new od(t,c,n.querySelector(".vp-captions")),new ad(n,l),N(t),t.doNotTrackEnabled||(d.config.request.urls.test_imp&&function(t,n){if(t.config.request.ab_tests){var i=new Wc(n);for(var e in t.config.request.ab_tests){var r=t.config.request.ab_tests[e];if(r.track){var o={session_id:t.config.request.session,test_id:e,test_group:String(r.group)};i.log(o,!0,!1).catch((function(t){}))}}}}(t,"".concat(d.config.request.urls.test_imp,"?beacon=1")),new sh(t,n,c,d.config.request.urls.fresnel),new el(t,c),new ch(t,n,c),new fh(t)),T=new _f(t),(t.config.request.flags.ott||(null==(i=t.config.request.ab_tests)||null==(e=i.chromecast)?void 0:e.group))&&function(t){if(!t.config.video.spatial&&"stock"!==t.config.video.privacy){var i=new hf({textAlert:new nh(n),player:t});pf.init({chromecastPlayer:i}),pf.on([df.error,df.mediaLoadedFailed],(function(t){tf.captureException(t)}))}}(t),P(t)}(t)}function P(t){k||(k=new th(t),sd(C,k),Wd(tf))}function N(t){var i=d.config.request.ads;i&&(i.adcode&&i.adunit||i.adurl)&&(S=new hh(t,n.querySelector(".vp-video-wrapper")),l.on(Oc.ns,(function(){b=S,l.fire(Oc.rf)})),l.on(Oc.es,(function(){b=_,l.fire(Oc.rf)})),pf&&(pf.on(df.connected,(function(){S.toggleCastingState(!0)})),pf.on(df.disconnected,(function(){S.toggleCastingState(!1)}))))}function F(t,n){var i=t;return isNaN(t)&&"string"!=typeof t||(i=rc(ec(t),t,n)),i}var U={get store(){return c},get config(){return d.config},get element(){return n},get events(){return l},get uuid(){return h},get expose(){return C},get backbone(){return _},get adHandler(){return S},get displayContext(){return b},get preview(){return E},get doNotTrackEnabled(){return d.config.embed.dnt||d.config.request.flags.dnt},get playLoggingEnabled(){return d.config.embed.log_plays&&d.config.request.flags.plays},get currentTime(){return pf.isCastConnected?pf.chromecastPlayer.lastCurrentTime:_.currentTime},get ottVideoMetadata(){return A},set ottVideoMetadata(t){A=t},init:function(t,n){return w||(x=n,w=d.load(t).then(R).catch((function(t){return j(U)})).then((function(){return"function"==typeof x.initializationHandler?r.resolve(n.initializationHandler()):null})).then((function(){return D(U),"function"==typeof x.postInitializationHandler?r.resolve(n.postInitializationHandler()):null})).then((function(){return r.all([E.thumbnailPromise,u])})).then(I).then((function(){return tf.setUp(U),null})).catch((function(t){tf.captureException(t)})))},loadVideo:function(t,i){if(g===t&&m)return m;if(E&&E.resetThumbnail(),null==i?void 0:i.video_version){var e=d.config.video.version.available;if(!e||!Array.isArray(e))return r.reject("No available video versions");if(-1===(e=e.map((function(t){return t.id}))).indexOf(i.video_version))return r.reject("Invalid version id specified")}l.fire(Oc._loadVideo),g=t,n.classList.add("loading");var o=F(t,i),u=f.get(o);return t=u?u.cl.loaded:t,m=d.load(t,i).then((function(t){if(u){var n=_.element;(_=u.fl).element.style.visibility="visible",n.parentNode.replaceChild(_.element,n),l.fire(Oc.$c)}return t=R(t),S||N(U),t})).catch((function(t){return j(U)})).then((function(t){var n=E.loadThumbnail();return r.resolve(n)})).then(I)},preloadVideo:function(t,n,i){var e=F(n,i),o=f.get(e);return o?r.resolve(o):new nf({events:l}).load(n,i).then((function(n){var i=_.element.cloneNode(!1);i.style.visibility="hidden",_.element.parentNode.insertBefore(i,_.element);var r=new Wa(i,n.loaded);r.loadVideo(n.loaded),r.preload=t;var o={fl:r,cl:n};return f.set(e,o),o}))},performDelegateAction:function(t){var n,i,r,o,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];null!=(n=e)&&n[t.will]&&!1===(r=(o=e)[t.will].apply(o,[d.config.video.id].concat(tt(a))))||(u.apply(void 0,[d.config.video.id].concat(tt(a),[r])),(null==(i=e)?void 0:i[t.did])&&e[t.did]())},ready:function(){return M},verifyConfig:function(){return d.verify()},updatePhpTokens:function(){return new r((function(t,n){var i=d.config.user,e=i.vimeo_api_client_token,r=i.vimeo_api_interaction_tokens,o=i.vimeo_live_client_token,u=i.vimeo_bucketed_live_client_token,a=!1;if(e)try{a=dd(JSON.parse(atob(e.split(".")[1])).exp)>=0}catch(t){return void n(new Error("Failed to parse PHP client token expiration"))}if(r)try{var s=JSON.parse(atob(r.likes.split(".")[1])).exp,c=JSON.parse(atob(r.watch_later.split(".")[1])).exp,f=JSON.parse(atob(r.following.split(".")[1])).exp;a=dd(s)>=0||dd(c)>=0||dd(f)>=0}catch(t){return void n(new Error("Failed to parse PHP interaction tokens expiration"))}if(o)try{a=dd(JSON.parse(atob(o.split(".")[1])).exp)>=0}catch(t){return void n(new Error("Failed to parse PHP Live token expiration"))}if(u)try{a=dd(JSON.parse(atob(u.split(".")[1])).exp)>=0}catch(t){return void n(new Error("Failed to parse PHP Live token expiration"))}if(a){var l=d.config.request,h=l.signature,v=l.session,p=l.timestamp,m=l.expires;ze("https://".concat(d.config.player_url,"/video/").concat(d.config.video.id,"/token/refresh?signature=").concat(h,"&session=").concat(v,"&time=").concat(p,"&expires=").concat(m),{withCredentials:!0}).json().then((function(n){return d.config.user.vimeo_api_client_token=n?n.vimeo_api_client_token:null,d.config.user.vimeo_api_interaction_tokens=n?n.vimeo_api_interaction_tokens:null,d.config.user.vimeo_live_client_token=n?n.vimeo_live_client_token:null,d.config.user.vimeo_bucketed_live_client_token=n?n.vimeo_bucketed_live_client_token:null,t()})).catch((function(t){tf.captureBreadcrumb("Failed to refresh JWT token",{},"auth","error"),n(t)}))}else t()}))}};return U}var ph=self!==top,mh=/i(Pad|Phone|Pod)/.test(navigator.userAgent)&&parseInt(navigator.userAgent.replace(/^.*OS (\d+)_(\d+).*$/,"$1.$2"),10)>=7,wh=function(){var t=document.createElement("video"),n={request:["requestFullscreen","webkitRequestFullscreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"],exit:["exitFullscreen","webkitCancelFullScreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],enabled:["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],element:["fullscreenElement","webkitFullscreenElement","webkitCurrentFullScreenElement","mozFullScreenElement","msFullscreenElement"],change:["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],error:["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"]},i={};for(var e in n)for(var r=0,o=n[e].length;r0){var i=Mh.pop();n=n||i.element,i.error.call(n,t),Bh.onerror(n,t),Eh(bh.ERROR,n,t)}},Bh={request:function(t,n,i,e){if(t=t||document.body,Mh.push({element:t,enter:n||xh,exit:i||xh,error:e||xh}),void 0===wh.request)return Lh(t);if(ph&&!1===document[wh.enabled])return Lh(t);if(!1!==Ch&&Ch<32)return Lh(t);if(ph&&void 0===wh.enabled)return wh.enabled="webkitFullscreenEnabled",t[wh.request](),void setTimeout((function(){document[wh.element]?document[wh.enabled]=!0:(document[wh.enabled]=!1,Lh(t))}),250);try{!ph&&window&&(_h=window.scrollY),t[wh.request](),Rh>=5.1&&setTimeout((function(){document[wh.element]||Vh(ph?"not_enabled":"not_allowed",t)}),100)}catch(n){Vh("not_enabled",t)}},exit:function(){Nh(),!document[wh.exit]&&Bh.element?Bh.element[wh.exit]():document[wh.exit]()},toggle:function(t,n,i,e){Bh.element?Bh.exit():Bh.request(t,n,i,e)},videoEnabled:function(t){if(Bh.enabled)return!0;var n=Th(t=t||document.body);return!(!n||void 0===n.webkitSupportsFullscreen)&&(n.readyState-1&&yh[t].splice(i,1)})),onenter:xh,onexit:xh,onchange:xh,onerror:xh};try{Object.defineProperties(Bh,{element:{enumerable:!0,get:function(){return Sh&&Sh.webkitDisplayingFullscreen?Sh:document[wh.element]||null}},enabled:{enumerable:!0,get:function(){return"webkitCancelFullScreen"===wh.exit&&!ph||!(!1!==Ch&&Ch<32)&&(document[wh.enabled]||!1)}}})}catch(t){Bh.element=null,Bh.enabled=!1}function Hh(t,n,i,e){var r=!1;e="function"==typeof n?i:e,i="function"==typeof n?n:i;var o=function(t){var n=!0;if(t.changedTouches){var o=t.changedTouches[0].pageX-window.pageXOffset,u=t.changedTouches[0].pageY-window.pageYOffset,a=document.elementFromPoint(o,u);null!==a&&this.contains(a)&&(n=i.call(this,t))}return"function"==typeof e&&e.call(this,t),r=!0,n},u=function(t){if(!r)return i.call(this,t);r=!1};(n="function"==typeof n?null:n)?$f(t).on("click",n,u).on("touchend",n,o):$f(t).on("click",u).on("touchend",o)}function qh(t,n){var i,e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=[],u=!1;function a(){i=c(),r.forEach(v),Hh(i,".js-menuClose",k),$f(window).on("resize",A)}function s(){$f(window).off("resize",A)}function c(){var t=document.createElement("div");return t.innerHTML=ud.render("menu",{strings:{close:"Fechar menu"}}),t.children[0]}function f(){return i.classList.contains("vp-menu-center")}function l(){return i.classList.contains("vp-menu-fullwidth")}function d(){return i.classList.contains("vp-menu-carousel")}function h(){var t=o.length>1&&!d();o.forEach((function(n){n.setCollapsible(t),n.resetCarousel(d())}))}function v(t){o.push(t),i.insertBefore(t.element,i.lastChild),h(),t.on("open",m),t.on(["open","close"],w),t.on(["openEnd","closeEnd"],b),t.on("select",_)}function p(t){return o.find((function(n){return n.id===t}))}function m(t){o.filter((function(t){return t.isOpen()})).forEach((function(t){return t.close()}))}function w(t){u=!0,x()}function b(t){u=!1}function g(){return n&&"true"===n.getAttribute("aria-expanded")}function y(r){g()||(r=r||n.contains(document.activeElement),n.setAttribute("aria-expanded","true"),i.removeAttribute("hidden"),t.events.fire(Oc.Is,!0,e),A(),h(),i.classList.remove("vp-menu-hidden"),window.requestAnimationFrame((function(){if(i.classList.remove("vp-menu-invisible"),r){var t=C();t.length>0&&t[0].focus()}})))}function _(){d()||k()}function E(){C().some((function(t){return t===document.activeElement}))&&n.focus()}function k(){g()&&setTimeout((function(){E(),n.setAttribute("aria-expanded","false"),t.events.fire(Oc.Is,!1,e),i.classList.add("vp-menu-invisible")}),100)}function T(t){i.classList.add("vp-menu-hidden"),i.setAttribute("hidden","")}function S(t){return g()?(k(),!1):(y(t),!0)}function A(){if(!l()){var n=Zs(t.element),e=Zs(i),r=window.getComputedStyle(i),o=parseFloat(r.fontSize),u=e.bottom-i.scrollHeight,a=Math.max(n.top,0)-u;if(a>0){var s=i.scrollHeight-a-o;return i.style.height="".concat(s/o,"em"),void i.classList.add("vp-menu-scroll")}i.style.height="auto",i.classList.remove("vp-menu-scroll")}}function x(){A(),u&&requestAnimationFrame(x)}function M(){$f(i).on("transitionend",(function(t){this===i&&"opacity"===t.propertyName&&i.classList.contains("vp-menu-invisible")&&T()})),$f(document).on("click",(function(t){null!==n&&(!g()||n.contains(t.target)||i.contains(t.target)||k())})),window.addEventListener("blur",k,!1)}function C(){return o.reduce((function(t,n){return t.concat(n.getTabindexItems())}),[])}return a(),M(),e={element:i,button:n,isCentered:f,isVisible:g,isFullwidth:l,show:y,hide:k,toggle:S,retargetFocusFromChild:E,setPanelModes:h,addPanel:v,getPanel:p,getTabindexItems:C,destroy:s}}wh.change&&document.addEventListener(wh.change,(function(t){if(Bh.onchange(Bh.element),Eh(bh.CHANGE,Bh.element),Bh.element){var n=Mh[Mh.length-2];n&&n.element===Bh.element?Uh():(Fh(Bh.element),ph&&"webkitfullscreenchange"===wh.change&&window.addEventListener("resize",Ph,!1))}else Uh()}),!1),document.addEventListener("webkitbeginfullscreen",(function(t){var n=!0;if(Mh.length>0)for(var i=0,e=Mh.length;i":">",'"':""","'":"'"}),Wh=/[&<>"']/g,Gh=RegExp(Wh.source);function $h(t){return(t=po(t))&&Gh.test(t)?t.replace(Wh,zh):t}function Kh(t){nt(this);var n,i,e,r=this,o={x:0,y:0},u={x:0,y:0},a={x:0,y:0},s=0;function c(n){t.style["".concat(os.transitionProperty,"Duration")]=n}function f(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.children.length-1,r=-Math.round(n/d());return Math.min(Math.max(r,i),e)}function l(){return!1}function d(){var n=t.children[0],i=getComputedStyle(n);return n.offsetWidth+parseInt(i.marginLeft,10)+parseInt(i.marginRight,10)}function h(t){var n=[t.clientX,t.clientY],i=n[0],e=n[1];if(t.targetTouches&&t.targetTouches.length>0){var r=[t.touches[0].pageX,t.touches[0].pageY];i=r[0],e=r[1]}return{x:i,y:e}}function v(t){t.stopImmediatePropagation();var i=h(t),r=i.x,a=i.y;u.x=r-o.x,u.y=a-o.y,n=!1,(e=function(t){return function(n){var i=n?"on":"off",e={pointerdown:["pointermove","pointerup"],MSPointerDown:["pointermove","pointerup"],touchstart:["touchmove","touchend"],mousedown:["mousemove","mouseup"]};$f(window)[i](e[t.type][0],p),$f(window)[i](e[t.type][1],m)}}(t))(!0),c("0ms")}function p(t){var s=h(t),c=s.x,l=s.y;if(a.x=o.x,a.y=o.y,o.x=c-u.x,o.y=l-u.y,Math.abs(o.x-a.x)>=.15*Math.abs(o.y-a.y))return t.preventDefault(),n=!0,r.fire("touchMove"),i=Date.now(),void y(o.x);e(!1),w(f(o.x))}function m(u){if(u.stopImmediatePropagation(),e(!1),n){u.preventDefault();var c=o.x-a.x,l=Date.now()-i+1;return o.x+=50*c/l,w(f(o.x)),void r.fire("touchEnded")}!function(n){n.preventDefault();var i=fc(n.target,t.children);if(-1!==i){if(i!==s)return void w(i);r.fire("tap",i)}}(u)}function w(t){g(t),r.fire("slide",t)}function b(){g(s,"0ms")}function g(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=d();-1!==t&&i>0&&(c(n),o.x=-t*i,y(o.x))}function y(n){var i=f(n,-1,t.children.length);i!==s&&(r.fire("focus",i),s=i),t.style[os.transformProperty]="translateX(".concat(n,"px)")}return{setUp:function(n){$f(t).on(os.pointerEvents?"pointerdown":["touchstart","mousedown"],v),$f(t).on("click","a",l),$f(window).on("resize",b),b(),function(t){void 0!==t&&g(t,"0ms")}(n)},show:function(t){g(cc(t))},resize:b,destroy:function(){$f(t).off(os.pointerEvents?"pointerdown":["touchstart","mousedown"],v),$f(t).off("click","a",l),$f(window).off("resize",b),t.style.removeProperty(os.transformProperty)},on:this.on}}function Yh(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.items.forEach((function(t){void 0!==t.label&&(t.label=$h(t.label))}));var i,e,r,o,u,a,s=nt(),c=n.id,f=n.items,l=!1;function d(){h(),i=v(),e=i.querySelector(".js-panelItems"),(r=new Kh(e)).on("slide",x),r.on("tap",M),Hh(i,".js-panelTitleButton",A),Hh(i,"li",C),$f(i).on("keydown",R),$f(i).on("keypress",R),$f(i).on("transitionend",(function(t){t.target===i&&(_()?k():S())}))}function h(){n=Object.assign(n,{get active(){return D()?D().label:""}})}function v(){var t=document.createElement("div");return t.innerHTML=ud.render("menu_list_panel",n),t.children[0]}function p(t){var n=U(i.querySelectorAll(".vp-panel-item"));return n[t]||n}function m(t){t!==w()&&(i.classList.toggle("vp-panel-open",!t),i.classList.toggle("vp-panel-collapsible",t),t?e.setAttribute("hidden",""):(e.removeAttribute("hidden"),i.style.removeProperty("height")))}function w(){return i.classList.contains("vp-panel-collapsible")}function b(t){if(l=t,u=i.querySelector(".vp-indicator"),r.destroy(),u.classList.remove("vp-indicator-visible"),l){var n=f.findIndex((function(t){return t.active}));r.setUp(n),g(),u.classList.add("vp-indicator-visible")}}function g(){r.on("touchMove",(function(){u.classList.add("vp-indicator-inactive")})),r.on("touchEnded",(function(){u.classList.remove("vp-indicator-inactive")}))}function y(){i.classList.add("vp-panel-pinTitle")}function _(){return i.classList.contains("vp-panel-open")}function E(){if(w()){s.fire("open",o),t.events.fire(Oc.Fs,!0,o),e.removeAttribute("hidden"),i.classList.add("vp-panel-open");var n=window.getComputedStyle(i),r=parseFloat(n.fontSize);i.style.height="".concat(i.scrollHeight/r,"em");var u="".concat(os.transitionProperty,"Delay");p().forEach((function(t,n){var i=40*n+100;t.style[u]="".concat(i,"ms"),t.classList.add("vp-panel-item-in")}))}}function k(t){s.fire("openEnd",o)}function T(){w()&&(s.fire("close",o),t.events.fire(Oc.Us,!1,o),i.classList.remove("vp-panel-open"),i.style.removeProperty("height"),j())}function S(t){e.setAttribute("hidden",""),p().forEach((function(t,n){t.classList.remove("vp-panel-item-in")})),s.fire("closeEnd",o)}function A(t){return t.preventDefault(),_()?T():E()}function x(t){s.fire("select",f[t].id)}function M(t){s.fire("select",f[t].id)}function C(t){if(!l){var n=fc(t.target,p());s.fire("select",f[n].id)}}function R(t){if("keypress"===t.type&&13===t.which||"keydown"===t.type&&32===t.which){var n=fc(t.target,p());if(-1!==n)return s.fire("select",f[n].id),!1}return null}function O(t){var n=f.findIndex((function(t){return t.active}));if(-1!==n){f[n].active=!1;var e=p(n);e.classList.remove("vp-panel-item-on"),e.setAttribute("aria-checked","false")}var r=f.findIndex((function(n){return"".concat(n.id)==="".concat(t)}));if(-1!==r){f[r].active=!0;var o=p(r);o.classList.add("vp-panel-item-on"),o.setAttribute("aria-checked","true"),i.querySelector(".js-panelStatText").innerHTML=f[r].label}u.classList.remove("vp-indicator-inactive")}function I(t){j(),a=t,t&&p(f.findIndex((function(t){return"".concat(t.id)==="".concat(a)}))).classList.add("vp-".concat(c,"-item-hover"))}function j(){if(a){var t=p(f.findIndex((function(t){return"".concat(t.id)==="".concat(a)})));t.length||t.classList.remove("vp-".concat(c,"-item-hover"))}}function D(){return f.find((function(t){return t.active}))}function L(t){D()&&"auto"!==D().id||(i.querySelector(".js-panelStatText").innerHTML=t)}function P(){return U(i.querySelectorAll('.vp-panel-collapsible button[tabindex="0"], .vp-panel-open li[tabindex="0"]'))}return d(),o={id:c,element:i,setCollapsible:m,resetCarousel:b,pinTitle:y,isOpen:_,open:E,close:T,setActiveItem:O,setHoverState:I,clearHoverState:j,setTitleStat:L,getTabindexItems:P,on:s.on,off:s.off}}function Jh(t){var n,i=0,e=!1,r=null,o=null,u=null;function a(){if(os.touch&&!t.store.get(jf)&&!t.config.video.spatial){var n=null,a=10;(r=t.element.querySelector(".vp-nudge-wrapper")).classList.remove("hidden"),r.innerHTML=ud.render("nudge"),o=t.element.querySelector(".vp-nudge-forward"),u=t.element.querySelector(".vp-nudge-backward"),Hh(o,(function(t){t.preventDefault(),f("right"),n=setTimeout(l,250)})),Hh(u,(function(t){t.preventDefault(),f("left"),n=setTimeout(l,250)})),t.events.on(Oc.fs,(function(){e=!0}))}function f(t){if(["left","right"].includes(t)){var e="right"===t?s:c,r="right"===t?o:u;i++,clearTimeout(n),i>=2&&(d(r,t,a),2===i&&e(10),e(10*(i-2)),i>2&&(d(r,t,a+=10),i=2))}}function l(){i>=2&&t.events.fire(Oc.hs),i=0,a=10}}function s(n){f((t.currentTime||0)+n)}function c(n){var i=(t.currentTime||0)-n;f(i>=0?i:0)}function f(n){t.events.fire(Oc.ds),t.events.fire(yc.ka,null,n),e||t.events.fire(Oc.ms)}function l(n,i){var e=t.currentTime||0,r="right"===i?"+":"-";return"right"===i&&e>t.config.video.duration-10||e<=10&&"left"===i?null:"".concat(r," ").concat(n)}function d(i,e,r){if(["left","right"].includes(e)){var o=t.element.querySelector(".vp-nudge-shade-".concat(e)),u=i.querySelector(".vp-nudge-seconds");l(r,e)&&(u.innerHTML=l(r,e),clearTimeout(n),i.classList.remove("invisible"),o.classList.remove("vp-nudge-shade-invisible"),n=setTimeout((function(){o.classList.add("vp-nudge-shade-invisible"),i.classList.add("invisible")}),500))}}return t.events.on(Oc.Oc,(function(){[o,u].forEach((function(t){t&&$f(t).off("click").off("touchend")})),a()})),a(),{}}function Xh(){for(var t=arguments.length,n=new Array(t),i=0;i1?n-1:0),e=1;e1?n-1:0),e=1;e0&&(e.style.left=c+"px"),f>0&&(e.style.right=f+"px")}}(),function(n){$f(n).on("mouseenter",".js-chapter-marker",(function(n){t.events.fire(Oc.Es,{id:n.target.dataset.time,position:"marker"})})).on("mouseleave",".js-chapter-marker",(function(n){t.events.fire(Oc.ks)})),t.events.on([Oc.Es,Oc.ks],r),t.events.on(Oc.Ts,o)}(a),i=U(n.querySelectorAll(".js-chapter-marker")),(null==(u=t.backbone)?void 0:u.chaptersTrack)&&t.backbone.chaptersTrack.addEventListener("cuechange",e)}}}function rv(t,n,i){var e,r,o,u,a,s,c,f,l,d,h,v,p,m,w,b,g,y,_,E,k,T,S,A,x,M,C,R=!1,O=!1,I=!1,j=!1,L=!1,N=!1,F=!1,V=!1,B=!1,H=!1,q=!1,z=!1,W=!0,G=!1,$=!1,K=null,Y=null,J=[],X=null,Z=null,tt=null,nt=!1,it=!1,et=n.get(Of),rt=[],ot=new ev(t,i),ut=t.config.embed.autoplay&&t.config.request.flags.autohide_controls,at=[{id:.5,label:"0.5x"},{id:.75,label:"0.75x"},{id:1,label:"Normal"},{id:1.25,label:"1.25x"},{id:1.5,label:"1.5x"},{id:2,label:"2x"}],st=os.touch?300:0;function ct(){K=null,Y=null}function ft(){if(!Y){var t=Zs(c).left,n=parseInt(window.getComputedStyle(c,"").borderLeftWidth,10);Y=t+n}return Y}function lt(){if(!K){var t=Zs(c).right,n=parseInt(window.getComputedStyle(c,"").borderRightWidth,10);K=t-n}return K}function dt(t){var n=ft();return nc((t-n)/(lt()-n),0,1)}function ht(n){var i=J,e=Array.isArray(i),r=0;for(i=e?i:i[D.iterator]();;){var o;if(e){if(r>=i.length)break;o=i[r++]}else{if((r=i.next()).done)break;o=r.value}var u=o,a=Zs(u),s=a.left,c=a.right;if(n>=s&&n<=c)return parseFloat(u.getAttribute("data-time"))/t.config.video.duration}return dt(n)}function vt(n,i){O&&!z&&(i=i||t.config.video.duration*n||0,window.requestAnimationFrame((function(){pt(n,i),mt(n,i)})))}function pt(t,i){(!n.get(Mf)||G&&0!==i)&&(n.get(jf)&&(t=100),v.style.left=Math.min(uc(100*t),100)+"%",p.innerHTML=vd(i),v.style.display="block")}function mt(i,e){n.get(jf)&&(i=100);var r=Math.min(uc(100*i),100);d.style.width="".concat(r,"%"),f.setAttribute("aria-valuenow",Math.round(e)),f.setAttribute("aria-valuetext","".concat(vd(e)," of ").concat(vd(t.config.video.duration))),a.setAttribute("width","".concat(r,"%"))}function wt(t,i){n.get(jf)&&(t=100);var e=Math.min(uc(100*t),100);l.style.width="".concat(e,"%"),l.setAttribute("aria-valuenow",uc(i)),l.setAttribute("aria-valuetext","".concat(vd(i,!0)," loaded")),u.setAttribute("width","".concat(e,"%"))}function bt(){G=!1,r.classList.remove("state-playing"),r.classList.add("state-paused")}function gt(){G=!0,$&&xt(),r.classList.remove("state-paused"),r.classList.add("state-playing")}function yt(){W=!1,rt.forEach((function(t){return t.retargetFocusFromChild()})),t.events.fire(Oc.Rs,W),i.classList.add("invisible")}function _t(){setTimeout((function(){W=!0,t.events.fire(Oc.Rs,W),i.classList.remove("invisible")}),st)}function Et(){j||W&&(R||(O&&q||L||ut)&&(I||(!nt&&!it||L)&&(L&&3===t.config.view||V||N||yt())))}function kt(){j||W||L||_t()}function Tt(t){return rt.push(t),t.button.parentNode.insertBefore(t.element,t.button.nextSibling),t}function St(t){rt=rt.filter((function(n){return n!==t})),t.destroy()}function At(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(y){var n,i=1/_.length,e=t/i,r=Math.ceil(e),o=e%1;o<=.33&&(n="fill1"),o>.33&&o<=.66&&(n="fill2"),_.forEach((function(t,i){t.classList.remove("fill0"),t.classList.remove("fill1"),t.classList.remove("fill2"),i===r-1&&o&&o<=.66?t.classList.add(n):i>r-1&&t.classList.add("fill0")})),y.setAttribute("aria-valuenow",t.toFixed(3)),y.setAttribute("aria-valuetext",Math.round(100*t)+"%")}}function xt(){var e;if(1===t.config.view||3===t.config.view){var S=t.backbone||{},R=t.config.embed.settings,j={show:R.logo,showLink:!!t.config.video.url,url:t.config.video.url},D=function(){if(!t.config.embed.settings.custom_logo)return null;var n=t.config.embed.settings.custom_logo,i=n.img;return os.devicePixelRatio>=2&&(i=i.replace(/(mw|mh)=(\d+)/g,(function(t,n,i){return n+"="+2*parseInt(i,10)}))),{showLink:null!==n.url,url:Hs(n.url),img:i,sticky:n.sticky,width:n.width,height:n.height}}();if(!R.watch_trailer||O||G||t.config.embed.autoplay||!t.config.embed.on_site){var L=!t.backbone||t.backbone.supportsSettingVolume,P=!t.backbone||t.backbone.supportsTextTracks,N=ah(t.config,"chromecast").group&&os.browser.chrome&&(void 0===R.chromecast||R.chromecast)&&!t.config.video.spatial&&"stock"!==t.config.video.privacy,F=t.displayContext===t.backbone,V=S.supportsPlaybackRate&&R.speed,B=F&&(V||S.representations&&S.representations.length>0),H="disable"!==t.config.video.privacy&&(os.webvr||os.stereoscopic)&&t.config.video.spatial&&ah(t.config,"webvr").group,q=!!t.backbone&&(null==(e=t.backbone.textTracks)?void 0:e.length);t.events.on(mi.TEXT_TRACKS_AVAILABLE,(function(){var n;q=!!t.backbone&&(null==(n=t.backbone.textTracks)?void 0:n.length),xt()}));var z={targetBlank:0===t.config.embed.on_site,playState:G?"playing":"paused",volume:L&&R.volume,ccButton:P&&q&&F,castButton:N,ccOn:null!==tt,prefsButton:B,airplayButton:os.airPlay,stereoscopicButton:H,fullscreenButton:R.fullscreen,vimeoLogo:F?j:{},duration:vd(t.config.video.duration),rawDuration:t.config.video.duration,captionsIcon:ud.render("icon_cc",{title:"Escolher closed captions (cc)"}),settingsIcon:ud.render("icon_gear",{title:"Configurações"}),fullscreenIcon:ud.render("icon_fullscreen",{title:"Entrar no modo tela cheia"}),unfullscreenIcon:ud.render("icon_unfullscreen",{title:"Sair do modo tela-cheia"}),playIcon:ud.render("icon_play",{title:"Play"}),pauseIcon:ud.render("icon_pause",{title:"Pausa"}),replayIcon:ud.render("icon_replay",{title:"Play"}),chaptersIcon:ud.render("icon_chapters",{title:"Chapters"}),chapters:!!S.chapters&&S.chapters.length,strings:{loadedBar:"carregado",playedBar:"reproduzido",volume:"Volume (use as teclas de setas para cima/baixo para mudar)",airPlay:"Escolher um dispositivo AirPlay",airPlayOff:"Desligar AirPlay",pipEnter:"Entrar no modo PiP (Picture-in-Picture)",pipReturn:"Sair do modo PiP (Picture-in-Picture)",fullscreen:"tela cheia",chromecast:"Cast",watchOnVimeo:"Assistir no vimeo.com",stereoscopic:"Ativar reprodução estereoscópica",stereoscopicOff:"Desativar reprodução estereoscópica"}};if(D&&(z.customLogo=D),i.classList.remove("trailer"),$=!1,i.innerHTML=ud.render("controlbar",z),r=i.querySelector(".play"),o=r.querySelector(".buffer"),u=r.querySelector(".loaded"),a=r.querySelector(".played"),s=i.querySelector(".play-bar"),c=i.querySelector(".vp-progress"),f=s.querySelector(".focus-target"),l=s.querySelector(".loaded"),d=s.querySelector(".played"),h=s.querySelector(".cuepoints"),v=i.querySelector(".timecode"),p=v.querySelector(".box"),m=i.querySelector(".ghost-timecode"),w=m.querySelector(".box"),b=i.querySelector(".thumb-preview"),g=i.querySelector(".thumb"),(y=i.querySelector(".volume"))&&(_=U(y.querySelectorAll("div")),t.config.embed.muted?At(0):At(t.config.request.cookie.volume)),T=i.querySelector(".play-bar .cc"),k=i.querySelector(".js-chapter-button"),(E=i.querySelector(".js-prefs"))&&pf.isCastConnected&&Zh(E),A=i.querySelector(".pip"),os.airPlay&&(x=i.querySelector(".airplay")),(os.webvr||os.stereoscopic)&&t.config.video.spatial&&(M=i.querySelector(".stereoscopic")),C=i.querySelector(".fullscreen"),I=!1,W&&t.events.fire(Oc.Rs,W),ut&&Et(),Mt(),n.get(jf)){var K=i.querySelector(".vp-live-status");K.style.display="block";var Y=K.querySelector(".vp-live-status-circle");et?(Y.classList.remove("offline"),Y.classList.add("online"),E&&!pf.isCastConnected&&Xh(E)):(Y.classList.add("offline"),Y.classList.remove("online"),E&&Zh(E)),p.style.cursor="default",c.classList.add("disabled")}ot.renderChapterMarkers()}else!function(n,e){i.classList.add("trailer");var o={vimeoLogo:n,text:t.config.video.vod.button_text||"Assistir ao Trailer",strings:{watchOnVimeo:"Assistir no vimeo.com"}};e&&(o.customLogo=e),i.innerHTML=ud.render("controlbar_trailer",o),r=i.querySelector(".play"),$=!0}(j,D)}}function Mt(){if(n.get(jf)){var i=G&&t.config.duration>0;v.style.display=i?"block":"none"}}function Ct(){var e;function r(n){if(z=!1,e===n.pointerId&&!1!==n.isPrimary){var i=n.clientX;n.targetTouches&&n.targetTouches.length>0&&(i=n.targetTouches[0].clientX,n.preventDefault());var r=ht(i);vt(r),t.events.fire(yc.ka,r)}}function o(n){var e=n.type;"pointerup"===e||"MSPointerUp"===e?$f(i).off("pointermove",".vp-progress",r).off("pointerup",".vp-progress",o):"touchend"===n.type?$f(i).off("touchmove",r).off("touchend",o):$f(document).off("mousemove",r).off("mouseup",o),t.events.fire(Oc.As),t.element.classList.remove("scrubbing")}t.events.on(hi.TIME_UPDATE,(function(n){var i=n.currentTime,e=n.timeProgress;z&&(0===t.config.embed.time||t.config.embed.time>0&&i>=t.config.embed.time)&&(z=!1),N||vt(e,i)})),t.events.on(Oc.Ss,(function(t){N=!0,F=t})),t.events.on(Oc.As,(function(){N=!1,F=!1})),t.events.on(hi.SEEKED,(function(t){var n=t.timeProgress;F&&vt(n)})),n.get(Mf)&&!n.get(If)||($f(i).on(os.pointerEvents?"pointerdown":["touchstart","mousedown"],".vp-progress",(function(n){if(!(n.button&&2===n.button||n.target.classList.contains("js-chapter-marker"))){var u=n.type;if(t.element.classList.add("scrubbing"),t.events.fire(Oc.Ss,!1,u),"pointerdown"===u||"MSPointerDown"===u){e=n.pointerId;try{n.target.msSetPointerCapture?n.target.msSetPointerCapture(e):n.target.setPointerCapture(e)}catch(t){}$f(i).on("pointermove",".vp-progress",r).on("pointerup",".vp-progress",o)}else"touchstart"===u?$f(i).on("touchmove",r).on("touchend",o):$f(document).on("mousemove",r).on("mouseup",o);var a=n.clientX;n.targetTouches&&n.targetTouches.length>0&&(a=n.targetTouches[0].clientX,n.preventDefault());var s=ht(a);if(O)vt(s);else{var c=t.config.video.duration*s;pt(s,c),mt(s,c),z=!0}return t.events.fire(yc.ka,s,null),!1}})),t.events.on(yc.Ka,(function(n,i){n=nc(n,0,t.config.video.duration),i||(i=n/t.config.video.duration),window.requestAnimationFrame((function(){pt(i,n),mt(i,n)}))})))}function Rt(n){if(n.element.parentElement){if(n.isFullwidth())return n.element.style.right="",n.element.style.bottom="",void(n.element.style.height="");var i=Zs(t.element),e=Zs(n.button),r=Zs(n.element.parentElement),o=Zs(n.element),u=0,a=e.right-e.width/2+o.width/2;a=215&&i>=185))return void b.classList.add("hidden");a().then(l).catch((function(){}))}if(H){var f=function(t){var n=J,i=Array.isArray(n),e=0;for(n=i?n:n[D.iterator]();;){var r;if(i){if(e>=n.length)break;r=n[e++]}else{if((e=n.next()).done)break;r=e.value}var o=r,u=Zs(o),a=u.left,s=u.right,c=u.width;if(t>=a&&t<=s)return{clientX:a+c/2,snappedTo:o}}return{clientX:t,snappedTo:null}}(n.clientX),d=f.clientX,v=f.snappedTo,p=dt(d),y=t.config.video.duration*p;J.forEach((function(t){return t.classList.toggle("active",t===v)})),t.config.request.thumb_preview&&o&&!u&&a().then((function(n){var i=Q(function(n){var i=t.config.video.duration/t.config.request.thumb_preview.frames,e=Math.min(t.config.request.thumb_preview.frames-1,Math.ceil(n/i)),r=e%t.config.request.thumb_preview.columns,o=Math.floor(e/t.config.request.thumb_preview.columns);return[-r*t.config.request.thumb_preview.frame_width/2,-o*t.config.request.thumb_preview.frame_height/2]}(y),2),e=i[0],r=i[1];return window.requestAnimationFrame((function(){g.style.backgroundPosition="".concat(e,"px ").concat(r,"px")})),n})).catch((function(){})),window.requestAnimationFrame((function(){w.innerHTML=vd(y);var t=(100*p).toFixed(3);m.style.left="".concat(t,"%"),function(t){var n=Q(function(){var t=Zs(r).left,n=Zs(s).right,i=Zs(b).width,e=t+Math.ceil(i/2),o=n-Math.ceil(i/2),u=ft(),a=lt()-u;return[(e-u)/a,(o-u)/a]}(),2),i=n[0],e=n[1],o=(100*Math.max(i,Math.min(e,t))).toFixed(3);b.style.left="".concat(o,"%")}(p),n.clientX>lt()+10&&!b.contains(document.elementFromPoint(n.clientX,n.clientY))&&h()}))}}function h(){m&&(m.classList.add("invisible"),b.classList.add("invisible")),H=!1,$f(s).off("click",f)}n.get(Mf)&&!n.get(If)||$f(i).on("mouseenter",".vp-progress",(function(n){H||B||(m.classList.remove("hidden"),H=!0,d(n),window.requestAnimationFrame((function(){window.requestAnimationFrame((function(){m.classList.remove("invisible")}))})),t.config.request.thumb_preview&&o&&!u&&a().then(l).catch((function(){})),$f(s).on("click",f))})).on("mousemove",".play-bar",d).on("mouseleave",".play-bar",h).on("mouseenter",".js-chapter-marker",(function(){u=!0})).on("mouseleave",".js-chapter-marker",(function(){u=!1,o=null})),$f(i).on("transitionend",".ghost-timecode",(function(t){"opacity"===t.propertyName&&"0"===window.getComputedStyle(this,"").opacity&&(m.classList.add("hidden"),b.classList.add("hidden"))}),!1),t.events.on(Oc.gc,h),t.events.on(Oc.Oc,(function(){e=null}))}(),function(){var n;function e(n){var i=n.clientX;n.targetTouches&&(i=n.targetTouches[0].clientX,n.preventDefault());var e=o(i);t.events.fire(yc.Ta,e),At(e)}function r(n){B=!1,t.events.fire(Oc.Cs),t.element.classList.remove("scrubbing");var o=n.type;"pointerup"===o||"MSPointerUp"===o?$f(i).off("pointermove",".volume",e).off("pointerup",".volume",r):"touchend"===n.type?$f(document).off("touchmove",e).off("touchend",r):$f(document).off("mousemove",e).off("mouseup",r),y.setAttribute("tabindex",y.getAttribute("data-tabindex")),y.removeAttribute("data-tabindex")}function o(t){var n=Zs(y).left;return nc((t-n)/(Zs(y).right-n),0,1)}$f(i).on("mousemove",".volume",(function(t){var n=t.srcElement;if(-1===_.indexOf(n)){var i=Zs(y),e=t.clientX,r=i.bottom-2;if(n=document.elementFromPoint(e,r),-1===_.indexOf(n))return}n.classList.add("hover"),window.requestAnimationFrame((function(){window.requestAnimationFrame((function(){n.classList.remove("hover"),n.classList.add("animate")}))}))})),$f(i).on("transitionend",".volume div",(function(t){"height"===t.propertyName&&this.classList.remove("animate")})),$f(document).on("contextmenu",".volume",(function(){this.blur()})),$f(i).on(os.pointerEvents?"pointerdown":["touchstart","mousedown"],".volume",(function(u){if(1===u.which){y.setAttribute("data-tabindex",y.getAttribute("tabindex")),y.removeAttribute("tabindex"),B=!0,t.element.classList.add("scrubbing"),t.events.fire(Oc.Ms);var a=u.type;if("pointerdown"===a||"MSPointerDown"===a){n=u.pointerId;try{u.target.msSetPointerCapture?u.target.msSetPointerCapture(n):u.target.setPointerCapture(n)}catch(t){}$f(i).on("pointermove",".volume",e).on("pointerup",".volume",r)}else"touchstart"===a?$f(document).on("touchmove",e).on("touchend",r):$f(document).on("mousemove",e).on("mouseup",r);var s=u.clientX;u.targetTouches&&(s=u.targetTouches[0].clientX);var c=o(s);t.events.fire(yc.Ta,c),At(c)}})),t.events.on(Oc.os,(function(n){t.backbone.muted?At(0):!B&&_&&At(n)})).on([yc.Da,yc.ja],(function(){xt()}))}(),Hh(i,".js-chapter-marker",(function(n){var i=parseFloat(n.target.dataset.time)+.001;t.events.fire(Oc.ys,i,"controlbar")})),t.events.on(mi.CHAPTER_CUES_UPDATED,(function(){ot.renderChapterMarkers()})),function(){function e(){var n=t.backbone.chapters,i=0;return U(n).map((function(n){var e=t.currentTime;return{index:"".concat(i+=1),label:n.text,id:n.id,active:e>=n.startTime&&e0){var e=new Yh(t,{id:"quality",title:"Qualidade",items:o()});e.on("select",(function(n){t.events.fire(yc.Ra,n)})),r&&e.setTitleStat(r),e.pinTitle(),i.push(e)}if(t.backbone.supportsPlaybackRate&&t.config.embed.settings.speed){var u=at.map((function(n){return n.active=n.id===t.backbone.playbackRate,n})),a=new Yh(t,{id:"speed",title:"Velocidade",items:u});a.on("select",(function(n){t.events.fire(yc.Ya,n)})),a.pinTitle(),i.push(a)}var s=new qh(t,E,i);function c(n){s.element.classList.toggle("vp-menu-center",n),t.events.fire(Oc.Vs,s.isCentered(),s)}return n.watch("ui.controlbar.isPrefsMenuCentered",c),c(n.get("ui.controlbar.isPrefsMenuCentered")),os.touch&&s.element.classList.add("vp-menu-carousel"),s}())).show(i);X.toggle(i)}})),t.events.on(Oc.us,(function(t){e=t,X&&X.getPanel("quality")&&X.getPanel("quality").setActiveItem(t)})),t.events.on(mi.STREAM_CHANGE,(function(t){var n=t.quality||"".concat(t.height,"p");r=n,X&&X.getPanel("quality")&&X.getPanel("quality").setTitleStat(uh(t))})),t.events.on(Oc.ls,(function(t){X&&X.getPanel("speed")&&X.getPanel("speed").setActiveItem(t)}))}(),Hh(i,".pip",(function(){"picture-in-picture"!==t.backbone.presentationMode?t.events.fire(yc.qa):t.events.fire(yc.za)})),t.events.on(Vo,(function(){A&&(A.classList.remove("hidden"),A.hidden=!1,ct())})).on(Bo,(function(){A&&(A.classList.add("hidden"),A.hidden=!0,ct())})).on(Ho,(function(){it=!0,A&&(A.classList.add("return"),A.classList.remove("enter"),A.setAttribute("title",A.getAttribute("data-title-return")))})).on(qo,(function(){it=!1,A&&(A.classList.add("enter"),A.classList.remove("return"),A.setAttribute("title",A.getAttribute("data-title-enter")))})),os.airPlay&&(Hh(i,".airplay",(function(){t.events.fire(Oc.yf)})),t.events.on(Oc.mf,(function(){x&&(x.classList.remove("hidden"),x.hidden=!1,ct())})).on(Oc.wf,(function(){x&&(x.classList.add("hidden"),x.hidden=!0,ct())})).on(Oc.bf,(function(){nt=!0,x&&(x.classList.remove("off"),x.classList.add("on"),x.setAttribute("title",x.getAttribute("data-title-on"))),kt()})).on(Oc.gf,(function(){nt=!1,x&&(x.classList.remove("on"),x.classList.add("off"),x.setAttribute("title",x.getAttribute("data-title-off")))}))),Hh(i,".fullscreen",(function(){t.events.fire(Oc.vs)})),t.events.on(Oc.zs,(function(){R=!1,i.classList.remove("tiny")})),t.events.on(Oc.Gs,(function(t){if(C){var n=C.cloneNode(!0);C.parentNode.replaceChild(n,C),C=n}t||(R=!0),e&&i.classList.add("tiny")})),t.events.on([Oc.yc,Oc.Ss,yc.Ta],kt).on([Oc.gc,Oc._c],Et).on(Oc.qs,(function(){I=!1,Et()})).on(Oc.Ws,(function(){I=!1})).on(Oc.as,(function(){q=!0,Et()})).on(yc.Ta,(function(t,n){n||kt()})),$f(i).on(["pointerenter","pointerleave","mouseenter","mouseleave"],[".play",".play-bar",".custom-logo",".vp-menu"],(function(t){"pointerType"in t?"mouse"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE||(I="pointerenter"===t.type||"MSPointerEnter"===t.type):os.touch||(I="mouseover"===t.type)})),t.events.on(yc._overrideControlbarBehavior,(function(n){j=n,n?t.events.on(yc.Ha,(function(t){t?_t():yt()})):t.events.off(yc.Ha)})),t.events.on(Oc.tc,(function(t){if("not-supported"!==t&&"private-unlocked"!==t&&"help"!==t)L=!0,Et();else for(var n=i.querySelectorAll("a, button, input, [tabindex]"),e=0,r=n.length;e2&&void 0!==arguments[2]?arguments[2]:1;nt(this),this.version=e,this.visible=!1;var r=this.ll=document.createElement("div");r.classList.add("compass-wrapper"),r.innerHTML=ud.render("compass",{version:e}),r.classList.add("cloaked"),t.appendChild(r),n&&r.addEventListener("click",n),this.dl=r.querySelector(".compass-slice"),this.hl=r.querySelector(".compass-line");var o=function(){i.vl=!0},u=function(t){return function(){setTimeout((function(){i.vl||(i.fade(),i.vl=!1)}),t)}};$f(this.ll).on("mousein",o).on("pointerin",o).on("mouseout",u(1e3)).on("pointerout",u(1e3)),u(2500)()}var n=t.prototype;return n.setAngle=function(t,n){var i=this;this.yu&&window.cancelAnimationFrame(this.yu);var e=0;1===this.version?e=-45:2===this.version&&(e=-30);var r="".concat(e+n),o=(t+85)/170;this.yu=window.requestAnimationFrame((function(){i.dl.setAttribute("transform","rotate(".concat(r,", ").concat(18,", ").concat(18,")")),i.hl&&i.hl.setAttribute("d",i.pl(o,18))}))},n.pl=function(t,n){var i=2*n-Math.round(2*n*t),e=(2*n-2*Math.sqrt(2*i*n-Math.pow(i,2)))/2,r=2*n-e-5;return"M".concat(e+5,",").concat(i," L").concat(r,",").concat(i," z")},n.reveal=function(){var t=this;this.ll.classList.remove("cloaked"),window.requestAnimationFrame((function(){t.ll.classList.add("in")})),this.visible=!0},n.fade=function(){this.ll.classList.add("fade"),this.visible=!0},n.hide=function(){var t=this;this.ll.classList.remove("in"),this.ll.classList.remove("fade"),this.ll.classList.add("leaving"),$f(this.ll).on("transitionend",(function n(){"opacity"===event.propertyName&&(t.ll.classList.remove("leaving"),t.ll.classList.add("cloaked"),t.visible=!1),$f(t.ll).off("transitionend",n)}))},n.updatePosition=function(t){if(t){var n=Zs(t);if(n.height<265)return this.ll.classList.remove("align-bottom"),void this.ll.classList.add("hidden");if(n.height<336)return this.ll.classList.remove("hidden"),void this.ll.classList.add("align-bottom");this.ll.classList.remove("hidden"),this.ll.classList.remove("align-bottom")}},n.getWrapper=function(){return this.ll},t}();function uv(t,n,i){var e=null,r=os.touch?4500:2e3,o=!0,u=!0,a=!1,s=null,c=null,f=[],l=!1,d=null,h=null,v=!0,p=!1,m=!1,w=!1,b=!1,g=!1,y=i.querySelector(".vp-target"),_=i.querySelector(".vp-sidedock"),E=i.querySelector(".vp-controls"),k=i.querySelector(".vp-title"),T=i.querySelector(".vp-video"),S=U(i.querySelectorAll(".vp-nudge")),A=!!os.touch&&S.some((function(t){return!t.classList.contains("invisible")})),x=t.config.embed.autoplay&&t.config.request.flags.autohide_controls,M=os.touch?300:0,C=null,R=ah(t.config,"webvr").group||!1;function O(){clearTimeout(e),e=null}function I(){g&&(clearTimeout(e),e=setTimeout(D,r))}function j(){Bh.element&&Bh.element.classList.contains("js-player-fullscreen")&&(a||(i.classList.add("player-cursor-hide"),u=!0,a=!0))}function D(n){(p||v)&&(w||(O(),document.activeElement&&document.body.classList.contains("showfocus")&&(_.contains(document.activeElement)||E.contains(document.activeElement))||(t.events.fire(n?Oc.gc:Oc._c),u=!0,os.spatialPlayback&&t.config.video.spatial||(y.classList.add("hidden"),y.setAttribute("hidden","")),o=!0,j())))}function L(){I(),A||b||p&&v||(t.events.fire(Oc.yc),y.classList.remove("hidden"),y.removeAttribute("hidden"))}function P(){p||v?i.removeAttribute("tabindex"):p||v||m||i.setAttribute("tabindex","0")}function N(){t.events.on([hi.TIME_UPDATE,hi.SEEKED],(function n(i){i.currentTime>=1.75&&null===e&&(t.events.fire(Oc.as),t.events.off([hi.TIME_UPDATE,hi.SEEKED],n))}))}function F(){T.classList.remove("threesixty-video"),t.element.classList.remove("grabbable"),t.element.classList.remove("grabbing"),s&&s.hide()}function V(){f.forEach((function(t){return clearTimeout(t)})),f=[]}function B(t){t&&(t.classList.remove("cloaked"),window.requestAnimationFrame((function(){t.classList.add("in")})))}function H(t){t&&(t.classList.add("leaving"),window.requestAnimationFrame((function(){$f(t).on("transitionend",(function n(i){"opacity"===i.propertyName&&(t.classList.remove("in"),t.classList.remove("leaving"),t.classList.add("cloaked"),$f(t).off("transitionend",n))}))})))}function q(t){Zs(_).width>60?t.classList.add("vp-alert-bumpdown"):t.classList.remove("vp-alert-bumpdown")}return function(){var n=!0;function e(){L()}function c(e){var s;if(r=2e3,u)u=!1;else if(a&&(i.classList.remove("player-cursor-hide"),a=!1),0!==e.screenX&&e.screenX!==screen.width-1&&0!==e.screenY&&e.screenY!==screen.height-1){if(n=!0,os.spatialPlayback&&(null==(s=t.config.video)?void 0:s.spatial)){var c=Zs(t.element),f=e.clientX-c.left,d=e.clientY-c.top,h=d>t.element.clientHeight-55,v=f>t.element.clientWidth-45&&d<180;if(l||!h&&!v)return}o&&L(),I()}else O(),j(),n&&(D(!0),n=!1)}function f(){D(!0)}function d(t){var n=E.contains(t.target)||_.contains(t.target),i=s&&s.getWrapper().contains(t.target);p&&v||i?n||!p&&!v||D(!0):(clearTimeout(C),C=setTimeout(L,M))}os.pointerEvents?$f(i).on("pointerenter",(function(t){if("mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE)return r=2e3,e();r=4500,d(t)})).on("pointermove",(function(t){if("mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE)return c(t)})).on("pointerleave",(function(t){if("mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE)return f()})):$f(i).on("touchmove",(function(){r=4500,I()})).on("touchend",d).on("mouseenter",e).on("mousemove",c).on("mouseleave",f)}(),t.events.on(hi.PLAY,(function(t){x||0===t||L()})).on(Oc.Fe,L).on([mi.BUFFER_ENDED,hi.SEEKED,Oc.As,Oc.os,Oc.Fs],I).on(Do,(function(){g=!0})),t.events.on(Oc.Is,(function(t){t&&I()})),t.events.on(Oc.tc,P).on(Oc.Rs,(function(t){v=t,P()})).on(Oc.Os,(function(t){p=t,P()})),t.events.on(Oc.Vc,(function(){w=!0,L()})).on(Oc.Bc,(function(){w=!1})),function(){var e=!1,r=!1,o=0;t.events.on(Oc.Is,(function(t){r=t})),$f(i).on(os.pointerEvents?"pointerup":"click",(function(i){if(!r&&2!==i.button&&i.target.classList&&function(t){return(t.classList.contains("vp-title")||t.classList.contains("vp-target")||k.contains(t.parentNode)&&"HEADER"===t.parentNode.tagName||T.contains(t))&&!_.contains(t)}(i.target)){var e=("pointerup"===i.type||"MSPointerUp"===i.type)&&"mouse"!==i.pointerType&&i.pointerType!==i.MSPOINTER_TYPE_MOUSE,u=g&&os.spatialPlayback&&t.config.video.spatial&&c;if(os.touch||e){var a=-1!==t.backbone.supportedPresentationModes.indexOf("inline")&&!os.mobileAndroid;if(!u){if(g&&a)return;return void t.events.fire(Oc.ms)}}1==++o&&setTimeout((function(){if(u){var e=h&&h.x===i.clientX&&h.y===i.clientY;return 1===o&&e&&!os.mobileAndroid&&t.events.fire(t.backbone.paused?Oc.ms:Oc.ps),1!==o&&t.backbone.getEffectByName("ThreeSixtyEffect").snapToCenter(),void(o=0)}if(1===o){if(n.get(Mf)&&!n.get(Of))return;t.events.fire(t.backbone.paused?Oc.ms:Oc.ps)}else t.events.fire(Oc.vs);o=0}),200)}})),$f(i).on("mousedown",".vp-video-wrapper",(function(t){var n;if(!e)return y.classList.remove("hidden"),y.removeAttribute("hidden"),2!==t.button&&document.createEvent&&((n=document.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,0,null),y.dispatchEvent(n)),!1})).on("contextmenu",".vp-video",(function(t){return y.classList.remove("hidden"),y.removeAttribute("hidden"),!1})),t.events.on(yc.Va,(function(t){if(t)return e=!0,void y.classList.add("hidden");e=!1,y.classList.remove("hidden")}))}(),function(){var n,e;os.touch||($f(i).on("focus","a, button, input, [tabindex]",(function(){e=this,clearTimeout(n),n=null,document.activeElement===this&&L()})),$f(i).on("blur","a, button, input, [tabindex]",(function(){document.activeElement===this&&(n=setTimeout(D,50))})),i.addEventListener("focus",(function(t){L(),e&&e.focus()}),!1),t.events.on(Oc.tc,(function(){m=!0,i.removeAttribute("tabindex")})),t.events.on(Oc.nc,(function(){m=!1})))}(),t.events.on(Oc.zs,(function(t){j(),c&&c.adjustRenderSize(),w&&L()})).on(Oc.Gs,(function(t){o=!0,c&&c.adjustRenderSize(),t?D():(L(),O())})),N(),t.events.on(yc.Ma,(function(){o=!0,u=!0,v=!0,p=!1,b=!1,g=!1,N(),O()})),t.events.on(yc.Wa,(function(){var n=function(t){return function(){c&&t.apply(void 0,arguments)}},e=n((function(n){var i=t.element.classList.contains("webvr");c&&i&&c.toggleVR()})),r=n((function(n){c.isVRPresenting?setTimeout((function(){t.events.fire(bi.WEBVR_ENTER)}),100):setTimeout((function(){t.events.fire(bi.WEBVR_EXIT)}),100)}));t.events.on(yc.$a,n((function(){var n=t.element.classList.contains("webvr");n||t.element.classList.add("grabbable"),s&&s.updatePosition(t.element),!s||s.visible||n||s.reveal()}))),t.events.on(Oc.rs,n((function(){F(),os.webvr&&c.isVRPresenting&&R&&c.toggleVR()}))),t.events.on(bi.CAMERA_UPDATE,n((function(t){s&&s.setAngle(t.lat,t.lon)}))),t.events.on(Do,n((function(){t.config.video.spatial?function(){function n(t){d&&(d.innerHTML=ud.render("threesixty_reminder",t))}var e=t.backbone.getEffectByName("ThreeSixtyEffect");t.config.embed.settings.spatial_compass?(s||(s=new ov(t.element.querySelector(".vp-controls-wrapper"),(function(){e.snapToCenter()}))),s.updatePosition(t.element),s.reveal()):s&&s.hide(),t.events.once(Oc.fs,(function(){var i=t.config.embed.cards;(null==i?void 0:i.length)&&i[0].timecode<15||(f.push(setTimeout((function(){n({showArrows:!1,text:os.android?"Olhe por aí":"Clique e arraste para ver mais"}),q(d),B(d),setTimeout((function(){return H(d)}),3e3)}),7e3)),os.android||f.push(setTimeout((function(){n({showArrows:!1,text:os.android?"Olhe por aí":"Use as teclas de setas para ver mais opções"}),q(d),B(d),setTimeout((function(){return H(d)}),3e3)}),14e3)))})),function(){var t=i;if(!d){var n=d=document.createElement("div");n.classList.add("cloaked"),n.classList.add("vp-alert-round"),n.classList.add("vp-alert-round--top"),n.classList.add("vp-alert-round--threesixty"),t.appendChild(n)}}()}():!t.config.video.spatial&&s&&(F(),V())}))),(os.webvr||os.stereoscopic||os.webxr)&&(os.webvr&&window.addEventListener("vrdisplaypresentchange",r,!1),t.events.on(Oc.Ns,n((function(){V(),os.webvr&&c.hasVRHeadset&&R?c.toggleVR():t.events.fire(Oc.wc)}))),t.events.on(bi.WEBVR_HARDWARE_AVAILABLE,n((function(t){var n=i.querySelector(".stereoscopic");n&&n.classList.contains("off")&&R&&n.classList.remove("off")}))),t.events.on(bi.WEBVR_ENTER,n((function(n){window.addEventListener("vrdisplaydisconnect",e,!1),window.addEventListener("vrdisplaydeactivate",e,!1);var r=i.querySelector(".stereoscopic");r&&r.classList.add("on"),s&&s.hide(),t.element.classList.remove("grabbable"),t.element.classList.add("webvr"),c.isUserInteracting=!1}))),t.events.on(bi.WEBVR_EXIT,n((function(n){window.removeEventListener("vrdisplaydisconnect",e),window.removeEventListener("vrdisplaydeactivate",e);var r=i.querySelector(".stereoscopic");r&&r.classList.remove("on"),s&&s.reveal(),t.element.classList.add("grabbable"),t.element.classList.remove("webvr"),c.isUserInteracting=!0}))));var o=null,u=n((function(n){var i=t.element.classList.contains("webvr");l||i||(l=!0,n.preventDefault(),t.element.classList.add("grabbing"),h={x:n.clientX,y:n.clientY},c.makeContact(h))})),a=n((function(n){var i=t.element.classList.contains("webvr");l&&!i&&(V(),c.move({x:n.clientX,y:n.clientY}))})),v=n((function(n){var i=t.element.classList.contains("webvr");l&&!i&&(t.element.classList.remove("grabbing"),c.releaseContact(!1),l=!1)})),p=n((function(n){n.preventDefault(),t.element.classList.contains("webvr")||(c.isUserInteracting||(c.isUserInteracting=!0),null!==o&&clearTimeout(o),V(),o=setTimeout((function(){t.element.classList.remove("player-cursor-hide"),t.element.classList.add("grabbable"),c.isUserInteracting=!1}),500),t.element.classList.add("player-cursor-hide"),t.element.classList.remove("grabbable"),c.moveWheel({x:n.deltaX,y:n.deltaY}))})),m=n((function(t){l||(l=!0,c.makeContact({x:t.touches[0].clientX,y:t.touches[0].clientY}))})),w=n((function(t){l&&(t.preventDefault(),V(),c.move({x:t.touches[0].clientX,y:t.touches[0].clientY}))})),b=n((function(t){c.releaseContact(!0),l=!1})),g=n((function(t){l||V(),c.moveDevice(t.alpha,t.beta,t.gamma,t.orientation)})),_=n((function(n){l=!1,t.element.classList.remove("grabbing"),c.abandonMotion()}));t.events.on(Do,(function(){os.android&&c&&window.addEventListener("deviceorientation",g,!1)})),t.events.once(Do,(function(){if(t.store.watch("ui.player.boundingRect",(function(){s&&s.updatePosition(t.element),c&&c.adjustRenderSize(),l=!1})),os.pointerEvents)$f(y).on("pointerdown",u),window.addEventListener("pointermove",a),window.addEventListener("pointerup",v),window.addEventListener("pointerleave",_);else{$f(y).on("mousedown",u).on("wheel",p);var n=!(os.browser.ie||os.browser.edge);window.addEventListener("touchstart",m,!!n&&{passive:!1}),window.addEventListener("touchmove",w,!!n&&{passive:!1}),window.addEventListener("touchend",b,!!n&&{passive:!1}),window.addEventListener("mousemove",a),window.addEventListener("mouseup",v),window.addEventListener("mouseleave",_)}}))})),t.events.on(Uo,(function(t){F(),c=t,V()})),t.events.on(Oc.ds,(function(){b=!0,clearTimeout(C),C=null})),t.events.on(Oc.hs,(function(){b=!1})),{}}var av=["clip_id","profile_id","player_size","dropped_frames","total_frames","bandwidth","markers","streams","files","video_dims","min_bandwidth","max_badwidth","buffer_occupancy","live_latency","scanner","vr_headset"],sv=function(){function t(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};this.Df=t,this.ml={},this.wl=n,this.bl=null}var n=t.prototype;return n.init=function(){this.gl(),this.yl(),this._l(),this.El()},n.reset=function(){this.gl(),this.El(),this.wl()},n.kl=function(t,n){return this.ml[t]=[n],this.wl(),this.ml[t]},n.Tl=function(t,n){return this.ml[t].push(n),this.ml[t].length>500&&this.ml[t].splice(0,25),this.wl(),this.ml[t]},n.getCurrent=function(t){return this.ml[t].slice(-1)[0]},n.getSeries=function(t){return this.ml[t]},n.Sl=function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i.videoTime=this.Df.backbone.currentTime,i.time=Date.now(),this.Tl("markers",{type:t,title:n,data:i})},n.yl=function(){this.Df.events.on(mi.BANDWIDTH,this.Al.bind(this)),this.Df.events.on(mi.BUFFER_OCCUPANCY,this.Ml.bind(this)),this.Df.events.on(mi.CURRENT_FILE_CHANGE,this.Cl.bind(this)),this.Df.events.on(mi.DROPPED_FRAMES,this.Rl.bind(this)),this.Df.events.on(mi.SCANNER_CHANGE,this.Ol.bind(this)),this.Df.events.on(mi.STREAM_BUFFER_START,this.Il.bind(this)),this.Df.events.on(mi.STREAM_CHANGE,this.jl.bind(this)),this.Df.events.on(hi.ENDED,this.Dl.bind(this)),this.Df.events.on(hi.SEEKED,this.Ko.bind(this)),this.Df.events.on(hi.STALLED,this.Ll.bind(this)),this.Df.events.on(bi.WEBVR_HARDWARE_AVAILABLE,this.Pl.bind(this))},n.Pl=function(t){t.displayName&&this.kl("vr_headset",t.displayName)},n.Nl=function(){var t=this;this.bl=setInterval((function(){var n=t.Df.backbone.buffered,i=t.Df.backbone.videoElement;if(n&&n.length&&i&&i.currentTime){var e=n.end(n.length-1)-i.currentTime;t.kl("live_latency",e)}else t.kl("live_latency",0)}),500)},n.Fl=function(){clearInterval(this.bl)},n._l=function(){var t=this;this.Df.store.watch("ui.player.boundingRect",(function(n){var i=t.getCurrent("video_dims"),e=t.Ul(n);t.Tl("video_dims",e);var r=i?"Resized from ".concat(i," to ").concat(e):"Resized to ".concat(e);t.Sl(Pc.MARKER_RESIZE,r)}))},n.Ul=function(t){var n="".concat(Math.round(t.width),"px"),i="".concat(Math.round(t.height),"px"),e=window.devicePixelRatio&&window.devicePixelRatio>1?"@".concat(window.devicePixelRatio,"x"):"";return n&&i?"".concat(parseInt(n,10),"×").concat(parseInt(i,10)," ").concat(e):""},n.gl=function(){this.ml=av.reduce((function(t,n){return t[n]=[],t}),{})},n.El=function(){var t=this.Df.backbone.currentFile;this.Tl("files",t),this.Tl("scanner",this.Df.backbone.currentScannerName),"HLSLiveScanner"===this.Df.backbone.currentScannerName&&this.Nl(),this.kl("min_bandwidth",0),this.kl("max_badwidth",0);var n=this.Df.store.get("ui.player.boundingRect"),i=this.Ul(n);this.Tl("video_dims",i)},n.Al=function(t){var n=Math.round(100*t.speed)/100;this.Tl("bandwidth",{videoTime:this.Df.backbone.currentTime,time:Date.now(),value:n});var i=this.getCurrent("max_badwidth"),e=this.getCurrent("min_bandwidth");(!e||ni)&&this.kl("max_badwidth",n)},n.Rl=function(t){var n=t.dropped,i=t.total;this.kl("total_frames",i),this.kl("dropped_frames",n)},n.Ko=function(){this.Sl(Pc.MARKER_SEEKED,"Seeked to ".concat(this.Df.backbone.currentTime))},n.Dl=function(){this.Sl(Pc.MARKER_ENDED,"Ended")},n.jl=function(t,n,i){var e=i[n],r={profile:void 0!==t?t.profile:null,quality:void 0!==t?t.quality:"".concat(e.height,"p"),bitrate:e.bitrate,framerate:e.framerate,height:e.height,width:e.width,id:e.id,codec:oh(e.codecs)},o=this.getCurrent("streams"),u=o?o.bitrate:null;if(u!==r.bitrate&&null!==u){var a=this.Vl(o),s=this.Vl(r);r.bitrateu&&this.Sl(Pc.MARKER_UPSWITCH,"Upswitch from ".concat(a," to ").concat(s))}this.Tl("streams",r)},n.Cl=function(){var t=this.getCurrent("files"),n=this.Df.backbone.currentFile;this.Tl("files",n);var i=n.metadata.cdn,e=t?t.metadata.cdn:null,r=t?jc[t.mime]:null,o=jc[n.mime],u="CDN to ".concat(i,"/").concat(o);e&&(u="CDN from ".concat(e,"/").concat(r," to ").concat(i,"/").concat(o)),this.Sl(Pc.MARKER_FILE_CHANGE,u)},n.Ml=function(t){var n=Math.round(1e3*t)/1e3;this.Tl("buffer_occupancy",{videoTime:this.Df.backbone.currentTime,time:Date.now(),value:n})},n.Ol=function(){var t=this.getCurrent("scanner"),n=this.Df.backbone.currentScannerName;this.kl("scanner",n),t&&this.Sl(Pc.MARKER_SCANNER_CHANGE,"Scanner change to ".concat(n)),"HLSLiveScanner"===n?this.Nl():this.Fl()},n.Il=function(){this.Sl(Pc.MARKER_BUFFER_START,"Buffering")},n.Ll=function(){this.Sl(Pc.MARKER_STALLED,"Stalled")},n.Vl=function(t){return"".concat(t.width,"×").concat(t.height,"@").concat(Math.round(t.framerate)," ").concat(Math.round(t.bitrate/1e3).toLocaleString()," Kbps")},t}(),cv=function(t,n,i){return Math.min(Math.max(t,n),i)},fv=function(){function t(t,n){var i=this;this.X=t,this.Df=n,this.Bl=new sv(n,(function(){i.Hl()})),this.Bl.init(),this._n(),this.K=!1,this.ql=!1,this.zl=null}var n=t.prototype;return n.render=function(){if(this.K){var t={};try{t=this.Wl()}catch(t){}this.X.innerHTML=ud.render("debug_panel",t)}},n.Hl=function(){if(this.K)try{var t=this.Wl();this.X.querySelector(".vp-stats-debug-values").innerHTML=ud.render("debug_values",t)}catch(t){}},n.resetData=function(){this.Bl.reset(),this.render()},n._n=function(){var t=this;this.Df.events.on(Oc.fc,(function(){"tiny"!==t.Df.store.get("ui.player.mode")&&(t.X.classList.contains("hidden")?t.showPanel():t.hidePanel())})),Hh(this.X,".js-copySessionButton",this.Gl.bind(this)),this.Df.events.on(Oc.Oc,(function(){t.resetData()})),Hh(this.X,".vp-stats-debug-close",(function(){t.hidePanel()})),this.Df.store.watch("ui.player.mode",this.toggleVisibility.bind(this))},n.hidePanel=function(){this.X.classList.add("hidden"),this.X.setAttribute("hidden",""),this.X.setAttribute("aria-hidden","true"),this.K=!1},n.showPanel=function(){this.X.classList.remove("hidden"),this.X.removeAttribute("hidden"),this.X.setAttribute("aria-hidden","false"),this.K=!0,this.render()},n.toggleVisibility=function(t){if("tiny"===t&&this.K)return this.ql=!0,void this.hidePanel();this.ql&&(this.showPanel(),this.ql=!1)},n.Wl=function(){var t=this.Bl.getCurrent("scanner"),n="MediaSourceScanner"===t,i="HLSLiveScanner"===t,e=this.Bl.getCurrent("video_dims"),r=!(!this.Df.config.request.files||!this.Df.config.request.files.dash)&&this.Df.config.request.files.dash.separate_av,o=n||i?this.$l():null,u=n||i?this.Kl(o):null,a=this.Bl.getCurrent("vr_headset")||null,s={sessionId:this.zl,clipId:this.Df.config.video.id,isDash:n,isLive:i,embedSize:e,separateAudioVideo:r,bandwidthSeriesSvg:u,isCopyDisabled:!!this.Df.doNotTrackEnabled||this.Df.config.embed.settings.background,isDNTEnabled:this.Df.doNotTrackEnabled,hideCloseButton:!!this.Df.config.embed.settings.background,vrHeadsetName:a};return Object.assign(s,this.Yl(),this.Jl(),this.Xl(),this.Zl(),this.Ql(),this.td(i),this.nd())},n.td=function(t){return t?{liveLatency:"".concat(this.Bl.getCurrent("live_latency").toFixed(2)," seconds"),liveSessionID:this.Df.config.video.live_event.id}:null},n.nd=function(){if(!this.Df.config.video.p2p)return null;var t=Bu(window,"Streamroot.instances[0].stats"),n=Bu(t,"realtime.dnaSources");if(void 0===n)return null;var i=Bu(t,"currentContent.cdnDownload"),e=Bu(t,"currentContent.dnaDownload");return{p2pSources:n,p2pOffload:"".concat(uc(e/(i+e)*100,1),"%")}},n.Ql=function(){var t=this.Bl.getCurrent("files");return t?{delivery:t.mime}:null},n.Yl=function(){var t=this.Bl.getCurrent("bandwidth");return{bandwidthKbps:t?"".concat(Math.floor(t.value/1e3).toLocaleString()," Kbps"):0,bandwidthMinKbps:"".concat(Math.floor(this.Bl.getCurrent("min_bandwidth")/1e3).toLocaleString()," Kbps"),bandwidthMaxKbps:"".concat(Math.floor(this.Bl.getCurrent("max_badwidth")/1e3).toLocaleString()," Kbps")}},n.Jl=function(){var t=this.Bl.getCurrent("streams");return{codec:t?t.codec:null,resolution:t?"".concat(t.width,"×").concat(t.height,"@").concat(Math.round(t.framerate)," ").concat(Math.round(t.bitrate/1e3).toLocaleString()," Kbps"):null}},n.Zl=function(){var t=this.Bl.getCurrent("total_frames")||0,n=this.Bl.getCurrent("dropped_frames")||0;return{totalFrames:t,droppedFrames:n,droppedFramesPercent:0!==t?"".concat((n/t*100).toFixed(2),"%"):0}},n.Xl=function(){var t=this;return{testGroup:Object.keys(this.Df.config.request.ab_tests).map((function(n){return"".concat(n,": ").concat(t.Df.config.request.ab_tests[n].group)})).join(", ")}},n.$l=function(){return{timeSeries:this.Bl.getSeries("bandwidth"),max:this.Bl.getCurrent("max_badwidth")}},n.ed=function(){return{timeSeries:this.Bl.getSeries("buffer_occupancy")}},n.Kl=function(t){for(var n=t.timeSeries,i=t.max||1,e=n.length,r=e<100?0:e-100,o=n[r],u=n[e-1],a=o?o.time:0,s=u?u.time:0,c=[],f=r;fn)return"";var o=(r-t)/(n-t)*250;return isNaN(o)&&(o=0),"\n ".concat(e.title,'\n \n ')})).join("")},n.Gl=function(){var t=this;if(!this.ud){var n=this.X.querySelector(".vp-copy-label"),i=document.createElement("textarea");if(i.value=this.Df.config.request.session,this.X.appendChild(i),i.select(),document.execCommand("copy")){n.innerHTML="Copied",this.X.removeChild(i),this.ud=!0;var e=setTimeout((function(){n.innerHTML="Copy Debug Key",clearTimeout(e),t.ud=!1}),2e3)}else this.X.querySelector(".js-copySessionButton").style.display="none",this.X.removeChild(i),this.zl=this.Df.config.request.session,this.Hl()}},t}(),lv=function(){function t(t){this.alertTextElement=t.querySelector(".vp-text-alert-wrapper"),this.alertContentTitle=this.alertTextElement.querySelector(".vp-live-start-time-title"),this.alertContentTime=this.alertTextElement.querySelector(".vp-live-start-time-body"),this.alertContentFooter=this.alertTextElement.querySelector(".vp-live-start-time-footer")}var n=t.prototype;return n.show=function(t,n,i){this.alertContentTitle.innerHTML=t,this.alertContentTime.innerHTML=n,this.alertContentFooter.innerHTML=i,this.alertContentTitle.classList.remove("hidden"),this.alertContentTime.classList.remove("hidden"),this.alertContentFooter.classList.remove("hidden"),this.alertTextElement.classList.remove("hidden")},n.hide=function(){this.alertContentTitle.classList.add("hidden"),this.alertContentTime.classList.add("hidden"),this.alertContentFooter.classList.add("hidden"),this.alertTextElement.classList.add("hidden")},t}(),dv=function(){function t(t,n,i){this.textAlert=new nh(t),this.timeAlert=new lv(t),this.player=n,this.store=i,this.startTime=new Date(this.store.get(tl,null)),this.ha=!1,this.ad(),this.sd()}var n=t.prototype;return n.disable=function(){this.hide(),this.ha=!0},n.hide=function(){this.textAlert.hide(),this.timeAlert.hide()},n.sd=function(){(this.store.get(Cf)||this.store.get(Rf))&&this.fd(),this.store.get(If)&&this.ld()},n.ad=function(){this.player.events.on($o.EVENT_ACTIVE,this.fd.bind(this)),this.player.events.on($o.STREAM_ONLINE,this.dd.bind(this)),this.player.events.on($o.STREAM_OFFLINE,this.vd.bind(this)),this.player.events.once($o.EVENT_ENDED,this.ld.bind(this))},n.fd=function(){this.pd()>6e4?(this.textAlert.hide(),this.wd()):(this.timeAlert.hide(),this.textAlert.show("Este evento ainda não começou"))},n.wd=function(){var t=this.bd();this.timeAlert.show(t[0],t[1],t[2]),!this.store.get(Cf)&&!this.store.get(Rf)||this.ha||setTimeout(this.sd.bind(this),3e4)},n.pd=function(){return this.startTime-new Date},n.bd=function(){var t=this.pd(),n=(t/6e4).toFixed(0),i=(t/36e5).toFixed(0),e=(t/864e5).toFixed(0),r=(new Date).toDateString()===this.startTime.toDateString();if(e>1||!r)return["This event is scheduled for","".concat(["January","February","March","April","May","June","July","August","September","October","November","December"][this.startTime.getMonth()]," ").concat(this.startTime.getDate()),"at ".concat(hd(this.startTime))];if(i>1&&r)return["This event is scheduled for","Today","at ".concat(hd(this.startTime))];var o=n>1?"minutes":"minute";return["This event will start in","".concat(n," ").concat(o),""]},n.dd=function(){this.hide()},n.vd=function(){this.textAlert.show("A transmissão ao vivo está offline"),os.iOS&&Bh.element&&(this.player.events.fire(Oc.Ws),Bh.exit())},n.ld=function(){this.textAlert.show("O evento ao vivo terminou")},t}();function hv(t,n){var i,e=n.querySelector(".vp-notification");function r(t,r){if(null!==n.parentElement.offsetParent){n.classList.remove("hidden"),n.removeAttribute("hidden"),n.setAttribute("data-name",t);var u=function(t){var i="watchlater"===t||"unwatchlater"===t?.5:.4,e=n.clientHeight;return n.clientHeight>n.clientWidth&&(e=n.clientWidth),{height:Math.round(e*i),width:Math.round(e*i*1.6)}}(t),a="width:"+u.width+"px;height:"+u.height+"px";e.style.cssText=a,e.innerHTML=r,"watchlater"!==t&&"unwatchlater"!==t||function(t,n){var i=t.querySelector(".hour-hand"),e=t.querySelector(".minute-hand");if(i&&e){var r=n?1:-1,o=new Date,u=Math.abs(o.getHours()-12),a=o.getMinutes(),s=a/60*360-135,c=u/12*360+a/60*5,f=c+45*r,l=s+540*r;i.style[os.transformProperty]="rotate("+c+"deg)",e.style[os.transformProperty]="rotate("+s+"deg)",window.requestAnimationFrame((function(){t.classList.add("animate"),os.browser.firefox||os.browser.opera||window.requestAnimationFrame((function(){i.style[os.transformProperty]="rotate("+f+"deg)",e.style[os.transformProperty]="rotate("+l+"deg)"}))}))}}(e,"watchlater"===t),clearTimeout(i),n.classList.remove("animate"),window.requestAnimationFrame((function(){n.classList.remove("invisible"),i=setTimeout(o,750)}))}}function o(){n.classList.add("animate"),n.classList.add("invisible")}function u(){n.classList.remove("animate"),n.classList.remove("invisible"),n.classList.add("hidden"),n.setAttribute("hidden",""),n.removeAttribute("data-name"),e.innerHTML="",e.classList.remove("filled"),e.classList.remove("animate"),t.events.fire(Oc.vf)}return $f(n).on("transitionend",(function(t){e.contains(t.target)&&"height"===t.propertyName?setTimeout(o,100):t.target===n&&"opacity"===t.propertyName&&window.requestAnimationFrame(u)})),t.events.on(Oc.Ec,(function(t){t||r("like",ud.render("icon_heart"))})),t.events.on(Oc.kc,(function(t){t||r("unlike",ud.render("icon_broken_heart"))})),t.events.on(Oc.Tc,(function(t){t||r("watchlater",ud.render("icon_clock"))})),t.events.on(Oc.Sc,(function(t){t||r("unwatchlater",ud.render("icon_clock"))})),t.events.fire(Oc.lf),{}}function vv(t){return t.account_type&&"basic"!==t.account_type&&!/_lapsed|_expired/.test(t.account_type)}function pv(t,n){var i=nt(),e=!1;function r(t){ic(t,"facebook",{width:580,height:400})}function o(t){ic(t,"twitter",{width:550,height:420})}function u(t){ic(t,"tumblr",{width:540,height:600})}var a={get events(){return i},setup:function(){var i;n.classList.remove("vp-share-embed-active","vp-share-embed-only"),(null==(i=t.config.embed.settings.share)?void 0:i.embed_only)&&n.classList.add("vp-share-embed-only");var e=n.querySelector(".js-embedCopy");e&&(e.style.width=function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;n=Object.keys(n).map((function(t){return n[t]}));var e=t.cloneNode();e.style.visibility="hidden",e.style.padding=0,t.parentElement.appendChild(e);var r=n.map((function(t){return e.innerText=t,e.clientWidth})),o=Math.max.apply(Math,tt(r)),u=window.getComputedStyle(t),a=parseFloat(u.fontSize);return t.parentElement.removeChild(e),"".concat((o+i)/a,"em")}(e,["Copiar","Copiado!"])),t.events.on(Oc.rc,r).on(Oc.oc,o).on(Oc.uc,u)},destroy:function(){t.events.off(Oc.rc,r).off(Oc.oc,o).off(Oc.uc,u)},getShareData:function(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.config.video.title,u=t.config.video.owner.name,a=t.config.video.share_url;return e=document.queryCommandSupported&&document.queryCommandSupported("copy"),r.template=ud.render("share",{url:t.config.video.url,shareUrl:a,playerShareUrl:"https://".concat(t.config.player_url,"/video/").concat(t.config.video.id,"/share"),title:o,owner:u,embed:"public"===t.config.video.embed_permission&&t.config.embed.settings.embed,embedOnly:null==(n=t.config.embed.settings.share)?void 0:n.embed_only,embedCode:$h(t.config.video.embed_code),copyButton:e,customizeEmbed:!!t.config.video.url,readOnly:!os.touch,facebookIcon:ud.render("icon_facebook",{title:"Compartilhar no Facebook"}),twitterIcon:ud.render("icon_twitter",{title:"Compartilhar no Twitter"}),tumblrIcon:ud.render("icon_tumblr",{title:"Compartilhar no Tumblr"}),emailIcon:ud.render("icon_mail",{title:"Compartilhe via Email"}),embedIcon:ud.render("icon_embed",{title:"Obter código incorporado"}),strings:{share:"Compartilhar",emailSubject:"Confira “"+o+"” de "+u+" no Vimeo",emailBody:"Confira “"+o+"” de "+u+" no Vimeo.\n\nO vídeo está disponível para que você tenha o prazer de assisti-lo em "+a+"\n\nSe você gostar do vídeo, não se esqueça de compartilhá-lo também!\n\nO Vimeo está repleto de vídeos incríveis. Veja mais em https://vimeo.com.",embedTitle:"Incorporação",embedSubtitle:"Adicione este vídeo ao seu site com o código de incorporação abaixo.",copy:"Copiar",copySuccess:"Copiado!",customize:'')+" Personalize esta incorporação no Vimeo"}}),r.gd=".js-facebook",(null==(i=t.config.embed.settings.share)?void 0:i.embed_only)&&(r.wrapperClass="embed-only",r.gd=".js-embed-input"),r},showShareView:function(){n.querySelector(".js-share-screen").classList.remove("cloaked"),n.classList.remove("vp-share-embed-active"),i.fire(Oc.hc)},showEmbedView:function(){t.config.embed.settings.share.embed_only||(n.querySelector(".js-embed-screen").classList.remove("cloaked"),n.classList.add("vp-share-embed-active")),i.fire(Oc.vc)}};return function(){var r;$f(n).on("transitionend",".js-share-screen",(function(t){"opacity"===t.propertyName&&"0"===window.getComputedStyle(this,"").opacity&&(i.fire(Oc.mc),this.classList.add("cloaked"))})).on("transitionend",".js-embed-screen",(function(t){"opacity"===t.propertyName&&"0"===window.getComputedStyle(this,"").opacity&&(i.fire(Oc.pc),this.classList.add("cloaked"),oc(n))})).on("copy","input[name=embed_code]",(function(){t.events.fire(Oc.sc)})),Hh(n,".js-facebook",(function(){return t.events.fire(Oc.rc,this.href),Xs(),!1})),Hh(n,".js-twitter",(function(){return t.events.fire(Oc.oc,this.href),Xs(),!1})),Hh(n,".js-tumblr",(function(){return t.events.fire(Oc.uc,this.href),Xs(),!1})),Hh(n,".js-email",(function(){return t.events.fire(Oc.ac),window.top.location=this.href,Xs(),!1})),Hh(n,".js-embed",(function(){return t.events.fire(Oc.Js),a.showEmbedView(),Xs(),!1})),Hh(n,".js-embedCopy",(function(){if(e){n.querySelector("input[name=embed_code]").select();try{document.execCommand("copy")&&function(){t.events.fire(Oc.sc);var i=n.querySelector(".js-embedCopy");i.innerHTML=i.getAttribute("data-success-label"),clearTimeout(r),r=setTimeout((function(){i.innerHTML=i.getAttribute("data-label")}),2e3)}()}catch(t){}return document.activeElement.blur(),!1}})),os.touch?$f(n).on("focus","input[name=embed_code]",(function(){var t=this;setTimeout((function(){t.setSelectionRange(0,9999),t.setAttribute("readonly","readonly")}),0)})).on("blur","input",(function(){this.removeAttribute("readonly")})):$f(n).on("click","input[name=embed_code]",(function(){this.setSelectionRange(0,9999)}))}(),a}function mv(t,n,i){var e,o,u,a=i.querySelector(".vp-outro"),s=null,c=!1,f=!1,l=!1,d=!1,h=!1,v=md(S,250),p=null,m=t.config.request.ads instanceof Object,w=!1;function b(){return!h&&null===s&&!t.config.embed.loop}function g(){return t.config.embed.outro===Fc.VOD?(o=Fc.VOD,s=y(o),!0===d&&k(),r.resolve(s)):(h=!0,ze("https://".concat(t.config.player_url,"/video/").concat(t.config.video.id,"/outro?on_site=").concat(t.config.embed.on_site,"&type=").concat(t.config.embed.outro,"&email=").concat(t.config.embed.email?1:0),{withCredentials:!0}).json().then((function(n){return o=n.type,(s=y(o,n.data))&&(s.bgimage&&ff(s.bgimage),s.contexts&&s.contexts.forEach((function(t){t.videos.forEach((function(t){ff(t.thumbnail)}))}))),vv(t.config.video.owner)&&function(n,i){[Fc.VIDEOS,Fc.THREEVIDEOS,Fc.PROMOTED].includes(n)&&i.contexts&&i.contexts.forEach((function(n){n.videos.reduce((function(n,i){return n.then(function(n){return function(){return t.preloadVideo("auto",n.id,{autoplay:!0}).catch((function(t){}))}}(i))}),r.resolve())}))}(o,s),s})))}function y(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=af(t.element.clientWidth*os.devicePixelRatio,t.element.clientHeight*os.devicePixelRatio),r=e.width,o=e.height;if(i.img_base&&(i.bgimage=sf({width:r,height:o,baseUrl:i.img_base})),n===Fc.VOD){var u=void 0!==t.config.video.vod.is_preorder?t.config.video.vod.is_preorder:!!t.config.video.vod.date_available,a=t.config.video.vod.is_coming_soon,s=t.config.video.vod.date_available_formatted_datetime||t.config.video.vod.date_available,c="Em breve no Vimeo On Demand.";a&&s&&(c="Em breve no Vimeo On Demand, lançamento dia "+s+"."),u&&(c="Faça a pré-encomenda agora. Assista no dia "+s+"."),i={purchased:t.config.user.purchased,title:t.config.video.vod.feature_title,url:t.config.video.vod.url,currency:t.config.request.currency,countries:t.config.video.vod.countries,country:t.config.request.country,buttons:t.config.video.vod.purchase_options,translationMap:t.config.request.dynamic_translation_map,isPreorder:u,isComingSoon:a,releaseDate:s,strings:{watch:u?"Assista no dia "+s:"Assistir Agora",preRelease:c}}}return[Fc.VIDEOS,Fc.THREEVIDEOS,Fc.PROMOTED].includes(n)&&(t.config.user.following=i.following,(i={contexts:Array.isArray(i)?i:[i],owner:t.config.video.owner.id,bgimage:i.bgimage,following:i.following}).contexts&&i.contexts.forEach((function(t){t.videos.forEach((function(n){if(n.fullTitle=n.title,n.byline="",n.owner.id!==i.owner&&(n.fullTitle=n.title+" de "+n.owner.name,n.byline="de "+n.owner.name),n.thumbnail_base){var e=Math.round(r/t.videos.length);n.thumbnail=sf({width:e,height:Math.round(e/1.778),baseUrl:n.thumbnail_base})}}))}))),n===Fc.LINK&&(i.url=Hs(i.url),i.url2=Hs(i.url2)),n===Fc.SHARE&&(i.strings={back:"Voltar"}),i}function _(t){a.classList.toggle("vp-outro--link-medium",t)}function E(t){a.classList.toggle("vp-outro--link-large",t)}function k(){if(c=!0,o===Fc.BEGINNING)return a.innerHTML="",void t.events.fire(yc.Ma);if(b())g().then((function(){return k()})).catch((function(){}));else{var r=function(){if([Fc.VIDEOS,Fc.THREEVIDEOS,Fc.PROMOTED].includes(o)){var n;if(0===((null==(n=s)?void 0:n.contexts)||[]).reduce((function(t,n){return t+n.videos.length}),0))return null;s.showFollowButton=!t.config.user.owner&&t.config.user.logged_in,s.strings={follow:"SEGUIR",following:"Seguindo",unfollow:"Parar de seguir"}}return s&&(s.target=!t.config.embed.on_site),p=o,[Fc.THREEVIDEOS,Fc.PROMOTED].includes(o)&&(p=Fc.VIDEOS),ud.render("outro_"+p,s)}();r&&(a.innerHTML=r,a.setAttribute("data-type",p),i.classList.remove("hidden"),i.removeAttribute("hidden"),f=!0,[Fc.VIDEOS,Fc.THREEVIDEOS].includes(o)?function(){var t=document.querySelector(".js-outro-followWrap");if(t){var n=window.getComputedStyle(t),i=parseFloat(n.fontSize);t.style.width="".concat(t.clientWidth/i,"em")}}():o===Fc.LINK?(n.watch("ui.outro.isLinkTitleVisible",_),n.watch("ui.outro.isLinkDescriptionVisible",E),_(n.get("ui.outro.isLinkTitleVisible")),E(n.get("ui.outro.isLinkDescriptionVisible"))):o===Fc.SHARE&&function(){var t=i.querySelector(".js-outro-content"),n=e.getShareData();t.innerHTML=n.template,e.setup()}(),window.requestAnimationFrame((function(){window.requestAnimationFrame((function(){i.classList.add("in"),S()}))})))}}function T(){if(f)return e.destroy(),c=!1,l=!1,f=!1,void window.requestAnimationFrame((function(){i.classList.remove("in"),t.events.fire(Oc.Bc),x()}));c&&(c=!1,t.events.fire(Oc.Bc))}function S(){var n;if(!l&&i.clientWidth){$f(window).off("resize",v),l=!0;var e=[];(null==(n=s)?void 0:n.contexts)&&s.contexts.forEach((function(t){t.videos&&t.videos.forEach((function(t){var n=t.id,i=a.querySelector('[data-video-id="'+n+'"]');i&&i.clientWidth>0&&e.push(n)}))})),t.events.fire(Oc.Vc,e)}}function A(){u=setTimeout((function(){var n=t.config.embed.email||{};n&&"after"===n.position?(t.events.fire(Oc.bc),t.events.on(Oc.ef,(function(){t.events.fire(yc.Ba)}))):t.events.fire(yc.Ba)}),250)}function x(){$f(window).off("resize",v),$f(window).on("resize",v)}return t.events.on(hi.TIME_UPDATE,(function(t){var n=t.currentTime,i=t.duration;t.timeProgress,d=!1,b()&&n>=i-10&&g().catch((function(){}))})),t.events.on(Do,(function(){[Fc.NOTHING,Fc.BEGINNING,Fc.EMAIL].includes(t.config.embed.outro)&&(o=t.config.embed.outro,s=!1)})),t.events.on(Oc.Cf,(function(){w=!0})),t.events.on(Oc.rs,(function(){if(m&&!w)return t.events.on(Oc.Cf,A),void(m=!1);A()})),t.events.on(Oc._loadVideo,(function(){clearTimeout(u)})),t.events.on(yc.Ba,(function(n,i){t.performDelegateAction(Cc,(function(){n&&(o=n,s=null,h=!1),i&&i.data&&(s=y(n,i.data)),d=!0,k()}))})),$f(i).on("click",".js-videoLink",(function(n){var i=parseInt(this.getAttribute("data-video-id"),10);t.events.fire(Oc.Hc,i),vv(t.config.video.owner)&&(n.preventDefault(),t.loadVideo(i,{autoplay:!0}))})),$f(i).on("click",".js-cta",(function(n){t.events.fire(Oc.Qc,this.href)})),$f(i).on("click",".js-link",(function(n){t.events.fire(Oc.Kc,this.href)})),$f(i).on("click",".js-imageLink",(function(n){t.events.fire(Oc.Zc,this.href)})),$f(i).on("transitionend",(function(t){i.classList.contains("in")||(i.classList.add("hidden"),i.setAttribute("hidden",""))}),!1),t.events.on([yc._hideOutro,yc.Ma,hi.PLAY,hi.SEEKED,Oc.Ss],T),t.events.on(Oc.Vc,(function(){t.element.classList.add("player-outroVisible")})).on(Oc.Bc,(function(){t.element.classList.remove("player-outroVisible")})),Hh(i,".js-outro-follow",(function(){t.events.fire(Oc.Qs)})),$f(i).on("mouseleave",".js-outro-follow",(function(t){var n=document.querySelector(".js-outro-follow");n&&n.classList.remove("vp-outro-follow--activated")})),t.events.on(Oc.Jc,(function(){var t=document.querySelector(".js-outro-follow");t&&(t.setAttribute("aria-pressed",!0),t.classList.add("vp-outro-follow--activated"))})),t.events.on(Oc.Xc,(function(){var t=document.querySelector(".js-outro-follow");t&&t.setAttribute("aria-pressed",!1)})),t.events.on(yc._showOverlay,(function(){setTimeout((function(){i.classList.add("hidden")}),150)})),t.events.on(Oc.nc,(function(){i.classList.contains("in")&&i.classList.remove("hidden")})),t.events.on(yc.Ma,(function(){s=null,h=!1,m=t.config.request.ads instanceof Object})),Hh(i,".js-vod-button",(function(){var n=this.getAttribute("data-product-id");return t.events.fire(Oc.Xs,n),!1})),Hh(i,".js-vod-watch",(function(){if(!("date_available"in t.config.video.vod))return T(),t.events.fire(Oc.Xs),!1})),a&&((e=new pv(t,a)).events.on(Oc.vc,(function(){t.config.embed.settings.share.embed_only||(i.querySelector(".js-back").classList.remove("cloaked"),i.classList.add("embed-active"))})).on(Oc.hc,(function(){i.classList.remove("embed-active")})),Hh(i,".js-back",(function(){return e.showShareView(),!1})),e.events.on(Oc.pc,(function(){i.querySelector(".js-back").classList.add("cloaked")}))),x(),{}}function wv(t,n){var i,e=nt();function r(t){if("yes"===t.form.getAttribute("data-bubble")){t.form.setAttribute("data-bubble","no");var i=n.querySelector(".vp-validation-bubble");i.querySelector(".vp-validation-bubble-message").innerHTML=t.validationMessage||"Há um erro com esta função.";var e=Zs(t),r=Zs(t.form);i.style.left=e.left-r.left+"px",i.style.top=e.height+1+"px",i.classList.remove("hidden"),t.focus(),window.requestAnimationFrame((function(){i.classList.add("vp-validation-bubble-animate")})),o()}}function o(t){var e=n.querySelector(".vp-validation-bubble");if(e){if(t)return clearTimeout(i),void e.classList.remove("vp-validation-bubble-animate");clearTimeout(i),i=setTimeout((function(){e.classList.remove("vp-validation-bubble-animate")}),5e3)}}function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.showBubble,e=void 0===i||i,u=n.querySelector("input[type=email]"),a=n.querySelector("input[type=text]");return u.setAttribute("aria-invalid","false"),u.setCustomValidity(""),u.checkValidity&&!u.checkValidity()?(u.setAttribute("aria-invalid","true"),u.validity.valueMissing&&u.setCustomValidity("Por favor, digite seu e-mail."),u.validity.typeMismatch&&u.setCustomValidity("Por favor, digite um e-mail válido."),e&&r(u),!1):(a.setAttribute("aria-invalid","false"),a.setCustomValidity(""),a.checkValidity&&!a.checkValidity()?(a.setAttribute("aria-invalid","true"),a.validity.typeMismatch&&a.setCustomValidity("Por favor, digite um nome válido."),!1):(o(!0),!0))}var a=function(){e.fire(Oc.ef)};function s(i){if(!u())return!1;var e=i.querySelector("input[type=email]"),o=i.querySelector("input[type=submit]"),s={signature:"signature",time:"timestamp",expires:"expires"};function c(t){o.classList.remove("loading"),e.setCustomValidity("Uh oh. There was a problem. Please try again."),e.setAttribute("aria-invalid","true"),r(e)}Object.keys(s).forEach((function(n){i.querySelector("input[name=".concat(n,"]")).value=t.config.request[s[n]]})),o.classList.add("loading"),function(i,e,r){oc(n);var o=U(i.querySelectorAll("input")).map((function(t){return t.name?encodeURIComponent(t.name)+"="+encodeURIComponent(t.value):encodeURIComponent(t.value)})).join("&"),u=new XMLHttpRequest;u.open(i.method,i.action+window.location.search,!0),u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),u.withCredentials=!0,u.timeout=3e3,u.onload=function(){var i;try{i=JSON.parse(u.responseText)}catch(t){}!function(i,e){!1!==i?(t.config.embed.email=null,t.events.fire(Oc.Gc),function(){var t=n.querySelector(".vp-email-capture"),i=n.querySelector(".vp-email-capture-confirm");t.classList.add("vp-email-capture-invisible"),i.classList.remove("vp-email-capture-confirm-hidden"),window.requestAnimationFrame((function(){window.requestAnimationFrame((function(){i.classList.add("in"),setTimeout(a,2250)}))}))}()):c(e.status)}(i,u)},u.onerror=function(t){r(t)},u.send(o)}(i,0,c)}var c={get events(){return e},getData:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=t.config.embed.email||{},r=i.custom_logo||e.custom_logo;if(r)var o=sf({width:150,height:75,baseUrl:r,defaultExtension:".png"});return n.template=ud.render("email_capture",{allowSkip:i.allow_skip||e.allow_skip,customLogo:o,text:i.text||e.text||"",action:"https://".concat(t.config.player_url,"/video/").concat(t.config.video.id,"/submit-email"),confirmation:i.confirmation||e.confirmation||"Obrigado! Seu email foi enviado com sucesso.",referrer:t.config.request.referrer,strings:{email:"Endereço de e-mail",fullName:"Nome (opcional)",nothanks:"Não, obrigado (a)",submit:"Enviar",disclaimer:"Compartilhe seu e-mail com o proprietário deste vídeo"}}),n.gd=".js-email-capture-form-input",n.modal=!0,n.logo=!1,n.preventBackgroundClose=!0,n.noblur=i.noblur,n.nofocus=i.nofocus,n}};return Hh(n,".vp-email-capture-form-button--cancel",(function(){a()})),Hh(n,".vp-email-capture-form-button--submit",(function(){this.form.classList.add("vp-email-capture-form-submitted"),this.form.setAttribute("data-bubble","yes"),u()})),$f(n).on("submit",".vp-email-capture-form",(function(){return t.events.fire(Oc.lc),s(this),!1})).on(["focus","input"],".vp-email-capture-form-input[type=email]",(function(){u({showBubble:!1})})),c}function bv(t,n,i){var e,r,o,u=i.querySelector(".vp-overlay-cell"),a=i.querySelector(".vp-overlay"),s=i.querySelector(".vp-overlay-icon-wrapper"),c=s.querySelector(".vp-overlay-icon"),f=i.querySelector(".vp-overlay-logo"),l=!1,d=null,h=null,v=new pv(t,a),p=new wv(t,a),m=!1,w=!1;function b(){var t=Zs(i),n=Zs(a),e=Zs(f),r=n.bottom+(t.height-n.bottom)/2;return t.height-r-e.height/2+"px"}function g(){var t=Zs(i),n=Zs(a),e=Zs(s),r=t.height/2,o=t.height-(t.bottom-n.bottom)/2;return{top:r-e.height/2+"px",transform:"translateY("+(o-r)+"px)"}}function y(n,e){i.setAttribute("data-name",n),a.innerHTML=e.template,os.iOS&&Bh.element&&(t.events.fire(Oc.Ws),Bh.exit()),e.noblur||Xs(o=document.activeElement),e.modal&&(i.classList.add("modal"),i.setAttribute("data-modal","true")),e.preventBackgroundClose&&i.setAttribute("data-background-close","false"),e.wrapperClass&&i.classList.add(e.wrapperClass),e.icon.type&&(e.logo&&(f.classList.remove("hidden"),s.classList.add("cloaked"),window.requestAnimationFrame((function(){f.innerHTML=ud.render("logo"),f.style.bottom=b()}))),s.classList.remove("hidden"),c.innerHTML=e.icon.html,window.requestAnimationFrame((function(){var t=g();s.style.top=t.top,s.style[os.transformProperty]=t.transform})),i.setAttribute("data-icon",e.icon.type),s.setAttribute("data-icon",e.icon.type),c.setAttribute("data-icon",e.icon.type),"private-unlocked"===n&&c.classList.add("open")),i.classList.add("invisible"),i.classList.remove("hidden"),i.removeAttribute("hidden"),i.classList.add("in"),h=e,d=n,l=!0,t.events.fire(Oc.tc,n),t.element.classList.add("player-overlayVisible"),["share","hd-not-allowed"].indexOf(n)>-1&&oc(i),window.requestAnimationFrame((function(){i.classList.remove("invisible"),!e.nofocus&&t.element.contains(document.activeElement)&&function(t){if(t){var n=i.querySelector(t);n&&n.focus()}}(e.gd),window.requestAnimationFrame((function(){a.classList.add("in"),u.classList.add("in")}))}))}function _(){a.classList.remove("in"),a.classList.add("out")}function E(n){if("true"!==i.getAttribute("data-modal")&&l){i.removeAttribute("data-background-close"),u.classList.remove("in"),u.classList.add("out"),_(),i.classList.remove("in"),i.classList.add("out"),clearTimeout(e),e=setTimeout(k,200),(null==n?void 0:n.preventDefault)&&n.preventDefault();var r=i.querySelector(".js-back");r&&r.classList.add("cloaked"),v.destroy(),t.events.fire(Oc.nc,d),t.element.classList.remove("player-overlayVisible"),l=!1,d=null,h=null,window.requestAnimationFrame((function(){o&&(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.activeElement,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{t.focus()}catch(t){n&&n(t)}}(o),o=null)}))}}function k(){i.setAttribute("hidden",""),i.removeAttribute("data-name"),i.removeAttribute("data-icon"),i.classList.add("hidden"),i.classList.remove("out"),i.classList.remove("embed-active"),i.classList.remove("modal"),i.classList.remove("embed-only"),u.classList.remove("out"),u.classList.remove("in"),s.removeAttribute("data-icon"),s.classList.add("hidden"),s.classList.remove("animate"),c.removeAttribute("data-icon"),c.innerHTML="",f.classList.add("hidden"),a.classList.remove("out"),a.innerHTML="",t.events.fire(Oc.ic)}function T(){i.setAttribute("data-modal","false")}function S(t){if("yes"===t.form.getAttribute("data-bubble")){t.form.setAttribute("data-bubble","no");var n=i.querySelector(".vp-validation-bubble");n.querySelector(".vp-validation-bubble-message").innerHTML=t.validationMessage||"There is an error with this input.";var e=Zs(t),r=Zs(t.form);n.style.left=e.left-r.left+"px",n.style.top=e.height+1+"px",n.classList.remove("hidden"),t.focus(),window.requestAnimationFrame((function(){n.classList.add("vp-validation-bubble-animate")})),A()}}function A(t){var n=i.querySelector(".vp-validation-bubble");if(n){if(t)return clearTimeout(r),void n.classList.remove("vp-validation-bubble-animate");clearTimeout(r),r=setTimeout((function(){n.classList.remove("vp-validation-bubble-animate")}),5e3)}}function x(t){var n=i.querySelector("input[type=password]");return n.form.classList.contains("submitted")?(n.setAttribute("aria-invalid","false"),n.setCustomValidity(""),n.checkValidity&&!n.checkValidity()?(n.setAttribute("aria-invalid","true"),n.validity.valueMissing&&n.setCustomValidity("Por favor, digite a senha."),t||S(n),!1):(A(!0),!0)):null}function M(){C(),s.classList.remove("cloaked"),s.classList.add("animate"),window.requestAnimationFrame((function(){s.style[os.transformProperty]="translateY(-10px)"})),T(),_()}function C(){f.classList.add("animate")}function R(){c.classList.add("open")}function O(){c.classList.add("pulled-back")}function I(n){return n.icon={type:"lock",html:ud.render("icon_lock")},n.gd=".js-login",n.modal=!0,n.logo=!0,n.template=ud.render("private_locked",{action:"https://".concat(t.config.vimeo_url,"/log_in"),strings:{title:"Vídeo Privado",subtitle:"Faça o login para assistir (se você tiver permissão)",logIn:"Entrar"}}),n}function j(n){return n.icon={type:"lock",html:ud.render("icon_lock")},n.template=ud.render("password",{action:"https://".concat(t.config.player_url,"/video/").concat(t.config.video.id,"/check-password?referrer=").concat(t.config.request.referrer),strings:{title:"Senha necessária",subtitle:"Se você tem a senha, insira-a abaixo.",password:"Senha",watch:"Assistir ao Vídeo"}}),n.gd=".js-password",n.modal=!0,n.logo=!!t.config.embed.settings.logo,n}function D(t){return t.icon={type:"lock",html:ud.render("icon_lock")},t.template=ud.render("private_unlocked",{strings:{title:"Vídeo Privado",subtitle:"Você está conectado e tem permissão para assistir (parabéns)!",watch:"Assistir ao Vídeo"}}),t.gd=".js-watch",t}function L(t,n){return t.template=ud.render("error",{title:n.title,message:n.message}),t.gd=".js-close",t.modal=!!n.modal,t.logo=!!n.logo,n.icon&&"lock"===n.icon&&(t.icon={type:"lock",html:ud.render("icon_lock")}),t}function P(n){return n.template=ud.render("help",{onSite:t.config.embed.on_site,strings:{title:"Atalhos do Teclado",volumeUp:"Aumentar volume",volumeDown:"Abaixar volume",scrubForward:"Para frente",scrubBackwards:"Para trás",like:"Curtir",share:"Compartilhar",watchLater:"Ver Depois",captions:"Ativar/Desativar Closed Captions (CC)",prefs:"Ativar/desativar Menu de preferências",fullscreen:"Ativar/Desativar tela cheia",viewOnVimeo:"Assistir no Vimeo"}}),n.gd=".js-close",n}function N(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=i.redirectUrl,r=i.title,o=i.buttonText,u=i.ignoreText,a=i.bottomText,s=i.newWindow,c=sc(t.config.video.privacy,["disable","unlisted"]);return n.template=ud.render("app_redirect",{hideRedirectButton:c,redirectUrl:e,newWindow:s,strings:{title:r,buttonText:o,ignoreText:u,bottomText:a}}),n.modal=!1,n.logo=!1,n.preventBackgroundClose=!0,n}function F(){var n=t.config.embed.email||{};if(t.backbone){var i=n.timecode||0;m=t.backbone.currentTime>i}n&&"before"===n.position&&!m&&V()}function V(){n.get("ui.overlay.isEmailCaptureVisible")?t.events.fire(yc._showOverlay,"email-capture"):w=!0}return t.events.on(yc.Aa,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.unmakeModal&&T(),E()})),t.events.on(yc._showOverlay,(function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=function(){var t={modal:!1,template:null,logo:!1,icon:{type:null,html:null}};switch(n){case"share":return y(n,v.getShareData(t,i)),void v.setup();case"private-locked":return void y(n,I(t));case"password":return void y(n,j(t));case"private-unlocked":return void y(n,D(t));case"error":return void y(n,L(t,i));case"help":return void y(n,P(t));case"email-capture":return void y(n,p.getData(t,i));case"app-redirect":return void y(n,N(t,i))}};if(l&&!i.nohide)return"share"!==d&&"help"!==d&&"hd-not-allowed"!==d||d!==n?(t.events.once(Oc.ic,e),T(),void E()):void E();e()})),$f(i).on("input","input",(function(){this.form.classList.add("interacted")})).on(["focus","blur"],"input",(function(){A(!0)})).on("transitionend",".vp-validation-bubble",(function(t){"opacity"===t.propertyName&&"0"===window.getComputedStyle(this,"").opacity&&this.classList.add("hidden")})),t.events.on([Oc.ec,hi.PLAY],E),t.events.on(Oc.jc,(function(){"private-locked"===d&&(T(),E())})),t.events.on(Oc.Oc,(function(){"share"===d&&(h=v.getShareData({modal:!1,template:null,logo:!1,icon:{type:null,html:null}}),a.innerHTML=h.template,v.setup())})),$f(window).on("resize",(function(){if(l){f.style.bottom=b();var t=g();s.style.top=t.top,s.style[os.transformProperty]=t.transform}})),$f(i).on("transitionend",".vp-overlay-logo",(function(t){"opacity"===t.propertyName&&this.classList.contains("animate")&&(f.classList.add("hidden"),f.classList.remove("animate"))})),$f(i).on("transitionend",".vp-overlay-icon-wrapper",(function(t){t.propertyName.indexOf("transform")>-1&&(""===this.style[os.transformProperty]?(this.classList.remove("centered"),"lock"!==this.getAttribute("data-icon")||c.classList.contains("open")||c.querySelector("canvas")?O():setTimeout(R,100)):"translateY(-10px)"===this.style[os.transformProperty]&&(s.classList.add("centered"),s.style[os.transformProperty]=""))})),$f(i).on("transitionend",".vp-overlay-icon",(function(t){t.propertyName.indexOf("transform")>-1&&(this.classList.contains("out")?(T(),E()):this.classList.contains("pulled-back")?(c.classList.add("out"),c.classList.remove("pulled-back")):this.classList.contains("open")&&O())})),n.watch("ui.overlay.isEmailCaptureVisible",(function(n){!n&&l&&"email-capture"===d?(w=l,T(),E()):n&&w&&(w=!1,t.events.fire(yc._showOverlay,"email-capture"))})),t.events.on(Oc.te,F),t.events.on(Oc.Oc,F),t.events.on(hi.TIME_UPDATE,(function(n){var i=n.currentTime,e=void 0===i?0:i,r=t.config.embed.email||{};r&&"during"===r.position&&(e=r.timecode&&!m&&(m=!0,V()))})),t.events.on(Oc.bc,(function(){V()})),p.events.on(Oc.ef,(function(){t.events.fire(Oc.ef),T(),E()})),v.events.on(Oc.vc,(function(){t.config.embed.settings.share.embed_only||(i.querySelector(".js-back").classList.remove("cloaked"),i.classList.add("embed-active"))})).on(Oc.hc,(function(){i.classList.remove("embed-active")})),Hh(i,".js-back",(function(){return v.showShareView(),!1})),v.events.on(Oc.pc,(function(){i.querySelector(".js-back").classList.add("cloaked")})),os.stereoscopic&&(t.events.on(Oc.wc,(function(){t.events.fire(yc._showOverlay,"app-redirect",{redirectUrl:t.doNotTrackEnabled?t.config.video.share_url:Pf(t.config.video.id,"player-spatial-redirect"),title:"Headset viewing isn’t currently supported in your mobile browser.",buttonText:"Assista no aplicativo do Vimeo",ignoreText:null,bottomText:null,newWindow:!t.config.embed.on_site})})),$f(a).on("click",".app-redirect-ignore",(function(){E()})),$f(a).on("click","[data-new-window]",(function(t){return window.open(document.querySelector(".app-redirect-button").getAttribute("href")),!1}))),$f(a).on("click",".popup",(function(){return t.events.fire(yc.xa,"login-private-locked"),!1})),$f(a).on("click",".password input[type=submit]",(function(){this.form.classList.add("submitted"),this.form.setAttribute("data-bubble","yes"),x(!0)})).on("submit",".password form",(function(){return function(n){if(!x())return!1;var e=n.querySelector("input[type=password]"),r=n.querySelector("input[type=submit]");function o(t){r.classList.remove("loading"),e.setCustomValidity("Oh, não! Houve um problema. Por favor, tente novamente."),e.setAttribute("aria-invalid","true"),S(e)}r.classList.add("loading"),function(t,n,e){oc(i);var r=U(t.querySelectorAll("input")).map((function(t){return t.name?encodeURIComponent(t.name)+"="+encodeURIComponent(window.btoa(function(t){return encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,n){return String.fromCharCode("0x"+n)}))}(t.value))):encodeURIComponent(t.value)})).join("&"),o=new XMLHttpRequest;o.open(t.method,t.action+window.location.search,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.withCredentials=!0,o.timeout=3e3,o.onload=function(){var t;try{t=JSON.parse(o.responseText)}catch(t){}n(t,o)},o.onerror=function(t){e(t)},o.send(r)}(n,(function(n,i){if(!1!==n){if(t.events.fire(Oc.Ic,n),"icon-hidden"===window.getComputedStyle(u,":after").content)return T(),void E();M()}else o(i.status)}),o)}(this),!1})).on(["focus","input"],[".password input[type=email]",".password input[type=password]"],(function(){x()})),Hh(a,".unlocked button",(function(){0===Zs(c).width?(C(),T(),E()):M(),os.iPad||os.iPhone||t.events.once(Oc.ic,(function(){t.events.fire(Oc.ms)}))})),function(){var n;t.events.on(Oc.Za,(function(i){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{modal:!0,final:!0};if(!1!==e.final){n=i;var r={modal:!1,template:null,logo:!1,icon:{type:null,html:null}};if(r.modal=e.modal,r.template=ud.render("error",{title:e.title,message:e.message}),r.gd=".js-close",l)return E(),void t.events.once(Oc.ic,(function(){return y(i,r)}));y(i,r)}})),$f(a).on("click",".error",(function(i){t.events.fire(Oc.Yc,i.target.href,n)}))}(),t.events.on(Oc.Oc,(function(){window.requestAnimationFrame((function(){T(),E()}))})),Hh(i,".js-close",(function(){t.events.fire(Oc.ec)})),$f(i).on(["click","touchend"],[".vp-overlay-content",".js-share",".vp-overlay-logo"],(function(t){t.stopPropagation()})).on(["click","touchend"],[".vp-overlay-cell","nav"],(function(){return"false"===i.getAttribute("data-background-close")||(t.events.fire(Oc.ec),!1)})),t.events.on(yc.Ba,(function(){i.classList.add("hidden")})),t.events.on(Oc.Bc,(function(){i.classList.contains("in")&&i.classList.remove("hidden")})),t.events.fire(Oc.ff),{}}var gv=[".vp-title a"],yv=[".vp-title a:hover"],_v=["a",".button-link",".vp-overlay-wrapper .footnote.share a:hover",".vp-title h1",".vp-title span.user",".menu li:hover",".menu li.active",".vp-outro-link:hover",".vp-outro-videosTitle a:hover","li.vp-panel-item:hover","li.vp-panel-item-on",".vp-share-footnote a:hover",".card-link span",".vp-panel-collapsible .vp-panel-button:hover"],Ev=["a:hover",".button-link:hover"],kv=[".vp-overlay-wrapper .close:hover .fill",".vp-overlay-wrapper .back:hover .fill",".stats-debug-close:hover .fill",".stats-debug-copy:hover",".card-link:hover .fill"],Tv=[".play-bar .on .fill",".play-bar a:hover .fill",".play-bar button:not(.toggle):hover .fill",".tiny-bars .fill",".vp-sidedock .on .fill",".controls-outro a:hover .fill",".card-link .fill",".vp-panel-collapsible .vp-panel-button:hover .fill"],Sv=[".vp-controls .play-bar .vp-cast-button"],Av=[".vp-sidedock .on:hover .fill"],xv=[".play-bar .on .stroke",".vp-sidedock .on .stroke"],Mv=[".vp-sidedock .on:hover .stroke"],Cv=[".vp-sidedock button:hover",".vp-sidedock button.selected","&.touch-support .vp-sidedock button:active",".vp-controls .play:hover",".vp-controls .play-bar .played","&.no-playbar .play-bar button:not(.toggle):hover",".vp-controls.tiny .play-bar button:not(.toggle):hover",".vp-controls .volume div",".vp-overlay .buttons li",".vp-overlay .vp-overlay-content button",'.vp-overlay .vp-overlay-content input[type="submit"]','.vp-overlay .vp-overlay-content a[role="button"]',"li.vp-panel-item-on:before",".vp-controls .replay:hover",".vp-share-buttons li","button.vp-share-embedCopy",".vp-outro-button","a.vp-outro-vodButton",".vp-email-capture-form-button--submit",".vp-email-capture-checkIconWrapper",".chapter-marker",".vp-chapters-active-indicator"],Rv=["li.vp-panel-item-on:before"],Ov=[".vp-overlay .vp-overlay-content button",'.vp-overlay .vp-overlay-content input[type="submit"]','.vp-overlay .vp-overlay-content a[role="button"]',".vp-sidedock button:hover",".vp-sidedock button.selected",".vp-sidedock button:hover .vod-label",".vp-sidedock button.selected .vod-label",".play:hover",".vp-share-footnote--embed a",".vp-outro-button",".vp-outro-button:hover",".vp-outro-wrapper .vp-outro-link:hover","button.vp-share-embedCopy",".vp-outro-vodWrapper a.vp-outro-vodButton",".vp-outro-vodWrapper a.vp-outro-vodButton:hover","li.vp-panel-item:hover","li.vp-panel-item-on",".vp-panel-collapsible .vp-panel-button:hover","input.vp-email-capture-form-button--submit"],Iv=[".vp-controls .play:hover .fill",".vp-sidedock button:hover .fill",".vp-sidedock button.selected .fill",".play-bar a:hover .fill",".play-bar button:not(.toggle):hover .fill","&.no-playbar .play-bar button:not(.toggle):hover .fill",".vp-controls.tiny .play-bar button:not(.toggle):hover .fill",".vp-sidedock .on .fill",'.vp-share-wrapper a[role="button"] .fill',".vp-outro-vodButton .fill",".vp-email-capture-checkIconWrapper .fill",".vp-panel-collapsible .vp-panel-button:hover .fill"],jv=[".vp-controls .play:hover .stroke",".vp-sidedock button:hover .stroke",".vp-sidedock button.selected .stroke",".vp-sidedock .on .stroke"],Dv=["li.vp-panel-item-on:before"],Lv=["li.vp-panel-item-on:before"],Pv=['.vp-overlay-wrapper .vp-overlay a[role="button"]',".vp-sidedock button:hover",".vp-sidedock button.selected",".play:hover","button.vp-share-embedCopy",".vp-outro-button",".vp-outro-button:hover",".vp-outro-vodWrapper a.vp-outro-vodButton",".vp-outro-vodWrapper a.vp-outro-vodButton:hover","input.vp-email-capture-form-button--submit"],Nv=[".vp-controls .play:hover .fill",".vp-sidedock button:hover .fill",".vp-sidedock button.selected .fill",".vp-controls .play-bar .fullscreen.tiny:hover .fill",".vp-share-button .fill",".vp-outro-vodButton .fill"],Fv=[".vp-sidedock button:hover .stroke",".vp-sidedock button.selected .stroke"],Uv=["li.vp-panel-item-on:before"],Vv=['.vp-overlay .vp-overlay-content input[type="submit"]:active','.vp-overlay a[role="button"]:active',".vp-sidedock button:active",".vp-outro-vodWrapper a.vp-outro-vodButton:active"];function Bv(t,n){var i=n.uuid,e=n.id,r=n.isMobileDevice,o=null;function u(t,n){var o=".player-".concat(i," "),u=o+t.join(","+o);if(n){var a="".concat(e," ");u+=",".concat(a).concat(t.join(","+a))}return r&&(u=u.replace(/:hover/g,":active")),u.replace(/ &/g,"")}return t.events.on(yc.Ia,(function(n){var e;try{e=new Jd(n)}catch(t){e=new Jd("00adef")}var r=function(t){o?function(){for(;o.cssRules.length>0;)o.deleteRule(0)}():function(){var t=document.createElement("style");t.setAttribute("data-player",i),document.querySelector("head").appendChild(t),o=t.sheet}();var n=t.complement,e=new Jd(23,35,34,.75),r=new Jd(0,0,0,.15).overlayOn(t);e.contrast(n).ratio<3&&n.lighten(5,3,e);var a,s=t.lightness<40?t.clone().lighten(15,3,t):t.clone().darken(15,3,t);return Ys(u(gv,!0),"color:"+t.hex+" !important",o),Ys(u(yv,!0),"color:"+n.hex+" !important",o),Ys(u(_v),"color:"+t.hex,o),Ys(u(Tv),"fill:"+t.hex,o),Ys(u(Sv),"--connected-color:"+t.hex,o),Ys(u(xv),"stroke:"+t.hex,o),Ys(u(Cv),"background-color:"+t.hex,o),Ys(u(Rv),"border-color:"+t.hex,o),Ys(u(Ev),"color:"+n.hex,o),Ys(u(kv),"fill:"+n.hex,o),Ys(u(Av),"fill:"+s.hex,o),Ys(u(Mv),"stroke:"+s.hex,o),Ys(u(Uv),"border-color:"+r.hex,o),Ys(u(Vv),"background-color:"+r.hex,o),t.luminance>.95&&(n=t.clone().darken(15,3,t),Ys(u(Ov),"color:"+n.hex,o),Ys(u(Iv),"fill:"+n.hex,o),Ys(u(jv),"stroke:"+n.hex,o),Ys(u(Dv),"background-color:"+n.hex,o),Ys(u(Lv),"border-color:"+n.hex,o),s=n.clone().darken(15,3,n),Ys(u(Av),"fill:"+s.hex,o),Ys(u(Mv),"stroke:"+s.hex,o)),t.yiq>175&&t.luminance<.95&&(a=s.clone().darken(15,3,s),Ys(u(Av),"fill:"+a.hex,o),Ys(u(Mv),"stroke:"+a.hex,o),Ys(u(Pv),"color:"+s.hex,o),Ys(u(Nv),"fill:"+s.hex,o),Ys(u(Fv),"stroke:"+s.hex,o)),{main:t.hex,selected:s.hex,sidedockHover:a?s.hex:t.luminance>.95?n.hex:Jd.white.hex,sidedockSelected:t.luminance>.95?n.hex:t.hex,sidedockSelectedHover:a?a.hex:s.hex}}(e);t.config.yd=r,t.config.embed.color=r.main.replace("#",""),t.events.fire(Oc.Rc,t.config.embed.color)})),t.events.fire(yc.Ia,t.config.embed.color),{}}function Hv(t){var n=null;return t.events.on(yc.xa,(function(i,e){var r="https://".concat(t.config.player_url),o="".concat(r,"/video/").concat(t.config.video.id);switch(i){case"login-like":n=ic("".concat(o,"/login/like"),"login",{width:670,height:545}),t.events.fire(Oc.cc,i);break;case"login-watch-later":n=ic("".concat(o,"/login/watch-later"),"login",{width:670,height:545}),t.events.fire(Oc.cc,i);break;case"login-private-locked":n=ic("".concat(o,"/login/private"),"login",{width:670,height:545}),t.events.fire(Oc.cc,i);break;case"purchase":var u="".concat(r,"/video/").concat(t.config.video.vod.feature_id||t.config.video.id,"/purchase/vod");(null==e?void 0:e.productId)&&(u+="/".concat(e.productId)),u+="?referrer=".concat(encodeURIComponent(t.config.request.referrer)),n=ic(u,"purchase",{width:790,height:670}),t.events.fire(Oc.cc,i)}})),window.closePopup=function(i){if(n){try{n.close(),t.events.fire(Oc.dc,i)}catch(t){}n=null}},t.config.embed.on_site||(window.confirmPurchase=function(n,i,e){i?t.loadVideo(n):e&&t.events.fire(Oc.ms)}),t.config.embed.on_site||(window.confirmLoginAction=function(n,i){t.events.fire(Oc.Ac,i)}),{}}function qv(t,n,i,e){var r=e[n];return r?(r=zv(r=Gv(t,r),i,e.prices),e.expires_in_duration_str&&(r=r.replace("{TIME}",e.expires_in_duration_str)),e.available_on_formatted&&(r=r.replace("{DATE}",e.available_on_formatted)),r):null}function zv(t,n,i){var e=i.USD;return n in i&&(e=i[n]),-1!==t.indexOf("${price}")?t.replace("${price}",e):-1!==t.indexOf("{PRICE}")?t.replace("{PRICE}",e):t}function Wv(t,n){return!t||0===t.length||-1!==t.indexOf(n)}function Gv(t,n){return void 0!==t&&void 0!==t[n]?t[n]:n}var $v=Object.freeze({__proto__:null,formatVodLabel:qv,getDisplayPrice:zv,isAvailableInCountry:Wv,translateFromRequest:Gv});function Kv(t,n){var i,e,r,o,u,a,s,c,f,l=!1,d=!1,h=!1,v=!1,p=!1,m=!1,w=!1,b=!1,g=[],y=[],_=null,E=!1,k=!1,T=null,S=t.config.embed.autoplay&&t.config.request.flags.autohide_controls;function A(){return v||w||b}function x(){l&&(k||(d&&E||A()||S)&&(h||(!p&&!m||A())&&(l=!1,t.events.fire(Oc.Os,l),(T||n).classList.add("invisible"))))}function M(){if(!l&&!A()){var i=T||n;i.classList.add("invisible"),i.classList.remove("hidden"),i.removeAttribute("hidden"),n.classList.remove("hidden"),n.removeAttribute("hidden"),n.classList.contains("vod")&&n.classList.remove("vod"),setTimeout((function(){l=!0,t.events.fire(Oc.Os,l),i.classList.remove("invisible")}),0)}}function C(n,i,e){var r="data-label-"+e,o="add"!==e||t.config.user.logged_in?r:"data-label-add-logged-out";n.setAttribute("aria-label",n.getAttribute(o)),i.classList.add("hidden"),i.setAttribute("hidden",""),i.firstChild.innerHTML=n.getAttribute(r)}function R(){var t="BUTTON"===this.tagName?this:this.querySelector("button"),n=g.indexOf(t);n>=0&&y[n]&&(_&&(window.cancelAnimationFrame(_),_=null),y[n].classList.add("invisible"))}function O(){if(i){var t=i.parentElement;T.insertBefore(t,T.firstChild)}}function I(){var d;if(1===t.config.view||3===t.config.view){var h=t.config.embed.settings,v=t.config.video.vod&&"purchase_options"in t.config.video.vod&&t.config.video.vod.purchase_options.length,p=v&&t.config.video.vod.is_coming_soon,m="ondemand.main"===t.config.embed.context||"Vimeo\\Controller\\OnDemandController.main"===t.config.embed.context,w=t.config.video.vod&&t.config.user.purchased?1:0,b=v&&h.vod&&Wv(t.config.video.vod.countries,t.config.request.country);b&&p&&m&&(b=!1);var _=v&&t.config.video.vod.purchase_options[0],E=null;_&&(E=qv(t.config.request.dynamic_translation_map,"label_string",t.config.request.currency,_)),n.innerHTML=ud.render("sidedock",{loggedIn:!!t.config.user.logged_in,vodButton:b,purchased:w,vodPurchaseInfo:_,vodDisplayLabel:E,likeButton:h.like,liked:t.config.user.liked,watchLaterButton:h.watch_later,addedToWatchLater:t.config.user.watch_later,collectionsButton:h.collections,shareButton:h.share,strings:{like:"Curtir",likeLoggedOut:"Like (this opens in a new window)",unlike:"Descurtir",watchLaterAdd:"Adicionar ao Assistir Depois",watchLaterAddLoggedOut:"Add to Watch Later (this opens in a new window)",watchLaterRemove:"Remover do Assistir Depois",collections:"Adicionar `as coleções",share:(null==(d=h.share)?void 0:d.embed_only)?"Incorporação":"Compartilhar"}}),i=n.querySelector(".vod-button"),b&&(T=n.querySelector(".sidedock-inner"),w&&O());var k=T||n;v&&b&&!t.config.embed.settings.instant_sidedock?n.classList.add("vod"):os.touch&&(l=!0,t.events.fire(Oc.Os,l),k.classList.remove("hidden"),k.removeAttribute("hidden"),k.classList.remove("invisible")),e=n.querySelector(".like-button"),r=n.querySelector(".like-label"),o=n.querySelector(".watch-later-button"),u=n.querySelector(".watch-later-label"),a=n.querySelector(".collections-button"),s=n.querySelector(".collections-label"),c=n.querySelector(".share-button"),f=n.querySelector(".share-label"),g=[i,e,o,c,a],y=[null,r,u,f,s]}}return I(),function(){var n=t.config.embed.settings.instant_sidedock,i=t.config.video.vod,e=i&&"purchase_options"in i&&i.purchase_options.length,r=i&&Wv(t.config.video.vod.countries,t.config.request.country);(n||e&&r)&&(S||M())}(),Hh(n,".vod-button",(function(){var n=i.getAttribute("data-product-id");t.events.fire(Oc.Xs,n)}),R),t.events.on(Oc.Vc,(function(){O(),n.classList.add("sidedock-outro"),"share"===t.config.embed.outro&&(t.config.embed.settings.share=0,I())})),t.events.on(Oc.Bc,(function(){!function(){if(i){var t=i.parentElement;n.insertBefore(t,T)}}(),n.classList.remove("sidedock-outro"),"share"===t.config.embed.outro&&(t.config.embed.settings.share=1,I())})),Hh(n,".like-button",(function(){t.events.fire(Oc.$s)}),R),t.events.on(Oc.Ec,(function(){e&&(e.classList.add("on"),C(e,r,"remove"))})),t.events.on(Oc.kc,(function(){e&&(e.classList.remove("on"),C(e,r,"add"))})),Hh(n,".watch-later-button",(function(){t.events.fire(Oc.Ks)}),R),t.events.on(Oc.Tc,(function(){o&&(o.classList.add("on"),C(o,u,"remove"))})),t.events.on(Oc.Sc,(function(){o&&(o.classList.remove("on"),C(o,u,"add"))})),Hh(n,".collections-button",(function(){t.events.fire(Oc.Zs)}),R),Hh(n,".share-button",(function(){return t.events.fire(t.config.embed.settings.share.embed_only?Oc.Js:Oc.Ys),!1}),R),$f(n).on("blur","button",R).on("mouseleave",".box",R).on(["focus","pointerdown","touchstart","mouseenter"],"button",(function(){var t=g.indexOf(this);y.forEach((function(n,i){i!==t&&n&&n.classList.add("invisible")})),t>=0&&y[t]&&(y[t].classList.add("invisible"),y[t].classList.remove("hidden"),y[t].removeAttribute("hidden",""),_=window.requestAnimationFrame((function(){_=window.requestAnimationFrame((function(){y[t].classList.remove("invisible"),y[t].classList.add("visible")}))})))})).on("transitionend","label",(function(t){"opacity"===t.propertyName&&t.target.classList.contains("invisible")&&(t.target.classList.add("hidden"),t.target.setAttribute("hidden",""),t.target.classList.remove("visible"))})),Hh(n,"label",(function(){var t=y.indexOf(this);t>=0&&g[t].click()})),t.events.on([Oc.gc,Oc._c,Oc.ds],x).on(Oc.yc,M).on(Oc.as,(function(){E=!0,x()})).on(hi.PLAY,(function(){d=!0})),$f(n).on(["pointerenter","pointerleave","mouseenter","mouseleave"],(function(t){"pointerType"in t?"mouse"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE||(h="pointerenter"===t.type||"MSPointerEnter"===t.type):h="mouseover"===t.type})),$f(n).on("transitionend",(function(t){var e=T||n;"opacity"===t.propertyName&&e.classList.contains("invisible")&&(e.classList.add("hidden"),e.setAttribute("hidden",""),i&&e.contains(i)&&(n.classList.add("hidden"),n.setAttribute("hidden","")))})),t.events.on(Oc.qs,(function(){h=!1,x()})).on(Oc.Gs,(function(t){t||(k=!0)})),t.events.on([Oc.bf],(function(){p=!0,M()})).on([Oc.gf],(function(){p=!1})),t.events.on(Ho,(function(){m=!0,M()})).on(qo,(function(){m=!1})),t.events.on(Oc.tc,(function(){v=!0,h=!1,x()})).on(Oc.nc,(function(){v=!1,M()})),t.events.on(Oc.pf,(function(t){w=t,t&&x()})),t.events.on([Oc.Vs,Oc.Is],(function(t,n){n.isCentered()&&n.isVisible()&&(b=!0,h=!1,x()),n.isCentered()&&n.isVisible()||(b=!1,M())})),t.events.on(Oc.Oc,(function(){I()})),t.events.on(yc.Ma,(function(){h=!1,E=!1,x(),d=!1,h=!1,k=!1})),t.events.fire(Oc.af),{}}function Yv(t,n){var i=!0,e=!1,r=!1,o=!1,u=!1,a=!1,s=!1,c=!0,f=!1,l=!1,d=!1;function h(){i=!1,n.classList.add("invisible")}function v(){n.classList.remove("hidden"),n.removeAttribute("hidden"),setTimeout((function(){i=!0,n.classList.remove("invisible")}),0)}function p(){return r||o||u}function m(){i&&(p()||f?h():a||s&&(c&&e||h()))}function w(){var n;i||(!a||p()?c&&!l&&(f||(s||p()?(null==(n=t.config.embed)?void 0:n.settings.info_on_pause)&&c&&!p()&&v():v())):v())}function b(){if(1===t.config.view||3===t.config.view){var i=!!t.config.embed.settings.byline,e=null!==t.config.video.owner.url,r=t.config.video.owner.url,o=0===t.config.embed.on_site,u=t.config.embed.settings.spatial_label,a=t.config.request.file_codecs||t.config.video.file_codecs,s=void 0!==a,c={ClickTargets:bc,linkToOwner:e,ownerLink:r,targetBlank:o,showPortrait:!!t.config.embed.settings.portrait,portraitImg:t.config.video.owner[os.devicePixelRatio>1?"img_2x":"img"],showByline:i,portraitAlt:"Link para o perfil do proprietário do vídeo",showTitle:!!t.config.embed.settings.title,showTitleLink:null!==t.config.video.url,titleLink:t.config.video.url,title:t.config.video.title,is360:t.config.video.spatial&&u,hasHDR:s&&a.hevc.hdr.length>0,strings:{}};if(t.config.embed.settings.byline){var f=t.config.embed.settings.byline_badge,l="";(null==f?void 0:f.type)&&(l=ud.render("title_byline_badge",{targetBlank:o,cssClass:f.type,link:f.url||!1,displayBadge:!t.config.video.live_event})),c.strings.byline="de "+ud.render("title_owner_byline",{ClickTargets:bc,linkToOwner:e,ownerLink:r,targetBlank:o,owner:t.config.video.owner.name})+l}t.config.embed.settings.badge&&(c.showPortrait=!1),t.config.embed.autoplay&&(n.classList.add("hidden"),n.setAttribute("hidden","")),n.innerHTML=ud.render("title",c)}}return b(),t.events.on([Oc.gc,Oc._c],m).on(Oc.yc,w).on(Do,(function(){s=!0,c=!1,m()})).on([Oc.ms,hi.PLAY],(function(){c=!1,l=!1,m()})).on(Oc.Fe,(function(t,n){n||(c=!0,w())})).on(Oc.rs,(function(){f=!0,m()})).on(Oc.Ss,(function(){d=c,l=!0})).on(Oc.As,(function(){d&&(l=!1)})).on(Oc.qs,(function(){m()})).on(Oc.Gs,(function(t){t||w()})),$f(n).on(["pointerenter","pointerleave","mouseenter","mouseleave"],(function(t){"pointerType"in t?"mouse"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE||(e="pointerenter"===t.type||"MSPointerEnter"===t.type):e="mouseover"===t.type})),$f(n).on("transitionend",(function(t){"opacity"===t.propertyName&&n.classList.contains("invisible")&&(n.classList.add("hidden"),n.setAttribute("hidden",""))}),!1),t.events.on(Oc.rs,(function(t){m()})),t.events.on([Oc.bf],(function(){a=!0,w()})).on([Oc.gf],(function(){a=!1,m()})),t.events.on(Oc.tc,(function(t){"not-supported"!==t&&"private-unlocked"!==t&&"help"!==t&&(r=!0,e=!1,m())})).on(Oc.nc,(function(){r=!1,e=!1,setTimeout(w,0)})),t.events.on(Oc.Vc,(function(t){o=!0,e=!1,m()})).on(Oc.Bc,(function(){o=!1,e=!1,setTimeout(w,0)})),t.events.on([Oc.Vs,Oc.Is],(function(t,n){n.isCentered()&&n.isVisible()&&(u=!0,e=!1,m()),n.isCentered()&&n.isVisible()||(u=!1,e=!1,w())})),t.events.on(Oc.Oc,(function(){b(),3===t.config.view&&w()})),t.events.on(yc.Ma,(function(){s=!1,c=!0,f=!1,l=!1,w()})),t.events.fire(Oc.uf),{}}function Jv(t,n){function i(){n.classList.remove("hidden"),n.removeAttribute("hidden"),n.classList.remove("invisible")}function e(){$f(n).on("transitionend",(function(){$f(n).off("transitionend"),n.classList.contains("invisible")&&(n.classList.add("hidden"),n.setAttribute("hidden",""))})),n.classList.add("invisible")}return function(){var r=t.config.embed.settings.badge;if(r){var o=os.devicePixelRatio>1?"img_2x":"img";os.svg&&r.svg&&(o="svg"),n.innerHTML=ud.render("badge",{showPortrait:!1,targetBlank:0===t.config.embed.on_site,badge:{link:r.link,img:r[o],margin:r.margin||!1,width:r.width,height:r.height,name:r.name,shadow:r.shadow||!1}}),Hh(n,".vp-badge",(function(){t.events.fire(Oc.Bs,r.id)})),t.config.embed.autoplay?e():i()}else e()}(),{show:i,hide:e}}function Xv(t,n){var i=t.events;function e(t){t.preventDefault(),i.fire(yc.Sa,!1)}function r(){n.classList.add("invisible"),n.classList.remove("hidden"),n.removeAttribute("hidden"),setTimeout((function(){n.classList.remove("invisible")}),0),i.once(Oc.os,o)}function o(t){t>0&&!n.classList.contains("invisible")&&u()}function u(){$f(n).on("transitionend",a),n.classList.add("invisible")}function a(){$f(n).off("transitionend",a),n.classList.add("hidden"),n.setAttribute("hidden","")}return function(){var t={title:os.touch?"Toque para ativar o som":"Clique para ativar o som"};n.innerHTML=ud.render("unmute_button",t),Hh(n,e),Hh(n,".vp-unmute-button",e),i.once(Oc.Hs,r),i.on($o.EVENT_ENDED,u)}(),{}}function Zv(t,n){var i=null,e=!1;function r(){var r=n.querySelector(".vp-badge");if(i=new Jv(t,r),r.innerHTML)return 16===t.config.embed.settings.badge.id?(i.show(),void t.events.on(Oc.Rs,(function(t){t?i.show():i.hide()}))):void t.events.on([Oc.ms,hi.PLAY],(function(){e&&i.hide()})).on(Do,(function(){e=!0,i.hide()})).on(Oc.rs,i.hide).on(Oc.tc,(function(t){"not-supported"!==t&&"private-unlocked"!==t&&"help"!==t&&i.hide()})).on(Oc.nc,(function(){e||i.show()}))}r(),function(){var i=n.querySelector(".vp-unmute");new Xv(t,i)}(),t.events.on(Oc.Oc,(function(){r()})),t.events.on(yc.Ma,(function(){e=!1,r()}))}var Qv=function(){function t(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=6,e=76,r=parseInt(e*os.devicePixelRatio,10),o=parseFloat(n.timecode);if(isNaN(o))throw new TypeError("Time must be a number.");if(o<0)throw new TypeError("Time must be a positive number.");this.time=o,this.data=n,this.id=n.id,this.displayTime=n.display_time||i,n.url&&(this.data.url=Hs(n.url)),n.image_url&&(n.image=sf({width:r,height:r,baseUrl:Hs(n.image_url),crop:!0})),this.renderTemplate()}var n=t.prototype;return n.renderTemplate=function(){var t=this,n=document.createElement("div");n.innerHTML=ud.render("card",this.data),this.element=n.children[0],this.data.image&&cf(this.data.image).catch((function(n){t.element.querySelector(".js-cardImageWrap").style.display="none"}))},n.isActive=function(t){return t>=this.time&&t0&&void 0!==arguments[0]?arguments[0]:function(t,n){return tn?this.Sd(t,n,i,r-1):t[r]0&&t.apply(void 0,arguments)}};function c(){v(),u.forEach((function(t,n){t.element.parentNode.removeChild(t.element)})),u=new tp,Array.isArray(t.config.embed.cards)&&t.config.embed.cards.length&&(t.config.video.title&&t.config.embed.settings.title&&f(-1,{className:"card--contentInfo",timecode:0,headline:t.config.video.title,teaser:t.config.embed.settings.byline?t.config.video.owner.name:"",image:t.config.video.owner[os.devicePixelRatio>1?"img_2x":"img"],id:"title-card"}),t.config.embed.cards.forEach((function(t){f(t.timecode,t)})))}function f(i,e){var r=u.get(i),a=new Qv(t,e);if(u.set(i,a),r)return o.replaceChild(a.element,r.element),a;var s=u.keys().indexOf(i);return o.insertBefore(a.element,o.children[s]),n.dispatch(function(t){return{type:"CARDS_SET_SIZE",payload:t}}(u.size)),a}function l(n){t.element.classList.toggle("player-cardsCarousel",n),t.element.classList.toggle("player-cardsCorner",!n),e.destroy(),n&&e.setUp()}function d(n,i){n&&(i?n.element.classList.add("card-animating"):n.element.classList.remove("card-animating"),n.element.classList.add("card-active"),$f(n.element.childNodes[1]).on("mouseover",(function(){a=!0})),$f(n.element.childNodes[1]).on("mouseout",(function(){a=!1})),e.show(n.element),t.events.fire(Oc.tf,n.id,n.data))}function h(t){a||t.classList.remove("card-active")}function v(){U(i.querySelectorAll(".card-active")).forEach(h)}return e=new Kh(o),n.watch("ui.cards.size",(function(n){t.element.classList.toggle("player-withCards",n>0)})),n.watch("ui.cards.isCarouselVisible",l),n.watch("ui.cards.isCardsThumbVisible",(function(t){i.classList.toggle("cards-wrapper--withThumbnails",t)})),l(n.get("ui.cards.isCarouselVisible")),t.events.on(Oc.Oc,c),t.events.on(yc._addCard,(function(t){var n=f(t.timecode,t);v(),d(n)})),t.events.on(yc._removeCard,(function(t){v();var n=u.get(t.timecode).element;n.parentNode.removeChild(n),u.delete(t.timecode)})),e.on("slide",s((function(n){var i=u.values()[n];"title-card"!==i.id&&t.events.fire(Oc.tf,i.id,i.data),t.events.fire(yc.Ka,i.time)}))),e.on("tap",s((function(n){var i=u.values()[n];i.data.url&&"title-card"!==i.id&&(t.events.fire(Oc.nf,i.id,i.data),t.backbone.paused||t.events.fire(Oc.ps),window.open(i.data.url))}))),t.events.on(hi.TIME_UPDATE,s((function(t){var i=function(t){var i=u.values().filter((function(n){return n.isActive(t)})).slice(-1)[0];if(i)return i;if(n.get("ui.cards.isCarouselVisible")){var e=u.values().slice(-1)[0];if(e&&t>e.end)return e}return null}(t.currentTime);i!==r&&(!i&&a||(a=!1,v(),(r=i)&&"title-card"===r.id?n.get("ui.cards.isCarouselVisible")&&d(r,!0):d(r,!0)))}))),t.events.on(Oc.rs,s(v)),Hh(document,".player-cardsCorner .card",s((function(n){n.preventDefault();var i=fc(n.target,o.children),e=u.values()[i];e.data.url&&"title-card"!==e.id&&(t.events.fire(Oc.nf,e.id,e.data),t.backbone.paused||t.events.fire(Oc.ps),window.open(e.data.url))}))),c(),{}}var ip={16:"shift",27:"esc",32:"space",37:"left",38:"up",39:"right",40:"down"};function ep(t,n,i){var e,r=!!t.config.embed.on_site,o=i.querySelector(".volume"),u=!1,a=null,s=t.config.video.fps/5,c=Math.max(s,.618*t.config.video.duration),f=s,l=0,d=!1,h=md(g,80);function v(){return!r&&(1===t.config.view||3===t.config.view)}function p(){u&&"help"===e&&t.events.fire(Oc.ec)}function m(t){return"number"!=typeof t.which&&(t.which=t.keyCode),t}function w(t){if("keypress"===t.type){var n=String.fromCharCode(t.which);return t.shiftKey||(n=n.toLowerCase()),n}return t.which in ip?ip[t.which]:String.fromCharCode(t.which).toLowerCase()}function b(n){if(t.config.embed.settings.background)return!0;var i=n.target||n.srcElement;return"INPUT"===i.tagName||"SELECT"===i.tagName||"TEXTAREA"===i.tagName||i.isContentEditable}function g(i,e){if(!n.get(Mf)){d||(e&&!t.backbone.paused&&t.events.fire(Oc.ps),t.events.fire(Oc.Ss,!0,"keyboard"),d=!0),!function(t){var n=t,i=Math.ceil(s),e=Math.ceil(c-s);f=function(t,n,i,e){return t/=100,i*(--t*t*t+1)+n}(n,i,e)}(l),1==++l&&(f=5*t.config.video.fps);var r=e?1:f,o="right"===i?r:-r;!function(n){var i=n/t.config.video.fps;t.events.fire(yc.ka,null,i)}(Math["right"===i?"ceil":"floor"](t.currentTime*t.config.video.fps)+o)}}function y(t){var n=a.getTabindexItems(),i=n.indexOf(document.activeElement),e="up"===t?i-1:i+1,r=null;return!(r=e>=n.length?n[0]:e<0?n[n.length-1]:n[e])||(r.focus(),!1)}function _(){if(a)return!0;if(n.get(Mf)&&!n.get(Of))return!0;if(!document.activeElement||document.activeElement===document.body){var i=t.backbone.paused?Oc.ms:Oc.ps;return t.events.fire(i),p(),!1}}function E(){return a?(a.element.contains(document.activeElement)&&a.button.focus(),a.hide(),!1):u?(t.events.fire(Oc.ec),!1):void 0}function k(){return a?!a.element.contains(document.activeElement)||y("up"):os.spatialPlayback&&t.config.video.spatial?(t.backbone.getEffectByName("ThreeSixtyEffect").keyPress("up"),!1):!(!t.config.embed.on_site||!document.activeElement||i.contains(document.activeElement))||(p(),t.events.fire(yc.Ta,.05,!1,!0),!1)}function T(){return a?!a.element.contains(document.activeElement)||y("down"):os.spatialPlayback&&t.config.video.spatial?(t.backbone.getEffectByName("ThreeSixtyEffect").keyPress("down"),!1):!(!t.config.embed.on_site||!document.activeElement||i.contains(document.activeElement))||(p(),t.events.fire(yc.Ta,-.05,!1,!0),!1)}function S(n,i){if(a)return!a.element.contains(document.activeElement)||y("left"===i?"up":"down");if(p(),os.spatialPlayback&&t.config.video.spatial)return t.backbone.getEffectByName("ThreeSixtyEffect").keyPress(i),!1;if(document.activeElement&&document.activeElement===o){var e="left"===i?-.05:.05;return t.events.fire(yc.Ta,e,!1,!0),!1}n.shiftKey||0===l?g(i,n.shiftKey):h(i,n.shiftKey)}return t.events.on(Oc.tc,(function(t){u=!0,e=t,"not-supported"===t&&(r=!0)})),t.events.on(Oc.nc,(function(){u=!1,e=null})),t.events.on(Oc.Is,(function(t,n){t||a!==n?t&&(a=n):a=null})),t.events.on(Oc.Oc,(function(t){t&&(r=!1)})),function(){var i={l:Oc.$s,w:Oc.Ks,s:Oc.Ys,c:[Oc.bs,!0],h:[Oc.ws,!0],f:Oc.vs,d:Oc.fc,space:_,up:k,down:T,left:S,right:S,esc:E,"?":[yc._showOverlay,"help"]};function r(n){if(m(n),function(t){return!(t.ctrlKey||t.metaKey||t.altKey)&&(t.which in ip?"keydown"===t.type:"keypress"===t.type)}(n)&&!b(n)&&v()){var r=w(n);if(r in i){if("function"==typeof i[r])return void(!1===i[r](n,r)&&(n.preventDefault(),n.stopPropagation()));!1===function(n){if(n=Array.isArray(n)?n:[n],u&&"help"===e){if(t.events.fire(Oc.ec),n[0]===yc._showOverlay&&"help"===n[1])return!1;if(n[0]!==yc.Oa)return setTimeout((function(){t.events.fire.apply(null,n)}),250),!1}return t.events.fire.apply(null,n),!1}(i[r])&&(n.preventDefault(),n.stopPropagation())}}}t.config.embed.on_site||(i.v=yc.Oa),document.addEventListener("keydown",r,!1),document.addEventListener("keypress",r,!1),document.addEventListener("keyup",(function(i){if(m(i),!b(i)&&v()){var e=w(i);!os.spatialPlayback||!t.config.video.spatial||"left"!==e&&"right"!==e&&"up"!==e&&"down"!==e?n.get(Mf)||"left"!==e&&"right"!==e||function(n){f=s,l=0;var i=n.shiftKey;t.events.fire(Oc.As,i),d=!1}(i):t.backbone.getEffectByName("ThreeSixtyEffect").keyUp(e)}}),!1)}(),t.events.on(Oc.qc,(function(){r=!1})).on(Oc.zc,(function(){r=!0})),t.config.embed.on_site&&document.querySelector(".player")===i&&(r=!1),function(){var t,n=!1;document.body.addEventListener("keyup",(function(t){9!==t.which||document.body.classList.contains("showfocus")||document.body.classList.add("showfocus")})),document.body.addEventListener("keydown",(function(i){32!==i.which&&13!==i.which||(n=!0,clearTimeout(t),t=setTimeout((function(){n=!1}),200))})),document.body.addEventListener("click",(function(t){n||document.body.classList.remove("showfocus")}))}(),{pause:function(){r=!0},unpause:function(){r=!1}}}var rp=function(){function t(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.displayTimeout,e=void 0===i?0:i,r=n.label,o=void 0===r?"Alert":r;nt(this),this.Ad=t,this.xd=!1,this.Md=null,this.Cd=null,this.Rd=o;var u=Math.round(e/1e3);0!==u&&(this.Rd="".concat(o," Will be dismissed in ").concat(u," seconds")),this.Od=null,this.Id=e,this.jd(),this._n()}var n=t.prototype;return n.show=function(t){var n=this;!0!==this.xd&&(clearTimeout(this.Od),this.Cd.classList.remove("hidden"),this.Cd.removeAttribute("hidden"),window.requestAnimationFrame((function(){n.Cd.classList.add("in")})),(this.Cd.querySelector("[data-alert-autofocus]")||this.Cd).focus(),this.xd=!0,this.fire("show",t),0!==this.Id&&(this.Od=setTimeout((function(){n.hide("timeout")}),this.Id)))},n.hide=function(t){var n=this;!1!==this.xd&&(clearTimeout(this.Od),this.Cd.classList.add("leaving"),window.requestAnimationFrame((function(){var t=n;n.Dd(),$f(n.Cd).on("transitionend",(function n(i){"opacity"===i.propertyName&&(t.Cd.classList.remove("leaving"),t.Cd.classList.add("hidden"),t.Cd.setAttribute("hidden",""),$f(t.Cd).off("transitionend",n))}))})),this.xd=!1,this.fire("hide",t))},n.Dd=function(){this.Cd.classList.remove("in")},n.jd=function(){this.Cd||(this.Cd=document.createElement("div"),this.Cd.classList.add("vp-alert"),this.Cd.setAttribute("role","alertdialog"),this.Cd.setAttribute("aria-label",this.Rd),this.Cd.setAttribute("aria-atomic","true"),this.Cd.classList.add("hidden"),this.Cd.setAttribute("hidden",""),this.Ad.appendChild(this.Cd),this.Dd()),this.Md instanceof HTMLElement?(this.Cd.innerHTML="",this.Cd.appendChild(this.Md)):(this.Cd.textContent=this.Md,this.Cd.innerHTML=this.Md);var t=document.createElement("button");t.setAttribute("data-close",""),t.setAttribute("aria-label","Close alert"),t.classList.add("close"),t.innerHTML=ud.render("icon_close"),this.Cd.appendChild(t)},n._n=function(){var t=this;$f(this.Cd).on("click","[data-close]",(function(n){t.hide(n)}))},H(t,[{key:"visible",get:function(){return this.xd}},{key:"message",get:function(){return this.Md},set:function(t){t instanceof HTMLElement&&this.Md&&t.textContent===this.Md.textContent||t!==this.Md&&(this.Md=t,this.jd())}}]),t}(),op=function(){function t(t,n,i){this.player=t,this.backbone=n,this.isBufferingTooLong=!1,this.isBufferingTooFrequent=!1,this.autoAlertWasDismissed=!1,this.bufferCount=-1,this.badPlaybackTimer=null,this.Ld(i),this.Pd()}var n=t.prototype;return n.handleBufferStarted=function(){this.bufferCount+=1,this.Nd()},n.handleBufferEnded=function(){clearTimeout(this.badPlaybackTimer),this.badPlaybackTimer=null,this.isBufferingTooLong=!1},n.Pd=function(){var t=this;this.player.events.on(wc._a,(function(n){t.Fd(n)})),this.player.events.on(wc.Ea,(function(n){t.Ud(n)})),this.player.events.on(wc.ya,this.handleBufferStarted.bind(this)),this.player.events.on(mi.BUFFER_ENDED,this.handleBufferEnded.bind(this)),this.player.events.on(wc.ga,(function(){t.autoAlertWasDismissed||(t.showAlert("stream_studder"),tf.captureBreadcrumb("Alert shown",{message:"stream_studder"},"video"))})),this.player.events.on(Oc.us,(function(n){"auto"===n&&t.alertUI.hide("qualitymenuauto")}))},n.Fd=function(t){t||this.showAlert("warning_alert",{strings:{text:'Veja a lista de navegadoresque suportam a visualização em 360.'}})},n.Ud=function(t){t||this.showAlert("warning_alert",{strings:{text:'Procurando um vídeo 360? Veja os navegadores e as configurações suportadas.'}})},n.showAlert=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.alertUI&&!this.player.config.embed.settings.background&&(this.alertUI.message=ud.render(t,n),this.alertUI.show())},n.Ld=function(t){var n=this;this.alertUI=new rp(t),this.alertUI.on("show",(function(t){n.player.events.fire(Oc.pf,!0,t)})),this.alertUI.on("hide",(function(t){var i=t.target,e=i&&"function"==typeof i.getAttribute;if(e)switch(i.getAttribute("data-context")){case"suggestion":n.player.events.fire(yc.Ra,"auto"),t="suggestion";break;default:t="close"}(e||"qualitymenuauto"===t)&&(n.autoAlertWasDismissed=!0),n.player.events.fire(Oc.pf,!1,t)}))},n.Nd=function(){var t=this;null===this.badPlaybackTimer&&0!==this.bufferCount&&(this.badPlaybackTimer=setTimeout((function(){t.isBufferingTooLong=!0,t.Vd()}),1e4))},n.Vd=function(){"MediaSourceScanner"===this.backbone.currentScannerName&&(this.isBufferingTooLong||this.isBufferingTooFrequent)&&(this.backbone.video.currentFile.restrictedStreamIndexes.length<=0||(this.isBufferingTooLong,this.isBufferingTooFrequent,this.player.events.fire(wc.ga),this.bufferCount=0,this.badPlaybackTimer=null,this.isBufferingTooFrequent=!1,this.isBufferingTooLong=!1))},t}(),up=function(){function t(t,n){this.player=t,this.store=n,this.Bd=0,this.Hd()}var n=t.prototype;return n.qd=function(){this.store.get(Of)&&null===this.player.element.querySelector(".vp-live-viewer-status-wrapper")&&(this.ll=document.createElement("div"),this.ll.classList.add("vp-live-viewer-status-wrapper","invisible"),this.ll.innerHTML=ud.render("live_status"),this.ll.querySelector(".vp-live-status-circle").classList.remove("offline"),this.player.element.querySelector(".vp-controls-wrapper").appendChild(this.ll))},n.zd=function(){var t=this.player.element.querySelector(".vp-live-viewer-status-wrapper");null!==t&&this.player.element.querySelector(".vp-controls-wrapper").removeChild(t)},n.Hd=function(){var t=this;this.player.events.on(Oc.Oc,(function(){t.player.config.video.live_event?t.qd():t.zd()})),this.player.events.on($o.STREAM_ONLINE,(function(){t.qd(),t.Wd()})),this.player.events.on(Oc.Rs,(function(n){void 0!==t.ll&&t.ll.classList.toggle("invisible",n)}))},n.Wd=function(){var t=this;if(this.store.get(Of)&&this.player.config.video.live_event.show_viewer_count){var n=setTimeout((function(){t.Wd()}),3e4),i="".concat(this.player.config.video.id);"unlisted"===this.player.config.video.privacy&&(i+=":".concat(this.player.config.video.unlisted_hash));var e="https://".concat(this.player.config.vimeo_api_url,"/videos/").concat(i,"/stats/live"),r={jwt_token:this.player.config.user.vimeo_bucketed_live_client_token};e+=qs(r),this.player.updatePhpTokens().then((function(){ze(e).json().then((function(n){n.viewers?(t.Bd=0,t.Gd(n.viewers.current)):t.Bd++})).catch((function(i){t.Bd++,t.$d()&&clearTimeout(n)}))})).catch((function(i){t.Bd++,tf.captureException(i),t.$d()&&clearTimeout(n)}))}},n.Gd=function(t){if(this.player.config.video.live_event.show_viewer_count){null===this.ll.querySelector(".vp-live-viewer-count")&&(this.player.element.querySelector(".vp-live-viewer-count").style.display="block",this.ll.innerHTML+=ud.render("live_viewer_count")),this.Kd=U(this.player.element.querySelectorAll(".vp-live-viewer-count-value"));for(var n=0;n3){this.Kd=U(this.player.element.querySelectorAll(".vp-live-viewer-count"));for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:u.config.video.url;if(!(!n||t&&t.metaKey)){if(-1===n.indexOf("#")&&u.backbone.currentTime>0&&u.backbone.currentTime0&&window.innerHeight>0?t():i=setTimeout(n,250)};u.events.once(Oc.te,e),u.events.once(Oc.Za,e)})),function(){var t=function(t,n){return u.verifyConfig().then((function(){var i=u.config.request,e=i.signature,r=i.session,o=i.timestamp,a=i.expires;return ze("https://".concat(u.config.player_url,"/video/").concat(u.config.video.id,"/").concat(t,"?signature=").concat(e,"&session=").concat(r,"&time=").concat(o,"&expires=").concat(a),{method:n,withCredentials:!0})})).catch((function(i){tf.captureException(i,{extra:{action:t,method:n}})}))},n=function(t,n){return u.updatePhpTokens().then((function(){var i="following"===t?u.config.video.owner.id:u.config.video.id,e=u.config.user.vimeo_api_interaction_tokens,r="";if(e)switch(r="?auth=",t){case"likes":r+=e.likes;break;case"watchlater":r+=e.watch_later;break;case"following":r+=e.following}var o=u.config.video.unlisted_hash&&"following"!==t?":".concat(u.config.video.unlisted_hash):"";return ze("https://".concat(u.config.vimeo_api_url,"/users/").concat(u.config.user.id,"/").concat(t,"/").concat(i).concat(o).concat(r),{method:n,jwt:u.config.user.vimeo_api_client_token}).catch((function(i){tf.captureException(i,{extra:{action:t,method:n}})}))})).catch((function(t){tf.captureException(t)}))};u.events.on(Oc.Xs,(function(t){if(u.config.user.purchased)return!u.config.video.vod.is_feature&&u.config.video.vod.feature_id?void u.loadVideo(u.config.video.vod.feature_id).then((function(){return u.events.fire(Oc.ms),u.config.video.vod.feature_id})).catch((function(t){tf.captureException(t),u.events.fire(yc._showOverlay,"error",{title:"Desculpe",message:"Houve um problema. Por favor, tente novamente."})})):void u.events.fire(Oc.ms);u.config.video.vod&&u.config.video.vod.is_coming_soon?T(null,u.config.video.vod.url):u.performDelegateAction(Sc,(function(){u.events.fire(yc.xa,"purchase",{productId:t})}),[t])})),u.events.on(Oc.$s,(function(){u.config.user.logged_in?u.config.user.id!==u.config.video.owner.id&&(u.config.user.liked?u.performDelegateAction(Ec,(function(){"disable"!==u.config.video.privacy?n("likes","DELETE"):t("like","DELETE"),u.config.user.liked=!1,u.events.fire(Oc.kc)})):u.performDelegateAction(_c,(function(){"disable"!==u.config.video.privacy?n("likes","PUT"):t("like","PUT"),u.config.user.liked=!0,u.events.fire(Oc.Ec)}))):u.performDelegateAction(xc,(function(){u.events.fire(yc.xa,"login-like")}))})),u.events.on(Oc.Ks,(function(){(u.config.video.url||"unlisted"===u.config.video.privacy)&&(u.config.user.logged_in?u.config.user.watch_later?u.performDelegateAction(Tc,(function(){n("watchlater","DELETE"),u.config.user.watch_later=!1,u.events.fire(Oc.Sc)})):u.performDelegateAction(kc,(function(){n("watchlater","PUT"),u.config.user.watch_later=!0,u.events.fire(Oc.Tc)})):u.performDelegateAction(xc,(function(){u.events.fire(yc.xa,"login-watch-later")})))})),u.events.on(Oc.Zs,(function(){u.performDelegateAction(Mc,(function(){u.config.video.vod&&u.config.video.vod.url?T(null,"".concat(u.config.video.vod.url,"#collections")):u.config.video.url&&T(null,"".concat(u.config.video.url,"#collections"))}))})),u.events.on(Oc.Ys,(function(){var t=u.config.embed.settings.share&&u.config.embed.settings.share.embed_only,n=function(){u.events.fire(yc._showOverlay,"share",t)};Bh.element?n():u.performDelegateAction(Ac,n)})),u.events.on(Oc.Js,(function(){u.config.embed.settings.share.embed_only&&u.performDelegateAction(Ac,(function(){u.events.fire(yc._showOverlay,"share",!0)}))})),u.events.on(Oc.Qs,(function(){if(u.config.user.logged_in&&u.config.user.id!==u.config.video.owner.id){if(u.config.user.following)return n("following","DELETE"),u.config.user.following=!1,void u.events.fire(Oc.Xc);n("following","PUT"),u.config.user.following=!0,u.events.fire(Oc.Jc)}}))}(),u.events.on(Oc.ns,(function(){t.classList.add("player-ad")})),u.events.on([Oc.es,yc.Ma],(function(){t.classList.remove("player-ad")})),function(){var n=function(){return function(t,n,i){return t&&t.then||(t=r.resolve(t)),n?t.then(n):t}(d,(function(){var n=function(){var n=Zs(t),i=n.width,e=n.height;return g?e<=200?"10px":i<450?"12px":i<=1024?"11px":"10px":"10px"}();p.style.fontSize=n,m.style.fontSize=n,w.style.fontSize=n}))};u.events.on(Oc.zs,n),u.events.on(Oc.Gs,n),window.addEventListener("orientationchange",n),g&&(t.classList.add("mobile"),n())}(),a.watch("ui.player.mode",_),a.watch("ui.player.breakpoint",E),function(){function n(){var n=t;if(e&&e.getFullscreenElement&&"function"==typeof e.getFullscreenElement){var i=e.getFullscreenElement();i&&i instanceof HTMLElement&&i.contains(t)&&i.classList.contains("js-player-fullscreen")&&(n=i)}return n}u.config.embed.fullscreen=!0,os.iPad&&t.classList.add("no-fullscreen-api-support");var i=u.config.embed.playsinline&&os.iOS>=10,r=os.iPad||i;Bh.enabled||r||(t.classList.add("no-fullscreen-support"),os.iOS||(u.config.embed.fullscreen=!1));var o=!1,a=!1,s=!1;u.events.on([Ho,qo],(function(){s=!0})),u.events.on(yc.Na,(function(){Bh.enabled||Bh.videoEnabled(t)?(u.events.fire(Oc.qs),a=!1,Bh.request(n())):u.events.fire(yc.Va,!0)})),u.events.on(Oc.vs,(function(){"picture-in-picture"===u.backbone.presentationMode&&u.events.fire(yc.za),Bh.element?(u.events.fire(Oc.Ws),Bh.exit()):(u.events.fire(Oc.qs),a=!0,Bh.request(n()))}));var c=Bh.onenter,f=Bh.onexit;if(Bh.onenter=function(t){o||(n().contains(t)?function(t,i){s?s=!1:o||(o=!0,u.events.fire(Oc.zs,n()===t,a))}(t):"function"==typeof c&&c(t))},Bh.onexit=function(){o?s?s=!1:o&&(o=!1,u.events.fire(Oc.Gs,a),a||u.events.fire(yc.Va,!1),a=!1):"function"==typeof f&&f()},$f(t).on("click","a",(function(t){Bh.element===n()&&Bh.exit()})),$f(t).on("gestureend",(function(t){t.scale>1&&u.events.fire(Oc.vs)})),"undefined"!=typeof MSGesture){var l=1,d=new MSGesture;d.target=t,$f(t).on("pointerdown",(function(t){d.addPointer(t.pointerId)})).on(["MSGestureChange"],(function(t){l*=t.scale})).on(["MSGestureEnd"],(function(){(!o&&l>=2||o&&l<1)&&u.events.fire(Oc.vs),l=1}))}}(),Hh(t,"a[data-clip-link]",T),u.events.on(yc.Oa,T),Hh(t,"[data-track-click]",(function(t){var n=t.target.dataset.trackClick;u.events.fire(Oc.cs,n)})),S(),u.events.on(Oc.Oc,(function(){k(),S()})),u.events.on(yc.Ja,(function(){h.disable()}))}function x(){c||(c=new bv(u,a,t.querySelector(".vp-overlay-wrapper")))}function M(){f||(f=new Bv(u,{uuid:u.uuid,id:t.id,isMobileDevice:!1}))}function C(){l||(l=new Hv(u))}var R={initializationHandler:function(){return function(){x(),M(),C(),new rv(u,a,p),new uv(u,a,t);var n=new ep(u,a,t);new hv(u,t.querySelector(".vp-notification-wrapper")),new mv(u,a,t.querySelector(".vp-outro-wrapper")),new Kv(u,m),new Yv(u,w),new Zv(u,t),Object.defineProperties(s,{pauseKeyboard:{enumerable:!0,value:n.pause},unpauseKeyboard:{enumerable:!0,value:n.unpause}})}(),A(),r.resolve()},postInitializationHandler:function(){return u.backbone&&(new fv(t.querySelector(".vp-stats-debug"),u),new np(u,a,b),new op(u,u.backbone,t)),r.resolve()},authorizationHandler:function(t){t(),x(),M();var n="Error",i="Unhandled video privacy";switch(u.config.view){case 4:return new r((function(t,n){u.events.fire(yc._showOverlay,"password"),u.events.once(Oc.Ic,(function(n){t(n)}))}));case 2:C();var e="private-locked",o=null;return u.config.user.logged_in&&(e="error",o={title:"Vídeo Privado",message:"Desculpe, mas você não tem permissão para assistir.",modal:!0,logo:!!u.config.embed.settings.logo,icon:"lock"}),u.events.fire(yc._showOverlay,e,o),r.reject();case 7:n=u.config.title,i=u.config.message}return u.events.fire(yc._showOverlay,"error",{title:n,message:i,modal:!0}),r.reject()}};return u.init(n,R).then((function(){return 3!==u.config.view||u.config.embed.autoplay||u.events.fire(yc._showOverlay,"private-unlocked"),!0})).catch((function(n){tf.captureException(n),x(),M(),t.classList.remove("loading"),u.events.fire(Oc.Za,Uc.id,Uc)})),s},t.requestModule=Qe}(this.window=this.window||{});