1function PointerEventsPolyfill(t){if(this.options={selector:"*",mouseEvents:["click","dblclick","mousedown","mouseup"],usePolyfillIf:function(){if("Microsoft Internet Explorer"==navigator.appName&&(null!=navigator.userAgent.match(/MSIE ([0-9]{1,}[\.0-9]{0,})/)&&11>parseFloat(RegExp.$1)))return!0;return!1}},t){var e=this;$.each(t,function(t,n){e.options[t]=n})}this.options.usePolyfillIf()&&this.register_mouse_events()}!function(t){var e={url:!1,callback:!1,target:!1,duration:120,on:"mouseover",touch:!0,onZoomIn:!1,onZoomOut:!1,magnify:1};t.zoom=function(e,n,i,o){var r,s,a,l,c,u,h,d=t(e),f=d.css("position"),p=t(n);return d.css("position",/(absolute|fixed)/.test(f)?f:"relative"),d.css("overflow","hidden"),i.style.width=i.style.height="",t(i).addClass("zoomImg").css({position:"absolute",top:0,left:0,opacity:0,width:i.width*o,height:i.height*o,border:"none",maxWidth:"none",maxHeight:"none"}).appendTo(e),{init:function(){s=d.outerWidth(),r=d.outerHeight(),n===d[0]?(l=s,a=r):(l=p.outerWidth(),a=p.outerHeight()),c=(i.width-s)/l,u=(i.height-r)/a,h=p.offset()},move:function(t){var e=t.pageX-h.left,n=t.pageY-h.top;n=Math.max(Math.min(n,a),0),e=Math.max(Math.min(e,l),0),i.style.left=e*-c+"px",i.style.top=n*-u+"px"}}},t.fn.zoom=function(n){return this.each(function(){var i,o,r,s=t.extend({},e,n||{}),a=s.target||this,l=this,c=t(l),u=t(a),h=document.createElement("img"),d=t(h),f="mousemove.zoom",p=!1,g=!1;(s.url||((i=c.find("img"))[0]&&(s.url=i.data("src")||i.attr("src")),s.url))&&(o=u.css("position"),r=u.css("overflow"),c.one("zoom.destroy",function(){c.off(".zoom"),u.css("position",o),u.css("overflow",r),d.remove()}),h.onload=function(){var e=t.zoom(a,l,h,s.magnify);function n(n){e.init(),e.move(n),d.stop().fadeTo(t.support.opacity?s.duration:0,1,!!t.isFunction(s.onZoomIn)&&s.onZoomIn.call(h))}function i(){d.stop().fadeTo(s.duration,0,!!t.isFunction(s.onZoomOut)&&s.onZoomOut.call(h))}"grab"===s.on?c.on("mousedown.zoom",function(o){1===o.which&&(t(document).one("mouseup.zoom",function(){i(),t(document).off(f,e.move)}),n(o),t(document).on(f,e.move),o.preventDefault())}):"click"===s.on?c.on("click.zoom",function(o){return p?void 0:(p=!0,n(o),t(document).on(f,e.move),t(document).one("click.zoom",function(){i(),p=!1,t(document).off(f,e.move)}),!1)}):"toggle"===s.on?c.on("click.zoom",function(t){p?i():n(t),p=!p}):"mouseover"===s.on&&(e.init(),c.on("mouseenter.zoom",n).on("mouseleave.zoom",i).on(f,e.move)),s.touch&&c.on("touchstart.zoom",function(t){t.preventDefault(),g?(g=!1,i()):(g=!0,n(t.originalEvent.touches[0]||t.originalEvent.changedTouches[0]))}).on("touchmove.zoom",function(t){t.preventDefault(),e.move(t.originalEvent.touches[0]||t.originalEvent.changedTouches[0])}).on("touchend.zoom",function(t){t.preventDefault(),g&&(g=!1,i())}),t.isFunction(s.callback)&&s.callback.call(h)},h.src=s.url)})},t.fn.zoom.defaults=e}(window.jQuery),function(t){var e=!1;if("function"==typeof define&&define.amd&&(define(t),e=!0),"object"==typeof exports&&(module.exports=t(),e=!0),!e){var n=window.Cookies,i=window.Cookies=t();i.noConflict=function(){return window.Cookies=n,i}}}(function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}return function e(n){function i(e,o,r){var s;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(r=t({path:"/"},i.defaults,r)).expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*r.expires),r.expires=a}r.expires=r.expires?r.expires.toUTCString():"";try{s=JSON.stringify(o),/^[\{\[]/.test(s)&&(o=s)}catch(t){}o=n.write?n.write(o,e):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var l="";for(var c in r)r[c]&&(l+="; "+c,!0!==r[c]&&(l+="="+r[c]));return document.cookie=e+"="+o+l}e||(s={});for(var u=document.cookie?document.cookie.split("; "):[],h=/(%[0-9A-Z]{2})+/g,d=0;d<u.length;d++){var f=u[d].split("="),p=f.slice(1).join("=");'"'===p.charAt(0)&&(p=p.slice(1,-1));try{var g=f[0].replace(h,decodeURIComponent);if(p=n.read?n.read(p,g):n(p,g)||p.replace(h,decodeURIComponent),this.json)try{p=JSON.parse(p)}catch(t){}if(e===g){s=p;break}e||(s[g]=p)}catch(t){}}return s}}return i.set=i,i.get=function(t){return i.call(i,t)},i.getJSON=function(){return i.apply({json:!0},[].slice.call(arguments))},i.defaults={},i.remove=function(e,n){i(e,"",t(n,{expires:-1}))},i.withConverter=e,i}(function(){})}),function(){"use strict";function t(i){if(!i)throw new Error("No options passed to Waypoint constructor");if(!i.element)throw new Error("No element option passed to Waypoint constructor");if(!i.handler)throw new Error("No handler option passed to Waypoint constructor");
vendor: 5,279 bytes, line 1
1this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,i),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=i.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),n[this.key]=this,e+=1}var e=0,n={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete n[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var i in n)e.push(n[i]);for(var o=0,r=e.length;r>o;o++)e[o][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.invokeAll("enable")},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=o.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+n,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,i[t.waypointContextKey]=this,n+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var n=0,i={},o=window.Waypoint,r=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical);t&&e&&(this.adapter.off(".waypoints"),delete i[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,o.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||o.isTouch)&&(e.didScroll=!0,o.requestAnimationFrame(t))})},e.prototype.handleResize=function(){o.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var n in e){var i=e[n],o=i.newScroll>i.oldScroll?i.forward:i.backward;for(var r in this.waypoints[n]){var s=this.waypoints[n][r],a=i.oldScroll<s.triggerPoint,l=i.newScroll>=s.triggerPoint;(a&&l||!a&&!l)&&(s.queueTrigger(o),t[s.group.id]=s.group)}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?o.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?o.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var n in this.waypoints[e])t.push(this.waypoints[e][n]);for(var i=0,o=t.length;o>i;i++)t[i].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,n=e?void 0:this.adapter.offset(),i={};for(var r in this.handleScroll(),t={horizontal:{contextOffset:e?0:n.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:n.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var s=t[r];for(var a in this.waypoints[r]){var l,c,u,h,d=this.waypoints[r][a],f=d.options.offset,p=d.triggerPoint,g=0,m=null==p;d.element!==d.element.window&&(g=d.adapter.offset()[s.offsetProp]),"function"==typeof f?f=f.apply(d):"string"==typeof f&&(f=parseFloat(f),d.options.offset.indexOf("%")>-1&&(f=Math.ceil(s.contextDimension*f/100))),l=s.contextScroll-s.contextOffset,d.triggerPoint=g+l
1-f,c=p<s.oldScroll,u=d.triggerPoint>=s.oldScroll,h=!c&&!u,!m&&(c&&u)?(d.queueTrigger(s.backward),i[d.group.id]=d.group):!m&&h?(d.queueTrigger(s.forward),i[d.group.id]=d.group):m&&s.oldScroll>=d.triggerPoint&&(d.queueTrigger(s.forward),i[d.group.id]=d.group)}}return o.requestAnimationFrame(function(){for(var t in i)i[t].flushTriggers()}),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in i)i[t].refresh()},e.findByElement=function(t){return i[t.waypointContextKey]},window.onload=function(){r&&r(),e.refreshAll()},o.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},o.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function n(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),i[this.axis][this.name]=this}var i={vertical:{},horizontal:{}},o=window.Waypoint;n.prototype.add=function(t){this.waypoints.push(t)},n.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},n.prototype.flushTriggers=function(){for(var n in this.triggerQueues){var i=this.triggerQueues[n],o="up"===n||"left"===n;i.sort(o?e:t);for(var r=0,s=i.length;s>r;r+=1){var a=i[r];(a.options.continuous||r===i.length-1)&&a.trigger([n])}}this.clearTriggerQueues()},n.prototype.next=function(e){this.waypoints.sort(t);var n=o.Adapter.inArray(e,this.waypoints);return n===this.waypoints.length-1?null:this.waypoints[n+1]},n.prototype.previous=function(e){this.waypoints.sort(t);var n=o.Adapter.inArray(e,this.waypoints);return n?this.waypoints[n-1]:null},n.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},n.prototype.remove=function(t){var e=o.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},n.prototype.first=function(){return this.waypoints[0]},n.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},n.findOrCreate=function(t){return i[t.axis][t.name]||new n(t)},o.Group=n}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,n=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,n){t.prototype[n]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[n].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(n,i){t[i]=e[i]}),n.adapters.push({name:"jquery",Adapter:t}),n.Adapter=t}(),function(){"use strict";function t(t){return function(){var n=[],i=arguments[0];return t.isFunction(arguments[0])&&((i=t.extend({},arguments[1])).handler=arguments[0]),this.each(function(){var o=t.extend({},i,{element:this});"string"==typeof o.context&&(o.context=t(this).closest(o.context)[0]),n.push(new e(o))}),n}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}(),function(){"use strict";function t(i){this.options=e.extend({},t.defaults,i),this.container=this.options.element,"auto"!==this.options.container&&(this.container=this.options.container),this.$container=e(this.container),this.$more=e(this.options.more),this.$more.length&&(this.setupHandler(),this.waypoint=new n(this.options))}var e=window.jQuery,n=window.Waypoint;t.prototype.setupHandler=function(){this.options.handler=e.proxy(function(){this.options.onBeforePageLoad(),this.destroy(),this.$container.addClass(this.options.loadingClass),e.get(e(this.options.more).attr("href"),e.proxy(function(t){var i=e(e.parseHTML(t)),o=i.find(this.options.more),r=i.find(this.options.items);r.length||(r=i.filter(this.options.items)),this.$container.append(r),this.$container.removeClass(this.options.loadingClass),o.length||(o=i.filter(this.options.more)),o.length?(this.$more.replaceWith(o),this.$more=o,this.waypoint=new n(this.options)):this.$more.remove(),this.options.onAfterPageLoad(r)},this))},this)},t.prototype.destroy=function(){this.waypoint&&this.waypoint.destroy()},t.defaults={container:"auto",items:".infinite-item",more:".infinite-more-link",offset:"bottom-in-view",loadingClass:"infinite-loading",onBeforePageLoad:e.noop,onAfterPageLoad:e.noop},n.Infinite=t}(),PointerEventsPolyfill.initialize=function(t){return null==PointerEventsPolyfill.singleton&&(PointerEventsPolyfill.singleton=new PointerEventsPolyfill(t)),PointerEventsPolyfill.singleton},PointerEventsPolyfill.prototype.register_mouse_events=function(){$(document).on(this.options.mouseEvents.join(" "),this.options.selector,function(t){if("none"==$(this).css("pointer-events")){var e=$
1(this).css("display");$(this).css("display","none");var n=document.elementFromPoint(t.clientX,t.clientY);return e?$(this).css("display",e):$(this).css("display",""),t.target=n,$(n).trigger(t),!1}return!0})},String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.indexOf(t,e)===e}),function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(n){return e(t,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function n(n,r,a){(a=a||e||t.jQuery)&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[n]=function(t){return"string"==typeof t?function(t,e,i){var o,r="$()."+n+'("'+e+'")';return t.each(function(t,l){var c=a.data(l,n);if(c){var u=c[e];if(u&&"_"!=e.charAt(0)){var h=u.apply(c,i);o=void 0===o?h:o}else s(r+" is not a valid method")}else s(n+" not initialized. Cannot call methods, i.e. "+r)}),void 0!==o?o:t}(this,t,o.call(arguments,1)):(function(t,e){t.each(function(t,i){var o=a.data(i,n);o?(o.option(e),o._init()):(o=new r(i,e),a.data(i,n,o))})}(this,t),this)},i(a))}function i(t){!t||t&&t.bridget||(t.bridget=n)}var o=Array.prototype.slice,r=t.console,s=void 0===r?function(){}:function(t){r.error(t)};return i(e||t.jQuery),n}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},i=n[t]=n[t]||[];return-1==i.indexOf(e)&&i.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var i=n.indexOf(e);return-1!=i&&n.splice(i,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var i=this._onceEvents&&this._onceEvents[t],o=0;o<n.length;o++){var r=n[o];i&&i[r]&&(this.off(t,r),delete i[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function e(t){var e=getComputedStyle(t);return e||r("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function n(){if(!l){l=!0;var n=document.createElement("div");n.style.width="200px",n.style.padding="1px 2px 3px 4px",n.style.borderStyle="solid",n.style.borderWidth="1px 2px 3px 4px",n.style.boxSizing="border-box";var r=document.body||document.documentElement;r.appendChild(n);var s=e(n);o=200==Math.round(t(s.width)),i.isBoxSizeOuter=o,r.removeChild(n)}}function i(i){if(n(),"string"==typeof i&&(i=document.querySelector(i)),i&&"object"==typeof i&&i.nodeType){var r=e(i);if("none"==r.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<a;e++)t[s[e]]=0;return t}();var l={};l.width=i.offsetWidth,l.height=i.offsetHeight;for(var c=l.isBorderBox="border-box"==r.boxSizing,u=0;u<a;u++){var h=s[u],d=r[h],f=parseFloat(d);l[h]=isNaN(f)?0:f}var p=l.paddingLeft+l.paddingRight,g=l.paddingTop+l.paddingBottom,m=l.marginLeft+l.marginRight,v=l.marginTop+l.marginBottom,y=l.borderLeftWidth+l.borderRightWidth,b=l.borderTopWidth+l.borderBottomWidth,w=c&&o,x=t(r.width);!1!==x&&(l.width=x+(w?0:p+y));var S=t(r.height);return!1!==S&&(l.height=S+(w?0:g+b)),l.innerWidth=l.width-(p+y),l.innerHeight=l.height-(g+b),l.outerWidth=l.width+m,l.outerHeight=l.height+v,l}}var o,r="undefined"==typeof console?function(){}:function(t){console.error(t)},s=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],a=s.length,l=!1;return i}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],n=0;n<e.length;n++){var i=e[n]+"MatchesSelector";if(t[i])return i}}();return function(e,n){return e[t](n)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["de
1sandro-matches-selector/matches-selector"],function(n){return e(t,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var n={extend:function(t,e){for(var n in e)t[n]=e[n];return t},modulo:function(t,e){return(t%e+e)%e}},i=Array.prototype.slice;n.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?i.call(t):[t]},n.removeFrom=function(t,e){var n=t.indexOf(e);-1!=n&&t.splice(n,1)},n.getParent=function(t,n){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,n))return t},n.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},n.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},n.filterFindElements=function(t,i){t=n.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!i)return void o.push(t);e(t,i)&&o.push(t);for(var n=t.querySelectorAll(i),r=0;r<n.length;r++)o.push(n[r])}}),o},n.debounceMethod=function(t,e,n){n=n||100;var i=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){i.apply(r,e),delete r[o]},n)}},n.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},n.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,n){return e+"-"+n}).toLowerCase()};var o=t.console;return n.htmlInit=function(e,i){n.docReady(function(){var r=n.toDashed(i),s="data-"+r,a=document.querySelectorAll("["+s+"]"),l=d
1ocument.querySelectorAll(".js-"+r),c=n.makeArray(a).concat(n.makeArray(l)),u=s+"-options",h=t.jQuery;c.forEach(function(t){var n,r=t.getAttribute(s)||t.getAttribute(u);try{n=r&&JSON.parse(r)}catch(e){return void(o&&o.error("Error parsing "+s+" on "+t.className+": "+e))}var a=new e(t,n);h&&h.data(t,i,a)})})},n}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/cell",["get-size/get-size"],function(n){return e(t,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("get-size")):(t.Flickity=t.Flickity||{},t.Flickity.Cell=e(t,t.getSize))}(window,function(t,e){function n(t,e){this.element=t,this.parent=e,this.create()}var i=n.prototype;return i.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-selected","false"),this.x=0,this.shift=0},i.destroy=function(){this.element.style.position="";var t=this.parent.originSide;this.element.removeAttribute("aria-selected"),this.element.style[t]=""},i.getSize=function(){this.size=e(this.element)},i.setPosition=function(t){this.x=t,this.updateTarget(),this.renderPosition(t)},i.updateTarget=i.setDefaultTarget=function(){var t="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign},i.renderPosition=function(t){var e=this.parent.originSide;this.element.style[e]=this.parent.getPositionValue(t)},i.wrapShift=function(t){this.shift=t,this.renderPosition(this.x+this.parent.slideableWidth*t)},i.remove=function(){this.element.parentNode.removeChild(this.element)},n}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/slide",e):"object"==typeof module&&module.exports?module.exports=e():(t.Flickity=t.Flickity||{},t.Flickity.Slide=e())}(window,function(){"use strict";function t(t){this.parent=t,this.isOriginLeft="left"==t.originSide,this.cells=[],this.outerWidth=0,this.height=0}var e=t.prototype;return e.addCell=function(t){if(this.cells.push(t),this.outerWidth+=t.size.outerWidth,this.height=Math.max(t.size.outerHeight,this.height),1==this.cells.length){this.x=t.x;var e=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=t.size[e]}},e.updateTarget=function(){var t=this.isOriginLeft?"marginRight":"marginLeft",e=this.getLastCell(),n=e?e.size[t]:0,i=this.outerWidth-(this.firstMargin+n);this.target=this.x+this.firstMargin+i*this.parent.cellAlign},e.getLastCell=function(){return this.cells[this.cells.length-1]},e.select=function(){this.changeSelected(!0)},e.unselect=function(){this.changeSelected(!1)},e.changeSelected=function(t){var e=t?"add":"remove";this.cells.forEach(function(n){n.element.classList[e]("is-selected"),n.element.setAttribute("aria-selected",t.toString())})},e.getCellElements=function(){return this.cells.map(function(t){return t.element})},t}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/animate",["fizzy-ui-utils/utils"],function(n){return e(t,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("fizzy-ui-utils")):(t.Flickity=t.Flickity||{},t.Flickity.animatePrototype=e(t,t.fizzyUIUtils))}(window,function(t,e){var n={startAnimation:function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},animate:function(){this.applyDragForce(),this.applySelectedAttraction();var t=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(t),this.isAnimating){var e=this;requestAnimationFrame(function(){e.animate()})}},positionSlider:function(){var t=this.x;this.options.wrapAround&&this.cells.length>1&&(t=e.modulo(t,this.slideableWidth),t-=this.slideableWidth,this.shiftWrapCells(t)),t+=this.cursorPosition,t=this.options.rightToLeft?-t:t;var n=this.getPositionValue(t);this.slider.style.transform=this.isAnimating?"translate3d("+n+",0,0)":"translateX("+n+")";var i=this.slides[0];if(i){var o=-this.x-i.target,r=o/this.slidesWidth;this.dispatchEvent("scroll",null,[r,o])}},positionSliderAtSelected:function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},getPositionValue:function(t){return this.options.percentPosition?.01*Math.round(t/this.size.innerWidth*1e4)+"%":Math.round(t)+"px"},settle:function(t){this.isPointerDown||Math.round(100*this.x)!=Math.round(100*t)||this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},shiftWrapCells:function(t){var e=this.cursorPosition+t;this._shiftCells(this.beforeShiftCells,e,-1);var n=this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,n,1)},_shiftCells:function(t,e,n){for(var i=0;i<t.length;i++){var o=t[i],r=e>0?n:0;o.wrapShift(r),e-=o.size.outerWidth}},_unshiftCells:function(t){if(t&&t.length)for(var e=0;e<t.length;e++)t[e].wrapShift(0)},integratePhysics:function(){this.x+=this.velocity,this.velocity
vendor: 13,813 bytes, line 1
1*=this.getFrictionFactor()},applyForce:function(t){this.velocity+=t},getFrictionFactor:function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},getRestingPosition:function(){return this.x+this.velocity/(1-this.getFrictionFactor())},applyDragForce:function(){if(this.isDraggable&&this.isPointerDown){var t=this.dragX-this.x-this.velocity;this.applyForce(t)}},applySelectedAttraction:function(){if(!(this.isDraggable&&this.isPointerDown)&&!this.isFreeScrolling&&this.slides.length){var t=(-1*this.selectedSlide.target-this.x)*this.options.selectedAttraction;this.applyForce(t)}}};return n}),function(t,e){if("function"==typeof define&&define.amd)define("flickity/js/flickity",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./cell","./slide","./animate"],function(n,i,o,r,s,a){return e(t,n,i,o,r,s,a)});else if("object"==typeof module&&module.exports)module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./slide"),require("./animate"));else{var n=t.Flickity;t.Flickity=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,n.Cell,n.Slide,n.animatePrototype)}}(window,function(t,e,n,i,o,r,s){function a(t,e){for(t=i.makeArray(t);t.length;)e.appendChild(t.shift())}function l(t,e){var n=i.getQueryElement(t);if(n){if(this.element=n,this.element.flickityGUID){var o=f[this.element.flickityGUID];return o.option(e),o}c&&(this.$element=c(this.element)),this.options=i.extend({},this.constructor.defaults),this.option(e),this._create()}else h&&h.error("Bad element for Flickity: "+(n||t))}var c=t.jQuery,u=t.getComputedStyle,h=t.console,d=0,f={};l.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},l.createMethods=[];var p=l.prototype;i.extend(p,e.prototype),p._create=function(){var e=this.guid=++d;for(var n in this.element.flickityGUID=e,f[e]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),(this.options.resize||this.options.watchCSS)&&t.addEventListener("resize",this),this.options.on){var i=this.options.on[n];this.on(n,i)}l.createMethods.forEach(function(t){this[t]()},this),this.options.watchCSS?this.watchCSS():this.activate()},p.option=function(t){i.extend(this.options,t)},p.activate=function(){if(!this.isActive){this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize(),a(this._filterFindCellElements(this.element.children),this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate");var t,e=this.options.initialIndex;t=this.isInitActivated?this.selectedIndex:void 0!==e&&this.cells[e]?e:0,this.select(t,!1,!0),this.isInitActivated=!0,this.dispatchEvent("ready")}},p._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider",t.style[this.originSide]=0,this.slider=t},p._filterFindCellElements=function(t){return i.filterFindElements(t,this.options.cellSelector)},p.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},p._makeCells=function(t){return this._filterFindCellElements(t).map(function(t){return new o(t,this)},this)},p.getLastCell=function(){return this.cells[this.cells.length-1]},p.getLastSlide=function(){return this.slides[this.slides.length-1]},p.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},p._positionCells=function(t){t=t||0,this.maxCellHeight=t&&this.maxCellHeight||0;var e=0;if(t>0){var n=this.cells[t-1];e=n.x+n.size.outerWidth}for(var i=this.cells.length,o=t;o<i;o++){var r=this.cells[o];r.setPosition(e),e+=r.size.outerWidth,this.maxCellHeight=Math.max(r.size.outerHeight,this.maxCellHeight)}this.slideableWidth=e,this.updateSlides(),this._containSlides(),this.slidesWidth=i?this.getLastSlide().target-this.slides[0].target:0},p._sizeCells=function(t){t.forEach(function(t){t.getSize()})},p.updateSlides=function(){if(this.slides=[],this.cells.length){var t=new r(this);this.slides.push(t);var e="left"==this.originSide?"marginRight":"marginLeft",n=this._getCanCellFit();this.cells.forEach(function(i,o){if(t.cells.length){var s=t.outerWidth-t.firstMargin+(i.size.outerWidth-i.size[e]);n.call(this,o,s)?t.addCell(i):(t.updateTarget(),t=new r(this),this.slides.push(t),t.addCell(i))}else t.addCell(i)},this),t.updateTarget(),this.updateSelectedSlide()}},p._getCanCellFit=function(){var t=this.options.groupCells;if(!t)return function(){return!1};if("number"==typeof t){var e=parseInt(t,10);return function(t){return t%e!=0}}var n="string"==typeof t&&t.match(/^(\d+)%$/),i=n?parseInt(n[1],10)/100:1;return function(t,e){return e<=(this.size.innerWidth+1)*i}},p._init=p.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},p.getSize=function(){this.size=n(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var g={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return p.setCellAlign=function(){var t=g[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign},p.setGallerySize=function(){if(this.options.setGallerySize){var t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=t+"px"}},p._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var t=this.cursorPosition,e=this.cells.length-1;this.beforeShiftCells=this._getGapCells(t,e,-1),t=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(t,0,1)}},p._getGapCells=function(t,e,n){for(var i=[];t>0;){var o=this.cells[e];if(!o)break;i.push(o),e+=n,t-=o.size.outerWidth}return i},p._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var t=this.options.rightToLeft,e=t?"marginRight":"marginLeft",n=t?"marginLeft":"marginRight",i=this.slideableWidth-this.getLastCell().size[n],o=i<this.size.innerWidth,r=this.cursorPosition+this.cells[0].size[e],s=i-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(t){o?t.target=i*this.cellAlign:(t.target=Math.max(t.target,r),t.target=Math.min(t.target,s))},this)}},p.dispatchEvent=function(t,e,n){var i=e?[e].concat(n):n;if(this.emitEvent(t,i),c&&this.$element){var o=t+=this.options.namespaceJQueryEvents?".flickity":"";if(e){var r=c.Event(e);r.type=t,o=r}this.$element.trigger(o,n)}},p.select=function(t,e,n){if(this.isActive&&(t=parseInt(t,10),this._wrapSelect(t),(this.options.wrapAround||e)&&(t=i.modulo(t,this.slides.length)),this.slides[t])){var o=this.selectedIndex;this.selectedIndex=t,this.updateSelectedSlide(),n?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[t]),t!=o&&this.dispatchEvent("change",null,[t]),this.dispatchEvent("cellSelect")}},p._wrapSelect=function(t){var e=this.slides.length;if(!(this.options.wrapAround&&e>1))return t;var n=i.modulo(t,e),o=Math.abs(n-this.selectedIndex),r=Math.abs(n+e-this.selectedIndex),s=Math.abs(n-e-this.selectedIndex);!this.isDragSelect&&r<o?t+=e:!this.isDragSelect&&s<o&&(t-=e),t<0?this.x-=this.slideableWidth:t>=e&&(this.x+=this.slideableWidth)},p.previous=function(t,e){this.select(this.selectedIndex-1,t,e)},p.next=function(t,e){this.select(this.selectedIndex+1,t,e)},p.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),this.selectedSlide=t,t.select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},p.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},p.selectCell=function(t,e,n){var i=this.queryCell(t);if(i){var o=this.getCellSlideIndex(i);this.select(o,e,n)}},p.getCellSlideIndex=function(t){for(var e=0;e<this.slides.length;e++){if(-1!=this.slides[e].cells.indexOf(t))return e}},p.getCell=function(t){for(var e=0;e<this.cells.length;e++){var n=this.cells[e];if(n.element==t)return n}},p.getCells=function(t){t=i.makeArray(t);var e=[];return t.forEach(function(t){var n=this.getCell(t);n&&e.push(n)},this),e},p.getCellElements=function(){return this.cells.map(function(t){return t.element})},p.getParentCell=function(t){var e=this.getCell(t);return e||(t=i.getParent(t,".flickity-slider > *"),this.getCell(t))},p.getAdjacentCellElements=function(t,e){if(!t)return this.selectedSlide.getCellElements();e=void 0===e?this.selectedIndex:e;var n=this.slides.length;if(1+2*t>=n)return this.getCellElements();for(var o=[],r=e-t;r<=e+t;r++){var s=this.options.wrapAround?i.modulo(r,n):r,a=this.slides[s];a&&(o=o.concat(a.getCellElements()))}return o},p.queryCell=function(t){return"number"==typeof t?this.cells[t]:("string"==typeof t&&(t=this.element.querySelector(t)),this.getCell(t))},p.uiChange=function(){this.emitEvent("uiChange")},p.childUIPointerDown=function(t){this.emitEvent("childUIPointerDown",[t])},p.onresize=function(){this.watchCSS(),this.resize()},i.debounceMethod(l,"onresize",150),p.resize=function(){if(this.isActive){this.getSize(),this.options.wrapAround&&(this.x=i.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var t=this.selectedElements&&this.selectedElements[0];this.selectCell(t,!1,!0)}},p.watchCSS=function(){this.options.watchCSS&&(-1!=u(this.element,":after").content.indexOf("flickity")?this.activate():this.deactivate())},p.onkeydown=function(t){var e=document.activeElement&&document.activeElement!=this.element;if(this.options.accessibility&&!e){var n=l.keyboardHandlers[t.keyCode];n&&n.call(this)}},l.keyboardHandlers={37:function(){var t=this.options.rightToLeft?"next":"previous";this.uiChange(),this[t]()},39:function(){var t=this.options.rightToLeft?"previous":"next";this.uiChange(),this[t]()}},p.focus=function(){var e=t.pageYOffset;this.element.focus({preventScroll:!0}),t.pageYOffset!=e&&t.scrollTo(t.pageXOffset,e)},p.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(function(t){t.destroy()}),this.element.removeChild(this.viewport),a(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},p.destroy=function(){this.deactivate(),t.removeEventListener("resize",this),this.emitEvent("destroy"),c&&this.$element&&c.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete f[this.guid]},i.extend(p,s),l.data=function(t){var e=(t=i.getQueryElement(t))&&t.flickityGUID;return e&&f[e]},i.htmlInit(l,"flickity"),c&&c.bridget&&c.bridget("flickity",l),l.setJQuery=function(t){c=t},l.Cell=o,l}),function(t,e){"function"==typeof define&&define.amd?define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(n){return e(t,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.Unipointer=e(t,t.EvEmitter)}(window,function(t,e){function n(){}var i=n.prototype=Object.create(e.prototype);i.bindStartEvent=function(t){this._bindStartEvent(t,!0)},i.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},i._bindStartEvent=function(e,n){var i=(n=void 0===n||n)?"addEventListener":"removeEventListener",o="mousedown";t.PointerEvent?o="pointerdown":"ontouchstart"in t&&(o="touchstart"),e[i](o,this)},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.getTouch=function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.identifier==this.pointerIdentifier)return n}},i.onmousedown=function(t){var e=t.button;e&&0!==e&&1!==e||this._pointerDown(t,t)},i.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},i.onpointerdown=function(t){this._pointerDown(t,t)},i._pointerDown=function(t,e){t.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==e.pointerId?e.pointerId:e.identifier,this.pointerDown(t,e))},i.pointerDown=function(t,e){this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e])};var o={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return i._bindPostStartEvents=function(e){if(e){var n=o[e.type];n.forEach(function(e){t.addEventListener(e,this)},this),this._boundPointerEvents=n}},i._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(e){t.removeEventListener(e,this)},this),delete this._boundPointerEvents)},i.onmousemove=function(t){this._pointerMove(t,t)},i.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},i.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerMove(t,e)},i._pointerMove=function(t,e){this.pointerMove(t,e)},i.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])},i.onmouseup=function(t){this._pointerUp(t,t)},i.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},i.ontouchend=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerUp(t,e)},i._pointerUp=function(t,e){this._pointerDone(),this.pointerUp(t,e)},i.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])}
1,i._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},i._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},i.pointerDone=function(){},i.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},i.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerCancel(t,e)},i._pointerCancel=function(t,e){this._pointerDone(),this.pointerCancel(t,e)},i.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])},n.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}},n}),function(t,e){"function"==typeof define&&define.amd?define("unidragger/unidragger",["unipointer/unipointer"],function(n){return e(t,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("unipointer")):t.Unidragger=e(t,t.Unipointer)}(window,function(t,e){function n(){}var i=n.prototype=Object.create(e.prototype);i.bindHandles=function(){this._bindHandles(!0)},i.unbindHandles=function(){this._bindHandles(!1)},i._bindHandles=function(e){for(var n=(e=void 0===e||e)?"addEventListener":"removeEventListener",i=e?this._touchActionValue:"",o=0;o<this.handles.length;o++){var r=this.handles[o];this._bindStartEvent(r,e),r[n]("click",this),t.PointerEvent&&(r.style.touchAction=i)}},i._touchActionValue="none",i.pointerDown=function(t,e){this.okayPointerDown(t)&&(this.pointerDownPointer=e,t.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e]))};var o={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},r={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return i.okayPointerDown=function(t){var e=o[t.target.nodeName],n=r[t.target.type],i=!e||n;return i||this._pointerReset(),i},i.pointerDownBlur=function(){var t=document.activeElement;t&&t.blur&&t!=document.body&&t.blur()},i.pointerMove=function(t,e){var n=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,n]),this._dragMove(t,e,n)},i._dragPointerMove=function(t,e){var n={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(n)&&this._dragStart(t,e),n},i.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3},i.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]),this._dragPointerUp(t,e)},i._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},i._dragStart=function(t,e){this.isDragging=!0,this.isPreventing
vendor: 6,764 bytes, line 1
1Clicks=!0,this.dragStart(t,e)},i.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},i._dragMove=function(t,e,n){this.isDragging&&this.dragMove(t,e,n)},i.dragMove=function(t,e,n){t.preventDefault(),this.emitEvent("dragMove",[t,e,n])},i._dragEnd=function(t,e){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(t,e)},i.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},i.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},i._staticClick=function(t,e){this.isIgnoringMouseUp&&"mouseup"==t.type||(this.staticClick(t,e),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},i.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},n.getPointerPoint=e.getPointerPoint,n}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(n,i,o){return e(t,n,i,o)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("unidragger"),require("fizzy-ui-utils")):t.Flickity=e(t,t.Flickity,t.Unidragger,t.fizzyUIUtils)}(window,function(t,e,n,i){function o(){return{x:t.pageXOffset,y:t.pageYOffset}}i.extend(e.defaults,{draggable:">1",dragThreshold:3}),e.createMethods.push("_createDrag");var r=e.prototype;i.extend(r,n.prototype),r._touchActionValue="pan-y";var s="createTouch"in document,a=!1;r._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("childUIPointerDown",this._childUIPointerDownDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable),s&&!a&&(t.addEventListener("touchmove",function(){}),a=!0)},r.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},r.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},r.updateDraggable=function(){">1"==this.options.draggable?this.isDraggable=this.slides.length>1:this.isDraggable=this.options.draggable,this.isDraggable?this.element.classList.add("is-draggable"):this.element.classList.remove("is-draggable")},r.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},r.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},r._uiChangeDrag=function(){delete this.isFreeScrolling},r._childUIPointerDownDrag=function(t){t.preventDefault(),this.pointerDownFocus(t)},r.pointerDown=function(e,n){this.isDraggable?this.okayPointerDown(e)&&(this._pointerDownPreventDefault(e),this.pointerDownFocus(e),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=o(),t.addEventListener("scroll",this),this._pointerDownDefault(e,n)):this._pointerDownDefault(e,n)},r._pointerDownDefault=function(t,e){this.pointerDownPointer=e,this._bindPostStartEvents(t),this.dispatchEvent("pointerDown",t,[e])};var l={INPUT:!0,TEXTAREA:!0,SELECT:!0};return r.pointerDownFocus=function(t){l[t.target.nodeName]||this.focus()},r._pointerDownPreventDefault=function(t){var e="touchstart"==t.type,n="touch"==t.pointerType,i=l[t.target.nodeName];e||n||i||t.preventDefault()},r.hasDragStarted=function(t){return Math.abs(t.x)>this.options.dragThreshold},r.pointerUp=function(t,e){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",t,[e]),this._dragPointerUp(t,e)},r.pointerDone=function(){t.removeEventListener("scroll",this),delete this.pointerDownScroll},r.dragStart=function(e,n){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),t.removeEventListener("scroll",this),this.dispatchEvent("dragStart",e,[n]))},r.pointerMove=function(t,e){var n=this._dragPointerMove(t,e);this.dispatchEvent("pointerMove",t,[e,n]),this._dragMove(t,e,n)},r.dragMove=function(t,e,n){if(this.isDraggable){t.preventDefault(),this.previousDragX=this.dragX;var i=this.options.rightToLeft?-1:1;this.options.wrapAround&&(n.x=n.x%this.slideableWidth);var o=this.dragStartPosition+n.x*i;if(!this.options.wrapAround&&this.slides.length){var r=Math.max(-this.slides[0].target,this.dragStartPosition);o=o>r?.5*(o+r):o;var s=Math.min(-this.getLastSlide().target,this.dragStartPosition);o=o<s?.5*(o+s):o}this.dragX=o,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",t,[e,n])}},r.dragEnd=function(t,e){if(this.isDraggable){this.options.freeScroll&&(this.isFreeScrolling=!0);var n=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var i=this.getRestingPosition();this.isFreeScrolling=-i>this.slides[0].target&&-i<this.getLastSlide().target}else this.options.freeScroll||n!=this.selectedIndex||(n+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(n),delete this.isDragSelect,this.dispatchEvent("dragEnd",t,[e])}},r.dragEndRestingSelect=function(){var t=this.getRestingPosition(),e=Math.abs(this.getSlideDistance(-t,this.selectedIndex)),n=this._getClosestResting(t,e,1),i=this._getClosestResting(t,e,-1);return n.distance<i.distance?n.index:i.index},r._getClosestResting=function(t,e,n){for(var i=this.selectedIndex,o=1/0,r=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};r(e,o)&&(i+=n,o=e,null!==(e=this.getSlideDistance(-t,i)));)e=Math.abs(e);return{distance:o,index:i-n}},r.getSlideDistance=function(t,e){var n=this.slides.length,o=this.options.wrapAround&&n>1,r=o?i.modulo(e,n):e,s=this.slides[r];if(!s)return null;var a=o?this.slideableWidth*Math.floor(e/n):0;return t-(s.target+a)},r.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var t=this.getSlideDistance(-this.dragX,this.selectedIndex),e=this.previousDragX-this.dragX;return t>0&&e>0?1:t<0&&e<0?-1:0},r.staticClick=function(t,e){var n=this.getParentCell(t.target),i=n&&n.element,o=n&&this.cells.indexOf(n);this.dispatchEvent("staticClick",t,[e,i,o])},r.onscroll=function(){var t=o(),e=this.pointerDownScroll.x-t.x,n=this.pointerDownScroll.y-t.y;(Math.abs(e)>3||Math.abs(n)>3)&&this._pointerDone()},e}),function(t,e){"function"==typeof define&&define.amd?define("tap-listener/tap-listener",["unipointer/unipointer"],function(n){return e(t,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("unipointer")):t.TapListener=e(t,t.Unipointer)}(window,function(t,e){function n(t){this.bindTap(t)}var i=n.prototype=Object.create(e.prototype);return i.bindTap=function(t){t&&(this.unbindTap(),this.tapElement=t,this._bindStartEvent(t,!0))},i.unbindTap=function(){this.tapElement&&(this._bindStartEvent(this.tapElement,!0),delete this.tapElement)}
1,i.pointerUp=function(n,i){if(!this.isIgnoringMouseUp||"mouseup"!=n.type){var o=e.getPointerPoint(i),r=this.tapElement.getBoundingClientRect(),s=t.pageXOffset,a=t.pageYOffset;if(o.x>=r.left+s&&o.x<=r.right+s&&o.y>=r.top+a&&o.y<=r.bottom+a&&this.emitEvent("tap",[n,i]),"mouseup"!=n.type){this.isIgnoringMouseUp=!0;var l=this;setTimeout(function(){delete l.isIgnoringMouseUp},400)}}},i.destroy=function(){this.pointerDone(),this.unbindTap()},n}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/prev-next-button",["./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(n,i,o){return e(t,n,i,o)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):e(t,t.Flickity,t.TapListener,t.fizzyUIUtils)}(window,function(t,e,n,i){"use strict";function o(t,e){this.direction=t,this.parent=e,this._create()}var r="http://www.w3.org/2000/svg";o.prototype=Object.create(n.prototype),o.prototype._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;var e=this.element=document.createElement("button");e.className="flickity-button flickity-prev-next-button",e.className+=this.isPrevious?" previous":" next",e.setAttribute("type","button"),this.disable(),e.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var n=this.createSVG();e.appendChild(n),this.on("tap",this.onTap),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},o.prototype.activate=function(){this.bindTap(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},o.prototype.deactivate=function(){this.parent.element.removeChild(this.element),n.prototype.destroy.call(this),this.element.removeEventListener("click",this)},o.prototype.createSVG=function(){var t=document.createElementNS(r,"svg");t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 100 100");var e=document.createElementNS(r,"path"),n=function(t){return"string"==typeof t?t:"M "+t.x0+",50 L "+t.x1+","+(t.y1+50)+" L "+t.x2+","+(t.y2+50)+" L "+t.x3+",50 L "+t.x2+","+(50-t.y2)+" L "+t.x1+","+(50-t.y1)+" Z"}(this.parent.options.arrowShape);return e.setAttribute("d",n),e.setAttribute("class","arrow"),this.isLeft||e.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(e),t},o.prototype.onTap=function(){if(this.isEnabled){this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()}},o.prototype.handleEvent=i.handleEvent,o.prototype.onclick=function(t){var e=document.activeElement;e&&e==this.element&&this.onTap(t,t)},o.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},o.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},o.prototype.update=function(){var t=this.parent.slides;if(this.parent.options.wrapAround&&t.length>1)this.enable();else{var e=t.length?t.length-1:0,n=this.isPrevious?0:e;this[this.parent.selectedIndex==n?"disable":"enable"]()}},o.prototype.destroy=function(){this.deactivate()},i.extend(e.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),e.createMethods.push("_createPrevNextButtons");var s=e.prototype;return s._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new o(-1,this),this.nextButton=new o(1,this),this.on("activate",this.activatePrevNextButtons))},s.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},s.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},e.PrevNextButton=o,e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/page-dots",["./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(n,i,o){return e(t,n,i,o)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):e(t,t.Flickity,t.TapListener,t.fizzyUIUtils)}(window,function(t,e,n,i){function o(t){this.parent=t,this._create()}o.prototype=new n,o.prototype._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.on("tap",this.onTap),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},o.prototype.activate=function(){this.setDots(),this.bindTap(this.holder),this.parent.element.appendChild(this.holder)},o.prototype.deactivate=function(){this.parent.element.removeChild(this.holder),n.prototype.destroy.call(this)},o.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;t>0?this.addDots(t):t<0&&this.removeDots(-t)},o.prototype.addDots=function(t){for(var e=document.createDocumentFragment(),n=[],i=this.dots.length,o=i+t,r=i;r<o;r++){var s=document.createElement("li");s.className="dot",s.setAttribute("aria-label","Page dot "+(r+1)),e.appendChild(s),n.push(s)}this.holder.appendChild(e),this.dots=this.dots.concat(n)},o.prototype.removeDots=function(t){this.dots.splice(this.dots.length-t,t).forEach(function(t){this.holder.removeChild(t)},this)},o.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},o.prototype.onTap=function(t){var e=t.target;if("LI"==e.nodeName){this.parent.uiChange();var n=this.dots.indexOf(e);this.parent.select(n)}},o.prototype.destroy=function(){this.deactivate()},e.PageDots=o,i.extend(e.defaults,{pageDots:!0}),e.createMethods.push("_createPageDots");var r=e.prototype;return r._createPageDots=function(){this.options.pageDots&&(this.pageDots=new o(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},r.activatePageDots=function(){this.pageDots.activate()},r.updateSelectedPageDots=function(){this.pageDots.updateSelected()},r.updatePageDots=function(){this.pageDots.setDots()},r.deactivatePageDots=function(){this.pageDots.deactivate()},e.PageDots=o,e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],function(t,n,i){return e(t,n,i)}):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity")):e(t.EvEmitter,t.fizzyUIUtils,t.Flickity)}(window,function(t,e,n){function i(t){this.parent=t,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}i.prototype=Object.create(t.prototype),i.prototype.play=function(){if("playing"!=this.state){if(document.hidden)return void document.addEventListener("visibilitychange",this.onVisibilityPlay);this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()}},i.prototype.tick=function(){if("playing"==this.state){var t=this.parent.options.autoPlay;t="number"==typeof t?t:3e3;var e=this;this.clear(),this.timeout=setTimeout(function(){e.parent.next(!0),e.tick()},t)}},i.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},i.prototype.clear=function(){clearTimeout(this.timeout)},i.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},i.prototype.unpause=function(){"paused"==this.state&&this.play()},i.prototype.visibilityChange=function(){this[document.hidden?"pause":"unpause"]()},i.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},e.extend(n.defaults,{pauseAutoPlayOnHover:!0}),n.createMethods.push("_createPlayer");var o=n.prototype;return o._createPlayer=function(){this.player=new i(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},o.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},o.playPlayer=function(){this.player.play()},o.stopPlayer=function(){this.player.stop()},o.pausePlayer=function(){this.player.pause()},o.unpausePlayer=function(){this.player.unpause()},o.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},o.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},o.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},n.Player=i,n}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(n,i){return e(t,n,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("fizzy-ui-utils")):e(t,t.Flickity,t.fizzyUIUtils)}(window,function(t,e,n){var i=e.prototype;return i.insert=function(t,e){var n=this._makeCells(t);if(n&&n.length){var i=this.cells.length;e=void 0===e?i:e;var o=function(t){var e=document.createDocumentFragment();return t.forEach(function(t){e.appendChild(t.element)}),e}(n),r=e==i;
1if(r)this.slider.appendChild(o);else{var s=this.cells[e].element;this.slider.insertBefore(o,s)}if(0===e)this.cells=n.concat(this.cells);else if(r)this.cells=this.cells.concat(n);else{var a=this.cells.splice(e,i-e);this.cells=this.cells.concat(n).concat(a)}this._sizeCells(n),this.cellChange(e,!0)}},i.append=function(t){this.insert(t,this.cells.length)},i.prepend=function(t){this.insert(t,0)},i.remove=function(t){var e=this.getCells(t);if(e&&e.length){var i=this.cells.length-1;e.forEach(function(t){t.remove();var e=this.cells.indexOf(t);i=Math.min(e,i),n.removeFrom(this.cells,t)},this),this.cellChange(i,!0)}},i.cellSizeChange=function(t){var e=this.getCell(t);if(e){e.getSize();var n=this.cells.indexOf(e);this.cellChange(n)}},i.cellChange=function(t,e){var n=this.selectedElement;this._positionCells(t),this._getWrapShiftCells(),this.setGallerySize();var i=this.getCell(n);i&&(this.selectedIndex=this.getCellSlideIndex(i)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[t]),this.select(this.selectedIndex),e&&this.positionSliderAtSelected()},e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],function(n,i){return e(t,n,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("fizzy-ui-utils")):e(t,t.Flickity,t.fizzyUIUtils)}(window,function(t,e,n){"use strict";function i(t){if("IMG"==t.nodeName){var e=t.getAttribute("data-flickity-lazyload"),i=t.getAttribute("data-flickity-lazyload-src"),o=t.getAttribute("data-flickity-lazyload-srcset");if(e||i||o)return[t]}var r=t.querySelectorAll("img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]");return n.makeArray(r)}function o(t,e){this.img=t,this.flickity=e,this.load()}e.createMethods.push("_createLazyload");var r=e.prototype;return r._createLazyload=function(){this.on("select",this.lazyLoad)},r.lazyLoad=function(){var t=this.options.lazyLoad;if(t){var e="number"==typeof t?t:0,n=this.getAdjacentCellElements(e),r=[];n.forEach(function(t){var e=i(t);r=r.concat(e)}),r.forEach(function(t){new o(t,this)},this)}},o.prototype.handleEvent=n.handleEvent,o.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var t=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),e=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t,e&&this.img.setAttribute("srcset",e),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},o.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},o.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},o.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var n=this.flickity.getParentCell(this.img),i=n&&n.element;this.flickity.cellSizeChange(i),this.img.classList.add(e),this.flickity.dispatchEvent("lazyLoad",t,i)},e.LazyLoader=o,e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],e):"object"==typeof module&&module.exports&&(module.exports=e(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload")))}(window,function(t){return t}),function(t,e){"function"==typeof define&&define.amd?define("flickity-as-nav-for/as-nav-for",["flickity/js/index","fizzy-ui-utils/utils"],e):"object"==typeof module&&module.exports?module.exports=e(require("flickity"),require("fizzy-ui-utils")):t.Flickity=e(t.Flickity,t.fizzyUIUtils)}(window,function(t,e){t.createMethods.push("_createAsNavFor");var n=t.prototype;return n._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var t=this.options.asNavFor;if(t){var e=this;setTimeout(function(){e.setNavCompanion(t)})}},n.setNavCompanion=function(n){n=e.getQueryElement(n);var i=t.data(n);if(i&&i!=this){this.navCompanion=i;var o=this;this.onNavCompanionSelect=function(){o.navCompanionSelect()},i.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect(!0)}},n.navCompanionSelect=function(t){if(this.navCompanion){var e=this.navCompanion.selectedCells[0],n=this.navCompanion.cells.indexOf(e),i=n+this.navCompanion.selectedCells.length-1,o=Math.floor(function(t,e,n){return(e-t)*n+t}(n,i,this.navCompanion.cellAlign));if(this.selectCell(o,!1,t),this.removeNavSelectedElements(),!(o>=this.cells.length)){var r=this.cells.slice(n,i+1);this.navSelectedElements=r.map(function(t){return t.element}),this.changeNavSelectedClass("add")}}},n.changeNavSelectedClass=function(t){this.navSelectedElements.forEac
vendor: 4,677 bytes, line 1
1h(function(e){e.classList[t]("is-nav-selected")})},n.activateAsNavFor=function(){this.navCompanionSelect(!0)},n.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},n.onNavStaticClick=function(t,e,n,i){"number"==typeof i&&this.navCompanion.selectCell(i)},n.deactivateAsNavFor=function(){this.removeNavSelectedElements()},n.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(n){return e(t,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,function(t,e){function n(t,e){for(var n in e)t[n]=e[n];return t}function i(t,e,o){if(!(this instanceof i))return new i(t,e,o);var r=t;return"string"==typeof t&&(r=document.querySelectorAll(t)),r?(this.elements=function(t){return Array.isArray(t)?t:"object"==typeof t&&"number"==typeof t.length?l.call(t):[t]}(r),this.options=n({},this.options),"function"==typeof e?o=e:n(this.options,e),o&&this.on("always",o),this.getImages(),s&&(this.jqDeferred=new s.Deferred),void setTimeout(this.check.bind(this))):void a.error("Bad element for imagesLoaded "+(r||t))}function o(t){this.img=t}function r(t,e){this.url=t,this.element=e,this.img=new Image}var s=t.jQuery,a=t.console,l=Array.prototype.slice;i.prototype=Object.create(e.prototype),i.prototype.options={},i.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},i.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&c[e]){for(var n=t.querySelectorAll("img"),i=0;i<n.length;i++){var o=n[i];this.addImage(o)}if("string"==typeof this.options.background){var r=t.querySelectorAll(this.options.background);for(i=0;i<r.length;i++){var s=r[i];this.addElementBackgroundImages(s)}}}};var c={1:!0,9:!0,11:!0};return i.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var n=/url\((['"])?(.*?)\1\)/gi,i=n.exec(e.backgroundImage);null!==i;){var o=i&&i[2];o&&this.addBackground(o,t),i=n.exec(e.backgroundImage)}},i.prototype.addImage=function(t){var e=new o(t);this.images.push(e)},i.prototype.addBackground=function(t,e){var n=new r(t,e);this.images.push(n)},i.prototype.check=function(){function t(t,n,i){setTimeout(function(){e.progress(t,n,i)})}var e=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(e){e.once("progress",t),e.check()}):void this.complete()},i.prototype.progress=function(t,e,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+n,t,e)},i.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},o.prototype=Object.create(e.prototype),o.prototype.check=function(){return this.getIsImageComplete()?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},o.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},o.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},o.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},o.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},o.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},o.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},r.prototype=Object.create(o.prototype),r.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWi
1dth,"naturalWidth"),this.unbindEvents())},r.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},r.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},i.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((s=e).fn.imagesLoaded=function(t,e){return new i(this,t,e).jqDeferred.promise(s(this))})},i.makeJQueryPlugin(),i}),function(t,e){"function"==typeof define&&define.amd?define(["flickity/js/index","imagesloaded/imagesloaded"],function(n,i){return e(t,n,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("flickity"),require("imagesloaded")):t.Flickity=e(t,t.Flickity,t.imagesLoaded)}(window,function(t,e,n){"use strict";e.createMethods.push("_createImagesLoaded");var i=e.prototype;return i._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},i.imagesLoaded=function(){if(this.options.imagesLoaded){var t=this;n(this.slider).on("progress",function(e,n){var i=t.getParentCell(n.img);t.cellSizeChange(i&&i.element),t.options.freeScroll||t.positionSliderAtSelected()})}},e}),function(t,e,n){function i(t,e){return typeof t===e}function o(){return"function"!=typeof e.createElement?e.createElement(arguments[0]):h?e.createElementNS.call(e,"http://www.w3.org/2000/svg",arguments[0]):e.createElement.apply(e,arguments)}function r(){var t=e.body;return t||((t=o(h?"svg":"body")).fake=!0),t}var s=[],a=[],l={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(t,e){var n=this;setTimeout(function(){e(n[t])},0)},addTest:function(t,e,n){a.push({name:t,fn:e,options:n})},addAsyncTest:function(t){a.push({name:null,fn:t})}},c=function(){};c.prototype=l,c=new c;var u=e.documentElement,h="svg"===u.nodeName.toLowerCase(),d=l._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];l._prefixes=d;var f=l.testStyles=function(t,n,i,s){var a,l,c,h,d="modernizr",f=o("div"),p=r();if(parseInt(i,10))for(;i--;)(c=o("div")).id=s?s[i]:d+(i+1),f.appendChild(c);return(a=o("style")).type="text/css",a.id="s"+d,(p.fake?p:f).appendChild(a),p.appendChild(f),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(e.createTextNode(t)),f.id=d,p.fake&&(p.style.background="",p.style.overflow="hidden",h=u.style.overflow,u.style.overflow="hidden",u.appendChild(p)),l=n(f,t),p.fake?(p.parentNode.removeChild(p),u.style.overflow=h,u.offsetHeight):f.parentNode.removeChild(f),!!l};c.addTest("touchevents",function(){var n;if("ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch)n=!0;else{var i=["@media (",d.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");f(i,function(t){n=9===t.offsetTop})}return n}),function(){var t,e,n,o,r,l;for(var u in a)if(a.hasOwnProperty(u)){if(t=[],(e=a[u]).name&&(t.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(n=0;n<e.options.aliases.length;n++)t.push(e.options.aliases[n].toLowerCase());for(o=i(e.fn,"function")?e.fn():e.fn,r=0;r<t.length;r++)1===(l=t[r].split(".")).length?c[l[0]]=o:(!c[l[0]]||c[l[0]]instanceof Boolean||(c[l[0]]=new Boolean(c[l[0]])),c[l[0]][l[1]]=o),s.push((o?"":"no-")+l.join("-"))}}(),function(t){var e=u.className,n=c._config.classPrefix||"";if(h&&(e=e.baseVal),c._config.enableJSClass){var i=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");e=e.replace(i,"$1"+n+"js$2")}c._config.enableClasses&&(e+=" "+n+t.join(" "+n),h?u.className.baseVal=e:u.className=e)}(s),delete l.addTest,delete l.addAsyncTest;for(var p=0;p<c._q.length;p++)c._q[p]();t.Modernizr=c}(window,document),function(t,e){"function"==typeof define&&define.amd?define([],function(){return e()}):"object"==typeof exports?module.exports=e():t.Headhesive=e()}(this,function(){"use strict";var t=function(e,n){for(var i in n)n.hasOwnProperty(i)&&(e[i]="object"==typeof n[i]?t(e[i],n[i]):n[i]);return e},e=function(t,e){var n,i,o,r=Date.now||function(){return(new Date).getTime()},s=null,a=0,l=function(){a=r(),s=null,o=t.apply(n,i),n=i=null};return function(){var c=r(),u=e-(c-a);return n=this,i=arguments,0>=u?(clearTimeout(s),s=null,a=c,o=t.apply(n,i),n=i=null):s||(s=setTimeout(l,u)),o}},n=function(e,n){"querySelector"in document&&"addEventListener"in window&&(this.visible=!1,this.options={offset:300,offsetSide:"top",classes:{clone:"headhesive",stick:"headhesive--stick",unstick:"headhesive--unstick"},throttle:250,onInit:function(){},onStick:function(){},onUnstick:function(){},onDestroy:function(){}},this.elem="string"==typeof e?document.querySelector(e):e,this.options=t(this.options,n),this.init())};return n.prototype={constructor:n,init:function(){if(this.clonedElem=this.elem.cloneNode(!0),this.clonedElem.className+=" "+this.options.classes.clone,document.body.insertBefore(this.clonedElem,document.body.firstChild),"number"==typeof this.options.offset)this.scrollOffset=this.options.offset;else{if("string"!=typeof this.options.offset)throw new Error("Invalid offset: "+this.options.offset);this._setScrollOffset()}this._throttleUpdate=e(this.update.bind(this),this.options.throttle),this._throttleScrollOffset=e(this._setScrollOffset.bind(this),this.options.throttle),window.addEventListener("scroll",this._throttleUpdate,!1),window.addEventListener("resize",this._throttleScrollOffset,!1),this.options.onInit.call(this)},_setScrollOffset:function(){"string"==typeof this.options.offset&&(this.scrollOffset=function(t,e){for(var n=0,i=t.offsetHeight;t;)n+=t.offsetTop,t=t.offsetParent;return"bottom"===e&&(n+=i),n}(document.querySelector(this.options.offset),this.options.offsetSide))},destroy:function(){document.body.removeChild(this.clonedElem),window.removeEventListener("scroll",this._throttleUpdate),window.removeEventListener("resize",this._throttleScrollOffset),this.options.onDestroy.call(this)},stick:function(){this.visible||(this.clonedElem.className=this.clonedElem.className.replace(new RegExp("(^|\\s)*"+this.options.classes.unstick+"(\\s|$)*","g"),""),this.clonedElem.className+=" "+this.options.classes.stick,this.visible=!0,this.options.onStick.call(this))},unstick:function(){this.visible&&(this.clonedElem.className=this.clonedElem.className.replace(new RegExp("(^|\\s)*"+this.options.classes.stick+"(\\s|$)*","g"),""),this.clonedElem.className+=" "+this.options.classes.unstick,this.visible=!1,this.options.onUnstick.call(this))},update:function(){(void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop)>this.scrollOffset?this.stick():this.unstick()}},n}),function(){var t=function(){function t(t){return decodeURIComponent(t.replace(/\+/g," "))}function e(t,e){var n=t.charAt(0),i=e.split(n);return n===t?i:i[(t=parseInt(t.substring(1),10))<0?i.length+t:t-1]}function n(e,n){for(var i=e.charAt(0),o=n.split("&"),r=[],s={},a=[],l=e.substring(1),c=0,u=o.length;c<u;c++)if((r=o[c].match(/(.*?)=(.*)/))||(r=[o[c],o[c],""]),""!==r[1].replace(/\s/g,"")){if(r[2]=t(r[2]||""),l===r[1])return r[2];(a=r[1].match(/(.*)\[([0-9]+)\]/))?(s[a[1]]=s[a[1]]||[],s[a[1]][a[2]]=r[2]):s[r[1]]=r[2]}return i===e?s:s[l]}return function(t,i){var o,r={};if("tld?"!==t){if(i=i||window.location.toString(),!t)return i;if(t=t.toString(),o=i.match(/^mailto:([^\/].+)/))r.protocol="mailto",r.email=o[1];
1else{if((o=i.match(/(.*?)\/#\!(.*)/))&&(i=o[1]+o[2]),(o=i.match(/(.*?)#(.*)/))&&(r.hash=o[2],i=o[1]),r.hash&&t.match(/^#/))return n(t,r.hash);if((o=i.match(/(.*?)\?(.*)/))&&(r.query=o[2],i=o[1]),r.query&&t.match(/^\?/))return n(t,r.query);if((o=i.match(/(.*?)\:?\/\/(.*)/))&&(r.protocol=o[1].toLowerCase(),i=o[2]),(o=i.match(/(.*?)(\/.*)/))&&(r.path=o[2],i=o[1]),r.path=(r.path||"").replace(/^([^\/])/,"/$1"),t.match(/^[\-0-9]+$/)&&(t=t.replace(/^([^\/])/,"/$1")),t.match(/^\//))return e(t,r.path.substring(1));if((o=e("/-1",r.path.substring(1)))&&(o=o.match(/(.*?)\.(.*)/))&&(r.file=o[0],r.filename=o[1],r.fileext=o[2]),(o=i.match(/(.*)\:([0-9]+)$/))&&(r.port=o[2],i=o[1]),(o=i.match(/(.*?)@(.*)/))&&(r.auth=o[1],i=o[2]),r.auth&&(o=r.auth.match(/(.*)\:(.*)/),r.user=o?o[1]:r.auth,r.pass=o?o[2]:void 0),r.hostname=i.toLowerCase(),"."===t.charAt(0))return e(t,r.hostname);r.port=r.port||("https"===r.protocol?"443":"80"),r.protocol=r.protocol||("443"===r.port?"https":"http")}return t in r?r[t]:"{}"===t?r:void 0}}}();"function"==typeof window.define&&window.define.amd?window.define("js-url",[],function(){return t}):(void 0!==window.jQuery&&window.jQuery.extend({url:function(t,e){return window.url
1(t,e)}}),window.url=t)}();var objectFitImages=function(){"use strict";function t(t,e,n){var i=function(t,e){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='"+t+"' height='"+e+"'%3E%3C/svg%3E"}(e||1,n||0);d.call(t,"src")!==i&&f.call(t,"src",i)}function e(t,n){t.naturalWidth?n(t):setTimeout(e,100,t,n)}function n(n){var o=function(t){for(var e,n=getComputedStyle(t).fontFamily,i={};null!==(e=s.exec(n));)i[e[1]]=e[2];return i}(n),a=n[r];if(o["object-fit"]=o["object-fit"]||"fill",!a.img){if("fill"===o["object-fit"])return;if(!a.skipTest&&l&&!o["object-position"])return}if(!a.img){a.img=new Image(n.width,n.height),a.img.srcset=d.call(n,"data-ofi-srcset")||n.srcset,a.img.src=d.call(n,"data-ofi-src")||n.src,f.call(n,"data-ofi-src",n.src),n.srcset&&f.call(n,"data-ofi-srcset",n.srcset),t(n,n.naturalWidth||n.width,n.naturalHeight||n.height),n.srcset&&(n.srcset="");try{i(n)}catch(n){window.console&&console.warn("https://bit.ly/ofi-old-browser")}}(function(t){if(t.srcset&&!h&&window.picturefill){var e=window.picturefill._;t[e.ns]&&t[e.ns].evaled||e.fillImg(t,{reselect:!0}),t[e.ns].curSrc||(t[e.ns].supported=!1,e.fillImg(t,{reselect:!0})),t.currentSrc=t[e.ns].curSrc||t.src}})(a.img),n.style.backgroundImage='url("'+(a.img.currentSrc||a.img.src).replace(/"/g,'\\"')+'")',n.style.backgroundPosition=o["object-position"]||"center",n.style.backgroundRepeat="no-repeat",n.style.backgroundOrigin="content-box",/scale-down/.test(o["object-fit"])?e(a.img,function(){a.img.naturalWidth>n.width||a.img.naturalHeight>n.height?n.style.backgroundSize="contain":n.style.backgroundSize="auto"}):n.style.backgroundSize=o["object-fit"].replace("none","auto").replace("fill","100% 100%"),e(a.img,function(e){t(n,e.naturalWidth,e.naturalHeight)})}function i(t){var e={get:function(e){return t[r].img[e||"src"]},set:function(e,i){return t[r].img[i||"src"]=e,f.call(t,"data-ofi-"+i,e),n(t),e}};Object.defineProperty(t,"src",e),Object.defineProperty(t,"currentSrc",{get:function(){return e.get("currentSrc")}}),Object.defineProperty(t,"srcset",{get:function(){return e.get("srcset")},set:function(t){return e.set(t,"srcset")}})}function o(t,e){var i=!p&&!t;if(e=e||{},t=t||"img",c&&!e.skipTest||!u)return!1;"img"===t?t=document.getElementsByTagName("img"):"string"==typeof t?t=document.querySelectorAll(t):"length"in t||(t=[t]);for(var s=0;s<t.length;s++)t[s][r]=t[s][r]||{skipTest:e.skipTest},n(t[s]);i&&(document.body.addEventListener("load",function(t){"IMG"===t.target.tagName&&o(t.target,{skipTest:e.skipTest})},!0),p=!0,t="img"),e.watchMQ&&window.addEventListener("resize",o.bind(null,t,{skipTest:e.skipTest}))}var r="bfred-it:object-fit-images",s=/(object-fit|object-position)\s*:\s*([-\w\s%]+)/g,a="undefined"==typeof Image?{style:{"object-position":1}}:new Image,l="object-fit"in a.style,c="object-position"in a.style,u="background-size"in a.style,h="string"==typeof a.currentSrc,d=a.getAttribute,f=a.setAttribute,p=!1;return o.supportsObjectFit=l,o.supportsObjectPosition=c,function(){function t(t,e){return t[r]&&t[r].img&&("src"===e||"srcset"===e)?t[r].img:t}c||(HTMLImageElement.prototype.getAttribute=function(e){return d.call(t(this,e),e)},HTMLImageElement.prototype.setAttribute=function(e,n){return f.call(t(this,e),e,String(n))})}(),o}();!function(t){t.extend(t.expr[":"],{"off-top":function(e){return t(e).offset().top<t(window).scrollTop()},"off-right":function(e){return t(e).offset().left+t(e).outerWidth()-t(window).scrollLeft()>t(window).width()},"off-bottom":function(e){return t(e).offset().top+t(e).outerHeight()-t(window).scrollTop()>t(window).height()},"off-left":function(e){return t(e).offset().left<t(window).scrollLeft()},"off-screen":function(e){return t(e).is(":off-top, :off-right, :off-bottom, :off-left")}})}(jQuery),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.lazyframe=e()}(this,function(){"use strict";var t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};return function(){function e(t){var e=this;if(t instanceof HTMLElement!=0&&!t.classList.contains("lazyframe--loaded")){var i={el:t,settings:n(t)};i.el.addEventListener("click",function(){i.el.appendChild(i.iframe);var n=t.querySelectorAll("iframe");i.settings.onAppend.call(e,n[0])}),s.lazyload?r(i):o(i,i.settings.thumbnail)}}function n(e){var n=Array.prototype.slice.apply(e.attributes).filter(function(t){return""!==t.value}).reduce(function(t,e){return t[0===e.name.indexOf("data-")?e.name.split("data-")[1]:e.name]=e.value,t},{}),o=t({},s,n,{y:e.offsetTop,parameters:i(n.src)});if(o.vendor){var r=o.src.match(c.regex[o.vendor]);o.id=c.condition[o.vendor](r)}return o}function i(t){var e=t.split("?");return e[1]?-1!==(e=e[1]).indexOf("autoplay")?e:e+"&autoplay=1":"autoplay=1"}function o(t){var e=this;!function(t){return!(!t.vendor||t.title&&t.thumbnail||("youtube"===t.vendor||"youtube_nocookie"===t.vendor)&&!t.apikey)}(t.settings)?r(t,!0):function(t,e){var n=c.endpoints[t.settings.vendor](t.settings),i=new XMLHttpRequest;i.open("GET",n,!0),i.onload=function(){if(i.status>=200&&i.status<400){var n=JSON.parse(i.responseText);e(null,[n,t])}else e(!0)},i.onerror=function(){e(!0)},i.send()}
1(t,function(n,i){if(!n){var o=i[0],s=i[1];if(s.settings.title||(s.settings.title=c.response[s.settings.vendor].title(o)),!s.settings.thumbnail){var a=c.response[s.settings.vendor].thumbnail(o);s.settings.thumbnail=a,t.settings.onThumbnailLoad.call(e,a)}r(s,!0)}})}function r(t,e){if(t.iframe=function(t){var e=document.createDocumentFragment(),n=document.createElement("iframe");if(t.vendor&&(t.src=c.src[t.vendor](t)),n.setAttribute("id","lazyframe-"+t.id),n.setAttribute("src",t.src),n.setAttribute("frameborder",0),n.setAttribute("allowfullscreen",""),"vine"===t.vendor){var i=document.createElement("script");i.setAttribute("src","https://platform.vine.co/static/scripts/embed.js"),e.appendChild(i)}return e.appendChild(n),e}(t.settings),t.settings.thumbnail&&e&&(t.el.style.backgroundImage="url("+t.settings.thumbnail+")"),t.settings.title&&0===t.el.children.length){var n=document.createDocumentFragment(),i=document.createElement("span");i.className="lazyframe__title",i.innerHTML=t.settings.title,n.appendChild(i),t.el.appendChild(n)}s.lazyload||(t.el.classList.add("lazyframe--loaded"),t.settings.onLoad.call(this,t),a.push(t)),t.settings.initialized||a.push(t)}var s=void 0,a=[],l={vendor:void 0,id:void 0,src:void 0,thumbnail:void 0,title:void 0,apikey:void 0,initialized:!1,parameters:void 0,y:void 0,debounce:250,lazyload:!0,initinview:!1,onLoad:function(t){},onAppend:function(t){},onThumbnailLoad:function(t){}},c={regex:{youtube_nocookie:/(?:youtube-nocookie\.com\/\S*(?:(?:\/e(?:mbed))?\/|watch\?(?:\S*?&?v\=)))([a-zA-Z0-9_-]{6,11})/,youtube:/(?:youtube\.com\/\S*(?:(?:\/e(?:mbed))?\/|watch\?(?:\S*?&?v\=))|youtu\.be\/)([a-zA-Z0-9_-]{6,11})/,vimeo:/vimeo\.com\/(?:video\/)?([0-9]*)(?:\?|)/,vine:/vine.co\/v\/(.*)/},condition:{youtube:function(t){return!(!t||11!=t[1].length)&&t[1]},youtube_nocookie:function(t){return!(!t||11!=t[1].length)&&t[1]},vimeo:function(t){return!!(t&&9===t[1].length||8===t[1].length)&&t[1]},vine:function(t){return!(!t||11!==t[1].length)&&t[1]}},src:{youtube:function(t){return"https://www.youtube.com/embed/"+t.id+"/?"+t.parameters},youtube_nocookie:function(t){return"https://www.youtube-nocookie.com/embed/"+t.id+"/?"+t.parameters},vimeo:function(t){return"https://player.vimeo.com/video/"+t.id+"/?"+t.parameters},vine:function(t){return"https://vine.co/v/"+t.id+"/embed/simple"}},endpoints:{youtube:function(t){return"https://www.googleapis.com/youtube/v3/videos?id="+t.id+"&key="+t.apikey+"&fields=items(snippet(title,thumbnails))&part=snippet"},youtube_nocookie:function(t){return"https://www.googleapis.com/youtube/v3/videos?id="+t.id+"&key="+t.apikey+"&fields=items(snippet(title,thumbnails))&part=snippet"},vimeo:function(t){return"https://vimeo.com/api/oembed.json?url=https%3A//vimeo.com/"+t.id},vine:function(t){return"https://vine.co/oembed.json?url=https%3A%2F%2Fvine.co%2Fv%2F"+t.id}},response:{youtube:{title:function(t){return t.items[0].snippet.title},thumbnail:function(t){var e=t.items[0].snippet.thumbnails;return(e.maxres||e.standard||e.high||e.medium||e.default).url}},youtube_nocookie:{title:function(t){return t.items[0].snippet.title},thumbnail:function(t){var e=t.items[0].snippet.thumbnails;return(e.maxres||e.standard||e.high||e.medium||e.default).url}},vimeo:{title:function(t){return t.title},thumbnail:function(t){return t.thumbnail_url}},vine:{title:function(t){return t.title},thumbnail:function(t){return t.thumbnail_url}}}};return function(n){if(s=t({},l,arguments.length<=1?void 0:arguments[1]),"string"==typeof n)for(var i=document.querySelectorAll(n),r=0;r<i.length;r++)e(i[r]);else if(void 0===n.length)e(n);else if(n.length>1)for(var c=0;c<n.length;c++)e(n[c]);else e(n[0]);s.lazyload&&function(){var t=this,e=window.innerHeight,n=a.length,i=function(e,i){e.settings.initialized=!0,e.el.classList.add("lazyframe--loaded"),n--,o(e),e.settings.initinview&&e.el.click(),e.settings.onLoad.call(t,e)};a.filter(function(t){return t.settings.y<e}).forEach(i);var r=function(t,e,n){var i=void 0;return function(){var o=this,r=arguments,s=n;clearTimeout(i),i=setTimeout(function(){i=null,t.apply(o,r)},e),s&&t.apply(o,r)}}(function(){c=l<window.pageYOffset,l=window.pageYOffset,c&&a.filter(function(t){return t.settings.y<e+l&&!1===t.settings.initialized}
1).forEach(i),0===n&&window.removeEventListener("scroll",r,!1)},s.debounce),l=0,c=!1;window.addEventListener("scroll",r,!1)}()}}()}),function(t,e,n,i){"use strict";function o(t,e){var i,o,r,s=[],a=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},t&&t.data&&(e=f(t.data.options,e)),i=e.$target||n(t.currentTarget).trigger("blur"),(r=n.fancybox.getInstance())&&r.$trigger&&r.$trigger.is(i)||(e.selector?s=n(e.selector):(o=i.attr("data-fancybox")||"")?s=(s=t.data?t.data.items:[]).length?s.filter('[data-fancybox="'+o+'"]'):n('[data-fancybox="'+o+'"]'):s=[i],(a=n(s).index(i))<0&&(a=0),(r=n.fancybox.open(s,e,a)).$trigger=i))}if(t.console=t.console||{info:function(t){}},n){if(n.fn.fancybox)return void console.info("fancyBox already initialized");var r={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span> / <span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"><div class="fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schließen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaub
1ilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergrößern"}}},s=n(t),a=n(e),l=0,c=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)},u=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)},h=function(){var t,n=e.createElement("fakeelement"),i={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in i)if(void 0!==n.style[t])return i[t];return"transitionend"}(),d=function(t){return t&&t.length&&t[0].offsetHeight},f=function(t,e){var i=n.extend(!0,{},t,e);return n.each(e,function(t,e){n.isArray(e)&&(i[t]=e)}),i},p=function(t){var i,o;return!(!t||t.ownerDocument!==e)&&(n(".fancybox-container").css("pointer-events","none"),i={x:t.getBoundingClientRect().left+t.offsetWidth/2,y:t.getBoundingClientRect().top+t.offsetHeight/2},o=e.elementFromPoint(i.x,i.y)===t,n(".fancybox-container").css("pointer-events",""),o)},g=function(t,e,i){var o=this;o.opts=f({index:i},n.fancybox.defaults),n.isPlainObject(e)&&(o.opts=f(o.opts,e)),n.fancybox.isMobile&&(o.opts=f(o.opts,o.opts.mobile)),o.id=o.opts.id||++l,o.currIndex=parseInt(o.opts.index,10)||0,o.prevIndex=null,o.prevPos=null,o.currPos=0,o.firstRun=!0,o.group=[],o.slides={},o.addContent(t),o.group.length&&o.init()};n.extend(g.prototype,{init:function(){var i,o,r=this,s=r.group[r.currIndex].opts;s.closeExisting&&n.fancybox.close(!0),n("body").addClass("fancybox-active"),!n.fancybox.getInstance()&&!1!==s.hideScrollbar&&!n.fancybox.isMobile&&e.body.scrollHeight>t.innerHeight&&(n("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(t.innerWidth-e.documentElement.clientWidth)+"px;}</style>"),n("body").addClass("compensate-for-scrollbar")),o="",n.each(s.buttons,function(t,e){o+=s.btnTpl[e]||""}),i=n(r.translate(r,s.baseTpl.replace("{{buttons}}",o).replace("{{arrows}}",s.btnTpl.arrowLeft+s.btnTpl.arrowRight))).attr("id","fancybox-container-"+r.id).addClass(s.baseClass).data("FancyBox",r).appendTo(s.parentEl),r.$refs={container:i},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){r.$refs[t]=i.find(".fancybox-"+t)}),r.trigger("onInit"),r.activate(),r.jumpTo(r.currIndex)},translate:function(t,e){var n=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,function(t,e){return void 0===n[e]?t:n[e]})},addContent:function(t){var e,i=this,o=n.makeArray(t);n.each(o,function(t,e){var o,r,s,a,l,c={},u={};n.isPlainObject(e)?(c=e,u=e.opts||e):"object"===n.type(e)&&n(e).length?(u=(o=n(e)).data()||{},(u=n.extend(!0,{},u,u.options)).$orig=o,c.src=i.opts.src||u.src||o.attr("href"),c.type||c.src||(c.type="inline",c.src=e)):c={type:"html",src:e+""},c.opts=n.extend(!0,{},i.opts,u),n.isArray(u.buttons)&&(c.opts.buttons=u.buttons),n.fancybox.isMobile&&c.opts.mobile&&(c.opts=f(c.opts,c.opts.mobile)),r=c.type||c.opts.type,a=c.src||"",!r&&a&&((s=a.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(r="video",c.opts.video.format||(c.opts.video.format="video/"+("ogv"===s[1]?"ogg":s[1]))):a.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?r="image":a.match(/\.(pdf)((\?|#).*)?$/i)?(r="iframe",c=n.extend(!0,c,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===a.charAt(0)&&(r="inline")),r?c.type=r:i.trigger("objectNeedsType",c),c.contentType||(c.contentType=n.inArray(c.type,["html","inline","ajax"])>-1?"html":c.type),c.index=i.group.length,"auto"==c.opts.smallBtn&&(c.opts.smallBtn=n.inArray(c.type,["html","inline","ajax"])>-1),"auto"===c.opts.toolbar&&(c.opts.toolbar=!c.opts.smallBtn),c.$thumb=c.opts.$thumb||null,c.opts.$trigger&&c.index===i.opts.index&&(c.$thumb=c.opts.$trigger.find("img:first"),c.$thumb.length&&(c.opts.$orig=c.opts.$trigger)),c.$thumb&&c.$thumb.length||!c.opts.$orig||(c.$thumb=c.opts.$orig.find("img:first")),c.$thumb&&!c.$thumb.length&&(c.$thumb=null),c.thumb=c.opts.thumb||(c.$thumb?c.$thumb[0].src:null),"function"===n.type(c.opts.caption)&&(c.opts.caption=c.opts.caption.apply(e,[i,c])),"function"===n.type(i.opts.caption)&&(c.opts.caption=i.opts.caption.apply(e,[i,c])),c.opts.caption instanceof n||(c.opts.caption=void 0===c.opts.caption?"":c.opts.caption+""),"ajax"===c.type&&((l=a.split(/\s+/,2)).length>1&&(c.src=l.shift(),c.opts.filter=l.shift())),c.opts.modal&&(c.opts=n.extend(!0,c.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),i.group.push(c)}
vendor: 45,987 bytes, line 1
1),Object.keys(i.slides).length&&(i.updateControls(),(e=i.Thumbs)&&e.isActive&&(e.create(),e.focus()))},addEvents:function(){var e=this;e.removeEvents(),e.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),e.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),e.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),e.next()}).on("click.fb","[data-fancybox-zoom]",function(t){e[e.isScaledDown()?"scaleToActual":"scaleToFit"]()}),s.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(e.requestId&&u(e.requestId),e.requestId=c(function(){e.update(t)})):(e.current&&"iframe"===e.current.type&&e.$refs.stage.hide(),setTimeout(function(){e.$refs.stage.show(),e.update(t)},n.fancybox.isMobile?600:250))}),a.on("keydown.fb",function(t){var i=(n.fancybox?n.fancybox.getInstance():null).current,o=t.keyCode||t.which;if(9!=o)return!i.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||n(t.target).is("input,textarea,video,audio")?void 0:8===o||27===o?(t.preventDefault(),void e.close(t)):37===o||38===o?(t.preventDefault(),void e.previous()):39===o||40===o?(t.preventDefault(),void e.next()):void e.trigger("afterKeydown",t,o);i.opts.trapFocus&&e.focus(t)}),e.group[e.currIndex].opts.idleTime&&(e.idleSecondsCounter=0,a.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){e.idleSecondsCounter=0,e.isIdle&&e.showControls(),e.isIdle=!1}),e.idleInterval=t.setInterval(function(){++e.idleSecondsCounter>=e.group[e.currIndex].opts.idleTime&&!e.isDragging&&(e.isIdle=!0,e.idleSecondsCounter=0,e.hideControls())},1e3))},removeEvents:function(){var e=this;s.off("orientationchange.fb resize.fb"),a.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),e.idleInterval&&(t.clearInterval(e.idleInterval),e.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,e){var i,o,r,s,a,l,c,u,h,f=this,p=f.group.length;if(!(f.isDragging||f.isClosing||f.isAnimating&&f.firstRun)){if(t=parseInt(t,10),!(r=f.current?f.current.opts.loop:f.opts.loop)&&(t<0||t>=p))return!1;if(i=f.firstRun=!Object.keys(f.slides).length,a=f.current,f.prevIndex=f.currIndex,f.prevPos=f.currPos,s=f.createSlide(t),p>1&&((r||s.index<p-1)&&f.createSlide(t+1),(r||s.index>0)&&f.createSlide(t-1)),f.current=s,f.currIndex=s.index,f.currPos=s.pos,f.trigger("beforeShow",i),f.updateControls(),s.forcedDuration=void 0,n.isNumeric(e)?s.forcedDuration=e:e=s.opts[i?"animationDuration":"transitionDuration"],e=parseInt(e,10),o=f.isMoved(s),s.$slide.addClass("fancybox-slide--current"),i)return s.opts.animationEffect&&e&&f.$refs.container.css("transition-duration",e+"ms"),f.$refs.container.addClass("fancybox-is-open").trigger("focus"),f.loadSlide(s),void f.preload("image");l=n.fancybox.getTranslate(a.$slide),c=n.fancybox.getTranslate(f.$refs.stage),n.each(f.slides,function(t,e){n.fancybox.stop(e.$slide,!0)}),a.pos!==s.pos&&(a.isComplete=!1),a.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"),o?(h=l.left-(a.pos*l.width+a.pos*a.opts.gutter),n.each(f.slides,function(t,i){i.$slide.removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});var o=i.pos*l.width+i.pos*i.opts.gutter;n.fancybox.setTranslate(i.$slide,{top:0,left:o-c.left+h}),i.pos!==s.pos&&i.$slide.addClass("fancybox-slide--"+(i.pos>s.pos?"next":"previous")),d(i.$slide),n.fancybox.animate(i.$slide,{top:0,left:(i.pos-s.pos)*l.width+(i.pos-s.pos)*i.opts.gutter},e,function(){i.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous"),i.pos===f.currPos&&f.complete()})})):e&&s.opts.transitionEffect&&(u="fancybox-animated fancybox-fx-"+s.opts.transitionEffect,a.$slide.addClass("fancybox-slide--"+(a.pos>s.pos?"next":"previous")),n.fancybox.animate(a.$slide,u,e,function(){a.$slide.removeClass(u).removeClass("fancybox-slide--next fancybox-slide--previous")},!1)),s.isLoaded?f.revealContent(s):f.loadSlide(s),f.preload("image")}},createSlide:function(t){var e,i,o=this;return i=(i=t%o.group.length)<0?o.group.length+i:i,!o.slides[t]&&o.group[i]&&(e=n('<div class="fancybox-slide"></div>').appendTo(o.$refs.stage),o.slides[t]=n.extend(!0,{},o.group[i],{pos:t,$slide:e,isLoaded:!1}),o.updateSlide(o.slides[t])),o.slides[t]},scaleToActual:function(t,e,i){var o,r,s,a,l,c=this,u=c.current,h=u.$content,d=n.fancybox.getTranslate(u.$slide).width,f=n.fancybox.getTranslate(u.$slide).height,p=u.width,g=u.height;c.isAnimating||c.isMoved()||!h||"image"!=u.type||!u.isLoaded||u.hasError||(c.isAnimating=!0,n.fancybox.stop(h),t=void 0===t?.5*d:t,e=void 0===e?.5*f:e,(o=n.fancybox.getTranslate(h)).top-=n.fancybox.getTranslate(u.$slide).top,o.left-=n.fancybox.getTranslate(u.$slide).left,a=p/o.width,l=g/o.height,r=.5*d-.5*p,s=.5*f-.5*g,p>d&&((r=o.left*a-(t*a-t))>0&&(r=0),r<d-p&&(r=d-p)),g>f&&((s=o.top*l-(e*l-e))>0&&(s=0),s<f-g&&(s=f-g)),c.updateCursor(p,g),n.fancybox.animate(h,{top:s,left:r,scaleX:a,scaleY:l},i||366,function(){c.isAnimating=!1}),c.SlideShow&&c.SlideShow.isActive&&c.SlideShow.stop())},scaleToFit:function(t){var e,i=this,o=i.current,r=o.$content;i.isAnimating||i.isMoved()||!r||"image"!=o.type||!o.isLoaded||o.hasError||(i.isAnimating=!0,n.fancybox.stop(r),e=i.getFitPos(o),i.updateCursor(e.width,e.height),n.fancybox.animate(r,{top:e.top,left:e.left,scaleX:e.width/r.width(),scaleY:e.height/r.height()},t||366,function(){i.isAnimating=!1}))},getFitPos:function(t){var e,i,o,r,s=t.$content,a=t.$slide,l=t.width||t.opts.width,c=t.height||t.opts.height,u={};return!!(t.isLoaded&&s&&s.length)&&(e=n.fancybox.getTranslate(this.$refs.stage).width,i=n.fancybox.getTranslate(this.$refs.stage).height,e-=parseFloat(a.css("paddingLeft"))+parseFloat(a.css("paddingRight"))+parseFloat(s.css("marginLeft"))+parseFloat(s.css("marginRight")),i-=parseFloat(a.css("paddingTop"))+parseFloat(a.css("paddingBottom"))+parseFloat(s.css("marginTop"))+parseFloat(s.css("marginBottom")),l&&c||(l=e,c=i),(l*=o=Math.min(1,e/l,i/c))>e-.5&&(l=e),(c*=o)>i-.5&&(c=i),"image"===t.type?(u.top=Math.floor(.5*(i-c))+parseFloat(a.css("paddingTop")),u.left=Math.floor(.5*(e-l))+parseFloat(a.css("paddingLeft"))):"video"===t.contentType&&(c>l/(r=t.opts.width&&t.opts.height?l/c:t.opts.ratio||16/9)?c=l/r:l>c*r&&(l=c*r)),u.width=l,u.height=c,u)},update:function(t){var e=this;n.each(e.slides,function(n,i){e.updateSlide(i,t)})},updateSlide:function(t,e){var i=this,o=t&&t.$content,r=t.width||t.opts.width,s=t.height||t.opts.height,a=t.$slide;i.adjustCaption(t),o&&(r||s||"video"===t.contentType)&&!t.hasError&&(n.fancybox.stop(o),n.fancybox.setTranslate(o,i.getFitPos(t)),t.pos===i.currPos&&(i.isAnimating=!1,i.updateCursor())),i.adjustLayout(t),a.length&&(a.trigger("refresh"),t.pos===i.currPos&&i.$refs.toolbar.add(i.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",a.get(0).scrollHeight>a.get(0).clientHeight)),i.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,i=e.current,o=i.$slide;!e.isClosing&&i&&(o.siblings().css({transform:"",opacity:""}),o.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"),n.fancybox.animate(o,{top:0,left:0,opacity:1},void 0===t?0:t,function(){o.css({transform:"",opacity:""}),i.isComplete||e.complete()},!1))},isMoved:function(t){var e,i,o=t||this.current;return!!o&&(i=n.fancybox.getTranslate(this.$refs.stage),e=n.fancybox.getTranslate(o.$slide),!o.$slide.hasClass("fancybox-animated")&&(Math.abs(e.top-i.top)>.5||Math.abs(e.left-i.left)>.5))},updateCursor:function(t,e){var i,o,r=this,s=r.current,a=r.$refs.container;s&&!r.isClosing&&r.Guestures&&(a.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"),o=!!(i=r.canPan(t,e))||r.isZoomable(),a.toggleClass("fancybox-is-zoomable",o),n("[data-fancybox-zoom]").prop("disabled",!o),i?a.addClass("fancybox-can-pan"):o&&("zoom"===s.opts.clickContent||n.isFunction(s.opts.clickContent)&&"zoom"==s.opts.clickContent(s))?a.addClass("fancybox-can-zoomIn"):s.opts.touch&&(s.opts.touch.vertical||r.group.length>1)&&"video"!==s.contentType&&a.addClass("fancybox-can-swipe"))},isZoomable:function(){var t,e=this,n=e.current;if(n&&!e.isClosing&&"image"===n.type&&!n.hasError){if(!n.isLoaded)return!0;if((t=e.getFitPos(n))&&(n.width>t.width||n.height>t.height))return!0}return!1},isScaledDown:function(t,e){var i=!1,o=this.current,r=o.$content;return void 0!==t&&void 0!==e?i=t<o.width&&e<o.height:r&&(i=(i=n.fancybox.getTranslate(r)).width<o.width&&i.height<o.height),i},canPan:function(t,e){var i=this.current,o=null,r=!1;return"image"===i.type&&(i.isComplete||t&&e)&&!i.hasError&&(r=this.getFitPos(i),void 0!==t&&void 0!==e?o={width:t,height:e}:i.isComplete&&(o=n.fancybox.getTranslate(i.$content)),o&&r&&(r=Math.abs(o.width-r.width)>1.5||Math.abs(o.height-r.height)>1.5)),r},loadSlide:function(t){var e,i,o,r=this;if(!t.isLoading&&!t.isLoaded){if(t.isLoading=!0,!1===r.trigger("beforeLoad",t))return t.isLoading=!1,!1;switch(e=t.type,(i=t.$slide).off("refresh").trigger("onReset").addClass(t.opts.slideClass),e){case"image":r.setImage(t);break;case"iframe":r.setIframe(t);break;case"html":r.setContent(t,t.src||t.content);break;case"video":r.setContent(t,t.opts.video.tpl.replace(/\{\{src\}\}/gi,t.src).replace("{{format}}",t.opts.videoFormat||t.opts.video.format||"").replace("{{poster}}",t.thumb||""));break;case"inline":n(t.src).length?r.setContent(t,n(t.src)):r.setError(t);break;case"ajax":r.showLoading(t),o=n.ajax(n.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,n){"success"===n&&r.setContent(t,e)},error:function(e,n){e&&"abort"!==n&&r.setError(t)}})),i.one("onReset",function(){o.abort()});break;default:r.setError(t)}return!0}},setImage:function(t){var i,o=this;setTimeout(function(){var e=t.$image;o.isClosing||!t.isLoading||e&&e.length&&e[0].complete||t.hasError||o.showLoading(t)},50),o.checkSrcset(t),t.$content=n('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(t.$slide.addClass("fancybox-slide--image")),!1!==t.opts.preload&&t.opts.width&&t.opts.height&&t.thumb&&(t.width=t.opts.width,t.height=t.opts.height,(i=e.createElement("img")).onerror=function(){n(this).remove(),t.$ghost=null},i.onload=function(){o.afterLoad(t)},t.$ghost=n(i).addClass("fancybox-image").appendTo(t.$content).attr("src",t.thumb)),o.setBigImage(t)},checkSrcset:function(e){var n,i,o,r,s=e.opts.srcset||e.opts.image.srcset;if(s){o=t.devicePixelRatio||1,r=t.innerWidth*o,(i=s.split(",").map(function(t){var e={};return t.trim().split(/\s+/).forEach(function(t,n){var i=parseInt(t.substring(0,t.length-1),10);if(0===n)return e.url=t;i&&(e.value=i,e.postfix=t[t.length-1])}),e})).sort(function(t,e){return t.value-e.value});for(var a=0;a<i.length;a++){var l=i[a];if("w"===l.postfix&&l.value>=r||"x"===l.postfix&&l.value>=o){n=l;break}}!n&&i.length&&(n=i[i.length-1]),n&&(e.src=n.url,e.width&&e.height&&"w"==n.postfix&&(e.height=e.width/e.height*n.value,e.width=n.value),e.opts.srcset=s)}},setBigImage:function(t){var i=this,o=e.createElement("img"),r=n(o);t.$image=r.one("error",function(){i.setError(t)}).one("load",function(){var e;t.$ghost||(i.resolveImageSlideSize(t,this.naturalWidth,this.naturalHeight),i.afterLoad(t)),i.isClosing||(t.opts.srcset&&((e=t.opts.sizes)&&"auto"!==e||(e=(t.width/t.height>1&&s.width()/s.height()>1?"100":Math.round(t.width/t.height*100))+"vw"),r.attr("sizes",e).attr("srcset",t.opts.srcset)),t.$ghost&&setTimeout(function(){t.$ghost&&!i.isClosing&&t.$ghost.hide()},Math.min(300,Math.max(1e3,t.height/1600))),i.hideLoading(t))}).addClass("fancybox-image").attr("src",t.src).appendTo(t.$content),(o.complete||"complete"==o.readyState)&&r.naturalWidth&&r.naturalHeight?r.trigger("load"):o.error&&r.trigger("error")},resolveImageSlideSize:function(t,e,n){var i=parseInt(t.opts.width,10),o=parseInt(t.opts.height,10);t.width=e,t.height=n,i>0&&(t.width=i,t.height=Math.floor(i*n/e)),o>0&&(t.width=Math.floor(o*e/n),t.height=o)},setIframe:function(t){var e,i=this,o=t.opts.iframe,r=t.$slide;t.$content=n('<div class="fancybox-content'+(o.preload?" fancybox-is-hidden":"")+'"></div>').css(o.css).appendTo(r),r.addClass("fancybox-slide--"+t.contentType),t.$iframe=e=n(o.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(o.attr).appendTo(t.$content),o.preload?(i.showLoading(t),e.on("load.fb error.fb",function(e){this.isReady=1,t.$slide.trigger("refresh"),i.afterLoad(t)}),r.on("refresh.fb",function(){var n,i=t.$content,s=o.css.width,a=o.css.height;if(1===e[0].isReady){try{n=e.contents().find("body")}catch(t){}n&&n.length&&n.children().length&&(r.css("overflow","visible"),i.css({width:"100%","max-width":"100%",height:"9999px"}),void 0===s&&(s=Math.ceil(Math.max(n[0].clientWidth,n.outerWidth(!0)))),i.css("width",s||"").css("max-width",""),void 0===a&&(a=Math.ceil(Math.max(n[0].clientHeight,n.outerHeight(!0)))),i.css("height",a||""),r.css("overflow","auto")),i.removeClass("fancybox-is-hidden")}})):i.afterLoad(t),e.attr("src",t.src),r.one("onReset",function(){try{n(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}n(this).off("refresh.fb").empty(),t.isLoaded=!1,t.isRevealed=!1})},setContent:function(t,e){var i=this;i.isClosing||(i.hideLoading(t),t.$content&&n.fancybox.stop(t.$content),t.$slide.empty(),function(t){return t&&t.hasOwnProperty&&t instanceof n}(e)&&e.parent().length?((e.hasClass("fancybox-content")||e.parent().hasClass("fancybox-content"))&&e.parents(".fancybox-slide").trigger("onReset"),t.$placeholder=n("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===n.type(e)&&(e=n("<div>").append(n.trim(e)).contents()),t.opts.filter&&(e=n("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){n(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(n(this).empty(),t.isLoaded=!1,t.isRevealed=!1)}),n(e).appendTo(t.$slide),n(e).is("video,audio")&&(n(e).addClass("fancybox-video"),n(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||n(e).attr("width"),t.opts.height=t.opts.height||n(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("fancybox-content"),t.$slide.addClass("fancybox-slide--"+t.contentType),i.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("fancybox-slide--"+t.contentType).addClass("fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){var e=this;(t=t||e.current)&&!t.$spinner&&(t.$spinner=n(e.translate(e,e.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){(t=t||this.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=n(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&n('<div class="fancybox-spaceball"></div>').appendTo(t.$content)),e.adjustCaption(t),e.adjustLayout(t),t.pos===e.currPos&&e.updateCursor(),e.revealContent(t))},adjustCaption:function(t){var e,n=this,i=t||n.current,o=i.opts.caption,r=i.opts.preventCaptionOverlap,s=n.$refs.caption,a=!1;s.toggleClass("fancybox-caption--separate",r),r&&o&&o.length&&(i.pos!==n.currPos?((e=s.clone().appendTo(s.parent())).children().eq(0).empty().html(o),a=e.outerHeight(!0),e.empty().remove()):n.$caption&&(a=n.$caption.outerHeight(!0)),i.$slide.css("padding-bottom",a||""))},adjustLayout:function(t){var e,n,i,o,r=t||this.current;r.isLoaded&&!0!==r.opts.disableLayoutFix&&(r.$content.css("margin-bottom",""),r.$content.outerHeight()>r.$slide.height()+.5&&(i=r.$slide[0].style["padding-bottom"],o=r.$slide.css("padding-bottom"),parseFloat(o)>0&&(e=r.$slide[0].scrollHeight,r.$slide.css("padding-bottom",0),Math.abs(e-r.$slide[0].scrollHeight)<1&&(n=o),r.$slide.css("padding-bottom",i))),r.$content.css("margin-bottom",n))},revealContent:function(t){var e,i,o,r,s=this,a=t.$slide,l=!1,c=!1,u=s.isMoved(t),h=t.isRevealed;return t.isRevealed=!0,e=t.opts[s.firstRun?"animationEffect":"transitionEffect"],o=t.opts[s.firstRun?"animationDuration":"transitionDuration"],o=parseInt(void 0===t.forcedDuration?o:t.forcedDuration,10),!u&&t.pos===s.currPos&&o||(e=!1),"zoom"===e&&(t.pos===s.currPos&&o&&"image"===t.type&&!t.hasError&&(c=s.getThumbPos(t))?l=s.getFitPos(t):e="fade"),"zoom"===e?(s.isAnimating=!0,l.scaleX=l.width/c.width,l.scaleY=l.height/c.height,"auto"==(r=t.opts.zoomOpacity)&&(r=Math.abs(t.width/t.height-c.width/c.height)>.1),r&&(c.opacity=.1,l.opacity=1),n.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"),c),d(t.$content),void n.fancybox.animate(t.$content,l,o,function(){s.isAnimating=!1,s.complete()})):(s.updateSlide(t),e?(n.fancybox.stop(a),i="fancybox-slide--"+(t.pos>=s.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+e,a.addClass(i).removeClass("fancybox-slide--current"),t.$content.removeClass("fancybox-is-hidden"),d(a),"image"!==t.type&&t.$content.hide().show(0),void n.fancybox.animate(a,"fancybox-slide--current",o,function(){a.removeClass(i).css({transform:"",opacity:""}),t.pos===s.currPos&&s.complete()},!0)):(t.$content.removeClass("fancybox-is-hidden"),h||!u||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===s.currPos&&s.complete())))},getThumbPos:function(t){var e,i,o,r,s,a=!1,l=t.$thumb;return!(!l||!p(l[0]))&&(e=n.fancybox.getTranslate(l),i=parseFloat(l.css("border-top-width")||0),o=parseFloat(l.css("border-right-width")||0),r=parseFloat(l.css("border-bottom-width")||0),s=parseFloat(l.css("border-left-width")||0),a={top:e.top+i,left:e.left+s,width:e.width-o-s,height:e.height-i-r,scaleX:1,scaleY:1},e.width>0&&e.height>0&&a)},complete:function(){var t,e=this,i=e.current,o={};!e.isMoved()&&i.isLoaded&&(i.isComplete||(i.isComplete=!0,i.$slide.siblings().trigger("onReset"),e.preload("inline"),d(i.$slide),i.$slide.addClass("fancybox-slide--complete"),n.each(e.slides,function(t,i){i.pos>=e.currPos-1&&i.pos<=e.currPos+1?o[i.pos]=i:i&&(n.fancybox.stop(i.$slide),i.$slide.off().remove())}),e.slides=o),e.isAnimating=!1,e.updateCursor(),e.trigger("afterShow"),i.opts.video.autoStart&&i.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){this.webkitExitFullscreen&&this.webkitExitFullscreen(),e.next()}),i.opts.autoFocus&&"html"===i.contentType&&((t=i.$content.find("input[autofocus]:enabled:visible:first")).length?t.trigger("focus"):e.focus(null,!0)),i.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,n,i=this;i.group.length<2||(n=i.slides[i.currPos+1],(e=i.slides[i.currPos-1])&&e.type===t&&i.loadSlide(e),n&&n.type===t&&i.loadSlide(n))},focus:function(t,i){var o,r,s=this,a=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");s.isClosing||((o=(o=!t&&s.current&&s.current.isComplete?s.current.$slide.find("*:visible"+(i?":not(.fancybox-close-small)":"")):s.$refs.container.find("*:visible")).filter(a).filter(function(){return"hidden"!==n(this).css("visibility")&&!n(this).hasClass("disabled")})).length?(r=o.index(e.activeElement),t&&t.shiftKey?(r<0||0==r)&&(t.preventDefault(),o.eq(o.length-1).trigger("focus")):(r<0||r==o.length-1)&&(t&&t.preventDefault(),o.eq(0).trigger("focus"))):s.$refs.container.trigger("focus"))},activate:function(){var t=this;n(".fancybox-container").each(function(){var e=n(this).data("FancyBox");e&&e.id!==t.id&&!e.isClosing&&(e.trigger("onDeactivate"),e.removeEvents(),e.isVisible=!1)}),t.isVisible=!0,(t.current||t.isIdle)&&(t.update(),t.updateControls()),t.trigger("onActivate"),t.addEvents()},close:function(t,e){var i,o,r,s,a,l,u,h=this,f=h.current,p=function(){h.cleanUp(t)};return!(h.isClosing||(h.isClosing=!0,!1===h.trigger("beforeClose",t)?(h.isClosing=!1,c(function(){h.update()}),1):(h.removeEvents(),r=f.$content,i=f.opts.animationEffect,o=n.isNumeric(e)?e:i?f.opts.animationDuration:0,f.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==t?n.fancybox.stop(f.$slide):i=!1,f.$slide.siblings().trigger("onReset").remove(),o&&h.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",o+"ms"),h.hideLoading(f),h.hideControls(!0),h.updateCursor(),"zoom"!==i||r&&o&&"image"===f.type&&!h.isMoved()&&!f.hasError&&(u=h.getThumbPos(f))||(i="fade"),"zoom"===i?(n.fancybox.stop(r),s=n.fancybox.getTranslate(r),l={top:s.top,left:s.left,scaleX:s.width/u.width,scaleY:s.height/u.height,width:u.width,height:u.height},a=f.opts.zoomOpacity,"auto"==a&&(a=Math.abs(f.width/f.height-u.width/u.height)>.1),a&&(u.opacity=0),n.fancybox.setTranslate(r,l),d(r),n.fancybox.animate(r,u,o,p),0):(i&&o?n.fancybox.animate(f.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+i,o,p):!0===t?setTimeout(p,o):p(),0))))},cleanUp:function(e){var i,o,r,s=this,a=s.current.opts.$orig;s.current.$slide.trigger("onReset"),s.$refs.container.empty().remove(),s.trigger("afterClose",e),s.current.opts.backFocus&&(a&&a.length&&a.is(":visible")||(a=s.$trigger),a&&a.length&&(o=t.scrollX,r=t.scrollY,a.trigger("focus"),n("html, body").scrollTop(r).scrollLeft(o))),s.current=null,(i=n.fancybox.getInstance())?i.activate():(n("body").removeClass("fancybox-active compensate-for-scrollbar"),n("#fancybox-style-noscroll").remove())},trigger:function(t,e){var i,o=Array.prototype.slice.call(arguments,1),r=this,s=e&&e.opts?e:r.current;if(s?o.unshift(s):s=r,o.unshift(r),n.isFunction(s.opts[t])&&(i=s.opts[t].apply(s,o)),!1===i)return i;"afterClose"!==t&&r.$refs?r.$refs.container.trigger(t+".fb",o):a.trigger(t+".fb",o)},updateControls:function(){var t=this,i=t.current,o=i.index,r=t.$refs.container,s=t.$refs.caption,a=i.opts.caption;i.$slide.trigger("refresh"),a&&a.length?(t.$caption=s,s.children().eq(0).html(a)):t.$caption=null,t.hasHiddenControls||t.isIdle||t.showControls(),r.find("[data-fancybox-count]").html(t.group.length),r.find("[data-fancybox-index]").html(o+1),r.find("[data-fancybox-prev]").prop("disabled",!i.opts.loop&&o<=0),r.find("[data-fancybox-next]").prop("disabled",!i.opts.loop&&o>=t.group.length-1),"image"===i.type?r.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",i.opts.image.src||i.src).show():i.opts.toolbar&&r.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),n(e.activeElement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hideControls:function(t){var e=["infobar","toolbar","nav"];!t&&this.current.opts.preventCaptionOverlap||e.push("caption"),this.$refs.container.removeClass(e.map(function(t){return"fancybox-show-"+t}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,n=t.$refs.container;t.hasHiddenControls=!1,t.idleSecondsCounter=0,n.toggleClass("fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("fancybox-show-infobar",!!(e.infobar&&t.group.length>1)).toggleClass("fancybox-show-caption",!!t.$caption).toggleClass("fancybox-show-nav",!!(e.arrows&&t.group.length>1)).toggleClass("fancybox-is-modal",!!e.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),n.fancybox={version:"3.5.6",defaults:r,getInstance:function(t){var e=n('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),i=Array.prototype.slice.call(arguments,1);return e instanceof g&&("string"===n.type(t)?e[t].apply(e,i):"function"===n.type(t)&&t.apply(e,i),e)},open:function(t,e,n){return new g(t,e,n)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),a.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var n=e.createElement("div");return t.getComputedStyle&&t.getComputedStyle(n)&&t.getComputedStyle(n).getPropertyValue("transform")&&!(e.documentMode&&e.documentMode<11)}(),getTranslate:function(t){var e;return!(!t||!t.length)&&{top:(e=t[0].getBoundingClientRect()).top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))}},setTranslate:function(t,e){var n="",i={};if(t&&e)return void 0===e.left&&void 0===e.top||(n=(void 0===e.left?t.position().left:e.left)+"px, "+(void 0===e.top?t.position().top:e.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),void 0!==e.scaleX&&void 0!==e.scaleY?n+=" scale("+e.scaleX+", "+e.scaleY+")":void 0!==e.scaleX&&(n+=" scaleX("+e.scaleX+")"),n.length&&(i.transform=n),void 0!==e.opacity&&(i.opacity=e.opacity),void 0!==e.width&&(i.width=e.width),void 0!==e.height&&(i.height=e.height),t.css(i)},animate:function(t,e,i,o,r){var s,a=this;n.isFunction(i)&&(o=i,i=null),a.stop(t),s=a.getTranslate(t),t.on(h,function(l){(!l||!l.originalEvent||t.is(l.originalEvent.target)&&"z-index"!=l.originalEvent.propertyName)&&(a.stop(t),n.isNumeric(i)&&t.css("transition-duration",""),n.isPlainObject(e)?void 0!==e.scaleX&&void 0!==e.scaleY&&a.setTranslate(t,{top:e.top,left:e.left,width:s.width*e.scaleX,height:s.height*e.scaleY,scaleX:1,scaleY:1}):!0!==r&&t.removeClass(e),n.isFunction(o)&&o(l))}),n.isNumeric(i)&&t.css("transition-duration",i+"ms"),n.isPlainObject(e)?(void 0!==e.scaleX&&void 0!==e.scaleY&&(delete e.width,delete e.height,t.parent().hasClass("fancybox-slide--image")&&t.parent().addClass("fancybox-is-scaling")),n.fancybox.setTranslate(t,e)):t.addClass(e),t.data("timer",setTimeout(function(){t.trigger(h)},i+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(h),t.off(h).css("transition-duration",""),t.parent().removeClass("fancybox-is-scaling"))}},n.fn.fancybox=function(t){var e;return(e=(t=t||{}).selector||!1)?n("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},o):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},o),this},a.on("click.fb-start","[data-fancybox]",o),a.on("click.fb-start","[data-fancybox-trigger]",function(t){n('[data-fancybox="'+n(this).attr("data-fancybox-trigger")+'"]').eq(n(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:n(this)})}),function(){var t=null;a.on("mousedown mouseup focus blur",".fancybox-button",function(e){switch(e.type){case"mousedown":t=n(this);break;case"mouseup":t=null;break;case"focusin":n(".fancybox-button").removeClass("fancybox-focus"),n(this).is(t)||n(this).is("[disabled]")||n(this).addClass("fancybox-focus");break;case"focusout":n(".fancybox-button").removeClass("fancybox-focus")}})}()}}(window,document,jQuery),function(t){"use strict";var e={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&t[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}},n=function(e,n,i){if(e)return i=i||"","object"===t.type(i)&&(i=t.param(i,!0)),t.each(n,function(t,n){e=e.replace("$"+t,n||"")}),i.length&&(e+=(e.indexOf("?")>0?"&":"?")+i),e};t(document).on("objectNeedsType.fb",function(i,o,r){var s,a,l,c,u,h,d,f=r.src||"",p=!1;s=t.extend(!0,{},e,r.opts.media),t.each(s,function(e,i){if(l=f.match(i.matcher)){if(p=i.type,d=e,h={},i.paramPlace&&l[i.paramPlace]){"?"==(u=l[i.paramPlace])[0]&&(u=u.substring(1)),u=u.split("&");for(var o=0;o<u.length;++o){var s=u[o].split("=",2);2==s.length&&(h[s[0]]=decodeURIComponent(s[1].replace(/\+/g," ")))}}return c=t.extend(!0,{},i.params,r.opts[e],h),f="function"===t.type(i.url)?i.url.call(this,l,c,r):n(i.url,l,c),a="function"===t.type(i.thumb)?i.thumb.call(this,l,c,r):n(i.thumb,l),"youtube"===e?f=f.replace(/&t=((\d+)m)?(\d+)s/,function(t,e,n,i){return"&start="+((n?60*parseInt(n,10):0)+parseInt(i,10))}):"vimeo"===e&&(f=f.replace("&%23","#")),!1}}),p?(r.opts.thumb||r.opts.$thumb&&r.opts.$thumb.length||(r.opts.thumb=a),"iframe"===p&&(r.opts=t.extend(!0,r.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),t.extend(r,{type:p,src:f,origSrc:r.src,contentSource:d,contentType:"image"===p?"image":"gmap_place"==d||"gmap_search"==d?"map":"video"})):f&&(r.type=r.opts.defaultType)});var i={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(t){var e,n=this;this[t].loaded?setTimeout(function(){n.done(t)}):this[t].loading||(this[t].loading=!0,(e=document.createElement("script")).type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){n[t].loaded=!0,n.done(t)}:e.onload=function(){n[t].loaded=!0,n.done(t)},document.body.appendChild(e))},done:function(e){var n,i;"youtube"===e&&delete window.onYouTubeIframeAPIReady,(n=t.fancybox.getInstance())&&(i=n.current.$content.find("iframe"),"youtube"===e&&void 0!==YT&&YT?new YT.Player(i.attr("id"),{events:{onStateChange:function(t){0==t.data&&n.next()}}}):"vimeo"===e&&void 0!==Vimeo&&Vimeo&&new Vimeo.Player(i).on("ended",function(){n.next()}))}};t(document).on({"afterShow.fb":function(t,e,n){e.group.length>1&&("youtube"===n.contentSource||"vimeo"===n.contentSource)&&i.load(n.contentSource)}})}(jQuery),function(t,e,n){"use strict";var i=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)},o=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)},r=function(e){var n=[];for(var i in e=(e=e.originalEvent||e||t.e).touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e])e[i].pageX?n.push({x:e[i].pageX,y:e[i].pageY}):e[i].clientX&&n.push({x:e[i].clientX,y:e[i].clientY});return n},s=function(t,e,n){return e&&t?"x"===n?t.x-e.x:"y"===n?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0},a=function(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||n.isFunction(t.get(0).onclick)||t.data("selectable"))return!0;for(var e=0,i=t[0].attributes,o=i.length;e<o;e++)if("data-fancybox-"===i[e].nodeName.substr(0,14))return!0;return!1},l=function(e){var n=t.getComputedStyle(e)["overflow-y"],i=t.getComputedStyle(e)["overflow-x"],o=("scroll"===n||"auto"===n)&&e.scrollHeight>e.clientHeight,r=("scroll"===i||"auto"===i)&&e.scrollWidth>e.clientWidth;return o||r},c=function(t){for(var e=!1;!(e=l(t.get(0)))&&((t=t.parent()).length&&!t.hasClass("fancybox-stage")&&!t.is("body")););return e},u=function(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(e,"ontouchstart"))};u.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),n(e).off(".fb.touch"),t.requestId&&(o(t.requestId),t.requestId=null),t.tapped&&(clearTimeout(t.tapped),t.tapped=null)},u.prototype.ontouchstart=function(i){var o=this,l=n(i.target),u=o.instance,h=u.current,d=h.$slide,f=h.$content,p="touchstart"==i.type;if(p&&o.$container.off("mousedown.fb.touch"),(!i.originalEvent||2!=i.originalEvent.button)&&d.length&&l.length&&!a(l)&&!a(l.parent())&&(l.is("img")||!(i.originalEvent.clientX>l[0].clientWidth+l.offset().left))){if(!h||u.isAnimating||h.$slide.hasClass("fancybox-animated"))return i.stopPropagation(),void i.preventDefault();o.realPoints=o.startPoints=r(i),o.startPoints.length&&(h.touch&&i.stopPropagation(),o.startEvent=i,o.canTap=!0,o.$target=l,o.$content=f,o.opts=h.opts.touch,o.isPanning=!1,o.isSwiping=!1,o.isZooming=!1,o.isScrolling=!1,o.canPan=u.canPan(),o.startTime=(new Date).getTime(),o.distanceX=o.distanceY=o.distance=0,o.canvasWidth=Math.round(d[0].clientWidth),o.canvasHeight=Math.round(d[0].clientHeight),o.contentLastPos=null,o.contentStartPos=n.fancybox.getTranslate(o.$content)||{top:0,left:0},o.sliderStartPos=n.fancybox.getTranslate(d),o.stagePos=n.fancybox.getTranslate(u.$refs.stage),o.sliderStartPos.top-=o.stagePos.top,o.sliderStartPos.left-=o.stagePos.left,o.contentStartPos.top-=o.stagePos.top,o.contentStartPos.left-=o.stagePos.left,n(e).off(".fb.touch").on(p?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(o,"ontouchend")).on(p?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(o,"ontouchmove")),n.fancybox.isMobile&&e.addEventListener("scroll",o.onscroll,!0),((o.opts||o.canPan)&&(l.is(o.$stage)||o.$stage.find(l).length)||(l.is(".fancybox-image")&&i.preventDefault(),n.fancybox.isMobile&&l.parents(".fancybox-caption").length))&&(o.isScrollable=c(l)||c(l.parent()),n.fancybox.isMobile&&o.isScrollable||i.preventDefault(),(1===o.startPoints.length||h.hasError)&&(o.canPan?(n.fancybox.stop(o.$content),o.isPanning=!0):o.isSwiping=!0,o.$container.addClass("fancybox-is-grabbing")),2===o.startPoints.length&&"image"===h.type&&(h.isLoaded||h.$ghost)&&(o.canTap=!1,o.isSwiping=!1,o.isPanning=!1,o.isZooming=!0,n.fancybox.stop(o.$content),o.centerPointStartX=.5*(o.startPoints[0].x+o.startPoints[1].x)-n(t).scrollLeft(),o.centerPointStartY=.5*(o.startPoints[0].y+o.startPoints[1].y)-n(t).scrollTop(),o.percentageOfImageAtPinchPointX=(o.centerPointStartX-o.contentStartPos.left)/o.contentStartPos.width,o.percentageOfImageAtPinchPointY=(o.centerPointStartY-o.contentStartPos.top)/o.contentStartPos.height,o.startDistanceBetweenFingers=s(o.startPoints[0],o.startPoints[1]))))}},u.prototype.onscroll=function(t){this.isScrolling=!0,e.removeEventListener("scroll",this.onscroll,!0)},u.prototype.ontouchmove=function(t){var e=this;return void 0!==t.originalEvent.buttons&&0===t.originalEvent.buttons?void e.ontouchend(t):e.isScrolling?void(e.canTap=!1):(e.newPoints=r(t),void((e.opts||e.canPan)&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&!0===e.isSwiping||t.preventDefault(),e.distanceX=s(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=s(e.newPoints[0],e.startPoints[0],"y"),e.distance=s(e.newPoints[0],e.startPoints[0]),e.distance>0&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))))},u.prototype.onSwipe=function(e){var r,s=this,a=s.instance,l=s.isSwiping,c=s.sliderStartPos.left||0;if(!0!==l)"x"==l&&(s.distanceX>0&&(s.instance.group.length<2||0===s.instance.current.index&&!s.instance.current.opts.loop)?c+=Math.pow(s.distanceX,.8):s.distanceX<0&&(s.instance.group.length<2||s.instance.current.index===s.instance.group.length-1&&!s.instance.current.opts.loop)?c-=Math.pow(-s.distanceX,.8):c+=s.distanceX),s.sliderLastPos={top:"x"==l?0:s.sliderStartPos.top+s.distanceY,left:c},s.requestId&&(o(s.requestId),s.requestId=null),s.requestId=i(function(){s.sliderLastPos&&(n.each(s.instance.slides,function(t,e){var i=e.pos-s.instance.currPos;n.fancybox.setTranslate(e.$slide,{top:s.sliderLastPos.top,left:s.sliderLastPos.left+i*s.canvasWidth+i*e.opts.gutter})}),s.$container.addClass("fancybox-is-sliding"))});else if(Math.abs(s.distance)>10){if(s.canTap=!1,a.group.length<2&&s.opts.vertical?s.isSwiping="y":a.isDragging||!1===s.opts.vertical||"auto"===s.opts.vertical&&n(t).width()>800?s.isSwiping="x":(r=Math.abs(180*Math.atan2(s.distanceY,s.distanceX)/Math.PI),s.isSwiping=r>45&&r<135?"y":"x"),"y"===s.isSwiping&&n.fancybox.isMobile&&s.isScrollable)return void(s.isScrolling=!0);a.isDragging=s.isSwiping,s.startPoints=s.newPoints,n.each(a.slides,function(t,e){var i,o;n.fancybox.stop(e.$slide),i=n.fancybox.getTranslate(e.$slide),o=n.fancybox.getTranslate(a.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),e.pos===a.current.pos&&(s.sliderStartPos.top=i.top-o.top,s.sliderStartPos.left=i.left-o.left),n.fancybox.setTranslate(e.$slide,{top:i.top-o.top,left:i.left-o.left})}),a.SlideShow&&a.SlideShow.isActive&&a.SlideShow.stop()}},u.prototype.onPan=function(){var t=this;s(t.newPoints[0],t.realPoints[0])<(n.fancybox.isMobile?10:5)?t.startPoints=t.newPoints:(t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&o(t.requestId),t.requestId=i(function(){n.fancybox.setTranslate(t.$content,t.contentLastPos)}))},u.prototype.limitMovement=function(){var t,e,n,i,o,r,s=this,a=s.canvasWidth,l=s.canvasHeight,c=s.distanceX,u=s.distanceY,h=s.contentStartPos,d=h.left,f=h.top,p=h.width,g=h.height;return o=p>a?d+c:d,r=f+u,t=Math.max(0,.5*a-.5*p),e=Math.max(0,.5*l-.5*g),n=Math.min(a-p,.5*a-.5*p),i=Math.min(l-g,.5*l-.5*g),c>0&&o>t&&(o=t-1+Math.pow(-t+d+c,.8)||0),c<0&&o<n&&(o=n+1-Math.pow(n-d-c,.8)||0),u>0&&r>e&&(r=e-1+Math.pow(-e+f+u,.8)||0),u<0&&r<i&&(r=i+1-Math.pow(i-f-u,.8)||0),{top:r,left:o}},u.prototype.limitPosition=function(t,e,n,i){var o=this.canvasWidth,r=this.canvasHeight;return n>o?t=(t=t>0?0:t)<o-n?o-n:t:t=Math.max(0,o/2-n/2),i>r?e=(e=e>0?0:e)<r-i?r-i:e:e=Math.max(0,r/2-i/2),{top:e,left:t}},u.prototype.onZoom=function(){var e=this,r=e.contentStartPos,a=r.width,l=r.height,c=r.left,u=r.top,h=s(e.newPoints[0],e.newPoints[1])/e.startDistanceBetweenFingers,d=Math.floor(a*h),f=Math.floor(l*h),p=(a-d)*e.percentageOfImageAtPinchPointX,g=(l-f)*e.percentageOfImageAtPinchPointY,m=(e.newPoints[0].x+e.newPoints[1].x)/2-n(t).scrollLeft(),v=(e.newPoints[0].y+e.newPoints[1].y)/2-n(t).scrollTop(),y=m-e.centerPointStartX,b={top:u+(g+(v-e.centerPointStartY)),left:c+(p+y),scaleX:h,scaleY:h};e.canTap=!1,e.newWidth=d,e.newHeight=f,e.contentLastPos=b,e.requestId&&o(e.requestId),e.requestId=i(function(){n.fancybox.setTranslate(e.$content,e.contentLastPos)})},u.prototype.ontouchend=function(t){var i=this,s=i.isSwiping,a=i.isPanning,l=i.isZooming,c=i.isScrolling;if(i.endPoints=r(t),i.dMs=Math.max((new Date).getTime()-i.startTime,1),i.$container.removeClass("fancybox-is-grabbing"),n(e).off(".fb.touch"),e.removeEventListener("scroll",i.onscroll,!0),i.requestId&&(o(i.requestId),i.requestId=null),i.isSwiping=!1,i.isPanning=!1,i.isZooming=!1,i.isScrolling=!1,i.instance.isDragging=!1,i.canTap)return i.onTap(t);i.speed=100,i.velocityX=i.distanceX/i.dMs*.5,i.velocityY=i.distanceY/i.dMs*.5,a?i.endPanning():l?i.endZooming():i.endSwiping(s,c)},u.prototype.endSwiping=function(t,e){var i=this,o=!1,r=i.instance.group.length,s=Math.abs(i.distanceX),a="x"==t&&r>1&&(i.dMs>130&&s>10||s>50);i.sliderLastPos=null,"y"==t&&!e&&Math.abs(i.distanceY)>50?(n.fancybox.animate(i.instance.current.$slide,{top:i.sliderStartPos.top+i.distanceY+150*i.velocityY,opacity:0},200),o=i.instance.close(!0,250)):a&&i.distanceX>0?o=i.instance.previous(300):a&&i.distanceX<0&&(o=i.instance.next(300)),!1!==o||"x"!=t&&"y"!=t||i.instance.centerSlide(200),i.$container.removeClass("fancybox-is-sliding")},u.prototype.endPanning=function(){var t,e,i,o=this;o.contentLastPos&&(!1===o.opts.momentum||o.dMs>350?(t=o.contentLastPos.left,e=o.contentLastPos.top):(t=o.contentLastPos.left+500*o.velocityX,e=o.contentLastPos.top+500*o.velocityY),(i=o.limitPosition(t,e,o.contentStartPos.width,o.contentStartPos.height)).width=o.contentStartPos.width,i.height=o.contentStartPos.height,n.fancybox.animate(o.$content,i,366))},u.prototype.endZooming=function(){var t,e,i,o,r=this,s=r.instance.current,a=r.newWidth,l=r.newHeight;r.contentLastPos&&(t=r.contentLastPos.left,o={top:e=r.contentLastPos.top,left:t,width:a,height:l,scaleX:1,scaleY:1},n.fancybox.setTranslate(r.$content,o),a<r.canvasWidth&&l<r.canvasHeight?r.instance.scaleToFit(150):a>s.width||l>s.height?r.instance.scaleToActual(r.centerPointStartX,r.centerPointStartY,150):(i=r.limitPosition(t,e,a,l),n.fancybox.animate(r.$content,i,150)))},u.prototype.onTap=function(e){var i,o=this,s=n(e.target),a=o.instance,l=a.current,c=e&&r(e)||o.startPoints,u=c[0]?c[0].x-n(t).scrollLeft()-o.stagePos.left:0,h=c[0]?c[0].y-n(t).scrollTop()-o.stagePos.top:0,d=function(t){var i=l.opts[t];if(n.isFunction(i)&&(i=i.apply(a,[l,e])),i)switch(i){case"close":a.close(o.startEvent);break;case"toggleControls":a.toggleControls();break;case"next":a.next();break;case"nextOrClose":a.group.length>1?a.next():a.close(o.startEvent);break;case"zoom":"image"==l.type&&(l.isLoaded||l.$ghost)&&(a.canPan()?a.scaleToFit():a.isScaledDown()?a.scaleToActual(u,h):a.group.length<2&&a.close(o.startEvent))}};if((!e.originalEvent||2!=e.originalEvent.button)&&(s.is("img")||!(u>s[0].clientWidth+s.offset().left))){if(s.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))i="Outside";else if(s.is(".fancybox-slide"))i="Slide";else{if(!a.current.$content||!a.current.$content.find(s).addBack().filter(s).length)return;i="Content"}if(o.tapped){if(clearTimeout(o.tapped),o.tapped=null,Math.abs(u-o.tapX)>50||Math.abs(h-o.tapY)>50)return this;d("dblclick"+i)}else o.tapX=u,o.tapY=h,l.opts["dblclick"+i]&&l.opts["dblclick"+i]!==l.opts["click"+i]?o.tapped=setTimeout(function(){o.tapped=null,a.isAnimating||d("click"+i)},500):d("click"+i);return this}},n(e).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new u(e))}).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,jQuery),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,n=t.instance,i=n.group[n.currIndex].opts.slideShow;t.$button=n.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),n.group.length<2||!i?t.$button.hide():i.progress&&(t.$progress=e('<div class="fancybox-progress"></div>').appendTo(n.$refs.inner))},set:function(t){var n=this,i=n.instance,o=i.current;o&&(!0===t||o.opts.loop||i.currIndex<i.group.length-1)?n.isActive&&"video"!==o.contentType&&(n.$progress&&e.fancybox.animate(n.$progress.show(),{scaleX:1},o.opts.slideShow.speed),n.timer=setTimeout(function(){i.current.opts.loop||i.current.index!=i.group.length-1?i.next():i.jumpTo(0)},o.opts.slideShow.speed)):(n.stop(),i.idleSecondsCounter=0,i.showControls())},clear:function(){var t=this;clearTimeout(t.timer),t.timer=null,t.$progress&&t.$progress.removeAttr("style").hide()},start:function(){var t=this,e=t.instance.current;e&&(t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),t.isActive=!0,e.isComplete&&t.set(!0),t.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),t.isActive=!1,t.instance.trigger("onSlideShowChange",!1),t.$progress&&t.$progress.removeAttr("style").hide()},toggle:function(){var t=this;t.isActive?t.stop():t.start()}}),e(t).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new n(e))},"beforeShow.fb":function(t,e,n,i){var o=e&&e.SlideShow;i?o&&n.opts.slideShow.autoStart&&o.start():o&&o.isActive&&o.clear()},"afterShow.fb":function(t,e,n){var i=e&&e.SlideShow;i&&i.isActive&&i.set()},"afterKeydown.fb":function(n,i,o,r,s){var a=i&&i.SlideShow;!a||!o.opts.slideShow||80!==s&&32!==s||e(t.activeElement).is("button,a,input")||(r.preventDefault(),a.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){var n=e&&e.SlideShow;n&&n.stop()}}),e(t).on("visibilitychange",function(){var n=e.fancybox.getInstance(),i=n&&n.SlideShow;i&&i.isActive&&(t.hidden?i.clear():i.set())})}(document,jQuery),function(t,e){"use strict";var n=function(){for(var e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["
1webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n={},i=0;i<e.length;i++){var o=e[i];if(o&&o[1]in t){for(var r=0;r<o.length;r++)n[e[0][r]]=o[r];return n}}return!1}();if(n){var i={request:function(e){(e=e||t.documentElement)[n.requestFullscreen](e.ALLOW_KEYBOARD_INPUT)},exit:function(){t[n.exitFullscreen]()},toggle:function(e){e=e||t.documentElement,this.isFullscreen()?this.exit():this.request(e)},isFullscreen:function(){return Boolean(t[n.fullscreenElement])},enabled:function(){return Boolean(t[n.fullscreenEnabled])}};e.extend(!0,e.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),e(t).on(n.fullscreenchange,function(){var t=i.isFullscreen(),n=e.fancybox.getInstance();n&&(n.current&&"image"===n.current.type&&n.isAnimating&&(n.isAnimating=!1,n.update(!0,!0,0),n.isComplete||n.complete()),n.trigger("onFullscreenChange",t),n.$refs.container.toggleClass("fancybox-is-fullscreen",t),n.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!t).toggleClass("fancybox-button--fsexit",t))})}e(t).on({"onInit.fb":function(t,e){n?e&&e.group[e.currIndex].opts.fullScreen?(e.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),i.toggle()}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&i.request(),e.FullScreen=i):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(t,e,n,i,o){e&&e.FullScreen&&70===o&&(i.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("fancybox-is-fullscreen")&&i.exit()}})}(document,jQuery),function(t,e){"use strict";var n="fancybox-thumbs";e.fancybox.defaults=e.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},e.fancybox.defaults);var i=function(t){this.init(t)};e.extend(i.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,n=t.group,i=0;e.instance=t,e.opts=n[t.currIndex].opts.thumbs,t.Thumbs=e,e.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var o=0,r=n.length;o<r&&(n[o].thumb&&i++,!(i>1));o++);i>1&&e.opts?(e.$button.removeAttr("style").on("click",function(){e.toggle()}),e.isActive=!0):e.$button.hide()},create:function(){var t,i=this,o=i.instance,r=i.opts.parentEl,s=[];i.$grid||(i.$grid=e('<div class="'+n+" "+n+"-"+i.opts.axis+'"></div>').appendTo(o.$refs.container.find(r).addBack().filter(r)),i.$grid.on("click","a",function(){o.jumpTo(e(this).attr("data-index"))})),i.$list||(i.$list=e('<div class="'+n+'__list">').appendTo(i.$grid)),e.each(o.group,function(e,n){(t=n.thumb)||"image"!==n.type||(t=n.src),s.push('<a href="javascript:;" tabindex="0" data-index="'+e+'"'+(t&&t.length?' style="background-image:url('+t+')"':'class="fancybox-thumbs-missing"')+"></a>")}),i.$list[0].innerHTML=s.join(""),"x"===i.opts.axis&&i.$list.width(parseInt(i.$grid.css("padding-right"),10)+o.group.length*i.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,n,i=this,o=i.$list,r=i.$grid;i.instance.current&&(n=(e=o.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+i.instance.current.index+'"]').addClass("fancybox-thumbs-active")).position(),"y"===i.opts.axis&&(n.top<0||n.top>o.height()-e.outerHeight())?o.stop().animate({scrollTop:o.scrollTop()+n.top},t):"x"===i.opts.axis&&(n.left<r.scrollLeft()||n.left>r.scrollLeft()+(r.width()-e.outerWidth()))&&o.parent().stop().animate({scrollLeft:n.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focu
vendor: 5,884 bytes, line 1
1s(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),e(t).on({"onInit.fb":function(t,e){var n;e&&!e.Thumbs&&((n=new i(e)).isActive&&!0===n.opts.autoStart&&n.show())},"beforeShow.fb":function(t,e,n,i){var o=e&&e.Thumbs;o&&o.isVisible&&o.focus(i?0:250)},"afterKeydown.fb":function(t,e,n,i,o){var r=e&&e.Thumbs;r&&r.isActive&&71===o&&(i.preventDefault(),r.toggle())},"beforeClose.fb":function(t,e){var n=e&&e.Thumbs;n&&n.isVisible&&!1!==n.opts.hideOnClose&&n.$grid.hide()}})}(document,jQuery),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location},tpl:'<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a></p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" onclick="select()" /></p></div>'}}),e(t).on("click","[data-fancybox-share]",function(){var t,n,i=e.fancybox.getInstance(),o=i.current||null;o&&("function"===e.type(o.opts.share.url)&&(t=o.opts.share.url.apply(o,[i,o])),n=o.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===o.type?encodeURIComponent(o.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(t)).replace(/\{\{url_raw\}\}/g,function(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(t).replace(/[&<>"'`=\/]/g,function(t){return e[t]})}(t)).replace(/\{\{descr\}\}/g,i.$caption?encodeURIComponent(i.$caption.text()):""),e.fancybox.open({src:i.translate(i,n),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(t,e){i.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(t,e,n){"use strict";function i(){var e=t.location.hash.substr(1),n=e.split("-"),i=n.length>1&&/^\+?\d+$/.test(n[n.length-1])&&parseInt(n.pop(-1),10)||1;return{hash:e,index:i<1?1:i,gallery:n.join("-")}}function o(t){""!==t.gallery&&n("[data-fancybox='"+n.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function r(t){var e,n;return!!t&&(""!==(n=(e=t.current?t.current.opts:t.opts).hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&n)}n.escapeSelector||(n.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t})}),n(function(){!1!==n.fancybox.defaults.hash&&(n(e).on({"onInit.fb":function(t,e){var n,o;!1!==e.group[e.currIndex].opts.hash&&(n=i(),(o=r(e))&&n.gallery&&o==n.gallery&&(e.currIndex=n.index-1))},"beforeShow.fb":function(n,i,o,s){var a;o&&!1!==o.opts.hash&&(a=r(i))&&(i.currentHash=a+(i.group.length>1?"-"+(o.index+1):""),t.location.hash!=="#"+i.currentHash&&(s&&!i.origHash&&(i.origHash=t.location.hash),i.hashTimer&&clearTimeout(i.hashTimer),i.hashTimer=setTimeout(function(){"replaceState"in t.history?(t.history[s?"pushState":"replaceState"]({},e.title,t.location.pathname+t.location.search+"#"+i.currentHash),s&&(i.hasCreatedHistory=!0)):t.location.hash=i.currentHash,i.hashTimer=null},300)))},"beforeClose.fb":function(n,i,o){o&&!1!==o.opts.hash&&(clearTimeout(i.hashTimer),i.currentHash&&i.hasCreatedHistory?t.history.back():i.currentHash&&("replaceState"in t.history?t.history.replaceState({},e.title,t.location.pathname+t.location.search+(i.origHash||"")):t.location.hash=i.origHash),i.currentHash=null)}}),n(t).on("hashchange.fb",function(){var t=i(),e=null;n.each(n(".fancybox-container").get().reverse(),function(t,i){var o=n(i).data("FancyBox");if(o&&o.currentHash)return e=o,!1}),e?e.currentHash===t.gallery+"-"+t.index||1===t.index&&e.currentHash==t.gallery||(e.currentHash=null,e.close()):""!==t.gallery&&o(t)}),setTimeout(function(){n.fancybox.getInstance()||o(i())},50))})}(window,document,jQuery),function(t,e){"use strict";var n=(new Date).getTime();
1e(t).on({"onInit.fb":function(t,e,i){e.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var i=e.current,o=(new Date).getTime();e.group.length<2||!1===i.opts.wheel||"auto"===i.opts.wheel&&"image"!==i.type||(t.preventDefault(),t.stopPropagation(),i.$slide.hasClass("fancybox-animated")||(t=t.originalEvent||t,o-n<250||(n=o,e[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,jQuery),"object"==typeof navigator&&function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Plyr",e):(t=t||self).Plyr=e()}(this,function(){"use strict";!function(){if("undefined"!=typeof window)try{var t=new window.CustomEvent("test",{cancelable:!0});if(t.preventDefault(),!0!==t.defaultPrevented)throw new Error("Could not prevent default")}catch(t){var e=function(t,e){var n,i;return(e=e||{}).bubbles=!!e.bubbles,e.cancelable=!!e.cancelable,(n=document.createEvent("CustomEvent")).initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i=n.preventDefault,n.preventDefault=function(){i.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(t){this.defaultPrevented=!0}},n};e.prototype=window.Event.prototype,window.CustomEvent=e}}();var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n=function(t){return t&&t.Math==Math&&t},i=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")(),o=function(t){try{return!!t()}catch(t){return!0}},r=!o(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),s={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,l={f:a&&!s.call({1:2},1)?function(t){var e=a(this,t);return!!e&&e.enumerable}:s},c=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},u={}.toString,h=function(t){return u.call(t).slice(8,-1)},d="".split,f=o(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==h(t)?d.call(t,""):Object(t)}:Object,p=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},g=function(t){return f(p(t))},m=function(t){return"object"==typeof t?null!==t:"function"==typeof t},v=function(t,e){if(!m(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!m(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!m(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!m(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,b=function(t,e){return y.call(t,e)},w=i.document,x=m(w)&&m(w.createElement),S=function(t){return x?w.createElement(t):{}},k=!r&&!o(function(){return 7!=Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a}),E=Object.getOwnPropertyDescriptor,T={f:r?E:function(t,e){if(t=g(t),e=v(e,!0),k)try{return E(t,e)}catch(t){}if(b(t,e))return c(!l.f.call(t,e),t[e])}},C=function(t){if(!m(t))throw TypeError(String(t)+" is not an object");return t},P=Object.defineProperty,A={f:r?P:function(t,e,n){if(C(t),e=v(e,!0),C(n),k)try{return P(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},I=r?function(t,e,n){return A.f(t,e,c(1,n))}:function(t,e,n){return t[e]=n,t},L=function(t,e){try{I(i,t,e)}catch(n){i[t]=e}return e},_=i["__core-js_shared__"]||L("__core-js_shared__",{}),M=Function.toString;"function"!=typeof _.inspectSource&&(_.inspectSource=function(t){return M.call(t)});var O,j,D,z=_.inspectSource,$=i.WeakMap,R="function"==typeof $&&/native code/.test(z($)),F=e(function(t){(t.exports=function(t,e){return _[t]||(_[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),N=0,q=Math.random(),U=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++N+q).toString(36)},H=F("keys"),B=function(t){return H[t]||(H[t]=U(t))},W={},V=i.WeakMap;if(R){var X=new V,Y=X.get,Q=X.has,G=X.set;O=function(t,e){return G.call(X,t,e),e},j=function(t){return Y.call(X,t)||{}},D=function(t){return Q.call(X,t)}}else{var K=B("state");W[K]=!0,O=function(t,e){return I(t,K,e),e},j=function(t){return b(t,K)?t[K]:{}}
vendor: 5,196 bytes, line 1
1,D=function(t){return b(t,K)}}var Z,J={set:O,get:j,has:D,enforce:function(t){return D(t)?j(t):O(t,{})},getterFor:function(t){return function(e){var n;if(!m(e)||(n=j(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},tt=e(function(t){var e=J.get,n=J.enforce,o=String(String).split("String");(t.exports=function(t,e,r,s){var a=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,c=!!s&&!!s.noTargetGet;"function"==typeof r&&("string"!=typeof e||b(r,"name")||I(r,"name",e),n(r).source=o.join("string"==typeof e?e:"")),t!==i?(a?!c&&t[e]&&(l=!0):delete t[e],l?t[e]=r:I(t,e,r)):l?t[e]=r:L(e,r)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||z(this)})}),et=i,nt=function(t){return"function"==typeof t?t:void 0},it=function(t,e){return arguments.length<2?nt(et[t])||nt(i[t]):et[t]&&et[t][e]||i[t]&&i[t][e]},ot=Math.ceil,rt=Math.floor,st=function(t){return isNaN(t=+t)?0:(t>0?rt:ot)(t)},at=Math.min,lt=function(t){return t>0?at(st(t),9007199254740991):0},ct=Math.max,ut=Math.min,ht=function(t,e){var n=st(t);return n<0?ct(n+e,0):ut(n,e)},dt=function(t){return function(e,n,i){var o,r=g(e),s=lt(r.length),a=ht(i,s);if(t&&n!=n){for(;s>a;)if((o=r[a++])!=o)return!0}else for(;s>a;a++)if((t||a in r)&&r[a]===n)return t||a||0;return!t&&-1}},ft={includes:dt(!0),indexOf:dt(!1)},pt=ft.indexOf,gt=function(t,e){var n,i=g(t),o=0,r=[];for(n in i)!b(W,n)&&b(i,n)&&r.push(n);for(;e.length>o;)b(i,n=e[o++])&&(~pt(r,n)||r.push(n));return r},mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vt=mt.concat("length","prototype"),yt={f:Object.getOwnPropertyNames||function(t){return gt(t,vt)}},bt={f:Object.getOwnPropertySymbols},wt=it("Reflect","ownKeys")||function(t){var e=yt.f(C(t)),n=bt.f;return n?e.concat(n(t)):e},xt=function(t,e){for(var n=wt(e),i=A.f,o=T.f,r=0;r<n.length;r++){var s=n[r];b(t,s)||i(t,s,o(e,s))}},St=/#|\.prototype\./,kt=function(t,e){var n=Tt[Et(t)];return n==Pt||n!=Ct&&("function"==typeof e?o(e):!!e)},Et=kt.normalize=function(t){return String(t).replace(St,".").toLowerCase()},Tt=kt.data={},Ct=kt.NATIVE="N",Pt=kt.POLYFILL="P",At=kt,It=T.f,Lt=function(t,e){var n,o,r,s,a,l=t.target,c=t.global,u=t.stat;if(n=c?i:u?i[l]||L(l,{}):(i[l]||{}).prototype)for(o in e){if(s=e[o],r=t.noTargetGet?(a=It(n,o))&&a.value:n[o],!At(c?o:l+(u?".":"#")+o,t.forced)&&void 0!==r){if(typeof s==typeof r)continue;xt(s,r)}(t.sham||r&&r.sham)&&I(s,"sham",!0),tt(n,o,s,t)}},_t=!!Object.getOwnPropertySymbols&&!o(function(){return!String(Symbol())}),Mt=_t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ot=Array.isArray||function(t){return"Array"==h(t)},jt=function(t){return Object(p(t))},Dt=Object.keys||function(t){return gt(t,mt)},zt=r?Object.defineProperties:function(t,e){C(t);for(var n,i=Dt(e),o=i.length,r=0;o>r;)A.f(t,n=i[r++],e[n]);return t},$t=it("document","documentElement"),Rt=B("IE_PROTO"),Ft=function(){},Nt=function(t){return"<script>"+t+"<\/script>"},qt=function(){try{Z=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;qt=Z?function(t){t.write(Nt("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Z):((e=S("iframe")).style.display="none",$t.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Nt("document.F=Object")),t.close(),t.F);for(var n=mt.length;n--;)delete qt.prototype[mt[n]];return qt()};W[Rt]=!0;var Ut=Object.create||function(t,e){var n;return null!==t?(Ft.prototype=C(t),n=new Ft,Ft.prototype=null,n[Rt]=t):n=qt(),void 0===e?n:zt(n,e)},Ht=yt.f,Bt={}.toString,Wt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Vt={f:function(t){return Wt&&"[object Window]"==Bt.call(t)?function(t){try{return Ht(t)}catch(t){return Wt.slice()}}(t):Ht(g(t))}},Xt=F("wks"),Yt=i.Symbol,Qt=Mt?Yt:Yt&&Yt.withoutSetter||U,Gt=function(t){return b(Xt,t)||(_t&&b(Yt,t)?Xt[t]=Yt[t]:Xt[t]=Qt("Symbol."+t)),Xt[t]},Kt={f:Gt},Zt=A.f,Jt=function(t){var e=et.Symbol||(et.Symbol={});b(e,t)||Zt(e,t,{value:Kt.f(t)})},te=A.f,ee=Gt("toStringTag"),ne=function(t,e,n){t&&!b(t=n?t:t.prototype,ee)&&te(t,ee,{configurable:!0,value:e})},ie=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},oe=function(t,e,n){if(ie(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,o){return t.call(e,n,i,o)}}return function(){return t.apply(e,arguments)}},re=Gt("species"),se=function(t,e){var n;return Ot(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Ot(n.prototype)?m(n)&&null===(n=n[re])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},ae=[].push,le=function(t){var e=1==t,n=2==t,i=3==t,o=4==t,r=6==t,s=5==t||r;return function(a,l,c,u){for(var h,d,p=jt(a),g=f(p),m=oe(l,c,3),v=lt(g.length),y=0,b=u||se,w=e?b(a,v):n?b(a,0):void 0;v>y;y++)if((s||y in g)&&(d=m(h=g[y],y,p),t))if(e)w[y]=d;else if(d)switch(t){case 3:return!0;case 5:return h;case 6:return y;case 2:ae.call(w,h)}else if(o)return!1;return r?-1:i||o?o:w}},ce={forEach:le(0),map:le(1),filter:le(2),some:le(3),every:le(4),find:le(5),findIndex:le
vendor: 5,883 bytes, line 1
1(6)},ue=ce.forEach,he=B("hidden"),de=Gt("toPrimitive"),fe=J.set,pe=J.getterFor("Symbol"),ge=Object.prototype,me=i.Symbol,ve=it("JSON","stringify"),ye=T.f,be=A.f,we=Vt.f,xe=l.f,Se=F("symbols"),ke=F("op-symbols"),Ee=F("string-to-symbol-registry"),Te=F("symbol-to-string-registry"),Ce=F("wks"),Pe=i.QObject,Ae=!Pe||!Pe.prototype||!Pe.prototype.findChild,Ie=r&&o(function(){return 7!=Ut(be({},"a",{get:function(){return be(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=ye(ge,e);i&&delete ge[e],be(t,e,n),i&&t!==ge&&be(ge,e,i)}:be,Le=function(t,e){var n=Se[t]=Ut(me.prototype);return fe(n,{type:"Symbol",tag:t,description:e}),r||(n.description=e),n},_e=Mt?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof me},Me=function(t,e,n){t===ge&&Me(ke,e,n),C(t);var i=v(e,!0);return C(n),b(Se,i)?(n.enumerable?(b(t,he)&&t[he][i]&&(t[he][i]=!1),n=Ut(n,{enumerable:c(0,!1)})):(b(t,he)||be(t,he,c(1,{})),t[he][i]=!0),Ie(t,i,n)):be(t,i,n)},Oe=function(t,e){C(t);var n=g(e),i=Dt(n).concat($e(n));return ue(i,function(e){r&&!je.call(n,e)||Me(t,e,n[e])}),t},je=function(t){var e=v(t,!0),n=xe.call(this,e);return!(this===ge&&b(Se,e)&&!b(ke,e))&&(!(n||!b(this,e)||!b(Se,e)||b(this,he)&&this[he][e])||n)},De=function(t,e){var n=g(t),i=v(e,!0);if(n!==ge||!b(Se,i)||b(ke,i)){var o=ye(n,i);return!o||!b(Se,i)||b(n,he)&&n[he][i]||(o.enumerable=!0),o}},ze=function(t){var e=we(g(t)),n=[];return ue(e,function(t){b(Se,t)||b(W,t)||n.push(t)}),n},$e=function(t){var e=t===ge,n=we(e?ke:g(t)),i=[];return ue(n,function(t){!b(Se,t)||e&&!b(ge,t)||i.push(Se[t])}),i};if(_t||(tt((me=function(){if(this instanceof me)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=U(t),n=function(t){this===ge&&n.call(ke,t),b(this,he)&&b(this[he],e)&&(this[he][e]=!1),Ie(this,e,c(1,t))};return r&&Ae&&Ie(ge,e,{configurable:!0,set:n}),Le(e,t)}).prototype,"toString",function(){return pe(this).tag}),tt(me,"withoutSetter",function(t){return Le(U(t),t)}),l.f=je,A.f=Me,T.f=De,yt.f=Vt.f=ze,bt.f=$e,Kt.f=function(t){return Le(Gt(t),t)},r&&(be(me.prototype,"description",{configurable:!0,get:function(){return pe(this).description}}),tt(ge,"propertyIsEnumerable",je,{unsafe:!0}))),Lt({global:!0,wrap:!0,forced:!_t,sham:!_t},{Symbol:me}),ue(Dt(Ce),function(t){Jt(t)}),Lt({target:"Symbol",stat:!0,forced:!_t},{for:function(t){var e=String(t);if(b(Ee,e))return Ee[e];var n=me(e);return Ee[e]=n,Te[n]=e,n},keyFor:function(t){if(!_e(t))throw TypeError(t+" is not a symbol");if(b(Te,t))return Te[t]},useSetter:function(){Ae=!0},useSimple:function(){Ae=!1}}),Lt({target:"Object",stat:!0,forced:!_t,sham:!r},{create:function(t,e){return void 0===e?Ut(t):Oe(Ut(t),e)},defineProperty:Me,defineProperties:Oe,getOwnPropertyDescriptor:De}),Lt({target:"Object",stat:!0,forced:!_t},{getOwnPropertyNames:ze,getOwnPropertySymbols:$e}),Lt({target:"Object",stat:!0,forced:o(function(){bt.f(1)})},{getOwnPropertySymbols:function(t){return bt.f(jt(t))}}),ve){var Re=!_t||o(function(){var t=me();return"[null]"!=ve([t])||"{}"!=ve({a:t})||"{}"!=ve(Object(t))});Lt({target:"JSON",stat:!0,forced:Re},{stringify:function(t,e,n){for(var i,o=[t],r=1;arguments.length>r;)o.push(arguments[r++]);if(i=e,(m(e)||void 0!==t)&&!_e(t))return Ot(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!_e(e))return e}),o[1]=e,ve.apply(null,o)}})}me.prototype[de]||I(me.prototype,de,me.prototype.valueOf),ne(me,"Symbol"),W[he]=!0;var Fe=A.f,Ne=i.Symbol;if(r&&"function"==typeof Ne&&(!("description"in Ne.prototype)||void 0!==Ne().description)){var qe={},Ue=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof Ue?new Ne(t):void 0===t?Ne():Ne(t);return""===t&&(qe[e]=!0),e};xt(Ue,Ne);var He=Ue.prototype=Ne.prototype;He.constructor=Ue;var Be=He.toString,We="Symbol(test)"==String(Ne("test")),Ve=/^Symbol\((.*)\)[^)]+$/;Fe(He,"description",{configurable:!0,get:function(){var t=m(this)?this.valueOf():this,e=Be.call(t);if(b(qe,t))return"";var n=We?e.slice(7,-1):e.replace(Ve,"$1");return""===n?void 0:n}}),Lt({global:!0,forced:!0},{Symbol:Ue})}Jt("iterator");var Xe=function(t,e){var n=[][t];return!!n&&o(function(){n.call(null,e||function(){throw 1},1)})},Ye=Object.defineProperty,Qe={},Ge=function(t){throw t},Ke=function(t,e){if(b(Qe,t))return Qe[t];e||(e={});var n=[][t],i=!!b(e,"ACCESSORS")&&e.ACCESSORS,s=b(e,0)?e[0]:Ge,a=b(e,1)?e[1]:void 0;return Qe[t]=!!n&&!o(function(){if(i&&!r)return!0;var t={length:-1};i?Ye(t,1,{enumerable:!0,get:Ge}):t[1]=1,n.call(t,s,a)})},Ze=ce.forEach,Je=Xe("forEach"),tn=Ke("forEach"),en=Je&&tn?[].forEach:function(t){return Ze(this,t,arguments.length>1?arguments[1]:void 0)};Lt({target:"Array",proto:!0,forced:[].forEach!=en},{forEach:en});var nn=ft.indexOf,on=[].indexOf,rn=!!on&&1/[1].indexOf(1,-0)<0,sn=Xe("indexOf"),an=Ke("indexOf",{ACCESSORS:!0,1:0});Lt({target:"Array",proto:!0,forced:rn||!sn||!an},{indexOf:function(t){return rn?on.apply(this,arguments)||0:nn(this,t,arguments.length>1?arguments[1]:void 0)}});var ln=Gt("unscopables"),cn=Array.prototype;null==cn[ln]&&A.f(cn,ln,{configurable:!0,value:Ut(null)});var un,hn,dn,fn=function(t){cn[ln][t]=!0},pn={},gn=!o(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),mn=B("IE_PROTO"),vn=Object.prototype,yn=gn?Object.getPrototypeOf:function(t){return t=jt(t),b(t,mn)?t[mn]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?vn:null},bn=Gt("iterator"),wn=!1;[].keys&&("next"in(dn=[].keys())?(hn=yn(yn(dn)))!==Object.prototype&&(un=hn):wn=!0),null==un&&(un={}),b(un,bn)||I(un,bn,function(){return this});var xn={IteratorPrototype:un,BUGGY_SAFARI_ITERATORS:wn},Sn=xn.IteratorPrototype,kn=function(){return this},En=function(t,e,n){var i=e+" Iterator";return t.prototype=Ut(Sn,{next:c(1,n)}),ne(t,i,!1),pn[i]=kn,t}
vendor: 15,163 bytes, line 1
1,Tn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return C(n),function(t){if(!m(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(i),e?t.call(n,i):n.__proto__=i,n}}():void 0),Cn=xn.IteratorPrototype,Pn=xn.BUGGY_SAFARI_ITERATORS,An=Gt("iterator"),In=function(){return this},Ln=function(t,e,n,i,o,r,s){En(n,e,i);var a,l,c,u=function(t){if(t===o&&g)return g;if(!Pn&&t in f)return f[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",d=!1,f=t.prototype,p=f[An]||f["@@iterator"]||o&&f[o],g=!Pn&&p||u(o),m="Array"==e&&f.entries||p;if(m&&(a=yn(m.call(new t)),Cn!==Object.prototype&&a.next&&(yn(a)!==Cn&&(Tn?Tn(a,Cn):"function"!=typeof a[An]&&I(a,An,In)),ne(a,h,!0))),"values"==o&&p&&"values"!==p.name&&(d=!0,g=function(){return p.call(this)}),f[An]!==g&&I(f,An,g),pn[e]=g,o)if(l={values:u("values"),keys:r?g:u("keys"),entries:u("entries")},s)for(c in l)!Pn&&!d&&c in f||tt(f,c,l[c]);else Lt({target:e,proto:!0,forced:Pn||d},l);return l},_n=J.set,Mn=J.getterFor("Array Iterator"),On=Ln(Array,"Array",function(t,e){_n(this,{type:"Array Iterator",target:g(t),index:0,kind:e})},function(){var t=Mn(this),e=t.target,n=t.kind,i=t.index++;return!e||i>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:e[i],done:!1}:{value:[i,e[i]],done:!1}},"values");pn.Arguments=pn.Array,fn("keys"),fn("values"),fn("entries");var jn=[].join,Dn=f!=Object,zn=Xe("join",",");Lt({target:"Array",proto:!0,forced:Dn||!zn},{join:function(t){return jn.call(g(this),void 0===t?",":t)}});var $n,Rn,Fn=function(t,e,n){var i=v(e);i in t?A.f(t,i,c(0,n)):t[i]=n},Nn=it("navigator","userAgent")||"",qn=i.process,Un=qn&&qn.versions,Hn=Un&&Un.v8;Hn?Rn=($n=Hn.split("."))[0]+$n[1]:Nn&&(!($n=Nn.match(/Edge\/(\d+)/))||$n[1]>=74)&&($n=Nn.match(/Chrome\/(\d+)/))&&(Rn=$n[1]);var Bn=Rn&&+Rn,Wn=Gt("species"),Vn=function(t){return Bn>=51||!o(function(){var e=[];return(e.constructor={})[Wn]=function(){return{foo:1}},1!==e[t](Boolean).foo})},Xn=Vn("slice"),Yn=Ke("slice",{ACCESSORS:!0,0:0,1:2}),Qn=Gt("species"),Gn=[].slice,Kn=Math.max;Lt({target:"Array",proto:!0,forced:!Xn||!Yn},{slice:function(t,e){var n,i,o,r=g(this),s=lt(r.length),a=ht(t,s),l=ht(void 0===e?s:e,s);if(Ot(r)&&("function"!=typeof(n=r.constructor)||n!==Array&&!Ot(n.prototype)?m(n)&&null===(n=n[Qn])&&(n=void 0):n=void 0,n===Array||void 0===n))return Gn.call(r,a,l);for(i=new(void 0===n?Array:n)(Kn(l-a,0)),o=0;a<l;a++,o++)a in r&&Fn(i,o,r[a]);return i.length=o,i}});var Zn={};Zn[Gt("toStringTag")]="z";var Jn="[object z]"===String(Zn),ti=Gt("toStringTag"),ei="Arguments"==h(function(){return arguments}()),ni=Jn?h:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),ti))?n:ei?h(e):"Object"==(i=h(e))&&"function"==typeof e.callee?"Arguments":i},ii=Jn?{}.toString:function(){return"[object "+ni(this)+"]"};Jn||tt(Object.prototype,"toString",ii,{unsafe:!0});var oi=function(){var t=C(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function ri(t,e){return RegExp(t,e)}var si={UNSUPPORTED_Y:o(function(){var t=ri("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),BROKEN_CARET:o(function(){var t=ri("^r","gy");return t.lastIndex=2,null!=t.exec("str")})},ai=RegExp.prototype.exec,li=String.prototype.replace,ci=ai,ui=function(){var t=/a/,e=/b*/g;return ai.call(t,"a"),ai.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),hi=si.UNSUPPORTED_Y||si.BROKEN_CARET,di=void 0!==/()??/.exec("")[1];(ui||di||hi)&&(ci=function(t){var e,n,i,o,r=this,s=hi&&r.sticky,a=oi.call(r),l=r.source,c=0,u=t;return s&&(-1===(a=a.replace("y","")).indexOf("g")&&(a+="g"),u=String(t).slice(r.lastIndex),r.lastIndex>0&&(!r.multiline||r.multiline&&"\n"!==t[r.lastIndex-1])&&(l="(?: "+l+")",u=" "+u,c++),n=new RegExp("^(?:"+l+")",a)),di&&(n=new RegExp("^"+l+"$(?!\\s)",a)),ui&&(e=r.lastIndex),i=ai.call(s?n:r,u),s?i?(i.input=i.input.slice(c),i[0]=i[0].slice(c),i.index=r.lastIndex,r.lastIndex+=i[0].length):r.lastIndex=0:ui&&i&&(r.lastIndex=r.global?i.index+i[0].length:e),di&&i&&i.length>1&&li.call(i[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)}),i});var fi=ci;Lt({target:"RegExp",proto:!0,forced:/./.exec!==fi},{exec:fi});var pi=RegExp.prototype,gi=pi.toString,mi=o(function(){return"/a/b"!=gi.call({source:"a",flags:"b"})}),vi="toString"!=gi.name;(mi||vi)&&tt(RegExp.prototype,"toString",function(){var t=C(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in pi)?oi.call(t):n)},{unsafe:!0});var yi=function(t){return function(e,n){var i,o,r=String(p(e)),s=st(n),a=r.length;return s<0||s>=a?t?"":void 0:(i=r.charCodeAt(s))<55296||i>56319||s+1===a||(o=r.charCodeAt(s+1))<56320||o>57343?t?r.charAt(s):i:t?r.slice(s,s+2):o-56320+(i-55296<<10)+65536}},bi={codeAt:yi(!1),charAt:yi(!0)},wi=bi.charAt,xi=J.set,Si=J.getterFor("String Iterator");Ln(String,"String",function(t){xi(this,{type:"String Iterator",string:String(t),index:0})},function(){var t,e=Si(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=wi(n,i),e.index+=t.length,{value:t,done:!1})});var ki=Gt("species"),Ei=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),Ti="$0"==="a".replace(/./,"$0"),Ci=Gt("replace"),Pi=!!/./[Ci]&&""===/./[Ci]("a","$0"),Ai=!o(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),Ii=function(t,e,n,i){var r=Gt(t),s=!o(function(){var e={};return e[r]=function(){return 7},7!=""[t](e)}),a=s&&!o(function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[ki]=function(){return n},n.flags="",n[r]=/./[r]),n.exec=function(){return e=!0,null},n[r](""),!e});if(!s||!a||"replace"===t&&(!Ei||!Ti||Pi)||"split"===t&&!Ai){var l=/./[r],c=n(r,""[t],function(t,e,n,i,o){return e.exec===fi?s&&!o?{done:!0,value:l.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}},{REPLACE_KEEPS_$0:Ti,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Pi}),u=c[0],h=c[1];tt(String.prototype,t,u),tt(RegExp.prototype,r,2==e?function(t,e){return h.call(t,this,e)}:function(t){return h.call(t,this)})}i&&I(RegExp.prototype[r],"sham",!0)},Li=bi.charAt,_i=function(t,e,n){return e+(n?Li(t,e).length:1)},Mi=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==h(t))throw TypeError("RegExp#exec called on incompatible receiver");return fi.call(t,e)},Oi=Math.max,ji=Math.min,Di=Math.floor,zi=/\$([$&'`]|\d\d?|<[^>]*>)/g,$i=/\$([$&'`]|\d\d?)/g;Ii("replace",2,function(t,e,n,i){var o=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,r=i.REPLACE_KEEPS_$0,s=o?"$":"$0";return[function(n,i){var o=p(this),r=null==n?void 0:n[t];return void 0!==r?r.call(n,o,i):e.call(String(o),n,i)},function(t,i){if(!o&&r||"string"==typeof i&&-1===i.indexOf(s)){var l=n(e,t,this,i);if(l.done)return l.value}var c=C(t),u=String(this),h="function"==typeof i;h||(i=String(i));var d=c.global;if(d){var f=c.unicode;c.lastIndex=0}for(var p=[];;){var g=Mi(c,u);if(null===g)break;if(p.push(g),!d)break;""===String(g[0])&&(c.lastIndex=_i(u,lt(c.lastIndex),f))}for(var m,v="",y=0,b=0;b<p.length;b++){g=p[b];for(var w=String(g[0]),x=Oi(ji(st(g.index),u.length),0),S=[],k=1;k<g.length;k++)S.push(void 0===(m=g[k])?m:String(m));var E=g.groups;if(h){var T=[w].concat(S,x,u);void 0!==E&&T.push(E);var P=String(i.apply(void 0,T))}else P=a(w,u,x,S,E,i);x>=y&&(v+=u.slice(y,x)+P,y=x+w.length)}return v+u.slice(y)}];function a(t,n,i,o,r,s){var a=i+t.length,l=o.length,c=$i;return void 0!==r&&(r=jt(r),c=zi),e.call(s,c,function(e,s){var c;switch(s.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,i);case"'":return n.slice(a);case"<":c=r[s.slice(1,-1)];break;default:var u=+s;if(0===u)return e;if(u>l){var h=Di(u/10);return 0===h?e:h<=l?void 0===o[h-1]?s.charAt(1):o[h-1]+s.charAt(1):e}c=o[u-1]}return void 0===c?"":c})}});var Ri=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Ii("search",1,function(t,e,n){return[function(e){var n=p(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,n):new RegExp(e)[t](String(n))},function(t){var i=n(e,t,this);if(i.done)return i.value;var o=C(t),r=String(this),s=o.lastIndex;Ri(s,0)||(o.lastIndex=0);var a=Mi(o,r);return Ri(o.lastIndex,s)||(o.lastIndex=s),null===a?-1:a.index}]});var Fi=Gt("match"),Ni=function(t){var e;return m(t)&&(void 0!==(e=t[Fi])?!!e:"RegExp"==h(t))},qi=Gt("species"),Ui=function(t,e){var n,i=C(t).constructor;return void 0===i||null==(n=C(i)[qi])?e:ie(n)},Hi=[].push,Bi=Math.min,Wi=!o(function(){return!RegExp(4294967295,"y")});Ii("split",2,function(t,e,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var i=String(p(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===t)return[i];if(!Ni(t))return e.call(i,t,o);for(var r,s,a,l=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),u=0,h=new RegExp(t.source,c+"g");(r=fi.call(h,i))&&!((s=h.lastIndex)>u&&(l.push(i.slice(u,r.index)),r.length>1&&r.index<i.length&&Hi.apply(l,r.slice(1)),a=r[0].length,u=s,l.length>=o));)h.lastIndex===r.index&&h.lastIndex++;return u===i.length?!a&&h.test("")||l.push(""):l.push(i.slice(u)),l.length>o?l.slice(0,o):l}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=p(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,o,n):i.call(String(o),e,n)},function(t,o){var r=n(i,t,this,o,i!==e);if(r.done)return r.value;var s=C(t),a=String(this),l=Ui(s,RegExp),c=s.unicode,u=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(Wi?"y":"g"),h=new l(Wi?s:"^(?:"+s.source+")",u),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===Mi(h,a)?[a]:[];for(var f=0,p=0,g=[];p<a.length;){h.lastIndex=Wi?p:0;var m,v=Mi(h,Wi?a:a.slice(p));if(null===v||(m=Bi(lt(h.lastIndex+(Wi?0:p)),a.length))===f)p=_i(a,p,c);else{if(g.push(a.slice(f,p)),g.length===d)return g;for(var y=1;y<=v.length-1;y++)if(g.push(v[y]),g.length===d)return g;p=f=m}}return g.push(a.slice(f)),g}]},!Wi);var Vi={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0};for(var Xi in Vi){var Yi=i[Xi],Qi=Yi&&Yi.prototype;if(Qi&&Qi.forEach!==en)try{I(Qi,"forEach",en)}catch(t){Qi.forEach=en}}var Gi=Gt("iterator"),Ki=Gt("toStringTag"),Zi=On.values;for(var Ji in Vi){var to=i[Ji],eo=to&&to.prototype;if(eo){if(eo[Gi]!==Zi)try{I(eo,Gi,Zi)}catch(t){eo[Gi]=Zi}if(eo[Ki]||I(eo,Ki,Ji),Vi[Ji])for(var no in On)if(eo[no]!==On[no])try{I(eo,no,On[no])}catch(t){eo[no]=On[no]}}}var io=Gt("iterator"),oo=!o(function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach(function(t,i){e.delete("b"),n+=i+t}),!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[io]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://ÑеÑÑ").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}),ro=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t},so=Object.assign,ao=Object.defineProperty,lo=!so||o(function(){if(r&&1!==so({b:1},so(ao({},"a",{enumerable:!0,get:function(){ao(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(t){e[t]=t}),7!=so({},t)[n]||"abcdefghijklmnopqrst"!=Dt(so({},e)).join("")})?function(t,e){for(var n=jt(t),i=arguments.length,o=1,s=bt.f,a=l.f;i>o;)for(var c,u=f(arguments[o++]),h=s?Dt(u).concat(s(u)):Dt(u),d=h.length,p=0;d>p;)c=h[p++],r&&!a.call(u,c)||(n[c]=u[c]);return n}:so,co=function(t,e,n,i){try{return i?e(C(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&C(o.call(t)),e}},uo=Gt("iterator"),ho=Array.prototype,fo=function(t){return void 0!==t&&(pn.Array===t||ho[uo]===t)},po=Gt("iterator"),go=function(t){if(null!=t)return t[po]||t["@@iterator"]||pn[ni(t)]},mo=function(t){var e,n,i,o,r,s,a=jt(t),l="function"==typeof this?this:Array,c=arguments.length,u=c>1?arguments[1]:void 0,h=void 0!==u,d=go(a),f=0;if(h&&(u=oe(u,c>2?arguments[2]:void 0,2)),null==d||l==Array&&fo(d))for(n=new l(e=lt(a.length));e>f;f++)s=h?u(a[f],f):a[f],Fn(n,f,s);else for(r=(o=d.call(a)).next,n=new l;!(i=r.call(o)).done;f++)s=h?co(o,u,[i.value,f],!0):i.value,Fn(n,f,s);return n.length=f,n},vo=/[^\0-\u007E]/,yo=/[.\u3002\uFF0E\uFF61]/g,bo="Overflow: input needs wider integers to process",wo=Math.floor,xo=String.fromCharCode,So=function(t){return t+22+75*(t<26)},ko=function(t,e,n){var i=0;for(t=n?wo(t/700):t>>1,t+=wo(t/e);t>455;i+=36)t=wo(t/35);return wo(i+36*t/(t+38))},Eo=function(t){var e,n,i=[],o=(t=function(t){for(var e=[],n=0,i=t.length;n<i;){var o=t.charCodeAt(n++);if(o>=55296&&o<=56319&&n<i){var r=t.charCodeAt(n++);56320==(64512&r)?e.push(((1023&o)<<10)+(1023&r)+65536):(e.push(o),n--)}else e.push(o)}return e}(t)).length,r=128,s=0,a=72;for(e=0;e<t.length;e++)(n=t[e])<128&&i.push(xo(n));var l=i.length,c=l;for(l&&i.push("-");c<o;){var u=2147483647;for(e=0;e<t.length;e++)(n=t[e])>=r&&n<u&&(u=n);var h=c+1;if(u-r>wo((2147483647-s)/h))throw RangeError(bo);for(s+=(u-r)*h,r=u,e=0;e<t.length;e++){if((n=t[e])<r&&++s>2147483647)throw RangeError(bo);if(n==r){for(var d=s,f=36;;f+=36){var p=f<=a?1:f>=a+26?26:f-a;if(d<p)break;var g=d-p,m=36-p;i.push(xo(So(p+g%m))),d=wo(g/m)}i.push(xo(So(d))),a=ko(s,h,c==l),s=0,++c}}++s,++r}return i.join("")},To=function(t,e,n){for(var i in e)tt(t,i,e[i],n);return t},Co=function(t){var e=go(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return C(e.call(t))},Po=it("fetch"),Ao=it("Headers"),Io=Gt("iterator"),Lo=J.set,_o=J.getterFor("URLSearchParams"),Mo=J.getterFor("URLSearchParamsIterator"),Oo=/\+/g,jo=Array(4),Do=function(t){return jo[t-1]||(jo[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},zo=function(t){try{return decodeURIComponent(t)}catch(e){return t}},$o=function(t){var e=t.replace(Oo," "),n=4;try{return decodeURIComponent(e)}catch(t){for(;n;)e=e.replace(Do(n--),zo);return e}}
vendor: 6,237 bytes, line 1
1,Ro=/[!'()~]|%20/g,Fo={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},No=function(t){return Fo[t]},qo=function(t){return encodeURIComponent(t).replace(Ro,No)},Uo=function(t,e){if(e)for(var n,i,o=e.split("&"),r=0;r<o.length;)(n=o[r++]).length&&(i=n.split("="),t.push({key:$o(i.shift()),value:$o(i.join("="))}))},Ho=function(t){this.entries.length=0,Uo(this.entries,t)},Bo=function(t,e){if(t<e)throw TypeError("Not enough arguments")},Wo=En(function(t,e){Lo(this,{type:"URLSearchParamsIterator",iterator:Co(_o(t).entries),kind:e})},"Iterator",function(){var t=Mo(this),e=t.kind,n=t.iterator.next(),i=n.value;return n.done||(n.value="keys"===e?i.key:"values"===e?i.value:[i.key,i.value]),n}),Vo=function(){ro(this,Vo,"URLSearchParams");var t,e,n,i,o,r,s,a,l,c=arguments.length>0?arguments[0]:void 0,u=[];if(Lo(this,{type:"URLSearchParams",entries:u,updateURL:function(){},updateSearchParams:Ho}),void 0!==c)if(m(c))if("function"==typeof(t=go(c)))for(n=(e=t.call(c)).next;!(i=n.call(e)).done;){if((s=(r=(o=Co(C(i.value))).next).call(o)).done||(a=r.call(o)).done||!r.call(o).done)throw TypeError("Expected sequence with length 2");u.push({key:s.value+"",value:a.value+""})}else for(l in c)b(c,l)&&u.push({key:l,value:c[l]+""});else Uo(u,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},Xo=Vo.prototype;To(Xo,{append:function(t,e){Bo(arguments.length,2);var n=_o(this);n.entries.push({key:t+"",value:e+""}),n.updateURL()},delete:function(t){Bo(arguments.length,1);for(var e=_o(this),n=e.entries,i=t+"",o=0;o<n.length;)n[o].key===i?n.splice(o,1):o++;e.updateURL()},get:function(t){Bo(arguments.length,1);for(var e=_o(this).entries,n=t+"",i=0;i<e.length;i++)if(e[i].key===n)return e[i].value;return null},getAll:function(t){Bo(arguments.length,1);for(var e=_o(this).entries,n=t+"",i=[],o=0;o<e.length;o++)e[o].key===n&&i.push(e[o].value);return i},has:function(t){Bo(arguments.length,1);for(var e=_o(this).entries,n=t+"",i=0;i<e.length;)if(e[i++].key===n)return!0;return!1},set:function(t,e){Bo(arguments.length,1);for(var n,i=_o(this),o=i.entries,r=!1,s=t+"",a=e+"",l=0;l<o.length;l++)(n=o[l]).key===s&&(r?o.splice(l--,1):(r=!0,n.value=a));r||o.push({key:s,value:a}),i.updateURL()},sort:function(){var t,e,n,i=_o(this),o=i.entries,r=o.slice();for(o.length=0,n=0;n<r.length;n++){for(t=r[n],e=0;e<n;e++)if(o[e].key>t.key){o.splice(e,0,t);break}e===n&&o.push(t)}i.updateURL()},forEach:function(t){for(var e,n=_o(this).entries,i=oe(t,arguments.length>1?arguments[1]:void 0,3),o=0;o<n.length;)i((e=n[o++]).value,e.key,this)},keys:function(){return new Wo(this,"keys")},values:function(){return new Wo(this,"values")},entries:function(){return new Wo(this,"entries")}},{enumerable:!0}),tt(Xo,Io,Xo.entries),tt(Xo,"toString",function(){for(var t,e=_o(this).entries,n=[],i=0;i<e.length;)t=e[i++],n.push(qo(t.key)+"="+qo(t.value));return n.join("&")},{enumerable:!0}),ne(Vo,"URLSearchParams"),Lt({global:!0,forced:!oo},{URLSearchParams:Vo}),oo||"function"!=typeof Po||"function"!=typeof Ao||Lt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,n,i,o=[t];return arguments.length>1&&(e=arguments[1],m(e)&&(n=e.body,"URLSearchParams"===ni(n)&&((i=e.headers?new Ao(e.headers):new Ao).has("content-type")||i.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=Ut(e,{body:c(0,String(n)),headers:c(0,i)}))),o.push(e)),Po.apply(this,o)}});var Yo,Qo={URLSearchParams:Vo,getState:_o},Go=bi.codeAt,Ko=i.URL,Zo=Qo.URLSearchParams,Jo=Qo.getState,tr=J.set,er=J.getterFor("URL"),nr=Math.floor,ir=Math.pow,or=/[A-Za-z]/,rr=/[\d+\-.A-Za-z]/,sr=/\d/,ar=/^(0x|0X)/,lr=/^[0-7]+$/,cr=/^\d+$/,ur=/^[\dA-Fa-f]+$/,hr=/[\u0000\u0009\u000A\u000D #%\/:?@[\\]]/,dr=/[\u0000\u0009\u000A\u000D #\/:?@[\\]]/,fr=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,pr=/[\u0009\u000A\u000D]/g,gr=function(t,e){var n,i,o;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return"Invalid host";if(!(n=vr(e.slice(1,-1))))return"Invalid host";t.host=n}else if(Tr(t)){if(e=function(t){var e,n,i=[],o=t.toLowerCase().replace(yo,".").split(".");for(e=0;e<o.length;e++)n=o[e],i.push(vo.test(n)?"xn--"+Eo(n):n);return i.join(".")}(e),hr.test(e))return"Invalid host";if(null===(n=mr(e)))return"Invalid host";t.host=n}else{if(dr.test(e))return"Invalid host";for(n="",i=mo(e),o=0;o<i.length;o++)n+=kr(i[o],br);t.host=n}},mr=function(t){var e,n,i,o,r,s,a,l=t.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),(e=l.length)>4)return t;for(n=[],i=0;i<e;i++){if(""==(o=l[i]))return t;if(r=10,o.length>1&&"0"==o.charAt(0)&&(r=ar.test(o)?16:8,o=o.slice(8==r?1:2)),""===o)s=0;else{if(!(10==r?cr:8==r?lr:ur).test(o))return t;s=parseInt(o,r)}n.push(s)}for(i=0;i<e;i++)if(s=n[i],i==e-1){if(s>=ir(256,5-e))return null}else if(s>255)return null;for(a=n.pop(),i=0;i<n.length;i++)a+=n[i]*ir(256,3-i);return a},vr=function(t){var e,n,i,o,r,s,a,l=[0,0,0,0,0,0,0,0],c=0,u=null,h=0,d=function(){return t.charAt(h)};if(":"==d()){if(":"!=t.charAt(1))return;h+=2,u=++c}for(;d();){if(8==c)return;if(":"!=d()){for(e=n=0;n<4&&ur.test(d());)e=16*e+parseInt(d(),16),h++,n++;if("."==d()){if(0==n)return;if(h-=n,c>6)return;for(i=0;d();){if(o=null,i>0){if(!("."==d()&&i<4))return;h++}if(!sr.test(d()))return;for(;sr.test(d());){if(r=parseInt(d(),10),null===o)o=r;else{if(0==o)return;o=10*o+r}if(o>255)return;h++}l[c]=256*l[c]+o,2!=++i&&4!=i||c++}if(4!=i)return;break}if(":"==d()){if(h++,!d())return}else if(d())return;l[c++]=e}else{if(null!==u)return;h++,u=++c}}if(null!==u)for(s=c-u,c=7;0!=c&&s>0;)a=l[c],l[c--]=l[u+s-1],l[u+--s]=a;else if(8!=c)return;return l},yr=function(t){var e,n,i,o;if("number"==typeof t){for(e=[],n=0;n<4;n++)e.unshift(t%256),t=nr(t/256);return e.join(".")}if("object"==typeof t){for(e="",i=function(t){for(var e=null,n=1,i=null,o=0,r=0;r<8;r++)0!==t[r]?(o>n&&(e=i,n=o),i=null,o=0):(null===i&&(i=r),++o);return o>n&&(e=i,n=o),e}(t),n=0;n<8;n++)o&&0===t[n]||(o&&(o=!1),i===n?(e+=n?":":"::",o=!0):(e+=t[n].toString(16),n<7&&(e+=":")));return"["+e+"]"}return t},br={},wr=lo({},br,{" ":1,'"':1,"<":1,">":1,"`":1}),xr=lo({},wr,{"#":1,"?":1,"{":1,"}":1}),Sr=lo({},xr,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),kr=function(t,e){var n=Go(t,0);return n>32&&n<127&&!b(e,t)?t:encodeURIComponent(t)},Er={ftp:21,file:null,http:80,https:443,ws:80,wss:443}
vendor: 4,261 bytes, line 1
1,Tr=function(t){return b(Er,t.scheme)},Cr=function(t){return""!=t.username||""!=t.password},Pr=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},Ar=function(t,e){var n;return 2==t.length&&or.test(t.charAt(0))&&(":"==(n=t.charAt(1))||!e&&"|"==n)},Ir=function(t){var e;return t.length>1&&Ar(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},Lr=function(t){var e=t.path,n=e.length;!n||"file"==t.scheme&&1==n&&Ar(e[0],!0)||e.pop()},_r=function(t){return"."===t||"%2e"===t.toLowerCase()},Mr={},Or={},jr={},Dr={},zr={},$r={},Rr={},Fr={},Nr={},qr={},Ur={},Hr={},Br={},Wr={},Vr={},Xr={},Yr={},Qr={},Gr={},Kr={},Zr={},Jr=function(t,e,n,i){var o,r,s,a,l,c=n||Mr,u=0,h="",d=!1,f=!1,p=!1;for(n||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(fr,"")),e=e.replace(pr,""),o=mo(e);u<=o.length;){switch(r=o[u],c){case Mr:if(!r||!or.test(r)){if(n)return"Invalid scheme";c=jr;continue}h+=r.toLowerCase(),c=Or;break;case Or:if(r&&(rr.test(r)||"+"==r||"-"==r||"."==r))h+=r.toLowerCase();else{if(":"!=r){if(n)return"Invalid scheme";h="",c=jr,u=0;continue}if(n&&(Tr(t)!=b(Er,h)||"file"==h&&(Cr(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=h,n)return void(Tr(t)&&Er[t.scheme]==t.port&&(t.port=null));h="","file"==t.scheme?c=Wr:Tr(t)&&i&&i.scheme==t.scheme?c=Dr:Tr(t)?c=Fr:"/"==o[u+1]?(c=zr,u++):(t.cannotBeABaseURL=!0,t.path.push(""),c=Gr)}break;case jr:if(!i||i.cannotBeABaseURL&&"#"!=r)return"Invalid scheme";if(i.cannotBeABaseURL&&"#"==r){t.scheme=i.scheme,t.path=i.path.slice(),t.query=i.query,t.fragment="",t.cannotBeABaseURL=!0,c=Zr;break}c="file"==i.scheme?Wr:$r;continue;case Dr:if("/"!=r||"/"!=o[u+1]){c=$r;continue}c=Nr,u++;break;case zr:if("/"==r){c=qr;break}c=Qr;continue;case $r:if(t.scheme=i.scheme,r==Yo)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query;else if("/"==r||"\\"==r&&Tr(t))c=Rr;else if("?"==r)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query="",c=Kr;else{if("#"!=r){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.path.pop(),c=Qr;continue}t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query,t.fragment="",c=Zr}break;case Rr:if(!Tr(t)||"/"!=r&&"\\"!=r){if("/"!=r){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,c=Qr;continue}c=qr}else c=Nr;break;case Fr:if(c=Nr,"/"!=r||"/"!=h.charAt(u+1))continue;u++;break;case Nr:if("/"!=r&&"\\"!=r){c=qr;continue}break;case qr:if("@"==r){d&&(h="%40"+h),d=!0,s=mo(h);for(var g=0;g<s.length;g++){var m=s[g];if(":"!=m||p){var v=kr(m,Sr);p?t.password+=v:t.username+=v}else p=!0}h=""}else if(r==Yo||"/"==r||"?"==r||"#"==r||"\\"==r&&Tr(t)){if(d&&""==h)return"Invalid authority";u-=mo(h).length+1,h="",c=Ur}else h+=r;break;case Ur:case Hr:if(n&&"file"==t.scheme){c=Xr;continue}if(":"!=r||f){if(r==Yo||"/"==r||"?"==r||"#"==r||"\\"==r&&Tr(t)){if(Tr(t)&&""==h)return"Invalid host";if(n&&""==h&&(Cr(t)||null!==t.port))return;if(a=gr(t,h))return a;if(h="",c=Yr,n)return;continue}"["==r?f=!0:"]"==r&&(f=!1),h+=r}else{if(""==h)return"Invalid host";if(a=gr(t,h))return a;if(h="",c=Br,n==Hr)return}break;case Br:if(!sr.test(r)){if(r==Yo||"/"==r||"?"==r||"#"==r||"\\"==r&&Tr(t)||n){if(""!=h){var y=parseInt(h,10);if(y>65535)return"Invalid port";t.port=Tr(t)&&y===Er[t.scheme]?null:y,h=""}if(n)return;c=Yr;continue}return"Invalid port"}h+=r;break;case Wr:if(t.scheme="file","/"==r||"\\"==r)c=Vr;else{if(!i||"file"!=i.scheme){c=Qr;continue}if(r==Yo)t.host=i.host,t.path=i.path.slice(),t.query=i.query;else if("?"==r)t.host=i.host,t.path=i.path.slice(),t.query="",c=Kr;else{if("#"!=r){Ir(o.slice(u).join(""))||(t.host=i.host,t.path=i.path.slice(),Lr(t)),c=Qr;continue}t.host=i.host,t.path=i.path.slice(),t.query=i.query,t.fragment="",c=Zr}}break;case Vr:if("/"==r||"\\"==r){c=Xr;break}i&&"file"==i.scheme&&!Ir(o.slice(u).join(""))&&(Ar(i.path[0],!0)?t.path.push(i.path[0]):t.host=i.host),c=Qr;continue;case Xr:if(r==Yo||"/"==r||"\\"==r||"?"==r||"#"==r){if(!n&&Ar(h))c=Qr;else if(""==h){if(t.host="",n)return;c=Yr}else{if(a=gr(t,h))return a;
vendor: 5,305 bytes, line 1
1if("localhost"==t.host&&(t.host=""),n)return;h="",c=Yr}continue}h+=r;break;case Yr:if(Tr(t)){if(c=Qr,"/"!=r&&"\\"!=r)continue}else if(n||"?"!=r)if(n||"#"!=r){if(r!=Yo&&(c=Qr,"/"!=r))continue}else t.fragment="",c=Zr;else t.query="",c=Kr;break;case Qr:if(r==Yo||"/"==r||"\\"==r&&Tr(t)||!n&&("?"==r||"#"==r)){if(".."===(l=(l=h).toLowerCase())||"%2e."===l||".%2e"===l||"%2e%2e"===l?(Lr(t),"/"==r||"\\"==r&&Tr(t)||t.path.push("")):_r(h)?"/"==r||"\\"==r&&Tr(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&Ar(h)&&(t.host&&(t.host=""),h=h.charAt(0)+":"),t.path.push(h)),h="","file"==t.scheme&&(r==Yo||"?"==r||"#"==r))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==r?(t.query="",c=Kr):"#"==r&&(t.fragment="",c=Zr)}else h+=kr(r,xr);break;case Gr:"?"==r?(t.query="",c=Kr):"#"==r?(t.fragment="",c=Zr):r!=Yo&&(t.path[0]+=kr(r,br));break;case Kr:n||"#"!=r?r!=Yo&&("'"==r&&Tr(t)?t.query+="%27":t.query+="#"==r?"%23":kr(r,br)):(t.fragment="",c=Zr);break;case Zr:r!=Yo&&(t.fragment+=kr(r,wr))}u++}},ts=function(t){var e,n,i=ro(this,ts,"URL"),o=arguments.length>1?arguments[1]:void 0,s=String(t),a=tr(i,{type:"URL"});if(void 0!==o)if(o instanceof ts)e=er(o);else if(n=Jr(e={},String(o)))throw TypeError(n);if(n=Jr(a,s,null,e))throw TypeError(n);var l=a.searchParams=new Zo,c=Jo(l);c.updateSearchParams(a.query),c.updateURL=function(){a.query=String(l)||null},r||(i.href=ns.call(i),i.origin=is.call(i),i.protocol=os.call(i),i.username=rs.call(i),i.password=ss.call(i),i.host=as.call(i),i.hostname=ls.call(i),i.port=cs.call(i),i.pathname=us.call(i),i.search=hs.call(i),i.searchParams=ds.call(i),i.hash=fs.call(i))},es=ts.prototype,ns=function(){var t=er(this),e=t.scheme,n=t.username,i=t.password,o=t.host,r=t.port,s=t.path,a=t.query,l=t.fragment,c=e+":";return null!==o?(c+="//",Cr(t)&&(c+=n+(i?":"+i:"")+"@"),c+=yr(o),null!==r&&(c+=":"+r)):"file"==e&&(c+="//"),c+=t.cannotBeABaseURL?s[0]:s.length?"/"+s.join("/"):"",null!==a&&(c+="?"+a),null!==l&&(c+="#"+l),c},is=function(){var t=er(this),e=t.scheme,n=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&Tr(t)?e+"://"+yr(t.host)+(null!==n?":"+n:""):"null"},os=function(){return er(this).scheme+":"},rs=function(){return er(this).username},ss=function(){return er(this).password},as=function(){var t=er(this),e=t.host,n=t.port;return null===e?"":null===n?yr(e):yr(e)+":"+n},ls=function(){var t=er(this).host;return null===t?"":yr(t)},cs=function(){var t=er(this).port;return null===t?"":String(t)},us=function(){var t=er(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},hs=function(){var t=er(this).query;return t?"?"+t:""},ds=function(){return er(this).searchParams},fs=function(){var t=er(this).fragment;return t?"#"+t:""},ps=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(r&&zt(es,{href:ps(ns,function(t){var e=er(this),n=String(t),i=Jr(e,n);if(i)throw TypeError(i);Jo(e.searchParams).updateSearchParams(e.query)}),origin:ps(is),protocol:ps(os,function(t){var e=er(this);Jr(e,String(t)+":",Mr)}),username:ps(rs,function(t){var e=er(this),n=mo(String(t));if(!Pr(e)){e.username="";for(var i=0;i<n.length;i++)e.username+=kr(n[i],Sr)}}),password:ps(ss,function(t){var e=er(this),n=mo(String(t));if(!Pr(e)){e.password="";for(var i=0;i<n.length;i++)e.password+=kr(n[i],Sr)}}),host:ps(as,function(t){var e=er(this);e.cannotBeABaseURL||Jr(e,String(t),Ur)}),hostname:ps(ls,function(t){var e=er(this);e.cannotBeABaseURL||Jr(e,String(t),Hr)}),port:ps(cs,function(t){var e=er(this);Pr(e)||(""==(t=String(t))?e.port=null:Jr(e,t,Br))}),pathname:ps(us,function(t){var e=er(this);e.cannotBeABaseURL||(e.path=[],Jr(e,t+"",Yr))}),search:ps(hs,function(t){var e=er(this);""==(t=String(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",Jr(e,t,Kr)),Jo(e.searchParams).updateSearchParams(e.query)}),searchParams:ps(ds),hash:ps(fs,function(t){var e=er(this);""!=(t=String(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",Jr(e,t,Zr)):e.fragment=null})}),tt(es,"toJSON",function(){return ns.call(this)},{enumerable:!0}),tt(es,"toString",function(){return ns.call(this)},{enumerable:!0}),Ko){var gs=Ko.createObjectURL,ms=Ko.revokeObjectURL;gs&&tt(ts,"createObjectURL",function(t){return gs.apply(Ko,arguments)}),ms&&tt(ts,"revokeObjectURL",function(t){return ms.apply(Ko,arguments)})}function vs(t){return(vs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ys(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bs(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function ws(t,e,n){return e&&bs(t.prototype,e),n&&bs(t,n),t}function xs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ss(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function ks(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?Ss(Object(n),!0).forEach(function(e){xs(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ss(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Es(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==a.return||a.return()}finally{if(o)throw r}}return n}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Ts(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}ne(ts,"URL"),Lt({global:!0,forced:!oo,sham:!r},{URL:ts}),function(t){var e=function(){try{return!!Symbol.iterator}catch(t){return!1}}(),n=function(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return e&&(n[Symbol.iterator]=function(){return n}),n},i=function(t){return encodeURIComponent(t).replace(/%20/g,"+")},o=function(t){return decodeURIComponent(String(t).replace(/\+/g," "))};(function(){try{var e=t.URLSearchParams;return"a=1"===new e("?a=1").toString()&&"function"==typeof e.prototype.set}catch(t){return!1}})()||function(){var o=function t(e){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var n=vs(e);if("undefined"===n);else if("string"===n)""!==e&&this._fromString(e);else if(e instanceof t){var i=this;e.forEach(function(t,e){i.append(e,t)})}else{if(null===e||"object"!==n)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(e))for(var o=0;o<e.length;o++){var r=e[o];if("[object Array]"!==Object.prototype.toString.call(r)&&2===r.length)throw new TypeError("Expected [string, any] as entry at index "+o+" of URLSearchParams's input");this.append(r[0],r[1])}else for(var s in e)e.hasOwnProperty(s)&&this.append(s,e[s])}},r=o.prototype;r.append=function(t,e){t in this._entries?this._entries[t].push(String(e)):this._entries[t]=[String(e)]},r.delete=function(t){delete this._entries[t]},r.get=function(t){return t in this._entries?this._entries[t][0]:null},r.getAll=function(t){return t in this._entries?this._entries[t].slice(0):[]},r.has=function(t){return t in this._entries},r.set=function(t,e){this._entries[t]=[String(e)]},r.forEach=function(t,e){var n;for(var i in this._entries)if(this._entries.hasOwnProperty(i)){n=this._entries[i];for(var o=0;o<n.length;o++)t.call(e,n[o],i,this)}},r.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),n(t)},r.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),n(t)},r.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),n(t)},e&&(r[Symbol.iterator]=r.entries),r.toString=function(){var t=[];return this.forEach(function(e,n){t.push(i(n)+"="+i(e))}),t.join("&")},t.URLSearchParams=o}();var r=t.URLSearchParams.prototype;"function"!=typeof r.sort&&(r.sort=function(){var t=this,e=[];this.forEach(function(n,i){e.push([i,n]),t._entries||t.delete(i)}),e.sort(function(t,e){return t[0]<e[0]?-1:t[0]>e[0]?1:0}),t._entries&&(t._entries={});for(var n=0;n<e.length;n++)this.append(e[n][0],e[n][1])}),"function"!=typeof r._fromString&&Object.defineProperty(r,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(t){if(this._entries)this._entries={};else{var e=[];this.forEach(function(t,n){e.push(n)});for(var n=0;n<e.length;n++)this.delete(e[n])}var i,r=(t=t.replace(/^\?/,"")).split("&");for(n=0;n<r.length;n++)i=r[n].split("="),this.append(o(i[0]),i.length>1?o(i[1]):"")}})}(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:t),function(t){if(function(){try{var e=new t.URL("b","http://a");return e.pathname="c d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()||function(){var e=t.URL,n=function(e,n){"string"!=typeof e&&(e=String(e));var i,o=document;if(n&&(void 0===t.location||n!==t.location.href)){(i=(o=document.implementation.createHTMLDocument("")).createElement("base")).href=n,o.head.appendChild(i);try{if(0!==i.href.indexOf(n))throw new Error(i.href)}catch(t){throw new Error("URL unable to set base "+n+" due to "+t)}}var r=o.createElement("a");if(r.href=e,i&&(o.body.appendChild(r),r.href=r.href),":"===r.protocol||!/:/.test(r.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:r});var s=new t.URLSearchParams(this.search),a=!0,l=!0,c=this;["append","delete","set"].forEach(function(t){var e=s[t];s[t]=function(){e.apply(s,arguments),a&&(l=!1,c.search=s.toString(),l=!0)}}),Object.defineProperty(this,"searchParams",{value:s,enumerable:!0});var u=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,
1configurable:!1,writable:!1,value:function(){this.search!==u&&(u=this.search,l&&(a=!1,this.searchParams._fromString(this.search),a=!0))}})},i=n.prototype;["hash","host","hostname","port","protocol"].forEach(function(t){!function(t){Object.defineProperty(i,t,{get:function(){return this._anchorElement[t]},set:function(e){this._anchorElement[t]=e},enumerable:!0})}(t)}),Object.defineProperty(i,"search",{get:function(){return this._anchorElement.search},set:function(t){this._anchorElement.search=t,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(i,{toString:{get:function(){var t=this;return function(){return t.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(t){this._anchorElement.href=t,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(t){this._anchorElement.pathname=t},enumerable:!0},origin:{get:function(){var t={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],e=this._anchorElement.port!=t&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(e?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(t){},enumerable:!0},username:{get:function(){return""},set:function(t){},enumerable:!0}}),n.createObjectURL=function(t){return e.createObjectURL.apply(e,arguments)},n.revokeObjectURL=function(t){return e.revokeObjectURL.apply(e,arguments)},t.URL=n}(),void 0!==t.location&&!("origin"in t.location)){var e=function(){return t.location.protocol+"//"+t.location.hostname+(t.location.port?":"+t.location.port:"")};try{Object.defineProperty(t.location,"origin",{get:e,enumerable:!0})}catch(n){setInterval(function(){t.location.origin=e()},100)}}}(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:t);var Cs=Gt("isConcatSpreadable"),Ps=Bn>=51||!o(function(){var t=[];return t[Cs]=!1,t.concat()[0]!==t}),As=Vn("concat"),Is=function(t){if(!m(t))return!1;var e=t[Cs];return void 0!==e?!!e:Ot(t)};Lt({target:"Array",proto:!0,forced:!Ps||!As},{concat:function(t){var e,n,i,o,r,s=jt(this),a=se(s,0),l=0;for(e=-1,i=arguments.length;e<i;e++)if(r=-1===e?s:arguments[e],Is(r)){if(l+(o=lt(r.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,l++)n in r&&Fn(a,l,r[n])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Fn(a,l++,r)}return a.length=l,a}});var Ls=ce.filter,_s=Vn("filter"),Ms=Ke("filter");Lt({target:"Array",proto:!0,forced:!_s||!Ms},{filter:function(t){return Ls(this,t,arguments.length>1?arguments[1]:void 0)}});var Os=ce.find,js=!0,Ds=Ke("find");"find"in[]&&Array(1).find(function(){js=!1}),Lt({target:"Array",proto:!0,forced:js||!Ds},{find:function(t){return Os(this,t,arguments.length>1?arguments[1]:void 0)}}),fn("find");var zs=Gt("iterator"),$s=!1;try{var Rs=0,Fs={next:function(){return{done:!!Rs++}},return:function(){$s=!0}};Fs[zs]=function(){return this},Array.from(Fs,function(){throw 2})}catch(t){}var Ns=function(t,e){if(!e&&!$s)return!1;var n=!1;try{var i={};i[zs]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n},qs=!Ns(function(t){Array.from(t)});Lt({target:"Array",stat:!0,forced:qs},{from:mo});var Us=ft.includes,Hs=Ke("indexOf",{ACCESSORS:!0,1:0});Lt({target:"Array",proto:!0,forced:!Hs},{includes:function(t){return Us(this,t,arguments.length>1?arguments[1]:void 0)}}),fn("includes");var Bs=ce.map,Ws=Vn("map"),Vs=Ke("map");Lt({target:"Array",proto:!0,forced:!Ws||!Vs},{map:function(t){return Bs(this,t,arguments.length>1?arguments[1]:void 0)}});var Xs=function(t,e,n){var i,o;return Tn&&"function"==typeof(i=e.constructor)&&i!==n&&m(o=i.prototype)&&o!==n.prototype&&Tn(t,o),t},Ys="\t\n\v\f\r áââââââ
ââââââ¯âã\u2028\u2029\ufeff",Qs="["+Ys+"]",Gs=RegExp("^"+Qs+Qs+"*"),Ks=RegExp(Qs+Qs+"*$"),Zs=function(t){return function(e){var n=String(p(e));return 1&t&&(n=n.replace(Gs,"")),2&t&&(n=n.replace(Ks,"")),n}},Js={start:Zs(1),end:Zs(2),trim:Zs(3)},ta=yt.f,ea=T.f,na=A.f,ia=Js.trim,oa=i.Number,ra=oa.prototype,sa="Number"==h(Ut(ra)),aa=function(t){var e,n,i,o,r,s,a,l,c=v(t,!1);if("string"==typeof c&&c.length>
vendor: 4,347 bytes, line 1
12)if(43===(e=(c=ia(c)).charCodeAt(0))||45===e){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:i=2,o=49;break;case 79:case 111:i=8,o=55;break;default:return+c}for(s=(r=c.slice(2)).length,a=0;a<s;a++)if((l=r.charCodeAt(a))<48||l>o)return NaN;return parseInt(r,i)}return+c};if(At("Number",!oa(" 0o1")||!oa("0b1")||oa("+0x1"))){for(var la,ca=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof ca&&(sa?o(function(){ra.valueOf.call(n)}):"Number"!=h(n))?Xs(new oa(aa(e)),n,ca):aa(e)},ua=r?ta(oa):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),ha=0;ua.length>ha;ha++)b(oa,la=ua[ha])&&!b(ca,la)&&na(ca,la,ea(oa,la));ca.prototype=ra,ra.constructor=ca,tt(i,"Number",ca)}var da=o(function(){Dt(1)});Lt({target:"Object",stat:!0,forced:da},{keys:function(t){return Dt(jt(t))}});var fa=function(t){if(Ni(t))throw TypeError("The method doesn't accept regular expressions");return t},pa=Gt("match"),ga=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[pa]=!1,"/./"[t](e)}catch(t){}}return!1};Lt({target:"String",proto:!0,forced:!ga("includes")},{includes:function(t){return!!~String(p(this)).indexOf(fa(t),arguments.length>1?arguments[1]:void 0)}});var ma=!o(function(){return Object.isExtensible(Object.preventExtensions({}))}),va=e(function(t){var e=A.f,n=U("meta"),i=0,o=Object.isExtensible||function(){return!0},r=function(t){e(t,n,{value:{objectID:"O"+ ++i,weakData:{}}})},s=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!m(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!b(t,n)){if(!o(t))return"F";if(!e)return"E";r(t)}return t[n].objectID},getWeakData:function(t,e){if(!b(t,n)){if(!o(t))return!0;if(!e)return!1;r(t)}return t[n].weakData},onFreeze:function(t){return ma&&s.REQUIRED&&o(t)&&!b(t,n)&&r(t),t}};W[n]=!0}),ya=(va.REQUIRED,va.fastKey,va.getWeakData,va.onFreeze,e(function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,n,i,o,r){var s,a,l,c,u,h,d,f=oe(n,i,o?2:1);if(r)s=t;else{if("function"!=typeof(a=go(t)))throw TypeError("Target is not iterable");if(fo(a)){for(l=0,c=lt(t.length);c>l;l++)if((u=o?f(C(d=t[l])[0],d[1]):f(t[l]))&&u instanceof e)return u;return new e(!1)}s=a.call(t)}for(h=s.next;!(d=h.call(s)).done;)if("object"==typeof(u=co(s,f,d.value,o))&&u&&u instanceof e)return u;return new e(!1)}).stop=function(t){return new e(!0,t)}})),ba=va.getWeakData,wa=J.set,xa=J.getterFor,Sa=ce.find,ka=ce.findIndex,Ea=0,Ta=function(t){return t.frozen||(t.frozen=new Ca)},Ca=function(){this.entries=[]},Pa=function(t,e){return Sa(t.entries,function(t){return t[0]===e})};Ca.prototype={get:function(t){var e=Pa(this,t);if(e)return e[1]},has:function(t){return!!Pa(this,t)},set:function(t,e){var n=Pa(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=ka(this.entries,function(e){return e[0]===t});return~e&&this.entries.splice(e,1),!!~e}};var Aa={getConstructor:function(t,e,n,i){var o=t(function(t,r){ro(t,o,e),wa(t,{type:e,id:Ea++,frozen:void 0}),null!=r&&ya(r,t[i],t,n)}),r=xa(e),s=function(t,e,n){var i=r(t),o=ba(C(e),!0);return!0===o?Ta(i).set(e,n):o[i.id]=n,t};return To(o.prototype,{delete:function(t){var e=r(this);if(!m(t))return!1;var n=ba(t);return!0===n?Ta(e).delete(t):n&&b(n,e.id)&&delete n[e.id]},has:function(t){var e=r(this);if(!m(t))return!1;var n=ba(t);return!0===n?Ta(e).has(t):n&&b(n,e.id)}}),To(o.prototype,n?{get:function(t){var e=r(this);if(m(t)){var n=ba(t);return!0===n?Ta(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return s(this,t,e)}}:{add:function(t){return s(this,t,!0)}}),o}},Ia=(e(function(t){var e,n=J.enforce,r=!i.ActiveXObject&&"ActiveXObject"in i,s=Object.isExtensible,a=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},l=t.exports=function(t,e,n){var r=-1!==t.indexOf("Map"),s=-1!==t.indexOf("Weak"),a=r?"set":"add",l=i[t],c=l&&l.prototype,u=l,h={},d=function(t){var e=c[t];tt(c,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(s&&!m(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return s&&!m(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(s&&!m(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};
vendor: 2,045 bytes, line 1
1if(At(t,"function"!=typeof l||!(s||c.forEach&&!o(function(){(new l).entries().next()}))))u=n.getConstructor(e,t,r,a),va.REQUIRED=!0;else if(At(t,!0)){var f=new u,p=f[a](s?{}:-0,1)!=f,g=o(function(){f.has(1)}),v=Ns(function(t){new l(t)}),y=!s&&o(function(){for(var t=new l,e=5;e--;)t[a](e,e);return!t.has(-0)});v||((u=e(function(e,n){ro(e,u,t);var i=Xs(new l,e,u);return null!=n&&ya(n,i[a],i,r),i})).prototype=c,c.constructor=u),(g||y)&&(d("delete"),d("has"),r&&d("get")),(y||p)&&d(a),s&&c.clear&&delete c.clear}return h[t]=u,Lt({global:!0,forced:u!=l},h),ne(u,t),s||n.setStrong(u,t,r),u}("WeakMap",a,Aa);if(R&&r){e=Aa.getConstructor(a,"WeakMap",!0),va.REQUIRED=!0;var c=l.prototype,u=c.delete,h=c.has,d=c.get,f=c.set;To(c,{delete:function(t){if(m(t)&&!s(t)){var i=n(this);return i.frozen||(i.frozen=new e),u.call(this,t)||i.frozen.delete(t)}return u.call(this,t)},has:function(t){if(m(t)&&!s(t)){var i=n(this);return i.frozen||(i.frozen=new e),h.call(this,t)||i.frozen.has(t)}return h.call(this,t)},get:function(t){if(m(t)&&!s(t)){var i=n(this);return i.frozen||(i.frozen=new e),h.call(this,t)?d.call(this,t):i.frozen.get(t)}return d.call(this,t)},set:function(t,i){if(m(t)&&!s(t)){var o=n(this);o.frozen||(o.frozen=new e),h.call(this,t)?f.call(this,t,i):o.frozen.set(t,i)}else f.call(this,t,i);return this}})}}),ce.every),La=Xe("every"),_a=Ke("every");Lt({target:"Array",proto:!0,forced:!La||!_a},{every:function(t){return Ia(this,t,arguments.length>1?arguments[1]:void 0)}}),Lt({target:"Object",stat:!0,forced:Object.assign!==lo},{assign:lo});var Ma=Js.trim;Lt({target:"String",proto:!0,forced:function(t){return o(function(){return!!Ys[t]()||"âÂ
á "!="âÂ
á "[t]()||Ys[t].name!==t})}("trim")},{trim:function(){return Ma(this)}});var Oa=ce.some,ja=Xe("some"),Da=Ke("some");Lt({target:"Array",proto:!0,forced:!ja||!Da},{some:function(t){return Oa(this,t,arguments.length>1?arguments[1]:void 0)}});var za="".repeat||function(t){var e=String(p(this)),n="",i=st(t);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>
1=1)&&(e+=e))1&i&&(n+=e);return n},$a=1..toFixed,Ra=Math.floor,Fa=function(t,e,n){return 0===e?n:e%2==1?Fa(t,e-1,n*t):Fa(t*t,e/2,n)},Na=$a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!o(function(){$a.call({})});Lt({target:"Number",proto:!0,forced:Na},{toFixed:function(t){var e,n,i,o,r=function(t){if("number"!=typeof t&&"Number"!=h(t))throw TypeError("Incorrect invocation");return+t}(this),s=st(t),a=[0,0,0,0,0,0],l="",c="0",u=function(t,e){for(var n=-1,i=e;++n<6;)i+=t*a[n],a[n]=i%1e7,i=Ra(i/1e7)},d=function(t){for(var e=6,n=0;--e>=0;)n+=a[e],a[e]=Ra(n/t),n=n%t*1e7},f=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==a[t]){var n=String(a[t]);e=""===e?n:e+za.call("0",7-n.length)+n}return e};if(s<0||s>20)throw RangeError("Incorrect fraction digits");if(r!=r)return"NaN";if(r<=-1e21||r>=1e21)return String(r);if(r<0&&(l="-",r=-r),r>1e-21)if(n=(e=function(t){for(var e=0,n=r*Fa(2,69,1);n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}()-69)<0?r*Fa(2,-e,1):r/Fa(2,e,1),n*=4503599627370496,(e=52-e)>0){for(u(0,n),i=s;i>=7;)u(1e7,0),i-=7;for(u(Fa(10,i,1),0),i=e-1;i>=23;)d(1<<23),i-=23;d(1<<i),u(1,1),d(2),c=f()}else u(0,n),u(1<<-e,0),c=f()+za.call("0",s);return s>0?l+((o=c.length)<=s?"0."+za.call("0",s-o)+c:c.slice(0,o-s)+"."+c.slice(o-s)):l+c}});var qa=l.f,Ua=function(t){return function(e){for(var n,i=g(e),o=Dt(i),s=o.length,a=0,l=[];s>a;)n=o[a++],r&&!qa.call(i,n)||l.push(t?[n,i[n]]:i[n]);return l}},Ha={entries:Ua(!0),values:Ua(!1)},Ba=Ha.entries;Lt({target:"Object",stat:!0},{entries:function(t){return Ba(t)}});var Wa=Ha.values;Lt({target:"Object",stat:!0},{values:function(t){return Wa(t)}});var Va={addCSS:!0,thumbWidth:15,watch:!0};Lt({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var Xa=function(t){return null!=t?t.constructor:null},Ya=function(t,e){return Boolean(t&&e&&t instanceof e)},Qa=function(t){return Xa(t)===String},Ga=function(t){return Array.isArray(t)},Ka=function(t){return Ya(t,NodeList)},Za=Qa,Ja=Ga,tl=Ka,el=function(t){return Ya(t,Element)},nl=function(t){return Ya(t,Event)},il=function(t){return function(t){return null==t}(t)||(Qa(t)||Ga(t)||Ka(t))&&!t.length||function(t){return Xa(t)===Object}(t)&&!Object.keys(t).length};Ii("match",1,function(t,e,n){return[function(e){var n=p(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,n):new RegExp(e)[t](String(n))},function(t){var i=n(e,t,this);if(i.done)return i.value;var o=C(t),r=String(this);if(!o.global)return Mi(o,r);var s=o.unicode;o.lastIndex=0;for(var a,l=[],c=0;null!==(a=Mi(o,r));){var u=String(a[0]);l[c]=u,""===u&&(o.lastIndex=_i(r,lt(o.lastIndex),s)),c++}return 0===c?null:l}]});var ol,rl,sl,al=function(){function t(e,n){ys(this,t),el(e)?this.element=e:Za(e)&&(this.element=document.querySelector(e)),el(this.element)&&il(this.element.rangeTouch)&&(this.config=Object.assign({},Va,n),this.init())}return ws(t,[{key:"init",value:function(){t.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){t.enabled&&(this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(t){var e=this,n=t?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(t){e.element[n](t,function(t){return e.set(t)},!1)})}},{key:"get",value:function(e){if(!t.enabled||!nl(e))return null;var n,i=e.target,o=e.changedTouches[0],r=parseFloat(i.getAttribute("min"))||0,s=parseFloat(i.getAttribute("max"))||100,a=parseFloat(i.getAttribute("step"))||1,l=s-r,c=i.getBoundingClientRect(),u=100/c.width*(this.config.thumbWidth/2)/100;return(n=100/c.width*(o.clientX-c.left))<0?n=0:n>100&&(n=100),n<50?n-=(100-2*n)*u:n>50&&(n+=2*(n-50)*u),r+function(t,e){if(e<1){var n=function(t){var e="".concat(t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}(e);return parseFloat(t.toFixed(n))}return Math.round(t/e)*e}(l*(n/100),a)}},{key:"set",value:function(e){t.enabled&&nl(e)&&!e.target.disabled&&(e.preventDefault(),e.target.value=this.get(e),function(t,e){if(t&&e){var n=new Event(e);t.dispatchEvent(n)}}(e.target,"touchend"===e.type?"change":"input"))}}],[{key:"setup",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null;if(il(e)||Za(e)?i=Array.from(document.querySelectorAll(Za(e)?e:'input[type="range"]')):el(e)?i=[e]:tl(e)?i=Array.from(e):Ja(e)&&(i=e.filter(el)),il(i))return null;var o=Object.assign({},Va,n);Za(e)&&o.watch&&new MutationObserver(function(n){Array.from(n).forEac
vendor: 4,614 bytes, line 1
1h(function(n){Array.from(n.addedNodes).forEach(function(n){el(n)&&function(t,e){return function(){return Array.from(document.querySelectorAll(e)).includes(this)}.call(t,e)}(n,e)&&new t(n,o)})})}).observe(document.body,{childList:!0,subtree:!0});return i.map(function(e){return new t(e,n)})}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),t}(),ll=i.Promise,cl=Gt("species"),ul=function(t){var e=it(t),n=A.f;r&&e&&!e[cl]&&n(e,cl,{configurable:!0,get:function(){return this}})},hl=/(iphone|ipod|ipad).*applewebkit/i.test(Nn),dl=i.location,fl=i.setImmediate,pl=i.clearImmediate,gl=i.process,ml=i.MessageChannel,vl=i.Dispatch,yl=0,bl={},wl=function(t){if(bl.hasOwnProperty(t)){var e=bl[t];delete bl[t],e()}},xl=function(t){return function(){wl(t)}},Sl=function(t){wl(t.data)},kl=function(t){i.postMessage(t+"",dl.protocol+"//"+dl.host)};fl&&pl||(fl=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return bl[++yl]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},ol(yl),yl},pl=function(t){delete bl[t]},"process"==h(gl)?ol=function(t){gl.nextTick(xl(t))}:vl&&vl.now?ol=function(t){vl.now(xl(t))}:ml&&!hl?(sl=(rl=new ml).port2,rl.port1.onmessage=Sl,ol=oe(sl.postMessage,sl,1)):!i.addEventListener||"function"!=typeof postMessage||i.importScripts||o(kl)?ol="onreadystatechange"in S("script")?function(t){$t.appendChild(S("script")).onreadystatechange=function(){$t.removeChild(this),wl(t)}}:function(t){setTimeout(xl(t),0)}:(ol=kl,i.addEventListener("message",Sl,!1)));var El,Tl,Cl,Pl,Al,Il,Ll,_l,Ml={set:fl,clear:pl},Ol=T.f,jl=Ml.set,Dl=i.MutationObserver||i.WebKitMutationObserver,zl=i.process,$l=i.Promise,Rl="process"==h(zl),Fl=Ol(i,"queueMicrotask"),Nl=Fl&&Fl.value;Nl||(El=function(){var t,e;for(Rl&&(t=zl.domain)&&t.exit();Tl;){e=Tl.fn,Tl=Tl.next;try{e()}catch(t){throw Tl?Pl():Cl=void 0,t}}Cl=void 0,t&&t.enter()},Rl?Pl=function(){zl.nextTick(El)}:Dl&&!hl?(Al=!0,Il=document.createTextNode(""),new Dl(El).observe(Il,{characterData:!0}),Pl=function(){Il.data=Al=!Al}):$l&&$l.resolve?(Ll=$l.resolve(void 0),_l=Ll.then,Pl=function(){_l.call(Ll,El)}):Pl=function(){jl.call(i,El)});var ql,Ul,Hl,Bl,Wl=Nl||function(t){var e={fn:t,next:void 0};Cl&&(Cl.next=e),Tl||(Tl=e,Pl()),Cl=e},Vl=function(t){var e,n;this.promise=new t(function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i}),this.resolve=ie(e),this.reject=ie(n)},Xl={f:function(t){return new Vl(t)}},Yl=function(t,e){if(C(t),m(e)&&e.constructor===t)return e;var n=Xl.f(t);return(0,n.resolve)(e),n.promise},Ql=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Gl=Ml.set,Kl=Gt("species"),Zl="Promise",Jl=J.get,tc=J.set,ec=J.getterFor(Zl),nc=ll,ic=i.TypeError,oc=i.document,rc=i.process,sc=it("fetch"),ac=Xl.f,lc=ac,cc="process"==h(rc),uc=!!(oc&&oc.createEvent&&i.dispatchEvent),hc=At(Zl,function(){if(z(nc)===String(nc)){if(66===Bn)return!0;if(!cc&&"function"!=typeof PromiseRejectionEvent)return!0}if(Bn>=51&&/native code/.test(nc))return!1;var t=nc.resolve(1),e=function(t){t(function(){},function(){})};return(t.constructor={})[Kl]=e,!(t.then(function(){})instanceof e)}),dc=hc||!Ns(function(t){nc.all(t).catch(function(){})}),fc=function(t){var e;return!(!m(t)||"function"!=typeof(e=t.then))&&e},pc=function(t,e,n){if(!e.notified){e.notified=!0;var i=e.reactions;Wl(function(){for(var o=e.value,r=1==e.state,s=0;i.length>s;){var a,l,c,u=i[s++],h=r?u.ok:u.fail,d=u.resolve,f=u.reject,p=u.domain;try{h?(r||(2===e.rejection&&yc(t,e),e.rejection=1),!0===h?a=o:(p&&p.enter(),a=h(o),p&&(p.exit(),c=!0)),a===u.promise?f(ic("Promise-chain cycle")):(l=fc(a))?l.call(a,d,f):d(a)):f(o)}catch(t){p&&!c&&p.exit(),f(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&mc(t,e)})}},gc=function(t,e,n){var o,r;uc?((o=oc.createEvent("Event")).promise=e,o.reason=n,o.initEvent(t,!1,!0),i.dispatchEvent(o)):o={promise:e,reason:n},(r=i["on"+t])?r(o):"unhandledrejection"===t&&function(t,e){var n=i.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},mc=function(t,e){Gl.call(i,function(){var n,i=e.value;if(vc(e)&&(n=Ql(function(){cc?rc.emit("unhandledRejection",i,t):gc("unhandledrejection",t,i)}),e.rejection=cc||vc(e)?2:1,n.error))throw n.value})},vc=function(t){return 1!==t.rejection&&!t.parent},yc=function(t,e){Gl.call(i,function(){cc?rc.emit("rejectionHandled",t):gc("rejectionhandled",t,e.value)})},bc=function(t,e,n,i){return function(o){t(e,n,o,i)}},wc=function(t,e,n,i){e.done||(e.done=!0,i&&(e=i),e.value=n,e.state=2,pc(t,e,!0))},xc=function(t,e,n,i){if(!e.done){e.done=!0,i&&(e=i);
1try{if(t===n)throw ic("Promise can't be resolved itself");var o=fc(n);o?Wl(function(){var i={done:!1};try{o.call(n,bc(xc,t,i,e),bc(wc,t,i,e))}catch(n){wc(t,i,n,e)}}):(e.value=n,e.state=1,pc(t,e,!1))}catch(n){wc(t,{done:!1},n,e)}}};hc&&(nc=function(t){ro(this,nc,Zl),ie(t),ql.call(this);var e=Jl(this);try{t(bc(xc,this,e),bc(wc,this,e))}catch(t){wc(this,e,t)}},(ql=function(t){tc(this,{type:Zl,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=To(nc.prototype,{then:function(t,e){var n=ec(this),i=ac(Ui(this,nc));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=cc?rc.domain:void 0,n.parent=!0,n.reactions.push(i),0!=n.state&&pc(this,n,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),Ul=function(){var t=new ql,e=Jl(t);this.promise=t,this.resolve=bc(xc,t,e),this.reject=bc(wc,t,e)},Xl.f=ac=function(t){return t===nc||t===Hl?new Ul(t):lc(t)},"function"==typeof ll&&(Bl=ll.prototype.then,tt(ll.prototype,"then",function(t,e){var n=this;return new nc(function(t,e){Bl.call(n,t,e)}).then(t,e)},{unsafe:!0}),"function"==typeof sc&&Lt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return Yl(nc,sc.apply(i,arguments))}}))),Lt({global:!0,wrap:!0,forced:hc},{Promise:nc}),ne(nc,Zl,!1),ul(Zl),Hl=it(Zl),Lt({target:Zl,stat:!0,forced:hc},{reject:function(t){var e=ac(this);return e.reject.call(void 0,t),e.promise}}),Lt({target:Zl,stat:!0,forced:hc},{resolve:function(t){return Yl(this,t)}}),Lt({target:Zl,stat:!0,forced:dc},{all:function(t){var e=this,n=ac(e),i=n.resolve,o=n.reject,r=Ql(function(){var n=ie(e.resolve),r=[],s=0,a=1;ya(t,function(t){var l=s++,c=!1;r.push(void 0),a++,n.call(e,t).then(function(t){c||(c=!0,r[l]=t,--a||i(r))},o)}),--a||i(r)});return r.error&&o(r.value),n.promise},race:function(t){var e=this,n=ac(e),i=n.reject,o=Ql(function(){var o=ie(e.resolve);ya(t,function(t){o.call(e,t).then(n.resolve,i)})});return o.error&&i(o.value),n.promise}});var Sc,kc=T.f,Ec="".startsWith,Tc=Math.min,Cc=ga("startsWith"),Pc=!(Cc||(Sc=kc(String.prototype,"startsWith"),!Sc||Sc.writable));Lt({target:"String",proto:!0,forced:!Pc&&!Cc},{startsWith:function(t){var e=String(p(this));fa(t);var n=lt(Tc(arguments.length>1?arguments[1]:void 0,e.length)),i=String(t);return Ec?Ec.call(e,i,n):e.slice(n,n+i.length)===i}});var Ac,Ic,Lc,_c=function(t){return null!=t?t.constructor:null},Mc=function(t,e){return Boolean(t&&e&&t instanceof e)},Oc=function(t){return null==t},jc=function(t){return _c(t)===Object},Dc=function(t){return _c(t)===String},zc=function(t){return Array.isArray(t)},$c=function(t){return Mc(t,NodeList)},Rc=function(t){return Oc(t)||(Dc(t)||zc(t)||$c(t))&&!t.length||jc(t)&&!Object.keys(t).length},Fc=Oc,Nc=jc,qc=function(t){return _c(t)===Number&&!Number.isNaN(t)},Uc=Dc,Hc=function(t){return _c(t)===Boolean},Bc=function(t){return _c(t)===Function},Wc=zc,Vc=$c,Xc=function(t){return Mc(t,Element)},Yc=function(t){return Mc(t,Event)},Qc=function(t){return Mc(t,KeyboardEvent)},Gc=function(t){return Mc(t,TextTrack)||!Oc(t)&&Dc(t.kind)},Kc=function(t){if(Mc(t,window.URL))return!0;if(!Dc(t))return!1;var e=t;t.startsWith("http://")&&t.startsWith("https://")||(e="http://".concat(t));try{return!Rc(new URL(e).hostname)}catch(t){return!1}},Zc=Rc,Jc=(Ac=document.createElement("span"),Ic={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},Lc=Object.keys(Ic).find(function(t){return void 0!==Ac.style[t]}),!!Uc(Lc)&&Ic[Lc]);function tu(t,e){setTimeout(function(){try{t.hidden=!0,t.offsetHeight,t.hidden=!1}catch(t){}},e)}var eu={isIE:!!document.documentMode,isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:/(iPad|iPhone|iPod)/gi.test(navigator.platform)},nu=function(t){return function(e,n,i,o){ie(n);var r=jt(e),s=f(r),a=lt(r.length),l=t?a-1:0,c=t?-1:1;if(i<2)for(;;){if(l in s){o=s[l],l+=c;break}
1if(l+=c,t?l<0:a<=l)throw TypeError("Reduce of empty array with no initial value")}for(;t?l>=0:a>l;l+=c)l in s&&(o=n(o,s[l],l,r));return o}},iu=[nu(!1),nu(!0)][0],ou=Xe("reduce"),ru=Ke("reduce",{1:0});function su(t,e){return e.split(".").reduce(function(t,e){return t&&t[e]},t)}function au(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];if(!n.length)return t;var o=n.shift();return Nc(o)?(Object.keys(o).forEach(function(e){Nc(o[e])?(Object.keys(t).includes(e)||Object.assign(t,xs({},e,{})),au(t[e],o[e])):Object.assign(t,xs({},e,o[e]))}),au.apply(void 0,[t].concat(n))):t}function lu(t,e){var n=t.length?t:[t];Array.from(n).reverse().forEach(function(t,n){var i=n>0?e.cloneNode(!0):e,o=t.parentNode,r=t.nextSibling;i.appendChild(t),r?o.insertBefore(i,r):o.appendChild(i)})}function cu(t,e){Xc(t)&&!Zc(e)&&Object.entries(e).filter(function(t){var e=Es(t,2)[1];return!Fc(e)}).forEach(function(e){var n=Es(e,2),i=n[0],o=n[1];return t.setAttribute(i,o)})}function uu(t,e,n){var i=document.createElement(t);return Nc(e)&&cu(i,e),Uc(n)&&(i.innerText=n),i}function hu(t,e,n,i){Xc(e)&&e.appendChild(uu(t,n,i))}function du(t){Vc(t)||Wc(t)?Array.from(t).forEach(du):Xc(t)&&Xc(t.parentNode)&&t.parentNode.removeChild(t)}function fu(t){if(Xc(t))for(var e=t.childNodes.length;e>0;)t.removeChild(t.lastChild),e-=1}function pu(t,e){return Xc(e)&&Xc(e.parentNode)&&Xc(t)?(e.parentNode.replaceChild(t,e),t):null}function gu(t,e){if(!Uc(t)||Zc(t))return{};var n={},i=au({},e);return t.split(",").forEach(function(t){var e=t.trim(),o=e.replace(".",""),r=e.replace(/[[\]]/g,"").split("="),s=Es(r,1)[0],a=r.length>1?r[1].replace(/["']/g,""):"";switch(e.charAt(0)){case".":Uc(i.class)?n.class="".concat(i.class," ").concat(o):n.class=o;break;case"#":n.id=e.replace("#","");break;case"[":n[s]=a}}),au(i,n)}function mu(t,e){if(Xc(t)){var n=e;Hc(n)||(n=!t.hidden),t.hidden=n}}function vu(t,e,n){if(Vc(t))return Array.from(t).map(function(t){return vu(t,e,n)});if(Xc(t)){var i="toggle";return void 0!==n&&(i=n?"add":"remove"),t.classList[i](e),t.classList.contains(e)}return!1}function yu(t,e){return Xc(t)&&t.classList.contains(e)}function bu(t,e){return function(){return Array.from(document.querySelectorAll(e)).includes(this)}.call(t,e)}function wu(t){return this.elements.container.querySelectorAll(t)}function xu(t){return this.elements.container.querySelector(t)}function Su(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Xc(t)&&(t.focus({preventScroll:!0}),e&&vu(t,this.config.classNames.tabFocus))}Lt({target:"Array",proto:!0,forced:!ou||!ru},{reduce:function(t){return iu(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var ku,Eu={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},Tu={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(t,e,n){var i=eu.isIPhone&&n&&Tu.playsinline,o=Tu[t]||"html5"!==e;return{api:o,ui:o&&Tu.rangeInput&&("video"!==t||!eu.isIPhone||i)}},pip:!(eu.isIPhone||!Bc(uu("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||uu("video").disablePictureInPicture)),airplay:Bc(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(t){if(Zc(t))return!1;var e=Es(t.split("/"),1)[0],n=t;if(!this.isHTML5||e!==this.type)return!1;Object.keys(Eu).includes(n)&&(n+='; codecs="'.concat(Eu[t],'"'));try{return Boolean(n&&this.media.canPlayType(n).replace(/no/,""))}catch(t){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(ku=document.createElement("input"),ku.type="range","range"===ku.type),touch:"ontouchstart"in document.documentElement,transitions:!1!==Jc,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},Cu=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0,null}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function Pu(t,e,n){var i=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(t&&"addEventListener"in t&&!Zc(e)&&Bc(n)){var a=e.split(" "),l=s;Cu&&(l={passive:r,capture:s}),a.forEach(function(e){i&&i.eventListeners&&o&&i.eventListeners.push({element:t,type:e,callback:n,options:l}),t[o?"addEventListener":"removeEventListener"](e,n,l)})}}function Au(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Pu.call(this,t,e,n,!0,i,o)}function Iu(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Pu.call(this,t,e,n,!1,i,o)}function Lu(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Pu.call(this,t,n,function s(){Iu(t,n,s,o,r);for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];i.apply(e,l)},!0,o,r)}function _u(t){var e=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]:{};if(Xc(t)&&!Zc(e)){var o=new CustomEvent(e,{bubbles:n,detail:ks({},i,{plyr:this})});t.dispatchEvent(o)}}function Mu(t){return!!(Wc(t)||Uc(t)&&t.includes(":"))&&(Wc(t)?t:t.split(":")).map(Number).every(qc)}function Ou(t){if(!Wc(t)||!t.every(qc))return null;var e=Es(t,2),n=e[0],i=e[1],o=function t(e,n){return 0===n?e:t(n,e%n)}(n,i);return[n/o,i/o]}function ju(t){var e=function(t){return Mu(t)?t.split(":").map(Number):null},n=e(t);if(null===n&&(n=e(this.config.ratio)),null===n&&!Zc(this.embed)&&Wc(this.embed.ratio)&&(n=this.embed.ratio),null===n&&this.isHTML5){var i=this.media;n=Ou([i.videoWidth,i.videoHeight])}return n}function Du(t){if(!this.isVideo)return{};var e=this.elements.wrapper,n=ju.call(this,t),i=Es(Wc(n)?n:[0,0],2),o=100/i[0]*i[1];if(e.style.paddingBottom="".concat(o,"%"),this.isVimeo&&this.supported.ui){var r=(240-o)/4.8;this.media.style.transform="translateY(-".concat(r,"%)")}else this.isHTML5&&e.classList.toggle(this.config.classNames.videoFixedRatio,null!==n);return{padding:o,ratio:n}}var zu={getSources:function(){var t=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(function(e){var n=e.getAttribute("type");return!!Zc(n)||Tu.mime.call(t,n)}):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:zu.getSources.call(this).map(function(t){return Number(t.getAttribute("size"))}
1).filter(Boolean)},setup:function(){if(this.isHTML5){var t=this;t.options.speed=t.config.speed.options,Zc(this.config.ratio)||Du.call(t),Object.defineProperty(t.media,"quality",{get:function(){var e=zu.getSources.call(t).find(function(e){return e.getAttribute("src")===t.source});return e&&Number(e.getAttribute("size"))},set:function(e){if(t.quality!==e){if(t.config.quality.forced&&Bc(t.config.quality.onChange))t.config.quality.onChange(e);else{var n=zu.getSources.call(t).find(function(t){return Number(t.getAttribute("size"))===e});if(!n)return;var i=t.media,o=i.currentTime,r=i.paused,s=i.preload,a=i.readyState,l=i.playbackRate;t.media.src=n.getAttribute("src"),("none"!==s||a)&&(t.once("loadedmetadata",function(){t.speed=l,t.currentTime=o,r||t.play()}),t.media.load())}_u.call(t,t.media,"qualitychange",!1,{quality:e})}}})}},cancelRequests:function(){this.isHTML5&&(du(zu.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function $u(t){return Wc(t)?t.filter(function(e,n){return t.indexOf(e)===n}):t}var Ru=A.f,Fu=yt.f,Nu=J.set,qu=Gt("match"),Uu=i.RegExp,Hu=Uu.prototype,Bu=/a/g,Wu=/a/g,Vu=new Uu(Bu)!==Bu,Xu=si.UNSUPPORTED_Y;if(r&&At("RegExp",!Vu||Xu||o(function(){return Wu[qu]=!1,Uu(Bu)!=Bu||Uu(Wu)==Wu||"/a/i"!=Uu(Bu,"i")}))){for(var Yu=function(t,e){var n,i=this instanceof Yu,o=Ni(t),r=void 0===e;if(!i&&o&&t.constructor===Yu&&r)return t;Vu?o&&!r&&(t=t.source):t instanceof Yu&&(r&&(e=oi.call(t)),t=t.source),Xu&&(n=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var s=Xs(Vu?new Uu(t,e):Uu(t,e),i?this:Hu,Yu);return Xu&&n&&Nu(s,{sticky:n}),s},Qu=function(t){t in Yu||Ru(Yu,t,{configurable:!0,get:function(){return Uu[t]},set:function(e){Uu[t]=e}})},Gu=Fu(Uu),Ku=0;Gu.length>Ku;)Qu(Gu[Ku++]);Hu.constructor=Yu,Yu.prototype=Hu,tt(i,"RegExp",Yu)}function Zu(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return Zc(t)?t:t.toString().replace(/{(\d+)}/g,function(t,e){return n[e].toString()})}function Ju(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.replace(new RegExp(e.toString().replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1"),"g"),n.toString())}function th(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString().replace(/\w\S*/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()})}function eh(t){var e=document.createElement("div");return e.appendChild(t),e.innerHTML}ul("RegExp");var nh={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},ih=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Zc(t)||Zc(e))return"";var n=su(e.i18n,t);if(Zc(n))return Object.keys(nh).includes(t)?nh[t]:"";var i={"{seektime}":e.seekTime,"{title}":e.title};return Object.entries(i).forEach(function(t){var e=Es(t,2),i=e[0],o=e[1];n=Ju(n,i,o)}),n},oh=function(){function t(e){ys(this,t),this.enabled=e.config.storage.enabled,this.key=e.config.storage.key}return ws(t,[{key:"get",value:function(e){if(!t.supported||!this.enabled)return null;var n=window.localStorage.getItem(this.key);if(Zc(n))return null;var i=JSON.parse(n);return Uc(e)&&e.length?i[e]:i}},{key:"set",value:function(e){if(t.supported&&this.enabled&&Nc(e)){var n=this.get();Zc(n)&&(n={}),au(n,e),window.localStorage.setItem(this.key,JSON.stringify(n))}}}],[{key:"supported",get:function(){try{return"localStorage"in window&&(window.localStorage.setItem("___test","___test"),window.localStorage.removeItem("___test"),!0)}catch(t){return!1}}}]),t}();function rh(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise(function(n,i){try{var o=new XMLHttpRequest;if(!("withCredentials"in o))return;o.addEventListener("load",function(){if("text"===e)try{n(JSON.parse(o.responseText))}catch(t){n(o.responseText)}else n(o.response)}),o.addEventListener("error",function(){throw new Error(o.status)}),o.open("GET",t,!0),o.responseType=e,o.send()}catch(t){i(t)}})}function sh(t,e){if(Uc(t)){var n=Uc(e),i=function(){return null!==document.getElementById(e)},o=function(t,e){t.innerHTML=e,n&&i()||document.body.insertAdjacentElement("afterbegin",t)};if(!n||!i()){var r=oh.supported,s=document.createElement("div");if(s.setAttribute("hidden",""),n&&s.setAttribute("id",e),r){var a=window.localStorage.getItem("".concat("cache","-").concat(e));if(null!==a){var l=JSON.parse(a);o(s,l.content)}}rh(t).then(function(t){Zc(t)||(r&&window.localStorage.setItem("".concat("cache","-").concat(e),JSON.stringify({content:t})),o(s,t))}).catch(function(){})}}}var ah=Math.ceil,lh=Math.floor;Lt({target:"Math",stat:!0},{trunc:function(t){return(t>0?lh:ah)(t)}});var ch=function(t){return Math.trunc(t/60/60%60,10)},uh=function(t){return Math.trunc(t/60%60,10)}
vendor: 18,753 bytes, line 1
1,hh=function(t){return Math.trunc(t%60,10)};function dh(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!qc(t))return dh(void 0,e,n);var i=function(t){return"0".concat(t).slice(-2)},o=ch(t),r=uh(t),s=hh(t);return o=e||o>0?"".concat(o,":"):"","".concat(n&&t>0?"-":"").concat(o).concat(i(r),":").concat(i(s))}var fh={getIconUrl:function(){var t=new URL(this.config.iconUrl,window.location).host!==window.location.host||eu.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:t}},findElements:function(){try{return this.elements.controls=xu.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:wu.call(this,this.config.selectors.buttons.play),pause:xu.call(this,this.config.selectors.buttons.pause),restart:xu.call(this,this.config.selectors.buttons.restart),rewind:xu.call(this,this.config.selectors.buttons.rewind),fastForward:xu.call(this,this.config.selectors.buttons.fastForward),mute:xu.call(this,this.config.selectors.buttons.mute),pip:xu.call(this,this.config.selectors.buttons.pip),airplay:xu.call(this,this.config.selectors.buttons.airplay),settings:xu.call(this,this.config.selectors.buttons.settings),captions:xu.call(this,this.config.selectors.buttons.captions),fullscreen:xu.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=xu.call(this,this.config.selectors.progress),this.elements.inputs={seek:xu.call(this,this.config.selectors.inputs.seek),volume:xu.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:xu.call(this,this.config.selectors.display.buffer),currentTime:xu.call(this,this.config.selectors.display.currentTime),duration:xu.call(this,this.config.selectors.display.duration)},Xc(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip))),!0}catch(t){return this.debug.warn("It looks like there is a problem with your custom controls HTML",t),this.toggleNativeControls(!0),!1}},createIcon:function(t,e){var n=fh.getIconUrl.call(this),i="".concat(n.cors?"":n.url,"#").concat(this.config.iconPrefix),o=document.createElementNS("http://www.w3.org/2000/svg","svg");cu(o,au(e,{role:"presentation",focusable:"false"}));var r=document.createElementNS("http://www.w3.org/2000/svg","use"),s="".concat(i,"-").concat(t);return"href"in r&&r.setAttributeNS("http://www.w3.org/1999/xlink","href",s),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s),o.appendChild(r),o},createLabel:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ih(t,this.config);return uu("span",ks({},e,{class:[e.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),n)},createBadge:function(t){if(Zc(t))return null;var e=uu("span",{class:this.config.classNames.menu.value});return e.appendChild(uu("span",{class:this.config.classNames.menu.badge},t)),e},createButton:function(t,e){var n=this,i=au({},e),o=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return(t=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return t=Ju(t,"-"," "),t=Ju(t,"_"," "),Ju(t=th(t)," ","")}(t)).charAt(0).toLowerCase()+t.slice(1)}(t),r={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(function(t){Object.keys(i).includes(t)&&(r[t]=i[t],delete i[t])}),"button"!==r.element||Object.keys(i).includes("type")||(i.type="button"),Object.keys(i).includes("class")?i.class.split(" ").some(function(t){return t===n.config.classNames.control})||au(i,{class:"".concat(i.class," ").concat(this.config.classNames.control)}):i.class=this.config.classNames.control,t){case"play":r.toggle=!0,r.label="play",r.labelPressed="pause",r.icon="play",r.iconPressed="pause";break;case"mute":r.toggle=!0,r.label="mute",r.labelPressed="unmute",r.icon="volume",r.iconPressed="muted";break;case"captions":r.toggle=!0,r.label="enableCaptions",r.labelPressed="disableCaptions",r.icon="captions-off",r.iconPressed="captions-on";break;case"fullscreen":r.toggle=!0,r.label="enterFullscreen",r.labelPressed="exitFullscreen",r.icon="enter-fullscreen",r.iconPressed="exit-fullscreen";break;case"play-large":i.class+=" ".concat(this.config.classNames.control,"--overlaid"),o="play",r.label="play",r.icon="play";break;default:Zc(r.label)&&(r.label=o),Zc(r.icon)&&(r.icon=t)}var s=uu(r.element);return r.toggle?(s.appendChild(fh.createIcon.call(this,r.iconPressed,{class:"icon--pressed"})),s.appendChild(fh.createIcon.call(this,r.icon,{class:"icon--not-pressed"})),s.appendChild(fh.createLabel.call(this,r.labelPressed,{class:"label--pressed"})),s.appendChild(fh.createLabel.call(this,r.label,{class:"label--not-pressed"}))):(s.appendChild(fh.createIcon.call(this,r.icon)),s.appendChild(fh.createLabel.call(this,r.label))),au(i,gu(this.config.selectors.buttons[o],i)),cu(s,i),"play"===o?(Wc(this.elements.buttons[o])||(this.elements.buttons[o]=[]),this.elements.buttons[o].push(s)):this.elements.buttons[o]=s,s},createRange:function(t,e){var n=uu("input",au(gu(this.config.selectors.inputs[t]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":ih(t,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},e));return this.elements.inputs[t]=n,fh.updateRangeFill.call(this,n),al.setup(n),n},createProgress:function(t,e){var n=uu("progress",au(gu(this.config.selectors.display[t]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},e));if("volume"!==t){n.appendChild(uu("span",null,"0"));var i={played:"played",buffer:"buffered"}[t],o=i?ih(i,this.config):"";n.innerText="% ".concat(o.toLowerCase())}return this.elements.display[t]=n,n},createTime:function(t,e){var n=gu(this.config.selectors.display[t],e),i=uu("div",au(n,{class:"".concat(n.class?n.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":ih(t,this.config)}),"00:00");return this.elements.display[t]=i,i},bindMenuItemShortcuts:function(t,e){var n=this;Au.call(this,t,"keydown keyup",function(i){if([32,38,39,40].includes(i.which)&&(i.preventDefault(),i.stopPropagation(),"keydown"!==i.type)){var o,r=bu(t,'[role="menuitemradio"]');!r&&[32,39].includes(i.which)?fh.showMenuPanel.call(n,e,!0):32!==i.which&&(40===i.which||r&&39===i.which?(o=t.nextElementSibling,Xc(o)||(o=t.parentNode.firstElementChild)):(o=t.previousElementSibling,Xc(o)||(o=t.parentNode.lastElementChild)),Su.call(n,o,!0))}},!1),Au.call(this,t,"keyup",function(t){13===t.which&&fh.focusFirstMenuItem.call(n,null,!0)})},createMenuItem:function(t){var e=this,n=t.value,i=t.list,o=t.type,r=t.title,s=t.badge,a=void 0===s?null:s,l=t.checked,c=void 0!==l&&l,u=gu(this.config.selectors.inputs[o]),h=uu("button",au(u,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(u.class?u.class:"").trim(),"aria-checked":c,value:n})),d=uu("span");d.innerHTML=r,Xc(a)&&d.appendChild(a),h.appendChild(d),Object.defineProperty(h,"checked",{enumerable:!0,get:function(){return"true"===h.getAttribute("aria-checked")},set:function(t){t&&Array.from(h.parentNode.children).filter(function(t){return bu(t,'[role="menuitemradio"]')}).forEach(function(t){return t.setAttribute("aria-checked","false")}),h.setAttribute("aria-checked",t?"true":"false")}}),this.listeners.bind(h,"click keyup",function(t){if(!Qc(t)||32===t.which){switch(t.preventDefault(),t.stopPropagation(),h.checked=!0,o){case"language":e.currentTrack=Number(n);break;case"quality":e.quality=n;break;case"speed":e.speed=parseFloat(n)}fh.showMenuPanel.call(e,"home",Qc(t))}},o,!1),fh.bindMenuItemShortcuts.call(this,h,o),i.appendChild(h)},formatTime:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return qc(t)?dh(t,ch(this.duration)>0,e):t},updateTimeDisplay:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Xc(t)&&qc(e)&&(t.innerText=fh.formatTime(e,n))},updateVolume:function(){this.supported.ui&&(Xc(this.elements.inputs.volume)&&fh.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),Xc(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Xc(t)&&(t.value=e,fh.updateRangeFill.call(this,t))},updateProgress:function(t){var e=this;if(this.supported.ui&&Yc(t)){var n=0;if(t)switch(t.type){case"timeupdate":case"seeking":case"seeked":n=function(t,e){return 0===t||0===e||Number.isNaN(t)||Number.isNaN(e)?0:(t/e*100).toFixed(2)}(this.currentTime,this.duration),"timeupdate"===t.type&&fh.setRange.call(this,this.elements.inputs.seek,n);break;case"playing":case"progress":!function(t,n){var i=qc(n)?n:0,o=Xc(t)?t:e.elements.display.buffer;if(Xc(o)){o.value=i;var r=o.getElementsByTagName("span")[0];Xc(r)&&(r.childNodes[0].nodeValue=i)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(t){var e=Yc(t)?t.target:t;if(Xc(e)&&"range"===e.getAttribute("type")){if(bu(e,this.config.selectors.inputs.seek)){e.setAttribute("aria-valuenow",this.currentTime);var n=fh.formatTime(this.currentTime),i=fh.formatTime(this.duration),o=ih("seekLabel",this.config);e.setAttribute("aria-valuetext",o.replace("{currentTime}",n).replace("{duration}",i))}else if(bu(e,this.config.selectors.inputs.volume)){var r=100*e.value;e.setAttribute("aria-valuenow",r),e.setAttribute("aria-valuetext","".concat(r.toFixed(1),"%"))}else e.setAttribute("aria-valuenow",e.value);eu.isWebkit&&e.style.setProperty("--value","".concat(e.value/e.max*100,"%"))}},updateSeekTooltip:function(t){var e=this;if(this.config.tooltips.seek&&Xc(this.elements.inputs.seek)&&Xc(this.elements.display.seekTooltip)&&0!==this.duration){var n="".concat(this.config.classNames.tooltip,"--visible"),i=function(t){return vu(e.elements.display.seekTooltip,n,t)};if(this.touch)i(!1);else{var o=0,r=this.elements.progress.getBoundingClientRect();if(Yc(t))o=100/r.width*(t.pageX-r.left);else{if(!yu(this.elements.display.seekTooltip,n))return;o=parseFloat(this.elements.display.seekTooltip.style.left,10)}o<0?o=0:o>100&&(o=100),fh.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*o),this.elements.display.seekTooltip.style.left="".concat(o,"%"),Yc(t)&&["mouseenter","mouseleave"].includes(t.type)&&i("mouseenter"===t.type)}}},timeUpdate:function(t){var e=!Xc(this.elements.display.duration)&&this.config.invertTime;fh.updateTimeDisplay.call(this,this.elements.display.currentTime,e?this.duration-this.currentTime:this.currentTime,e),t&&"timeupdate"===t.type&&this.media.seeking||fh.updateProgress.call(this,t)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return mu(this.elements.display.currentTime,!0),void mu(this.elements.progress,!0);Xc(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var t=Xc(this.elements.display.duration);!t&&this.config.displayDuration&&this.paused&&fh.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),t&&fh.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),fh.updateSeekTooltip.call(this)}},toggleMenuButton:function(t,e){mu(this.elements.settings.buttons[t],!e)},updateSetting:function(t,e,n){var i=this.elements.settings.panels[t],o=null,r=e;if("captions"===t)o=this.currentTrack;else{if(o=Zc(n)?this[t]:n,Zc(o)&&(o=this.config[t].default),!Zc(this.options[t])&&!this.options[t].includes(o))return void this.debug.warn("Unsupported value of '".concat(o,"' for ").concat(t));if(!this.config[t].options.includes(o))return void this.debug.warn("Disabled value of '".concat(o,"' for ").concat(t))}if(Xc(r)||(r=i&&i.querySelector('[role="menu"]')),Xc(r)){this.elements.settings.buttons[t].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=fh.getLabel.call(this,t,o);var s=r&&r.querySelector('[value="'.concat(o,'"]'));Xc(s)&&(s.checked=!0)}},getLabel:function(t,e){switch(t){case"speed":return 1===e?ih("normal",this.config):"".concat(e,"×");case"quality":if(qc(e)){var n=ih("qualityLabel.".concat(e),this.config);return n.length?n:"".concat(e,"p")}return th(e);case"captions":return mh.getLabel.call(this);default:return null}},setQualityMenu:function(t){var e=this;if(Xc(this.elements.settings.panels.quality)){var n=this.elements.settings.panels.quality.querySelector('[role="menu"]');Wc(t)&&(this.options.quality=$u(t).filter(function(t){return e.config.quality.options.includes(t)}));var i=!Zc(this.options.quality)&&this.options.quality.length>1;if(fh.toggleMenuButton.call(this,"quality",i),fu(n),fh.checkMenu.call(this),i){var o=function(t){var n=ih("qualityBadge.".concat(t),e.config);return n.length?fh.createBadge.call(e,n):null};this.options.quality.sort(function(t,n){var i=e.config.quality.options;return i.indexOf(t)>i.indexOf(n)?1:-1}).forEach(function(t){fh.createMenuItem.call(e,{value:t,list:n,type:"quality",title:fh.getLabel.call(e,"quality",t),badge:o(t)})}),fh.updateSetting.call(this,"quality",n)}}},setCaptionsMenu:function(){var t=this;if(Xc(this.elements.settings.panels.captions)){var e=this.elements.settings.panels.captions.querySelector('[role="menu"]'),n=mh.getTracks.call(this),i=Boolean(n.length);if(fh.toggleMenuButton.call(this,"captions",i),fu(e),fh.checkMenu.call(this),i){var o=n.map(function(n,i){return{value:i,checked:t.captions.toggled&&t.currentTrack===i,title:mh.getLabel.call(t,n),badge:n.language&&fh.createBadge.call(t,n.language.toUpperCase()),list:e,type:"language"}});o.unshift({value:-1,checked:!this.captions.toggled,title:ih("disabled",this.config),list:e,type:"language"}),o.forEach(fh.createMenuItem.bind(this)),fh.updateSetting.call(this,"captions",e)}}},setSpeedMenu:function(){var t=this;if(Xc(this.elements.settings.panels.speed)){var e=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(function(e){return e>=t.minimumSpeed&&e<=t.maximumSpeed});var n=!Zc(this.options.speed)&&this.options.speed.length>1;fh.toggleMenuButton.call(this,"speed",n),fu(e),fh.checkMenu.call(this),n&&(this.options.speed.forEach(function(n){fh.createMenuItem.call(t,{value:n,list:e,type:"speed",title:fh.getLabel.call(t,"speed",n)})}),fh.updateSetting.call(this,"speed",e))}},checkMenu:function(){var t=this.elements.settings.buttons,e=!Zc(t)&&Object.values(t).some(function(t){return!t.hidden});mu(this.elements.settings.menu,!e)},focusFirstMenuItem:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.elements.settings.popup.hidden){var n=t;Xc(n)||(n=Object.values(this.elements.settings.panels).find(function(t){return!t.hidden}));var i=n.querySelector('[role^="menuitem"]');Su.call(this,i,e)}},toggleMenu:function(t){var e=this.elements.settings.popup,n=this.elements.buttons.settings;if(Xc(e)&&Xc(n)){var i=e.hidden,o=i;if(Hc(t))o=t;else if(Qc(t)&&27===t.which)o=!1;else if(Yc(t)){var r=Bc(t.composedPath)?t.composedPath()[0]:t.target,s=e.contains(r);if(s||!s&&t.target!==n&&o)return}n.setAttribute("aria-expanded",o),mu(e,!o),vu(this.elements.container,this.config.classNames.menu.open,o),o&&Qc(t)?fh.focusFirstMenuItem.call(this,null,!0):o||i||Su.call(this,n,Qc(t))}},getMenuSize:function(t){var e=t.cloneNode(!0);e.style.position="absolute",e.style.opacity=0,e.removeAttribute("hidden"),t.parentNode.appendChild(e);var n=e.scrollWidth,i=e.scrollHeight;return du(e),{width:n,height:i}},showMenuPanel:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(e));if(Xc(i)){var o=i.parentNode,r=Array.from(o.children).find(function(t){return!t.hidden});if(Tu.transitions&&!Tu.reducedMotion){o.style.width="".concat(r.scrollWidth,"px"),o.style.height="".concat(r.scrollHeight,"px");var s=fh.getMenuSize.call(this,i);Au.call(this,o,Jc,function e(n){n.target===o&&["width","height"].includes(n.propertyName)&&(o.style.width="",o.style.height="",Iu.call(t,o,Jc,e))}),o.style.width="".concat(s.width,"px"),o.style.height="".concat(s.height,"px")}mu(r,!0),mu(i,!1),fh.focusFirstMenuItem.call(this,i,n)}},setDownloadUrl:function(){var t=this.elements.buttons.download;Xc(t)&&t.setAttribute("href",this.download)},create:function(t){var e=this,n=fh.bindMenuItemShortcuts,i=fh.createButton,o=fh.createProgress,r=fh.createRange,s=fh.createTime,a=fh.setQualityMenu,l=fh.setSpeedMenu,c=fh.showMenuPanel;this.elements.controls=null,this.config.controls.includes("play-large")&&this.elements.container.appendChild(i.call(this,"play-large"));var u=uu("div",gu(this.config.selectors.controls.wrapper));this.elements.controls=u;var h={class:"plyr__controls__item"};return $u(this.config.controls).forEach(function(a){if("restart"===a&&u.appendChild(i.call(e,"restart",h)),"rewind"===a&&u.appendChild(i.call(e,"rewind",h)),"play"===a&&u.appendChild(i.call(e,"play",h)),"fast-forward"===a&&u.appendChild(i.call(e,"fast-forward",h)),"progress"===a){var l=uu("div",{class:"".concat(h.class," plyr__progress__container")}),d=uu("div",gu(e.config.selectors.progress));if(d.appendChild(r.call(e,"seek",{id:"plyr-seek-".concat(t.id)})),d.appendChild(o.call(e,"buffer")),e.config.tooltips.seek){var f=uu("span",{class:e.config.classNames.tooltip},"00:00");d.appendChild(f),e.elements.display.seekTooltip=f}e.elements.progress=d,l.appendChild(e.elements.progress),u.appendChild(l)}if("current-time"===a&&u.appendChild(s.call(e,"currentTime",h)),"duration"===a&&u.appendChild(s.call(e,"duration",h)),"mute"===a||"volume"===a){var p=e.elements.volume;if(Xc(p)&&u.contains(p)||(p=uu("div",au({},h,{class:"".concat(h.class," plyr__volume").trim()})),e.elements.volume=p,u.appendChild(p)),"mute"===a&&p.appendChild(i.call(e,"mute")),"volume"===a&&!eu.isIos){var g={max:1,step:.05,value:e.config.volume};p.appendChild(r.call(e,"volume",au(g,{id:"plyr-volume-".concat(t.id)})))}}if("captions"===a&&u.appendChild(i.call(e,"captions",h)),"settings"===a&&!Zc(e.config.settings)){var m=uu("div",au({},h,{class:"".concat(h.class," plyr__menu").trim(),hidden:""}));m.appendChild(i.call(e,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(t.id),"aria-expanded":!1}));var v=uu("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(t.id),hidden:""}),y=uu("div"),b=uu("div",{id:"plyr-settings-".concat(t.id,"-home")}
1),w=uu("div",{role:"menu"});b.appendChild(w),y.appendChild(b),e.elements.settings.panels.home=b,e.config.settings.forEach(function(i){var o=uu("button",au(gu(e.config.selectors.buttons.settings),{type:"button",class:"".concat(e.config.classNames.control," ").concat(e.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""}));n.call(e,o,i),Au.call(e,o,"click",function(){c.call(e,i,!1)});var r=uu("span",null,ih(i,e.config)),s=uu("span",{class:e.config.classNames.menu.value});s.innerHTML=t[i],r.appendChild(s),o.appendChild(r),w.appendChild(o);var a=uu("div",{id:"plyr-settings-".concat(t.id,"-").concat(i),hidden:""}),l=uu("button",{type:"button",class:"".concat(e.config.classNames.control," ").concat(e.config.classNames.control,"--back")});l.appendChild(uu("span",{"aria-hidden":!0},ih(i,e.config))),l.appendChild(uu("span",{class:e.config.classNames.hidden},ih("menuBack",e.config))),Au.call(e,a,"keydown",function(t){37===t.which&&(t.preventDefault(),t.stopPropagation(),c.call(e,"home",!0))},!1),Au.call(e,l,"click",function(){c.call(e,"home",!1)}),a.appendChild(l),a.appendChild(uu("div",{role:"menu"})),y.appendChild(a),e.elements.settings.buttons[i]=o,e.elements.settings.panels[i]=a}),v.appendChild(y),m.appendChild(v),u.appendChild(m),e.elements.settings.popup=v,e.elements.settings.menu=m}if("pip"===a&&Tu.pip&&u.appendChild(i.call(e,"pip",h)),"airplay"===a&&Tu.airplay&&u.appendChild(i.call(e,"airplay",h)),"download"===a){var x=au({},h,{element:"a",href:e.download,target:"_blank"});e.isHTML5&&(x.download="");var S=e.config.urls.download;!Kc(S)&&e.isEmbed&&au(x,{icon:"logo-".concat(e.provider),label:e.provider}),u.appendChild(i.call(e,"download",x))}"fullscreen"===a&&u.appendChild(i.call(e,"fullscreen",h))}),this.isHTML5&&a.call(this,zu.getQualityOptions.call(this)),l.call(this),u},inject:function(){var t=this;if(this.config.loadSprite){var e=fh.getIconUrl.call(this);e.cors&&sh(e.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());var n=null;this.elements.controls=null;var i={id:this.id,seektime:this.config.seekTime,title:this.config.title},o=!0;Bc(this.config.controls)&&(this.config.controls=this.config.controls.call(this,i)),this.config.controls||(this.config.controls=[]),Xc(this.config.controls)||Uc(this.config.controls)?n=this.config.controls:(n=fh.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:mh.getLabel.call(this)}),o=!1);var r,s=function(t){var e=t;return Object.entries(i).forEach(function(t){var n=Es(t,2),i=n[0],o=n[1];e=Ju(e,"{".concat(i,"}"),o)}),e};if(o&&(Uc(this.config.controls)?n=s(n):Xc(n)&&(n.innerHTML=s(n.innerHTML))),Uc(this.config.selectors.controls.container)&&(r=document.querySelector(this.config.selectors.controls.container)),Xc(r)||(r=this.elements.container),r[Xc(n)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",n),Xc(this.elements.controls)||fh.findElements.call(this),!Zc(this.elements.buttons)){var a=function(e){var n=t.config.classNames.controlPressed;Object.defineProperty(e,"pressed",{enumerable:!0,get:function(){return yu(e,n)},set:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];vu(e,n,t)}})};Object.values(this.elements.buttons).filter(Boolean).forEach(function(t){Wc(t)||Vc(t)?Array.from(t).filter(Boolean).forEach(a):a(t)})}if(eu.isEdge&&tu(r),this.config.tooltips.controls){var l=this.config,c=l.classNames,u=l.selectors,h="".concat(u.controls.wrapper," ").concat(u.labels," .").concat(c.hidden),d=wu.call(this,h);Array.from(d).forEach(function(e){vu(e,t.config.classNames.hidden,!1),vu(e,t.config.classNames.tooltip,!0)})}}};function ph(t){var e=t;if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){var n=document.createElement("a");n.href=e,e=n.href}try{return new URL(e)}catch(t){return null}}function gh(t){var e=new URLSearchParams;return Nc(t)&&Object.entries(t).forEach(function(t){var n=Es(t,2),i=n[0],o=n[1];e.set(i,o)}),e}var mh={setup:function(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!Tu.textTracks)Wc(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&fh.setCaptionsMenu.call(this);else{if(Xc(this.elements.captions)||(this.elements.captions=uu("div",gu(this.config.selectors.captions)),function(t,e){Xc(t)&&Xc(e)&&e.parentNode.insertBefore(t,e.nextSibling)}(this.elements.captions,this.elements.wrapper)),eu.isIE&&window.URL){var t=this.media.querySelectorAll("track");Array.from(t).forEach(function(t){var e=t.getAttribute("src"),n=ph(e);null!==n&&n.hostname!==window.location.href.hostname&&["http:","https:"].includes(n.protocol)&&rh(e,"blob").then(function(e){t.setAttribute("src",
1window.URL.createObjectURL(e))}).catch(function(){du(t)})})}var e=$u((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(function(t){return t.split("-")[0]})),n=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===n&&(n=Es(e,1)[0]);var i=this.storage.get("captions");if(Hc(i)||(i=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:i,language:n,languages:e}),this.isHTML5){var o=this.config.captions.update?"addtrack removetrack":"removetrack";Au.call(this,this.media.textTracks,o,mh.update.bind(this))}setTimeout(mh.update.bind(this),0)}},update:function(){var t=this,e=mh.getTracks.call(this,!0),n=this.captions,i=n.active,o=n.language,r=n.meta,s=n.currentTrackNode,a=Boolean(e.find(function(t){return t.language===o}));this.isHTML5&&this.isVideo&&e.filter(function(t){return!r.get(t)}).forEach(function(e){t.debug.log("Track added",e),r.set(e,{default:"showing"===e.mode}),e.mode="hidden",Au.call(t,e,"cuechange",function(){return mh.updateCues.call(t)})}),(a&&this.language!==o||!e.includes(s))&&(mh.setLanguage.call(this,o),mh.toggle.call(this,i&&a)),vu(this.elements.container,this.config.classNames.captions.enabled,!Zc(e)),(this.config.controls||[]).includes("settings")&&this.config.settings.includes("captions")&&fh.setCaptionsMenu.call(this)},toggle:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var n=this.captions.toggled,i=this.config.classNames.captions.active,o=Fc(t)?!n:t;if(o!==n){if(e||(this.captions.active=o,this.storage.set({captions:o})),!this.language&&o&&!e){var r=mh.getTracks.call(this),s=mh.findTrack.call(this,[this.captions.language].concat(Ts(this.captions.languages)),!0);return this.captions.language=s.language,void mh.set.call(this,r.indexOf(s))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=o),vu(this.elements.container,i,o),this.captions.toggled=o,fh.updateSetting.call(this,"captions"),_u.call(this,this.media,o?"captionsenabled":"captionsdisabled")}}},set:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=mh.getTracks.call(this);if(-1!==t)if(qc(t))if(t in n){if(this.captions.currentTrack!==t){this.captions.currentTrack=t;var i=n[t],o=(i||{}).language;this.captions.currentTrackNode=i,fh.updateSetting.call(this,"captions"),e||(this.captions.language=o,this.storage.set({language:o})),this.isVimeo&&this.embed.enableTextTrack(o),_u.call(this,this.media,"languagechange")}mh.toggle.call(this,!0,e),this.isHTML5&&this.isVideo&&mh.updateCues.call(this)}else this.debug.warn("Track not found",t);else this.debug.warn("Invalid caption argument",t);else mh.toggle.call(this,!1,e)},setLanguage:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(Uc(t)){var n=t.toLowerCase();this.captions.language=n;var i=mh.getTracks.call(this),o=mh.findTrack.call(this,[n]);mh.set.call(this,i.indexOf(o),e)}else this.debug.warn("Invalid language argument",t)},getTracks:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Array.from((this.media||{}).textTracks||[]).filter(function(n){return!t.isHTML5||e||t.captions.meta.has(n)}).filter(function(t){return["captions","subtitles"].includes(t.kind)})},findTrack:function(t){var e,n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=mh.getTracks.call(this),r=function(t){return Number((n.captions.meta.get(t)||{}).default)},s=Array.from(o).sort(function(t,e){return r(e)-r(t)});return t.every(function(t){return!(e=s.find(function(e){return e.language===t}))}),e||(i?s[0]:void 0)},getCurrentTrack:function(){return mh.getTracks.call(this)[this.currentTrack]},getLabel:function(t){var e=t;return!Gc(e)&&Tu.textTracks&&this.captions.toggled&&(e=mh.getCurrentTrack.call(this)),Gc(e)?Zc(e.label)?Zc(e.language)?ih("enabled",this.config):t.language.toUpperCase():e.label:ih("disabled",this.config)},updateCues:function(t){if(this.supported.ui)if(Xc(this.elements.captions))if(Fc(t)||Array.isArray(t)){var e=t;if(!e){var n=mh.getCurrentTrack.call(this);e=Array.from((n||{}).activeCues||[]).map(function(t){return t.getCueAsHTML()}).map(eh)}var i=e.map(function(t){return t.trim()}).join("\n");if(i!==this.elements.captions.innerHTML){fu(this.elements.captions);var o=uu("span",gu(this.config.selectors.caption));o.innerHTML=i,this.elements.captions.appendChild(o),_u.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",t);else this.debug.warn("No captions element to render to")}},vh={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.5.10/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"S
1D"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/v2/video/{0}.json"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,sidedock:!1,controls:!1,referrerPolicy:null},youtube:{noCookie:!1,rel:0,showinfo:0,iv_load_policy:3,modestbranding:1}},yh="picture-in-picture",bh={html5:"html5",youtube:"youtube",vimeo:"vimeo"},wh="video",xh=function(){},Sh=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ys(this,t),this.enabled=window.console&&e,this.enabled&&this.log("Debugging enabled")}return ws(t,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):xh}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):xh}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):xh}}]),t}(),kh=function(){function t(e){var n=this;ys(this,t),this.player=e,this.prefix=t.prefix,this.property=t.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===e.config.fullscreen.fallback,Au.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),function(){n.onChange()}),Au.call(this.player,this.player.elements.container,"dblclick",function(t){Xc(n.player.elements.controls)&&n.player.elements.controls.contains(t.target)||n.toggle()}),Au.call(this,this.player.elements.container,"keydown",function(t){return n.trapFocus(t)}),this.update()}return ws(t,[{key:"onChange",value:function(){if(this.enabled){var t=this.player.elements.buttons.fullscreen;Xc(t)&&(t.pressed=this.active),_u.call(this.player,this.target,this.active?"enterfullscreen":"exitfullscreen",!0)}}},{key:"toggleFallback",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t?this.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=t?"hidden":"",vu(this.target,this.player.config.classNames.fullscreen.fallback,t),eu.isIos){var e=document.head.querySelector('meta[name="viewport"]'),n="viewport-fit=cover";e||(e=document.createElement("meta")).setAttribute("name","viewport");var i=Uc(e.content)&&e.content.includes(n);t?(this.cleanupViewport=!i,i||(e.content+=",".concat(n))):this.cleanupViewport&&(e.content=e.content.split(",").filter(function(t){return t.trim()!==n}).join(","))}this.onChange()}},{key:"trapFocus",value:function(t){if(!eu.isIos&&this.active&&"Tab"===t.key&&9===t.keyCode){var e=document.activeElement,n=wu.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),i=Es(n,1)[
10],o=n[n.length-1];e!==o||t.shiftKey?e===i&&t.shiftKey&&(o.focus(),t.preventDefault()):(i.focus(),t.preventDefault())}}},{key:"update",value:function(){var e;this.enabled?(e=this.forceFallback?"Fallback (forced)":t.native?"Native":"Fallback",this.player.debug.log("".concat(e," fullscreen enabled"))):this.player.debug.log("Fullscreen not supported and fallback disabled"),vu(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.enabled)}},{key:"enter",value:function(){this.enabled&&(eu.isIos&&this.player.config.fullscreen.iosNative?this.target.webkitEnterFullscreen():!t.native||this.forceFallback?this.toggleFallback(!0):this.prefix?Zc(this.prefix)||this.target["".concat(this.prefix,"Request").concat(this.property)]():this.target.requestFullscreen({navigationUI:"hide"}))}},{key:"exit",value:function(){if(this.enabled)if(eu.isIos&&this.player.config.fullscreen.iosNative)this.target.webkitExitFullscreen(),this.player.play();else if(!t.native||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!Zc(this.prefix)){var e="moz"===this.prefix?"Cancel":"Exit";document["".concat(this.prefix).concat(e).concat(this.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)}},{key:"toggle",value:function(){this.active?this.exit():this.enter()}},{key:"usingNative",get:function(){return t.native&&!this.forceFallback}},{key:"enabled",get:function(){return(t.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function(){return!!this.enabled&&(!t.native||this.forceFallback?yu(this.target,this.player.config.classNames.fullscreen.fallback):(this.prefix?document["".concat(this.prefix).concat(this.property,"Element")]:document.fullscreenElement)===this.target)}},{key:"target",get:function(){return eu.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.container}}],[{key:"native",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(Bc(document.exitFullscreen))return"";var t="";return["webkit","moz","ms"].some(function(e){return!(!Bc(document["".concat(e,"ExitFullscreen")])&&!Bc(document["".concat(e,"CancelFullScreen")])||(t=e,0))}),t}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),t}(),Eh=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1};function Th(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise(function(n,i){var o=new Image,r=function(){delete o.onload,delete o.onerror,(o.naturalWidth>=e?n:i)(o)};Object.assign(o,{onload:r,onerror:r,src:t})})}Lt({target:"Math",stat:!0},{sign:Eh});var Ch={addStyleHook:function(){vu(this.elements.container,this.config.selectors.container.replace(".",""),!0),vu(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build:function(){var t=this;if(this.listeners.media(),!this.supported.ui)return this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type)),void Ch.toggleNativeControls.call(this,!0);Xc(this.elements.controls)||(fh.inject.call(this),this.listeners.controls()),Ch.toggleNativeControls.call(this),this.isHTML5&&mh.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,fh.updateVolume.call(this),fh.timeUpdate.call(this),Ch.checkPlaying.call(this),vu(this.elements.container,this.config.classNames.pip.supported,Tu.pip&&this.isHTML5&&this.isVideo),vu(this.elements.container,this.config.classNames.airplay.supported,Tu.airplay&&this.isHTML5),vu(this.elements.container,this.config.classNames.isIos,eu.isIos),vu(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(function(){_u.call(t,t.media,"ready")},0),Ch.setTitle.call(this),this.poster&&Ch.setPoster.call(this,this.poster,!1).catch(function(){}),this.config.duration&&fh.durationUpdate.call(this)},setTitle:function(){var t=ih("play",this.config);if(Uc(this.config.title)&&!Zc(this.config.title)&&(t+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEac
1h(function(e){e.setAttribute("aria-label",t)}),this.isEmbed){var e=xu.call(this,"iframe");if(!Xc(e))return;var n=Zc(this.config.title)?"video":this.config.title,i=ih("frameTitle",this.config);e.setAttribute("title",i.replace("{title}",n))}},togglePoster:function(t){vu(this.elements.container,this.config.classNames.posterEnabled,t)},setPoster:function(t){var e=this;return(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("poster",t),this.isHTML5?Promise.resolve(t):function(){var t=this;return new Promise(function(e){return t.ready?setTimeout(e,0):Au.call(t,t.elements.container,"ready",e)}).then(function(){})}.call(this).then(function(){return Th(t)}).catch(function(n){throw t===e.poster&&Ch.togglePoster.call(e,!1),n}).then(function(){if(t!==e.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(function(){return Object.assign(e.elements.poster.style,{backgroundImage:"url('".concat(t,"')"),backgroundSize:""}),Ch.togglePoster.call(e,!0),t}))},checkPlaying:function(t){var e=this;vu(this.elements.container,this.config.classNames.playing,this.playing),vu(this.elements.container,this.config.classNames.paused,this.paused),vu(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(function(t){Object.assign(t,{pressed:e.playing}),t.setAttribute("aria-label",ih(e.playing?"pause":"play",e.config))}),Yc(t)&&"timeupdate"===t.type||Ch.toggleControls.call(this)},checkLoading:function(t){var e=this;this.loading=["stalled","waiting"].includes(t.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(function(){vu(e.elements.container,e.config.classNames.loading,e.loading),Ch.toggleControls.call(e)},this.loading?250:0)},toggleControls:function(t){var e=this.elements.controls;if(e&&this.config.hideControls){var n=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(t||this.loading||this.paused||e.pressed||e.hover||n))}}},Ph=function(){function t(e){ys(this,t),this.player=e,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}return ws(t,[{key:"handleKey",value:function(t){var e=this.player,n=e.elements,i=t.keyCode?t.keyCode:t.which,o="keydown"===t.type,r=o&&i===this.lastKey;if(!(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)&&qc(i))if(o){var s=document.activeElement;if(Xc(s)){var a=e.config.selectors.editable;if(s!==n.inputs.seek&&bu(s,a))return;if(32===t.which&&bu(s,'button, [role^="menuitem"]'))return}switch([32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79].includes(i)&&(t.preventDefault(),t.stopPropagation()),i){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:r||(e.currentTime=e.duration/10*(i-48));break;case 32:case 75:r||e.togglePlay();break;case 38:e.increaseVolume(.1);break;case 40:e.decreaseVolume(.1);break;case 77:r||(e.muted=!e.muted);break;case 39:e.forward();break;case 37:e.rewind();break;case 70:e.fullscreen.toggle();break;case 67:r||e.toggleCaptions();break;case 76:e.loop=!e.loop}27===i&&!e.fullscreen.usingNative&&e.fullscreen.active&&e.fullscreen.toggle(),this.lastKey=i}else this.lastKey=null}},{key:"toggleMenu",value:function(t){fh.toggleMenu.call(this.player,t)}},{key:"firstTouch",value:function(){var t=this.player,e=t.elements;t.touch=!0,vu(e.container,t.config.classNames.isTouch,!0)}},{key:"setTabFocus",value:function(t){var e=this.player,n=e.elements;if(clearTimeout(this.focusTimer),"keydown"!==t.type||9===t.which){"keydown"===t.type&&(this.lastKeyDown=t.timeStamp);var i,o=t.timeStamp-this.lastKeyDown<=20;("focus"!==t.type||o)&&(i=e.config.classNames.tabFocus,vu(wu.call(e,".".concat(i)),i,!1),this.focusTimer=setTimeout(function(){var t=document.activeElement;n.container.contains(t)&&vu(document.activeElement,e.config.classNames.tabFocus,!0)},10))}}},{key:"global",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=this.player;e.config.keyboard.global&&Pu.call(e,window,"keydown keyup",this.handleKey,t,!1),Pu.call(e,document.body,"click",this.toggleMenu,t),Lu.call(e,document.body,"touchstart",this.firstTouch),Pu.call(e,document.body,"keydown focus blur",this.setTabFocus,t,!1,!0)}},{key:"container",value:function(){var t=this.player,e=t.config,n=t.elements,i=t.timers;!e.keyboard.global&&e.keyboard.focused&&Au.call(t,n.container,"keydown keyup",this.handleKey,!1),Au.call(t,n.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",function(e){var o=n.controls;o&&"enterfullscreen"===e.type&&(o.pressed=!1,o.hover=!1);var r=0;["touchstart","touchmove","mousemove"].includes(e.type)&&(Ch.toggleControls.call(t,!0),r=t.touch?3e3:2e3),clearTimeout(i.controls),i.controls=setTimeout(function(){return Ch.toggleControls.call(t,!1)},r)});var o=function(e){if(!e)return Du.call(t);var i=n.container.getBoundingClientRect(),o=i.width,r=i.height;return Du.call(t,"".concat(o,":").concat(r))},r=function(){clearTimeout(i.resized),i.resized=setTimeout(o,50)};Au.call(t,n.container,"enterfullscreen exitfullscreen",function(e){var i=t.fullscreen,s=i.target,a=i.usingNative;if(s===n.container&&(t.isEmbed||!Zc(t.config.ratio))){var l="enterfullscreen"===e.type,c=o(l);c.padding,!function(e,n,i){if(t.isVimeo){var o=t.elements.wrapper.firstChild,r=Es(e,2)[1],s=Es(ju.call(t),2),a=s[0],l=s[1];o.style.maxWidth=i?"".concat(r/l*a,"px"):null,o.style.margin=i?"0 auto":null}}(c.ratio,0,l),a||(l?Au.call(t,window,"resize",r):Iu.call(t,window,"resize",r))}})}},{key:"media",value:function(){var t=this,e=this.player,n=e.elements;if(Au.call(e,e.media,"timeupdate seeking seeked",function(t){return fh.timeUpdate.call(e,t)}),Au.call(e,e.media,"durationchange loadeddata loadedmetadata",function(t){return fh.durationUpdate.call(e,t)}),Au.call(e,e.media,"ended",function(){e.isHTML5&&e.isVideo&&e.config.resetOnEnd&&(e.restart(),e.pause())}),Au.call(e,e.media,"progress playing seeking seeked",function(t){return fh.updateProgress.call(e,t)}),Au.call(e,e.media,"volumechange",function(t){return fh.updateVolume.call(e,t)}),Au.call(e,e.media,"playing play pause ended emptied timeupdate",function(t){return Ch.checkPlaying.call(e,t)}),Au.call(e,e.media,"waiting canplay seeked playing",function(t){return Ch.checkLoading.call(e,t)}),e.supported.ui&&e.config.clickToPlay&&!e.isAudio){var i=xu.call(e,".".concat(e.config.classNames.video));if(!Xc(i))return;Au.call(e,n.container,"click",function(o){([n.container,i].includes(o.target)||i.contains(o.target))&&(e.touch&&e.config.hideControls||(e.ended?(t.proxy(o,e.restart,"restart"),t.proxy(o,e.play,"play")):t.proxy(o,e.togglePlay,"play")))})}e.supported.ui&&e.config.disableContextMenu&&Au.call(e,n.wrapper,"contextmenu",function(t){t.preventDefault()},!1),Au.call(e,e.media,"volumechange",function(){e.storage.set({volume:e.volume,muted:e.muted})}),Au.call(e,e.media,"ratechange",function(){fh.updateSetting.call(e,"speed"),e.storage.set({speed:e.speed})}),Au.call(e,e.media,"qualitychange",function(t){fh.updateSetting.call(e,"quality",null,t.detail.quality)}),Au.call(e,e.media,"ready qualitychange",function(){fh.setDownloadUrl.call(e)});var o=e.config.events.concat(["keyup","keydown"]).join(" ");Au.call(e,e.media,o,function(t){var i=t.detail,o=void 0===i?{}:i;"error"===t.type&&(o=e.media.error),_u.call(e,n.container,t.type,!0,o)})}},{key:"proxy",value:function(t,e,n){var i=this.player,o=i.config.listeners[n],r=!0;Bc(o)&&(r=o.call(i,t)),!1!==r&&Bc(e)&&e.call(i,t)}},{key:"bind",value:function(t,e,n,i){var o=this,r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=this.player,a=s.config.listeners[i],l=Bc(a);Au.call(s,t,e,function(t){return o.proxy(t,n,i)},r&&!l)}},{key:"controls",value:function(){var t=this,e=this.player,n=e.elements,i=eu.isIE?"change":"input";
1if(n.buttons.play&&Array.from(n.buttons.play).forEach(function(n){t.bind(n,"click",e.togglePlay,"play")}),this.bind(n.buttons.restart,"click",e.restart,"restart"),this.bind(n.buttons.rewind,"click",e.rewind,"rewind"),this.bind(n.buttons.fastForward,"click",e.forward,"fastForward"),this.bind(n.buttons.mute,"click",function(){e.muted=!e.muted},"mute"),this.bind(n.buttons.captions,"click",function(){return e.toggleCaptions()}),this.bind(n.buttons.download,"click",function(){_u.call(e,e.media,"download")},"download"),this.bind(n.buttons.fullscreen,"click",function(){e.fullscreen.toggle()},"fullscreen"),this.bind(n.buttons.pip,"click",function(){e.pip="toggle"},"pip"),this.bind(n.buttons.airplay,"click",e.airplay,"airplay"),this.bind(n.buttons.settings,"click",function(t){t.stopPropagation(),t.preventDefault(),fh.toggleMenu.call(e,t)},null,!1),this.bind(n.buttons.settings,"keyup",function(t){var n=t.which;[13,32].includes(n)&&(13!==n?(t.preventDefault(),t.stopPropagation(),fh.toggleMenu.call(e,t)):fh.focusFirstMenuItem.call(e,null,!0))},null,!1),this.bind(n.settings.menu,"keydown",function(t){27===t.which&&fh.toggleMenu.call(e,t)}),this.bind(n.inputs.seek,"mousedown mousemove",function(t){var e=n.progress.getBoundingClientRect(),i=100/e.width*(t.pageX-e.left);t.currentTarget.setAttribute("seek-value",i)}),this.bind(n.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",function(t){var n=t.currentTarget,i=t.keyCode?t.keyCode:t.which;if(!Qc(t)||39===i||37===i){e.lastSeekTime=Date.now();var o=n.hasAttribute("play-on-seeked"),r=["mouseup","touchend","keyup"].includes(t.type);o&&r?(n.removeAttribute("play-on-seeked"),e.play()):!r&&e.playing&&(n.setAttribute("play-on-seeked",""),e.pause())}}),eu.isIos){var o=wu.call(e,'input[type="range"]');Array.from(o).forEach(function(e){return t.bind(e,i,function(t){return tu(t.target)})})}this.bind(n.inputs.seek,i,function(t){var n=t.currentTarget,i=n.getAttribute("seek-value");Zc(i)&&(i=n.value),n.removeAttribute("seek-value"),e.currentTime=i/n.max*e.duration},"seek"),this.bind(n.progress,"mouseenter mouseleave mousemove",function(t){return fh.updateSeekTooltip.call(e,t)}),this.bind(n.progress,"mousemove touchmove",function(t){var n=e.previewThumbnails;n&&n.loaded&&n.startMove(t)}),this.bind(n.progress,"mouseleave touchend click",function(){var t=e.previewThumbnails;t&&t.loaded&&t.endMove(!1,!0)}),this.bind(n.progress,"mousedown touchstart",function(t){var n=e.previewThumbnails;n&&n.loaded&&n.startScrubbing(t)}),this.bind(n.progress,"mouseup touchend",function(t){var n=e.previewThumbnails;n&&n.loaded&&n.endScrubbing(t)}),eu.isWebkit&&Array.from(wu.call(e,'input[type="range"]')).forEach(function(n){t.bind(n,"input",function(t){return fh.updateRangeFill.call(e,t.target)})}),e.config.toggleInvert&&!Xc(n.display.duration)&&this.bind(n.display.currentTime,"click",function(){0!==e.currentTime&&(e.config.invertTime=!e.config.invertTime,fh.timeUpdate.call(e))}),this.bind(n.inputs.volume,i,function(t){e.volume=t.target.value},"volume"),this.bind(n.controls,"mouseenter mouseleave",function(t){n.controls.hover=!e.touch&&"mouseenter"===t.type}),this.bind(n.controls,"mousedown mouseup touchstart touchend touchcancel",function(t){n.controls.pressed=["mousedown","touchstart"].includes(t.type)}),this.bind(n.controls,"focusin",function(){var i=e.config,o=e.timers;vu(n.controls,i.classNames.noTransition,!0),Ch.toggleControls.call(e,!0),setTimeout(function(){vu(n.controls,i.classNames.noTransition,!1)},0);var r=t.touch?3e3:4e3;clearTimeout(o.controls),o.controls=setTimeout(function(){return Ch.toggleControls.call(e,!1)},r)}),this.bind(n.inputs.volume,"wheel",function(t){var n=t.webkitDirectionInvertedFromDevice,i=Es([t.deltaX,-t.deltaY].map(function(t){return n?-t:t}),2),o=i[0],r=i[1],s=Math.sign(Math.abs(o)>Math.abs(r)?o:r);e.increaseVolume(s/50);var a=e.media.volume;(1===s&&a<1||-1===s&&a>0)&&t.preventDefault()},"volume",!1)}}]),t}(),Ah=Vn("splice"),Ih=Ke("splice",{ACCESSORS:!0,0:0,1:2}),Lh=Math.max,_h=Math.min;Lt({target:"Array",proto:!0,forced:!Ah||!Ih},{splice:function(t,e){var n,i,o,r,s,a,l=jt(this),c=lt(l.length),u=ht(t,c),h=arguments.length;if(0===h?n=i=0:1===h?(n=0,i=c-u):(n=h-2,i=_h(Lh(st(e),0),c-u)),c+n-i>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=se(l,i),r=0;r<i;r++)(s=u+r)in l&&Fn(o,r,l[s]);if(o.length=i,n<i){for(r=u;r<c-i;r++)a=r+n,(s=r+i)in l?l[a]=l[s]:delete l[a];for(r=c;r>c-i+n;r--)delete l[r-1]}else if(n>i)for(r=c-i;r>u;r--)a=r+n-1,(s=r+i-1)in l?l[a]=l[s]:delete l[a];for(r=0;r<n;r++)l[r+u]=arguments[r+2];return l.length=c-i+n,o}});var Mh=e(function(t,e){t.exports=function(){var t=function(){},e={},n={},i={};function o(t,e){if(t){var o=i[t];if(n[t]=e,o)for(;o.length;)o[0](t,e),o.splice(0,1)}}function r(e,n){e.call&&(e={success:e}),n.length?(e.error||t)(n):(e.success||t)(e)}function s(e,n,i,o){var r,a,l=document,c=i.async,u=(i.numRetries||0)+1,h=i.before||t,d=e.replace(/[\?|#].*$/,""),f=e.replace(/^(css|img)!/,"");o=o||0,/(^css!|\.css$)/.test(d)?((a=l.createElement("link")).rel="stylesheet",a.href=f,(r="hideFocus"in a)&&a.relList&&(r=0,a.rel="preload",a.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(d)?(a=l.createElement("img")).src=f:((a=l.createElement("script")).src=e,a.async=void 0===c||c),a.onload=a.onerror=a.onbeforeload=function(t){var l=t.type[0];if(r)try{a.sheet.cssText.length||(l="e")}catch(t){18!=t.code&&(l="e")}if("e"==l){if((o+=1)<u)return s(e,n,i,o)}else if("preload"==a.rel&&"style"==a.as)return a.rel="stylesheet";n(e,l,t.defaultPrevented)},!1!==h(e,a)&&l.head.appendChild(a)}function a(t,n,i){var a,l;if(n&&n.trim&&(a=n),l=(a?i:n)||{},a){if(a in e)throw"LoadJS";e[a]=!0}function c(e,n){!function(t,e,n){var i,o,r=(t=t.push?t:[t]).length,a=r,l=[];for(i=function(t,n,i){if("e"==n&&l.push(t),"b"==n){if(!i)return;l.push(t)}--r||e(l)},o=0;o<a;
1o++)s(t[o],i,n)}(t,function(t){r(l,t),e&&r({success:e,error:n},t),o(a,t)},l)}if(l.returnPromise)return new Promise(c);c()}return a.ready=function(t,e){return function(t,e){t=t.push?t:[t];var o,r,s,a=[],l=t.length,c=l;for(o=function(t,n){n.length&&a.push(t),--c||e(a)};l--;)r=t[l],(s=n[r])?o(r,s):(i[r]=i[r]||[]).push(o)}(t,function(t){r(e,t)}),a},a.done=function(t){o(t,[])},a.reset=function(){e={},n={},i={}},a.isDefined=function(t){return t in e},a}()});function Oh(t){return new Promise(function(e,n){Mh(t,{success:e,error:n})})}function jh(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,_u.call(this,this.media,t?"play":"pause"))}var Dh={setup:function(){var t=this;vu(t.elements.wrapper,t.config.classNames.embed,!0),t.options.speed=t.config.speed.options,Du.call(t),Nc(window.Vimeo)?Dh.ready.call(t):Oh(t.config.urls.vimeo.sdk).then(function(){Dh.ready.call(t)}).catch(function(e){t.debug.warn("Vimeo SDK (player.js) failed to load",e)})},ready:function(){var t=this,e=this,n=e.config.vimeo,i=gh(au({},{loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},n)),o=e.media.getAttribute("src");Zc(o)&&(o=e.media.getAttribute(e.config.attributes.embed.id));var r,s=Zc(r=o)?null:qc(Number(r))?r:r.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:r,a=uu("iframe"),l=Zu(e.config.urls.vimeo.iframe,s,i);a.setAttribute("src",l),a.setAttribute("allowfullscreen",""),a.setAttribute("allowtransparency",""),a.setAttribute("allow","autoplay"),Zc(n.referrerPolicy)||a.setAttribute("referrerPolicy",n.referrerPolicy);var c=uu("div",{poster:e.poster,class:e.config.classNames.embedContainer});c.appendChild(a),e.media=pu(c,e.media),rh(Zu(e.config.urls.vimeo.api,s),"json").then(function(t){if(!Zc(t)){var n=new URL(t[0].thumbnail_large);n.pathname="".concat(n.pathname.split("_")[0],".jpg"),Ch.setPoster.call(e,n.href).catch(function(){})}}),e.embed=new window.Vimeo.Player(a,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=function(){return jh.call(e,!0),e.embed.play()},e.media.pause=function(){return jh.call(e,!1),e.embed.pause()},e.media.stop=function(){e.pause(),e.currentTime=0};var u=e.media.currentTime;Object.defineProperty(e.media,"currentTime",{get:function(){return u},set:function(t){var n=e.embed,i=e.media,o=e.paused,r=e.volume,s=o&&!n.hasPlayed;i.seeking=!0,_u.call(e,i,"seeking"),Promise.resolve(s&&n.setVolume(0)).then(function(){return n.setCurrentTime(t)}).then(function(){return s&&n.pause()}).then(function(){return s&&n.setVolume(r)}).catch(function(){})}});var h=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get:function(){return h},set:function(t){e.embed.setPlaybackRate(t).then(function(){h=t,_u.call(e,e.media,"ratechange")})}});var d=e.config.volume;Object.defineProperty(e.media,"volume",{get:function(){return d},set:function(t){e.embed.setVolume(t).then(function(){d=t,_u.call(e,e.media,"volumechange")})}});var f=e.config.muted;Object.defineProperty(e.media,"muted",{get:function(){return f},set:function(t){var n=!!Hc(t)&&t;e.embed.setVolume(n?0:e.config.volume).then(function(){f=n,_u.call(e,e.media,"volumechange")})}});var p,g=e.config.loop;Object.defineProperty(e.media,"loop",{get:function(){return g},set:function(t){var n=Hc(t)?t:e.config.loop.active;e.embed.setLoop(n).then(function(){g=n})}}),e.embed.getVideoUrl().then(function(t){p=t,fh.setDownloadUrl.call(e)}).catch(function(e){t.debug.warn(e)}),Object.defineProperty(e.media,"currentSrc",{get:function(){return p}}),Object.defineProperty(e.media,"ended",{get:function(){return e.currentTime===e.duration}}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then(function(n){var i=Es(n,2),o=i[0],r=i[1];e.embed.ratio=[o,r],Du.call(t)}),e.embed.setAutopause(e.config.autopause).then(function(t){e.config.autopause=t}),e.embed.getVideoTitle().then(function(n){e.config.title=n,Ch.setTitle.call(t)}),e.embed.getCurrentTime().then(function(t){u=t,_u.call(e,e.media,"timeupdate")}),e.embed.getDuration().then(function(t){e.media.duration=t,_u.call(e,e.media,"durationchange")}),e.embed.getTextTracks().then(function(t){e.media.textTracks=t,mh.setup.call(e)}),e.embed.on("cuechange",function(t){var n=t.cues,i=(void 0===n?[]:n).map(function(t){return function(t){var e=document.createDocumentFragment(),n=document.createElement("div");return e.appendChild(n),n.innerHTML=t,e.firstChild.innerText}(t.text)});mh.updateCues.call(e,i)}),e.embed.on("loaded",function(){e.embed.getPaused().then(function(t){jh.call(e,!t),t||_u.call(e,e.media,"playing")}),Xc(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1)}),e.embed.on("bufferstart",function(){_u.call(e,e.media,"waiting")}),e.embed.on("bufferend",function(){_u.call(e,e.media,"playing")}),e.embed.on("play",function(){jh.call(e,!0),_u.call(e,e.media,"playing")}),e.embed.on("pause",function(){jh.call(e,!1)}),e.embed.on("timeupdate",function(t){e.media.seeking=!1,u=t.seconds,_u.call(e,e.media,"timeupdate")}),e.embed.on("progress",function(t){e.media.buffered=t.percent,_u.call(e,e.media,"progress"),1===parseInt(t.percent,10)&&_u.call(e,e.media,"canplaythrough"),e.embed.getDuration().then(function(t){t!==e.media.duration&&(e.media.duration=t,_u.call(e,e.media,"durationchange"))})}),e.embed.on("seeked",function(){e.media.seeking=!1,_u.call(e,e.media,"seeked")}),e.embed.on("ended",function(){e.media.paused=!0,_u.call(e,e.media,"ended")}),e.embed.on("error",function(t){e.media.error=t,_u.call(e,e.media,"error")}),setTimeout(function(){return Ch.build.call(e)},0)}};function zh(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,_u.call(this,this.media,t?"play":"pause"))}function $h(t){return t.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var Rh={setup:function(){var t=this;if(vu(this.elements.wrapper,this.config.classNames.embed,!0),Nc(window.YT)&&Bc(window.YT.Player))Rh.ready.call(this);else{var e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){Bc(e)&&e(),Rh.ready.call(t)},Oh(this.config.urls.youtube.sdk).catch(function(e){t.debug.warn("YouTube API failed to load",e)})}},getTitle:function(t){var e=this;rh(Zu(this.config.urls.youtube.api,t)).then(function(t){if(Nc(t)){var n=t.title,i=t.height,o=t.width;e.config.title=n,Ch.setTitle.call(e),e.embed.ratio=[o,i]}Du.call(e)}).catch(function(){Du.call(e)})},ready:function(){var t=this,e=t.media&&t.media.getAttribute("id");if(Zc(e)||!e.startsWith("youtube-")){var n=t.media.getAttribute("src");Zc(n)&&(n=t.media.getAttribute(this.config.attributes.embed.id));var i,o,r=Zc(i=n)?null:i.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:i,s=(o=t.provider,"".concat(o,"-").concat(Math.floor(1e4*Math.random()))),a=uu("div",{id:s,poster:t.poster});t.media=pu(a,t.media);var l=function(t){return"https://i.ytimg.com/vi/".concat(r,"/").concat(t,"default.jpg")};Th(l("maxres"),121).catch(function(){return Th(l("sd"),121)}).catch(function(){return Th(l("hq"))}).then(function(e){return Ch.setPoster.call(t,e.src)}).then(function(e){e.includes("maxres")||(t.elements.poster.style.backgroundSize="cover")}).catch(function(){});var c=t.config.youtube;t.embed=new window.YT.Player(s,{videoId:r,host:$h(c),playerVars:au({}
1,{autoplay:t.config.autoplay?1:0,hl:t.config.hl,controls:t.supported.ui?0:1,disablekb:1,playsinline:t.config.fullscreen.iosNative?0:1,cc_load_policy:t.captions.active?1:0,cc_lang_pref:t.config.captions.language,widget_referrer:window?window.location.href:null},c),events:{onError:function(e){if(!t.media.error){var n=e.data,i={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[n]||"An unknown error occured";t.media.error={code:n,message:i},_u.call(t,t.media,"error")}},onPlaybackRateChange:function(e){var n=e.target;t.media.playbackRate=n.getPlaybackRate(),_u.call(t,t.media,"ratechange")},onReady:function(e){if(!Bc(t.media.play)){var n=e.target;Rh.getTitle.call(t,r),t.media.play=function(){zh.call(t,!0),n.playVideo()},t.media.pause=function(){zh.call(t,!1),n.pauseVideo()},t.media.stop=function(){n.stopVideo()},t.media.duration=n.getDuration(),t.media.paused=!0,t.media.currentTime=0,Object.defineProperty(t.media,"currentTime",{get:function(){return Number(n.getCurrentTime())},set:function(e){t.paused&&!t.embed.hasPlayed&&t.embed.mute(),t.media.seeking=!0,_u.call(t,t.media,"seeking"),n.seekTo(e)}}),Object.defineProperty(t.media,"playbackRate",{get:function(){return n.getPlaybackRate()},set:function(t){n.setPlaybackRate(t)}});var i=t.config.volume;Object.defineProperty(t.media,"volume",{get:function(){return i},set:function(e){i=e,n.setVolume(100*i),_u.call(t,t.media,"volumechange")}});var o=t.config.muted;Object.defineProperty(t.media,"muted",{get:function(){return o},set:function(e){var i=Hc(e)?e:o;o=i,n[i?"mute":"unMute"](),_u.call(t,t.media,"volumechange")}}),Object.defineProperty(t.media,"currentSrc",{get:function(){return n.getVideoUrl()}}),Object.defineProperty(t.media,"ended",{get:function(){return t.currentTime===t.duration}});var s=n.getAvailablePlaybackRates();t.options.speed=s.filter(function(e){return t.config.speed.options.includes(e)}),t.supported.ui&&t.media.setAttribute("tabindex",-1),_u.call(t,t.media,"timeupdate"),_u.call(t,t.media,"durationchange"),clearInterval(t.timers.buffering),t.timers.buffering=setInterval(function(){t.media.buffered=n.getVideoLoadedFraction(),(null===t.media.lastBuffered||t.media.lastBuffered<t.media.buffered)&&_u.call(t,t.media,"progress"),t.media.lastBuffered=t.media.buffered,1===t.media.buffered&&(clearInterval(t.timers.buffering),_u.call(t,t.media,"canplaythrough"))},200),setTimeout(function(){return Ch.build.call(t)},50)}},onStateChange:function(e){var n=e.target;switch(clearInterval(t.timers.playing),t.media.seeking&&[1,2].includes(e.data)&&(t.media.seeking=!1,_u.call(t,t.media,"seeked")),e.data){case-1:_u.call(t,t.media,"timeupdate"),t.media.buffered=n.getVideoLoadedFraction(),_u.call(t,t.media,"progress");break;case 0:zh.call(t,!1),t.media.loop?(n.stopVideo(),n.playVideo()):_u.call(t,t.media,"ended");break;case 1:t.config.autoplay||!t.media.paused||t.embed.hasPlayed?(zh.call(t,!0),_u.call(t,t.media,"playing"),t.timers.playing=setInterval(function(){_u.call(t,t.media,"timeupdate")},50),t.media.duration!==n.getDuration()&&(t.media.duration=n.getDuration(),_u.call(t,t.media,"durationchange"))):t.media.pause();break;case 2:t.muted||t.embed.unMute(),zh.call(t,!1);break;case 3:_u.call(t,t.media,"waiting")}_u.call(t,t.elements.container,"statechange",!1,{code:e.data})}}})}}},Fh={setup:function(){this.media?(vu(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),vu(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&vu(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=uu("div",{class:this.config.classNames.video}),lu(this.media,this.elements.wrapper),this.isEmbed&&(this.elements.poster=uu("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster))),this.isHTML5?zu.setup.call(this):this.isYouTube?Rh.setup.call(this):this.isVimeo&&Dh.setup.call(this)):this.debug.warn("No media element found!")}},Nh=function(){function t(e){var n=this;ys(this,t),this.player=e,this.config=e.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise(function(t,e){n.on("loaded",t),n.on("error",e)}),this.load()}return ws(t,[{key:"load",value:function(){var t=this;this.enabled&&(Nc(window.google)&&Nc(window.google.ima)?this.ready():Oh(this.player.config.urls.googleIMA.sdk).then(function(){t.ready()}).catch(function(){t.trigger("error",new Error("Google IMA SDK failed to load"))}))}},{key:"ready",value:function(){var t,e=this;this.enabled||((t=this).manager&&t.manager.destroy(),t.elements.displayContainer&&t.elements.displayContainer.destroy(),t.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(function(){e.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}},{key:"setupIMA",value:function(){this.elements.container=uu("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.requestAds()}},{key:"requestAds",value:function(){var t=this,e=this.player.elements.container;try{this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(e){return t.onAdsManagerLoaded(e)},!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,function(e){return t.onAdError(e)},!1);var n=new google.ima.AdsRequest;n.adTagUrl=this.tagUrl,n.linearAdSlotWidth=e.offsetWidth,n.linearAdSlotHeight=e.offsetHeight,n.nonLinearAdSlotWidth=e.offsetWidth,n.nonLinearAdSlotHeight=e.offsetHeight,n.forceNonLinearFullSlot=!1,n.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(n)}catch(t){this.onAdError(t)}}},{key:"pollCountdown",value:function(){var t=this;if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]))return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval(function(){var e=dh(Math.max(t.manager.getRemainingTime(),0)),n="".concat(ih("advertisement",t.player.config)," - ").concat(e);t.elements.container.setAttribute("data-badge-text",n)},100)}},{key:"onAdsManagerLoaded",value:function(t){var e=this;if(this.enabled){var n=new google.ima.AdsRenderingSettings;n.restoreCustomPlaybackStateOnAdBreakComplete=!0,n.enablePreloading=!0,this.manager=t.getAdsManager(this.player,n),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,function(t){return e.onAdError(t)}),Object.keys(google.ima.AdEvent.Type).forEach(function(t){e.manager.addEventListener(google.ima.AdEvent.Type[t],function(t){return e.onAdEvent(t)})}),this.trigger("loaded")}}},{key:"addCuePoints",value:function(){var t=this;
1Zc(this.cuePoints)||this.cuePoints.forEach(function(e){if(0!==e&&-1!==e&&e<t.player.duration){var n=t.player.elements.progress;if(Xc(n)){var i=100/t.player.duration*e,o=uu("span",{class:t.player.config.classNames.cues});o.style.left="".concat(i.toString(),"%"),n.appendChild(o)}}})}},{key:"onAdEvent",value:function(t){var e=this,n=this.player.elements.container,i=t.getAd(),o=t.getAdData();switch(function(t){_u.call(e.player,e.player.media,"ads".concat(t.replace(/_/g,"").toLowerCase()))}(t.type),t.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),i.isLinear()||(i.width=n.offsetWidth,i.height=n.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.loadAds();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:o.adError&&this.player.debug.warn("Non-fatal ad error: ".concat(o.adError.getMessage()))}}},{key:"onAdError",value:function(t){this.cancel(),this.player.debug.warn("Ads error",t)}},{key:"listeners",value:function(){var t,e=this,n=this.player.elements.container;this.player.on("canplay",function(){e.addCuePoints()}),this.player.on("ended",function(){e.loader.contentComplete()}),this.player.on("timeupdate",function(){t=e.player.currentTime}),this.player.on("seeked",function(){var n=e.player.currentTime;Zc(e.cuePoints)||e.cuePoints.forEach(function(i,o){t<i&&i<n&&(e.manager.discardAdBreak(),e.cuePoints.splice(o,1))})}),window.addEventListener("resize",function(){e.manager&&e.manager.resize(n.offsetWidth,n.offsetHeight,google.ima.ViewMode.NORMAL)})}},{key:"play",value:function(){var t=this,e=this.player.elements.container;this.managerPromise||this.resumeContent(),this.managerPromise.then(function(){t.manager.setVolume(t.player.volume),t.elements.displayContainer.initialize();try{t.initialized||(t.manager.init(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL),t.manager.start()),t.initialized=!0}catch(e){t.onAdError(e)}}).catch(function(){})}},{key:"resumeContent",value:function(){this.elements.container.style.zIndex="",this.playing=!1,this.player.media.play()}},{key:"pauseContent",value:function(){this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}},{key:"cancel",value:function(){this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}},{key:"loadAds",value:function(){var t=this;this.managerPromise.then(function(){t.manager&&t.manager.destroy(),t.managerPromise=new Promise(function(e){t.on("loaded",e),t.player.debug.log(t.manager)}),t.requestAds()}).catch(function(){})}},{key:"trigger",value:function(t){for(var e=this,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];var r=this.events[t];Wc(r)&&r.forEach(function(t){Bc(t)&&t.apply(e,i)})}},{key:"on",value:function(t,e){return Wc(this.events[t])||(this.events[t]=[]),this.events[t].push(e),this}},{key:"startSafetyTimer",value:function(t,e){var n=this;this.player.debug.log("Safety timer invoked from: ".concat(e)),this.safetyTimer=setTimeout(function(){n.cancel(),n.clearSafetyTimer("startSafetyTimer()")},t)}},{key:"clearSafetyTimer",value:function(t){Fc(this.safetyTimer)||(this.player.debug.log("Safety timer cleared from: ".concat(t)),clearTimeout(this.safetyTimer),this.safetyTimer=null)}},{key:"enabled",get:function(){var t=this.config;return this.player.isHTML5&&this.player.isVideo&&t.enabled&&(!Zc(t.publisherId)||Kc(t.tagUrl))}},{key:"tagUrl",get:function(){var t=this.config;if(Kc(t.tagUrl))return t.tagUrl;var e={AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:t.publisherId};return"".concat("https://go.aniview.com/api/adserver6/vast/","?").concat(gh(e))}}]),t}(),qh=ce.findIndex,Uh=!0,Hh=Ke("findIndex");"findIndex"in[]&&Array(1).findIndex(function(){Uh=!1}),Lt({target:"Array",proto:!0,forced:Uh||!Hh},{findIndex:function(t){return qh(this,t,arguments.length>1?arguments[1]:void 0)}}),fn("findIndex");var Bh=Math.min,Wh=[].lastIndexOf,Vh=!!Wh&&1/[1].lastIndexOf(1,-0)<0,Xh=Xe("lastIndexOf"),Yh=Ke("indexOf",{ACCESSORS:!0,1:0}),Qh=!Vh&&Xh&&Yh?Wh:function(t){if(Vh)return Wh.apply(this,arguments)||0;var e=g(this),n=lt(e.length),i=n-1;for(arguments.length>1&&(i=Bh(i,st(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in e&&e[i]===t)return i||0;return-1};Lt({target:"Array",proto:!0,forced:Qh!==[].lastIndexOf},{lastIndexOf:Qh});var Gh,Kh=function(t,e){var n={};return t>e.width/e.height?(n.width=e.width,n.height=1/t*e.width):(n.height=e.height,n.width=t*e.height),n},Zh=function(){function t(e){ys(this,t),this.player=e,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return ws(t,[{key:"load",value:function(){var t=this;this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(function(){t.enabled&&(t.render(),t.determineContainerAutoSizing(),t.loaded=!0)})}},{key:"getThumbnails",value:function(){var t=this;return new Promise(function(e){var n=t.player.config.previewThumbnails.src;if(Zc(n))throw new Error("Missing previewThumbnails.src config attribute");var i=(Uc(n)?[n]:n).map(function(e){return t.getThumbnail(e)});Promise.all(i).then(function(){t.thumbnails.sort(function(t,e){return t.height-e.height}),t.player.debug.log("Preview thumbnails",t.thumbnails),e()})})}},{key:"getThumbnail",value:function(t){var e=this;return new Promise(function(n){rh(t).then(function(i){var o,r,s={frames:(o=i,r=[],o.split(/\r\n\r\n|\n\n|\r\r/).forEac
1h(function(t){var e={};t.split(/\r\n|\n|\r/).forEach(function(t){if(qc(e.startTime)){if(!Zc(t.trim())&&Zc(e.text)){var n=t.trim().split("#xywh="),i=Es(n,1);if(e.text=i[0],n[1]){var o=Es(n[1].split(","),4);e.x=o[0],e.y=o[1],e.w=o[2],e.h=o[3]}}}else{var r=t.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);r&&(e.startTime=60*Number(r[1]||0)*60+60*Number(r[2])+Number(r[3])+Number("0.".concat(r[4])),e.endTime=60*Number(r[6]||0)*60+60*Number(r[7])+Number(r[8])+Number("0.".concat(r[9])))}}),e.text&&r.push(e)}),r),height:null,urlPrefix:""};s.frames[0].text.startsWith("/")||s.frames[0].text.startsWith("http://")||s.frames[0].text.startsWith("https://")||(s.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));var a=new Image;a.onload=function(){s.height=a.naturalHeight,s.width=a.naturalWidth,e.thumbnails.push(s),n()},a.src=s.urlPrefix+s.frames[0].text})})}},{key:"startMove",value:function(t){if(this.loaded&&Yc(t)&&["touchmove","mousemove"].includes(t.type)&&this.player.media.duration){if("touchmove"===t.type)this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var e=this.player.elements.progress.getBoundingClientRect(),n=100/e.width*(t.pageX-e.left);this.seekTime=this.player.media.duration*(n/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=t.pageX,this.elements.thumb.time.innerText=dh(this.seekTime)}this.showImageAtCurrentTime()}}},{key:"endMove",value:function(){this.toggleThumbContainer(!1,!0)}},{key:"startScrubbing",value:function(t){(Fc(t.button)||!1===t.button||0===t.button)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}},{key:"endScrubbing",value:function(){var t=this;this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):Lu.call(this.player,this.player.media,"timeupdate",function(){t.mouseDown||t.toggleScrubbingContainer(!1)})}},{key:"listeners",value:function(){var t=this;this.player.on("play",function(){t.toggleThumbContainer(!1,!0)}),this.player.on("seeked",function(){t.toggleThumbContainer(!1)}),this.player.on("timeupdate",function(){t.lastTime=t.player.media.currentTime})}},{key:"render",value:function(){this.elements.thumb.container=uu("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=uu("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);var t=uu("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=uu("span",{},"00:00"),t.appendChild(this.elements.thumb.time),this.elements.thumb.container.appendChild(t),Xc(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=uu("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}},{key:"destroy",value:function(){this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}},{key:"showImageAtCurrentTime",value:function(){var t=this;this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();var e=this.thumbnails[0].frames.findIndex(function(e){return t.seekTime>=e.startTime&&t.seekTime<=e.endTime}),n=e>=0,i=0;this.mouseDown||this.toggleThumbContainer(n),n&&(this.thumbnails.forEach(function(n,o){t.loadedImages.includes(n.frames[e].text)&&(i=o)}),e!==this.showingThumb&&(this.showingThumb=e,this.loadImage(i)))}},{key:"loadImage",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=this.showingThumb,i=this.thumbnails[e],o=i.urlPrefix,r=i.frames[n],s=i.frames[n].text,a=o+s;
1if(this.currentImageElement&&this.currentImageElement.dataset.filename===s)this.showImage(this.currentImageElement,r,e,n,s,!1),this.currentImageElement.dataset.index=n,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);var l=new Image;l.src=a,l.dataset.index=n,l.dataset.filename=s,this.showingThumbFilename=s,this.player.debug.log("Loading image: ".concat(a)),l.onload=function(){return t.showImage(l,r,e,n,s,!0)},this.loadingImage=l,this.removeOldImages(l)}}},{key:"showImage",value:function(t,e,n,i,o){var r=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];this.player.debug.log("Showing thumb: ".concat(o,". num: ").concat(i,". qual: ").concat(n,". newimg: ").concat(r)),this.setImageSizeAndOffset(t,e),r&&(this.currentImageContainer.appendChild(t),this.currentImageElement=t,this.loadedImages.includes(o)||this.loadedImages.push(o)),this.preloadNearby(i,!0).then(this.preloadNearby(i,!1)).then(this.getHigherQuality(n,t,e,o))}},{key:"removeOldImages",value:function(t){var e=this;Array.from(this.currentImageContainer.children).forEach(function(n){if("img"===n.tagName.toLowerCase()){var i=e.usingSprites?500:1e3;if(n.dataset.index!==t.dataset.index&&!n.dataset.deleting){n.dataset.deleting=!0;var o=e.currentImageContainer;setTimeout(function(){o.removeChild(n),e.player.debug.log("Removing thumb: ".concat(n.dataset.filename))},i)}}})}},{key:"preloadNearby",value:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise(function(i){setTimeout(function(){var o=e.thumbnails[0].frames[t].text;if(e.showingThumbFilename===o){var r;r=n?e.thumbnails[0].frames.slice(t):e.thumbnails[0].frames.slice(0,t).reverse();var s=!1;r.forEach(function(t){var n=t.text;if(n!==o&&!e.loadedImages.includes(n)){s=!0,e.player.debug.log("Preloading thumb filename: ".concat(n));var r=e.thumbnails[0].urlPrefix+n,a=new Image;a.src=r,a.onload=function(){e.player.debug.log("Preloaded thumb filename: ".concat(n)),e.loadedImages.includes(n)||e.loadedImages.push(n),i()}}}),s||i()}},300)})}},{key:"getHigherQuality",value:function(t,e,n,i){var o=this;if(t<this.thumbnails.length-1){var r=e.naturalHeight;this.usingSprites&&(r=n.h),r<this.thumbContainerHeight&&setTimeout(function(){o.showingThumbFilename===i&&(o.player.debug.log("Showing higher quality thumb for: ".concat(i)),o.loadImage(t+1))},300)}}},{key:"toggleThumbContainer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(n,t),!t&&e&&(this.showingThumb=null,this.showingThumbFilename=null)}},{key:"toggleScrubbingContainer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(e,t),t||(this.showingThumb=null,this.showingThumbFilename=null)}},{key:"determineContainerAutoSizing",value:function(){(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}},{key:"setThumbContainerSizeAndPos",value:function(){if(this.sizeSpecifiedInCSS){if(this.elements.thumb.imageContainer.clientHeight>20&&this.elements.thumb.imageContainer.clientWidth<20){var t=Math.floor(this.elements.thumb.imageContainer.clientHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.width="".concat(t,"px")}else if(this.elements.thumb.imageContainer.clientHeight<20&&this.elements.thumb.imageContainer.clientWidth>20){var e=Math.floor(this.elements.thumb.imageContainer.clientWidth/this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height="".concat(e,"px")}}else{var n=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height="".concat(this.thumbContainerHeight,"px"),this.elements.thumb.imageContainer.style.width="".concat(n,"px")}this.setThumbContainerPos()}},{key:"setThumbContainerPos",value:function(){var t=this.player.elements.progress.getBoundingClientRect(),e=this.player.elements.container.getBoundingClientRect(),n=this.elements.thumb.container,i=e.left-t.left+10,o=e.right-t.left-n.clientWidth-10,r=this.mousePosX-t.left-n.clientWidth/2;r<i&&(r=i),r>o&&(r=o),n.style.left="".concat(r,"px")}},{key:"setScrubbingContainerSize",value:function(){var t=Kh(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}),e=t.width,n=t.height;this.elements.scrubbing.container.style.width="".concat(e,"px"),this.elements.scrubbing.container.style.height="".concat(n,"px")}},{key:"setImageSizeAndOffset",value:function(t,e){if(this.usingSprites){var n=this.thumbContainerHeight/e.h;t.style.height="".concat(t.naturalHeight*n,"px"),t.style.width="".concat(t.naturalWi
vendor: 4,334 bytes, line 1
1dth*n,"px"),t.style.left="-".concat(e.x*n,"px"),t.style.top="-".concat(e.y*n,"px")}}},{key:"enabled",get:function(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}},{key:"currentImageContainer",get:function(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}},{key:"usingSprites",get:function(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}},{key:"thumbAspectRatio",get:function(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}},{key:"thumbContainerHeight",get:function(){return this.mouseDown?Kh(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}).height:this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}},{key:"currentImageElement",get:function(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement},set:function(t){this.mouseDown?this.currentScrubbingImageElement=t:this.currentThumbnailImageElement=t}}]),t}(),Jh={insertElements:function(t,e){var n=this;Uc(e)?hu(t,this.media,{src:e}):Wc(e)&&e.forEach(function(e){hu(t,n.media,e)})},change:function(t){var e=this;su(t,"sources.length")?(zu.cancelRequests.call(this),this.destroy.call(this,function(){e.options.quality=[],du(e.media),e.media=null,Xc(e.elements.container)&&e.elements.container.removeAttribute("class");var n=t.sources,i=t.type,o=Es(n,1)[0],r=o.provider,s=void 0===r?bh.html5:r,a=o.src,l="html5"===s?i:"div",c="html5"===s?{}:{src:a};Object.assign(e,{provider:s,type:i,supported:Tu.check(i,s,e.config.playsinline),media:uu(l,c)}),e.elements.container.appendChild(e.media),Hc(t.autoplay)&&(e.config.autoplay=t.autoplay),e.isHTML5&&(e.config.crossorigin&&e.media.setAttribute("crossorigin",""),e.config.autoplay&&e.media.setAttribute("autoplay",""),Zc(t.poster)||(e.poster=t.poster),e.config.loop.active&&e.media.setAttribute("loop",""),e.config.muted&&e.media.setAttribute("muted",""),e.config.playsinline&&e.media.setAttribute("playsinline","")),Ch.addStyleHook.call(e),e.isHTML5&&Jh.insertElements.call(e,"source",n),e.config.title=t.title,Fh.setup.call(e),e.isHTML5&&Object.keys(t).includes("tracks")&&Jh.insertElements.call(e,"track",t.tracks),(e.isHTML5||e.isEmbed&&!e.supported.ui)&&Ch.build.call(e),e.isHTML5&&e.media.load(),Zc(t.previewThumbnails)||(Object.assign(e.config.previewThumbnails,t.previewThumbnails),e.previewThumbnails&&e.previewThumbnails.loaded&&(e.previewThumbnails.destroy(),e.previewThumbnails=null),e.config.previewThumbnails.enabled&&(e.previewThumbnails=new Zh(e))),e.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}},td=function(){function t(e,n){var i=this;if(ys(this,t),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=Tu.touch,this.media=e,Uc(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||Vc(this.media)||Wc(this.media))&&(this.media=this.media[0]),this.config=au({},vh,t.defaults,n||{},function(){try{return JSON.parse(i.media.getAttribute("data-plyr-config"))}catch(t){return{}}}()),this.elements={container:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new Sh(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",Tu),!Fc(this.media)&&Xc(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(Tu.check().api){var o=this.media.cloneNode(!0);o.autoplay=!1,this.elements.original=o;var r=this.media.tagName.toLowerCase(),s=null,a=null;switch(r){case"div":if(s=this.media.querySelector("iframe"),Xc(s)){if(a=ph(s.getAttribute("src")),this.provider=function(t){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(t)?bh.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(t)?bh.vimeo:null}(a.toString()),this.elements.container=this.media,this.media=s,this.elements.container.className="",a.search.length){var l=["1","true"];
1l.includes(a.searchParams.get("autoplay"))&&(this.config.autoplay=!0),l.includes(a.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=l.includes(a.searchParams.get("playsinline")),this.config.youtube.hl=a.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(Zc(this.provider)||!Object.keys(bh).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=wh;break;case"video":case"audio":this.type=r,this.provider=bh.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=Tu.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new Ph(this),this.storage=new oh(this),this.media.plyr=this,Xc(this.elements.container)||(this.elements.container=uu("div",{tabindex:0}),lu(this.media,this.elements.container)),Ch.addStyleHook.call(this),Fh.setup.call(this),this.config.debug&&Au.call(this,this.elements.container,this.config.events.join(" "),function(t){i.debug.log("event: ".concat(t.type))}),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Ch.build.call(this),this.listeners.container(),this.listeners.global(),this.fullscreen=new kh(this),this.config.ads.enabled&&(this.ads=new Nh(this)),this.isHTML5&&this.config.autoplay&&setTimeout(function(){return i.play()},10),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Zh(this))):this.debug.error("Setup failed: no support")}else this.debug.error("Setup failed: no support");else this.debug.error("Setup failed: disabled by config");else this.debug.error("Setup failed: no suitable element passed")}return ws(t,[{key:"play",value:function(){var t=this;return Bc(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(function(){return t.ads.play()}).catch(function(){return t.media.play()}),this.media.play()):null}},{key:"pause",value:function(){return this.playing&&Bc(this.media.pause)?this.media.pause():null}},{key:"togglePlay",value:function(t){return(Hc(t)?t:!this.playing)?this.play():this.pause()}},{key:"stop",value:function(){this.isHTML5?(this.pause(),this.restart()):Bc(this.media.stop)&&this.media.stop()}},{key:"restart",value:function(){this.currentTime=0}},{key:"rewind",value:function(t){this.currentTime-=qc(t)?t:this.config.seekTime}},{key:"forward",value:function(t){this.currentTime+=qc(t)?t:this.config.seekTime}},{key:"increaseVolume",value:function(t){var e=this.media.muted?0:this.volume;this.volume=e+(qc(t)?t:0)}},{key:"decreaseVolume",value:function(t){this.increaseVolume(-t)}},{key:"toggleCaptions",value:function(t){mh.toggle.call(this,t,!1)}},{key:"airplay",value:function(){Tu.airplay&&this.media.webkitShowPlaybackTargetPicker()}},{key:"toggleControls",value:function(t){if(this.supported.ui&&!this.isAudio){var e=yu(this.elements.container,this.config.classNames.hideControls),n=void 0===t?void 0:!t,i=vu(this.elements.container,this.config.classNames.hideControls,n);if(i&&this.config.controls.includes("settings")&&!Zc(this.config.settings)&&fh.toggleMenu.call(this,!1),i!==e){var o=i?"controlshidden":"controlsshown";_u.call(this,this.media,o)}return!i}return!1}},{key:"on",value:function(t,e){Au.call(this,this.elements.container,t,e)}},{key:"once",value:function(t,e){Lu.call(this,this.elements.container,t,e)}},{key:"off",value:function(t,e){Iu(this.elements.container,t,e)}},{key:"destroy",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.ready){var i=function(){document.body.style.overflow="",e.embed=null,n?(Object.keys(e.elements).length&&(du(e.elements.buttons.play),du(e.elements.captions),du(e.elements.controls),du(e.elements.wrapper),e.elements.buttons.play=null,e.elements.captions=null,e.elements.controls=null,e.elements.wrapper=null),Bc(t)&&t()):(function(){this&&this.eventListeners&&(this.eventListeners.forEac
1h(function(t){var e=t.element,n=t.type,i=t.callback,o=t.options;e.removeEventListener(n,i,o)}),this.eventListeners=[])}.call(e),pu(e.elements.original,e.elements.container),_u.call(e,e.elements.original,"destroyed",!0),Bc(t)&&t.call(e.elements.original),e.ready=!1,setTimeout(function(){e.elements=null,e.media=null},200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(Ch.toggleNativeControls.call(this,!0),i()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&Bc(this.embed.destroy)&&this.embed.destroy(),i()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(i),setTimeout(i,200))}}},{key:"supports",value:function(t){return Tu.mime.call(this,t)}},{key:"isHTML5",get:function(){return this.provider===bh.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===bh.youtube}},{key:"isVimeo",get:function(){return this.provider===bh.vimeo}},{key:"isVideo",get:function(){return this.type===wh}},{key:"isAudio",get:function(){return"audio"===this.type}},{key:"playing",get:function(){return Boolean(this.ready&&!this.paused&&!this.ended)}},{key:"paused",get:function(){return Boolean(this.media.paused)}},{key:"stopped",get:function(){return Boolean(this.paused&&0===this.currentTime)}},{key:"ended",get:function(){return Boolean(this.media.ended)}},{key:"currentTime",set:function(t){if(this.duration){var e=qc(t)&&t>0;this.media.currentTime=e?Math.min(t,this.duration):0,this.debug.log("Seeking to ".concat(this.currentTime," seconds"))}},get:function(){return Number(this.media.currentTime)}},{key:"buffered",get:function(){var t=this.media.buffered;return qc(t)?t:t&&t.length&&this.duration>0?t.end(0)/this.duration:0}},{key:"seeking",get:function(){return Boolean(this.media.seeking)}},{key:"duration",get:function(){var t=parseFloat(this.config.duration),e=(this.media||{}).duration,n=qc(e)&&e!==1/0?e:0;return t||n}},{key:"volume",set:function(t){var e=t;Uc(e)&&(e=Number(e)),qc(e)||(e=this.storage.get("volume")),qc(e)||(e=this.config.volume),e>1&&(e=1),e<0&&(e=0),this.config.volume=e,this.media.volume=e,!Zc(t)&&this.muted&&e>0&&(this.muted=!1)},get:function(){return Number(this.media.volume)}},{key:"muted",set:function(t){var e=t;Hc(e)||(e=this.storage.get("muted")),Hc(e)||(e=this.config.muted),this.config.muted=e,this.media.muted=e},get:function(){return Boolean(this.media.muted)}},{key:"hasAudio",get:function(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}},{key:"speed",set:function(t){var e=this,n=null;qc(t)&&(n=t),qc(n)||(n=this.storage.get("speed")),qc(n)||(n=this.config.speed.selected);var i=this.minimumSpeed,o=this.maximumSpeed;n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;return Math.min(Math.max(t,e),n)}(n,i,o),this.config.speed.selected=n,setTimeout(function(){e.media.playbackRate=n},0)},get:function(){return Number(this.media.playbackRate)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,Ts(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,Ts(this.options.speed)):this.isVimeo?2:16}},{key:"quality",set:function(t){var e=this.config.quality,n=this.options.quality;if(n.length){var i=[!Zc(t)&&Number(t),this.storage.get("quality"),e.selected,e.default].find(qc),o=!0;if(!n.includes(i)){var r=function(t,e){return Wc(t)&&t.length?t.reduce(function(t,n){return Math.abs(n-e)<Math.abs(t-e)?n:t}):null}(n,i);this.debug.warn("Unsupported quality option: ".concat(i,", using ").concat(r," instead")),i=r,o=!1}e.selected=i,this.media.quality=i,o&&this.storage.set({quality:i})}},get:function(){return this.media.quality}},{key:"loop",set:function(t){var e=Hc(t)?t:this.config.loop.active;this.config.loop.active=e,this.media.loop=e},get:function(){return Boolean(this.media.loop)}},{key:"source",set:function(t){Jh.change.call(this,t)},get:function(){return this.media.currentSrc}},{key:"download",get:function(){var t=this.config.urls.download;return Kc(t)?t:this.source},set:function(t){Kc(t)&&(this.config.urls.download=t,fh.setDownloadUrl.call(this))}},{key:"poster",set:function(t){this.isVideo?Ch.setPoster.call(this,t,!1).catch(function(){}):this.debug.warn("Poster can only be set for video")},get:function(){return this.isVideo?this.media.getAttribute("poster"):null}},{key:"ratio",get:function(){if(!this.isVideo)return null;var t=Ou(ju.call(this));return Wc(t)?t.join(":"):t},set:function(t){this.isVideo?Uc(t)&&Mu(t)?(this.config.ratio=t,Du.call(this)):this.debug.error("Invalid aspect ratio specified (".concat(t,")")):this.debug.warn("Aspect ratio can only be set for video")}}
vendor: 1,319 bytes, line 1
1,{key:"autoplay",set:function(t){var e=Hc(t)?t:this.config.autoplay;this.config.autoplay=e},get:function(){return Boolean(this.config.autoplay)}},{key:"currentTrack",set:function(t){mh.set.call(this,t,!1)},get:function(){var t=this.captions,e=t.toggled,n=t.currentTrack;return e?n:-1}},{key:"language",set:function(t){mh.setLanguage.call(this,t,!1)},get:function(){return(mh.getCurrentTrack.call(this)||{}).language}},{key:"pip",set:function(t){if(Tu.pip){var e=Hc(t)?t:!this.pip;Bc(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(e?yh:"inline"),Bc(this.media.requestPictureInPicture)&&(!this.pip&&e?this.media.requestPictureInPicture():this.pip&&!e&&document.exitPictureInPicture())}},get:function(){return Tu.pip?Zc(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===yh:null}}],[{key:"supported",value:function(t,e,n){return Tu.check(t,e,n)}},{key:"loadSprite",value:function(t,e){return sh(t,e)}},{key:"setup",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null;return Uc(e)?i=Array.from(document.querySelectorAll(e)):Vc(e)?i=Array.from(e):Wc(e)&&(i=e.filter(Xc)),Zc(i)?null:i.map(function(e){return new t(e,n)})}}]),t}();return td.defaults=(Gh=vh,JSON.parse(JSON.stringify(Gh))),td});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.