(s=>{s.fn.fitVids=function(e){var t,n,o={customSelector:null,ignore:null};return document.getElementById("fit-vids-style")||(t=document.head||document.getElementsByTagName("head")[0],(n=document.createElement("div")).innerHTML='<p>x</p><style id="fit-vids-style">.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>',t.appendChild(n.childNodes[1])),e&&s.extend(o,e),this.each(function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="facebook.com"]','iframe[src*="dailymotion.com"]','iframe[src*="imdb.com"]','iframe[src*="ted.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"],i=(o.customSelector&&e.push(o.customSelector),".fitvidsignore"),e=(o.ignore&&(i=i+", "+o.ignore),s(this).find(e.join(",")));(e=(e=e.not("object object")).not(i)).each(function(e){var t,n=s(this);0<n.parents(i).length||"embed"===this.tagName.toLowerCase()&&n.parent("object").length||n.parent(".fluid-width-video-wrapper").length||(n.css("height")||n.css("width")||!isNaN(n.attr("height"))&&!isNaN(n.attr("width"))||(n.attr("height",9),n.attr("width",16)),t=("object"===this.tagName.toLowerCase()||n.attr("height")&&!isNaN(parseInt(n.attr("height"),10))?parseInt(n.attr("height"),10):n.height())/(isNaN(parseInt(n.attr("width"),10))?n.width():parseInt(n.attr("width"),10)),n.attr("id")||n.attr("id","fitvid"+e),n.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*t+"%"),n.removeAttr("height").removeAttr("width"))})})}})(window.jQuery||window.Zepto),(e=>{"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(f){function e(){this.Version="1.4.20-1",this.Plugins={},this.DontConflict=!1,this.Conflicts={fn:{}},this.ResizeHandlers=[],this.RAFHandlers=[],this.window=o,this.$window=f(o),this.document=s,this.$document=f(s),this.$body=null,this.windowWidth=0,this.windowHeight=0,this.fallbackWidth=1024,this.fallbackHeight=768,this.userAgent=window.navigator.userAgent||window.navigator.vendor||window.opera,this.isFirefox=/Firefox/i.test(this.userAgent),this.isChrome=/Chrome/i.test(this.userAgent),this.isSafari=/Safari/i.test(this.userAgent)&&!this.isChrome,this.isMobile=/webOS|BlackBerry/i.test(this.userAgent),this.isIEMobile=/IEMobile/i.test(this.userAgent),this.isFirefoxMobile=this.isFirefox&&this.isMobile,this.transform=null,this.transition=null,this.support={file:!!(window.File&&window.FileList&&window.FileReader),history:!!(window.history&&window.history.pushState&&window.history.replaceState),matchMedia:!(!window.matchMedia&&!window.msMatchMedia),pointer:!!window.PointerEvent,raf:!(!window.requestAnimationFrame||!window.cancelAnimationFrame),touch:!!("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),transition:!1,transform:!1}}var t,n,i,o="undefined"!=typeof window?window:this,s=o.document,r={killEvent:function(e,t){try{e.preventDefault(),e.stopPropagation(),t&&e.stopImmediatePropagation()}catch(e){}},killGesture:function(e){try{e.preventDefault()}catch(e){}},lockViewport:function(e){h[e]=!0,f.isEmptyObject(h)||p||(t.length?t.attr("content",i):t=f("head").append('<meta name="viewport" content="'+i+'">'),a.$body.on(m.gestureChange,r.killGesture).on(m.gestureStart,r.killGesture).on(m.gestureEnd,r.killGesture),p=!0)},unlockViewport:function(e){void 0!==h[e]&&delete h[e],f.isEmptyObject(h)&&p&&(t.length&&(n?t.attr("content",n):t.remove()),a.$body.off(m.gestureChange).off(m.gestureStart).off(m.gestureEnd),p=!1)},startTimer:function(e,t,n,i){return r.clearTimer(e),(i?setInterval:setTimeout)(n,t)},clearTimer:function(e,t){e&&(t?clearInterval:clearTimeout)(e)},sortAsc:function(e,t){return parseInt(e,10)-parseInt(t,10)},sortDesc:function(e,t){return parseInt(t,10)-parseInt(e,10)},decodeEntities:function(e){var t=a.document.createElement("textarea");return t.innerHTML=e,t.value},parseQueryString:function(e){for(var t={},n=e.slice(e.indexOf("?")+1).split("&"),i=0;i<n.length;i++){var o=n[i].split("=");t[o[0]]=o[1]}return t}},a=new e,c=f.Deferred(),l={base:"{ns}",element:"{ns}-element"},m={namespace:".{ns}",beforeUnload:"beforeunload.{ns}",blur:"blur.{ns}",change:"change.{ns}",click:"click.{ns}",dblClick:"dblclick.{ns}",drag:"drag.{ns}",dragEnd:"dragend.{ns}",dragEnter:"dragenter.{ns}",dragLeave:"dragleave.{ns}",dragOver:"dragover.{ns}",dragStart:"dragstart.{ns}",drop:"drop.{ns}",error:"error.{ns}",focus:"focus.{ns}",focusIn:"focusin.{ns}",focusOut:"focusout.{ns}",gestureChange:"gesturechange.{ns}",gestureStart:"gesturestart.{ns}",gestureEnd:"gestureend.{ns}",input:"input.{ns}",keyDown:"keydown.{ns}",keyPress:"keypress.{ns}",keyUp:"keyup.{ns}",load:"load.{ns}",mouseDown:"mousedown.{ns}",mouseEnter:"mouseenter.{ns}",mouseLeave:"mouseleave.{ns}",mouseMove:"mousemove.{ns}",mouseOut:"mouseout.{ns}",mouseOver:"mouseover.{ns}",mouseUp:"mouseup.{ns}",panStart:"panstart.{ns}",pan:"pan.{ns}",panEnd:"panend.{ns}",resize:"resize.{ns}",scaleStart:"scalestart.{ns}",scaleEnd:"scaleend.{ns}",scale:"scale.{ns}",scroll:"scroll.{ns}",select:"select.{ns}",swipe:"swipe.{ns}",touchCancel:"touchcancel.{ns}",touchEnd:"touchend.{ns}",touchLeave:"touchleave.{ns}",touchMove:"touchmove.{ns}",touchStart:"touchstart.{ns}"},d=null,u=20,h=[],p=!1;function v(e,t,n,i){var o,s={raw:{}};for(o in i=i||{})i.hasOwnProperty(o)&&("classes"===e?(s.raw[i[o]]=t+"-"+i[o],s[i[o]]="."+t+"-"+i[o]):(s.raw[o]=i[o],s[o]=i[o]+"."+t));for(o in n)n.hasOwnProperty(o)&&("classes"===e?(s.raw[o]=n[o].replace(/{ns}/g,t),s[o]=n[o].replace(/{ns}/g,"."+t)):(s.raw[o]=n[o].replace(/.{ns}/g,""),s[o]=n[o].replace(/{ns}/g,t)));return s}function g(){a.windowWidth=a.$window.width(),a.windowHeight=a.$window.height(),d=r.startTimer(d,u,y)}function y(){for(var e in a.ResizeHandlers)a.ResizeHandlers.hasOwnProperty(e)&&a.ResizeHandlers[e].callback.call(window,a.windowWidth,a.windowHeight)}function w(e,t){return parseInt(e.priority)-parseInt(t.priority)}e.prototype.NoConflict=function(){for(var e in a.DontConflict=!0,a.Plugins)a.Plugins.hasOwnProperty(e)&&(f[e]=a.Conflicts[e],f.fn[e]=a.Conflicts.fn[e])},e.prototype.Ready=function(e){"complete"===a.document.readyState||"loading"!==a.document.readyState&&!a.document.documentElement.doScroll?e():a.document.addEventListener("DOMContentLoaded",e)},e.prototype.Plugin=function(e,t){return a.Plugins[e]=(h=t,t="fs-"+(u=e),p="fs"+u.replace(/(^|\s)([a-z])/g,function(e,t,n){return t+n.toUpperCase()}),h.initialized=!1,h.priority=h.priority||10,h.classes=v("classes",t,l,h.classes),h.events=v("events",u,m,h.events),h.functions=f.extend({getData:d,iterate:function(e){for(var t=Array.prototype.slice.call(arguments,1),n=0,i=this.length;n<i;n++){var o=this.eq(n),s=d(o)||{};void 0!==s.$el&&e.apply(o,[s].concat(t))}return this}},r,h.functions),h.methods=f.extend(!0,{_construct:f.noop,_postConstruct:f.noop,_destruct:f.noop,_resize:!1,destroy:function(e){h.functions.iterate.apply(this,[h.methods._destruct].concat(Array.prototype.slice.call(arguments,1))),this.removeClass(h.classes.raw.element).removeData(p)}},h.methods),h.utilities=f.extend(!0,{_initialize:!1,_delegate:!1,defaults:function(e){h.defaults=f.extend(!0,h.defaults,e||{})}},h.utilities),h.widget&&(a.Conflicts.fn[u]=f.fn[u],f.fn[p]=function(e){var t;if(this instanceof f)return t=h.methods[e],"object"!=typeof e&&e?t&&0!==e.indexOf("_")?(e=[t].concat(Array.prototype.slice.call(arguments,1)),h.functions.iterate.apply(this,e)):this:function(e){var t,n,i,o,s,r,a="object"==typeof e,c=Array.prototype.slice.call(arguments,a?1:0),l=f();for(e=f.extend(!0,{},h.defaults||{},a?e:{}),n=0,i=this.length;n<i;n++)d(t=this.eq(n))||(h.guid++,o=h.classes.raw.base+(r="__"+h.guid),s=t.data(u+"-options"),r=f.extend(!0,{$el:t,guid:r,numGuid:h.guid,rawGuid:o,dotGuid:"."+o},e,"object"==typeof s?s:{}),t.addClass(h.classes.raw.element).data(p,r),h.methods._construct.apply(t,[r].concat(c)),l=l.add(t));for(n=0,i=l.length;n<i;n++)t=l.eq(n),h.methods._postConstruct.apply(t,[d(t)]);return this}.apply(this,arguments)},a.DontConflict||(f.fn[u]=f.fn[p])),a.Conflicts[u]=f[u],f[p]=h.utilities._delegate||function(e){var t=h.utilities[e]||h.utilities._initialize||!1;if(t)return e=Array.prototype.slice.call(arguments,"object"==typeof e?0:1),t.apply(window,e)},a.DontConflict||(f[u]=f[p]),h.namespace=u,h.namespaceClean=p,h.guid=0,h.methods._resize&&(a.ResizeHandlers.push({namespace:u,priority:h.priority,callback:h.methods._resize}),a.ResizeHandlers.sort(w)),h.methods._raf&&(a.RAFHandlers.push({namespace:u,priority:h.priority,callback:h.methods._raf}),a.RAFHandlers.sort(w)),h),a.Plugins[e];function d(e){return e.data(p)}var u,h,p},a.$window.on("resize.fs",g),g(),function e(){if(a.support.raf)for(var t in a.window.requestAnimationFrame(e),a.RAFHandlers)a.RAFHandlers.hasOwnProperty(t)&&a.RAFHandlers[t].callback.call(window)}(),a.Ready(function(){a.$body=f("body"),f("html").addClass(a.support.touch?"touchevents":"no-touchevents"),t=f('meta[name="viewport"]'),n=!!t.length&&t.attr("content"),i="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0",c.resolve()}),m.clickTouchStart=m.click+" "+m.touchStart;var b,k={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"},E=["transition","-webkit-transition"],C={transform:"transform",MozTransform:"-moz-transform",OTransform:"-o-transform",msTransform:"-ms-transform",webkitTransform:"-webkit-transform"},T="transitionend",S="",P="",L=document.createElement("div");for(b in k)if(k.hasOwnProperty(b)&&b in L.style){T=k[b],a.support.transition=!0;break}for(b in m.transitionEnd=T+".{ns}",E)if(E.hasOwnProperty(b)&&E[b]in L.style){S=E[b];break}for(b in a.transition=S,C)if(C.hasOwnProperty(b)&&C[b]in L.style){a.support.transform=!0,P=C[b];break}return a.transform=P,window.Formstone=a}),(e=>{"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery,Formstone)})(function(a,i){function o(e){e.stopPropagation(),e.preventDefault();var t=e.data,e=e.originalEvent,n=t.target?t.$target:t.$el;t.property&&e.propertyName!==t.property||!a(e.target).is(n)||s(t)}function s(e){e.always||e.$el[t.namespaceClean]("destroy"),e.callback.apply(e.$el)}function r(e){var t,n,i,o={};if(e instanceof a&&(e=e[0]),d.getComputedStyle)for(var s=0,r=(t=d.getComputedStyle(e,null)).length;s<r;s++)n=t[s],i=t.getPropertyValue(n),o[n]=i;else if(e.currentStyle)for(n in t=e.currentStyle)o[n]=t[n];return o}var t=i.Plugin("transition",{widget:!0,defaults:{always:!1,property:null,target:null},methods:{_construct:function(n,e){var t;e&&(n.$target=this.find(n.target),n.$check=n.target?n.$target:this,n.callback=e,n.styles=r(n.$check),n.timer=null,e=n.$check.css(i.transition+"-duration"),t=parseFloat(e),i.support.transition&&e&&t?this.on(c.transitionEnd,n,o):n.timer=l.startTimer(n.timer,50,function(){var e,t;t=r((e=n).$check),((e,t)=>{if(typeof e==typeof t){for(var n in e){if(!e.hasOwnProperty(n))return;if(!e.hasOwnProperty(n)||!t.hasOwnProperty(n)||e[n]!==t[n])return}return 1}})(e.styles,t)||s(e),e.styles=t},!0))},_destruct:function(e){l.clearTimer(e.timer,!0),this.off(c.namespace)},resolve:s}}),c=t.events,l=t.functions,d=i.window}),(e=>{"function"==typeof define&&define.amd?define(["jquery","./core","./transition"],e):e(jQuery,Formstone)})(function(d,i){function e(){(C=E.scrollTop()+i.windowHeight)<0&&(C=0),b.iterate.call(S,c)}function t(){T=d(g.base),S=d(g.lazy),b.iterate.call(S,r)}function n(e){var t;e.visible&&(t=e.source,e.source=null,o(e,t,!0))}function o(e,t,n){if(t!==e.source&&e.visible){e.source=t,e.responsive=!1,e.isYouTube=!1,"object"==typeof t&&"string"==typeof t.video&&(i=t.video.match(/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/ ]{11})/i))&&1<=i.length&&(e.isYouTube=!0,e.videoId=i[1]);var i=!e.isYouTube&&"object"==typeof t&&(t.hasOwnProperty("mp4")||t.hasOwnProperty("ogg")||t.hasOwnProperty("webm"));if(e.video=e.isYouTube||i,e.playing=!1,e.isYouTube)e.playerReady=!1,e.posterLoaded=!1,p(e,t,n);else if("object"==typeof t&&t.hasOwnProperty("poster"))i=n,(c=e).source&&c.source.poster&&(h(c,c.source.poster,!0,!0),i=!1),i='<div class="'+[y.media,y.video,!0!==i?y.animated:""].join(" ")+'" aria-hidden="true">',i+="<video playsinline",c.loop&&(i+=" loop"),c.mute&&(i+=" muted"),c.autoPlay&&(i+=" autoplay"),i+=">",c.source.webm&&(i+='<source src="'+c.source.webm+'" type="video/webm" />'),c.source.mp4&&(i+='<source src="'+c.source.mp4+'" type="video/mp4" />'),c.source.ogg&&(i+='<source src="'+c.source.ogg+'" type="video/ogg" />'),(l=d(i=i+"</video>"+"</div>")).find("video").one(w.loadedMetaData,function(e){l.fsTransition({property:"opacity"},function(){f(c)}).css({opacity:1}),v(c),c.$el.trigger(w.loaded),c.autoPlay&&m(c)}),c.$container.append(l);else{var o=t;if("object"==typeof t){var s,r=[],a=[];for(s in t)t.hasOwnProperty(s)&&a.push(s);for(s in a.sort(b.sortAsc),a)a.hasOwnProperty(s)&&r.push({width:parseInt(a[s]),url:t[a[s]],mq:k.matchMedia("(min-width: "+parseInt(a[s])+"px)")});e.responsive=!0,e.sources=r,o=u(e)}h(e,o,!1,n)}}else e.$el.trigger(w.loaded);var c,l}function u(e){var t=e.source;if(e.responsive)for(var n in t=e.sources[0].url,e.sources)e.sources.hasOwnProperty(n)&&(i.support.matchMedia?e.sources[n].mq.matches&&(t=e.sources[n].url):e.sources[n].width<i.fallbackWidth&&(t=e.sources[n].url));return t}function h(e,t,n,i){var o=[y.media,y.image,!0!==i?y.animated:""].join(" "),s=d('<div class="'+o+'" aria-hidden="true"><img alt="'+e.alt+'"></div>'),o=s.find("img"),r=t;o.one(w.load,function(){P&&s.addClass(y.native).css({backgroundImage:"url('"+r+"')"}),s.fsTransition({property:"opacity"},function(){n||f(e)}).css({opacity:1}),v(e),n&&!i||e.$el.trigger(w.loaded)}).one(w.error,e,a).attr("src",r),e.responsive&&s.addClass(y.responsive),e.$container.append(s),!o[0].complete&&4!==o[0].readyState||o.trigger(w.load),e.currentSource=r}function p(t,e,n){var i,o;t.videoId||(i=e.match(/^.*(?:youtu.be\/|v\/|e\/|u\/\w+\/|embed\/|v=)([^#\&\?]*).*/),t.videoId=i[1]),t.posterLoaded||(t.source.poster||(t.source.poster="//img.youtube.com/vi/"+t.videoId+"/0.jpg"),t.posterLoaded=!0,h(t,t.source.poster,!0,n),n=!1),d("script[src*='youtube.com/iframe_api']").length||d("head").append('<script src="//www.youtube.com/iframe_api"><\/script>'),L?(i=t.guid+"_"+t.youTubeGuid++,n='<div class="'+[y.media,y.embed,!0!==n?y.animated:""].join(" ")+'" aria-hidden="true">',o=d(n=n+('<div id="'+i+'"></div>')+"</div>"),(n=d.extend(!0,{},{controls:0,rel:0,showinfo:0,wmode:"transparent",enablejsapi:1,version:3,playerapiid:i,loop:t.loop?1:0,autoplay:1,mute:1,origin:k.location.protocol+"//"+k.location.host},t.youtubeOptions)).autoplay=1,t.$container.append(o),t.player&&(t.oldPlayer=t.player,t.player=null),t.player=new k.YT.Player(i,{videoId:t.videoId,playerVars:n,events:{onReady:function(e){t.playerReady=!0,t.mute&&t.player.mute(),t.autoPlay?t.player.playVideo():t.player.pauseVideo()},onStateChange:function(e){t.playing||e.data!==k.YT.PlayerState.PLAYING?t.loop&&t.playing&&e.data===k.YT.PlayerState.ENDED&&t.player.playVideo():(t.playing=!0,o.fsTransition({property:"opacity"},function(){f(t)}).css({opacity:1}),v(t),t.$el.trigger(w.loaded)),t.$el.find(g.embed).addClass(y.ready)},onPlaybackQualityChange:function(e){},onPlaybackRateChange:function(e){},onError:function(e){a({data:t})},onApiChange:function(e){}}}),v(t)):_.push({data:t,source:e})}function f(e){var t=e.$container.find(g.media);1<=t.length&&(t.not(":last").remove(),e.oldPlayer=null)}function a(e){e.data.$el.trigger(w.error)}function m(e){var t;e.video&&!e.playing&&(e.isYouTube?e.playerReady?e.player.playVideo():e.autoPlay=!0:((t=e.$container.find("video")).length&&t[0].play(),e.playing=!0))}function s(e){var t;e.visible&&(e.responsive&&(t=u(e))!==e.currentSource?h(e,t,!1,!0):v(e))}function v(e){for(var t=e.$container.find(g.media),n=0,i=t.length;n<i;n++){var o,s=t.eq(n),r=e.isYouTube?"iframe":s.find("video").length?"video":"img",a=s.find(r);!a.length||"img"==r&&P||(r=e.$el.outerWidth(),o=e.$el.outerHeight(),a=((e,t)=>{var n;return e.isYouTube?{height:500,width:500/e.embedRatio}:t.is("img")?void 0!==(e=t[0]).naturalHeight?{height:e.naturalHeight,width:e.naturalWidth}:((n=new Image).src=e.src,{height:n.height,width:n.width}):{height:t[0].videoHeight,width:t[0].videoWidth}})(e,a),e.width=a.width,e.height=a.height,e.left=0,e.top=0,a=e.isYouTube?e.embedRatio:e.width/e.height,e.height=o,e.width=e.height*a,e.width<r&&(e.width=r,e.height=e.width/a),e.left=-(e.width-r)/2,e.top=-(e.height-o)/2,s.css({height:e.height,width:e.width,left:e.left,top:e.top}))}}function r(e){e.scrollTop=e.$el.offset().top}function c(e){!e.visible&&e.scrollTop<C+e.lazyEdge&&(e.visible=!0,n(e))}var l=i.Plugin("background",{widget:!0,defaults:{alt:"",autoPlay:!0,customClass:"",embedRatio:1.777777,lazy:!1,lazyEdge:100,loop:!0,mute:!0,source:null,youtubeOptions:{}},classes:["container","media","animated","responsive","native","fixed","ready","lazy"],events:{loaded:"loaded",ready:"ready",loadedMetaData:"loadedmetadata"},methods:{_construct:function(e){e.youTubeGuid=0,e.$container=d('<div class="'+y.container+'"></div>').appendTo(this),e.thisClasses=[y.base,e.customClass],e.visible=!0,e.lazy&&(e.visible=!1,e.thisClasses.push(y.lazy)),this.addClass(e.thisClasses.join(" ")),t(),(e.lazy?(r(e),c):n)(e)},_destruct:function(e){e.$container.remove(),this.removeClass(e.thisClasses.join(" ")).off(w.namespace),t()},_resize:function(){b.iterate.call(T,s),b.iterate.call(S,r),b.iterate.call(S,c)},play:m,pause:function(e){var t;e.video&&e.playing&&(e.isYouTube?e.playerReady?e.player.pauseVideo():e.autoPlay=!1:(t=e.$container.find("video")).length&&t[0].pause(),e.playing=!1)},mute:function(e){var t;e.video&&(e.isYouTube&&e.playerReady?e.player.mute():(t=e.$container.find("video")).length&&(t[0].muted=!0)),e.mute=!0},unmute:function(e){var t;e.video&&(e.isYouTube&&e.playerReady?e.player.unMute():(t=e.$container.find("video")).length&&(t[0].muted=!1),e.playing=!0),e.mute=!1},resize:v,load:o,unload:function(e){var t=e.$container.find(g.media);1<=t.length&&t.fsTransition({property:"opacity"},function(){t.remove(),delete e.source}).css({opacity:0})}}}),g=l.classes,y=g.raw,w=l.events,b=l.functions,k=i.window,E=i.$window,C=0,T=[],S=[],P="backgroundSize"in i.document.documentElement.style,L=!1,_=[];i.Ready(function(){e(),E.on("scroll",e)}),k.onYouTubeIframeAPIReady=function(){for(var e in L=!0,_)_.hasOwnProperty(e)&&p(_[e].data,_[e].source);_=[]}}),function(){function e(){}function s(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function t(e){return function(){return this[e].apply(this,arguments)}}var n=e.prototype,i=this,o=i.EventEmitter;n.getListeners=function(e){var t,n,i=this._getEvents();if("object"==typeof e)for(n in t={},i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n]);else t=i[e]||(i[e]=[]);return t},n.flattenListeners=function(e){for(var t=[],n=0;e.length>n;n+=1)t.push(e[n].listener);return t},n.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&((t={})[e]=n),t||n},n.addListener=function(e,t){var n,i=this.getListenersAsObject(e),o="object"==typeof t;for(n in i)i.hasOwnProperty(n)&&-1===s(i[n],t)&&i[n].push(o?t:{listener:t,once:!1});return this},n.on=t("addListener"),n.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},n.once=t("addOnceListener"),n.defineEvent=function(e){return this.getListeners(e),this},n.defineEvents=function(e){for(var t=0;e.length>t;t+=1)this.defineEvent(e[t]);return this},n.removeListener=function(e,t){var n,i,o=this.getListenersAsObject(e);for(i in o)o.hasOwnProperty(i)&&(n=s(o[i],t),-1!==n)&&o[i].splice(n,1);return this},n.off=t("removeListener"),n.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},n.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},n.manipulateListeners=function(e,t,n){var i,o,s=e?this.removeListener:this.addListener,r=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(i=n.length;i--;)s.call(this,t,n[i]);else for(i in t)t.hasOwnProperty(i)&&(o=t[i])&&("function"==typeof o?s:r).call(this,i,o);return this},n.removeEvent=function(e){var t,n=typeof e,i=this._getEvents();if("string"==n)delete i[e];else if("object"==n)for(t in i)i.hasOwnProperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},n.removeAllListeners=t("removeEvent"),n.emitEvent=function(e,t){var n,i,o,s,r=this.getListenersAsObject(e);for(o in r)if(r.hasOwnProperty(o))for(i=r[o].length;i--;)n=r[o][i],!0===n.once&&this.removeListener(e,n.listener),s=n.listener.apply(this,t||[]),s===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},n.trigger=t("emitEvent"),n.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},n.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},n._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},n._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return i.EventEmitter=o,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}.call(this),(n=>{function i(e){var t=n.event;return t.target=t.target||t.srcElement||e,t}var e=document.documentElement,t=function(){},o=(e.addEventListener?t=function(e,t,n){e.addEventListener(t,n,!1)}:e.attachEvent&&(t=function(t,e,n){t[e+n]=n.handleEvent?function(){var e=i(t);n.handleEvent.call(n,e)}:function(){var e=i(t);n.call(t,e)},t.attachEvent("on"+e,t[e+n])}),function(){}),e=(e.removeEventListener?o=function(e,t,n){e.removeEventListener(t,n,!1)}:e.detachEvent&&(o=function(t,n,i){t.detachEvent("on"+n,t[n+i]);try{delete t[n+i]}catch(e){t[n+i]=void 0}}),{bind:t,unbind:o});"function"==typeof define&&define.amd?define("eventie/eventie",e):n.eventie=e})(this),((n,i)=>{"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(e,t){return i(n,e,t)}):"object"==typeof exports?module.exports=i(n,require("wolfy87-eventemitter"),require("eventie")):n.imagesLoaded=i(n,n.EventEmitter,n.eventie)})(window,function(e,t,n){function o(e,t){for(var n in t)e[n]=t[n];return e}function s(e){var t=[];if("[object Array]"===u.call(e))t=e;else if("number"==typeof e.length)for(var n=0,i=e.length;n<i;n++)t.push(e[n]);else t.push(e);return t}function r(e,t,n){if(!(this instanceof r))return new r(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=s(e),this.options=o({},this.options),"function"==typeof t?n=t:o(this.options,t),n&&this.on("always",n),this.getImages(),c&&(this.jqDeferred=new c.Deferred);var i=this;setTimeout(function(){i.check()})}function i(e){this.img=e}function a(e){this.src=e,h[e]=this}var c=e.jQuery,l=e.console,d=void 0!==l,u=Object.prototype.toString,h=((r.prototype=new t).options={},r.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;e<t;e++){var n=this.elements[e],i=("IMG"===n.nodeName&&this.addImage(n),n.nodeType);if(i&&(1===i||9===i||11===i))for(var o=n.querySelectorAll("img"),s=0,r=o.length;s<r;s++){var a=o[s];this.addImage(a)}}},r.prototype.addImage=function(e){e=new i(e);this.images.push(e)},r.prototype.check=function(){function e(e,t){return n.options.debug&&d&&l.log("confirm",e,t),n.progress(e),++i===o&&n.complete(),!0}var n=this,i=0,o=this.images.length;if(this.hasAnyBroken=!1,o)for(var t=0;t<o;t++){var s=this.images[t];s.on("confirm",e),s.check()}else this.complete()},r.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)})},r.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done",n=(this.isComplete=!0,this);setTimeout(function(){var e;n.emit(t,n),n.emit("always",n),n.jqDeferred&&(e=n.hasAnyBroken?"reject":"resolve",n.jqDeferred[e](n))})},c&&(c.fn.imagesLoaded=function(e,t){return new r(this,e,t).jqDeferred.promise(c(this))}),(i.prototype=new t).check=function(){var n,e=h[this.img.src]||new a(this.img.src);e.isConfirmed?this.confirm(e.isLoaded,"cached was confirmed"):this.img.complete&&void 0!==this.img.naturalWidth?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(n=this,e.on("confirm",function(e,t){return n.confirm(e.isLoaded,t),!0}),e.check())},i.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)},{});return(a.prototype=new t).check=function(){var e;this.isChecked||(e=new Image,n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.isChecked=!0)},a.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},a.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},a.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},a.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},a.prototype.unbindProxyEvents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},r}),((r,n)=>{function i(e){this.callback=e,this.ticking=!1}function a(e){if(arguments.length<=0)throw new Error("Missing arguments in extend function");for(var t,n,i=e||{},o=1;o<arguments.length;o++){var s=arguments[o]||{};for(t in s)i[t]="object"!=typeof i[t]||(n=i[t],n&&void 0!==r&&(n===r||n.nodeType))?i[t]||s[t]:a(i[t],s[t])}return i}function o(e,t){t=a(t,o.options),this.lastKnownScrollY=0,this.elem=e,this.debouncer=new i(this.update.bind(this)),this.tolerance=(e=t.tolerance)===Object(e)?e:{down:e,up:e},this.classes=t.classes,this.offset=t.offset,this.scroller=t.scroller,this.initialised=!1,this.onPin=t.onPin,this.onUnpin=t.onUnpin,this.onTop=t.onTop,this.onNotTop=t.onNotTop}var e={bind:!!function(){}.bind,classList:"classList"in n.documentElement,rAF:!!(r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame)};r.requestAnimationFrame=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame,i.prototype={constructor:i,update:function(){this.callback&&this.callback(),this.ticking=!1},requestTick:function(){this.ticking||(requestAnimationFrame(this.rafCallback||(this.rafCallback=this.update.bind(this))),this.ticking=!0)},handleEvent:function(){this.requestTick()}},o.prototype={constructor:o,init:function(){return o.cutsTheMustard?(this.elem.classList.add(this.classes.initial),setTimeout(this.attachEvent.bind(this),100),this):void 0},destroy:function(){var e=this.classes;this.initialised=!1,this.elem.classList.remove(e.unpinned,e.pinned,e.top,e.initial),this.scroller.removeEventListener("scroll",this.debouncer,!1)},attachEvent:function(){this.initialised||(this.lastKnownScrollY=this.getScrollY(),this.initialised=!0,this.scroller.addEventListener("scroll",this.debouncer,!1),this.debouncer.handleEvent())},unpin:function(){var e=this.elem.classList,t=this.classes;!e.contains(t.pinned)&&e.contains(t.unpinned)||(e.add(t.unpinned),e.remove(t.pinned),!this.onUnpin)||this.onUnpin.call(this)},pin:function(){var e=this.elem.classList,t=this.classes;e.contains(t.unpinned)&&(e.remove(t.unpinned),e.add(t.pinned),this.onPin)&&this.onPin.call(this)},top:function(){var e=this.elem.classList,t=this.classes;e.contains(t.top)||(e.add(t.top),e.remove(t.notTop),this.onTop&&this.onTop.call(this))},notTop:function(){var e=this.elem.classList,t=this.classes;e.contains(t.notTop)||(e.add(t.notTop),e.remove(t.top),this.onNotTop&&this.onNotTop.call(this))},getScrollY:function(){return void 0!==this.scroller.pageYOffset?this.scroller.pageYOffset:(void 0!==this.scroller.scrollTop?this.scroller:n.documentElement||n.body.parentNode||n.body).scrollTop},getViewportHeight:function(){return r.innerHeight||n.documentElement.clientHeight||n.body.clientHeight},getDocumentHeight:function(){var e=n.body,t=n.documentElement;return Math.max(e.scrollHeight,t.scrollHeight,e.offsetHeight,t.offsetHeight,e.clientHeight,t.clientHeight)},getElementHeight:function(e){return Math.max(e.scrollHeight,e.offsetHeight,e.clientHeight)},getScrollerHeight:function(){return this.scroller===r||this.scroller===n.body?this.getDocumentHeight():this.getElementHeight(this.scroller)},isOutOfBounds:function(e){var t=e<0,e=e+this.getViewportHeight()>this.getScrollerHeight();return t||e},toleranceExceeded:function(e,t){return Math.abs(e-this.lastKnownScrollY)>=this.tolerance[t]},shouldUnpin:function(e,t){var n=e>this.lastKnownScrollY,e=e>=this.offset;return n&&e&&t},shouldPin:function(e,t){var n=e<this.lastKnownScrollY,e=e<=this.offset;return n&&t||e},update:function(){var e=this.getScrollY(),t=e>this.lastKnownScrollY?"down":"up",t=this.toleranceExceeded(e,t);this.isOutOfBounds(e)||(e<=this.offset?this.top():this.notTop(),this.shouldUnpin(e,t)?this.unpin():this.shouldPin(e,t)&&this.pin(),this.lastKnownScrollY=e)}},o.options={tolerance:{up:0,down:0},offset:0,scroller:r,classes:{pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",initial:"headroom"}},o.cutsTheMustard=void 0!==e&&e.rAF&&e.bind&&e.classList,r.Headroom=o})(window,document),(o=>{o&&(o.fn.headroom=function(i){return this.each(function(){var e=o(this),t=e.data("headroom"),n="object"==typeof i&&i,n=o.extend(!0,{},Headroom.options,n);t||((t=new Headroom(this,n)).init(),e.data("headroom",t)),"string"==typeof i&&t[i]()})},o("[data-headroom]").each(function(){var e=o(this);e.headroom(e.data())}))})(window.Zepto||window.jQuery),(e=>{function n(e){return new RegExp("(^|\\s+)"+e+"(\\s+|$)")}var i,o;function t(e,t){(i(e,t)?s:o)(e,t)}var s="classList"in document.documentElement?(i=function(e,t){return e.classList.contains(t)},o=function(e,t){e.classList.add(t)},function(e,t){e.classList.remove(t)}):(i=function(e,t){return n(t).test(e.className)},o=function(e,t){i(e,t)||(e.className=e.className+" "+t)},function(e,t){e.className=e.className.replace(n(t)," ")}),r={hasClass:i,addClass:o,removeClass:s,toggleClass:t,has:i,add:o,remove:s,toggle:t};"function"==typeof define&&define.amd?define(r):e.classie=r})(window),(e=>{function t(e,t){this.el=e,this.inputEl=e.querySelector("form > input.sb-search-input"),this.inputSubmit=e.querySelector("form > input.sb-search-submit"),this._initEvents()}function n(e,t){Window.prototype[e]=HTMLDocument.prototype[e]=Element.prototype[e]=t}var o;!e.addEventListener&&e.Element&&(o=[],n("addEventListener",function(e,t){var n=this;o.unshift({__listener:function(e){e.currentTarget=n,e.pageX=e.clientX+document.documentElement.scrollLeft,e.pageY=e.clientY+document.documentElement.scrollTop,e.preventDefault=function(){e.returnValue=!1},e.relatedTarget=e.fromElement||null,e.stopPropagation=function(){e.cancelBubble=!0},e.relatedTarget=e.fromElement||null,e.target=e.srcElement||n,e.timeStamp=+new Date,t.call(n,e)},listener:t,target:n,type:e}),this.attachEvent("on"+e,o[0].__listener)}),n("removeEventListener",function(e,t){for(var n=0,i=o.length;n<i;++n)if(o[n].target==this&&o[n].type==e&&o[n].listener==t)return this.detachEvent("on"+e,o.splice(n,1)[0].__listener)}),n("dispatchEvent",function(t){try{return this.fireEvent("on"+t.type,t)}catch(e){for(var n=0,i=o.length;n<i;++n)o[n].target==this&&o[n].type==t.type&&o[n].call(this,t)}})),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),t.prototype={_initEvents:function(){var t=this,n=!1;this.el.addEventListener("click",function(e){e.stopPropagation(),t.inputEl.value=t.inputEl.value.trim(),classie.has(t.el,"sb-search-open")?classie.has(t.el,"sb-search-open")&&(e.preventDefault(),t.close()):(e.preventDefault(),t.open())}),this.el.addEventListener("touchstart",function(e){t.inputEl.value=t.inputEl.value.trim(),classie.has(t.el,"sb-search-open")?classie.has(t.el,"sb-search-open")&&t.close():t.open()},{passive:!0}),this.inputEl.addEventListener("click",function(e){e.stopPropagation()}),this.inputEl.addEventListener("keypress",function(e){13==e.which&&(e=t.el.querySelector("form"),n=!0,e.submit())}),this.inputSubmit&&this.inputSubmit.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),n||t.close()}),this.inputEl.addEventListener("touchstart",function(e){e.stopPropagation()},{passive:!0})},open:function(){var t=this,n=(classie.add(this.el,"sb-search-open"),this.inputEl.focus(),function(e){t.close(),this.removeEventListener("click",n),this.removeEventListener("touchstart",n)});document.addEventListener("click",n),document.addEventListener("touchstart",n)},close:function(){this.inputEl.blur(),classie.remove(this.el,"sb-search-open")}},e.UISearch=t})(window),((a,e)=>{c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",menuArrowClass:"sf-arrows"},(t=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent))&&a("html").css("cursor","pointer").on("click",a.noop),l=t,d="behavior"in(t=document.documentElement.style)&&"fill"in t&&/iemobile/i.test(navigator.userAgent),u=!!e.PointerEvent,n=function(e){return e.closest("."+c.menuClass)},o=function(e){return n(e).data("sfOptions")},h=function(){var e=a(this),t=o(e);clearTimeout(t.sfTimer),e.siblings().superfish("hide").end().superfish("show")},i=function(e){e.retainPath=-1<a.inArray(this[0],e.$path),this.superfish("hide"),this.parents("."+e.hoverClass).length||(e.onIdle.call(n(this)),e.$path.length&&a.proxy(h,e.$path)())};var t,c,l,d,u,n,o,h,i,s={hide:function(e){if(this.length){var t=o(this);if(!t)return this;var n=!0===t.retainPath?t.$path:"",n=this.find("li."+t.hoverClass).add(this).not(n).removeClass(t.hoverClass).children(t.popUpSelector),i=t.speedOut;if(e&&(n.show(),i=0),(t.retainPath=!1)===t.onBeforeHide.call(n))return this;n.stop(!0,!0).animate(t.animationOut,i,function(){var e=a(this);t.onHide.call(e)})}return this},show:function(){var e,t=o(this);return t&&(e=this.addClass(t.hoverClass).children(t.popUpSelector),!1!==t.onBeforeShow.call(e))&&e.stop(!0,!0).animate(t.animation,t.speed,function(){t.onShow.call(e)}),this},destroy:function(){return this.each(function(){var e,t=a(this),n=t.data("sfOptions");return!!n&&(e=t.find(n.popUpSelector).parent("li"),clearTimeout(n.sfTimer),p(t,n),f(e),m(t),t.off(".superfish").off(".hoverIntent"),e.children(n.popUpSelector).attr("style",function(e,t){if(void 0!==t)return t.replace(/display[^;]+;?/g,"")}),n.$path.removeClass(n.hoverClass+" "+c.bcClass).addClass(n.pathClass),t.find("."+n.hoverClass).removeClass(n.hoverClass),n.onDestroy.call(t),void t.removeData("sfOptions"))})},init:function(r){return this.each(function(){var e=a(this);if(e.data("sfOptions"))return!1;var t,n,i,o=a.extend({},a.fn.superfish.defaults,r),s=e.find(o.popUpSelector).parent("li");o.$path=(i=o,e.find("li."+i.pathClass).slice(0,i.pathLevels).addClass(i.hoverClass+" "+c.bcClass).filter(function(){return a(this).children(i.popUpSelector).hide().show().length}).removeClass(i.pathClass)),e.data("sfOptions",o),p(e,o,!0),f(s,!0),m(e),e=e,n="li:has("+(t=o).popUpSelector+")",a.fn.hoverIntent&&!t.disableHI?e.hoverIntent(h,v,n):e.on("mouseenter.superfish",n,h).on("mouseleave.superfish",n,v),n=u?"pointerdown.superfish":"MSPointerDown.superfish",l||(n+=" touchend.superfish"),d&&(n+=" mousedown.superfish"),e.on("focusin.superfish","li",h).on("focusout.superfish","li",v).on(n,"a",t,g),s.not("."+c.bcClass).superfish("hide",!0),o.onInit.call(this)})}};function p(e,t,n){var i=c.menuClass;t.cssArrows&&(i+=" "+c.menuArrowClass),e[n?"addClass":"removeClass"](i)}function f(e,t){t=t?"addClass":"removeClass",e.children("a")[t](c.anchorClass)}function m(e){var t=e.css("ms-touch-action"),n=e.css("touch-action");e.css({"ms-touch-action":n="pan-y"===(n||t)?"auto":"pan-y","touch-action":n})}function v(){var e=a(this),t=o(e);l?a.proxy(i,e,t)():(clearTimeout(t.sfTimer),t.sfTimer=setTimeout(a.proxy(i,e,t),t.delay))}function g(e){var t=a(this),n=o(t),i=t.siblings(e.data.popUpSelector);return!1===n.onHandleTouch.call(i)?this:void(0<i.length&&i.is(":hidden")&&(t.one("click.superfish",!1),"MSPointerDown"===e.type||"pointerdown"===e.type?t.trigger("focus"):a.proxy(h,t.parent("li"))()))}a.fn.superfish=function(e,t){return s[e]?s[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?a.error("Method "+e+" does not exist on jQuery.fn.superfish"):s.init.apply(this,arguments)},a.fn.superfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:a.noop,onBeforeShow:a.noop,onShow:a.noop,onBeforeHide:a.noop,onHide:a.noop,onIdle:a.noop,onDestroy:a.noop,onHandleTouch:a.noop}})(jQuery,window),(l=>{var e=l(document),a=l(window);l(function(){var t,e,n;function i(){var e=t.outerHeight();l("#main").css("padding-top",e+"px")}l(".slides > li, .single .has-post-cover, .page .has-post-cover, .single-portfolio_item .slide-background-overlay, .page .is-vimeo-pro-slide, .page .portfolio-header-cover-image, .portfolio-with-post-cover, .blog-with-post-cover, .archive-header.withbg").length?(l(".navbar").addClass("page-with-cover"),l("#main").addClass("page-with-cover")):l(".navbar").removeClass("page-with-cover"),l(".sf-menu").superfish({speed:"fast",animation:{height:"show"},animationOut:{height:"hide"}}),zoomOptions.navbar_sticky_menu&&((t=l(".site-header")).data("headroom")||t.headroom({tolerance:{up:0,down:0},offset:0}),i(),"ResizeObserver"in window)&&(e=new ResizeObserver(function(){i()}),n=t.get(0))&&e.observe(n),l('<span class="child-arrow"><svg fill="none" height="24" stroke-width="1.5" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M6 9L12 15L18 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg></span>').on("click",function(e){e.preventDefault();var e=l(this).closest("li"),t=e.find("> ul");t.is(":visible")?(t.slideUp(),e.removeClass("open")):(t.slideDown(),e.addClass("open"))}).appendTo(".side-nav .navbar-nav li.menu-item-has-children > a"),l(".sb-search").sbSearch(),l(".wpzlb-layout, .builder-wrap, .entry-content, .video_cover, .featured_page_content").fitVids(),l.fn.mediaelementplayer&&l(".wp-video-shortcode").not(".mejs-container").filter(function(){return!l(this).parent().hasClass(".mejs-mediaelement")}).mediaelementplayer({pluginPath:"/wp-includes/js/mediaelement/",stretching:"responsive"}),l(".elementor-widget").each(function(){l(this).hasClass("elementor-widget-wp-widget-wpzoom-portfolio-showcase")&&l(this).addClass("portfolio-showcase")}),l.fn.fullWidthContent(),l.fn.responsiveImagesHeader(),l.fn.singleportfolio(),l.fn.sideNav(),l(".clickable").on("click",function(){window.location.href=l(this).data("href")}),l.fn.wooCartDropdown()}),l.fn.TopMenuMargin=function(){function e(){l(window).width();var e=l(".site-header");l("#main").css("paddingTop",e.outerHeight()),l("#wpadminbar"),l(window).width(),l(window).height()}l(window).on("resize orientationchange",e),e()},l.fn.singleportfolio=function(){l(".full-noslider").each(function(e){var t=l(this);function n(){var e=l(window).height()-l(".full-noslider").offset().top-parseInt(l(".full-noslider").css("padding-top"),10);e<300?e=300:e<500&&768<a.width()&&(e=500),t.find(".entry-cover.cover-fullheight").height(e)}a.on("resize focus",n),n()})},l.fn.fullWidthContent=function(){function e(){var e=l(window).width(),t=(e-l(".entry-content").width())/2;l(".fullimg").css({width:e,"margin-left":-t}),l(".fullimg .wp-caption").css({width:e})}l(window).on("resize",e),e()},l.fn.responsiveImagesHeader=function(){function e(){var e=l(window).width();e<=680&&l(".entry-cover-image, .portfolio-header-cover-image").each(function(){var e=l(this).css("background-image").match(/^url\(['"]?(.+)["']?\)$/),t=l(this).data("smallimg");(e=e&&e[1])!=t&&l(this).css("background-image",'url("'+t+'")')}),680<e&&l(".entry-cover-image, .portfolio-header-cover-image").each(function(){var e=l(this).css("background-image").match(/^url\(['"]?(.+)["']?\)$/),t=l(this).data("bigimg");(e=e&&e[1])!=t&&l(this).css("background-image",'url("'+t+'")')})}l(window).on("resize orientationchange",e),e()},l.fn.sideNav=function(){var i=l(".navbar-toggle"),o=!1,s=!1,i=l(".navbar-toggle").not(".side-nav__close-button .navbar-toggle"),r=null;function t(e){var t,n;s||(e.stopPropagation(),s=!0,e=!l("body").hasClass("side-nav-open"),l("body").toggleClass("side-nav-open").addClass("side-nav-transitioning"),(t=l("#slider").data("flexslider"))&&(e?(o=t.playing,t.playing&&t.pause()):o&&t.play()),n=!1,l(".site").one("transitionend",function(){l("body").removeClass("side-nav-transitioning"),n=!(s=!1)}),setTimeout(function(){n||(l("body").removeClass("side-nav-transitioning"),s=!1),a.trigger("resize")},300),e)||(i.css("pointer-events","none"),clearTimeout(r),r=setTimeout(function(){i.css("pointer-events","")},400))}l(".navbar-toggle:not(.side-nav__close-button .navbar-toggle)").off("click touchend").on("click touchend",function(e){l("body").hasClass("side-nav-open")||t(e)}),l(".side-nav__close-button .navbar-toggle").off("click touchend").on("click touchend",function(e){l("body").hasClass("side-nav-open")&&t(e)}),l(".side-nav-overlay").off("click touchend").on("click touchend",function(e){l("body").hasClass("side-nav-open")&&t(e)}),e.off("keyup.inspiro.sideNav").on("keyup.inspiro.sideNav",function(e){27==e.keyCode&&l("body").hasClass("side-nav-open")&&t(e)}),l(".side-nav__scrollable-container").off("touchstart").on("touchstart",function(e){var t=this.scrollTop;t<=0&&(this.scrollTop=1),t+this.offsetHeight>=this.scrollHeight&&(this.scrollTop=this.scrollHeight-this.offsetHeight-1)})},l.fn.sbSearch=function(){return e.off("keydown.inspiro.sbSearch").on("keydown.inspiro.sbSearch",function(e){27==e.keyCode&&l(".sb-search.sb-search-open").removeClass("sb-search-open")}),this.each(function(){var e,n=this,t=l(this);t.data("sb-search-instance")||(e=new UISearch(n),t.data("sb-search-instance",e),n.addEventListener("touchstart",function(e){e.target.closest&&e.target.closest(".sb-search .sb-icon-search")&&(n.__lastSearchTapTs=Date.now())},{passive:!0,capture:!0}),n.addEventListener("click",function(e){var t;e.target.closest&&e.target.closest(".sb-search .sb-icon-search")&&(t=Date.now(),n.__lastSearchTapTs&&t-n.__lastSearchTapTs<350||n.__lastSearchClickTs&&t-n.__lastSearchClickTs<350?(e.stopImmediatePropagation(),e.preventDefault()):n.__lastSearchClickTs=t)},!0))})},l.fn.backgroundVideoSingle=function(){l(this).each(function(e,t){var n,i,o,s,r,a,c=l(t);c.length&&(t=navigator.userAgent||navigator.vendor||window.opera,n=zoomOptions.featured_video_mobile,i=(n?/webOS|BlackBerry|IEMobile|Opera Mini/i:/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i).test(t),c.attr("data-formstone-options")&&(o=JSON.parse(c.attr("data-formstone-options")),i&&(o.source={poster:o.source.poster}),c.background(o),r=c.data("fsBackground").autoPlay,a=c.data("fsBackground").mute,i||(c.find(".wpzoom-button-video-background-play")[r?"hide":"show"](),c.find(".wpzoom-button-video-background-pause")[r?"show":"hide"](),c.find(".wpzoom-button-sound-background-mute")[a?"hide":"show"](),c.find(".wpzoom-button-sound-background-unmute")[a?"show":"hide"]())),c.attr("data-vimeo-options")&&!i&&(o=JSON.parse(c.attr("data-vimeo-options")),s=new Vimeo.Player(c,o),r=o.autoplay,a=o.muted,s.play().then(function(){r||s.pause(),a||s.setVolume(1),i||(c.find(".wpzoom-button-video-background-play")[r?"hide":"show"](),c.find(".wpzoom-button-video-background-pause")[r?"show":"hide"](),c.find(".wpzoom-button-sound-background-mute")[a?"hide":"show"](),c.find(".wpzoom-button-sound-background-unmute")[a?"show":"hide"]())})),c.find(".wpzoom-button-video-background-play").on("click",function(e){e.preventDefault();e=l(e.currentTarget).closest("div.entry-cover");e.attr("data-formstone-options")&&e.background("play"),e.attr("data-vimeo-options")&&new Vimeo.Player(e).play(),c.find(".wpzoom-button-video-background-pause").show(),l(this).hide()}),c.find(".wpzoom-button-video-background-pause").on("click",function(e){e.preventDefault();e=l(e.currentTarget).closest("div.entry-cover");e.attr("data-formstone-options")&&e.background("pause"),e.attr("data-vimeo-options")&&new Vimeo.Player(e).pause(),c.find(".wpzoom-button-video-background-play").show(),l(this).hide()}),c.find(".wpzoom-button-sound-background-mute").on("click",function(e){e.preventDefault();e=l(e.currentTarget).closest("div.entry-cover");e.attr("data-formstone-options")&&e.background("mute"),e.attr("data-vimeo-options")&&new Vimeo.Player(e).setVolume(0),c.find(".wpzoom-button-sound-background-unmute").show(),l(this).hide()}),c.find(".wpzoom-button-sound-background-unmute").on("click",function(e){e.preventDefault();e=l(e.currentTarget).closest("div.entry-cover");e.attr("data-formstone-options")&&e.background("unmute"),e.attr("data-vimeo-options")&&new Vimeo.Player(e).setVolume(1),c.find(".wpzoom-button-sound-background-mute").show(),l(this).hide()}))})},l.fn.wooCartDropdown=function(){0!==l(".site-header-cart").length&&(l(document).on("click touchend",function(e){l(e.target).closest(".site-header-cart").length||(l(".site-header-cart").removeClass("cart-dropdown-open"),l(".site-header-cart .widget_shopping_cart").removeAttr("style"))}),l(".site-header-cart > li:first-child").on("click touchend",function(e){var t;("ontouchstart"in window||window.innerWidth<1024)&&(e.preventDefault(),e.stopPropagation(),t=(e=l(this).closest(".site-header-cart")).find(".widget_shopping_cart"),e.hasClass("cart-dropdown-open")?(e.removeClass("cart-dropdown-open"),t.removeAttr("style")):(e.addClass("cart-dropdown-open"),t.css("right","0"),t.css("display","block")))}),l(".site-header-cart .widget_shopping_cart").on("click touchend",function(e){e.stopPropagation()}))},l(document).ready(function(){l(".single-portfolio_item article.portfolio_item .entry-cover").backgroundVideoSingle(),l(".single-post article.post .entry-cover").backgroundVideoSingle(),l(".page article.page .entry-cover").backgroundVideoSingle(),l(".page .portfolio-header-cover .entry-cover").backgroundVideoSingle(),l(".category-video-header .entry-cover").backgroundVideoSingle()})})(jQuery),jQuery(document).ready(function(e){"function"==typeof e.fn.sideNav&&e.fn.sideNav()});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((e="undefined"!=typeof globalThis?globalThis:e||self).Vimeo=e.Vimeo||{},e.Vimeo.Player=t())}(this,function(){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){s(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function j(){j=function(){return a};var a={},e=Object.prototype,s=e.hasOwnProperty,f=Object.defineProperty||function(e,t,n){e[t]=n.value},t="function"==typeof Symbol?Symbol:{},o=t.iterator||"@@iterator",n=t.asyncIterator||"@@asyncIterator",r=t.toStringTag||"@@toStringTag";function i(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{i({},"")}catch(e){i=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i,a,u,c,o=t&&t.prototype instanceof p?t:p,l=Object.create(o.prototype),s=new x(r||[]);return f(l,"_invoke",{value:(i=e,a=n,u=s,c="suspendedStart",function(e,t){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===e)throw t;return T()}for(u.method=e,u.arg=t;;){var n=u.delegate;if(n){var r=function e(t,n){var r=n.method,o=t.iterator[r];if(void 0===o)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=void 0,e(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,h;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,h):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}(n,u);if(r){if(r===h)continue;return r}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if("suspendedStart"===c)throw c="completed",u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);c="executing";var o=d(i,a,u);if("normal"===o.type){if(c=u.done?"completed":"suspendedYield",o.arg===h)continue;return{value:o.arg,done:u.done}}"throw"===o.type&&(c="completed",u.method="throw",u.arg=o.arg)}})}),l}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}a.wrap=u;var h={};function p(){}function c(){}function l(){}var v={};i(v,o,function(){return this});var y=Object.getPrototypeOf,m=y&&y(y(P([])));m&&m!==e&&s.call(m,o)&&(v=m);var g=l.prototype=p.prototype=Object.create(v);function w(e){["next","throw","return"].forEach(function(t){i(e,t,function(e){return this._invoke(t,e)})})}function b(c,l){var t;f(this,"_invoke",{value:function(n,r){function e(){return new l(function(e,t){!function t(e,n,r,o){var i=d(c[e],c,n);if("throw"!==i.type){var a=i.arg,u=a.value;return u&&"object"==typeof u&&s.call(u,"__await")?l.resolve(u.__await).then(function(e){t("next",e,r,o)},function(e){t("throw",e,r,o)}):l.resolve(u).then(function(e){a.value=e,r(a)},function(e){return t("throw",e,r,o)})}o(i.arg)}(n,r,e,t)})}return t=t?t.then(e,e):e()}})}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function P(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(s.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:T}}function T(){return{value:void 0,done:!0}}return f(g,"constructor",{value:c.prototype=l,configurable:!0}),f(l,"constructor",{value:c,configurable:!0}),c.displayName=i(l,r,"GeneratorFunction"),a.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===c||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,i(e,r,"GeneratorFunction")),e.prototype=Object.create(g),e},a.awrap=function(e){return{__await:e}},w(b.prototype),i(b.prototype,n,function(){return this}),a.AsyncIterator=b,a.async=function(e,t,n,r,o){void 0===o&&(o=Promise);var i=new b(u(e,t,n,r),o);return a.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},w(g),i(g,r,"Generator"),i(g,o,function(){return this}),i(g,"toString",function(){return"[object Generator]"}),a.keys=function(e){var n=Object(e),r=[];for(var t in n)r.push(t);return r.reverse(),function e(){for(;r.length;){var t=r.pop();if(t in n)return e.value=t,e.done=!1,e}return e.done=!0,e}},a.values=P,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&s.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function e(e,t){return i.type="throw",i.arg=n,r.next=e,t&&(r.method="next",r.arg=void 0),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var o=this.tryEntries[t],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=s.call(o,"catchLoc"),u=s.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&s.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r,o=n.completion;return"throw"===o.type&&(r=o.arg,E(n)),r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},a}function c(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function h(u){return function(){var e=this,a=arguments;return new Promise(function(t,n){var r=u.apply(e,a);function o(e){c(r,t,n,o,i,"next",e)}function i(e){c(r,t,n,o,i,"throw",e)}o(void 0)})}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function e(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function d(e,t,n){return(d=a()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&f(o,n.prototype),o}).apply(null,arguments)}function t(e){var r="function"==typeof Map?new Map:void 0;return(t=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,n)}function n(){return d(e,arguments,i(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,e)})(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(n){var r=a();return function(){var e,t=i(n);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}(this,r?(e=i(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function y(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==typeof t?t:String(t)}var n="undefined"!=typeof global&&"[object global]"==={}.toString.call(global);function m(e,t){return 0===e.indexOf(t.toLowerCase())?e:"".concat(t.toLowerCase()).concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))}function g(e){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(e)}function w(e){return/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/.test(e)}function b(e){var t,n=0<arguments.length&&void 0!==e?e:{},r=n.id,o=n.url,i=r||o;if(!i)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(t=i,!isNaN(parseFloat(t))&&isFinite(t)&&Math.floor(t)==t)return"https://vimeo.com/".concat(i);if(g(i))return i.replace("http:","https:");if(r)throw new TypeError("“".concat(r,"” is not a valid video id."));throw new TypeError("“".concat(i,"” is not a vimeo.com url."))}function k(t,e,n,r,o){var i=3<arguments.length&&void 0!==r?r:"addEventListener",a=4<arguments.length&&void 0!==o?o:"removeEventListener",u="string"==typeof e?[e]:e;return u.forEach(function(e){t[i](e,n)}),{cancel:function(){return u.forEach(function(e){return t[a](e,n)})}}}var E=void 0!==Array.prototype.indexOf,x="undefined"!=typeof window&&void 0!==window.postMessage;if(!(n||E&&x))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var P,T,_,O,M="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function S(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(O(this,"_id","_WeakMap_"+N()+"."+N()),0<arguments.length)throw new TypeError("WeakMap iterable is not supported")}function C(e,t){if(!F(e)||!T.call(e,"_id"))throw new TypeError(t+" method called on incompatible receiver "+typeof e)}function N(){return Math.random().toString().substring(2)}function F(e){return Object(e)===e}(P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:M).WeakMap||(T=Object.prototype.hasOwnProperty,_=Object.defineProperty&&function(){try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(e){}}(),O=function(e,t,n){_?Object.defineProperty(e,t,{configurable:!0,writable:!0,value:n}):e[t]=n},P.WeakMap=(O(S.prototype,"delete",function(e){if(C(this,"delete"),!F(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)}),O(S.prototype,"get",function(e){if(C(this,"get"),F(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}}),O(S.prototype,"has",function(e){if(C(this,"has"),!F(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)}),O(S.prototype,"set",function(e,t){if(C(this,"set"),!F(e))throw new TypeError("Invalid value used as weak map key");var n=e[this._id];return n&&n[0]===e?n[1]=t:O(e,this._id,[e,t]),this}),O(S,"_polyfill",!0),S));var L,A=(function(e){var t,n,r;r=function(){var t,n,r,o,i,a,e=Object.prototype.toString,u="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(e){t=function(e,t,n){return e[t]=n,e}}function c(e,t){this.fn=e,this.self=t,this.next=void 0}function l(e,t){r.add(e,t),n=n||u(r.drain)}function s(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function f(){for(var e=0;e<this.chain.length;e++)!function(e,t,n){var r,o;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(o=s(r))?o.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}}(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function d(e){var n,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(n=s(e))?l(function(){var t=new v(r);try{n.call(e,function(){d.apply(t,arguments)},function(){h.apply(t,arguments)})}catch(e){h.call(t,e)}}):(r.msg=e,r.state=1,0<r.chain.length&&l(f,r))}catch(e){h.call(new v(r),e)}}}function h(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,0<t.chain.length&&l(f,t))}function p(e,n,r,o){for(var t=0;t<n.length;t++)!function(t){e.resolve(n[t]).then(function(e){r(t,e)},o)}(t)}function v(e){this.def=e,this.triggered=!1}function y(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function m(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var r=new y(this);this.then=function(e,t){var n={success:"function"!=typeof e||e,failure:"function"==typeof t&&t};return n.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),r.chain.push(n),0!==r.state&&l(f,r),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){d.call(r,e)},function(e){h.call(r,e)})}catch(e){h.call(r,e)}}var g=t({},"constructor",m,!(r={add:function(e,t){a=new c(e,t),i?i.next=a:o=a,i=a,a=void 0},drain:function(){var e=o;for(o=i=n=void 0;e;)e.fn.call(e.self),e=e.next}}));return t(m.prototype=g,"__NPO__",0,!1),t(m,"resolve",function(n){return n&&"object"==typeof n&&1===n.__NPO__?n:new this(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");e(n)})}),t(m,"reject",function(n){return new this(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");t(n)})}),t(m,"all",function(t){var a=this;return"[object Array]"!=e.call(t)?a.reject(TypeError("Not an array")):0===t.length?a.resolve([]):new a(function(n,e){if("function"!=typeof n||"function"!=typeof e)throw TypeError("Not a function");var r=t.length,o=Array(r),i=0;p(a,t,function(e,t){o[e]=t,++i===r&&n(o)},e)})}),t(m,"race",function(t){var r=this;return"[object Array]"!=e.call(t)?r.reject(TypeError("Not an array")):new r(function(n,e){if("function"!=typeof n||"function"!=typeof e)throw TypeError("Not a function");p(r,t,function(e,t){n(t)},e)})}),m},(n=M)[t="Promise"]=n[t]||r(),e.exports&&(e.exports=n[t])}(L={exports:{}}),L.exports),R=new WeakMap;function q(e,t,n){var r=R.get(e.element)||{};t in r||(r[t]=[]),r[t].push(n),R.set(e.element,r)}function I(e,t){return(R.get(e.element)||{})[t]||[]}function V(e,t,n){var r=R.get(e.element)||{};if(!r[t])return!0;if(!n)return r[t]=[],R.set(e.element,r),!0;var o=r[t].indexOf(n);return-1!==o&&r[t].splice(o,1),R.set(e.element,r),r[t]&&0===r[t].length}function D(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function W(e,t,n){var r,o;e.element.contentWindow&&e.element.contentWindow.postMessage&&(r={method:t},void 0!==n&&(r.value=n),8<=(o=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1")))&&o<10&&(r=JSON.stringify(r)),e.element.contentWindow.postMessage(r,e.origin))}function z(n,r){var t,e,o=[];(r=D(r)).event?("error"===r.event&&I(n,r.data.method).forEach(function(e){var t=new Error(r.data.message);t.name=r.data.name,e.reject(t),V(n,r.data.method,e)}),o=I(n,"event:".concat(r.event)),t=r.data):!r.method||(e=function(e,t){var n=I(e,t);if(n.length<1)return!1;var r=n.shift();return V(e,t,r),r}(n,r.method))&&(o.push(e),t=r.value),o.forEach(function(e){try{if("function"==typeof e)return void e.call(n,t);e.resolve(t)}catch(e){}})}var U=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","interactive_params","keyboard","loop","maxheight","maxwidth","muted","play_button_position","playsinline","portrait","progress_bar","quality_selector","responsive","skipping_forward","speed","start_time","texttrack","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function G(r,e){var t=1<arguments.length&&void 0!==e?e:{};return U.reduce(function(e,t){var n=r.getAttribute("data-vimeo-".concat(t));return!n&&""!==n||(e[t]=""===n?1:n),e},t)}function B(e,t){var n=e.html;if(!t)throw new TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");var r=document.createElement("div");return r.innerHTML=n,t.appendChild(r.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function H(a,e,t){var u=1<arguments.length&&void 0!==e?e:{},c=2<arguments.length?t:void 0;return new Promise(function(t,n){if(!g(a))throw new TypeError("“".concat(a,"” is not a vimeo.com url."));var e=function(e){for(var t=(e||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),n=(t&&t[1]||"").replace("player.",""),r=0,o=[".videoji.hk",".vimeo.work",".videoji.cn"];r<o.length;r++){var i=o[r];if(n.endsWith(i))return n}return"vimeo.com"}(a),r="https://".concat(e,"/api/oembed.json?url=").concat(encodeURIComponent(a));for(var o in u)u.hasOwnProperty(o)&&(r+="&".concat(o,"=").concat(encodeURIComponent(u[o])));var i=new("XDomainRequest"in window?XDomainRequest:XMLHttpRequest);i.open("GET",r,!0),i.onload=function(){if(404!==i.status)if(403!==i.status)try{var e=JSON.parse(i.responseText);if(403===e.domain_status_code)return B(e,c),void n(new Error("“".concat(a,"” is not embeddable.")));t(e)}catch(e){n(e)}else n(new Error("“".concat(a,"” is not embeddable.")));else n(new Error("“".concat(a,"” was not found.")))},i.onerror=function(){var e=i.status?" (".concat(i.status,")"):"";n(new Error("There was an error fetching the embed code from Vimeo".concat(e,".")))},i.send()})}var Y,Q,J,X={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},$=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(a,t(EventTarget));var r,n,o,i=v(a);function a(e,t){var o,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r=3<arguments.length?arguments[3]:void 0;return l(this,a),s(p(o=i.call(this)),"logger",void 0),s(p(o),"speedAdjustment",0),s(p(o),"adjustSpeed",function(){var n=h(j().mark(function e(t,n){var r;return j().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o.speedAdjustment===n)return e.abrupt("return");e.next=2;break;case 2:return e.next=4,t.getPlaybackRate();case 4:return e.t0=e.sent,e.t1=o.speedAdjustment,e.t2=e.t0-e.t1,e.t3=n,r=e.t2+e.t3,o.log("New playbackRate:  ".concat(r)),e.next=12,t.setPlaybackRate(r);case 12:o.speedAdjustment=n;case 13:case"end":return e.stop()}},e)}));return function(e,t){return n.apply(this,arguments)}}()),o.logger=r,o.init(t,e,u(u({},X),n)),o}return e(a,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:(o=h(j().mark(function e(t,n,r){var o,i,a,u=this;return j().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.waitForTOReadyState(t,"open");case 2:if("viewer"===r.role)return e.next=5,this.updatePlayer(t,n,r);e.next=10;break;case 5:o=k(t,"change",function(){return u.updatePlayer(t,n,r)}),i=this.maintainPlaybackPosition(t,n,r),this.addEventListener("disconnect",function(){i.cancel(),o.cancel()}),e.next=14;break;case 10:return e.next=12,this.updateTimingObject(t,n);case 12:a=k(n,["seeked","play","pause","ratechange"],function(){return u.updateTimingObject(t,n)},"on","off"),this.addEventListener("disconnect",function(){return a.cancel()});case 14:case"end":return e.stop()}},e,this)})),function(e,t,n){return o.apply(this,arguments)})},{key:"updateTimingObject",value:(n=h(j().mark(function e(t,n){return j().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=t,e.next=3,n.getCurrentTime();case 3:return e.t1=e.sent,e.next=6,n.getPaused();case 6:if(!e.sent){e.next=10;break}e.t2=0,e.next=13;break;case 10:return e.next=12,n.getPlaybackRate();case 12:e.t2=e.sent;case 13:e.t3=e.t2,e.t4={position:e.t1,velocity:e.t3},e.t0.update.call(e.t0,e.t4);case 16:case"end":return e.stop()}},e)})),function(e,t){return n.apply(this,arguments)})},{key:"updatePlayer",value:(r=h(j().mark(function e(t,n,r){var o,i,a;return j().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.query(),i=o.position,a=o.velocity,"number"==typeof i&&n.setCurrentTime(i),"number"!=typeof a){e.next=25;break}if(0===a)return e.next=6,n.getPaused();e.next=11;break;case 6:if(e.t0=e.sent,!1!==e.t0){e.next=9;break}n.pause();case 9:e.next=25;break;case 11:if(0<a)return e.next=14,n.getPaused();e.next=25;break;case 14:if(e.t1=e.sent,!0===e.t1)return e.next=18,n.play().catch(function(){var t=h(j().mark(function e(t){return j().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("NotAllowedError"===t.name&&r.autoPlayMuted)return e.next=3,n.setMuted(!0);e.next=5;break;case 3:return e.next=5,n.play().catch(function(e){return console.error("Couldn't play the video from TimingSrcConnector. Error:",e)});case 5:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}());e.next=19;break;case 18:this.updatePlayer(t,n,r);case 19:return e.next=21,n.getPlaybackRate();case 21:if(e.t2=e.sent,e.t3=a,e.t2===e.t3){e.next=25;break}n.setPlaybackRate(a);case 25:case"end":return e.stop()}},e,this)})),function(e,t,n){return r.apply(this,arguments)})},{key:"maintainPlaybackPosition",value:function(a,u,e){var c=this,l=e.allowedDrift,s=e.maxAllowedDrift,t=e.minCheckInterval,f=e.maxRateAdjustment,d=e.maxTimeToCatchUp,n=1e3*Math.min(d,Math.max(t,s)),r=function(){var e=h(j().mark(function e(){var t,n,r,o,i;return j().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=0===a.query().velocity,e.t0){e.next=6;break}return e.next=4,u.getPaused();case 4:e.t1=e.sent,e.t0=!0===e.t1;case 6:if(e.t0)return e.abrupt("return");e.next=8;break;case 8:return e.t2=a.query().position,e.next=11,u.getCurrentTime();case 11:if(e.t3=e.sent,t=e.t2-e.t3,n=Math.abs(t),c.log("Drift: ".concat(t)),s<n)return e.next=18,c.adjustSpeed(u,0);e.next=22;break;case 18:u.setCurrentTime(a.query().position),c.log("Resync by currentTime"),e.next=29;break;case 22:if(l<n)return i=(r=n/d)<(o=f)?(o-r)/2:o,e.next=28,c.adjustSpeed(u,i*Math.sign(t));e.next=29;break;case 28:c.log("Resync by playbackRate");case 29:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),o=setInterval(function(){return r()},n);return{cancel:function(){return clearInterval(o)}}}},{key:"log",value:function(e){var t;null!==(t=this.logger)&&void 0!==t&&t.call(this,"TimingSrcConnector: ".concat(e))}},{key:"waitForTOReadyState",value:function(n,r){return new Promise(function(t){!function e(){n.readyState===r?t():n.addEventListener("readystatechange",e,{once:!0})}()})}}]),a}(),Z=new WeakMap,K=new WeakMap,ee={},Player=function(){function Player(u){var e,t,c=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(l(this,Player),window.jQuery&&u instanceof jQuery&&(1<u.length&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),u=u[0]),"undefined"!=typeof document&&"string"==typeof u&&(u=document.getElementById(u)),e=u,!Boolean(e&&1===e.nodeType&&"nodeName"in e&&e.ownerDocument&&e.ownerDocument.defaultView))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"===u.nodeName||(t=u.querySelector("iframe"))&&(u=t),"IFRAME"===u.nodeName&&!g(u.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(Z.has(u))return Z.get(u);this._window=u.ownerDocument.defaultView,this.element=u,this.origin="*";var r,o=new A(function(i,a){var e;c._onMessage=function(e){if(g(e.origin)&&c.element.contentWindow===e.source){"*"===c.origin&&(c.origin=e.origin);var t=D(e.data);if(t&&"error"===t.event&&t.data&&"ready"===t.data.method){var n=new Error(t.data.message);return n.name=t.data.name,void a(n)}var r=t&&"ready"===t.event,o=t&&"ping"===t.method;if(r||o)return c.element.setAttribute("data-ready","true"),void i();z(c,t)}},c._window.addEventListener("message",c._onMessage),"IFRAME"!==c.element.nodeName&&H(b(e=G(u,n)),e,u).then(function(e){var t,n,r,o=B(e,u);return c.element=o,c._originalElement=u,t=u,n=o,r=R.get(t),R.set(n,r),R.delete(t),Z.set(c.element,c),e}).catch(a)});return K.set(this,o),Z.set(this.element,this),"IFRAME"===this.element.nodeName&&W(this,"ping"),ee.isEnabled&&(r=function(){return ee.exit()},this.fullscreenchangeHandler=function(){(ee.isFullscreen?q:V)(c,"event:exitFullscreen",r),c.ready().then(function(){W(c,"fullscreenchange",ee.isFullscreen)})},ee.on("fullscreenchange",this.fullscreenchangeHandler)),this}var n;return e(Player,[{key:"callMethod",value:function(n,e){var r=this,o=1<arguments.length&&void 0!==e?e:{};return new A(function(e,t){return r.ready().then(function(){q(r,n,{resolve:e,reject:t}),W(r,n,o)}).catch(t)})}},{key:"get",value:function(n){var r=this;return new A(function(e,t){return n=m(n,"get"),r.ready().then(function(){q(r,n,{resolve:e,reject:t}),W(r,n)}).catch(t)})}},{key:"set",value:function(n,r){var o=this;return new A(function(e,t){if(n=m(n,"set"),null==r)throw new TypeError("There must be a value to set.");return o.ready().then(function(){q(o,n,{resolve:e,reject:t}),W(o,n,r)}).catch(t)})}},{key:"on",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");if("function"!=typeof t)throw new TypeError("The callback must be a function.");0===I(this,"event:".concat(e)).length&&this.callMethod("addEventListener",e).catch(function(){}),q(this,"event:".concat(e),t)}},{key:"off",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw new TypeError("The callback must be a function.");V(this,"event:".concat(e),t)&&this.callMethod("removeEventListener",e).catch(function(e){})}},{key:"loadVideo",value:function(e){return this.callMethod("loadVideo",e)}},{key:"ready",value:function(){var e=K.get(this)||new A(function(e,t){t(new Error("Unknown player. Probably unloaded."))});return A.resolve(e)}},{key:"addCuePoint",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:{};return this.callMethod("addCuePoint",{time:e,data:n})}},{key:"removeCuePoint",value:function(e){return this.callMethod("removeCuePoint",e)}},{key:"enableTextTrack",value:function(e,t){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return ee.isEnabled?ee.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return ee.isEnabled?ee.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return ee.isEnabled?A.resolve(ee.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var n=this;return new A(function(e){var t;K.delete(n),Z.delete(n.element),n._originalElement&&(Z.delete(n._originalElement),n._originalElement.removeAttribute("data-vimeo-initialized")),n.element&&"IFRAME"===n.element.nodeName&&n.element.parentNode&&(n.element.parentNode.parentNode&&n._originalElement&&n._originalElement!==n.element.parentNode?n.element.parentNode.parentNode.removeChild(n.element.parentNode):n.element.parentNode.removeChild(n.element)),n.element&&"DIV"===n.element.nodeName&&n.element.parentNode&&(n.element.removeAttribute("data-vimeo-initialized"),(t=n.element.querySelector("iframe"))&&t.parentNode&&(t.parentNode.parentNode&&n._originalElement&&n._originalElement!==t.parentNode?t.parentNode.parentNode.removeChild(t.parentNode):t.parentNode.removeChild(t))),n._window.removeEventListener("message",n._onMessage),ee.isEnabled&&ee.off("fullscreenchange",n.fullscreenchangeHandler),e()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(e){return this.set("autopause",e)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(e){return this.set("cameraProps",e)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return A.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(e){return this.set("color",e)}},{key:"setColors",value:function(e){if(!Array.isArray(e))return new A(function(e,t){return t(new TypeError("Argument must be an array."))});var t=new A(function(e){return e(null)}),n=[e[0]?this.set("colorOne",e[0]):t,e[1]?this.set("colorTwo",e[1]):t,e[2]?this.set("colorThree",e[2]):t,e[3]?this.set("colorFour",e[3]):t];return A.all(n)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(e){return this.set("currentTime",e)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(e){return this.set("loop",e)}},{key:"setMuted",value:function(e){return this.set("muted",e)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(e){return this.set("playbackRate",e)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(e){return this.set("quality",e)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(e){return this.set("volume",e)}},{key:"setTimingSrc",value:(n=h(j().mark(function e(t,n){var r,o=this;return j().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return e.next=4,this.ready();case 4:return r=new $(this,t,n),W(this,"notifyTimingObjectConnect"),r.addEventListener("disconnect",function(){return W(o,"notifyTimingObjectDisconnect")}),e.abrupt("return",r);case 8:case"end":return e.stop()}},e,this)})),function(e,t){return n.apply(this,arguments)})}]),Player}();return n||(Y=function(){for(var e,t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=0,r=t.length,o={};n<r;n++)if((e=t[n])&&e[1]in document){for(n=0;n<e.length;n++)o[t[0][n]]=e[n];return o}return!1}(),Q={fullscreenchange:Y.fullscreenchange,fullscreenerror:Y.fullscreenerror},J={request:function(o){return new Promise(function(e,t){function n(){J.off("fullscreenchange",n),e()}J.on("fullscreenchange",n);var r=(o=o||document.documentElement)[Y.requestFullscreen]();r instanceof Promise&&r.then(n).catch(t)})},exit:function(){return new Promise(function(t,e){var n,r;J.isFullscreen?(n=function e(){J.off("fullscreenchange",e),t()},J.on("fullscreenchange",n),(r=document[Y.exitFullscreen]())instanceof Promise&&r.then(n).catch(e)):t()})},on:function(e,t){var n=Q[e];n&&document.addEventListener(n,t)},off:function(e,t){var n=Q[e];n&&document.removeEventListener(n,t)}},Object.defineProperties(J,{isFullscreen:{get:function(){return Boolean(document[Y.fullscreenElement])}},element:{enumerable:!0,get:function(){return document[Y.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(document[Y.fullscreenEnabled])}}}),ee=J,function(e){function n(e){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(e))}var t=0<arguments.length&&void 0!==e?e:document;[].slice.call(t.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")).forEach(function(t){try{if(null!==t.getAttribute("data-vimeo-defer"))return;var e=G(t);H(b(e),e,t).then(function(e){return B(e,t)}).catch(n)}catch(e){n(e)}})}(),function(e){var r=0<arguments.length&&void 0!==e?e:document;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",function(e){if(g(e.origin)&&e.data&&"spacechange"===e.data.event)for(var t=r.querySelectorAll("iframe"),n=0;n<t.length;n++)if(t[n].contentWindow===e.source){t[n].parentElement.style.paddingBottom="".concat(e.data.data[0].bottom,"px");break}}))}(),function(e){var a=0<arguments.length&&void 0!==e?e:document;window.VimeoSeoMetadataAppended||(window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",function(e){if(g(e.origin)){var t=D(e.data);if(t&&"ready"===t.event)for(var n=a.querySelectorAll("iframe"),r=0;r<n.length;r++){var o=n[r],i=o.contentWindow===e.source;w(o.src)&&i&&new Player(o).callMethod("appendVideoMetadata",window.location.href)}}}))}(),function(e){var a,t=0<arguments.length&&void 0!==e?e:document;window.VimeoCheckedUrlTimeParam||(window.VimeoCheckedUrlTimeParam=!0,a=function(e){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(e))},window.addEventListener("message",function(n){if(g(n.origin)){var e=D(n.data);if(e&&"ready"===e.event)for(var o=t.querySelectorAll("iframe"),i=0;i<o.length;i++)!function(){var r,e=o[i],t=e.contentWindow===n.source;w(e.src)&&t&&(r=new Player(e)).getVideoId().then(function(e){var t,n=new RegExp("[?&]vimeo_t_".concat(e,"=([^&#]*)")).exec(window.location.href);n&&n[1]&&(t=decodeURI(n[1]),r.setCurrentTime(t))}).catch(a)}()}}))}()),Player});