/*! JW Player version 8.9.5 Copyright (c) 2019, JW Player, All Rights Reserved This source code and its use and distribution is subject to the terms and conditions of the applicable license agreement. https://www.jwplayer.com/tos/ This product includes portions of other software. For the full text of licenses, see https://ssl.p.jwpcdn.com/player/v/8.9.5/notice.txt */ (window.webpackJsonpjwplayer=window.webpackJsonpjwplayer||[]).push([[3,1,2],Array(21).concat([function(e,t,n){"use strict";n.r(t);var i={};n.r(i),n.d(i,"facebook",function(){return Xt}),n.d(i,"twitter",function(){return Kt}),n.d(i,"linkedin",function(){return Jt}),n.d(i,"pinterest",function(){return $t}),n.d(i,"reddit",function(){return Gt}),n.d(i,"tumblr",function(){return en}),n.d(i,"email",function(){return tn}),n.d(i,"link",function(){return nn}),n.d(i,"embed",function(){return on});var o=n(5),a=n(3),r=n(9),s=n(51),l=n(7),c=n(18),u=n(35),d=n(69),p=function(e,t,n,i){var o=document.createElement("div");o.className="jw-icon jw-icon-inline jw-button-color jw-reset "+e,o.setAttribute("role","button"),o.setAttribute("tabindex","0"),n&&o.setAttribute("aria-label",n),o.style.display="none";var a=new u.a(o).on("click tap enter",t||function(){});return i&&Array.prototype.forEach.call(i,function(e){"string"==typeof e?o.appendChild(Object(d.a)(e)):o.appendChild(e)}),{ui:a,element:function(){return o},toggle:function(e){e?this.show():this.hide()},show:function(){o.style.display=""},hide:function(){o.style.display="none"}}},w=n(0),f=n(67),h=n(11);function j(e,t){for(var n=0;n10&&delete g[t[0]];var n=Object(d.a)(e);g[e]=n}return g[e].cloneNode(!0)}(t):((r=document.createElement("div")).className="jw-icon jw-button-image jw-button-color jw-reset",t&&Object(h.d)(r,{backgroundImage:"url(".concat(t,")")})),s.appendChild(r),new u.a(s).on("click tap enter",i,this),s.addEventListener("mousedown",function(e){e.preventDefault()}),this.id=o,this.buttonElement=s}var t,n,i;return t=e,(n=[{key:"element",value:function(){return this.buttonElement}},{key:"toggle",value:function(e){e?this.show():this.hide()}},{key:"show",value:function(){this.buttonElement.style.display=""}},{key:"hide",value:function(){this.buttonElement.style.display="none"}}])&&j(t.prototype,n),i&&j(t,i),e}(),m=n(12);function v(e,t){for(var n=0;n=0&&(t.left-=n,t.right-=n),t},k=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Object(w.k)(this,r.a),this.className=t+" jw-background-color jw-reset",this.orientation=n}var t,n,i;return t=e,(n=[{key:"setup",value:function(){this.el=Object(l.e)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return''}(this.className,"jw-slider-"+this.orientation)),this.elementRail=this.el.getElementsByClassName("jw-slider-container")[0],this.elementBuffer=this.el.getElementsByClassName("jw-buffer")[0],this.elementProgress=this.el.getElementsByClassName("jw-progress")[0],this.elementThumb=this.el.getElementsByClassName("jw-knob")[0],this.ui=new u.a(this.element(),{preventScrolling:!0}).on("dragStart",this.dragStart,this).on("drag",this.dragMove,this).on("dragEnd",this.dragEnd,this).on("click tap",this.tap,this)}},{key:"dragStart",value:function(){this.trigger("dragStart"),this.railBounds=y(this.elementRail)}},{key:"dragEnd",value:function(e){this.dragMove(e),this.trigger("dragEnd")}},{key:"dragMove",value:function(e){var t,n,i=this.railBounds=this.railBounds?this.railBounds:y(this.elementRail);return n="horizontal"===this.orientation?(t=e.pageX)i.right?100:100*Object(s.a)((t-i.left)/i.width,0,1):(t=e.pageY)>=i.bottom?0:t<=i.top?100:100*Object(s.a)((i.height-(t-i.top))/i.height,0,1),this.render(n),this.update(n),!1}},{key:"tap",value:function(e){this.railBounds=y(this.elementRail),this.dragMove(e)}},{key:"limit",value:function(e){return e}},{key:"update",value:function(e){this.trigger("update",{percentage:e})}},{key:"render",value:function(e){e=Math.max(0,Math.min(e,100)),"horizontal"===this.orientation?(this.elementThumb.style.left=e+"%",this.elementProgress.style.width=e+"%"):(this.elementThumb.style.bottom=e+"%",this.elementProgress.style.height=e+"%")}},{key:"updateBuffer",value:function(e){this.elementBuffer.style.width=e+"%"}},{key:"element",value:function(){return this.el}}])&&v(t.prototype,n),i&&v(t,i),e}(),x=function(e,t){e&&t&&(e.setAttribute("aria-label",t),e.setAttribute("role","button"),e.setAttribute("tabindex","0"))};function O(e,t){for(var n=0;n0&&Array.prototype.forEach.call(o,function(e){"string"==typeof e?a.el.appendChild(Object(d.a)(e)):a.el.appendChild(e)})}var t,n,i;return t=e,(n=[{key:"addContent",value:function(e){this.content&&this.removeContent(),this.content=e,this.tooltip.appendChild(e)}},{key:"removeContent",value:function(){this.content&&(this.tooltip.removeChild(this.content),this.content=null)}},{key:"hasContent",value:function(){return!!this.content}},{key:"element",value:function(){return this.el}},{key:"openTooltip",value:function(e){this.isOpen||(this.trigger("open-"+this.componentType,e,{isOpen:!0}),this.isOpen=!0,Object(l.u)(this.el,this.openClass,this.isOpen))}},{key:"closeTooltip",value:function(e){this.isOpen&&(this.trigger("close-"+this.componentType,e,{isOpen:!1}),this.isOpen=!1,Object(l.u)(this.el,this.openClass,this.isOpen))}},{key:"toggleOpenState",value:function(e){this.isOpen?this.closeTooltip(e):this.openTooltip(e)}}])&&O(t.prototype,n),i&&O(t,i),e}(),S=n(28),M=n(68);function T(e,t){for(var n=0;n=this.thumbnails.length&&(t=this.thumbnails.length-1);var n=this.thumbnails[t].img;return n.indexOf("://")<0&&(n=this.vttPath?this.vttPath+"/"+n:n),n},loadThumbnail:function(e){var t=this.chooseThumbnail(e),n={margin:"0 auto",backgroundPosition:"0 0"};if(t.indexOf("#xywh")>0)try{var i=/(.+)#xywh=(\d+),(\d+),(\d+),(\d+)/.exec(t);t=i[1],n.backgroundPosition=-1*i[2]+"px "+-1*i[3]+"px",n.width=i[4],this.timeTip.setWidth(+n.width),n.height=i[5]}catch(e){return}else this.individualImage||(this.individualImage=new Image,this.individualImage.onload=Object(w.c)(function(){this.individualImage.onload=null,this.timeTip.image({width:this.individualImage.width,height:this.individualImage.height}),this.timeTip.setWidth(this.individualImage.width)},this),this.individualImage.src=t);return n.backgroundImage='url("'+t+'")',n},showThumbnail:function(e){this._model.get("containerWidth")<=420||this.thumbnails.length<1||this.timeTip.image(this.loadThumbnail(e))},resetThumbnails:function(){this.timeTip.image({backgroundImage:"",width:0,height:0}),this.thumbnails=[]}};function P(e,t,n){return(P="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=V(e)););return e}(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I(e,t){for(var n=0;n-1&&(i="Live")}var d=this.timeTip;d.update(i),this.textLength!==i.length&&(this.textLength=i.length,d.resetWidth()),this.showThumbnail(u),Object(l.a)(d.el,"jw-open");var p=d.getWidth(),w=a.width/100,f=o-a.width,j=0;p>f&&(j=(p-f)/(200*w));var g=100*Math.min(1-j,Math.max(j,c)).toFixed(3);Object(h.d)(d.el,{left:g+"%"})}}},{key:"hideTimeTooltip",value:function(){Object(l.n)(this.timeTip.el,"jw-open")}},{key:"updateCues",value:function(e,t){var n=this;this.resetCues(),t&&t.length&&(t.forEach(function(e){n.addCue(e)}),this.drawCues())}},{key:"updateAriaText",value:function(){var e=this._model;if(!e.get("seeking")){var t=e.get("position"),n=e.get("duration"),i=Object(m.timeFormat)(t);"DVR"!==this.streamType&&(i+=" of ".concat(Object(m.timeFormat)(n)));var o=this.el;document.activeElement!==o&&(this.timeUpdateKeeper.textContent=i),Object(l.s)(o,"aria-valuenow",t),Object(l.s)(o,"aria-valuetext",i)}}},{key:"reset",value:function(){this.resetThumbnails(),this.timeTip.resetWidth(),this.textLength=0}}]),t}();Object(w.k)(D.prototype,_,z);var U=D;function W(e,t){for(var n=0;n=75&&!e),Object(l.s)(r,"aria-valuenow",o),Object(l.s)(s,"aria-valuenow",o);var c="Volume ".concat(o,"%");Object(l.s)(r,"aria-valuetext",c),Object(l.s)(s,"aria-valuetext",c),document.activeElement!==r&&document.activeElement!==s&&(this._volumeAnnouncer.textContent=c)}}},{key:"onCastAvailable",value:function(e,t){this.elements.cast.toggle(t)}},{key:"onCastActive",value:function(e,t){this.elements.fullscreen.toggle(!t),this.elements.cast.button&&Object(l.u)(this.elements.cast.button,"jw-off",!t)}},{key:"onElapsed",value:function(e,t){var n,i,o=e.get("duration");if("DVR"===e.get("streamType")){var a=Math.ceil(t),r=this._model.get("dvrSeekLimit");n=i=a>=-r?"":"-"+Object(m.timeFormat)(-(t+r)),e.set("dvrLive",a>=-r)}else n=Object(m.timeFormat)(t),i=Object(m.timeFormat)(o-t);this.elements.elapsed.textContent=n,this.elements.countdown.textContent=i}},{key:"onDuration",value:function(e,t){this.elements.duration.textContent=Object(m.timeFormat)(Math.abs(t))}},{key:"onAudioMode",value:function(e,t){var n=this.elements.time.element();t?this.elements.buttonContainer.insertBefore(n,this.elements.elapsed):Object(l.l)(this.el,n)}},{key:"element",value:function(){return this.el}},{key:"setAltText",value:function(e,t){this.elements.alt.textContent=t}},{key:"closeMenus",value:function(e){this.menus.forEach(function(t){e&&e.target===t.el||t.closeTooltip(e)})}},{key:"rewind",value:function(){var e,t=0,n=this._model.get("currentTime");n?e=n-10:(e=this._model.get("position")-10,"DVR"===this._model.get("streamType")&&(t=this._model.get("duration"))),this._api.seek(Math.max(e,t),{reason:"interaction"})}},{key:"onState",value:function(e,t){var n=e.get("localization"),i=n.play;this.setPlayText(i),t===a.qb&&("LIVE"!==e.get("streamType")?(i=n.pause,this.setPlayText(i)):(i=n.stop,this.setPlayText(i))),Object(l.s)(this.elements.play.element(),"aria-label",i)}},{key:"onStreamTypeChange",value:function(e,t){var n="LIVE"===t,i="DVR"===t;this.elements.rewind.toggle(!n),this.elements.live.toggle(n||i),Object(l.s)(this.elements.live.element(),"tabindex",n?"-1":"0"),this.elements.duration.style.display=i?"none":"",this.onDuration(e,e.get("duration")),this.onState(e,e.get("state"))}},{key:"addLogo",value:function(e){var t=this.elements.buttonContainer,n=new b(e.file,this._model.get("localization").logo,function(){e.link&&Object(l.k)(e.link,"_blank",{rel:"noreferrer"})},"logo","jw-logo-button");e.link||Object(l.s)(n.element(),"tabindex","-1"),t.insertBefore(n.element(),t.querySelector(".jw-spacer").nextSibling)}},{key:"goToLiveEdge",value:function(){if("DVR"===this._model.get("streamType")){var e=Math.min(this._model.get("position"),-1),t=this._model.get("dvrSeekLimit");this._api.seek(Math.max(-t,e),{reason:"interaction"}),this._api.play({reason:"interaction"})}}},{key:"updateButtons",value:function(e,t,n){if(t){var i,o,a=this.elements.buttonContainer;t!==n&&n?(i=le(t,n),o=le(n,t),this.removeButtons(a,o)):i=t;for(var r=i.length-1;r>=0;r--){var s=i[r],l=new b(s.img,s.tooltip,s.callback,s.id,s.btnClass);s.tooltip&&ne(l.element(),s.id,s.tooltip);var c=void 0;"related"===l.id?c=this.elements.settingsButton.element():"share"===l.id?c=a.querySelector('[button="related"]')||this.elements.settingsButton.element():(c=this.elements.spacer.nextSibling)&&"logo"===c.getAttribute("button")&&(c=c.nextSibling),a.insertBefore(l.element(),c)}}}},{key:"removeButtons",value:function(e,t){for(var n=t.length;n--;){var i=e.querySelector('[button="'.concat(t[n].id,'"]'));i&&e.removeChild(i)}}},{key:"toggleCaptionsButtonState",value:function(e){var t=this.elements.captionsButton;t&&Object(l.u)(t.element(),"jw-off",!e)}},{key:"destroy",value:function(){var e=this;this._model.off(null,null,this),Object.keys(this.elements).forEach(function(t){var n=e.elements[t];n&&"function"==typeof n.destroy&&e.elements[t].destroy()}),this.ui.forEach(function(e){e.destroy()}),this.ui=[]}}])&&oe(t.prototype,n),i&&oe(t,i),e}(),de=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return'
')+'
')+"
"},pe=function(e){return'
'+de("rewind",e.rewind)+de("display",e.playback)+de("next",e.next)+"
"};function we(e,t){for(var n=0;n'.concat(a.playback,"")),Object(l.a)(o.icon,"jw-idle-label"),o.icon.appendChild(s))}return o}var n,i,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&me(e,t)}(t,r["a"]),n=t,(i=[{key:"element",value:function(){return this.el}}])&&je(n.prototype,i),o&&je(n,o),t}();function ye(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return'
'+'
'.concat(e,"
")+'
'.concat(t,"
")+'
'.concat(n,"
")+"
"+'')+"
"}());t.querySelector(".jw-nextup-close").appendChild(Object(f.a)("close")),this.addContent(t),this.closeButton=this.content.querySelector(".jw-nextup-close"),this.closeButton.setAttribute("aria-label",this.localization.close),this.tooltip=this.content.querySelector(".jw-nextup-tooltip");var n=this._model,i=n.player;this.enabled=!1,n.on("change:nextUp",this.onNextUp,this),i.change("duration",this.onDuration,this),i.change("position",this.onElapsed,this),i.change("streamType",this.onStreamType,this),i.change("state",function(e,t){"complete"===t&&this.toggle(!1)},this),this.closeUi=new u.a(this.closeButton,{directSelect:!0}).on("click tap enter",function(){this.nextUpSticky=!1,this.toggle(!1)},this),this.tooltipUi=new u.a(this.tooltip).on("click tap",this.click,this)}},{key:"loadThumbnail",value:function(e){return this.nextUpImage=new Image,this.nextUpImage.onload=function(){this.nextUpImage.onload=null}.bind(this),this.nextUpImage.src=e,{backgroundImage:'url("'+e+'")'}}},{key:"click",value:function(){var e=this.feedShownId;this.reset(),this._api.next({feedShownId:e,reason:"interaction"})}},{key:"toggle",value:function(e,t){if(this.enabled&&(Object(l.u)(this.container,"jw-nextup-sticky",!!this.nextUpSticky),this.shown!==e)){this.shown=e,Object(l.u)(this.container,"jw-nextup-container-visible",e),Object(l.u)(this._playerElement,"jw-flag-nextup",e);var n=this._model.get("nextUp");e&&n?(this.feedShownId=Object(ie.b)(ie.a),this.trigger("nextShown",{mode:n.mode,ui:"nextup",itemsShown:[n],feedData:n.feedData,reason:t,feedShownId:this.feedShownId})):this.feedShownId=""}}},{key:"setNextUpItem",value:function(e){var t=this;setTimeout(function(){if(t.thumbnail=t.content.querySelector(".jw-nextup-thumbnail"),Object(l.u)(t.content,"jw-nextup-thumbnail-visible",!!e.image),e.image){var n=t.loadThumbnail(e.image);Object(h.d)(t.thumbnail,n)}t.header=t.content.querySelector(".jw-nextup-header"),t.header.textContent=Object(l.e)(t.localization.nextUp).textContent,t.title=t.content.querySelector(".jw-nextup-title");var i=e.title;t.title.textContent=i?Object(l.e)(i).textContent:"";var o=e.duration;o&&(t.duration=t.content.querySelector(".jw-nextup-duration"),t.duration.textContent="number"==typeof o?Object(m.timeFormat)(o):o)},500)}},{key:"onNextUp",value:function(e,t){this.reset(),t||(t={showNextUp:!1}),this.enabled=!(!t.title&&!t.image),this.enabled&&(t.showNextUp||(this.nextUpSticky=!1,this.toggle(!1)),this.setNextUpItem(t))}},{key:"onDuration",value:function(e,t){if(t){var n=e.get("nextupoffset"),i=-10;n&&(i=Object(Se.d)(n,t)),i<0&&(i+=t),Object(Se.c)(n)&&t-5=this.offset;i&&void 0===n?(this.nextUpSticky=i,this.toggle(i,"time")):!i&&n&&this.reset()}}},{key:"onStreamType",value:function(e,t){"VOD"!==t&&(this.nextUpSticky=!1,this.toggle(!1))}},{key:"element",value:function(){return this.container}},{key:"addContent",value:function(e){this.content&&this.removeContent(),this.content=e,this.container.appendChild(e)}},{key:"removeContent",value:function(){this.content&&(this.container.removeChild(this.content),this.content=null)}},{key:"reset",value:function(){this.nextUpSticky=void 0,this.toggle(!1)}},{key:"destroy",value:function(){this.off(),this._model.off(null,null,this),this.closeUi&&this.closeUi.destroy(),this.tooltipUi&&this.tooltipUi.destroy()}}])&&Me(t.prototype,n),i&&Me(t,i),e}(),Ee=function(e,t){var n=e.featured,i=e.showLogo,o=e.type;return e.logo=i?'':"",'
  • ').concat(_e[o](e,t),"
  • ")},_e={link:function(e){var t=e.link,n=e.title,i=e.logo;return'').concat(i).concat(n||"","")},info:function(e,t){return'")},share:function(e,t){return'")},keyboardShortcuts:function(){return''}},Ae=n(31),ze=n(6),Pe=n(14);function Le(e,t){for(var n=0;nJW Player '.concat(e,""),a={items:[{type:"info"},{title:Object(Pe.g)(i)?"".concat(o," ").concat(i):"".concat(i," ").concat(o),type:"link",featured:!0,showLogo:!0,link:"https://jwplayer.com/learn-more?e=".concat(Re[n])}]},r=t.get("provider"),s=a.items;if(r&&r.name.indexOf("flash")>=0){var l="Flash Version "+Object(ze.a)();s.push({title:l,type:"link",link:"http://www.adobe.com/software/flash/about/"})}return this.shortcutsTooltip&&s.splice(s.length-1,0,{type:"keyboardShortcuts"}),a}},{key:"rightClick",value:function(e){if(this.lazySetup(),this.mouseOverContext)return!1;this.hideMenu(),this.showMenu(e),this.addHideMenuHandlers()}},{key:"getOffset",value:function(e){var t=Object(l.c)(this.wrapperElement),n=e.pageX-t.left,i=e.pageY-t.top;return this.model.get("touchMode")&&(i-=100),{x:n,y:i}}},{key:"showMenu",value:function(e){var t=this,n=this.getOffset(e);return this.el.style.left=n.x+"px",this.el.style.top=n.y+"px",this.outCount=0,Object(l.a)(this.playerContainer,"jw-flag-rightclick-open"),Object(l.a)(this.el,"jw-open"),clearTimeout(this._menuTimeout),this._menuTimeout=setTimeout(function(){return t.hideMenu()},3e3),!1}},{key:"hideMenu",value:function(e){e&&this.el&&this.el.contains(e.target)||(Object(l.n)(this.playerContainer,"jw-flag-rightclick-open"),Object(l.n)(this.el,"jw-open"))}},{key:"lazySetup",value:function(){var e,t,n,i,o=this,a=(e=this.buildArray(),t=this.model.get("localization"),n=e.items,i=(void 0===n?[]:n).map(function(e){return Ee(e,t)}),'
    '+'
      '.concat(i.join(""),"
    ")+"
    ");if(this.el){if(this.html!==a){this.html=a;var r=Ie(a);Object(l.g)(this.el);for(var s=r.childNodes.length;s--;)this.el.appendChild(r.firstChild)}}else this.html=a,this.el=Ie(this.html),this.wrapperElement.appendChild(this.el),this.hideMenuHandler=function(e){return o.hideMenu(e)},this.overHandler=function(){o.mouseOverContext=!0},this.outHandler=function(e){o.mouseOverContext=!1,e.relatedTarget&&!o.el.contains(e.relatedTarget)&&++o.outCount>1&&o.hideMenu()},this.infoOverlayHandler=function(){o.mouseOverContext=!1,o.hideMenu(),o.infoOverlay.open()},this.shortcutsTooltipHandler=function(){o.mouseOverContext=!1,o.hideMenu(),o.shortcutsTooltip.open()}}},{key:"setup",value:function(e,t,n){this.wrapperElement=n,this.model=e,this.mouseOverContext=!1,this.playerContainer=t,this.ui=new u.a(n).on("longPress",this.rightClick,this)}},{key:"addHideMenuHandlers",value:function(){this.removeHideMenuHandlers(),this.wrapperElement.addEventListener("touchstart",this.hideMenuHandler),document.addEventListener("touchstart",this.hideMenuHandler),o.OS.mobile||(this.wrapperElement.addEventListener("click",this.hideMenuHandler),document.addEventListener("click",this.hideMenuHandler),this.el.addEventListener("mouseover",this.overHandler),this.el.addEventListener("mouseout",this.outHandler)),this.el.querySelector(".jw-info-overlay-item").addEventListener("click",this.infoOverlayHandler),this.shortcutsTooltip&&this.el.querySelector(".jw-shortcuts-item").addEventListener("click",this.shortcutsTooltipHandler)}},{key:"removeHideMenuHandlers",value:function(){this.wrapperElement&&(this.wrapperElement.removeEventListener("click",this.hideMenuHandler),this.wrapperElement.removeEventListener("touchstart",this.hideMenuHandler)),this.el&&(this.el.querySelector(".jw-info-overlay-item").removeEventListener("click",this.infoOverlayHandler),this.el.removeEventListener("mouseover",this.overHandler),this.el.removeEventListener("mouseout",this.outHandler),this.shortcutsTooltip&&this.el.querySelector(".jw-shortcuts-item").removeEventListener("click",this.shortcutsTooltipHandler)),document.removeEventListener("click",this.hideMenuHandler),document.removeEventListener("touchstart",this.hideMenuHandler)}},{key:"destroy",value:function(){clearTimeout(this._menuTimeout),this.removeHideMenuHandlers(),this.el&&(this.hideMenu(),this.hideMenuHandler=null,this.el=null),this.wrapperElement&&(this.wrapperElement.oncontextmenu=null,this.wrapperElement=null),this.model&&(this.model=null),this.ui&&(this.ui.destroy(),this.ui=null)}}])&&Le(t.prototype,n),i&&Le(t,i),e}();function Be(e){return(Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ve(e,t){for(var n=0;n