1function PointerEventsPolyfill(e){if(this.options={selector:"*",mouseEvents:["click","dblclick","mousedown","mouseup"],usePolyfillIf:function(){return"Microsoft Internet Explorer"==navigator.appName&&null!=navigator.userAgent.match(/MSIE ([0-9]{1,}[\.0-9]{0,})/)&&11>parseFloat(RegExp.$1)}},e){var t=this;$.each(e,function(e,i){t.options[e]=i})}this.options.usePolyfillIf()&&this.register_mouse_events()}!function(e){var t={url:!1,callback:!1,target:!1,duration:120,on:"mouseover",touch:!0,onZoomIn:!1,onZoomOut:!1,magnify:1};e.zoom=function(t,i,n,r){var o,s,a,l,c,u,d,h=e(t),p=h.css("position"),f=e(i);return h.css("position",/(absolute|fixed)/.test(p)?p:"relative"),h.css("overflow","hidden"),n.style.width=n.style.height="",e(n).addClass("zoomImg").css({position:"absolute",top:0,left:0,opacity:0,width:n.width*r,height:n.height*r,border:"none",maxWidth:"none",maxHeight:"none"}).appendTo(t),{init:function(){s=h.outerWidth(),o=h.outerHeight(),i===h[0]?(l=s,a=o):(l=f.outerWidth(),a=f.outerHeight()),c=(n.width-s)/l,u=(n.height-o)/a,d=f.offset()},move:function(e){var t=e.pageX-d.left,i=e.pageY-d.top;
1i=Math.max(Math.min(i,a),0),t=Math.max(Math.min(t,l),0),n.style.left=t*-c+"px",n.style.top=i*-u+"px"}}},e.fn.zoom=function(i){return this.each(function(){var n,r,o,s=e.extend({},t,i||{}),a=s.target||this,l=this,c=e(l),u=e(a),d=document.createElement("img"),h=e(d),p="mousemove.zoom",f=!1,m=!1;(s.url||((n=c.find("img"))[0]&&(s.url=n.data("src")||n.attr("src")),s.url))&&(r=u.css("position"),o=u.css("overflow"),c.one("zoom.destroy",function(){c.off(".zoom"),u.css("position",r),u.css("overflow",o),h.remove()}),d.onload=function(){var t=e.zoom(a,l,d,s.magnify);function i(i){t.init(),t.move(i),h.stop().fadeTo(e.support.opacity?s.duration:0,1,!!e.isFunction(s.onZoomIn)&&s.onZoomIn.call(d))}function n(){h.stop().fadeTo(s.duration,0,!!e.isFunction(s.onZoomOut)&&s.onZoomOut.call(d))}"grab"===s.on?c.on("mousedown.zoom",function(r){1===r.which&&(e(document).one("mouseup.zoom",function(){n(),e(document).off(p,t.move)}),i(r),e(document).on(p,t.move),r.preventDefault())}):"click"===s.on?c.on("click.zoom",function(r){return f?void 0:(f=!0,i(r),e(document).on(p,t.move),e(document).one("click.zoom",function(){n(),f=!1,e(document).off(p,t.move)}),!1)}):"toggle"===s.on?c.on("click.zoom",function(e){f?n():i(e),f=!f}):"mouseover"===s.on&&(t.init(),c.on("mouseenter.zoom",i).on("mouseleave.zoom",n).on(p,t.move)),s.touch&&c.on("touchstart.zoom",function(e){e.preventDefault(),m?(m=!1,n()):(m=!0,i(e.originalEvent.touches[0]||e.originalEvent.changedTouches[0]))}).on("touchmove.zoom",function(e){e.preventDefault(),t.move(e.originalEvent.touches[0]||e.originalEvent.changedTouches[0])}).on("touchend.zoom",function(e){e.preventDefault(),m&&(m=!1,n())}),e.isFunction(s.callback)&&s.callback.call(d)},d.src=s.url)})},e.fn.zoom.defaults=t}(window.jQuery),function(e){var t=!1;if("function"==typeof define&&define.amd&&(define(e),t=!0),"object"==typeof exports&&(module.exports=e(),t=!0),!t){var i=window.Cookies,n=window.Cookies=e();n.noConflict=function(){return window.Cookies=i,n}}}(function(){function e(){for(var e=0,t={};e<arguments.length;e++){var i=arguments[e];for(var n in i)t[n]=i[n]}return t}return function t(i){function n(t,r,o){var s;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(o=e({path:"/"},n.defaults,o)).expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*o.expires),o.expires=a}o.expires=o.expires?o.expires.toUTCString():"";try{s=JSON.stringify(r),/^[\{\[]/.test(s)&&(r=s)}catch(e){}r=i.write?i.write(r,t):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var l="";for(var c in o)o[c]&&(l+="; "+c,!0!==o[c]&&(l+="="+o[c]));return document.cookie=t+"="+r+l}t||(s={});for(var u=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,h=0;h<u.length;h++){var p=u[h].split("="),f=p.slice(1).join("=");'"'===f.charAt(0)&&(f=f.slice(1,-1));try{var m=p[0].replace(d,decodeURIComponent);if(f=i.read?i.read(f,m):i(f,m)||f.replace(d,decodeURIComponent),this.json)try{f=JSON.parse(f)}catch(e){}if(t===m){s=f;break}t||(s[m]=f)}catch(e){}}return s}}return n.set=n,n.get=function(e){return n.call(n,e)},n.getJSON=function(){return n.apply({json:!0},[].slice.call(arguments))},n.defaults={},n.remove=function(t,i){n(t,"",e(i,{expires:-1}))},n.withConverter=t,n}(function(){})}),function(){"use strict";function e(n){if(!n)throw new Error("No options passed to Waypoint constructor");if(!n.element)throw new Error("No element option passed to Waypoint constructor");if(!n.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+t,this.options=e.Adapter.extend({},e.defaults,n),this.element=this.options.element,this.adapter=new e.Adapter(this.element),this.callback=n.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=e.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=e.Context.findOrCreateByElement(this.options.context),e.offsetAliases[this.options.offset]&&(this.options.offset=e.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,t+=1}var t=0,i={};e.prototype.queueTrigger=function(e){this.group.queueTrigger(this,e)},e.prototype.trigger=function(e){this.enabled&&this.callback&&this.callback.apply(this,e)},e.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},e.prototype.disable=function(){return this.enabled=!1,this},e.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},e.prototype.next=function(){return this.group.next(this)},e.prototype.previous=function(){return this.group.previous(this)},e.invokeAll=function(e){var t=[];for(var n in i)t.push(i[n]);for(var r=0,o=t.length;o>r;r++)t[r][e]()},e.destroyAll=function(){e.invokeAll("destroy")},e.disableAll=function(){e.invokeAll("disable")},e.enableAll=function(){e.invokeAll("enable")},e.refreshAll=function(){e.Context.refreshAll()}
vendor: 5,077 bytes, line 1
1,e.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},e.viewportWidth=function(){return document.documentElement.clientWidth},e.adapters=[],e.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},e.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=e}(),function(){"use strict";function e(e){this.element=e,this.Adapter=n.Adapter,this.adapter=new this.Adapter(e),this.key="waypoint-context-"+t,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},e.waypointContextKey=this.key,i[e.waypointContextKey]=this,t+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var t=0,i={},n=window.Waypoint,r=window.onload;e.prototype.add=function(e){var t=e.options.horizontal?"horizontal":"vertical";this.waypoints[t][e.key]=e,this.refresh()},e.prototype.checkEmpty=function(){var e=this.Adapter.isEmptyObject(this.waypoints.horizontal),t=this.Adapter.isEmptyObject(this.waypoints.vertical);e&&t&&(this.adapter.off(".waypoints"),delete i[this.key])},e.prototype.createThrottledResizeHandler=function(){function e(){t.handleResize(),t.didResize=!1}var t=this;this.adapter.on("resize.waypoints",function(){t.didResize||(t.didResize=!0,n.requestAnimationFrame(e))})},e.prototype.createThrottledScrollHandler=function(){function e(){t.handleScroll(),t.didScroll=!1}var t=this;this.adapter.on("scroll.waypoints",function(){(!t.didScroll||n.isTouch)&&(t.didScroll=!0,n.requestAnimationFrame(e))})},e.prototype.handleResize=function(){n.Context.refreshAll()},e.prototype.handleScroll=function(){var e={},t={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 i in t){var n=t[i],r=n.newScroll>n.oldScroll?n.forward:n.backward;for(var o in this.waypoints[i]){var s=this.waypoints[i][o],a=n.oldScroll<s.triggerPoint,l=n.newScroll>=s.triggerPoint;(a&&l||!a&&!l)&&(s.queueTrigger(r),e[s.group.id]=s.group)}}for(var c in e)e[c].flushTriggers();this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?n.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(e){delete this.waypoints[e.axis][e.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?n.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var e=[];for(var t in this.waypoints)for(var i in this.waypoints[t])e.push(this.waypoints[t][i]);for(var n=0,r=e.length;r>n;n++)e[n].destroy()},e.prototype.refresh=function(){var e,t=this.element==this.element.window,i=t?void 0:this.adapter.offset(),r={};for(var o in this.handleScroll(),e={horizontal:{contextOffset:t?0:i.left,contextScroll:t?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:t?0:i.top,contextScroll:t?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var s=e[o];for(var a in this.waypoints[o]){var l,c,u,d,h=this.waypoints[o][a],p=h.options.offset,f=h.triggerPoint,m=0,g=null==f;h.element!==h.element.window&&(m=h.adapter.offset()[s.offsetProp]),"function"==typeof p?p=p.apply(h):"string"==typeof p&&(p=parseFloat(p),h.options.offset.indexOf("%")>-1&&(p=Math.ceil(s.contextDimension*p/100))),l=s.contextScroll-s.contextOffset,h.triggerPoint=m+l-p,c=f<s.oldScroll,u=h.triggerPoint>=s.oldScroll,d=!c&&!u,!g&&c&&u?(h.queueTrigger(s.backward),r[h.group.id]=h.group):!g&&d?(h.queueTrigger(s.forward),r[h.group.id]=h.group):g&&s.oldScroll>=h.triggerPoint&&(h.queueTrigger(s.forward),r[h.group.id]=h.group)}}return n.requestAnimationFrame(function(){for(var e in r)r[e].flushTriggers()}),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var e in i)i[e].refresh()},e.findByElement=function(e){return i[e.waypointContextKey]},window.onload=function(){r&&r(),e.refreshAll()},n.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}).call(window,e)},n.Context=e}(),function(){"use strict";function e(e,t){return e.triggerPoint-t.triggerPoint}function t(e,t){return t.triggerPoint-e.triggerPoint}function i(e){this.name=e.name,this.axis=e.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),n[this.axis][this.name]=this}var n={vertical:{},horizontal:{}},r=window.Waypoint;i.prototype.add=function(e){this.waypoints.push(e)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],r
1ight:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var n=this.triggerQueues[i],r="up"===i||"left"===i;n.sort(r?t:e);for(var o=0,s=n.length;s>o;o+=1){var a=n[o];(a.options.continuous||o===n.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(t){this.waypoints.sort(e);var i=r.Adapter.inArray(t,this.waypoints);return i===this.waypoints.length-1?null:this.waypoints[i+1]},i.prototype.previous=function(t){this.waypoints.sort(e);var i=r.Adapter.inArray(t,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(e,t){this.triggerQueues[t].push(e)},i.prototype.remove=function(e){var t=r.Adapter.inArray(e,this.waypoints);t>-1&&this.waypoints.splice(t,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(e){return n[e.axis][e.name]||new i(e)},r.Group=i}(),function(){"use strict";function e(e){this.$element=t(e)}var t=window.jQuery,i=window.Waypoint;t.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(t,i){e.prototype[i]=function(){var e=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,e)}}),t.each(["extend","inArray","isEmptyObject"],function(i,n){e[n]=t[n]}),i.adapters.push({name:"jquery",Adapter:e}),i.Adapter=e}(),function(){"use strict";function e(e){return function(){var i=[],n=arguments[0];return e.isFunction(arguments[0])&&((n=e.extend({},arguments[1])).handler=arguments[0]),this.each(function(){var r=e.extend({},n,{element:this});"string"==typeof r.context&&(r.context=e(this).closest(r.context)[0]),i.push(new t(r))}),i}}var t=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=e(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=e(window.Zepto))}(),function(){"use strict";function e(n){this.options=t.extend({},e.defaults,n),this.container=this.options.element,"auto"!==this.options.container&&(this.container=this.options.container),this.$container=t(this.container),this.$more=t(this.options.more),this.$more.length&&(this.setupHandler(),this.waypoint=new i(this.options))}var t=window.jQuery,i=window.Waypoint;e.prototype.setupHandler=function(){this.options.handler=t.proxy(function(){this.options.onBeforePageLoad(),this.destroy(),this.$container.addClass(this.options.loadingClass),t.get(t(this.options.more).attr("href"),t.proxy(function(e){var n=t(t.parseHTML(e)),r=n.find(this.options.more),o=n.find(this.options.items);o.length||(o=n.filter(this.options.items)),this.$container.append(o),this.$container.removeClass(this.options.loadingClass),r.length||(r=n.filter(this.options.more)),r.length?(this.$more.replaceWith(r),this.$more=r,this.waypoint=new i(this.options)):this.$more.remove(),this.options.onAfterPageLoad(o)},this))},this)},e.prototype.destroy=function(){this.waypoint&&this.waypoint.destroy()},e.defaults={container:"auto",items:".infinite-item",more:".infinite-more-link",offset:"bottom-in-view",loadingClass:"infinite-loading",onBeforePageLoad:t.noop,onAfterPageLoad:t.noop},i.Infinite=e}(),PointerEventsPolyfill.initialize=function(e){return null==PointerEventsPolyfill.singleton&&(PointerEventsPolyfill.singleton=new PointerEventsPolyfill(e)),PointerEventsPolyfill.singleton},PointerEventsPolyfill.prototype.register_mouse_events=function(){$(document).on(this.options.mouseEvents.join(" "),this.options.selector,function(e){if("none"==$(this).css("pointer-events")){var t=$(this).css("display");$(this).css("display","none");var i=document.elementFromPoint(e.clientX,e.clientY);return t?$(this).css("display",t):$(this).css("display",""),e.target=i,$(i).trigger(e),!1}return!0})},String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.indexOf(e,t)===t}),function(e,t){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("jquery")):e.jQueryBridget=t(e,e.jQuery)}(window,function(e,t){"use strict";function i(i,o,a){(a=a||t||e.jQuery)&&(o.prototype.option||(o.prototype.option=function(e){a.isPlainObject(e)&&(this.options=a.extend(!0,this.options,e))}),a.fn[i]=function(e){return"string"==typeof e?function(e,t,n){var r,o="$()."+i+'("'+t+'")';return e.each(function(e,l){var c=a.data(l,i);if(c){var u=c[t];if(u&&"_"!=t.charAt(0)){var d=u.apply(c,n);r=void 0===r?d:r}else s(o+" is not a valid method")}else s(i+" not initialized. Cannot call methods, i.e. "+o)}),void 0!==r?r:e}
vendor: 2,039 bytes, line 1
1(this,e,r.call(arguments,1)):(function(e,t){e.each(function(e,n){var r=a.data(n,i);r?(r.option(t),r._init()):(r=new o(n,t),a.data(n,i,r))})}(this,e),this)},n(a))}function n(e){!e||e&&e.bridget||(e.bridget=i)}var r=Array.prototype.slice,o=e.console,s=void 0===o?function(){}:function(e){o.error(e)};return n(t||e.jQuery),i}),function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return-1==n.indexOf(t)&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{};return(i[e]=i[e]||{})[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return-1!=n&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],r=0;r<i.length;r++){var o=i[r];n&&n[o]&&(this.off(e,o),delete n[o]),o.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"function"==typeof define&&define.amd?define("get-size/get-size",t):"object"==typeof module&&module.exports?module.exports=t():e.getSize=t()}(window,function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}function t(e){var t=getComputedStyle(e);return t||o("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}function i(){if(!l){l=!0;var i=document.createElement("div");i.style.width="200px",i.style.padding="1px 2px 3px 4px",i.style.borderStyle="solid",i.style.borderWidth="1px 2px 3px 4px",i.style.boxSizing="border-box";var o=document.body||document.documentElement;o.appendChild(i);var s=t(i);r=200==Math.round(e(s.width)),n.isBoxSizeOuter=r,o.removeChild(i)}}
vendor: 1,739 bytes, line 1
1function n(n){if(i(),"string"==typeof n&&(n=document.querySelector(n)),n&&"object"==typeof n&&n.nodeType){var o=t(n);if("none"==o.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<a;t++)e[s[t]]=0;return e}();var l={};l.width=n.offsetWidth,l.height=n.offsetHeight;for(var c=l.isBorderBox="border-box"==o.boxSizing,u=0;u<a;u++){var d=s[u],h=o[d],p=parseFloat(h);l[d]=isNaN(p)?0:p}var f=l.paddingLeft+l.paddingRight,m=l.paddingTop+l.paddingBottom,g=l.marginLeft+l.marginRight,v=l.marginTop+l.marginBottom,y=l.borderLeftWidth+l.borderRightWidth,b=l.borderTopWidth+l.borderBottomWidth,w=c&&r,x=e(o.width);!1!==x&&(l.width=x+(w?0:f+y));var S=e(o.height);return!1!==S&&(l.height=S+(w?0:m+b)),l.innerWidth=l.width-(f+y),l.innerHeight=l.height-(m+b),l.outerWidth=l.width+g,l.outerHeight=l.height+v,l}}var r,o="undefined"==typeof console?function(){}:function(e){console.error(e)},s=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],a=s.length,l=!1;return n}),function(e,t){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",t):"object"==typeof module&&module.exports?module.exports=t():e.matchesSelector=t()}(window,function(){"use strict";var e=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],i=0;i<t.length;i++){var n=t[i]+"MatchesSelector";if(e[n])return n}}();return function(t,i){return t[e](i)}}),function(e,t){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["de
1sandro-matches-selector/matches-selector"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("desandro-matches-selector")):e.fizzyUIUtils=t(e,e.matchesSelector)}(window,function(e,t){var i={extend:function(e,t){for(var i in t)e[i]=t[i];return e},modulo:function(e,t){return(e%t+t)%t}},n=Array.prototype.slice;i.makeArray=function(e){return Array.isArray(e)?e:null==e?[]:"object"==typeof e&&"number"==typeof e.length?n.call(e):[e]},i.removeFrom=function(e,t){var i=e.indexOf(t);-1!=i&&e.splice(i,1)},i.getParent=function(e,i){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,t(e,i))return e},i.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},i.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},i.filterFindElements=function(e,n){e=i.makeArray(e);var r=[];return e.forEach(function(e){if(e instanceof HTMLElement){if(!n)return void r.push(e);t(e,n)&&r.push(e);for(var i=e.querySelectorAll(n),o=0;o<i.length;o++)r.push(i[o])}}),r},i.debounceMethod=function(e,t,i){i=i||100;var n=e.prototype[t],r=t+"Timeout";e.prototype[t]=function(){var e=this[r];clearTimeout(e);var t=arguments,o=this;this[r]=setTimeout(function(){n.apply(o,t),delete o[r]},i)}},i.docReady=function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},i.toDashed=function(e){return e.replace(/(.)([A-Z])/g,function(e,t,i){return t+"-"+i}).toLowerCase()};var r=e.console;return i.htmlInit=function(t,n){i.docReady(function(){var o=i.toDashed(n),s="data-"+o,a=document.querySelectorAll("["+s+"]"),l=d
1ocument.querySelectorAll(".js-"+o),c=i.makeArray(a).concat(i.makeArray(l)),u=s+"-options",d=e.jQuery;c.forEach(function(e){var i,o=e.getAttribute(s)||e.getAttribute(u);try{i=o&&JSON.parse(o)}catch(t){return void(r&&r.error("Error parsing "+s+" on "+e.className+": "+t))}var a=new t(e,i);d&&d.data(e,n,a)})})},i}),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/cell",["get-size/get-size"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("get-size")):(e.Flickity=e.Flickity||{},e.Flickity.Cell=t(e,e.getSize))}(window,function(e,t){function i(e,t){this.element=e,this.parent=t,this.create()}var n=i.prototype;return n.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-selected","false"),this.x=0,this.shift=0},n.destroy=function(){this.element.style.position="";var e=this.parent.originSide;this.element.removeAttribute("aria-selected"),this.element.style[e]=""},n.getSize=function(){this.size=t(this.element)},n.setPosition=function(e){this.x=e,this.updateTarget(),this.renderPosition(e)},n.updateTarget=n.setDefaultTarget=function(){var e="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[e]+this.size.width*this.parent.cellAlign},n.renderPosition=function(e){var t=this.parent.originSide;this.element.style[t]=this.parent.getPositionValue(e)},n.wrapShift=function(e){this.shift=e,this.renderPosition(this.x+this.parent.slideableWidth*e)},n.remove=function(){this.element.parentNode.removeChild(this.element)},i}),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/slide",t):"object"==typeof module&&module.exports?module.exports=t():(e.Flickity=e.Flickity||{},e.Flickity.Slide=t())}(window,function(){"use strict";function e(e){this.parent=e,this.isOriginLeft="left"==e.originSide,this.cells=[],this.outerWidth=0,this.height=0}var t=e.prototype;return t.addCell=function(e){if(this.cells.push(e),this.outerWidth+=e.size.outerWidth,this.height=Math.max(e.size.outerHeight,this.height),1==this.cells.length){this.x=e.x;var t=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=e.size[t]}},t.updateTarget=function(){var e=this.isOriginLeft?"marginRight":"marginLeft",t=this.getLastCell(),i=t?t.size[e]:0,n=this.outerWidth-(this.firstMargin+i);this.target=this.x+this.firstMargin+n*this.parent.cellAlign},t.getLastCell=function(){return this.cells[this.cells.length-1]},t.select=function(){this.changeSelected(!0)},t.unselect=function(){this.changeSelected(!1)},t.changeSelected=function(e){var t=e?"add":"remove";this.cells.forEach(function(i){i.element.classList[t]("is-selected"),i.element.setAttribute("aria-selected",e.toString())})},t.getCellElements=function(){return this.cells.map(function(e){return e.element})},e}),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/animate",["fizzy-ui-utils/utils"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("fizzy-ui-utils")):(e.Flickity=e.Flickity||{},e.Flickity.animatePrototype=t(e,e.fizzyUIUtils))}(window,function(e,t){return{startAnimation:function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},animate:function(){this.applyDragForce(),this.applySelectedAttraction();var e=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(e),this.isAnimating){var t=this;requestAnimationFrame(function(){t.animate()})}},positionSlider:function(){var e=this.x;this.options.wrapAround&&this.cells.length>1&&(e=t.modulo(e,this.slideableWidth),e-=this.slideableWidth,this.shiftWrapCells(e)),e+=this.cursorPosition,e=this.options.rightToLeft?-e:e;var i=this.getPositionValue(e);this.slider.style.transform=this.isAnimating?"translate3d("+i+",0,0)":"translateX("+i+")";var n=this.slides[0];if(n){var r=-this.x-n.target,o=r/this.slidesWidth;this.dispatchEvent("scroll",null,[o,r])}},positionSliderAtSelected:function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},getPositionValue:function(e){return this.options.percentPosition?.01*Math.round(e/this.size.innerWidth*1e4)+"%":Math.round(e)+"px"},settle:function(e){this.isPointerDown||Math.round(100*this.x)!=Math.round(100*e)||this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},shiftWrapCells:function(e){var t=this.cursorPosition+e;this._shiftCells(this.beforeShiftCells,t,-1);var i=this.size.innerWidth-(e+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,i,1)},_shiftCells:function(e,t,i){for(var n=0;n<e.length;n++){var r=e[n],o=t>0?i:0;r.wrapShift(o),t-=r.size.outerWidth}},_unshiftCells:function(e){if(e&&e.length)for(var t=0;t<e.length;t++)e[t].wrapShift(0)},integratePhysics:function(){this.x+=this.velocity,this.velocity
vendor: 32,648 bytes, line 1
1*=this.getFrictionFactor()},applyForce:function(e){this.velocity+=e},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 e=this.dragX-this.x-this.velocity;this.applyForce(e)}},applySelectedAttraction:function(){if((!this.isDraggable||!this.isPointerDown)&&!this.isFreeScrolling&&this.slides.length){var e=(-1*this.selectedSlide.target-this.x)*this.options.selectedAttraction;this.applyForce(e)}}}}),function(e,t){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(i,n,r,o,s,a){return t(e,i,n,r,o,s,a)});else if("object"==typeof module&&module.exports)module.exports=t(e,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./slide"),require("./animate"));else{var i=e.Flickity;e.Flickity=t(e,e.EvEmitter,e.getSize,e.fizzyUIUtils,i.Cell,i.Slide,i.animatePrototype)}}(window,function(e,t,i,n,r,o,s){function a(e,t){for(e=n.makeArray(e);e.length;)t.appendChild(e.shift())}function l(e,t){var i=n.getQueryElement(e);if(i){if(this.element=i,this.element.flickityGUID){var r=p[this.element.flickityGUID];return r.option(t),r}c&&(this.$element=c(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(t),this._create()}else d&&d.error("Bad element for Flickity: "+(i||e))}var c=e.jQuery,u=e.getComputedStyle,d=e.console,h=0,p={};l.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},l.createMethods=[];var f=l.prototype;n.extend(f,t.prototype),f._create=function(){var t=this.guid=++h;for(var i in this.element.flickityGUID=t,p[t]=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)&&e.addEventListener("resize",this),this.options.on){var n=this.options.on[i];this.on(i,n)}l.createMethods.forEach(function(e){this[e]()},this),this.options.watchCSS?this.watchCSS():this.activate()},f.option=function(e){n.extend(this.options,e)},f.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 e,t=this.options.initialIndex;e=this.isInitActivated?this.selectedIndex:void 0!==t&&this.cells[t]?t:0,this.select(e,!1,!0),this.isInitActivated=!0,this.dispatchEvent("ready")}},f._createSlider=function(){var e=document.createElement("div");e.className="flickity-slider",e.style[this.originSide]=0,this.slider=e},f._filterFindCellElements=function(e){return n.filterFindElements(e,this.options.cellSelector)},f.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},f._makeCells=function(e){return this._filterFindCellElements(e).map(function(e){return new r(e,this)},this)},f.getLastCell=function(){return this.cells[this.cells.length-1]},f.getLastSlide=function(){return this.slides[this.slides.length-1]},f.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},f._positionCells=function(e){e=e||0,this.maxCellHeight=e&&this.maxCellHeight||0;var t=0;if(e>0){var i=this.cells[e-1];t=i.x+i.size.outerWidth}for(var n=this.cells.length,r=e;r<n;r++){var o=this.cells[r];o.setPosition(t),t+=o.size.outerWidth,this.maxCellHeight=Math.max(o.size.outerHeight,this.maxCellHeight)}this.slideableWidth=t,this.updateSlides(),this._containSlides(),this.slidesWidth=n?this.getLastSlide().target-this.slides[0].target:0},f._sizeCells=function(e){e.forEach(function(e){e.getSize()})},f.updateSlides=function(){if(this.slides=[],this.cells.length){var e=new o(this);this.slides.push(e);var t="left"==this.originSide?"marginRight":"marginLeft",i=this._getCanCellFit();this.cells.forEach(function(n,r){if(e.cells.length){var s=e.outerWidth-e.firstMargin+(n.size.outerWidth-n.size[t]);i.call(this,r,s)?e.addCell(n):(e.updateTarget(),e=new o(this),this.slides.push(e),e.addCell(n))}else e.addCell(n)},this),e.updateTarget(),this.updateSelectedSlide()}},f._getCanCellFit=function(){var e=this.options.groupCells;if(!e)return function(){return!1};if("number"==typeof e){var t=parseInt(e,10);return function(e){return e%t!=0}}var i="string"==typeof e&&e.match(/^(\d+)%$/),n=i?parseInt(i[1],10)/100:1;return function(e,t){return t<=(this.size.innerWidth+1)*n}},f._init=f.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},f.getSize=function(){this.size=i(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var m={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return f.setCellAlign=function(){var e=m[this.options.cellAlign];this.cellAlign=e?e[this.originSide]:this.options.cellAlign},f.setGallerySize=function(){if(this.options.setGallerySize){var e=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=e+"px"}},f._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var e=this.cursorPosition,t=this.cells.length-1;this.beforeShiftCells=this._getGapCells(e,t,-1),e=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(e,0,1)}},f._getGapCells=function(e,t,i){for(var n=[];e>0;){var r=this.cells[t];if(!r)break;n.push(r),t+=i,e-=r.size.outerWidth}return n},f._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var e=this.options.rightToLeft,t=e?"marginRight":"marginLeft",i=e?"marginLeft":"marginRight",n=this.slideableWidth-this.getLastCell().size[i],r=n<this.size.innerWidth,o=this.cursorPosition+this.cells[0].size[t],s=n-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(e){r?e.target=n*this.cellAlign:(e.target=Math.max(e.target,o),e.target=Math.min(e.target,s))},this)}},f.dispatchEvent=function(e,t,i){var n=t?[t].concat(i):i;if(this.emitEvent(e,n),c&&this.$element){var r=e+=this.options.namespaceJQueryEvents?".flickity":"";if(t){var o=c.Event(t);o.type=e,r=o}this.$element.trigger(r,i)}},f.select=function(e,t,i){if(this.isActive&&(e=parseInt(e,10),this._wrapSelect(e),(this.options.wrapAround||t)&&(e=n.modulo(e,this.slides.length)),this.slides[e])){var r=this.selectedIndex;this.selectedIndex=e,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[e]),e!=r&&this.dispatchEvent("change",null,[e]),this.dispatchEvent("cellSelect")}},f._wrapSelect=function(e){var t=this.slides.length;if(!(this.options.wrapAround&&t>1))return e;var i=n.modulo(e,t),r=Math.abs(i-this.selectedIndex),o=Math.abs(i+t-this.selectedIndex),s=Math.abs(i-t-this.selectedIndex);!this.isDragSelect&&o<r?e+=t:!this.isDragSelect&&s<r&&(e-=t),e<0?this.x-=this.slideableWidth:e>=t&&(this.x+=this.slideableWidth)},f.previous=function(e,t){this.select(this.selectedIndex-1,e,t)},f.next=function(e,t){this.select(this.selectedIndex+1,e,t)},f.updateSelectedSlide=function(){var e=this.slides[this.selectedIndex];e&&(this.unselectSelectedSlide(),this.selectedSlide=e,e.select(),this.selectedCells=e.cells,this.selectedElements=e.getCellElements(),this.selectedCell=e.cells[0],this.selectedElement=this.selectedElements[0])},f.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},f.selectCell=function(e,t,i){var n=this.queryCell(e);if(n){var r=this.getCellSlideIndex(n);this.select(r,t,i)}},f.getCellSlideIndex=function(e){for(var t=0;t<this.slides.length;t++)if(-1!=this.slides[t].cells.indexOf(e))return t},f.getCell=function(e){for(var t=0;t<this.cells.length;t++){var i=this.cells[t];if(i.element==e)return i}},f.getCells=function(e){e=n.makeArray(e);var t=[];return e.forEach(function(e){var i=this.getCell(e);i&&t.push(i)},this),t},f.getCellElements=function(){return this.cells.map(function(e){return e.element})},f.getParentCell=function(e){return this.getCell(e)||(e=n.getParent(e,".flickity-slider > *"),this.getCell(e))},f.getAdjacentCellElements=function(e,t){if(!e)return this.selectedSlide.getCellElements();t=void 0===t?this.selectedIndex:t;var i=this.slides.length;if(1+2*e>=i)return this.getCellElements();for(var r=[],o=t-e;o<=t+e;o++){var s=this.options.wrapAround?n.modulo(o,i):o,a=this.slides[s];a&&(r=r.concat(a.getCellElements()))}return r},f.queryCell=function(e){return"number"==typeof e?this.cells[e]:("string"==typeof e&&(e=this.element.querySelector(e)),this.getCell(e))},f.uiChange=function(){this.emitEvent("uiChange")},f.childUIPointerDown=function(e){this.emitEvent("childUIPointerDown",[e])},f.onresize=function(){this.watchCSS(),this.resize()},n.debounceMethod(l,"onresize",150),f.resize=function(){if(this.isActive){this.getSize(),this.options.wrapAround&&(this.x=n.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var e=this.selectedElements&&this.selectedElements[0];this.selectCell(e,!1,!0)}},f.watchCSS=function(){this.options.watchCSS&&(-1!=u(this.element,":after").content.indexOf("flickity")?this.activate():this.deactivate())},f.onkeydown=function(e){var t=document.activeElement&&document.activeElement!=this.element;if(this.options.accessibility&&!t){var i=l.keyboardHandlers[e.keyCode];i&&i.call(this)}},l.keyboardHandlers={37:function(){var e=this.options.rightToLeft?"next":"previous";this.uiChange(),this[e]()},39:function(){var e=this.options.rightToLeft?"previous":"next";this.uiChange(),this[e]()}},f.focus=function(){var t=e.pageYOffset;this.element.focus({preventScroll:!0}),e.pageYOffset!=t&&e.scrollTo(e.pageXOffset,t)},f.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(function(e){e.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"))},f.destroy=function(){this.deactivate(),e.removeEventListener("resize",this),this.emitEvent("destroy"),c&&this.$element&&c.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete p[this.guid]},n.extend(f,s),l.data=function(e){var t=(e=n.getQueryElement(e))&&e.flickityGUID;return t&&p[t]},n.htmlInit(l,"flickity"),c&&c.bridget&&c.bridget("flickity",l),l.setJQuery=function(e){c=e},l.Cell=r,l}),function(e,t){"function"==typeof define&&define.amd?define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.Unipointer=t(e,e.EvEmitter)}(window,function(e,t){function i(){}var n=i.prototype=Object.create(t.prototype);n.bindStartEvent=function(e){this._bindStartEvent(e,!0)},n.unbindStartEvent=function(e){this._bindStartEvent(e,!1)},n._bindStartEvent=function(t,i){var n=(i=void 0===i||i)?"addEventListener":"removeEventListener",r="mousedown";e.PointerEvent?r="pointerdown":"ontouchstart"in e&&(r="touchstart"),t[n](r,this)},n.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},n.getTouch=function(e){for(var t=0;t<e.length;t++){var i=e[t];if(i.identifier==this.pointerIdentifier)return i}},n.onmousedown=function(e){var t=e.button;t&&0!==t&&1!==t||this._pointerDown(e,e)},n.ontouchstart=function(e){this._pointerDown(e,e.changedTouches[0])},n.onpointerdown=function(e){this._pointerDown(e,e)},n._pointerDown=function(e,t){e.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==t.pointerId?t.pointerId:t.identifier,this.pointerDown(e,t))},n.pointerDown=function(e,t){this._bindPostStartEvents(e),this.emitEvent("pointerDown",[e,t])};var r={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return n._bindPostStartEvents=function(t){if(t){var i=r[t.type];i.forEach(function(t){e.addEventListener(t,this)},this),this._boundPointerEvents=i}},n._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(t){e.removeEventListener(t,this)},this),delete this._boundPointerEvents)},n.onmousemove=function(e){this._pointerMove(e,e)},n.onpointermove=function(e){e.pointerId==this.pointerIdentifier&&this._pointerMove(e,e)},n.ontouchmove=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerMove(e,t)},n._pointerMove=function(e,t){this.pointerMove(e,t)},n.pointerMove=function(e,t){this.emitEvent("pointerMove",[e,t])},n.onmouseup=function(e){this._pointerUp(e,e)},n.onpointerup=function(e){e.pointerId==this.pointerIdentifier&&this._pointerUp(e,e)},n.ontouchend=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerUp(e,t)},n._pointerUp=function(e,t){this._pointerDone(),this.pointerUp(e,t)},n.pointerUp=function(e,t){this.emitEvent("pointerUp",[e,t])},n._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},n._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},n.pointerDone=function(){},n.onpointercancel=function(e){e.pointerId==this.pointerIdentifier&&this._pointerCancel(e,e)},n.ontouchcancel=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerCancel(e,t)},n._pointerCancel=function(e,t){this._pointerDone(),this.pointerCancel(e,t)},n.pointerCancel=function(e,t){this.emitEvent("pointerCancel",[e,t])},i.getPointerPoint=function(e){return{x:e.pageX,y:e.pageY}},i}),function(e,t){"function"==typeof define&&define.amd?define("unidragger/unidragger",["unipointer/unipointer"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("unipointer")):e.Unidragger=t(e,e.Unipointer)}(window,function(e,t){function i(){}var n=i.prototype=Object.create(t.prototype);n.bindHandles=function(){this._bindHandles(!0)},n.unbindHandles=function(){this._bindHandles(!1)},n._bindHandles=function(t){for(var i=(t=void 0===t||t)?"addEventListener":"removeEventListener",n=t?this._touchActionValue:"",r=0;r<this.handles.length;r++){var o=this.handles[r];this._bindStartEvent(o,t),o[i]("click",this),e.PointerEvent&&(o.style.touchAction=n)}},n._touchActionValue="none",n.pointerDown=function(e,t){this.okayPointerDown(e)&&(this.pointerDownPointer=t,e.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(e),this.emitEvent("pointerDown",[e,t]))};var r={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},o={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return n.okayPointerDown=function(e){var t=r[e.target.nodeName],i=o[e.target.type],n=!t||i;return n||this._pointerReset(),n},n.pointerDownBlur=function(){var e=document.activeElement;e&&e.blur&&e!=document.body&&e.blur()},n.pointerMove=function(e,t){var i=this._dragPointerMove(e,t);this.emitEvent("pointerMove",[e,t,i]),this._dragMove(e,t,i)},n._dragPointerMove=function(e,t){var i={x:t.pageX-this.pointerDownPointer.pageX,y:t.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(i)&&this._dragStart(e,t),i},n.hasDragStarted=function(e){return Math.abs(e.x)>3||Math.abs(e.y)>3},n.pointerUp=function(e,t){this.emitEvent("pointerUp",[e,t]),this._dragPointerUp(e,t)},n._dragPointerUp=function(e,t){this.isDragging?this._dragEnd(e,t):this._staticClick(e,t)},n._dragStart=function(e,t){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(e,t)},n.dragStart=function(e,t){this.emitEvent("dragStart",[e,t])},n._dragMove=function(e,t,i){this.isDragging&&this.dragMove(e,t,i)},n.dragMove=function(e,t,i){e.preventDefault(),this.emitEvent("dragMove",[e,t,i])},n._dragEnd=function(e,t){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(e,t)},n.dragEnd=function(e,t){this.emitEvent("dragEnd",[e,t])},n.onclick=function(e){this.isPreventingClicks&&e.preventDefault()},n._staticClick=function(e,t){this.isIgnoringMouseUp&&"mouseup"==e.type||(this.staticClick(e,t),"mouseup"!=e.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},n.staticClick=function(e,t){this.emitEvent("staticClick",[e,t])},i.getPointerPoint=t.getPointerPoint,i}),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(i,n,r){return t(e,i,n,r)}):"object"==typeof module&&module.exports?module.exports=t(e,require("./flickity"),require("unidragger"),require("fizzy-ui-utils")):e.Flickity=t(e,e.Flickity,e.Unidragger,e.fizzyUIUtils)}(window,function(e,t,i,n){function r(){return{x:e.pageXOffset,y:e.pageYOffset}}n.extend(t.defaults,{draggable:">1",dragThreshold:3}),t.createMethods.push("_createDrag");var o=t.prototype;n.extend(o,i.prototype),o._touchActionValue="pan-y";var s="createTouch"in document,a=!1;o._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&&(e.addEventListener("touchmove",function(){}),a=!0)},o.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},o.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},o.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")},o.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},o.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},o._uiChangeDrag=function(){delete this.isFreeScrolling},o._childUIPointerDownDrag=function(e){e.preventDefault(),this.pointerDownFocus(e)},o.pointerDown=function(t,i){this.isDraggable?this.okayPointerDown(t)&&(this._pointerDownPreventDefault(t),this.pointerDownFocus(t),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=r(),e.addEventListener("scroll",this),this._pointerDownDefault(t,i)):this._pointerDownDefault(t,i)},o._pointerDownDefault=function(e,t){this.pointerDownPointer=t,this._bindPostStartEvents(e),this.dispatchEvent("pointerDown",e,[t])};var l={INPUT:!0,TEXTAREA:!0,SELECT:!0};return o.pointerDownFocus=function(e){l[e.target.nodeName]||this.focus()},o._pointerDownPreventDefault=function(e){var t="touchstart"==e.type,i="touch"==e.pointerType,n=l[e.target.nodeName];t||i||n||e.preventDefault()},o.hasDragStarted=function(e){return Math.abs(e.x)>this.options.dragThreshold},o.pointerUp=function(e,t){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",e,[t]),this._dragPointerUp(e,t)},o.pointerDone=function(){e.removeEventListener("scroll",this),delete this.pointerDownScroll},o.dragStart=function(t,i){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),e.removeEventListener("scroll",this),this.dispatchEvent("dragStart",t,[i]))},o.pointerMove=function(e,t){var i=this._dragPointerMove(e,t);this.dispatchEvent("pointerMove",e,[t,i]),this._dragMove(e,t,i)},o.dragMove=function(e,t,i){if(this.isDraggable){e.preventDefault(),this.previousDragX=this.dragX;var n=this.options.rightToLeft?-1:1;this.options.wrapAround&&(i.x=i.x%this.slideableWidth);var r=this.dragStartPosition+i.x*n;if(!this.options.wrapAround&&this.slides.length){var o=Math.max(-this.slides[0].target,this.dragStartPosition);r=r>o?.5*(r+o):r;var s=Math.min(-this.getLastSlide().target,this.dragStartPosition);r=r<s?.5*(r+s):r}this.dragX=r,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",e,[t,i])}},o.dragEnd=function(e,t){if(this.isDraggable){this.options.freeScroll&&(this.isFreeScrolling=!0);var i=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var n=this.getRestingPosition();this.isFreeScrolling=-n>this.slides[0].target&&-n<this.getLastSlide().target}else this.options.freeScroll||i!=this.selectedIndex||(i+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(i),delete this.isDragSelect,this.dispatchEvent("dragEnd",e,[t])}},o.dragEndRestingSelect=function(){var e=this.getRestingPosition(),t=Math.abs(this.getSlideDistance(-e,this.selectedIndex)),i=this._getClosestResting(e,t,1),n=this._getClosestResting(e,t,-1);return i.distance<n.distance?i.index:n.index},o._getClosestResting=function(e,t,i){for(var n=this.selectedIndex,r=1/0,o=this.options.contain&&!this.options.wrapAround?function(e,t){return e<=t}:function(e,t){return e<t};o(t,r)&&(n+=i,r=t,null!==(t=this.getSlideDistance(-e,n)));)t=Math.abs(t);return{distance:r,index:n-i}},o.getSlideDistance=function(e,t){var i=this.slides.length,r=this.options.wrapAround&&i>1,o=r?n.modulo(t,i):t,s=this.slides[o];if(!s)return null;var a=r?this.slideableWidth*Math.floor(t/i):0;return e-(s.target+a)},o.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var e=this.getSlideDistance(-this.dragX,this.selectedIndex),t=this.previousDragX-this.dragX;return e>0&&t>0?1:e<0&&t<0?-1:0},o.staticClick=function(e,t){var i=this.getParentCell(e.target),n=i&&i.element,r=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",e,[t,n,r])},o.onscroll=function(){var e=r(),t=this.pointerDownScroll.x-e.x,i=this.pointerDownScroll.y-e.y;(Math.abs(t)>3||Math.abs(i)>3)&&this._pointerDone()},t}),function(e,t){"function"==typeof define&&define.amd?define("tap-listener/tap-listener",["unipointer/unipointer"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("unipointer")):e.TapListener=t(e,e.Unipointer)}(window,function(e,t){function i(e){this.bindTap(e)}var n=i.prototype=Object.create(t.prototype);return n.bindTap=function(e){e&&(this.unbindTap(),this.tapElement=e,this._bindStartEvent(e,!0))},n.unbindTap=function(){this.tapElement&&(this._bindStartEvent(this.tapElement,!0),delete this.tapElement)},n.pointerUp=function(i,n){if(!this.isIgnoringMouseUp||"mouseup"!=i.type){var r=t.getPointerPoint(n),o=this.tapElement.getBoundingClientRect(),s=e.pageXOffset,a=e.pageYOffset;if(r.x>=o.left+s&&r.x<=o.right+s&&r.y>=o.top+a&&r.y<=o.bottom+a&&this.emitEvent("tap",[i,n]),"mouseup"!=i.type){this.isIgnoringMouseUp=!0;var l=this;setTimeout(function(){delete l.isIgnoringMouseUp},400)}}},n.destroy=function(){this.pointerDone(),this.unbindTap()},i}),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/prev-next-button",["./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(i,n,r){return t(e,i,n,r)}):"object"==typeof module&&module.exports?module.exports=t(e,require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):t(e,e.Flickity,e.TapListener,e.fizzyUIUtils)}(window,function(e,t,i,n){"use strict";function r(e,t){this.direction=e,this.parent=t,this._create()}var o="http://www.w3.org/2000/svg";r.prototype=Object.create(i.prototype),r.prototype._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var e=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==e;var t=this.element=document.createElement("button");t.className="flickity-button flickity-prev-next-button",t.className+=this.isPrevious?" previous":" next",t.setAttribute("type","button"),this.disable(),t.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var i=this.createSVG();t.appendChild(i),this.on("tap",this.onTap),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},r.prototype.activate=function(){this.bindTap(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},r.prototype.deactivate=function(){this.parent.element.removeChild(this.element),i.prototype.destroy.call(this),this.element.removeEventListener("click",this)},r.prototype.createSVG=function(){var e=document.createElementNS(o,"svg");e.setAttribute("class","flickity-button-icon"),e.setAttribute("viewBox","0 0 100 100");var t=document.createElementNS(o,"path"),i=function(e){return"string"==typeof e?e:"M "+e.x0+",50 L "+e.x1+","+(e.y1+50)+" L "+e.x2+","+(e.y2+50)+" L "+e.x3+",50 L "+e.x2+","+(50-e.y2)+" L "+e.x1+","+(50-e.y1)+" Z"}(this.parent.options.arrowShape);return t.setAttribute("d",i),t.setAttribute("class","arrow"),this.isLeft||t.setAttribute("transform","translate(100, 100) rotate(180) "),e.appendChild(t),e},r.prototype.onTap=function(){if(this.isEnabled){this.parent.uiChange();var e=this.isPrevious?"previous":"next";this.parent[e]()}},r.prototype.handleEvent=n.handleEvent,r.prototype.onclick=function(e){var t=document.activeElement;t&&t==this.element&&this.onTap(e,e)},r.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},r.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},r.prototype.update=function(){var e=this.parent.slides;if(this.parent.options.wrapAround&&e.length>1)this.enable();else{var t=e.length?e.length-1:0,i=this.isPrevious?0:t;this[this.parent.selectedIndex==i?"disable":"enable"]()}},r.prototype.destroy=function(){this.deactivate()},n.extend(t.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),t.createMethods.push("_createPrevNextButtons");var s=t.prototype;return s._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new r(-1,this),this.nextButton=new r(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)},t.PrevNextButton=r,t}),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/page-dots",["./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(i,n,r){return t(e,i,n,r)}):"object"==typeof module&&module.exports?module.exports=t(e,require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):t(e,e.Flickity,e.TapListener,e.fizzyUIUtils)}(window,function(e,t,i,n){function r(e){this.parent=e,this._create()}r.prototype=new i,r.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))},r.prototype.activate=function(){this.setDots(),this.bindTap(this.holder),this.parent.element.appendChild(this.holder)},r.prototype.deactivate=function(){this.parent.element.removeChild(this.holder),i.prototype.destroy.call(this)},r.prototype.setDots=function(){var e=this.parent.slides.length-this.dots.length;e>0?this.addDots(e):e<0&&this.removeDots(-e)},r.prototype.addDots=function(e){for(var t=document.createDocumentFragment(),i=[],n=this.dots.length,r=n+e,o=n;o<r;o++){var s=document.createElement("li");s.className="dot",s.setAttribute("aria-label","Page dot "+(o+1)),t.appendChild(s),i.push(s)}this.holder.appendChild(t),this.dots=this.dots.concat(i)},r.prototype.removeDots=function(e){this.dots.splice(this.dots.length-e,e).forEach(function(e){this.holder.removeChild(e)},this)},r.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"))},r.prototype.onTap=function(e){var t=e.target;if("LI"==t.nodeName){this.parent.uiChange();var i=this.dots.indexOf(t);this.parent.select(i)}},r.prototype.destroy=function(){this.deactivate()},t.PageDots=r,n.extend(t.defaults,{pageDots:!0}),t.createMethods.push("_createPageDots");var o=t.prototype;return o._createPageDots=function(){this.options.pageDots&&(this.pageDots=new r(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))},o.activatePageDots=function(){this.pageDots.activate()},o.updateSelectedPageDots=function(){this.pageDots.updateSelected()},o.updatePageDots=function(){this.pageDots.setDots()},o.deactivatePageDots=function(){this.pageDots.deactivate()},t.PageDots=r,t}),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],function(e,i,n){return t(e,i,n)}):"object"==typeof module&&module.exports?module.exports=t(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity")):t(e.EvEmitter,e.fizzyUIUtils,e.Flickity)}(window,function(e,t,i){function n(e){this.parent=e,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}n.prototype=Object.create(e.prototype),n.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()}},n.prototype.tick=function(){if("playing"==this.state){var e=this.parent.options.autoPlay;e="number"==typeof e?e:3e3;var t=this;this.clear(),this.timeout=setTimeout(function(){t.parent.next(!0),t.tick()},e)}},n.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},n.prototype.clear=function(){clearTimeout(this.timeout)},n.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},n.prototype.unpause=function(){"paused"==this.state&&this.play()},n.prototype.visibilityChange=function(){this[document.hidden?"pause":"unpause"]()},n.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},t.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");var r=i.prototype;return r._createPlayer=function(){this.player=new n(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},r.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},r.playPlayer=function(){this.player.play()},r.stopPlayer=function(){this.player.stop()},r.pausePlayer=function(){this.player.pause()},r.unpausePlayer=function(){this.player.unpause()},r.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},r.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},r.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=n,i}),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(i,n){return t(e,i,n)}):"object"==typeof module&&module.exports?module.exports=t(e,require("./flickity"),require("fizzy-ui-utils")):t(e,e.Flickity,e.fizzyUIUtils)}(window,function(e,t,i){var n=t.prototype;return n.insert=function(e,t){var i=this._makeCells(e);if(i&&i.length){var n=this.cells.length;t=void 0===t?n:t;var r=function(e){var t=document.createDocumentFragment();return e.forEach(function(e){t.appendChild(e.element)
1}),t}(i),o=t==n;if(o)this.slider.appendChild(r);else{var s=this.cells[t].element;this.slider.insertBefore(r,s)}if(0===t)this.cells=i.concat(this.cells);else if(o)this.cells=this.cells.concat(i);else{var a=this.cells.splice(t,n-t);this.cells=this.cells.concat(i).concat(a)}this._sizeCells(i),this.cellChange(t,!0)}},n.append=function(e){this.insert(e,this.cells.length)},n.prepend=function(e){this.insert(e,0)},n.remove=function(e){var t=this.getCells(e);if(t&&t.length){var n=this.cells.length-1;t.forEach(function(e){e.remove();var t=this.cells.indexOf(e);n=Math.min(t,n),i.removeFrom(this.cells,e)},this),this.cellChange(n,!0)}},n.cellSizeChange=function(e){var t=this.getCell(e);if(t){t.getSize();var i=this.cells.indexOf(t);this.cellChange(i)}},n.cellChange=function(e,t){var i=this.selectedElement;this._positionCells(e),this._getWrapShiftCells(),this.setGallerySize();var n=this.getCell(i);n&&(this.selectedIndex=this.getCellSlideIndex(n)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[e]),this.select(this.selectedIndex),t&&this.positionSliderAtSelected()},t}),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],function(i,n){return t(e,i,n)}):"object"==typeof module&&module.exports?module.exports=t(e,require("./flickity"),require("fizzy-ui-utils")):t(e,e.Flickity,e.fizzyUIUtils)}(window,function(e,t,i){"use strict";function n(e){if("IMG"==e.nodeName){var t=e.getAttribute("data-flickity-lazyload"),n=e.getAttribute("data-flickity-lazyload-src"),r=e.getAttribute("data-flickity-lazyload-srcset");if(t||n||r)return[e]}var o=e.querySelectorAll("img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]");return i.makeArray(o)}function r(e,t){this.img=e,this.flickity=t,this.load()}t.createMethods.push("_createLazyload");var o=t.prototype;return o._createLazyload=function(){this.on("select",this.lazyLoad)},o.lazyLoad=function(){var e=this.options.lazyLoad;if(e){var t="number"==typeof e?e:0,i=this.getAdjacentCellElements(t),o=[];i.forEach(function(e){var t=n(e);o=o.concat(t)}),o.forEach(function(e){new r(e,this)},this)}},r.prototype.handleEvent=i.handleEvent,r.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var e=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),t=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=e,t&&this.img.setAttribute("srcset",t),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},r.prototype.onload=function(e){this.complete(e,"flickity-lazyloaded")},r.prototype.onerror=function(e){this.complete(e,"flickity-lazyerror")},r.prototype.complete=function(e,t){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img),n=i&&i.element;this.flickity.cellSizeChange(n),this.img.classList.add(t),this.flickity.dispatchEvent("lazyLoad",e,n)},t.LazyLoader=r,t}),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],t):"object"==typeof module&&module.exports&&(module.exports=t(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload")))}(window,function(e){return e}),function(e,t){"function"==typeof define&&define.amd?define("flickity-as-nav-for/as-nav-for",["flickity/js/index","fizzy-ui-utils/utils"],t):"object"==typeof module&&module.exports?module.exports=t(require("flickity"),require("fizzy-ui-utils")):e.Flickity=t(e.Flickity,e.fizzyUIUtils)}(window,function(e,t){e.createMethods.push("_createAsNavFor");var i=e.prototype;return i._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var e=this.options.asNavFor;if(e){var t=this;setTimeout(function(){t.setNavCompanion(e)})}},i.setNavCompanion=function(i){i=t.getQueryElement(i);var n=e.data(i);if(n&&n!=this){this.navCompanion=n;var r=this;this.onNavCompanionSelect=function(){r.navCompanionSelect()},n.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect(!0)}},i.navCompanionSelect=function(e){if(this.navCompanion){var t=this.navCompanion.selectedCells[0],i=this.navCompanion.cells.indexOf(t),n=i+this.navCompanion.selectedCells.length-1,r=Math.floor(function(e,t,i){return(t-e)*i+e}(i,n,this.navCompanion.cellAlign));if(this.selectCell(r,!1,e),this.removeNavSelectedElements(),!(r>=this.cells.length)){var o=this.cells.slice(i,n+1);this.navSelectedElements=o.map(function(e){return e.element}),this.changeNavSelectedClass("add")}}},i.changeNavSelectedClass=function(e){this.navSelectedElements.forEac
vendor: 4,677 bytes, line 1
1h(function(t){t.classList[e]("is-nav-selected")})},i.activateAsNavFor=function(){this.navCompanionSelect(!0)},i.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},i.onNavStaticClick=function(e,t,i,n){"number"==typeof n&&this.navCompanion.selectCell(n)},i.deactivateAsNavFor=function(){this.removeNavSelectedElements()},i.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){function i(e,t){for(var i in t)e[i]=t[i];return e}function n(e,t,r){if(!(this instanceof n))return new n(e,t,r);var o=e;return"string"==typeof e&&(o=document.querySelectorAll(e)),o?(this.elements=function(e){return Array.isArray(e)?e:"object"==typeof e&&"number"==typeof e.length?l.call(e):[e]}(o),this.options=i({},this.options),"function"==typeof t?r=t:i(this.options,t),r&&this.on("always",r),this.getImages(),s&&(this.jqDeferred=new s.Deferred),void setTimeout(this.check.bind(this))):void a.error("Bad element for imagesLoaded "+(o||e))}function r(e){this.img=e}function o(e,t){this.url=e,this.element=t,this.img=new Image}var s=e.jQuery,a=e.console,l=Array.prototype.slice;n.prototype=Object.create(t.prototype),n.prototype.options={},n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},n.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&c[t]){for(var i=e.querySelectorAll("img"),n=0;n<i.length;n++){var r=i[n];this.addImage(r)}if("string"==typeof this.options.background){var o=e.querySelectorAll(this.options.background);for(n=0;n<o.length;n++){var s=o[n];this.addElementBackgroundImages(s)}}}};var c={1:!0,9:!0,11:!0};return n.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){var r=n&&n[2];r&&this.addBackground(r,e),n=i.exec(t.backgroundImage)}},n.prototype.addImage=function(e){var t=new r(e);this.images.push(t)},n.prototype.addBackground=function(e,t){var i=new o(e,t);this.images.push(i)},n.prototype.check=function(){function e(e,i,n){setTimeout(function(){t.progress(e,i,n)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},n.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+i,e,t)},n.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},r.prototype=Object.create(t.prototype),r.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))},r.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},r.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},r.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},o.prototype=Object.create(r.prototype),o.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())},o.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},o.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},n.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((s=t).fn.imagesLoaded=function(e,t){return new n(this,e,t).jqDeferred.promise(s(this))})},n.makeJQueryPlugin(),n}),function(e,t){"function"==typeof define&&define.amd?define(["flickity/js/index","imagesloaded/imagesloaded"],function(i,n){return t(e,i,n)}):"object"==typeof module&&module.exports?module.exports=t(e,require("flickity"),require("imagesloaded")):e.Flickity=t(e,e.Flickity,e.imagesLoaded)}(window,function(e,t,i){"use strict";t.createMethods.push("_createImagesLoaded");var n=t.prototype;return n._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},n.imagesLoaded=function(){if(this.options.imagesLoaded){var e=this;i(this.slider).on("progress",function(t,i){var n=e.getParentCell(i.img);e.cellSizeChange(n&&n.element),e.options.freeScroll||e.positionSliderAtSelected()})}},t}),function(e,t,i){function n(e,t){return typeof e===t}function r(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):d?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function o(){var e=t.body;return e||((e=r(d?"svg":"body")).fake=!0),e}var s=[],a=[],l={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var i=this;setTimeout(function(){t(i[e])},0)},addTest:function(e,t,i){a.push({name:e,fn:t,options:i})},addAsyncTest:function(e){a.push({name:null,fn:e})}},c=function(){};c.prototype=l,c=new c;var u=t.documentElement,d="svg"===u.nodeName.toLowerCase(),h=l._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];l._prefixes=h;var p=l.testStyles=function(e,i,n,s){var a,l,c,d,h="modernizr",p=r("div"),f=o();if(parseInt(n,10))for(;n--;)(c=r("div")).id=s?s[n]:h+(n+1),p.appendChild(c);return(a=r("style")).type="text/css",a.id="s"+h,(f.fake?f:p).appendChild(a),f.appendChild(p),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(t.createTextNode(e)),p.id=h,f.fake&&(f.style.background="",f.style.overflow="hidden",d=u.style.overflow,u.style.overflow="hidden",u.appendChild(f)),l=i(p,e),f.fake?(f.parentNode.removeChild(f),u.style.overflow=d,u.offsetHeight):p.parentNode.removeChild(p),!!l};c.addTest("touchevents",function(){var i;if("ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch)i=!0;else{var n=["@media (",h.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");p(n,function(e){i=9===e.offsetTop})}return i}),function(){var e,t,i,r,o,l;for(var u in a)if(a.hasOwnProperty(u)){if(e=[],(t=a[u]).name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(i=0;i<t.options.aliases.length;i++)e.push(t.options.aliases[i].toLowerCase());for(r=n(t.fn,"function")?t.fn():t.fn,o=0;o<e.length;o++)1===(l=e[o].split(".")).length?c[l[0]]=r:(!c[l[0]]||c[l[0]]instanceof Boolean||(c[l[0]]=new Boolean(c[l[0]])),c[l[0]][l[1]]=r),s.push((r?"":"no-")+l.join("-"))}}(),function(e){var t=u.className,i=c._config.classPrefix||"";if(d&&(t=t.baseVal),c._config.enableJSClass){var n=new RegExp("(^|\\s)"+i+"no-js(\\s|$)");t=t.replace(n,"$1"+i+"js$2")}c._config.enableClasses&&(t+=" "+i+e.join(" "+i),d?u.className.baseVal=t:u.className=t)}(s),delete l.addTest,delete l.addAsyncTest;for(var f=0;f<c._q.length;f++)c._q[f]();e.Modernizr=c}(window,document),function(e,t){"function"==typeof define&&define.amd?define([],function(){return t()}):"object"==typeof exports?module.exports=t():e.Headhesive=t()}(this,function(){"use strict";var e=function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]="object"==typeof i[n]?e(t[n],i[n]):i[n]);return t},t=function(e,t){var i,n,r,o=Date.now||function(){return(new Date).getTime()},s=null,a=0,l=function(){a=o(),s=null,r=e.apply(i,n),i=n=null};return function(){var c=o(),u=t-(c-a);return i=this,n=arguments,0>=u?(clearTimeout(s),s=null,a=c,r=e.apply(i,n),i=n=null):s||(s=setTimeout(l,u)),r}},i=function(t,i){"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 t?document.querySelector(t):t,this.options=e(this.options,i),this.init())};return i.prototype={constructor:i,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=t(this.update.bind(this),this.options.throttle),this._throttleScrollOffset=t(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(e,t){for(var i=0,n=e.offsetHeight;e;)i+=e.offsetTop,e=e.offsetParent;return"bottom"===t&&(i+=n),i}(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()}},i}),function(){var e=function(){function e(e){return decodeURIComponent(e.replace(/\+/g," "))}function t(e,t){var i=e.charAt(0),n=t.split(i);return i===e?n:n[(e=parseInt(e.substring(1),10))<0?n.length+e:e-1]}function i(t,i){for(var n=t.charAt(0),r=i.split("&"),o=[],s={},a=[],l=t.substring(1),c=0,u=r.length;c<u;c++)if((o=r[c].match(/(.*?)=(.*)/))||(o=[r[c],r[c],""]),""!==o[1].replace(/\s/g,"")){if(o[2]=e(o[2]||""),l===o[1])return o[2];(a=o[1].match(/(.*)\[([0-9]+)\]/))?(s[a[1]]=s[a[1]]||[],s[a[1]][a[2]]=o[2]):s[o[1]]=o[2]}return n===t?s:s[l]}return function(e,n){var r,o={};if("tld?"!==e){if(n=n||window.location.toString(),!e)return n;if(e=e.toString(),r=n.match(/^mailto:([^\/].+)/))o.protocol="mailto",o.email=r[1];
1else{if((r=n.match(/(.*?)\/#\!(.*)/))&&(n=r[1]+r[2]),(r=n.match(/(.*?)#(.*)/))&&(o.hash=r[2],n=r[1]),o.hash&&e.match(/^#/))return i(e,o.hash);if((r=n.match(/(.*?)\?(.*)/))&&(o.query=r[2],n=r[1]),o.query&&e.match(/^\?/))return i(e,o.query);if((r=n.match(/(.*?)\:?\/\/(.*)/))&&(o.protocol=r[1].toLowerCase(),n=r[2]),(r=n.match(/(.*?)(\/.*)/))&&(o.path=r[2],n=r[1]),o.path=(o.path||"").replace(/^([^\/])/,"/$1"),e.match(/^[\-0-9]+$/)&&(e=e.replace(/^([^\/])/,"/$1")),e.match(/^\//))return t(e,o.path.substring(1));if((r=t("/-1",o.path.substring(1)))&&(r=r.match(/(.*?)\.(.*)/))&&(o.file=r[0],o.filename=r[1],o.fileext=r[2]),(r=n.match(/(.*)\:([0-9]+)$/))&&(o.port=r[2],n=r[1]),(r=n.match(/(.*?)@(.*)/))&&(o.auth=r[1],n=r[2]),o.auth&&(r=o.auth.match(/(.*)\:(.*)/),o.user=r?r[1]:o.auth,o.pass=r?r[2]:void 0),o.hostname=n.toLowerCase(),"."===e.charAt(0))return t(e,o.hostname);o.port=o.port||("https"===o.protocol?"443":"80"),o.protocol=o.protocol||("443"===o.port?"https":"http")}return e in o?o[e]:"{}"===e?o:void 0}}}();"function"==typeof window.define&&window.define.amd?window.define("js-url",[],function(){return e}):(void 0!==window.jQuery&&window.jQuery.extend({url:function(e,t){return window.url
1(e,t)}}),window.url=e)}();var objectFitImages=function(){"use strict";function e(e,t,i){var n=function(e,t){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='"+e+"' height='"+(i||0)+"'%3E%3C/svg%3E"}(t||1);h.call(e,"src")!==n&&p.call(e,"src",n)}function t(e,i){e.naturalWidth?i(e):setTimeout(t,100,e,i)}function i(i){var r=function(e){for(var t,i=getComputedStyle(e).fontFamily,n={};null!==(t=s.exec(i));)n[t[1]]=t[2];return n}(i),a=i[o];if(r["object-fit"]=r["object-fit"]||"fill",!a.img){if("fill"===r["object-fit"])return;if(!a.skipTest&&l&&!r["object-position"])return}if(!a.img){a.img=new Image(i.width,i.height),a.img.srcset=h.call(i,"data-ofi-srcset")||i.srcset,a.img.src=h.call(i,"data-ofi-src")||i.src,p.call(i,"data-ofi-src",i.src),i.srcset&&p.call(i,"data-ofi-srcset",i.srcset),e(i,i.naturalWidth||i.width,i.naturalHeight||i.height),i.srcset&&(i.srcset="");try{n(i)}catch(i){window.console&&console.warn("https://bit.ly/ofi-old-browser")}}(function(e){if(e.srcset&&!d&&window.picturefill){var t=window.picturefill._;e[t.ns]&&e[t.ns].evaled||t.fillImg(e,{reselect:!0}),e[t.ns].curSrc||(e[t.ns].supported=!1,t.fillImg(e,{reselect:!0})),e.currentSrc=e[t.ns].curSrc||e.src}})(a.img),i.style.backgroundImage='url("'+(a.img.currentSrc||a.img.src).replace(/"/g,'\\"')+'")',i.style.backgroundPosition=r["object-position"]||"center",i.style.backgroundRepeat="no-repeat",i.style.backgroundOrigin="content-box",/scale-down/.test(r["object-fit"])?t(a.img,function(){a.img.naturalWidth>i.width||a.img.naturalHeight>i.height?i.style.backgroundSize="contain":i.style.backgroundSize="auto"}):i.style.backgroundSize=r["object-fit"].replace("none","auto").replace("fill","100% 100%"),t(a.img,function(t){e(i,t.naturalWidth,t.naturalHeight)})}function n(e){var t={get:function(t){return e[o].img[t||"src"]},set:function(t,n){return e[o].img[n||"src"]=t,p.call(e,"data-ofi-"+n,t),i(e),t}};Object.defineProperty(e,"src",t),Object.defineProperty(e,"currentSrc",{get:function(){return t.get("currentSrc")}}),Object.defineProperty(e,"srcset",{get:function(){return t.get("srcset")},set:function(e){return t.set(e,"srcset")}})}function r(e,t){var n=!f&&!e;if(t=t||{},e=e||"img",c&&!t.skipTest||!u)return!1;"img"===e?e=document.getElementsByTagName("img"):"string"==typeof e?e=document.querySelectorAll(e):"length"in e||(e=[e]);for(var s=0;s<e.length;s++)e[s][o]=e[s][o]||{skipTest:t.skipTest},i(e[s]);n&&(document.body.addEventListener("load",function(e){"IMG"===e.target.tagName&&r(e.target,{skipTest:t.skipTest})},!0),f=!0,e="img"),t.watchMQ&&window.addEventListener("resize",r.bind(null,e,{skipTest:t.skipTest}))}var o="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,d="string"==typeof a.currentSrc,h=a.getAttribute,p=a.setAttribute,f=!1;return r.supportsObjectFit=l,r.supportsObjectPosition=c,function(){function e(e,t){return e[o]&&e[o].img&&("src"===t||"srcset"===t)?e[o].img:e}c||(HTMLImageElement.prototype.getAttribute=function(t){return h.call(e(this,t),t)},HTMLImageElement.prototype.setAttribute=function(t,i){return p.call(e(this,t),t,String(i))})}(),r}();!function(e){e.extend(e.expr[":"],{"off-top":function(t){return e(t).offset().top<e(window).scrollTop()},"off-right":function(t){return e(t).offset().left+e(t).outerWidth()-e(window).scrollLeft()>e(window).width()},"off-bottom":function(t){return e(t).offset().top+e(t).outerHeight()-e(window).scrollTop()>e(window).height()},"off-left":function(t){return e(t).offset().left<e(window).scrollLeft()},"off-screen":function(t){return e(t).is(":off-top, :off-right, :off-bottom, :off-left")}})}(jQuery),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.lazyframe=t()}(this,function(){"use strict";var e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};return function(){function t(e){var t=this;if(e instanceof HTMLElement!=0&&!e.classList.contains("lazyframe--loaded")){var n={el:e,settings:i(e)};n.el.addEventListener("click",function(){n.el.appendChild(n.iframe);var i=e.querySelectorAll("iframe");n.settings.onAppend.call(t,i[0])}),s.lazyload?o(n):r(n,n.settings.thumbnail)}}function i(t){var i=Array.prototype.slice.apply(t.attributes).filter(function(e){return""!==e.value}).reduce(function(e,t){return e[0===t.name.indexOf("data-")?t.name.split("data-")[1]:t.name]=t.value,e},{}),r=e({},s,i,{y:t.offsetTop,parameters:n(i.src)});if(r.vendor){var o=r.src.match(c.regex[r.vendor]);r.id=c.condition[r.vendor](o)}return r}function n(e){var t=e.split("?");return t[1]?-1!==(t=t[1]).indexOf("autoplay")?t:t+"&autoplay=1":"autoplay=1"}function r(e){var t=this;!function(e){return!(!e.vendor||e.title&&e.thumbnail||("youtube"===e.vendor||"youtube_nocookie"===e.vendor)&&!e.apikey)}(e.settings)?o(e,!0):function(e,t){var i=c.endpoints[e.settings.vendor](e.settings),n=new XMLHttpRequest;n.open("GET",i,!0),n.onload=function(){if(n.status>=200&&n.status<400){var i=JSON.parse(n.responseText);t(null,[i,e])}else t(!0)},n.onerror=function(){t(!0)},n.send()}(e,function(i,n){if(!i){var r=n[0],s=n[1];if(s.settings.title||(s.settings.title=c.response[s.settings.vendor].title(r)),!s.settings.thumbnail){var a=c.response[s.settings.vendor].thumbnail(r);s.settings.thumbnail=a,e.settings.onThumbnailLoad.call(t,a)}o(s,!0)}})}function o(e,t){if(e.iframe=function(e){var t=document.createDocumentFragment(),i=document.createElement("iframe");
1if(e.vendor&&(e.src=c.src[e.vendor](e)),i.setAttribute("id","lazyframe-"+e.id),i.setAttribute("src",e.src),i.setAttribute("frameborder",0),i.setAttribute("allowfullscreen",""),"vine"===e.vendor){var n=document.createElement("script");n.setAttribute("src","https://platform.vine.co/static/scripts/embed.js"),t.appendChild(n)}return t.appendChild(i),t}(e.settings),e.settings.thumbnail&&t&&(e.el.style.backgroundImage="url("+e.settings.thumbnail+")"),e.settings.title&&0===e.el.children.length){var i=document.createDocumentFragment(),n=document.createElement("span");n.className="lazyframe__title",n.innerHTML=e.settings.title,i.appendChild(n),e.el.appendChild(i)}s.lazyload||(e.el.classList.add("lazyframe--loaded"),e.settings.onLoad.call(this,e),a.push(e)),e.settings.initialized||a.push(e)}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(e){},onAppend:function(e){},onThumbnailLoad:function(e){}},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(e){return!(!e||11!=e[1].length)&&e[1]},youtube_nocookie:function(e){return!(!e||11!=e[1].length)&&e[1]},vimeo:function(e){return!!(e&&9===e[1].length||8===e[1].length)&&e[1]},vine:function(e){return!(!e||11!==e[1].length)&&e[1]}},src:{youtube:function(e){return"https://www.youtube.com/embed/"+e.id+"/?"+e.parameters},youtube_nocookie:function(e){return"https://www.youtube-nocookie.com/embed/"+e.id+"/?"+e.parameters},vimeo:function(e){return"https://player.vimeo.com/video/"+e.id+"/?"+e.parameters},vine:function(e){return"https://vine.co/v/"+e.id+"/embed/simple"}},endpoints:{youtube:function(e){return"https://www.googleapis.com/youtube/v3/videos?id="+e.id+"&key="+e.apikey+"&fields=items(snippet(title,thumbnails))&part=snippet"},youtube_nocookie:function(e){return"https://www.googleapis.com/youtube/v3/videos?id="+e.id+"&key="+e.apikey+"&fields=items(snippet(title,thumbnails))&part=snippet"},vimeo:function(e){return"https://vimeo.com/api/oembed.json?url=https%3A//vimeo.com/"+e.id},vine:function(e){return"https://vine.co/oembed.json?url=https%3A%2F%2Fvine.co%2Fv%2F"+e.id}},response:{youtube:{title:function(e){return e.items[0].snippet.title},thumbnail:function(e){var t=e.items[0].snippet.thumbnails;return(t.maxres||t.standard||t.high||t.medium||t.default).url}},youtube_nocookie:{title:function(e){return e.items[0].snippet.title},thumbnail:function(e){var t=e.items[0].snippet.thumbnails;return(t.maxres||t.standard||t.high||t.medium||t.default).url}},vimeo:{title:function(e){return e.title},thumbnail:function(e){return e.thumbnail_url}},vine:{title:function(e){return e.title},thumbnail:function(e){return e.thumbnail_url}}}};return function(i){if(s=e({},l,arguments.length<=1?void 0:arguments[1]),"string"==typeof i)for(var n=document.querySelectorAll(i),o=0;o<n.length;o++)t(n[o]);else if(void 0===i.length)t(i);else if(i.length>1)for(var c=0;c<i.length;c++)t(i[c]);else t(i[0]);s.lazyload&&function(){var e=this,t=window.innerHeight,i=a.length,n=function(t,n){t.settings.initialized=!0,t.el.classList.add("lazyframe--loaded"),i--,r(t),t.settings.initinview&&t.el.click(),t.settings.onLoad.call(e,t)};a.filter(function(e){return e.settings.y<t}).forEach(n);var o=function(e,t,i){var n=void 0;return function(){var i=this,r=arguments;clearTimeout(n),n=setTimeout(function(){n=null,e.apply(i,r)},t)}}(function(){c=l<window.pageYOffset,l=window.pageYOffset,c&&a.filter(function(e){return e.settings.y<t+l&&!1===e.settings.initialized}).forEach(n),0===i&&window.removeEventListener("scroll",o,!1)},s.debounce),l=0,c=!1;window.addEventListener("scroll",o,!1)}()}}()}),function(e,t,i,n){"use strict";function r(e,t){var n,r,o,s=[],a=0;e&&e.isDefaultPrevented()||(e.preventDefault(),t=t||{},e&&e.data&&(t=p(e.data.options,t)),n=t.$target||i(e.currentTarget).trigger("blur"),(o=i.fancybox.getInstance())&&o.$trigger&&o.$trigger.is(n)||(s=t.selector?i(t.selector):(r=n.attr("data-fancybox")||"")?(s=e.data?e.data.items:[]).length?s.filter('[data-fancybox="'+r+'"]'):i('[data-fancybox="'+r+'"]'):[n],(a=i(s).index(n))<0&&(a=0),(o=i.fancybox.open(s,t,a)).$trigger=n))}if(e.console=e.console||{info:function(e){}},i){if(i.fn.fancybox)return void console.info("fancyBox already initialized");var o={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">
1<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:i.noop,beforeLoad:i.noop,afterLoad:i.noop,beforeShow:i.noop,afterShow:i.noop,beforeClose:i.noop,afterClose:i.noop,onActivate:i.noop,onDeactivate:i.noop,clickContent:function(e,t){return"image"===e.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(e,t){return"image"===e.type&&"toggleControls"},clickSlide:function(e,t){return"image"===e.type?"toggleControls":"close"},dblclickContent:function(e,t){return"image"===e.type&&"zoom"},dblclickSlide:function(e,t){return"image"===e.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:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergrößern"}}},s=i(e),a=i(t),l=0,c=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)},u=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||function(t){e.clearTimeout(t)},d=function(){var e,i=t.createElement("fakeelement"),n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in n)if(void 0!==i.style[e])return n[e];return"transitionend"}(),h=function(e){return e&&e.length&&e[0].offsetHeight},p=function(e,t){var n=i.extend(!0,{},e,t);return i.each(t,function(e,t){i.isArray(t)&&(n[e]=t)}),n},f=function(e){var n,r;return!(!e||e.ownerDocument!==t)&&(i(".fancybox-container").css("pointer-events","none"),n={x:e.getBoundingClientRect().left+e.offsetWidth/2,y:e.getBoundingClientRect().top+e.offsetHeight/2},r=t.elementFromPoint(n.x,n.y)===e,i(".fancybox-container").css("pointer-events",""),r)},m=function(e,t,n){var r=this;r.opts=p({index:n},i.fancybox.defaults),i.isPlainObject(t)&&(r.opts=p(r.opts,t)),i.fancybox.isMobile&&(r.opts=p(r.opts,r.opts.mobile)),r.id=r.opts.id||++l,r.currIndex=parseInt(r.opts.index,10)||0,r.prevIndex=null,r.prevPos=null,r.currPos=0,r.firstRun=!0,r.group=[],r.slides={},r.addContent(e),r.group.length&&r.init()};i.extend(m.prototype,{init:function(){var n,r,o=this,s=o.group[o.currIndex].opts;s.closeExisting&&i.fancybox.close(!0),i("body").addClass("fancybox-active"),!i.fancybox.getInstance()&&!1!==s.hideScrollbar&&!i.fancybox.isMobile&&t.body.scrollHeight>
vendor: 49,015 bytes, line 1
1e.innerHeight&&(i("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(e.innerWidth-t.documentElement.clientWidth)+"px;}</style>"),i("body").addClass("compensate-for-scrollbar")),r="",i.each(s.buttons,function(e,t){r+=s.btnTpl[t]||""}),n=i(o.translate(o,s.baseTpl.replace("{{buttons}}",r).replace("{{arrows}}",s.btnTpl.arrowLeft+s.btnTpl.arrowRight))).attr("id","fancybox-container-"+o.id).addClass(s.baseClass).data("FancyBox",o).appendTo(s.parentEl),o.$refs={container:n},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(e){o.$refs[e]=n.find(".fancybox-"+e)}),o.trigger("onInit"),o.activate(),o.jumpTo(o.currIndex)},translate:function(e,t){var i=e.opts.i18n[e.opts.lang]||e.opts.i18n.en;return t.replace(/\{\{(\w+)\}\}/g,function(e,t){return void 0===i[t]?e:i[t]})},addContent:function(e){var t,n=this,r=i.makeArray(e);i.each(r,function(e,t){var r,o,s,a,l,c={},u={};i.isPlainObject(t)?(c=t,u=t.opts||t):"object"===i.type(t)&&i(t).length?(u=(r=i(t)).data()||{},(u=i.extend(!0,{},u,u.options)).$orig=r,c.src=n.opts.src||u.src||r.attr("href"),c.type||c.src||(c.type="inline",c.src=t)):c={type:"html",src:t+""},c.opts=i.extend(!0,{},n.opts,u),i.isArray(u.buttons)&&(c.opts.buttons=u.buttons),i.fancybox.isMobile&&c.opts.mobile&&(c.opts=p(c.opts,c.opts.mobile)),o=c.type||c.opts.type,a=c.src||"",!o&&a&&((s=a.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(o="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)?o="image":a.match(/\.(pdf)((\?|#).*)?$/i)?(o="iframe",c=i.extend(!0,c,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===a.charAt(0)&&(o="inline")),o?c.type=o:n.trigger("objectNeedsType",c),c.contentType||(c.contentType=i.inArray(c.type,["html","inline","ajax"])>-1?"html":c.type),c.index=n.group.length,"auto"==c.opts.smallBtn&&(c.opts.smallBtn=i.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===n.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"===i.type(c.opts.caption)&&(c.opts.caption=c.opts.caption.apply(t,[n,c])),"function"===i.type(n.opts.caption)&&(c.opts.caption=n.opts.caption.apply(t,[n,c])),c.opts.caption instanceof i||(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=i.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})),n.group.push(c)}),Object.keys(n.slides).length&&(n.updateControls(),(t=n.Thumbs)&&t.isActive&&(t.create(),t.focus()))},addEvents:function(){var t=this;t.removeEvents(),t.$refs.container.on("click.fb-close","[data-fancybox-close]",function(e){e.stopPropagation(),e.preventDefault(),t.close(e)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(e){e.stopPropagation(),e.preventDefault(),t.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(e){e.stopPropagation(),e.preventDefault(),t.next()}).on("click.fb","[data-fancybox-zoom]",function(e){t[t.isScaledDown()?"scaleToActual":"scaleToFit"]()}),s.on("orientationchange.fb resize.fb",function(e){e&&e.originalEvent&&"resize"===e.originalEvent.type?(t.requestId&&u(t.requestId),t.requestId=c(function(){t.update(e)})):(t.current&&"iframe"===t.current.type&&t.$refs.stage.hide(),setTimeout(function(){t.$refs.stage.show(),t.update(e)},i.fancybox.isMobile?600:250))}),a.on("keydown.fb",function(e){var n=(i.fancybox?i.fancybox.getInstance():null).current,r=e.keyCode||e.which;if(9!=r)return!n.opts.keyboard||e.ctrlKey||e.altKey||e.shiftKey||i(e.target).is("input,textarea,video,audio")?void 0:8===r||27===r?(e.preventDefault(),void t.close(e)):37===r||38===r?(e.preventDefault(),void t.previous()):39===r||40===r?(e.preventDefault(),void t.next()):void t.trigger("afterKeydown",e,r);n.opts.trapFocus&&t.focus(e)}),t.group[t.currIndex].opts.idleTime&&(t.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(e){t.idleSecondsCounter=0,t.isIdle&&t.showControls(),t.isIdle=!1}),t.idleInterval=e.setInterval(function(){++t.idleSecondsCounter>=t.group[t.currIndex].opts.idleTime&&!t.isDragging&&(t.isIdle=!0,t.idleSecondsCounter=0,t.hideControls())},1e3))},removeEvents:function(){var t=this;s.off("orientationchange.fb resize.fb"),a.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),t.idleInterval&&(e.clearInterval(t.idleInterval),t.idleInterval=null)},previous:function(e){return this.jumpTo(this.currPos-1,e)},next:function(e){return this.jumpTo(this.currPos+1,e)},jumpTo:function(e,t){var n,r,o,s,a,l,c,u,d,p=this,f=p.group.length;if(!(p.isDragging||p.isClosing||p.isAnimating&&p.firstRun)){if(e=parseInt(e,10),!(o=p.current?p.current.opts.loop:p.opts.loop)&&(e<0||e>=f))return!1;if(n=p.firstRun=!Object.keys(p.slides).length,a=p.current,p.prevIndex=p.currIndex,p.prevPos=p.currPos,s=p.createSlide(e),f>1&&((o||s.index<f-1)&&p.createSlide(e+1),(o||s.index>0)&&p.createSlide(e-1)),p.current=s,p.currIndex=s.index,p.currPos=s.pos,p.trigger("beforeShow",n),p.updateControls(),s.forcedDuration=void 0,i.isNumeric(t)?s.forcedDuration=t:t=s.opts[n?"animationDuration":"transitionDuration"],t=parseInt(t,10),r=p.isMoved(s),s.$slide.addClass("fancybox-slide--current"),n)return s.opts.animationEffect&&t&&p.$refs.container.css("transition-duration",t+"ms"),p.$refs.container.addClass("fancybox-is-open").trigger("focus"),p.loadSlide(s),void p.preload("image");l=i.fancybox.getTranslate(a.$slide),c=i.fancybox.getTranslate(p.$refs.stage),i.each(p.slides,function(e,t){i.fancybox.stop(t.$slide,!0)}),a.pos!==s.pos&&(a.isComplete=!1),a.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"),r?(d=l.left-(a.pos*l.width+a.pos*a.opts.gutter),i.each(p.slides,function(e,n){n.$slide.removeClass("fancybox-animated").removeClass(function(e,t){return(t.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});var r=n.pos*l.width+n.pos*n.opts.gutter;i.fancybox.setTranslate(n.$slide,{top:0,left:r-c.left+d}),n.pos!==s.pos&&n.$slide.addClass("fancybox-slide--"+(n.pos>s.pos?"next":"previous")),h(n.$slide),i.fancybox.animate(n.$slide,{top:0,left:(n.pos-s.pos)*l.width+(n.pos-s.pos)*n.opts.gutter},t,function(){n.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous"),n.pos===p.currPos&&p.complete()})})):t&&s.opts.transitionEffect&&(u="fancybox-animated fancybox-fx-"+s.opts.transitionEffect,a.$slide.addClass("fancybox-slide--"+(a.pos>s.pos?"next":"previous")),i.fancybox.animate(a.$slide,u,t,function(){a.$slide.removeClass(u).removeClass("fancybox-slide--next fancybox-slide--previous")},!1)),s.isLoaded?p.revealContent(s):p.loadSlide(s),p.preload("image")}},createSlide:function(e){var t,n,r=this;return n=(n=e%r.group.length)<0?r.group.length+n:n,!r.slides[e]&&r.group[n]&&(t=i('<div class="fancybox-slide"></div>').appendTo(r.$refs.stage),r.slides[e]=i.extend(!0,{},r.group[n],{pos:e,$slide:t,isLoaded:!1}),r.updateSlide(r.slides[e])),r.slides[e]},scaleToActual:function(e,t,n){var r,o,s,a,l,c=this,u=c.current,d=u.$content,h=i.fancybox.getTranslate(u.$slide).width,p=i.fancybox.getTranslate(u.$slide).height,f=u.width,m=u.height;c.isAnimating||c.isMoved()||!d||"image"!=u.type||!u.isLoaded||u.hasError||(c.isAnimating=!0,i.fancybox.stop(d),e=void 0===e?.5*h:e,t=void 0===t?.5*p:t,(r=i.fancybox.getTranslate(d)).top-=i.fancybox.getTranslate(u.$slide).top,r.left-=i.fancybox.getTranslate(u.$slide).left,a=f/r.width,l=m/r.height,o=.5*h-.5*f,s=.5*p-.5*m,f>h&&((o=r.left*a-(e*a-e))>0&&(o=0),o<h-f&&(o=h-f)),m>p&&((s=r.top*l-(t*l-t))>0&&(s=0),s<p-m&&(s=p-m)),c.updateCursor(f,m),i.fancybox.animate(d,{top:s,left:o,scaleX:a,scaleY:l},n||366,function(){c.isAnimating=!1}),c.SlideShow&&c.SlideShow.isActive&&c.SlideShow.stop())},scaleToFit:function(e){var t,n=this,r=n.current,o=r.$content;n.isAnimating||n.isMoved()||!o||"image"!=r.type||!r.isLoaded||r.hasError||(n.isAnimating=!0,i.fancybox.stop(o),t=n.getFitPos(r),n.updateCursor(t.width,t.height),i.fancybox.animate(o,{top:t.top,left:t.left,scaleX:t.width/o.width(),scaleY:t.height/o.height()},e||366,function(){n.isAnimating=!1}))},getFitPos:function(e){var t,n,r,o,s=e.$content,a=e.$slide,l=e.width||e.opts.width,c=e.height||e.opts.height,u={};return!!(e.isLoaded&&s&&s.length)&&(t=i.fancybox.getTranslate(this.$refs.stage).width,n=i.fancybox.getTranslate(this.$refs.stage).height,t-=parseFloat(a.css("paddingLeft"))+parseFloat(a.css("paddingRight"))+parseFloat(s.css("marginLeft"))+parseFloat(s.css("marginRight")),n-=parseFloat(a.css("paddingTop"))+parseFloat(a.css("paddingBottom"))+parseFloat(s.css("marginTop"))+parseFloat(s.css("marginBottom")),l&&c||(l=t,c=n),(l*=r=Math.min(1,t/l,n/c))>t-.5&&(l=t),(c*=r)>n-.5&&(c=n),"image"===e.type?(u.top=Math.floor(.5*(n-c))+parseFloat(a.css("paddingTop")),u.left=Math.floor(.5*(t-l))+parseFloat(a.css("paddingLeft"))):"video"===e.contentType&&(c>l/(o=e.opts.width&&e.opts.height?l/c:e.opts.ratio||16/9)?c=l/o:l>c*o&&(l=c*o)),u.width=l,u.height=c,u)},update:function(e){var t=this;i.each(t.slides,function(i,n){t.updateSlide(n,e)})},updateSlide:function(e,t){var n=this,r=e&&e.$content,o=e.width||e.opts.width,s=e.height||e.opts.height,a=e.$slide;n.adjustCaption(e),r&&(o||s||"video"===e.contentType)&&!e.hasError&&(i.fancybox.stop(r),i.fancybox.setTranslate(r,n.getFitPos(e)),e.pos===n.currPos&&(n.isAnimating=!1,n.updateCursor())),n.adjustLayout(e),a.length&&(a.trigger("refresh"),e.pos===n.currPos&&n.$refs.toolbar.add(n.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",a.get(0).scrollHeight>a.get(0).clientHeight)),n.trigger("onUpdate",e,t)},centerSlide:function(e){var t=this,n=t.current,r=n.$slide;!t.isClosing&&n&&(r.siblings().css({transform:"",opacity:""}),r.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"),i.fancybox.animate(r,{top:0,left:0,opacity:1},void 0===e?0:e,function(){r.css({transform:"",opacity:""}),n.isComplete||t.complete()},!1))},isMoved:function(e){var t,n,r=e||this.current;return!!r&&(n=i.fancybox.getTranslate(this.$refs.stage),t=i.fancybox.getTranslate(r.$slide),!r.$slide.hasClass("fancybox-animated")&&(Math.abs(t.top-n.top)>.5||Math.abs(t.left-n.left)>.5))},updateCursor:function(e,t){var n,r,o=this,s=o.current,a=o.$refs.container;s&&!o.isClosing&&o.Guestures&&(a.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"),r=!!(n=o.canPan(e,t))||o.isZoomable(),a.toggleClass("fancybox-is-zoomable",r),i("[data-fancybox-zoom]").prop("disabled",!r),n?a.addClass("fancybox-can-pan"):r&&("zoom"===s.opts.clickContent||i.isFunction(s.opts.clickContent)&&"zoom"==s.opts.clickContent(s))?a.addClass("fancybox-can-zoomIn"):s.opts.touch&&(s.opts.touch.vertical||o.group.length>1)&&"video"!==s.contentType&&a.addClass("fancybox-can-swipe"))},isZoomable:function(){var e,t=this,i=t.current;if(i&&!t.isClosing&&"image"===i.type&&!i.hasError){if(!i.isLoaded)return!0;if((e=t.getFitPos(i))&&(i.width>e.width||i.height>e.height))return!0}return!1},isScaledDown:function(e,t){var n=!1,r=this.current,o=r.$content;return void 0!==e&&void 0!==t?n=e<r.width&&t<r.height:o&&(n=(n=i.fancybox.getTranslate(o)).width<r.width&&n.height<r.height),n},canPan:function(e,t){var n=this.current,r=null,o=!1;return"image"===n.type&&(n.isComplete||e&&t)&&!n.hasError&&(o=this.getFitPos(n),void 0!==e&&void 0!==t?r={width:e,height:t}:n.isComplete&&(r=i.fancybox.getTranslate(n.$content)),r&&o&&(o=Math.abs(r.width-o.width)>1.5||Math.abs(r.height-o.height)>1.5)),o},loadSlide:function(e){var t,n,r,o=this;if(!e.isLoading&&!e.isLoaded){if(e.isLoading=!0,!1===o.trigger("beforeLoad",e))return e.isLoading=!1,!1;switch(t=e.type,(n=e.$slide).off("refresh").trigger("onReset").addClass(e.opts.slideClass),t){case"image":o.setImage(e);break;case"iframe":o.setIframe(e);break;case"html":o.setContent(e,e.src||e.content);break;case"video":o.setContent(e,e.opts.video.tpl.replace(/\{\{src\}\}/gi,e.src).replace("{{format}}",e.opts.videoFormat||e.opts.video.format||"").replace("{{poster}}",e.thumb||""));break;case"inline":i(e.src).length?o.setContent(e,i(e.src)):o.setError(e);break;case"ajax":o.showLoading(e),r=i.ajax(i.extend({},e.opts.ajax.settings,{url:e.src,success:function(t,i){"success"===i&&o.setContent(e,t)},error:function(t,i){t&&"abort"!==i&&o.setError(e)}})),n.one("onReset",function(){r.abort()});break;default:o.setError(e)}return!0}},setImage:function(e){var n,r=this;setTimeout(function(){var t=e.$image;r.isClosing||!e.isLoading||t&&t.length&&t[0].complete||e.hasError||r.showLoading(e)},50),r.checkSrcset(e),e.$content=i('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(e.$slide.addClass("fancybox-slide--image")),!1!==e.opts.preload&&e.opts.width&&e.opts.height&&e.thumb&&(e.width=e.opts.width,e.height=e.opts.height,(n=t.createElement("img")).onerror=function(){i(this).remove(),e.$ghost=null},n.onload=function(){r.afterLoad(e)},e.$ghost=i(n).addClass("fancybox-image").appendTo(e.$content).attr("src",e.thumb)),r.setBigImage(e)},checkSrcset:function(t){var i,n,r,o,s=t.opts.srcset||t.opts.image.srcset;if(s){r=e.devicePixelRatio||1,o=e.innerWidth*r,(n=s.split(",").map(function(e){var t={};return e.trim().split(/\s+/).forEach(function(e,i){var n=parseInt(e.substring(0,e.length-1),10);if(0===i)return t.url=e;n&&(t.value=n,t.postfix=e[e.length-1])}),t})).sort(function(e,t){return e.value-t.value});for(var a=0;a<n.length;a++){var l=n[a];if("w"===l.postfix&&l.value>=o||"x"===l.postfix&&l.value>=r){i=l;break}}!i&&n.length&&(i=n[n.length-1]),i&&(t.src=i.url,t.width&&t.height&&"w"==i.postfix&&(t.height=t.width/t.height*i.value,t.width=i.value),t.opts.srcset=s)}},setBigImage:function(e){var n=this,r=t.createElement("img"),o=i(r);e.$image=o.one("error",function(){n.setError(e)}).one("load",function(){var t;e.$ghost||(n.resolveImageSlideSize(e,this.naturalWidth,this.naturalHeight),n.afterLoad(e)),n.isClosing||(e.opts.srcset&&((t=e.opts.sizes)&&"auto"!==t||(t=(e.width/e.height>1&&s.width()/s.height()>1?"100":Math.round(e.width/e.height*100))+"vw"),o.attr("sizes",t).attr("srcset",e.opts.srcset)),e.$ghost&&setTimeout(function(){e.$ghost&&!n.isClosing&&e.$ghost.hide()},Math.min(300,Math.max(1e3,e.height/1600))),n.hideLoading(e))}).addClass("fancybox-image").attr("src",e.src).appendTo(e.$content),(r.complete||"complete"==r.readyState)&&o.naturalWidth&&o.naturalHeight?o.trigger("load"):r.error&&o.trigger("error")},resolveImageSlideSize:function(e,t,i){var n=parseInt(e.opts.width,10),r=parseInt(e.opts.height,10);e.width=t,e.height=i,n>0&&(e.width=n,e.height=Math.floor(n*i/t)),r>0&&(e.width=Math.floor(r*t/i),e.height=r)},setIframe:function(e){var t,n=this,r=e.opts.iframe,o=e.$slide;e.$content=i('<div class="fancybox-content'+(r.preload?" fancybox-is-hidden":"")+'"></div>').css(r.css).appendTo(o),o.addClass("fancybox-slide--"+e.contentType),e.$iframe=t=i(r.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(r.attr).appendTo(e.$content),r.preload?(n.showLoading(e),t.on("load.fb error.fb",function(t){this.isReady=1,e.$slide.trigger("refresh"),n.afterLoad(e)}),o.on("refresh.fb",function(){var i,n=e.$content,s=r.css.width,a=r.css.height;if(1===t[0].isReady){try{i=t.contents().find("body")}catch(e){}i&&i.length&&i.children().length&&(o.css("overflow","visible"),n.css({width:"100%","max-width":"100%",height:"9999px"}),void 0===s&&(s=Math.ceil(Math.max(i[0].clientWidth,i.outerWidth(!0)))),n.css("width",s||"").css("max-width",""),void 0===a&&(a=Math.ceil(Math.max(i[0].clientHeight,i.outerHeight(!0)))),n.css("height",a||""),o.css("overflow","auto")),n.removeClass("fancybox-is-hidden")}})):n.afterLoad(e),t.attr("src",e.src),o.one("onReset",function(){try{i(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(e){}i(this).off("refresh.fb").empty(),e.isLoaded=!1,e.isRevealed=!1})},setContent:function(e,t){var n=this;n.isClosing||(n.hideLoading(e),e.$content&&i.fancybox.stop(e.$content),e.$slide.empty(),function(e){return e&&e.hasOwnProperty&&e instanceof i}(t)&&t.parent().length?((t.hasClass("fancybox-content")||t.parent().hasClass("fancybox-content"))&&t.parents(".fancybox-slide").trigger("onReset"),e.$placeholder=i("<div>").hide().insertAfter(t),t.css("display","inline-block")):e.hasError||("string"===i.type(t)&&(t=i("<div>").append(i.trim(t)).contents()),e.opts.filter&&(t=i("<div>").html(t).find(e.opts.filter))),e.$slide.one("onReset",function(){i(this).find("video,audio").trigger("pause"),e.$placeholder&&(e.$placeholder.after(t.removeClass("fancybox-content").hide()).remove(),e.$placeholder=null),e.$smallBtn&&(e.$smallBtn.remove(),e.$smallBtn=null),e.hasError||(i(this).empty(),e.isLoaded=!1,e.isRevealed=!1)}),i(t).appendTo(e.$slide),i(t).is("video,audio")&&(i(t).addClass("fancybox-video"),i(t).wrap("<div></div>"),e.contentType="video",e.opts.width=e.opts.width||i(t).attr("width"),e.opts.height=e.opts.height||i(t).attr("height")),e.$content=e.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),e.$content.siblings().hide(),e.$content.length||(e.$content=e.$slide.wrapInner("<div></div>").children().first()),e.$content.addClass("fancybox-content"),e.$slide.addClass("fancybox-slide--"+e.contentType),n.afterLoad(e))},setError:function(e){e.hasError=!0,e.$slide.trigger("onReset").removeClass("fancybox-slide--"+e.contentType).addClass("fancybox-slide--error"),e.contentType="html",this.setContent(e,this.translate(e,e.opts.errorTpl)),e.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(e){var t=this;(e=e||t.current)&&!e.$spinner&&(e.$spinner=i(t.translate(t,t.opts.spinnerTpl)).appendTo(e.$slide).hide().fadeIn("fast"))},hideLoading:function(e){(e=e||this.current)&&e.$spinner&&(e.$spinner.stop().remove(),delete e.$spinner)},afterLoad:function(e){var t=this;t.isClosing||(e.isLoading=!1,e.isLoaded=!0,t.trigger("afterLoad",e),t.hideLoading(e),!e.opts.smallBtn||e.$smallBtn&&e.$smallBtn.length||(e.$smallBtn=i(t.translate(e,e.opts.btnTpl.smallBtn)).appendTo(e.$content)),e.opts.protect&&e.$content&&!e.hasError&&(e.$content.on("contextmenu.fb",function(e){return 2==e.button&&e.preventDefault(),!0}),"image"===e.type&&i('<div class="fancybox-spaceball"></div>').appendTo(e.$content)),t.adjustCaption(e),t.adjustLayout(e),e.pos===t.currPos&&t.updateCursor(),t.revealContent(e))},adjustCaption:function(e){var t,i=this,n=e||i.current,r=n.opts.caption,o=n.opts.preventCaptionOverlap,s=i.$refs.caption,a=!1;s.toggleClass("fancybox-caption--separate",o),o&&r&&r.length&&(n.pos!==i.currPos?((t=s.clone().appendTo(s.parent())).children().eq(0).empty().html(r),a=t.outerHeight(!0),t.empty().remove()):i.$caption&&(a=i.$caption.outerHeight(!0)),n.$slide.css("padding-bottom",a||""))},adjustLayout:function(e){var t,i,n,r,o=e||this.current;o.isLoaded&&!0!==o.opts.disableLayoutFix&&(o.$content.css("margin-bottom",""),o.$content.outerHeight()>o.$slide.height()+.5&&(n=o.$slide[0].style["padding-bottom"],r=o.$slide.css("padding-bottom"),parseFloat(r)>0&&(t=o.$slide[0].scrollHeight,o.$slide.css("padding-bottom",0),Math.abs(t-o.$slide[0].scrollHeight)<1&&(i=r),o.$slide.css("padding-bottom",n))),o.$content.css("margin-bottom",i))},revealContent:function(e){var t,n,r,o,s=this,a=e.$slide,l=!1,c=!1,u=s.isMoved(e),d=e.isRevealed;return e.isRevealed=!0,t=e.opts[s.firstRun?"animationEffect":"transitionEffect"],r=e.opts[s.firstRun?"animationDuration":"transitionDuration"],r=parseInt(void 0===e.forcedDuration?r:e.forcedDuration,10),!u&&e.pos===s.currPos&&r||(t=!1),"zoom"===t&&(e.pos===s.currPos&&r&&"image"===e.type&&!e.hasError&&(c=s.getThumbPos(e))?l=s.getFitPos(e):t="fade"),"zoom"===t?(s.isAnimating=!0,l.scaleX=l.width/c.width,l.scaleY=l.height/c.height,"auto"==(o=e.opts.zoomOpacity)&&(o=Math.abs(e.width/e.height-c.width/c.height)>.1),o&&(c.opacity=.1,l.opacity=1),i.fancybox.setTranslate(e.$content.removeClass("fancybox-is-hidden"),c),h(e.$content),void i.fancybox.animate(e.$content,l,r,function(){s.isAnimating=!1,s.complete()})):(s.updateSlide(e),t?(i.fancybox.stop(a),n="fancybox-slide--"+(e.pos>=s.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+t,a.addClass(n).removeClass("fancybox-slide--current"),e.$content.removeClass("fancybox-is-hidden"),h(a),"image"!==e.type&&e.$content.hide().show(0),void i.fancybox.animate(a,"fancybox-slide--current",r,function(){a.removeClass(n).css({transform:"",opacity:""}),e.pos===s.currPos&&s.complete()},!0)):(e.$content.removeClass("fancybox-is-hidden"),d||!u||"image"!==e.type||e.hasError||e.$content.hide().fadeIn("fast"),void(e.pos===s.currPos&&s.complete())))},getThumbPos:function(e){var t,n,r,o,s,a=!1,l=e.$thumb;return!(!l||!f(l[0]))&&(t=i.fancybox.getTranslate(l),n=parseFloat(l.css("border-top-width")||0),r=parseFloat(l.css("border-right-width")||0),o=parseFloat(l.css("border-bottom-width")||0),s=parseFloat(l.css("border-left-width")||0),a={top:t.top+n,left:t.left+s,width:t.width-r-s,height:t.height-n-o,scaleX:1,scaleY:1},t.width>0&&t.height>0&&a)},complete:function(){var e,t=this,n=t.current,r={};!t.isMoved()&&n.isLoaded&&(n.isComplete||(n.isComplete=!0,n.$slide.siblings().trigger("onReset"),t.preload("inline"),h(n.$slide),n.$slide.addClass("fancybox-slide--complete"),i.each(t.slides,function(e,n){n.pos>=t.currPos-1&&n.pos<=t.currPos+1?r[n.pos]=n:n&&(i.fancybox.stop(n.$slide),n.$slide.off().remove())}),t.slides=r),t.isAnimating=!1,t.updateCursor(),t.trigger("afterShow"),n.opts.video.autoStart&&n.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){this.webkitExitFullscreen&&this.webkitExitFullscreen(),t.next()}),n.opts.autoFocus&&"html"===n.contentType&&((e=n.$content.find("input[autofocus]:enabled:visible:first")).length?e.trigger("focus"):t.focus(null,!0)),n.$slide.scrollTop(0).scrollLeft(0))},preload:function(e){var t,i,n=this;n.group.length<2||(i=n.slides[n.currPos+1],(t=n.slides[n.currPos-1])&&t.type===e&&n.loadSlide(t),i&&i.type===e&&n.loadSlide(i))},focus:function(e,n){var r,o,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||((r=(r=!e&&s.current&&s.current.isComplete?s.current.$slide.find("*:visible"+(n?":not(.fancybox-close-small)":"")):s.$refs.container.find("*:visible")).filter(a).filter(function(){return"hidden"!==i(this).css("visibility")&&!i(this).hasClass("disabled")})).length?(o=r.index(t.activeElement),e&&e.shiftKey?(o<0||0==o)&&(e.preventDefault(),r.eq(r.length-1).trigger("focus")):(o<0||o==r.length-1)&&(e&&e.preventDefault(),r.eq(0).trigger("focus"))):s.$refs.container.trigger("focus"))},activate:function(){var e=this;i(".fancybox-container").each(function(){var t=i(this).data("FancyBox");t&&t.id!==e.id&&!t.isClosing&&(t.trigger("onDeactivate"),t.removeEvents(),t.isVisible=!1)}),e.isVisible=!0,(e.current||e.isIdle)&&(e.update(),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(e,t){var n,r,o,s,a,l,u,d=this,p=d.current,f=function(){d.cleanUp(e)};return!(d.isClosing||(d.isClosing=!0,!1===d.trigger("beforeClose",e)?(d.isClosing=!1,c(function(){d.update()}),1):(d.removeEvents(),o=p.$content,n=p.opts.animationEffect,r=i.isNumeric(t)?t:n?p.opts.animationDuration:0,p.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==e?i.fancybox.stop(p.$slide):n=!1,p.$slide.siblings().trigger("onReset").remove(),r&&d.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",r+"ms"),d.hideLoading(p),d.hideControls(!0),d.updateCursor(),"zoom"!==n||o&&r&&"image"===p.type&&!d.isMoved()&&!p.hasError&&(u=d.getThumbPos(p))||(n="fade"),"zoom"===n?(i.fancybox.stop(o),s=i.fancybox.getTranslate(o),l={top:s.top,left:s.left,scaleX:s.width/u.width,scaleY:s.height/u.height,width:u.width,height:u.height},a=p.opts.zoomOpacity,"auto"==a&&(a=Math.abs(p.width/p.height-u.width/u.height)>.1),a&&(u.opacity=0),i.fancybox.setTranslate(o,l),h(o),i.fancybox.animate(o,u,r,f),0):(n&&r?i.fancybox.animate(p.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+n,r,f):!0===e?setTimeout(f,r):f(),0))))},cleanUp:function(t){var n,r,o,s=this,a=s.current.opts.$orig;s.current.$slide.trigger("onReset"),s.$refs.container.empty().remove(),s.trigger("afterClose",t),s.current.opts.backFocus&&(a&&a.length&&a.is(":visible")||(a=s.$trigger),a&&a.length&&(r=e.scrollX,o=e.scrollY,a.trigger("focus"),i("html, body").scrollTop(o).scrollLeft(r))),s.current=null,(n=i.fancybox.getInstance())?n.activate():(i("body").removeClass("fancybox-active compensate-for-scrollbar"),i("#fancybox-style-noscroll").remove())},trigger:function(e,t){var n,r=Array.prototype.slice.call(arguments,1),o=this,s=t&&t.opts?t:o.current;if(s?r.unshift(s):s=o,r.unshift(o),i.isFunction(s.opts[e])&&(n=s.opts[e].apply(s,r)),!1===n)return n;"afterClose"!==e&&o.$refs?o.$refs.container.trigger(e+".fb",r):a.trigger(e+".fb",r)},updateControls:function(){var e=this,n=e.current,r=n.index,o=e.$refs.container,s=e.$refs.caption,a=n.opts.caption;n.$slide.trigger("refresh"),a&&a.length?(e.$caption=s,s.children().eq(0).html(a)):e.$caption=null,e.hasHiddenControls||e.isIdle||e.showControls(),o.find("[data-fancybox-count]").html(e.group.length),o.find("[data-fancybox-index]").html(r+1),o.find("[data-fancybox-prev]").prop("disabled",!n.opts.loop&&r<=0),o.find("[data-fancybox-next]").prop("disabled",!n.opts.loop&&r>=e.group.length-1),"image"===n.type?o.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",n.opts.image.src||n.src).show():n.opts.toolbar&&o.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),i(t.activeElement).is(":hidden,[disabled]")&&e.$refs.container.trigger("focus")},hideControls:function(e){var t=["infobar","toolbar","nav"];!e&&this.current.opts.preventCaptionOverlap||t.push("caption"),this.$refs.container.removeClass(t.map(function(e){return"fancybox-show-"+e}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var e=this,t=e.current?e.current.opts:e.opts,i=e.$refs.container;e.hasHiddenControls=!1,e.idleSecondsCounter=0,i.toggleClass("fancybox-show-toolbar",!(!t.toolbar||!t.buttons)).toggleClass("fancybox-show-infobar",!!(t.infobar&&e.group.length>1)).toggleClass("fancybox-show-caption",!!e.$caption).toggleClass("fancybox-show-nav",!!(t.arrows&&e.group.length>1)).toggleClass("fancybox-is-modal",!!t.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),i.fancybox={version:"3.5.6",defaults:o,getInstance:function(e){var t=i('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),n=Array.prototype.slice.call(arguments,1);return t instanceof m&&("string"===i.type(e)?t[e].apply(t,n):"function"===i.type(e)&&e.apply(t,n),t)},open:function(e,t,i){return new m(e,t,i)},close:function(e){var t=this.getInstance();t&&(t.close(),!0===e&&this.close(e))},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 i=t.createElement("div");return e.getComputedStyle&&e.getComputedStyle(i)&&e.getComputedStyle(i).getPropertyValue("transform")&&!(t.documentMode&&t.documentMode<11)}(),getTranslate:function(e){var t;return!(!e||!e.length)&&{top:(t=e[0].getBoundingClientRect()).top||0,left:t.left||0,width:t.width,height:t.height,opacity:parseFloat(e.css("opacity"))}},setTranslate:function(e,t){var i="",n={};if(e&&t)return void 0===t.left&&void 0===t.top||(i=(void 0===t.left?e.position().left:t.left)+"px, "+(void 0===t.top?e.position().top:t.top)+"px",i=this.use3d?"translate3d("+i+", 0px)":"translate("+i+")"),void 0!==t.scaleX&&void 0!==t.scaleY?i+=" scale("+t.scaleX+", "+t.scaleY+")":void 0!==t.scaleX&&(i+=" scaleX("+t.scaleX+")"),i.length&&(n.transform=i),void 0!==t.opacity&&(n.opacity=t.opacity),void 0!==t.width&&(n.width=t.width),void 0!==t.height&&(n.height=t.height),e.css(n)},animate:function(e,t,n,r,o){var s,a=this;i.isFunction(n)&&(r=n,n=null),a.stop(e),s=a.getTranslate(e),e.on(d,function(l){(!l||!l.originalEvent||e.is(l.originalEvent.target)&&"z-index"!=l.originalEvent.propertyName)&&(a.stop(e),i.isNumeric(n)&&e.css("transition-duration",""),i.isPlainObject(t)?void 0!==t.scaleX&&void 0!==t.scaleY&&a.setTranslate(e,{top:t.top,left:t.left,width:s.width*t.scaleX,height:s.height*t.scaleY,scaleX:1,scaleY:1}):!0!==o&&e.removeClass(t),i.isFunction(r)&&r(l))}),i.isNumeric(n)&&e.css("transition-duration",n+"ms"),i.isPlainObject(t)?(void 0!==t.scaleX&&void 0!==t.scaleY&&(delete t.width,delete t.height,e.parent().hasClass("fancybox-slide--image")&&e.parent().addClass("fancybox-is-scaling")),i.fancybox.setTranslate(e,t)):e.addClass(t),e.data("timer",setTimeout(function(){e.trigger(d)},n+33))},stop:function(e,t){e&&e.length&&(clearTimeout(e.data("timer")),t&&e.trigger(d),e.off(d).css("transition-duration",""),e.parent().removeClass("fancybox-is-scaling"))}},i.fn.fancybox=function(e){var t;return(t=(e=e||{}).selector||!1)?i("body").off("click.fb-start",t).on("click.fb-start",t,{options:e},r):this.off("click.fb-start").on("click.fb-start",{items:this,options:e},r),this},a.on("click.fb-start","[data-fancybox]",r),a.on("click.fb-start","[data-fancybox-trigger]",function(e){i('[data-fancybox="'+i(this).attr("data-fancybox-trigger")+'"]').eq(i(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:i(this)})}),function(){var e=null;a.on("mousedown mouseup focus blur",".fancybox-button",function(t){switch(t.type){case"mousedown":e=i(this);break;case"mouseup":e=null;break;case"focusin":i(".fancybox-button").removeClass("fancybox-focus"),i(this).is(e)||i(this).is("[disabled]")||i(this).addClass("fancybox-focus");break;case"focusout":i(".fancybox-button").removeClass("fancybox-focus")}})}()}}(window,document,jQuery),function(e){"use strict";var t={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(e){return"//maps.google."+e[2]+"/?ll="+(e[9]?e[9]+"&z="+Math.floor(e[10])+(e[12]?e[12].replace(/^\//,"&"):""):e[12]+"").replace(/\?/,"&")+"&output="+(e[12]&&e[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(e){return"//maps.google."+e[2]+"/maps?q="+e[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}},i=function(t,i,n){if(t)return n=n||"","object"===e.type(n)&&(n=e.param(n,!0)),e.each(i,function(e,i){t=t.replace("$"+e,i||"")}),n.length&&(t+=(t.indexOf("?")>0?"&":"?")+n),t};e(document).on("objectNeedsType.fb",function(n,r,o){var s,a,l,c,u,d,h,p=o.src||"",f=!1;s=e.extend(!0,{},t,o.opts.media),e.each(s,function(t,n){if(l=p.match(n.matcher)){if(f=n.type,h=t,d={},n.paramPlace&&l[n.paramPlace]){"?"==(u=l[n.paramPlace])[0]&&(u=u.substring(1)),u=u.split("&");for(var r=0;r<u.length;++r){var s=u[r].split("=",2);2==s.length&&(d[s[0]]=decodeURIComponent(s[1].replace(/\+/g," ")))}}return c=e.extend(!0,{},n.params,o.opts[t],d),p="function"===e.type(n.url)?n.url.call(this,l,c,o):i(n.url,l,c),a="function"===e.type(n.thumb)?n.thumb.call(this,l,c,o):i(n.thumb,l),"youtube"===t?p=p.replace(/&t=((\d+)m)?(\d+)s/,function(e,t,i,n){return"&start="+((i?60*parseInt(i,10):0)+parseInt(n,10))}):"vimeo"===t&&(p=p.replace("&%23","#")),!1}}),f?(o.opts.thumb||o.opts.$thumb&&o.opts.$thumb.length||(o.opts.thumb=a),"iframe"===f&&(o.opts=e.extend(!0,o.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),e.extend(o,{type:f,src:p,origSrc:o.src,contentSource:h,contentType:"image"===f?"image":"gmap_place"==h||"gmap_search"==h?"map":"video"})):p&&(o.type=o.opts.defaultType)});var n={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(e){var t,i=this;this[e].loaded?setTimeout(function(){i.done(e)}):this[e].loading||(this[e].loading=!0,(t=document.createElement("script")).type="text/javascript",t.src=this[e].src,"youtube"===e?window.onYouTubeIframeAPIReady=function(){i[e].loaded=!0,i.done(e)}:t.onload=function(){i[e].loaded=!0,i.done(e)},document.body.appendChild(t))},done:function(t){var i,n;"youtube"===t&&delete window.onYouTubeIframeAPIReady,(i=e.fancybox.getInstance())&&(n=i.current.$content.find("iframe"),"youtube"===t&&void 0!==YT&&YT?new YT.Player(n.attr("id"),{events:{onStateChange:function(e){0==e.data&&i.next()}}}):"vimeo"===t&&void 0!==Vimeo&&Vimeo&&new Vimeo.Player(n).on("ended",function(){i.next()}))}};e(document).on({"afterShow.fb":function(e,t,i){t.group.length>1&&("youtube"===i.contentSource||"vimeo"===i.contentSource)&&n.load(i.contentSource)}})}(jQuery),function(e,t,i){"use strict";var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)},r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||function(t){e.clearTimeout(t)},o=function(t){var i=[];for(var n in t=(t=t.originalEvent||t||e.e).touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t])t[n].pageX?i.push({x:t[n].pageX,y:t[n].pageY}):t[n].clientX&&i.push({x:t[n].clientX,y:t[n].clientY});return i},s=function(e,t,i){return t&&e?"x"===i?e.x-t.x:"y"===i?e.y-t.y:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0},a=function(e){if(e.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||i.isFunction(e.get(0).onclick)||e.data("selectable"))return!0;for(var t=0,n=e[0].attributes,r=n.length;t<r;t++)if("data-fancybox-"===n[t].nodeName.substr(0,14))return!0;return!1},l=function(t){var i=e.getComputedStyle(t)["overflow-y"],n=e.getComputedStyle(t)["overflow-x"],r=("scroll"===i||"auto"===i)&&t.scrollHeight>t.clientHeight,o=("scroll"===n||"auto"===n)&&t.scrollWidth>t.clientWidth;return r||o},c=function(e){for(var t=!1;!(t=l(e.get(0)))&&(e=e.parent()).length&&!e.hasClass("fancybox-stage")&&!e.is("body"););return t},u=function(e){var t=this;t.instance=e,t.$bg=e.$refs.bg,t.$stage=e.$refs.stage,t.$container=e.$refs.container,t.destroy(),t.$container.on("touchstart.fb.touch mousedown.fb.touch",i.proxy(t,"ontouchstart"))};u.prototype.destroy=function(){var e=this;e.$container.off(".fb.touch"),i(t).off(".fb.touch"),e.requestId&&(r(e.requestId),e.requestId=null),e.tapped&&(clearTimeout(e.tapped),e.tapped=null)},u.prototype.ontouchstart=function(n){var r=this,l=i(n.target),u=r.instance,d=u.current,h=d.$slide,p=d.$content,f="touchstart"==n.type;if(f&&r.$container.off("mousedown.fb.touch"),(!n.originalEvent||2!=n.originalEvent.button)&&h.length&&l.length&&!a(l)&&!a(l.parent())&&(l.is("img")||!(n.originalEvent.clientX>l[0].clientWidth+l.offset().left))){if(!d||u.isAnimating||d.$slide.hasClass("fancybox-animated"))return n.stopPropagation(),void n.preventDefault();r.realPoints=r.startPoints=o(n),r.startPoints.length&&(d.touch&&n.stopPropagation(),r.startEvent=n,r.canTap=!0,r.$target=l,r.$content=p,r.opts=d.opts.touch,r.isPanning=!1,r.isSwiping=!1,r.isZooming=!1,r.isScrolling=!1,r.canPan=u.canPan(),r.startTime=(new Date).getTime(),r.distanceX=r.distanceY=r.distance=0,r.canvasWidth=Math.round(h[0].clientWidth),r.canvasHeight=Math.round(h[0].clientHeight),r.contentLastPos=null,r.contentStartPos=i.fancybox.getTranslate(r.$content)||{top:0,left:0},r.sliderStartPos=i.fancybox.getTranslate(h),r.stagePos=i.fancybox.getTranslate(u.$refs.stage),r.sliderStartPos.top-=r.stagePos.top,r.sliderStartPos.left-=r.stagePos.left,r.contentStartPos.top-=r.stagePos.top,r.contentStartPos.left-=r.stagePos.left,i(t).off(".fb.touch").on(f?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",i.proxy(r,"ontouchend")).on(f?"touchmove.fb.touch":"mousemove.fb.touch",i.proxy(r,"ontouchmove")),i.fancybox.isMobile&&t.addEventListener("scroll",r.onscroll,!0),((r.opts||r.canPan)&&(l.is(r.$stage)||r.$stage.find(l).length)||(l.is(".fancybox-image")&&n.preventDefault(),i.fancybox.isMobile&&l.parents(".fancybox-caption").length))&&(r.isScrollable=c(l)||c(l.parent()),i.fancybox.isMobile&&r.isScrollable||n.preventDefault(),(1===r.startPoints.length||d.hasError)&&(r.canPan?(i.fancybox.stop(r.$content),r.isPanning=!0):r.isSwiping=!0,r.$container.addClass("fancybox-is-grabbing")),2===r.startPoints.length&&"image"===d.type&&(d.isLoaded||d.$ghost)&&(r.canTap=!1,r.isSwiping=!1,r.isPanning=!1,r.isZooming=!0,i.fancybox.stop(r.$content),r.centerPointStartX=.5*(r.startPoints[0].x+r.startPoints[1].x)-i(e).scrollLeft(),r.centerPointStartY=.5*(r.startPoints[0].y+r.startPoints[1].y)-i(e).scrollTop(),r.percentageOfImageAtPinchPointX=(r.centerPointStartX-r.contentStartPos.left)/r.contentStartPos.width,r.percentageOfImageAtPinchPointY=(r.centerPointStartY-r.contentStartPos.top)/r.contentStartPos.height,r.startDistanceBetweenFingers=s(r.startPoints[0],r.startPoints[1]))))}},u.prototype.onscroll=function(e){this.isScrolling=!0,t.removeEventListener("scroll",this.onscroll,!0)},u.prototype.ontouchmove=function(e){var t=this;return void 0!==e.originalEvent.buttons&&0===e.originalEvent.buttons?void t.ontouchend(e):t.isScrolling?void(t.canTap=!1):(t.newPoints=o(e),void((t.opts||t.canPan)&&t.newPoints.length&&t.newPoints.length&&(t.isSwiping&&!0===t.isSwiping||e.preventDefault(),t.distanceX=s(t.newPoints[0],t.startPoints[0],"x"),t.distanceY=s(t.newPoints[0],t.startPoints[0],"y"),t.distance=s(t.newPoints[0],t.startPoints[0]),t.distance>0&&(t.isSwiping?t.onSwipe(e):t.isPanning?t.onPan():t.isZooming&&t.onZoom()))))},u.prototype.onSwipe=function(t){var o,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&&(r(s.requestId),s.requestId=null),s.requestId=n(function(){s.sliderLastPos&&(i.each(s.instance.slides,function(e,t){var n=t.pos-s.instance.currPos;i.fancybox.setTranslate(t.$slide,{top:s.sliderLastPos.top,left:s.sliderLastPos.left+n*s.canvasWidth+n*t.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&&i(e).width()>800?s.isSwiping="x":(o=Math.abs(180*Math.atan2(s.distanceY,s.distanceX)/Math.PI),s.isSwiping=o>45&&o<135?"y":"x"),"y"===s.isSwiping&&i.fancybox.isMobile&&s.isScrollable)return void(s.isScrolling=!0);a.isDragging=s.isSwiping,s.startPoints=s.newPoints,i.each(a.slides,function(e,t){var n,r;i.fancybox.stop(t.$slide),n=i.fancybox.getTranslate(t.$slide),r=i.fancybox.getTranslate(a.$refs.stage),t.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass(function(e,t){return(t.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),t.pos===a.current.pos&&(s.sliderStartPos.top=n.top-r.top,s.sliderStartPos.left=n.left-r.left),i.fancybox.setTranslate(t.$slide,{top:n.top-r.top,left:n.left-r.left})}),a.SlideShow&&a.SlideShow.isActive&&a.SlideShow.stop()}},u.prototype.onPan=function(){var e=this;s(e.newPoints[0],e.realPoints[0])<(i.fancybox.isMobile?10:5)?e.startPoints=e.newPoints:(e.canTap=!1,e.contentLastPos=e.limitMovement(),e.requestId&&r(e.requestId),e.requestId=n(function(){i.fancybox.setTranslate(e.$content,e.contentLastPos)}))},u.prototype.limitMovement=function(){var e,t,i,n,r,o,s=this,a=s.canvasWidth,l=s.canvasHeight,c=s.distanceX,u=s.distanceY,d=s.contentStartPos,h=d.left,p=d.top,f=d.width,m=d.height;return r=f>a?h+c:h,o=p+u,e=Math.max(0,.5*a-.5*f),t=Math.max(0,.5*l-.5*m),i=Math.min(a-f,.5*a-.5*f),n=Math.min(l-m,.5*l-.5*m),c>0&&r>e&&(r=e-1+Math.pow(-e+h+c,.8)||0),c<0&&r<i&&(r=i+1-Math.pow(i-h-c,.8)||0),u>0&&o>t&&(o=t-1+Math.pow(-t+p+u,.8)||0),u<0&&o<n&&(o=n+1-Math.pow(n-p-u,.8)||0),{top:o,left:r}},u.prototype.limitPosition=function(e,t,i,n){var r=this.canvasWidth,o=this.canvasHeight;return e=i>r?(e=e>0?0:e)<r-i?r-i:e:Math.max(0,r/2-i/2),{top:t=n>o?(t=t>0?0:t)<o-n?o-n:t:Math.max(0,o/2-n/2),left:e}},u.prototype.onZoom=function(){var t=this,o=t.contentStartPos,a=o.width,l=o.height,c=o.left,u=o.top,d=s(t.newPoints[0],t.newPoints[1])/t.startDistanceBetweenFingers,h=Math.floor(a*d),p=Math.floor(l*d),f=(a-h)*t.percentageOfImageAtPinchPointX,m=(l-p)*t.percentageOfImageAtPinchPointY,g=(t.newPoints[0].x+t.newPoints[1].x)/2-i(e).scrollLeft(),v=(t.newPoints[0].y+t.newPoints[1].y)/2-i(e).scrollTop(),y=g-t.centerPointStartX,b={top:u+(m+(v-t.centerPointStartY)),left:c+(f+y),scaleX:d,scaleY:d};t.canTap=!1,t.newWidth=h,t.newHeight=p,t.contentLastPos=b,t.requestId&&r(t.requestId),t.requestId=n(function(){i.fancybox.setTranslate(t.$content,t.contentLastPos)})},u.prototype.ontouchend=function(e){var n=this,s=n.isSwiping,a=n.isPanning,l=n.isZooming,c=n.isScrolling;if(n.endPoints=o(e),n.dMs=Math.max((new Date).getTime()-n.startTime,1),n.$container.removeClass("fancybox-is-grabbing"),i(t).off(".fb.touch"),t.removeEventListener("scroll",n.onscroll,!0),n.requestId&&(r(n.requestId),n.requestId=null),n.isSwiping=!1,n.isPanning=!1,n.isZooming=!1,n.isScrolling=!1,n.instance.isDragging=!1,n.canTap)return n.onTap(e);n.speed=100,n.velocityX=n.distanceX/n.dMs*.5,n.velocityY=n.distanceY/n.dMs*.5,a?n.endPanning():l?n.endZooming():n.endSwiping(s,c)},u.prototype.endSwiping=function(e,t){var n=this,r=!1,o=n.instance.group.length,s=Math.abs(n.distanceX),a="x"==e&&o>1&&(n.dMs>130&&s>10||s>50);n.sliderLastPos=null,"y"==e&&!t&&Math.abs(n.distanceY)>50?(i.fancybox.animate(n.instance.current.$slide,{top:n.sliderStartPos.top+n.distanceY+150*n.velocityY,opacity:0},200),r=n.instance.close(!0,250)):a&&n.distanceX>0?r=n.instance.previous(300):a&&n.distanceX<0&&(r=n.instance.next(300)),!1!==r||"x"!=e&&"y"!=e||n.instance.centerSlide(200),n.$container.removeClass("fancybox-is-sliding")},u.prototype.endPanning=function(){var e,t,n,r=this;r.contentLastPos&&(!1===r.opts.momentum||r.dMs>350?(e=r.contentLastPos.left,t=r.contentLastPos.top):(e=r.contentLastPos.left+500*r.velocityX,t=r.contentLastPos.top+500*r.velocityY),(n=r.limitPosition(e,t,r.contentStartPos.width,r.contentStartPos.height)).width=r.contentStartPos.width,n.height=r.contentStartPos.height,i.fancybox.animate(r.$content,n,366))},u.prototype.endZooming=function(){var e,t,n,r,o=this,s=o.instance.current,a=o.newWidth,l=o.newHeight;o.contentLastPos&&(e=o.contentLastPos.left,r={top:t=o.contentLastPos.top,left:e,width:a,height:l,scaleX:1,scaleY:1},i.fancybox.setTranslate(o.$content,r),a<o.canvasWidth&&l<o.canvasHeight?o.instance.scaleToFit(150):a>s.width||l>s.height?o.instance.scaleToActual(o.centerPointStartX,o.centerPointStartY,150):(n=o.limitPosition(e,t,a,l),i.fancybox.animate(o.$content,n,150)))},u.prototype.onTap=function(t){var n,r=this,s=i(t.target),a=r.instance,l=a.current,c=t&&o(t)||r.startPoints,u=c[0]?c[0].x-i(e).scrollLeft()-r.stagePos.left:0,d=c[0]?c[0].y-i(e).scrollTop()-r.stagePos.top:0,h=function(e){var n=l.opts[e];if(i.isFunction(n)&&(n=n.apply(a,[l,t])),n)switch(n){case"close":a.close(r.startEvent);break;case"toggleControls":a.toggleControls();break;case"next":a.next();break;case"nextOrClose":a.group.length>1?a.next():a.close(r.startEvent);break;case"zoom":"image"==l.type&&(l.isLoaded||l.$ghost)&&(a.canPan()?a.scaleToFit():a.isScaledDown()?a.scaleToActual(u,d):a.group.length<2&&a.close(r.startEvent))}};if((!t.originalEvent||2!=t.originalEvent.button)&&(s.is("img")||!(u>s[0].clientWidth+s.offset().left))){if(s.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))n="Outside";else if(s.is(".fancybox-slide"))n="Slide";else{if(!a.current.$content||!a.current.$content.find(s).addBack().filter(s).length)return;n="Content"}if(r.tapped){if(clearTimeout(r.tapped),r.tapped=null,Math.abs(u-r.tapX)>50||Math.abs(d-r.tapY)>50)return this;h("dblclick"+n)}else r.tapX=u,r.tapY=d,l.opts["dblclick"+n]&&l.opts["dblclick"+n]!==l.opts["click"+n]?r.tapped=setTimeout(function(){r.tapped=null,a.isAnimating||h("click"+n)},500):h("click"+n);return this}},i(t).on("onActivate.fb",function(e,t){t&&!t.Guestures&&(t.Guestures=new u(t))}).on("beforeClose.fb",function(e,t){t&&t.Guestures&&t.Guestures.destroy()})}(window,document,jQuery),function(e,t){"use strict";t.extend(!0,t.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 i=function(e){this.instance=e,this.init()};t.extend(i.prototype,{timer:null,isActive:!1,$button:null,init:function(){var e=this,i=e.instance,n=i.group[i.currIndex].opts.slideShow;e.$button=i.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){e.toggle()}),i.group.length<2||!n?e.$button.hide():n.progress&&(e.$progress=t('<div class="fancybox-progress"></div>').appendTo(i.$refs.inner))},set:function(e){var i=this,n=i.instance,r=n.current;r&&(!0===e||r.opts.loop||n.currIndex<n.group.length-1)?i.isActive&&"video"!==r.contentType&&(i.$progress&&t.fancybox.animate(i.$progress.show(),{scaleX:1},r.opts.slideShow.speed),i.timer=setTimeout(function(){n.current.opts.loop||n.current.index!=n.group.length-1?n.next():n.jumpTo(0)},r.opts.slideShow.speed)):(i.stop(),n.idleSecondsCounter=0,n.showControls())},clear:function(){var e=this;clearTimeout(e.timer),e.timer=null,e.$progress&&e.$progress.removeAttr("style").hide()},start:function(){var e=this,t=e.instance.current;t&&(e.$button.attr("title",(t.opts.i18n[t.opts.lang]||t.opts.i18n.en).PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),e.isActive=!0,t.isComplete&&e.set(!0),e.instance.trigger("onSlideShowChange",!0))},stop:function(){var e=this,t=e.instance.current;e.clear(),e.$button.attr("title",(t.opts.i18n[t.opts.lang]||t.opts.i18n.en).PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),e.isActive=!1,e.instance.trigger("onSlideShowChange",!1),e.$progress&&e.$progress.removeAttr("style").hide()},toggle:function(){var e=this;e.isActive?e.stop():e.start()}}),t(e).on({"onInit.fb":function(e,t){t&&!t.SlideShow&&(t.SlideShow=new i(t))},"beforeShow.fb":function(e,t,i,n){var r=t&&t.SlideShow;n?r&&i.opts.slideShow.autoStart&&r.start():r&&r.isActive&&r.clear()},"afterShow.fb":function(e,t,i){var n=t&&t.SlideShow;n&&n.isActive&&n.set()},"afterKeydown.fb":function(i,n,r,o,s){var a=n&&n.SlideShow;!a||!r.opts.slideShow||80!==s&&32!==s||t(e.activeElement).is("button,a,input")||(o.preventDefault(),a.toggle())},"beforeClose.fb onDeactivate.fb":function(e,t){var i=t&&t.SlideShow;i&&i.stop()}}),t(e).on("visibilitychange",function(){var i=t.fancybox.getInstance(),n=i&&i.SlideShow;n&&n.isActive&&(e.hidden?n.clear():n.set())})}(document,jQuery),function(e,t){"use strict";var i=function(){for(var t=[["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"]],i={},n=0;n<t.length;n++){var r=t[n];if(r&&r[1]in e){for(var o=0;o<r.length;o++)i[t[0][o]]=r[o];return i}}return!1}();if(i){var n={request:function(t){(t=t||e.documentElement)[i.requestFullscreen](t.ALLOW_KEYBOARD_INPUT)},exit:function(){e[i.exitFullscreen]()},toggle:function(t){t=t||e.documentElement,this.isFullscreen()?this.exit():this.request(t)},isFullscreen:function(){return Boolean(e[i.fullscreenElement])},enabled:function(){return Boolean(e[i.fullscreenEnabled])}};t.extend(!0,t.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}}),t(e).on(i.fullscreenchange,function(){var e=n.isFullscreen(),i=t.fancybox.getInstance();i&&(i.current&&"image"===i.current.type&&i.isAnimating&&(i.isAnimating=!1,i.update(!0,!0,0),i.isComplete||i.complete()),i.trigger("onFullscreenChange",e),i.$refs.container.toggleClass("fancybox-is-fullscreen",e),i.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!e).toggleClass("fancybox-button--fsexit",e))})}t(e).on({"onInit.fb":function(e,t){i?t&&t.group[t.currIndex].opts.fullScreen?(t.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(e){e.stopPropagation(),e.preventDefault(),n.toggle()}),t.opts.fullScreen&&!0===t.opts.fullScreen.autoStart&&n.request(),t.FullScreen=n):t&&t.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():t.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(e,t,i,n,r){t&&t.FullScreen&&70===r&&(n.preventDefault(),t.FullScreen.toggle())},"beforeClose.fb":function(e,t){t&&t.FullScreen&&t.$refs.container.hasClass("fancybox-is-fullscreen")&&n.exit()}})}(document,jQuery),function(e,t){"use strict";var i="fancybox-thumbs";t.fancybox.defaults=t.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"}},t.fancybox.defaults);var n=function(e){this.init(e)};t.extend(n.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(e){var t=this,i=e.group,n=0;t.instance=e,t.opts=i[e.currIndex].opts.thumbs,e.Thumbs=t,t.$button=e.$refs.toolbar.find("[data-fancybox-thumbs]");for(var r=0,o=i.length;r<o&&(i[r].thumb&&n++,!(n>1));r++);n>1&&t.opts?(t.$button.removeAttr("style").on("click",function(){t.toggle()}),t.isActive=!0):t.$button.hide()},create:function(){var e,n=this,r=n.instance,o=n.opts.parentEl,s=[];n.$grid||(n.$grid=t('<div class="'+i+" "+i+"-"+n.opts.axis+'"></div>').appendTo(r.$refs.container.find(o).addBack().filter(o)),n.$grid.on("click","a",function(){r.jumpTo(t(this).attr("data-index"))})),n.$list||(n.$list=t('<div class="'+i+'__list">').appendTo(n.$grid)),t.each(r.group,function(t,i){(e=i.thumb)||"image"!==i.type||(e=i.src),s.push('<a href="javascript:;" tabindex="0" data-index="'+t+'"'+(e&&e.length?' style="background-image:url('+e+')"':'class="fancybox-thumbs-missing"')+"></a>")}),n.$list[0].innerHTML=s.join(""),"x"===n.opts.axis&&n.$list.width(parseInt(n.$grid.css("padding-right"),10)+r.group.length*n.$list.children().eq(0).outerWidth(!0))},focus:function(e){var t,i,n=this,r=n.$list,o=n.$grid;n.instance.current&&(i=(t=r.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+n.instance.current.index+'"]').addClass("fancybox-thumbs-active")).position(),"y"===n.opts.axis&&(i.top<0||i.top>r.height()-t.outerHeight())?r.stop().animate({scrollTop:r.scrollTop()+i.top},e):"x"===n.opts.axis&&(i.left<o.scrollLeft()||i.left>o.scrollLeft()+(o.width()-t.outerWidth()))&&r.parent().stop().animate({scrollLeft:i.left},e))},update:function(){var e=this;e.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),e.isVisible?(e.$grid||e.create(),e.instance.trigger("onThumbsShow"),e.focus(0)):e.$grid&&e.instance.trigger("onThumbsHide"),e.instance.update(
1)},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),t(e).on({"onInit.fb":function(e,t){var i;t&&!t.Thumbs&&(i=new n(t)).isActive&&!0===i.opts.autoStart&&i.show()},"beforeShow.fb":function(e,t,i,n){var r=t&&t.Thumbs;r&&r.isVisible&&r.focus(n?0:250)},"afterKeydown.fb":function(e,t,i,n,r){var o=t&&t.Thumbs;o&&o.isActive&&71===r&&(n.preventDefault(),o.toggle())},"beforeClose.fb":function(e,t){var i=t&&t.Thumbs;i&&i.isVisible&&!1!==i.opts.hideOnClose&&i.$grid.hide()}})}(document,jQuery),function(e,t){"use strict";t.extend(!0,t.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(e,t){return!e.currentHash&&"inline"!==t.type&&"html"!==t.type&&(t.origSrc||t.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>'}}),t(e).on("click","[data-fancybox-share]",function(){var e,i,n=t.fancybox.getInstance(),r=n.current||null;r&&("function"===t.type(r.opts.share.url)&&(e=r.opts.share.url.apply(r,[n,r])),i=r.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===r.type?encodeURIComponent(r.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(e)).replace(/\{\{url_raw\}\}/g,function(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(e).replace(/[&<>"'`=\/]/g,function(e){return t[e]})}(e)).replace(/\{\{descr\}\}/g,n.$caption?encodeURIComponent(n.$caption.text()):""),t.fancybox.open({src:n.translate(n,i),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(e,t){n.$refs.container.one("beforeClose.fb",function(){e.close(null,0)}),t.$content.find(".fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(e,t,i){"use strict";function n(){var t=e.location.hash.substr(1),i=t.split("-"),n=i.length>1&&/^\+?\d+$/.test(i[i.length-1])&&parseInt(i.pop(-1),10)||1;return{hash:t,index:n<1?1:n,gallery:i.join("-")}}function r(e){""!==e.gallery&&i("[data-fancybox='"+i.escapeSelector(e.gallery)+"']").eq(e.index-1).focus().trigger("click.fb-start")}function o(e){var t,i;return!!e&&""!==(i=(t=e.current?e.current.opts:e.opts).hash||(t.$orig?t.$orig.data("fancybox")||t.$orig.data("fancybox-trigger"):""))&&i}i.escapeSelector||(i.escapeSelector=function(e){return(e+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e})}),i(function(){!1!==i.fancybox.defaults.hash&&(i(t).on({"onInit.fb":function(e,t){var i,r;!1!==t.group[t.currIndex].opts.hash&&(i=n(),(r=o(t))&&i.gallery&&r==i.gallery&&(t.currIndex=i.index-1))},"beforeShow.fb":function(i,n,r,s){var a;r&&!1!==r.opts.hash&&(a=o(n))&&(n.currentHash=a+(n.group.length>1?"-"+(r.index+1):""),e.location.hash!=="#"+n.currentHash&&(s&&!n.origHash&&(n.origHash=e.location.hash),n.hashTimer&&clearTimeout(n.hashTimer),n.hashTimer=setTimeout(function(){"replaceState"in e.history?(e.history[s?"pushState":"replaceState"]({},t.title,e.location.pathname+e.location.search+"#"+n.currentHash),s&&(n.hasCreatedHistory=!0)):e.location.hash=n.currentHash,n.hashTimer=null},300)))},"beforeClose.fb":function(i,n,r){r&&!1!==r.opts.hash&&(clearTimeout(n.hashTimer),n.currentHash&&n.hasCreatedHistory?e.history.back():n.currentHash&&("replaceState"in e.history?e.history.replaceState({},t.title,e.location.pathname+e.location.search+(n.origHash||"")):e.location.hash=n.origHash),n.currentHash=null)}}),i(e).on("hashchange.fb",function(){var e=n(),t=null;i.each(i(".fancybox-container").get().reverse(),function(e,n){var r=i(n).data("FancyBox");if(r&&r.currentHash)return t=r,!1}),t?t.currentHash===e.gallery+"-"+e.index||1===e.index&&t.currentHash==e.gallery||(t.currentHash=null,t.close()):""!==e.gallery&&r(e)}),setTimeout(function(){i.fancybox.getInstance()||r(n())},50))})}(window,document,jQuery),function(e,t){"use strict";var i=(new Date).getTime();t(e).on({"onInit.fb":function(e,t,n){t.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(e){var n=t.current,r=(new Date).getTime();t.group.length<2||!1===n.opts.wheel||"auto"===n.opts.wheel&&"image"!==n.type||(e.preventDefault(),e.stopPropagation(),n.$slide.hasClass("fancybox-animated")||(e=e.originalEvent||e,r-i<250||(i=r,t[(-e.deltaY||-e.deltaX||e.wheelDelta||-e.detail)<0?"next":"previous"]())))})}})}(document,jQuery),"object"==typeof navigator&&function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Plyr",t):(e=e||self).Plyr=t()}(this,function(){"use strict";!function(){if("undefined"!=typeof window)try{var e=new window.CustomEvent("test",{cancelable:!0});if(e.preventDefault(),!0!==e.defaultPrevented)throw new Error("Could not prevent default")}catch(e){var t=function(e,t){var i,n;return(t=t||{}).bubbles=!!t.bubbles,t.cancelable=!!t.cancelable,(i=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n=i.preventDefault,i.preventDefault=function(){n.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},i};t.prototype=window.Event.prototype,window.CustomEvent=t}}();var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}var i=function(e){return e&&e.Math==Math&&e},n=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||Function("return this")(),r=function(e){try{return!!e()}catch(e){return!0}},o=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}}
vendor: 4,128 bytes, line 1
1)[1]}),s={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,l={f:a&&!s.call({1:2},1)?function(e){var t=a(this,e);return!!t&&t.enumerable}:s},c=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},u={}.toString,d=function(e){return u.call(e).slice(8,-1)},h="".split,p=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==d(e)?h.call(e,""):Object(e)}:Object,f=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},m=function(e){return p(f(e))},g=function(e){return"object"==typeof e?null!==e:"function"==typeof e},v=function(e,t){if(!g(e))return e;var i,n;if(t&&"function"==typeof(i=e.toString)&&!g(n=i.call(e)))return n;if("function"==typeof(i=e.valueOf)&&!g(n=i.call(e)))return n;if(!t&&"function"==typeof(i=e.toString)&&!g(n=i.call(e)))return n;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,b=function(e,t){return y.call(e,t)},w=n.document,x=g(w)&&g(w.createElement),S=function(e){return x?w.createElement(e):{}},T=!o&&!r(function(){return 7!=Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a}),E=Object.getOwnPropertyDescriptor,C={f:o?E:function(e,t){if(e=m(e),t=v(t,!0),T)try{return E(e,t)}catch(e){}if(b(e,t))return c(!l.f.call(e,t),e[t])}},k=function(e){if(!g(e))throw TypeError(String(e)+" is not an object");return e},P=Object.defineProperty,A={f:o?P:function(e,t,i){if(k(e),t=v(t,!0),k(i),T)try{return P(e,t,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},M=o?function(e,t,i){return A.f(e,t,c(1,i))}:function(e,t,i){return e[t]=i,e},L=function(e,t){try{M(n,e,t)}catch(i){n[e]=t}return t},I=n["__core-js_shared__"]||L("__core-js_shared__",{}),z=Function.toString;"function"!=typeof I.inspectSource&&(I.inspectSource=function(e){return z.call(e)});var D,O,$,_=I.inspectSource,j=n.WeakMap,N="function"==typeof j&&/native code/.test(_(j)),R=t(function(e){(e.exports=function(e,t){return I[e]||(I[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),F=0,H=Math.random(),q=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++F+H).toString(36)},B=R("keys"),U=function(e){return B[e]||(B[e]=q(e))},W={},V=n.WeakMap;if(N){var X=new V,Y=X.get,G=X.has,K=X.set;D=function(e,t){return K.call(X,e,t),t},O=function(e){return Y.call(X,e)||{}},$=function(e){return G.call(X,e)}}else{var Q=U("state");W[Q]=!0,D=function(e,t){return M(e,Q,t),t},O=function(e){return b(e,Q)?e[Q]:{}},$=function(e){return b(e,Q)}}var Z,J={set:D,get:O,has:$,enforce:function(e){return $(e)?O(e):D(e,{})},getterFor:function(e){return function(t){var i;if(!g(t)||(i=O(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return i}}},ee=t(function(e){var t=J.get,i=J.enforce,r=String(String).split("String");(e.exports=function(e,t,o,s){var a=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,c=!!s&&!!s.noTargetGet;"function"==typeof o&&("string"!=typeof t||b(o,"name")||M(o,"name",t),i(o).source=r.join("string"==typeof t?t:"")),e!==n?(a?!c&&e[t]&&(l=!0):delete e[t],l?e[t]=o:M(e,t,o)):l?e[t]=o:L(t,o)})(Function.prototype,"toString",function(){return"function"==typeof this&&t(this).source||_(this)})}),te=n,ie=function(e){return"function"==typeof e?e:void 0},ne=function(e,t){return arguments.length<2?ie(te[e])||ie(n[e]):te[e]&&te[e][t]||n[e]&&n[e][t]},re=Math.ceil,oe=Math.floor,se=function(e){return isNaN(e=+e)?0:(e>0?oe:re)(e)},ae=Math.min,le=function(e){return e>0?ae(se(e),9007199254740991):0},ce=Math.max,ue=Math.min,de=function(e,t){var i=se(e);return i<0?ce(i+t,0):ue(i,t)},he=function(e){return function(t,i,n){var r,o=m(t),s=le(o.length),a=de(n,s);if(e&&i!=i){for(;s>a;)if((r=o[a++])!=r)return!0}else for(;s>a;a++)if((e||a in o)&&o[a]===i)return e||a||0;return!e&&-1}},pe={includes:he(!0),indexOf:he(!1)},fe=pe.indexOf,me=function(e,t){var i,n=m(e),r=0,o=[];for(i in n)!b(W,i)&&b(n,i)&&o.push(i);for(;t.length>r;)b(n,i=t[r++])&&(~fe(o,i)||o.push(i));return o},ge=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleStr
1ing","toString","valueOf"],ve=ge.concat("length","prototype"),ye={f:Object.getOwnPropertyNames||function(e){return me(e,ve)}},be={f:Object.getOwnPropertySymbols},we=ne("Reflect","ownKeys")||function(e){var t=ye.f(k(e)),i=be.f;return i?t.concat(i(e)):t},xe=function(e,t){for(var i=we(t),n=A.f,r=C.f,o=0;o<i.length;o++){var s=i[o];b(e,s)||n(e,s,r(t,s))}},Se=/#|\.prototype\./,Te=function(e,t){var i=Ce[Ee(e)];return i==Pe||i!=ke&&("function"==typeof t?r(t):!!t)},Ee=Te.normalize=function(e){return String(e).replace(Se,".").toLowerCase()},Ce=Te.data={},ke=Te.NATIVE="N",Pe=Te.POLYFILL="P",Ae=Te,Me=C.f,Le=function(e,t){var i,r,o,s,a,l=e.target,c=e.global,u=e.stat;if(i=c?n:u?n[l]||L(l,{}):(n[l]||{}).prototype)for(r in t){if(s=t[r],o=e.noTargetGet?(a=Me(i,r))&&a.value:i[r],!Ae(c?r:l+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof s==typeof o)continue;xe(s,o)}(e.sham||o&&o.sham)&&M(s,"sham",!0),ee(i,r,s,e)}},Ie=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())}),ze=Ie&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,De=Array.isArray||function(e){return"Array"==d(e)},Oe=function(e){return Object(f(e))},$e=Object.keys||function(e){return me(e,ge)},_e=o?Object.defineProperties:function(e,t){k(e);for(var i,n=$e(t),r=n.length,o=0;r>o;)A.f(e,i=n[o++],t[i]);return e},je=ne("document","documentElement"),Ne=U("IE_PROTO"),Re=function(){},Fe=function(e){return"<script>"+e+"<\/script>"},He=function(){try{Z=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;He=Z?function(e){e.write(Fe("")),e.close();var t=e.parentWindow.Object;return e=null,t}(Z):((t=S("iframe")).style.display="none",je.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Fe("document.F=Object")),e.close(),e.F);for(var i=ge.length;i--;)delete He.prototype[ge[i]];return He()};W[Ne]=!0;var qe=Object.create||function(e,t){var i;return null!==e?(Re.prototype=k(e),i=new Re,Re.prototype=null,i[Ne]=e):i=He(),void 0===t?i:_e(i,t)},Be=ye.f,Ue={}.toString,We="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ve={f:function(e){return We&&"[object Window]"==Ue.call(e)?function(e){try{return Be(e)}catch(e){return We.slice()}}(e):Be(m(e))}},Xe=R("wks"),Ye=n.Symbol,Ge=ze?Ye:Ye&&Ye.withoutSetter||q,Ke=function(e){return b(Xe,e)||(Ie&&b(Ye,e)?Xe[e]=Ye[e]:Xe[e]=Ge("Symbol."+e)),Xe[e]},Qe={f:Ke},Ze=A.f,Je=function(e){var t=te.Symbol||(te.Symbol={});b(t,e)||Ze(t,e,{value:Qe.f(e)})},et=A.f,tt=Ke("toStringTag"),it=function(e,t,i){e&&!b(e=i?e:e.prototype,tt)&&et(e,tt,{configurable:!0,value:t})},nt=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},rt=function(e,t,i){if(nt(e),void 0===t)return e;switch(i){case 0:return function(){return e.call(t)};case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,r){return e.call(t,i,n,r)}}return function(){return e.apply(t,arguments)}},ot=Ke("species"),st=function(e,t){var i;return De(e)&&("function"!=typeof(i=e.constructor)||i!==Array&&!De(i.prototype)?g(i)&&null===(i=i[ot])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===t?0:t)},at=[].push,lt=function(e){var t=1==e,i=2==e,n=3==e,r=4==e,o=6==e,s=5==e||o;return function(a,l,c,u){for(var d,h,f=Oe(a),m=p(f),g=rt(l,c,3),v=le(m.length),y=0,b=u||st,w=t?b(a,v):i?b(a,0):void 0;v>y;y++)if((s||y in m)&&(h=g(d=m[y],y,f),e))if(t)w[y]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:at.call(w,d)}else if(r)return!1;return o?-1:n||r?r:w}},ct={forEach:lt(0),map:lt(1),filter:lt(2),some:lt(3),every:lt(4),find:lt(5),findIndex:lt(6)},ut=ct.forEach,dt=U("hidden"),ht=Ke("toPrimitive"),pt=J.set,ft=J.getterFor("Symbol"),mt=Object.prototype,gt=n.Symbol,vt=ne("JSON","stringify"),yt=C.f,bt=A.f,wt=Ve.f,xt=l.f,St=R("symbols"),Tt=R("op-symbols"),Et=R("string-to-symbol-registry"),Ct=R("symbol-to-string-registry"),kt=R("wks"),Pt=n.QObject,At=!Pt||!Pt.prototype||!Pt.prototype.findChild,Mt=o&&r(function(){return 7!=qe(bt({},"a",{get:function(){return bt(this,"a",{value:7}).a}})).a})?function(e,t,i){var n=yt(mt,t);
vendor: 2,060 bytes, line 1
1n&&delete mt[t],bt(e,t,i),n&&e!==mt&&bt(mt,t,n)}:bt,Lt=function(e,t){var i=St[e]=qe(gt.prototype);return pt(i,{type:"Symbol",tag:e,description:t}),o||(i.description=t),i},It=ze?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof gt},zt=function(e,t,i){e===mt&&zt(Tt,t,i),k(e);var n=v(t,!0);return k(i),b(St,n)?(i.enumerable?(b(e,dt)&&e[dt][n]&&(e[dt][n]=!1),i=qe(i,{enumerable:c(0,!1)})):(b(e,dt)||bt(e,dt,c(1,{})),e[dt][n]=!0),Mt(e,n,i)):bt(e,n,i)},Dt=function(e,t){k(e);var i=m(t),n=$e(i).concat(jt(i));return ut(n,function(t){o&&!Ot.call(i,t)||zt(e,t,i[t])}),e},Ot=function(e){var t=v(e,!0),i=xt.call(this,t);return!(this===mt&&b(St,t)&&!b(Tt,t))&&(!(i||!b(this,t)||!b(St,t)||b(this,dt)&&this[dt][t])||i)},$t=function(e,t){var i=m(e),n=v(t,!0);if(i!==mt||!b(St,n)||b(Tt,n)){var r=yt(i,n);return!r||!b(St,n)||b(i,dt)&&i[dt][n]||(r.enumerable=!0),r}},_t=function(e){var t=wt(m(e)),i=[];return ut(t,function(e){b(St,e)||b(W,e)||i.push(e)}),i},jt=function(e){var t=e===mt,i=wt(t?Tt:m(e)),n=[];return ut(i,function(e){!b(St,e)||t&&!b(mt,e)||n.push(St[e])}),n};if(Ie||(ee((gt=function(){if(this instanceof gt)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=q(e),i=function(e){this===mt&&i.call(Tt,e),b(this,dt)&&b(this[dt],t)&&(this[dt][t]=!1),Mt(this,t,c(1,e))};return o&&At&&Mt(mt,t,{configurable:!0,set:i}),Lt(t,e)}).prototype,"toString",function(){return ft(this).tag}),ee(gt,"withoutSetter",function(e){return Lt(q(e),e)}),l.f=Ot,A.f=zt,C.f=$t,ye.f=Ve.f=_t,be.f=jt,Qe.f=function(e){return Lt(Ke(e),e)},o&&(bt(gt.prototype,"description",{configurable:!0,get:function(){return ft(this).description}}),ee(mt,"propertyIsEnumerable",Ot,{unsafe:!0}))),Le({global:!0,wrap:!0,forced:!Ie,sham:!Ie},{Symbol:gt}),ut($e(kt),function(e){Je(e)}),Le({target:"Symbol",stat:!0,forced:!Ie},{for:function(e){var t=String(e);if(b(Et,t))return Et[t];var i=gt(t);return Et[t]=i,Ct[i]=t,i},keyFor:function(e){if(!It(e))throw TypeError(e+" is not a symbol");if(b(Ct,e))return Ct[e]}
1,useSetter:function(){At=!0},useSimple:function(){At=!1}}),Le({target:"Object",stat:!0,forced:!Ie,sham:!o},{create:function(e,t){return void 0===t?qe(e):Dt(qe(e),t)},defineProperty:zt,defineProperties:Dt,getOwnPropertyDescriptor:$t}),Le({target:"Object",stat:!0,forced:!Ie},{getOwnPropertyNames:_t,getOwnPropertySymbols:jt}),Le({target:"Object",stat:!0,forced:r(function(){be.f(1)})},{getOwnPropertySymbols:function(e){return be.f(Oe(e))}}),vt){var Nt=!Ie||r(function(){var e=gt();return"[null]"!=vt([e])||"{}"!=vt({a:e})||"{}"!=vt(Object(e))});Le({target:"JSON",stat:!0,forced:Nt},{stringify:function(e,t,i){for(var n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t,(g(t)||void 0!==e)&&!It(e))return De(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!It(t))return t}),r[1]=t,vt.apply(null,r)}})}gt.prototype[ht]||M(gt.prototype,ht,gt.prototype.valueOf),it(gt,"Symbol"),W[dt]=!0;var Rt=A.f,Ft=n.Symbol;if(o&&"function"==typeof Ft&&(!("description"in Ft.prototype)||void 0!==Ft().description)){var Ht={},qt=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof qt?new Ft(e):void 0===e?Ft():Ft(e);return""===e&&(Ht[t]=!0),t};xe(qt,Ft);var Bt=qt.prototype=Ft.prototype;Bt.constructor=qt;var Ut=Bt.toString,Wt="Symbol(test)"==String(Ft("test")),Vt=/^Symbol\((.*)\)[^)]+$/;Rt(Bt,"description",{configurable:!0,get:function(){var e=g(this)?this.valueOf():this,t=Ut.call(e);if(b(Ht,e))return"";var i=Wt?t.slice(7,-1):t.replace(Vt,"$1");return""===i?void 0:i}}),Le({global:!0,forced:!0},{Symbol:qt})}Je("iterator");var Xt=function(e,t){var i=[][e];return!!i&&r(function(){i.call(null,t||function(){throw 1},1)})},Yt=Object.defineProperty,Gt={},Kt=function(e){throw e},Qt=function(e,t){if(b(Gt,e))return Gt[e];t||(t={});var i=[][e],n=!!b(t,"ACCESSORS")&&t.ACCESSORS,s=b(t,0)?t[0]:Kt,a=b(t,1)?t[1]:void 0;return Gt[e]=!!i&&!r(function(){if(n&&!o)return!0;var e={length:-1};n?Yt(e,1,{enumerable:!0,get:Kt}):e[1]=1,i.call(e,s,a)})},Zt=ct.forEach,Jt=Xt("forEach"),ei=Qt("forEach"),ti=Jt&&ei?[].forEach:function(e){return Zt(this,e,arguments.length>1?arguments[1]:void 0)};Le({target:"Array",proto:!0,forced:[].forEach!=ti},{forEach:ti});var ii=pe.indexOf,ni=[].indexOf,ri=!!ni&&1/[1].indexOf(1,-0)<0,oi=Xt("indexOf"),si=Qt("indexOf",{ACCESSORS:!0,1:0});Le({target:"Array",proto:!0,forced:ri||!oi||!si},{indexOf:function(e){return ri?ni.apply(this,arguments)||0:ii(this,e,arguments.length>1?arguments[1]:void 0)}});var ai=Ke("unscopables"),li=Array.prototype;null==li[ai]&&A.f(li,ai,{configurable:!0,value:qe(null)});var ci,ui,di,hi=function(e){li[ai][e]=!0},pi={},fi=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),mi=U("IE_PROTO"),gi=Object.prototype,vi=fi?Object.getPrototypeOf:function(e){return e=Oe(e),b(e,mi)?e[mi]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?gi:null},yi=Ke("iterator"),bi=!1;[].keys&&("next"in(di=[].keys())?(ui=vi(vi(di)))!==Object.prototype&&(ci=ui):bi=!0),null==ci&&(ci={}),b(ci,yi)||M(ci,yi,function(){return this});var wi={IteratorPrototype:ci,BUGGY_SAFARI_ITERATORS:bi},xi=wi.IteratorPrototype,Si=function(){return this},Ti=function(e,t,i){var n=t+" Iterator";return e.prototype=qe(xi,{next:c(1,i)}),it(e,n,!1),pi[n]=Si,e},Ei=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,i={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),t=i instanceof Array}catch(e){}return function(i,n){return k(i),function(e){if(!g(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(n),t?e.call(i,n):i.__proto__=n,i}}():void 0),Ci=wi.IteratorPrototype,ki=wi.BUGGY_SAFARI_ITERATORS,Pi=Ke("iterator"),Ai=function(){return this},Mi=function(e,t,i,n,r,o,s){Ti(i,t,n);var a,l,c,u=function(e){if(e===r&&m)return m;if(!ki&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new i(this,e)}}return function(){return new i(this)}},d=t+" Iterator",h=!1,p=e.prototype,f=p[Pi]||p["@@iterator"]||r&&p[r],m=!ki&&f||u(r),g="Array"==t&&p.entries||f;if(g&&(a=vi(g.call(new e)),Ci!==Object.prototype&&a.next&&(vi(a)!==Ci&&(Ei?Ei(a,Ci):"function"!=typeof a[Pi]&&M(a,Pi,Ai)),it(a,d,!0))),"values"==r&&f&&"values"!==f.name&&(h=!0,m=function(){return f.call(this)}),p[Pi]!==m&&M(p,Pi,m),pi[t]=m,r)if(l={values:u("values"),keys:o?m:u("keys"),entries:u("entries")},s)for(c in l)!ki&&!h&&c in p||ee(p,c,l[c]);else Le({target:t,proto:!0,forced:ki||h},l);return l},Li=J.set,Ii=J.getterFor("Array Iterator"),zi=Mi(Array,"Array",function(e,t){Li(this,{type:"Array Iterator",target:m(e),index:0,kind:t})},function(){var e=Ii(this),t=e.target,i=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");pi.Arguments=pi.Array,hi("keys"),hi("values"),hi("entries");var Di=[].join,Oi=p!=Object,$i=Xt("join",",");Le({target:"Array",proto:!0,forced:Oi||!$i},{join:function(e){return Di.call(m(this),void 0===e?",":e)}});var _i,ji,Ni=function(e,t,i){var n=v(t);n in e?A.f(e,n,c(0,i)):e[n]=i},Ri=ne("navigator","userAgent")||"",Fi=n.process,Hi=Fi&&Fi.versions,qi=Hi&&Hi.v8;
vendor: 20,580 bytes, line 1
1qi?ji=(_i=qi.split("."))[0]+_i[1]:Ri&&(!(_i=Ri.match(/Edge\/(\d+)/))||_i[1]>=74)&&(_i=Ri.match(/Chrome\/(\d+)/))&&(ji=_i[1]);var Bi=ji&&+ji,Ui=Ke("species"),Wi=function(e){return Bi>=51||!r(function(){var t=[];return(t.constructor={})[Ui]=function(){return{foo:1}},1!==t[e](Boolean).foo})},Vi=Wi("slice"),Xi=Qt("slice",{ACCESSORS:!0,0:0,1:2}),Yi=Ke("species"),Gi=[].slice,Ki=Math.max;Le({target:"Array",proto:!0,forced:!Vi||!Xi},{slice:function(e,t){var i,n,r,o=m(this),s=le(o.length),a=de(e,s),l=de(void 0===t?s:t,s);if(De(o)&&("function"!=typeof(i=o.constructor)||i!==Array&&!De(i.prototype)?g(i)&&null===(i=i[Yi])&&(i=void 0):i=void 0,i===Array||void 0===i))return Gi.call(o,a,l);for(n=new(void 0===i?Array:i)(Ki(l-a,0)),r=0;a<l;a++,r++)a in o&&Ni(n,r,o[a]);return n.length=r,n}});var Qi={};Qi[Ke("toStringTag")]="z";var Zi="[object z]"===String(Qi),Ji=Ke("toStringTag"),en="Arguments"==d(function(){return arguments}()),tn=Zi?d:function(e){var t,i,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),Ji))?i:en?d(t):"Object"==(n=d(t))&&"function"==typeof t.callee?"Arguments":n},nn=Zi?{}.toString:function(){return"[object "+tn(this)+"]"};Zi||ee(Object.prototype,"toString",nn,{unsafe:!0});var rn=function(){var e=k(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function on(e,t){return RegExp(e,t)}var sn={UNSUPPORTED_Y:r(function(){var e=on("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),BROKEN_CARET:r(function(){var e=on("^r","gy");return e.lastIndex=2,null!=e.exec("str")})},an=RegExp.prototype.exec,ln=String.prototype.replace,cn=an,un=function(){var e=/a/,t=/b*/g;return an.call(e,"a"),an.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),dn=sn.UNSUPPORTED_Y||sn.BROKEN_CARET,hn=void 0!==/()??/.exec("")[1];(un||hn||dn)&&(cn=function(e){var t,i,n,r,o=this,s=dn&&o.sticky,a=rn.call(o),l=o.source,c=0,u=e;return s&&(-1===(a=a.replace("y","")).indexOf("g")&&(a+="g"),u=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(l="(?: "+l+")",u=" "+u,c++),i=new RegExp("^(?:"+l+")",a)),hn&&(i=new RegExp("^"+l+"$(?!\\s)",a)),un&&(t=o.lastIndex),n=an.call(s?i:o,u),s?n?(n.input=n.input.slice(c),n[0]=n[0].slice(c),n.index=o.lastIndex,o.lastIndex+=n[0].length):o.lastIndex=0:un&&n&&(o.lastIndex=o.global?n.index+n[0].length:t),hn&&n&&n.length>1&&ln.call(n[0],i,function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(n[r]=void 0)}),n});var pn=cn;Le({target:"RegExp",proto:!0,forced:/./.exec!==pn},{exec:pn});var fn=RegExp.prototype,mn=fn.toString,gn=r(function(){return"/a/b"!=mn.call({source:"a",flags:"b"})}),vn="toString"!=mn.name;(gn||vn)&&ee(RegExp.prototype,"toString",function(){var e=k(this),t=String(e.source),i=e.flags;return"/"+t+"/"+String(void 0===i&&e instanceof RegExp&&!("flags"in fn)?rn.call(e):i)},{unsafe:!0});var yn=function(e){return function(t,i){var n,r,o=String(f(t)),s=se(i),a=o.length;return s<0||s>=a?e?"":void 0:(n=o.charCodeAt(s))<55296||n>56319||s+1===a||(r=o.charCodeAt(s+1))<56320||r>57343?e?o.charAt(s):n:e?o.slice(s,s+2):r-56320+(n-55296<<10)+65536}},bn={codeAt:yn(!1),charAt:yn(!0)},wn=bn.charAt,xn=J.set,Sn=J.getterFor("String Iterator");Mi(String,"String",function(e){xn(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=Sn(this),i=t.string,n=t.index;return n>=i.length?{value:void 0,done:!0}:(e=wn(i,n),t.index+=e.length,{value:e,done:!1})});var Tn=Ke("species"),En=!r(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),Cn="$0"==="a".replace(/./,"$0"),kn=Ke("replace"),Pn=!!/./[kn]&&""===/./[kn]("a","$0"),An=!r(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var i="ab".split(e);return 2!==i.length||"a"!==i[0]||"b"!==i[1]}),Mn=function(e,t,i,n){var o=Ke(e),s=!r(function(){var t={};return t[o]=function(){return 7},7!=""[e](t)}),a=s&&!r(function(){var t=!1,i=/a/;return"split"===e&&((i={}).constructor={},i.constructor[Tn]=function(){return i},i.flags="",i[o]=/./[o]),i.exec=function(){return t=!0,null},i[o](""),!t});if(!s||!a||"replace"===e&&(!En||!Cn||Pn)||"split"===e&&!An){var l=/./[o],c=i(o,""[e],function(e,t,i,n,r){return t.exec===pn?s&&!r?{done:!0,value:l.call(t,i,n)}:{done:!0,value:e.call(i,t,n)}:{done:!1}},{REPLACE_KEEPS_$0:Cn,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Pn}),u=c[0],d=c[1];ee(String.prototype,e,u),ee(RegExp.prototype,o,2==t?function(e,t){return d.call(e,this,t)}:function(e){return d.call(e,this)})}n&&M(RegExp.prototype[o],"sham",!0)},Ln=bn.charAt,In=function(e,t,i){return t+(i?Ln(e,t).length:1)},zn=function(e,t){var i=e.exec;if("function"==typeof i){var n=i.call(e,t);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==d(e))throw TypeError("RegExp#exec called on incompatible receiver");return pn.call(e,t)},Dn=Math.max,On=Math.min,$n=Math.floor,_n=/\$([$&'`]|\d\d?|<[^>]*>)/g,jn=/\$([$&'`]|\d\d?)/g;Mn("replace",2,function(e,t,i,n){var r=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=n.REPLACE_KEEPS_$0,s=r?"$":"$0";return[function(i,n){var r=f(this),o=null==i?void 0:i[e];return void 0!==o?o.call(i,r,n):t.call(String(r),i,n)},function(e,n){if(!r&&o||"string"==typeof n&&-1===n.indexOf(s)){var l=i(t,e,this,n);if(l.done)return l.value}var c=k(e),u=String(this),d="function"==typeof n;d||(n=String(n));var h=c.global;if(h){var p=c.unicode;c.lastIndex=0}for(var f=[];;){var m=zn(c,u);if(null===m)break;if(f.push(m),!h)break;""===String(m[0])&&(c.lastIndex=In(u,le(c.lastIndex),p))}for(var g,v="",y=0,b=0;b<f.length;b++){m=f[b];for(var w=String(m[0]),x=Dn(On(se(m.index),u.length),0),S=[],T=1;T<m.length;T++)S.push(void 0===(g=m[T])?g:String(g));var E=m.groups;if(d){var C=[w].concat(S,x,u);void 0!==E&&C.push(E);var P=String(n.apply(void 0,C))}else P=a(w,u,x,S,E,n);x>=y&&(v+=u.slice(y,x)+P,y=x+w.length)}return v+u.slice(y)}];function a(e,i,n,r,o,s){var a=n+e.length,l=r.length,c=jn;return void 0!==o&&(o=Oe(o),c=_n),t.call(s,c,function(t,s){var c;switch(s.charAt(0)){case"$":return"$";case"&":return e;case"`":return i.slice(0,n);case"'":return i.slice(a);case"<":c=o[s.slice(1,-1)];break;default:var u=+s;if(0===u)return t;if(u>l){var d=$n(u/10);return 0===d?t:d<=l?void 0===r[d-1]?s.charAt(1):r[d-1]+s.charAt(1):t}c=r[u-1]}return void 0===c?"":c})}});var Nn=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};Mn("search",1,function(e,t,i){return[function(t){var i=f(this),n=null==t?void 0:t[e];return void 0!==n?n.call(t,i):new RegExp(t)[e](String(i))},function(e){var n=i(t,e,this);if(n.done)return n.value;var r=k(e),o=String(this),s=r.lastIndex;Nn(s,0)||(r.lastIndex=0);var a=zn(r,o);return Nn(r.lastIndex,s)||(r.lastIndex=s),null===a?-1:a.index}]});var Rn=Ke("match"),Fn=function(e){var t;return g(e)&&(void 0!==(t=e[Rn])?!!t:"RegExp"==d(e))},Hn=Ke("species"),qn=function(e,t){var i,n=k(e).constructor;return void 0===n||null==(i=k(n)[Hn])?t:nt(i)},Bn=[].push,Un=Math.min,Wn=!r(function(){return!RegExp(4294967295,"y")});Mn("split",2,function(e,t,i){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,i){var n=String(f(this)),r=void 0===i?4294967295:i>>>0;if(0===r)return[];if(void 0===e)return[n];if(!Fn(e))return t.call(n,e,r);for(var o,s,a,l=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,d=new RegExp(e.source,c+"g");(o=pn.call(d,n))&&!((s=d.lastIndex)>u&&(l.push(n.slice(u,o.index)),o.length>1&&o.index<n.length&&Bn.apply(l,o.slice(1)),a=o[0].length,u=s,l.length>=r));)d.lastIndex===o.index&&d.lastIndex++;return u===n.length?!a&&d.test("")||l.push(""):l.push(n.slice(u)),l.length>r?l.slice(0,r):l}:"0".split(void 0,0).length?function(e,i){return void 0===e&&0===i?[]:t.call(this,e,i)}:t,[function(t,i){var r=f(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,r,i):n.call(String(r),t,i)},function(e,r){var o=i(n,e,this,r,n!==t);if(o.done)return o.value;var s=k(e),a=String(this),l=qn(s,RegExp),c=s.unicode,u=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(Wn?"y":"g"),d=new l(Wn?s:"^(?:"+s.source+")",u),h=void 0===r?4294967295:r>>>0;if(0===h)return[];if(0===a.length)return null===zn(d,a)?[a]:[];for(var p=0,f=0,m=[];f<a.length;){d.lastIndex=Wn?f:0;var g,v=zn(d,Wn?a:a.slice(f));if(null===v||(g=Un(le(d.lastIndex+(Wn?0:f)),a.length))===p)f=In(a,f,c);else{if(m.push(a.slice(p,f)),m.length===h)return m;for(var y=1;y<=v.length-1;y++)if(m.push(v[y]),m.length===h)return m;f=p=g}}return m.push(a.slice(p)),m}]},!Wn);var Vn={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 Xn in Vn){var Yn=n[Xn],Gn=Yn&&Yn.prototype;if(Gn&&Gn.forEach!==ti)try{M(Gn,"forEach",ti)}catch(e){Gn.forEach=ti}}var Kn=Ke("iterator"),Qn=Ke("toStringTag"),Zn=zi.values;for(var Jn in Vn){var er=n[Jn],tr=er&&er.prototype;if(tr){if(tr[Kn]!==Zn)try{M(tr,Kn,Zn)}catch(e){tr[Kn]=Zn}if(tr[Qn]||M(tr,Qn,Jn),Vn[Jn])for(var ir in zi)if(tr[ir]!==zi[ir])try{M(tr,ir,zi[ir])}catch(e){tr[ir]=zi[ir]}}}var nr=Ke("iterator"),rr=!r(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,i="";return e.pathname="c%20d",t.forEach(function(e,n){t.delete("b"),i+=n+e}),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[nr]||"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"!==i||"x"!==new URL("http://x",void 0).host}),or=function(e,t,i){if(!(e instanceof t))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return e},sr=Object.assign,ar=Object.defineProperty,lr=!sr||r(function(){if(o&&1!==sr({b:1},sr(ar({},"a",{enumerable:!0,get:function(){ar(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},i=Symbol();return e[i]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=sr({},e)[i]||"abcdefghijklmnopqrst"!=$e(sr({},t)).join("")})?function(e,t){for(var i=Oe(e),n=arguments.length,r=1,s=be.f,a=l.f;n>r;)for(var c,u=p(arguments[r++]),d=s?$e(u).concat(s(u)):$e(u),h=d.length,f=0;h>f;)c=d[f++],o&&!a.call(u,c)||(i[c]=u[c]);return i}:sr,cr=function(e,t,i,n){try{return n?t(k(i)[0],i[1]):t(i)}catch(t){var r=e.return;throw void 0!==r&&k(r.call(e)),t}},ur=Ke("iterator"),dr=Array.prototype,hr=function(e){return void 0!==e&&(pi.Array===e||dr[ur]===e)},pr=Ke("iterator"),fr=function(e){if(null!=e)return e[pr]||e["@@iterator"]||pi[tn(e)]},mr=function(e){var t,i,n,r,o,s,a=Oe(e),l="function"==typeof this?this:Array,c=arguments.length,u=c>1?arguments[1]:void 0,d=void 0!==u,h=fr(a),p=0;if(d&&(u=rt(u,c>2?arguments[2]:void 0,2)),null==h||l==Array&&hr(h))for(i=new l(t=le(a.length));t>p;p++)s=d?u(a[p],p):a[p],Ni(i,p,s);else for(o=(r=h.call(a)).next,i=new l;!(n=o.call(r)).done;p++)s=d?cr(r,u,[n.value,p],!0):n.value,Ni(i,p,s);return i.length=p,i},gr=/[^\0-\u007E]/,vr=/[.\u3002\uFF0E\uFF61]/g,yr="Overflow: input needs wider integers to process",br=Math.floor,wr=String.fromCharCode,xr=function(e){return e+22+75*(e<26)},Sr=function(e,t,i){var n=0;for(e=i?br(e/700):e>>1,e+=br(e/t);e>455;n+=36)e=br(e/35);return br(n+36*e/(e+38))},Tr=function(e){var t,i,n=[],r=(e=function(e){for(var t=[],i=0,n=e.length;i<n;){var r=e.charCodeAt(i++);if(r>=55296&&r<=56319&&i<n){var o=e.charCodeAt(i++);56320==(64512&o)?t.push(((1023&r)<<10)+(1023&o)+65536):(t.push(r),i--)}else t.push(r)}return t}(e)).length,o=128,s=0,a=72;for(t=0;t<e.length;t++)(i=e[t])<128&&n.push(wr(i));var l=n.length,c=l;for(l&&n.push("-");c<r;){var u=2147483647;for(t=0;t<e.length;t++)(i=e[t])>=o&&i<u&&(u=i);var d=c+1;if(u-o>br((2147483647-s)/d))throw RangeError(yr);for(s+=(u-o)*d,o=u,t=0;t<e.length;t++){if((i=e[t])<o&&++s>2147483647)throw RangeError(yr);if(i==o){for(var h=s,p=36;;p+=36){var f=p<=a?1:p>=a+26?26:p-a;if(h<f)break;var m=h-f,g=36-f;n.push(wr(xr(f+m%g))),h=br(m/g)}n.push(wr(xr(h))),a=Sr(s,d,c==l),s=0,++c}}++s,++o}return n.join("")},Er=function(e,t,i){for(var n in t)ee(e,n,t[n],i);return e},Cr=function(e){var t=fr(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return k(t.call(e))},kr=ne("fetch"),Pr=ne("Headers"),Ar=Ke("iterator"),Mr=J.set,Lr=J.getterFor("URLSearchParams"),Ir=J.getterFor("URLSearchParamsIterator"),zr=/\+/g,Dr=Array(4),Or=function(e){return Dr[e-1]||(Dr[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},$r=function(e){try{return decodeURIComponent(e)}catch(t){return e}},_r=function(e){var t=e.replace(zr," "),i=4;try{return decodeURIComponent(t)}catch(e){for(;i;)t=t.replace(Or(i--),$r);return t}},jr=/[!'()~]|%20/g,Nr={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Rr=function(e){return Nr[e]},Fr=function(e){return encodeURIComponent(e).replace(jr,Rr)},Hr=function(e,t){if(t)for(var i,n,r=t.split("&"),o=0;o<r.length;)(i=r[o++]).length&&(n=i.split("="),e.push({key:_r(n.shift()),value:_r(n.join("="))}))},qr=function(e){this.entries.length=0,Hr(this.entries,e)},Br=function(e,t){if(e<t)throw TypeError("Not enough arguments")},Ur=Ti(function(e,t){Mr(this,{type:"URLSearchParamsIterator",iterator:Cr(Lr(e).entries),kind:t})},"Iterator",function(){var e=Ir(this),t=e.kind,i=e.iterator.next(),n=i.value;return i.done||(i.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),i}),Wr=function(){or(this,Wr,"URLSearchParams");var e,t,i,n,r,o,s,a,l,c=arguments.length>0?arguments[0]:void 0,u=[];if(Mr(this,{type:"URLSearchParams",entries:u,updateURL:function(){},updateSearchParams:qr}),void 0!==c)if(g(c))if("function"==typeof(e=fr(c)))for(i=(t=e.call(c)).next;!(n=i.call(t)).done;){if((s=(o=(r=Cr(k(n.value))).next).call(r)).done||(a=o.call(r)).done||!o.call(r).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 Hr(u,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},Vr=Wr.prototype;Er(Vr,{append:function(e,t){Br(arguments.length,2);var i=Lr(this);i.entries.push({key:e+"",value:t+""}),i.updateURL()},delete:function(e){Br(arguments.length,1);for(var t=Lr(this),i=t.entries,n=e+"",r=0;r<i.length;)i[r].key===n?i.splice(r,1):r++;t.updateURL()},get:function(e){Br(arguments.length,1);for(var t=Lr(this).entries,i=e+"",n=0;n<t.length;n++)if(t[n].key===i)return t[n].value;return null},getAll:function(e){Br(arguments.length,1);for(var t=Lr(this).entries,i=e+"",n=[],r=0;r<t.length;r++)t[r].key===i&&n.push(t[r].value);return n},has:function(e){Br(arguments.length,1);for(var t=Lr(this).entries,i=e+"",n=0;n<t.length;)if(t[n++].key===i)return!0;return!1},set:function(e,t){Br(arguments.length,1);for(var i,n=Lr(this),r=n.entries,o=!1,s=e+"",a=t+"",l=0;l<r.length;l++)(i=r[l]).key===s&&(o?r.splice(l--,1):(o=!0,i.value=a));o||r.push({key:s,value:a}),n.updateURL()},sort:function(){var e,t,i,n=Lr(this),r=n.entries,o=r.slice();for(r.length=0,i=0;i<o.length;i++){for(e=o[i],t=0;t<i;t++)if(r[t].key>e.key){r.splice(t,0,e);break}t===i&&r.push(e)}n.updateURL()},forEach:function(e){for(var t,i=Lr(this).entries,n=rt(e,arguments.length>1?arguments[1]:void 0,3),r=0;r<i.length;)n((t=i[r++]).value,t.key,this)},keys:function(){return new Ur(this,"keys")},values:function(){return new Ur(this,"values")},entries:function(){return new Ur(this,"entries")}},{enumerable:!0}),ee(Vr,Ar,Vr.entries),ee(Vr,"toString",function(){for(var e,t=Lr(this).entries,i=[],n=0;n<t.length;)e=t[n++],i.push(Fr(e.key)+"="+Fr(e.value));return i.join("&")},{enumerable:!0}),it(Wr,"URLSearchParams"),Le({global:!0,forced:!rr},{URLSearchParams:Wr}),rr||"function"!=typeof kr||"function"!=typeof Pr||Le({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,i,n,r=[e];return arguments.length>1&&(t=arguments[1],g(t)&&(i=t.body,"URLSearchParams"===tn(i)&&((n=t.headers?new Pr(t.headers):new Pr).has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=qe(t,{body:c(0,String(i)),headers:c(0,n)}))),r.push(t)),kr.apply(this,r)}});var Xr,Yr={URLSearchParams:Wr,getState:Lr},Gr=bn.codeAt,Kr=n.URL,Qr=Yr.URLSearchParams,Zr=Yr.getState,Jr=J.set,eo=J.getterFor("URL"),to=Math.floor,io=Math.pow,no=/[A-Za-z]/,ro=/[\d+\-.A-Za-z]/,oo=/\d/,so=/^(0x|0X)/,ao=/^[0-7]+$/,lo=/^\d+$/,co=/^[\dA-Fa-f]+$/,uo=/[\u0000\u0009\u000A\u000D #%\/:?@[\\]]/,ho=/[\u0000\u0009\u000A\u000D #\/:?@[\\]]/,po=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,fo=/[\u0009\u000A\u000D]/g,mo=function(e,t){var i,n,r;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(i=vo(t.slice(1,-1))))return"Invalid host";e.host=i}else if(Co(e)){if(t=function(e){var t,i,n=[],r=e.toLowerCase().replace(vr,".").split(".");for(t=0;t<r.length;t++)i=r[t],n.push(gr.test(i)?"xn--"+Tr(i):i);return n.join(".")}(t),uo.test(t))return"Invalid host";if(null===(i=go(t)))return"Invalid host";e.host=i}else{if(ho.test(t))return"Invalid host";for(i="",n=mr(t),r=0;r<n.length;r++)i+=To(n[r],bo);e.host=i}},go=function(e){var t,i,n,r,o,s,a,l=e.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),(t=l.length)>4)return e;for(i=[],n=0;n<t;n++){if(""==(r=l[n]))return e;if(o=10,r.length>1&&"0"==r.charAt(0)&&(o=so.test(r)?16:8,r=r.slice(8==o?1:2)),""===r)s=0;else{if(!(10==o?lo:8==o?ao:co).test(r))return e;s=parseInt(r,o)}i.push(s)}for(n=0;n<t;n++)if(s=i[n],n==t-1){if(s>=io(256,5-t))return null}else if(s>255)return null;for(a=i.pop(),n=0;n<i.length;n++)a+=i[n]*io(256,3-n);return a},vo=function(e){var t,i,n,r,o,s,a,l=[0,0,0,0,0,0,0,0],c=0,u=null,d=0,h=function(){return e.charAt(d)};if(":"==h()){if(":"!=e.charAt(1))return;d+=2,u=++c}for(;h();){if(8==c)return;if(":"!=h()){for(t=i=0;i<4&&co.test(h());)t=16*t+parseInt(h(),16),d++,i++;if("."==h()){if(0==i)return;if(d-=i,c>6)return;for(n=0;h();){if(r=null,n>0){if(!("."==h()&&n<4))return;d++}if(!oo.test(h()))return;for(;oo.test(h());){if(o=parseInt(h(),10),null===r)r=o;else{if(0==r)return;r=10*r+o}if(r>255)return;d++}l[c]=256*l[c]+r,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==h()){if(d++,!h())return}else if(h())return;l[c++]=t}else{if(null!==u)return;d++,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},yo=function(e){var t,i,n,r;if("number"==typeof e){for(t=[],i=0;i<4;i++)t.unshift(e%256),e=to(e/256);return t.join(".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,i=1,n=null,r=0,o=0;o<8;o++)0!==e[o]?(r>i&&(t=n,i=r),n=null,r=0):(null===n&&(n=o),++r);return r>i&&(t=n,i=r),t}(e),i=0;i<8;i++)r&&0===e[i]||(r&&(r=!1),n===i?(t+=i?":":"::",r=!0):(t+=e[i].toString(16),i<7&&(t+=":")));return"["+t+"]"}return e},bo={},wo=lr({},bo,{" ":1,'"':1,"<":1,">":1,"`":1}),xo=lr({},wo,{"#":1,"?":1,"{":1,"}":1}),So=lr({},xo,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),To=function(e,t){var i=Gr(e,0);return i>32&&i<127&&!b(t,e)?e:encodeURIComponent(e)},Eo={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Co=function(e){return b(Eo,e.scheme)},ko=function(e){return""!=e.username||""!=e.password},Po=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},Ao=function(e,t){var i;return 2==e.length&&no.test(e.charAt(0))&&(":"==(i=e.charAt(1))||!t&&"|"==i)},Mo=function(e){var t;return e.length>1&&Ao(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},Lo=function(e){var t=e.path,i=t.length;!i||"file"==e.scheme&&1==i&&Ao(t[0],!0)||t.pop()},Io=function(e){return"."===e||"%2e"===e.toLowerCase()},zo={},Do={},Oo={},$o={},_o={},jo={},No={},Ro={},Fo={},Ho={},qo={},Bo={},Uo={},Wo={},Vo={},Xo={},Yo={},Go={},Ko={},Qo={},Zo={},Jo=function(e,t,i,n){var r,o,s,a,l,c=i||zo,u=0,d="",h=!1,p=!1,f=!1;for(i||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(po,"")),t=t.replace(fo,""),r=mr(t);u<=r.length;){switch(o=r[u],c){case zo:if(!o||!no.test(o)){if(i)return"Invalid scheme";c=Oo;continue}d+=o.toLowerCase(),c=Do;break;case Do:if(o&&(ro.test(o)||"+"==o||"-"==o||"."==o))d+=o.toLowerCase();
vendor: 8,463 bytes, line 1
1else{if(":"!=o){if(i)return"Invalid scheme";d="",c=Oo,u=0;continue}if(i&&(Co(e)!=b(Eo,d)||"file"==d&&(ko(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=d,i)return void(Co(e)&&Eo[e.scheme]==e.port&&(e.port=null));d="","file"==e.scheme?c=Wo:Co(e)&&n&&n.scheme==e.scheme?c=$o:Co(e)?c=Ro:"/"==r[u+1]?(c=_o,u++):(e.cannotBeABaseURL=!0,e.path.push(""),c=Ko)}break;case Oo:if(!n||n.cannotBeABaseURL&&"#"!=o)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"==o){e.scheme=n.scheme,e.path=n.path.slice(),e.query=n.query,e.fragment="",e.cannotBeABaseURL=!0,c=Zo;break}c="file"==n.scheme?Wo:jo;continue;case $o:if("/"!=o||"/"!=r[u+1]){c=jo;continue}c=Fo,u++;break;case _o:if("/"==o){c=Ho;break}c=Go;continue;case jo:if(e.scheme=n.scheme,o==Xr)e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query;else if("/"==o||"\\"==o&&Co(e))c=No;else if("?"==o)e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query="",c=Qo;else{if("#"!=o){e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.path.pop(),c=Go;continue}e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query,e.fragment="",c=Zo}break;case No:if(!Co(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,c=Go;continue}c=Ho}else c=Fo;break;case Ro:if(c=Fo,"/"!=o||"/"!=d.charAt(u+1))continue;u++;break;case Fo:if("/"!=o&&"\\"!=o){c=Ho;continue}break;case Ho:if("@"==o){h&&(d="%40"+d),h=!0,s=mr(d);for(var m=0;m<s.length;m++){var g=s[m];if(":"!=g||f){var v=To(g,So);f?e.password+=v:e.username+=v}else f=!0}d=""}else if(o==Xr||"/"==o||"?"==o||"#"==o||"\\"==o&&Co(e)){if(h&&""==d)return"Invalid authority";u-=mr(d).length+1,d="",c=qo}else d+=o;break;case qo:case Bo:if(i&&"file"==e.scheme){c=Xo;continue}if(":"!=o||p){if(o==Xr||"/"==o||"?"==o||"#"==o||"\\"==o&&Co(e)){if(Co(e)&&""==d)return"Invalid host";if(i&&""==d&&(ko(e)||null!==e.port))return;if(a=mo(e,d))return a;if(d="",c=Yo,i)return;continue}"["==o?p=!0:"]"==o&&(p=!1),d+=o}else{if(""==d)return"Invalid host";if(a=mo(e,d))return a;if(d="",c=Uo,i==Bo)return}break;case Uo:if(!oo.test(o)){if(o==Xr||"/"==o||"?"==o||"#"==o||"\\"==o&&Co(e)||i){if(""!=d){var y=parseInt(d,10);if(y>65535)return"Invalid port";e.port=Co(e)&&y===Eo[e.scheme]?null:y,d=""}if(i)return;c=Yo;continue}return"Invalid port"}d+=o;break;case Wo:if(e.scheme="file","/"==o||"\\"==o)c=Vo;else{if(!n||"file"!=n.scheme){c=Go;continue}if(o==Xr)e.host=n.host,e.path=n.path.slice(),e.query=n.query;else if("?"==o)e.host=n.host,e.path=n.path.slice(),e.query="",c=Qo;else{if("#"!=o){Mo(r.slice(u).join(""))||(e.host=n.host,e.path=n.path.slice(),Lo(e)),c=Go;continue}e.host=n.host,e.path=n.path.slice(),e.query=n.query,e.fragment="",c=Zo}}break;case Vo:if("/"==o||"\\"==o){c=Xo;break}n&&"file"==n.scheme&&!Mo(r.slice(u).join(""))&&(Ao(n.path[0],!0)?e.path.push(n.path[0]):e.host=n.host),c=Go;continue;case Xo:if(o==Xr||"/"==o||"\\"==o||"?"==o||"#"==o){if(!i&&Ao(d))c=Go;else if(""==d){if(e.host="",i)return;c=Yo}else{if(a=mo(e,d))return a;if("localhost"==e.host&&(e.host=""),i)return;d="",c=Yo}continue}d+=o;break;case Yo:if(Co(e)){if(c=Go,"/"!=o&&"\\"!=o)continue}else if(i||"?"!=o)if(i||"#"!=o){if(o!=Xr&&(c=Go,"/"!=o))continue}else e.fragment="",c=Zo;else e.query="",c=Qo;break;case Go:if(o==Xr||"/"==o||"\\"==o&&Co(e)||!i&&("?"==o||"#"==o)){if(".."===(l=(l=d).toLowerCase())||"%2e."===l||".%2e"===l||"%2e%2e"===l?(Lo(e),"/"==o||"\\"==o&&Co(e)||e.path.push("")):Io(d)?"/"==o||"\\"==o&&Co(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&Ao(d)&&(e.host&&(e.host=""),d=d.charAt(0)+":"),e.path.push(d)),d="","file"==e.scheme&&(o==Xr||"?"==o||"#"==o))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==o?(e.query="",c=Qo):"#"==o&&(e.fragment="",c=Zo)}else d+=To(o,xo);break;case Ko:"?"==o?(e.query="",c=Qo):"#"==o?(e.fragment="",c=Zo):o!=Xr&&(e.path[0]+=To(o,bo));break;case Qo:i||"#"!=o?o!=Xr&&("'"==o&&Co(e)?e.query+="%27":e.query+="#"==o?"%23":To(o,bo)):(e.fragment="",c=Zo);break;case Zo:o!=Xr&&(e.fragment+=To(o,wo))}u++}},es=function(e){var t,i,n=or(this,es,"URL"),r=arguments.length>1?arguments[1]:void 0,s=String(e),a=Jr(n,{type:"URL"});if(void 0!==r)if(r instanceof es)t=eo(r);else if(i=Jo(t={},String(r)))throw TypeError(i);if(i=Jo(a,s,null,t))throw TypeError(i);var l=a.searchParams=new Qr,c=Zr(l);c.updateSearchParams(a.query),c.updateURL=function(){a.query=String(l)||null},o||(n.href=is.call(n),n.origin=ns.call(n),n.protocol=rs.call(n),n.username=os.call(n),n.password=ss.call(n),n.host=as.call(n),n.hostname=ls.call(n),n.port=cs.call(n),n.pathname=us.call(n),n.search=ds.call(n),n.searchParams=hs.call(n),n.hash=ps.call(n))},ts=es.prototype,is=function(){var e=eo(this),t=e.scheme,i=e.username,n=e.password,r=e.host,o=e.port,s=e.path,a=e.query,l=e.fragment,c=t+":";return null!==r?(c+="//",ko(e)&&(c+=i+(n?":"+n:"")+"@"),c+=yo(r),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?s[0]:s.length?"/"+s.join("/"):"",null!==a&&(c+="?"+a),null!==l&&(c+="#"+l),c},ns=function(){var e=eo(this),t=e.scheme,i=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&Co(e)?t+"://"+yo(e.host)+(null!==i?":"+i:""):"null"},rs=function(){return eo(this).scheme+":"},os=function(){return eo(this).username},ss=function(){return eo(this).password},as=function(){var e=eo(this),t=e.host,i=e.port;return null===t?"":null===i?yo(t):yo(t)+":"+i},ls=function(){var e=eo(this).host;return null===e?"":yo(e)},cs=function(){var e=eo(this).port;return null===e?"":String(e)},us=function(){var e=eo(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},ds=function(){var e=eo(this).query;return e?"?"+e:""},hs=function(){return eo(this).searchParams},ps=function(){var e=eo(this).fragment;return e?"#"+e:""},fs=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(o&&_e(ts,{href:fs(is,function(e){var t=eo(this),i=String(e),n=Jo(t,i);if(n)throw TypeError(n);Zr(t.searchParams).updateSearchParams(t.query)}),origin:fs(ns),protocol:fs(rs,function(e){var t=eo(this);Jo(t,String(e)+":",zo)}),username:fs(os,function(e){var t=eo(this),i=mr(String(e));if(!Po(t)){t.username="";for(var n=0;n<i.length;n++)t.username+=To(i[n],So)}}),password:fs(ss,function(e){var t=eo(this),i=mr(String(e));if(!Po(t)){t.password="";for(var n=0;n<i.length;n++)t.password+=To(i[n],So)}}),host:fs(as,function(e){var t=eo(this);t.cannotBeABaseURL||Jo(t,String(e),qo)}),hostname:fs(ls,function(e){var t=eo(this);t.cannotBeABaseURL||Jo(t,String(e),Bo)}),port:fs(cs,function(e){var t=eo(this);Po(t)||(""==(e=String(e))?t.port=null:Jo(t,e,Uo))}),pathname:fs(us,function(e){var t=eo(this);t.cannotBeABaseURL||(t.path=[],Jo(t,e+"",Yo))}),search:fs(ds,function(e){var t=eo(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Jo(t,e,Qo)),Zr(t.searchParams).updateSearchParams(t.query)}),searchParams:fs(hs),hash:fs(ps,function(e){var t=eo(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Jo(t,e,Zo)):t.fragment=null})}),ee(ts,"toJSON",function(){return is.call(this)},{enumerable:!0}),ee(ts,"toString",function(){return is.call(this)},{enumerable:!0}),Kr){var ms=Kr.createObjectURL,gs=Kr.revokeObjectURL;ms&&ee(es,"createObjectURL",function(e){return ms.apply(Kr,arguments)}),gs&&ee(es,"revokeObjectURL",function(e){return gs.apply(Kr,arguments)})}function vs(e){return(vs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ys(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bs(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ws(e,t,i){return t&&bs(e.prototype,t),i&&bs(e,i),e}function xs(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Ss(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function Ts(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};
vendor: 6,910 bytes, line 1
1t%2?Ss(Object(i),!0).forEach(function(t){xs(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ss(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function Es(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var i=[],n=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return i}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Cs(e){return function(e){if(Array.isArray(e)){for(var t=0,i=new Array(e.length);t<e.length;t++)i[t]=e[t];return i}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}it(es,"URL"),Le({global:!0,forced:!rr,sham:!o},{URL:es}),function(e){var t=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),i=function(e){var i={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(i[Symbol.iterator]=function(){return i}),i},n=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},r=function(e){return decodeURIComponent(String(e).replace(/\+/g," "))};(function(){try{var t=e.URLSearchParams;return"a=1"===new t("?a=1").toString()&&"function"==typeof t.prototype.set}catch(e){return!1}})()||function(){var r=function e(t){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var i=vs(t);if("undefined"===i);else if("string"===i)""!==t&&this._fromString(t);else if(t instanceof e){var n=this;t.forEach(function(e,t){n.append(t,e)})}else{if(null===t||"object"!==i)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(t))for(var r=0;r<t.length;r++){var o=t[r];if("[object Array]"!==Object.prototype.toString.call(o)&&2===o.length)throw new TypeError("Expected [string, any] as entry at index "+r+" of URLSearchParams's input");this.append(o[0],o[1])}else for(var s in t)t.hasOwnProperty(s)&&this.append(s,t[s])}},o=r.prototype;o.append=function(e,t){e in this._entries?this._entries[e].push(String(t)):this._entries[e]=[String(t)]},o.delete=function(e){delete this._entries[e]},o.get=function(e){return e in this._entries?this._entries[e][0]:null},o.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},o.has=function(e){return e in this._entries},o.set=function(e,t){this._entries[e]=[String(t)]},o.forEach=function(e,t){var i;for(var n in this._entries)if(this._entries.hasOwnProperty(n)){i=this._entries[n];for(var r=0;r<i.length;r++)e.call(t,i[r],n,this)}},o.keys=function(){var e=[];return this.forEach(function(t,i){e.push(i)}),i(e)},o.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),i(e)},o.entries=function(){var e=[];return this.forEach(function(t,i){e.push([i,t])}),i(e)},t&&(o[Symbol.iterator]=o.entries),o.toString=function(){var e=[];return this.forEach(function(t,i){e.push(n(i)+"="+n(t))}),e.join("&")},e.URLSearchParams=r}();var o=e.URLSearchParams.prototype;"function"!=typeof o.sort&&(o.sort=function(){var e=this,t=[];this.forEach(function(i,n){t.push([n,i]),e._entries||e.delete(n)}),t.sort(function(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0}),e._entries&&(e._entries={});for(var i=0;i<t.length;i++)this.append(t[i][0],t[i][1])}),"function"!=typeof o._fromString&&Object.defineProperty(o,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(e){if(this._entries)this._entries={};else{var t=[];this.forEach(function(e,i){t.push(i)});for(var i=0;i<t.length;i++)this.delete(t[i])}var n,o=(e=e.replace(/^\?/,"")).split("&");for(i=0;i<o.length;i++)n=o[i].split("="),this.append(r(n[0]),n.length>1?r(n[1]):"")}})}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e),function(e){if(function(){try{var t=new e.URL("b","http://a");return t.pathname="c d","http://a/c%20d"===t.href&&t.searchParams}catch(e){return!1}}()||function(){var t=e.URL,i=function(t,i){"string"!=typeof t&&(t=String(t));var n,r=document;if(i&&(void 0===e.location||i!==e.location.href)){(n=(r=document.implementation.createHTMLDocument("")).createElement("base")).href=i,r.head.appendChild(n);try{if(0!==n.href.indexOf(i))throw new Error(n.href)}catch(e){throw new Error("URL unable to set base "+i+" due to "+e)}}var o=r.createElement("a");if(o.href=t,n&&(r.body.appendChild(o),o.href=o.href),":"===o.protocol||!/:/.test(o.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:o});var s=new e.URLSearchParams(this.search),a=!0,l=!0,c=this;["append","delete","set"].forEach(function(e){var t=s[e];s[e]=function(){t.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,configurable:!1,writable:!1,value:function(){this.search!==u&&(u=this.search,l&&(a=!1,this.searchParams._fromString(this.search),a=!0))}})},n=i.prototype;["hash","host","hostname","port","protocol"].forEach(function(e){!function(e){Object.defineProperty(n,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)}),Object.defineProperty(n,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(n,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),i.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},i.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=i}(),void 0!==e.location&&!("origin"in e.location)){var t=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:t,enumerable:!0})}
vendor: 2,750 bytes, line 1
1catch(i){setInterval(function(){e.location.origin=t()},100)}}}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e);var ks=Ke("isConcatSpreadable"),Ps=Bi>=51||!r(function(){var e=[];return e[ks]=!1,e.concat()[0]!==e}),As=Wi("concat"),Ms=function(e){if(!g(e))return!1;var t=e[ks];return void 0!==t?!!t:De(e)};Le({target:"Array",proto:!0,forced:!Ps||!As},{concat:function(e){var t,i,n,r,o,s=Oe(this),a=st(s,0),l=0;for(t=-1,n=arguments.length;t<n;t++)if(o=-1===t?s:arguments[t],Ms(o)){if(l+(r=le(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(i=0;i<r;i++,l++)i in o&&Ni(a,l,o[i])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Ni(a,l++,o)}return a.length=l,a}});var Ls=ct.filter,Is=Wi("filter"),zs=Qt("filter");Le({target:"Array",proto:!0,forced:!Is||!zs},{filter:function(e){return Ls(this,e,arguments.length>1?arguments[1]:void 0)}});var Ds=ct.find,Os=!0,$s=Qt("find");"find"in[]&&Array(1).find(function(){Os=!1}),Le({target:"Array",proto:!0,forced:Os||!$s},{find:function(e){return Ds(this,e,arguments.length>1?arguments[1]:void 0)}}),hi("find");var _s=Ke("iterator"),js=!1;try{var Ns=0,Rs={next:function(){return{done:!!Ns++}},return:function(){js=!0}};Rs[_s]=function(){return this},Array.from(Rs,function(){throw 2})}catch(e){}var Fs=function(e,t){if(!t&&!js)return!1;var i=!1;try{var n={};n[_s]=function(){return{next:function(){return{done:i=!0}}}},e(n)}catch(e){}return i},Hs=!Fs(function(e){Array.from(e)});Le({target:"Array",stat:!0,forced:Hs},{from:mr});var qs=pe.includes,Bs=Qt("indexOf",{ACCESSORS:!0,1:0});Le({target:"Array",proto:!0,forced:!Bs},{includes:function(e){return qs(this,e,arguments.length>1?arguments[1]:void 0)}}),hi("includes");var Us=ct.map,Ws=Wi("map"),Vs=Qt("map");Le({target:"Array",proto:!0,forced:!Ws||!Vs},{map:function(e){return Us(this,e,arguments.length>1?arguments[1]:void 0)}});var Xs=function(e,t,i){var n,r;return Ei&&"function"==typeof(n=t.constructor)&&n!==i&&g(r=n.prototype)&&r!==i.prototype&&Ei(e,r),e},Ys="\t\n\v\f\r áââââââ
ââââââ¯âã\u2028\u2029\ufeff",Gs="["+Ys+"]",Ks=RegExp("^"+Gs+Gs+"*"),Qs=RegExp(Gs+Gs+"*$"),Zs=function(e){return function(t){var i=String(f(t));return 1&e&&(i=i.replace(Ks,"")),2&e&&(i=i.replace(Qs,"")),i}},Js={start:Zs(1),end:Zs(2),trim:Zs(3)},ea=ye.f,ta=C.f,ia=A.f,na=Js.trim,ra=n.Number,oa=ra.prototype,sa="Number"==d(qe(oa)),aa=function(e){var t,i,n,r,o,s,a,l,c=v(e,!1);if("string"==typeof c&&c.length>2)if(43===(t=(c=na(c)).charCodeAt(0))||45===t){if(88===(i=c.charCodeAt(2))||120===i)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+c}for(s=(o=c.slice(2)).length,a=0;a<s;
vendor: 4,096 bytes, line 1
1a++)if((l=o.charCodeAt(a))<48||l>r)return NaN;return parseInt(o,n)}return+c};if(Ae("Number",!ra(" 0o1")||!ra("0b1")||ra("+0x1"))){for(var la,ca=function(e){var t=arguments.length<1?0:e,i=this;return i instanceof ca&&(sa?r(function(){oa.valueOf.call(i)}):"Number"!=d(i))?Xs(new ra(aa(t)),i,ca):aa(t)},ua=o?ea(ra):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),da=0;ua.length>da;da++)b(ra,la=ua[da])&&!b(ca,la)&&ia(ca,la,ta(ra,la));ca.prototype=oa,oa.constructor=ca,ee(n,"Number",ca)}var ha=r(function(){$e(1)});Le({target:"Object",stat:!0,forced:ha},{keys:function(e){return $e(Oe(e))}});var pa=function(e){if(Fn(e))throw TypeError("The method doesn't accept regular expressions");return e},fa=Ke("match"),ma=function(e){var t=/./;try{"/./"[e](t)}catch(i){try{return t[fa]=!1,"/./"[e](t)}catch(e){}}return!1};Le({target:"String",proto:!0,forced:!ma("includes")},{includes:function(e){return!!~String(f(this)).indexOf(pa(e),arguments.length>1?arguments[1]:void 0)}});var ga=!r(function(){return Object.isExtensible(Object.preventExtensions({}))}),va=t(function(e){var t=A.f,i=q("meta"),n=0,r=Object.isExtensible||function(){return!0},o=function(e){t(e,i,{value:{objectID:"O"+ ++n,weakData:{}}})},s=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!g(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!b(e,i)){if(!r(e))return"F";if(!t)return"E";o(e)}return e[i].objectID},getWeakData:function(e,t){if(!b(e,i)){if(!r(e))return!0;if(!t)return!1;o(e)}return e[i].weakData},onFreeze:function(e){return ga&&s.REQUIRED&&r(e)&&!b(e,i)&&o(e),e}};W[i]=!0}),ya=(va.REQUIRED,va.fastKey,va.getWeakData,va.onFreeze,t(function(e){var t=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,i,n,r,o){var s,a,l,c,u,d,h,p=rt(i,n,r?2:1);if(o)s=e;else{if("function"!=typeof(a=fr(e)))throw TypeError("Target is not iterable");if(hr(a)){for(l=0,c=le(e.length);c>l;l++)if((u=r?p(k(h=e[l])[0],h[1]):p(e[l]))&&u instanceof t)return u;return new t(!1)}s=a.call(e)}for(d=s.next;!(h=d.call(s)).done;)if("object"==typeof(u=cr(s,p,h.value,r))&&u&&u instanceof t)return u;return new t(!1)}).stop=function(e){return new t(!0,e)}})),ba=va.getWeakData,wa=J.set,xa=J.getterFor,Sa=ct.find,Ta=ct.findIndex,Ea=0,Ca=function(e){return e.frozen||(e.frozen=new ka)},ka=function(){this.entries=[]},Pa=function(e,t){return Sa(e.entries,function(e){return e[0]===t})};ka.prototype={get:function(e){var t=Pa(this,e);if(t)return t[1]},has:function(e){return!!Pa(this,e)},set:function(e,t){var i=Pa(this,e);i?i[1]=t:this.entries.push([e,t])},delete:function(e){var t=Ta(this.entries,function(t){return t[0]===e});return~t&&this.entries.splice(t,1),!!~t}};var Aa={getConstructor:function(e,t,i,n){var r=e(function(e,o){or(e,r,t),wa(e,{type:t,id:Ea++,frozen:void 0}),null!=o&&ya(o,e[n],e,i)}),o=xa(t),s=function(e,t,i){var n=o(e),r=ba(k(t),!0);return!0===r?Ca(n).set(t,i):r[n.id]=i,e};return Er(r.prototype,{delete:function(e){var t=o(this);if(!g(e))return!1;var i=ba(e);return!0===i?Ca(t).delete(e):i&&b(i,t.id)&&delete i[t.id]},has:function(e){var t=o(this);if(!g(e))return!1;var i=ba(e);return!0===i?Ca(t).has(e):i&&b(i,t.id)}}),Er(r.prototype,i?{get:function(e){var t=o(this);if(g(e)){var i=ba(e);return!0===i?Ca(t).get(e):i?i[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),r}},Ma=(t(function(e){var t,i=J.enforce,o=!n.ActiveXObject&&"ActiveXObject"in n,s=Object.isExtensible,a=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},l=e.exports=function(e,t,i){var o=-1!==e.indexOf("Map"),s=-1!==e.indexOf("Weak"),a=o?"set":"add",l=n[e],c=l&&l.prototype,u=l,d={},h=function(e){var t=c[e];ee(c,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(s&&!g(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return s&&!g(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(s&&!g(e))&&t.call(this,0===e?0:e)}:function(e,i){return t.call(this,0===e?0:e,i),this})};
1if(Ae(e,"function"!=typeof l||!(s||c.forEach&&!r(function(){(new l).entries().next()}))))u=i.getConstructor(t,e,o,a),va.REQUIRED=!0;else if(Ae(e,!0)){var p=new u,f=p[a](s?{}:-0,1)!=p,m=r(function(){p.has(1)}),v=Fs(function(e){new l(e)}),y=!s&&r(function(){for(var e=new l,t=5;t--;)e[a](t,t);return!e.has(-0)});v||((u=t(function(t,i){or(t,u,e);var n=Xs(new l,t,u);return null!=i&&ya(i,n[a],n,o),n})).prototype=c,c.constructor=u),(m||y)&&(h("delete"),h("has"),o&&h("get")),(y||f)&&h(a),s&&c.clear&&delete c.clear}return d[e]=u,Le({global:!0,forced:u!=l},d),it(u,e),s||i.setStrong(u,e,o),u}("WeakMap",a,Aa);if(N&&o){t=Aa.getConstructor(a,"WeakMap",!0),va.REQUIRED=!0;var c=l.prototype,u=c.delete,d=c.has,h=c.get,p=c.set;Er(c,{delete:function(e){if(g(e)&&!s(e)){var n=i(this);return n.frozen||(n.frozen=new t),u.call(this,e)||n.frozen.delete(e)}return u.call(this,e)},has:function(e){if(g(e)&&!s(e)){var n=i(this);return n.frozen||(n.frozen=new t),d.call(this,e)||n.frozen.has(e)}return d.call(this,e)},get:function(e){if(g(e)&&!s(e)){var n=i(this);return n.frozen||(n.frozen=new t),d.call(this,e)?h.call(this,e):n.frozen.get(e)}return h.call(this,e)},set:function(e,n){if(g(e)&&!s(e)){var r=i(this);r.frozen||(r.frozen=new t),d.call(this,e)?p.call(this,e,n):r.frozen.set(e,n)}else p.call(this,e,n);return this}})}}),ct.every),La=Xt("every"),Ia=Qt("every");Le({target:"Array",proto:!0,forced:!La||!Ia},{every:function(e){return Ma(this,e,arguments.length>1?arguments[1]:void 0)}}),Le({target:"Object",stat:!0,forced:Object.assign!==lr},{assign:lr});var za=Js.trim;Le({target:"String",proto:!0,forced:function(e){return r(function(){return!!Ys[e]()||"âÂ
á "!="âÂ
á "[e]()||Ys[e].name!==e})}("trim")},{trim:function(){return za(this)}});var Da=ct.some,Oa=Xt("some"),$a=Qt("some");Le({target:"Array",proto:!0,forced:!Oa||!$a},{some:function(e){return Da(this,e,arguments.length>1?arguments[1]:void 0)}});var _a="".repeat||function(e){var t=String(f(this)),i="",n=se(e);if(n<0||n==1/0)throw RangeError("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(i+=t);return i},ja=1..toFixed,Na=Math.floor,Ra=function(e,t,i){return 0===t?i:t%2==1?Ra(e,t-1,i*e):Ra(e*e,t/2,i)},Fa=ja&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(function(){ja.call({})});Le({target:"Number",proto:!0,forced:Fa},{toFixed:function(e){var t,i,n,r,o=function(e){if("number"!=typeof e&&"Number"!=d(e))throw TypeError("Incorrect invocation");return+e}(this),s=se(e),a=[0,0,0,0,0,0],l="",c="0",u=function(e,t){for(var i=-1,n=t;++i<6;)n+=e*a[i],a[i]=n%1e7,n=Na(n/1e7)},h=function(e){for(var t=6,i=0;--t>=0;)i+=a[t],a[t]=Na(i/e),i=i%e*1e7},p=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==a[e]){var i=String(a[e]);t=""===t?i:t+_a.call("0",7-i.length)+i}return t};if(s<0||s>20)throw RangeError("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return String(o);if(o<0&&(l="-",o=-o),o>1e-21)if(i=(t=function(e){for(var t=0,i=o*Ra(2,69,1);i>=4096;)t+=12,i/=4096;for(;i>=2;)t+=1,i/=2;return t}()-69)<0?o*Ra(2,-t,1):o/Ra(2,t,1),i*=4503599627370496,(t=52-t)>0){for(u(0,i),n=s;n>=7;)u(1e7,0),n-=7;for(u(Ra(10,n,1),0),n=t-1;n>=23;)h(1<<23),n-=23;h(1<<n),u(1,1),h(2),c=p()}else u(0,i),u(1<<-t,0),c=p()+_a.call("0",s);return s>0?l+((r=c.length)<=s?"0."+_a.call("0",s-r)+c:c.slice(0,r-s)+"."+c.slice(r-s)):l+c}});var Ha=l.f,qa=function(e){return function(t){for(var i,n=m(t),r=$e(n),s=r.length,a=0,l=[];s>a;)i=r[a++],o&&!Ha.call(n,i)||l.push(e?[i,n[i]]:n[i]);return l}},Ba={entries:qa(!0),values:qa(!1)},Ua=Ba.entries;Le({target:"Object",stat:!0},{entries:function(e){return Ua(e)}});var Wa=Ba.values;Le({target:"Object",stat:!0},{values:function(e){return Wa(e)}});var Va={addCSS:!0,thumbWidth:15,watch:!0};Le({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var Xa=function(e){return null!=e?e.constructor:null},Ya=function(e,t){return Boolean(e&&t&&e instanceof t)},Ga=function(e){return Xa(e)===String},Ka=function(e){return Array.isArray(e)},Qa=function(e){return Ya(e,NodeList)},Za=Ga,Ja=Ka,el=Qa,tl=function(e){return Ya(e,Element)},il=function(e){return Ya(e,Event)},nl=function(e){return function(e){return null==e}(e)||(Ga(e)||Ka(e)||Qa(e))&&!e.length||function(e){return Xa(e)===Object}(e)&&!Object.keys(e).length};Mn("match",1,function(e,t,i){return[function(t){var i=f(this),n=null==t?void 0:t[e];return void 0!==n?n.call(t,i):new RegExp(t)[e](String(i))},function(e){var n=i(t,e,this);if(n.done)return n.value;var r=k(e),o=String(this);if(!r.global)return zn(r,o);var s=r.unicode;r.lastIndex=0;for(var a,l=[],c=0;null!==(a=zn(r,o));){var u=String(a[0]);l[c]=u,""===u&&(r.lastIndex=In(o,le(r.lastIndex),s)),c++}return 0===c?null:l}]});var rl,ol,sl,al=function(){function e(t,i){ys(this,e),tl(t)?this.element=t:Za(t)&&(this.element=document.querySelector(t)),tl(this.element)&&nl(this.element.rangeTouch)&&(this.config=Object.assign({},Va,i),this.init())}return ws(e,[{key:"init",value:function(){e.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(){e.enabled&&(this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(e){var t=this,i=e?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(e){t.element[i](e,function(e){return t.set(e)},!1)})}},{key:"get",value:function(t){if(!e.enabled||!il(t))return null;var i,n=t.target,r=t.changedTouches[0],o=parseFloat(n.getAttribute("min"))||0,s=parseFloat(n.getAttribute("max"))||100,a=parseFloat(n.getAttribute("step"))||1,l=s-o,c=n.getBoundingClientRect(),u=100/c.width*(this.config.thumbWidth/2)/100;return(i=100/c.width*(r.clientX-c.left))<0?i=0:i>100&&(i=100),i<50?i-=(100-2*i)*u:i>50&&(i+=2*(i-50)*u),o+function(e,t){if(t<1){var i=function(e){var t="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}(t);return parseFloat(e.toFixed(i))}return Math.round(e/t)*t}(l*(i/100),a)}},{key:"set",value:function(t){e.enabled&&il(t)&&!t.target.disabled&&(t.preventDefault(),t.target.value=this.get(t),function(e,t){if(e&&t){var i=new Event(t);e.dispatchEvent(i)}}(t.target,"touchend"===t.type?"change":"input"))}}],[{key:"setup",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null;if(nl(t)||Za(t)?n=Array.from(document.querySelectorAll(Za(t)?t:'input[type="range"]')):tl(t)?n=[t]:el(t)?n=Array.from(t):Ja(t)&&(n=t.filter(tl)),nl(n))return null;var r=Object.assign({},Va,i);return Za(t)&&r.watch&&new MutationObserver(function(i){Array.from(i).forEac
vendor: 4,607 bytes, line 1
1h(function(i){Array.from(i.addedNodes).forEach(function(i){tl(i)&&function(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(i,t)}(0,t)&&new e(i,r)})})}).observe(document.body,{childList:!0,subtree:!0}),n.map(function(t){return new e(t,i)})}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e}(),ll=n.Promise,cl=Ke("species"),ul=function(e){var t=ne(e),i=A.f;o&&t&&!t[cl]&&i(t,cl,{configurable:!0,get:function(){return this}})},dl=/(iphone|ipod|ipad).*applewebkit/i.test(Ri),hl=n.location,pl=n.setImmediate,fl=n.clearImmediate,ml=n.process,gl=n.MessageChannel,vl=n.Dispatch,yl=0,bl={},wl=function(e){if(bl.hasOwnProperty(e)){var t=bl[e];delete bl[e],t()}},xl=function(e){return function(){wl(e)}},Sl=function(e){wl(e.data)},Tl=function(e){n.postMessage(e+"",hl.protocol+"//"+hl.host)};pl&&fl||(pl=function(e){for(var t=[],i=1;arguments.length>i;)t.push(arguments[i++]);return bl[++yl]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},rl(yl),yl},fl=function(e){delete bl[e]},"process"==d(ml)?rl=function(e){ml.nextTick(xl(e))}:vl&&vl.now?rl=function(e){vl.now(xl(e))}:gl&&!dl?(sl=(ol=new gl).port2,ol.port1.onmessage=Sl,rl=rt(sl.postMessage,sl,1)):!n.addEventListener||"function"!=typeof postMessage||n.importScripts||r(Tl)?rl="onreadystatechange"in S("script")?function(e){je.appendChild(S("script")).onreadystatechange=function(){je.removeChild(this),wl(e)}}:function(e){setTimeout(xl(e),0)}:(rl=Tl,n.addEventListener("message",Sl,!1)));var El,Cl,kl,Pl,Al,Ml,Ll,Il,zl={set:pl,clear:fl},Dl=C.f,Ol=zl.set,$l=n.MutationObserver||n.WebKitMutationObserver,_l=n.process,jl=n.Promise,Nl="process"==d(_l),Rl=Dl(n,"queueMicrotask"),Fl=Rl&&Rl.value;Fl||(El=function(){var e,t;for(Nl&&(e=_l.domain)&&e.exit();Cl;){t=Cl.fn,Cl=Cl.next;try{t()}catch(e){throw Cl?Pl():kl=void 0,e}}kl=void 0,e&&e.enter()},Nl?Pl=function(){_l.nextTick(El)}:$l&&!dl?(Al=!0,Ml=document.createTextNode(""),new $l(El).observe(Ml,{characterData:!0}),Pl=function(){Ml.data=Al=!Al}):jl&&jl.resolve?(Ll=jl.resolve(void 0),Il=Ll.then,Pl=function(){Il.call(Ll,El)}):Pl=function(){Ol.call(n,El)});var Hl,ql,Bl,Ul,Wl=Fl||function(e){var t={fn:e,next:void 0};kl&&(kl.next=t),Cl||(Cl=t,Pl()),kl=t},Vl=function(e){var t,i;this.promise=new e(function(e,n){if(void 0!==t||void 0!==i)throw TypeError("Bad Promise constructor");t=e,i=n}),this.resolve=nt(t),this.reject=nt(i)},Xl={f:function(e){return new Vl(e)}},Yl=function(e,t){if(k(e),g(t)&&t.constructor===e)return t;var i=Xl.f(e);return(0,i.resolve)(t),i.promise},Gl=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Kl=zl.set,Ql=Ke("species"),Zl="Promise",Jl=J.get,ec=J.set,tc=J.getterFor(Zl),ic=ll,nc=n.TypeError,rc=n.document,oc=n.process,sc=ne("fetch"),ac=Xl.f,lc=ac,cc="process"==d(oc),uc=!!(rc&&rc.createEvent&&n.dispatchEvent),dc=Ae(Zl,function(){if(_(ic)===String(ic)){if(66===Bi)return!0;if(!cc&&"function"!=typeof PromiseRejectionEvent)return!0}if(Bi>=51&&/native code/.test(ic))return!1;var e=ic.resolve(1),t=function(e){e(function(){},function(){})};return(e.constructor={})[Ql]=t,!(e.then(function(){})instanceof t)}),hc=dc||!Fs(function(e){ic.all(e).catch(function(){})}),pc=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},fc=function(e,t,i){if(!t.notified){t.notified=!0;var n=t.reactions;Wl(function(){for(var r=t.value,o=1==t.state,s=0;n.length>s;){var a,l,c,u=n[s++],d=o?u.ok:u.fail,h=u.resolve,p=u.reject,f=u.domain;try{d?(o||(2===t.rejection&&yc(e,t),t.rejection=1),!0===d?a=r:(f&&f.enter(),a=d(r),f&&(f.exit(),c=!0)),a===u.promise?p(nc("Promise-chain cycle")):(l=pc(a))?l.call(a,h,p):h(a)):p(r)}catch(e){f&&!c&&f.exit(),p(e)}}t.reactions=[],t.notified=!1,i&&!t.rejection&&gc(e,t)})}},mc=function(e,t,i){var r,o;uc?((r=rc.createEvent("Event")).promise=t,r.reason=i,r.initEvent(e,!1,!0),n.dispatchEvent(r)):r={promise:t,reason:i},(o=n["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var i=n.console;i&&i.error&&(1===arguments.length?i.error(e):i.error(e,t))}("Unhandled promise rejection",i)},gc=function(e,t){Kl.call(n,function(){var i,n=t.value;if(vc(t)&&(i=Gl(function(){cc?oc.emit("unhandledRejection",n,e):mc("unhandledrejection",e,n)}),t.rejection=cc||vc(t)?2:1,i.error))throw i.value})},vc=function(e){return 1!==e.rejection&&!e.parent},yc=function(e,t){Kl.call(n,function(){cc?oc.emit("rejectionHandled",e):mc("rejectionhandled",e,t.value)})},bc=function(e,t,i,n){return function(r){e(t,i,r,n)}},wc=function(e,t,i,n){t.done||(t.done=!0,n&&(t=n),t.value=i,t.state=2,fc(e,t,!0))},xc=function(e,t,i,n){if(!t.done){t.done=!0,n&&(t=n);
1try{if(e===i)throw nc("Promise can't be resolved itself");var r=pc(i);r?Wl(function(){var n={done:!1};try{r.call(i,bc(xc,e,n,t),bc(wc,e,n,t))}catch(i){wc(e,n,i,t)}}):(t.value=i,t.state=1,fc(e,t,!1))}catch(i){wc(e,{done:!1},i,t)}}};dc&&(ic=function(e){or(this,ic,Zl),nt(e),Hl.call(this);var t=Jl(this);try{e(bc(xc,this,t),bc(wc,this,t))}catch(e){wc(this,t,e)}},(Hl=function(e){ec(this,{type:Zl,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Er(ic.prototype,{then:function(e,t){var i=tc(this),n=ac(qn(this,ic));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=cc?oc.domain:void 0,i.parent=!0,i.reactions.push(n),0!=i.state&&fc(this,i,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),ql=function(){var e=new Hl,t=Jl(e);this.promise=e,this.resolve=bc(xc,e,t),this.reject=bc(wc,e,t)},Xl.f=ac=function(e){return e===ic||e===Bl?new ql(e):lc(e)},"function"==typeof ll&&(Ul=ll.prototype.then,ee(ll.prototype,"then",function(e,t){var i=this;return new ic(function(e,t){Ul.call(i,e,t)}).then(e,t)},{unsafe:!0}),"function"==typeof sc&&Le({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return Yl(ic,sc.apply(n,arguments))}}))),Le({global:!0,wrap:!0,forced:dc},{Promise:ic}),it(ic,Zl,!1),ul(Zl),Bl=ne(Zl),Le({target:Zl,stat:!0,forced:dc},{reject:function(e){var t=ac(this);return t.reject.call(void 0,e),t.promise}}),Le({target:Zl,stat:!0,forced:dc},{resolve:function(e){return Yl(this,e)}}),Le({target:Zl,stat:!0,forced:hc},{all:function(e){var t=this,i=ac(t),n=i.resolve,r=i.reject,o=Gl(function(){var i=nt(t.resolve),o=[],s=0,a=1;ya(e,function(e){var l=s++,c=!1;o.push(void 0),a++,i.call(t,e).then(function(e){c||(c=!0,o[l]=e,--a||n(o))},r)}),--a||n(o)});return o.error&&r(o.value),i.promise},race:function(e){var t=this,i=ac(t),n=i.reject,r=Gl(function(){var r=nt(t.resolve);ya(e,function(e){r.call(t,e).then(i.resolve,n)})});return r.error&&n(r.value),i.promise}});var Sc,Tc=C.f,Ec="".startsWith,Cc=Math.min,kc=ma("startsWith"),Pc=!(kc||(Sc=Tc(String.prototype,"startsWith"),!Sc||Sc.writable));Le({target:"String",proto:!0,forced:!Pc&&!kc},{startsWith:function(e){var t=String(f(this));pa(e);var i=le(Cc(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return Ec?Ec.call(t,n,i):t.slice(i,i+n.length)===n}});var Ac,Mc,Lc,Ic=function(e){return null!=e?e.constructor:null},zc=function(e,t){return Boolean(e&&t&&e instanceof t)},Dc=function(e){return null==e},Oc=function(e){return Ic(e)===Object},$c=function(e){return Ic(e)===String},_c=function(e){return Array.isArray(e)},jc=function(e){return zc(e,NodeList)},Nc=function(e){return Dc(e)||($c(e)||_c(e)||jc(e))&&!e.length||Oc(e)&&!Object.keys(e).length},Rc=Dc,Fc=Oc,Hc=function(e){return Ic(e)===Number&&!Number.isNaN(e)},qc=$c,Bc=function(e){return Ic(e)===Boolean},Uc=function(e){return Ic(e)===Function},Wc=_c,Vc=jc,Xc=function(e){return zc(e,Element)},Yc=function(e){return zc(e,Event)},Gc=function(e){return zc(e,KeyboardEvent)},Kc=function(e){return zc(e,TextTrack)||!Dc(e)&&$c(e.kind)},Qc=function(e){if(zc(e,window.URL))return!0;if(!$c(e))return!1;var t=e;e.startsWith("http://")&&e.startsWith("https://")||(t="http://".concat(e));try{return!Nc(new URL(t).hostname)}catch(e){return!1}},Zc=Nc,Jc=(Ac=document.createElement("span"),Mc={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},Lc=Object.keys(Mc).find(function(e){return void 0!==Ac.style[e]}),!!qc(Lc)&&Mc[Lc]);function eu(e,t){setTimeout(function(){try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch(e){}},t)}var tu={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)},iu=function(e){return function(t,i,n,r){nt(i);var o=Oe(t),s=p(o),a=le(o.length),l=e?a-1:0,c=e?-1:1;if(n<2)for(;;){if(l in s){r=s[l],l+=c;break}
1if(l+=c,e?l<0:a<=l)throw TypeError("Reduce of empty array with no initial value")}for(;e?l>=0:a>l;l+=c)l in s&&(r=i(r,s[l],l,o));return r}},nu=[iu(!1),iu(!0)][0],ru=Xt("reduce"),ou=Qt("reduce",{1:0});function su(e,t){return t.split(".").reduce(function(e,t){return e&&e[t]},e)}function au(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];if(!i.length)return e;var r=i.shift();return Fc(r)?(Object.keys(r).forEach(function(t){Fc(r[t])?(Object.keys(e).includes(t)||Object.assign(e,xs({},t,{})),au(e[t],r[t])):Object.assign(e,xs({},t,r[t]))}),au.apply(void 0,[e].concat(i))):e}function lu(e,t){var i=e.length?e:[e];Array.from(i).reverse().forEach(function(e,i){var n=i>0?t.cloneNode(!0):t,r=e.parentNode,o=e.nextSibling;n.appendChild(e),o?r.insertBefore(n,o):r.appendChild(n)})}function cu(e,t){Xc(e)&&!Zc(t)&&Object.entries(t).filter(function(e){var t=Es(e,2)[1];return!Rc(t)}).forEach(function(t){var i=Es(t,2),n=i[0],r=i[1];return e.setAttribute(n,r)})}function uu(e,t,i){var n=document.createElement(e);return Fc(t)&&cu(n,t),qc(i)&&(n.innerText=i),n}function du(e,t,i,n){Xc(t)&&t.appendChild(uu(e,i,n))}function hu(e){Vc(e)||Wc(e)?Array.from(e).forEach(hu):Xc(e)&&Xc(e.parentNode)&&e.parentNode.removeChild(e)}function pu(e){if(Xc(e))for(var t=e.childNodes.length;t>0;)e.removeChild(e.lastChild),t-=1}function fu(e,t){return Xc(t)&&Xc(t.parentNode)&&Xc(e)?(t.parentNode.replaceChild(e,t),e):null}function mu(e,t){if(!qc(e)||Zc(e))return{};var i={},n=au({},t);return e.split(",").forEach(function(e){var t=e.trim(),r=t.replace(".",""),o=t.replace(/[[\]]/g,"").split("="),s=Es(o,1)[0],a=o.length>1?o[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":qc(n.class)?i.class="".concat(n.class," ").concat(r):i.class=r;break;case"#":i.id=t.replace("#","");break;case"[":i[s]=a}}),au(n,i)}function gu(e,t){if(Xc(e)){var i=t;Bc(i)||(i=!e.hidden),e.hidden=i}}function vu(e,t,i){if(Vc(e))return Array.from(e).map(function(e){return vu(e,t,i)});if(Xc(e)){var n="toggle";return void 0!==i&&(n=i?"add":"remove"),e.classList[n](t),e.classList.contains(t)}return!1}function yu(e,t){return Xc(e)&&e.classList.contains(t)}function bu(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}function wu(e){return this.elements.container.querySelectorAll(e)}function xu(e){return this.elements.container.querySelector(e)}function Su(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Xc(e)&&(e.focus({preventScroll:!0}),t&&vu(e,this.config.classNames.tabFocus))}Le({target:"Array",proto:!0,forced:!ru||!ou},{reduce:function(e){return nu(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Tu,Eu={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},Cu={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(e,t,i){var n=tu.isIPhone&&i&&Cu.playsinline,r=Cu[e]||"html5"!==t;return{api:r,ui:r&&Cu.rangeInput&&("video"!==e||!tu.isIPhone||n)}},pip:!(tu.isIPhone||!Uc(uu("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||uu("video").disablePictureInPicture)),airplay:Uc(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(e){if(Zc(e))return!1;var t=Es(e.split("/"),1)[0],i=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(Eu).includes(i)&&(i+='; codecs="'.concat(Eu[e],'"'));try{return Boolean(i&&this.media.canPlayType(i).replace(/no/,""))}catch(e){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(Tu=document.createElement("input"),Tu.type="range","range"===Tu.type),touch:"ontouchstart"in document.documentElement,transitions:!1!==Jc,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},ku=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,null}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function Pu(e,t,i){var n=this,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(e&&"addEventListener"in e&&!Zc(t)&&Uc(i)){var a=t.split(" "),l=s;ku&&(l={passive:o,capture:s}),a.forEach(function(t){n&&n.eventListeners&&r&&n.eventListeners.push({element:e,type:t,callback:i,options:l}),e[r?"addEventListener":"removeEventListener"](t,i,l)})}}function Au(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Pu.call(this,e,t,i,!0,n,r)}function Mu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Pu.call(this,e,t,i,!1,n,r)}function Lu(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Pu.call(this,e,i,function s(){Mu(e,i,s,r,o);for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];n.apply(t,l)},!0,r,o)}function Iu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(Xc(e)&&!Zc(t)){var r=new CustomEvent(t,{bubbles:i,detail:Ts({},n,{plyr:this})});e.dispatchEvent(r)}}function zu(e){return!!(Wc(e)||qc(e)&&e.includes(":"))&&(Wc(e)?e:e.split(":")).map(Number).every(Hc)}function Du(e){if(!Wc(e)||!e.every(Hc))return null;var t=Es(e,2),i=t[0],n=t[1],r=function e(t,i){return 0===i?t:e(i,t%i)}(i,n);return[i/r,n/r]}function Ou(e){var t=function(e){return zu(e)?e.split(":").map(Number):null},i=t(e);if(null===i&&(i=t(this.config.ratio)),null===i&&!Zc(this.embed)&&Wc(this.embed.ratio)&&(i=this.embed.ratio),null===i&&this.isHTML5){var n=this.media;i=Du([n.videoWidth,n.videoHeight])}return i}function $u(e){if(!this.isVideo)return{};var t=this.elements.wrapper,i=Ou.call(this,e),n=Es(Wc(i)?i:[0,0],2),r=100/n[0]*n[1];if(t.style.paddingBottom="".concat(r,"%"),this.isVimeo&&this.supported.ui){var o=(240-r)/4.8;this.media.style.transform="translateY(-".concat(o,"%)")}else this.isHTML5&&t.classList.toggle(this.config.classNames.videoFixedRatio,null!==i);return{padding:r,ratio:i}}var _u={getSources:function(){var e=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(function(t){var i=t.getAttribute("type");return!!Zc(i)||Cu.mime.call(e,i)}):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:_u.getSources.call(this).map(function(e){return Number(e.getAttribute("size"))}
1).filter(Boolean)},setup:function(){if(this.isHTML5){var e=this;e.options.speed=e.config.speed.options,Zc(this.config.ratio)||$u.call(e),Object.defineProperty(e.media,"quality",{get:function(){var t=_u.getSources.call(e).find(function(t){return t.getAttribute("src")===e.source});return t&&Number(t.getAttribute("size"))},set:function(t){if(e.quality!==t){if(e.config.quality.forced&&Uc(e.config.quality.onChange))e.config.quality.onChange(t);else{var i=_u.getSources.call(e).find(function(e){return Number(e.getAttribute("size"))===t});if(!i)return;var n=e.media,r=n.currentTime,o=n.paused,s=n.preload,a=n.readyState,l=n.playbackRate;e.media.src=i.getAttribute("src"),("none"!==s||a)&&(e.once("loadedmetadata",function(){e.speed=l,e.currentTime=r,o||e.play()}),e.media.load())}Iu.call(e,e.media,"qualitychange",!1,{quality:t})}}})}},cancelRequests:function(){this.isHTML5&&(hu(_u.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function ju(e){return Wc(e)?e.filter(function(t,i){return e.indexOf(t)===i}):e}var Nu=A.f,Ru=ye.f,Fu=J.set,Hu=Ke("match"),qu=n.RegExp,Bu=qu.prototype,Uu=/a/g,Wu=/a/g,Vu=new qu(Uu)!==Uu,Xu=sn.UNSUPPORTED_Y;if(o&&Ae("RegExp",!Vu||Xu||r(function(){return Wu[Hu]=!1,qu(Uu)!=Uu||qu(Wu)==Wu||"/a/i"!=qu(Uu,"i")}))){for(var Yu=function(e,t){var i,n=this instanceof Yu,r=Fn(e),o=void 0===t;if(!n&&r&&e.constructor===Yu&&o)return e;Vu?r&&!o&&(e=e.source):e instanceof Yu&&(o&&(t=rn.call(e)),e=e.source),Xu&&(i=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var s=Xs(Vu?new qu(e,t):qu(e,t),n?this:Bu,Yu);return Xu&&i&&Fu(s,{sticky:i}),s},Gu=function(e){e in Yu||Nu(Yu,e,{configurable:!0,get:function(){return qu[e]},set:function(t){qu[e]=t}})},Ku=Ru(qu),Qu=0;Ku.length>Qu;)Gu(Ku[Qu++]);Bu.constructor=Yu,Yu.prototype=Bu,ee(n,"RegExp",Yu)}function Zu(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return Zc(e)?e:e.toString().replace(/{(\d+)}/g,function(e,t){return i[t].toString()})}function Ju(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1"),"g"),i.toString())}function ed(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString().replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})}function td(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML}ul("RegExp");var id={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},nd=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Zc(e)||Zc(t))return"";var i=su(t.i18n,e);if(Zc(i))return Object.keys(id).includes(e)?id[e]:"";var n={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(n).forEach(function(e){var t=Es(e,2),n=t[0],r=t[1];i=Ju(i,n,r)}),i},rd=function(){function e(t){ys(this,e),this.enabled=t.config.storage.enabled,this.key=t.config.storage.key}return ws(e,[{key:"get",value:function(t){if(!e.supported||!this.enabled)return null;var i=window.localStorage.getItem(this.key);if(Zc(i))return null;var n=JSON.parse(i);return qc(t)&&t.length?n[t]:n}},{key:"set",value:function(t){if(e.supported&&this.enabled&&Fc(t)){var i=this.get();Zc(i)&&(i={}),au(i,t),window.localStorage.setItem(this.key,JSON.stringify(i))}}}],[{key:"supported",get:function(){try{return"localStorage"in window&&(window.localStorage.setItem("___test","___test"),window.localStorage.removeItem("___test"),!0)}catch(e){return!1}}}]),e}();function od(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise(function(i,n){try{var r=new XMLHttpRequest;if(!("withCredentials"in r))return;r.addEventListener("load",function(){if("text"===t)try{i(JSON.parse(r.responseText))}catch(e){i(r.responseText)}else i(r.response)}),r.addEventListener("error",function(){throw new Error(r.status)}),r.open("GET",e,!0),r.responseType=t,r.send()}catch(e){n(e)}})}function sd(e,t){if(qc(e)){var i=qc(t),n=function(){return null!==document.getElementById(t)},r=function(e,t){e.innerHTML=t,i&&n()||document.body.insertAdjacentElement("afterbegin",e)};if(!i||!n()){var o=rd.supported,s=document.createElement("div");if(s.setAttribute("hidden",""),i&&s.setAttribute("id",t),o){var a=window.localStorage.getItem("".concat("cache","-").concat(t));if(null!==a){var l=JSON.parse(a);r(s,l.content)}}od(e).then(function(e){Zc(e)||(o&&window.localStorage.setItem("".concat("cache","-").concat(t),JSON.stringify({content:e})),r(s,e))}).catch(function(){})}}}var ad=Math.ceil,ld=Math.floor;Le({target:"Math",stat:!0},{trunc:function(e){return(e>0?ld:ad)(e)}});var cd=function(e){return Math.trunc(e/60/60%60,10)},ud=function(e){return Math.trunc(e/60%60,10)},dd=function(e){return Math.trunc(e%60,10)};function hd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!Hc(e))return hd(void 0,t,i);var n=function(e){return"0".concat(e).slice(-2)},r=cd(e),o=ud(e),s=dd(e);return r=t||r>0?"".concat(r,":"):"","".concat(i&&e>0?"-":"").concat(r).concat(n(o),":").concat(n(s))}var pd={getIconUrl:function(){var e=new URL(this.config.iconUrl,window.location).host!==window.location.host||tu.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:e}},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(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon:function(e,t){var i=pd.getIconUrl.call(this),n="".concat(i.cors?"":i.url,"#").concat(this.config.iconPrefix),r=document.createElementNS("http://www.w3.org/2000/svg","svg");cu(r,au(t,{role:"presentation",focusable:"false"}));var o=document.createElementNS("http://www.w3.org/2000/svg","use"),s="".concat(n,"-").concat(e);return"href"in o&&o.setAttributeNS("http://www.w3.org/1999/xlink","href",s),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s),r.appendChild(o),r},createLabel:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=nd(e,this.config);return uu("span",Ts({}
1,t,{class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),i)},createBadge:function(e){if(Zc(e))return null;var t=uu("span",{class:this.config.classNames.menu.value});return t.appendChild(uu("span",{class:this.config.classNames.menu.badge},e)),t},createButton:function(e,t){var i=this,n=au({},t),r=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return(e=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return e=Ju(e,"-"," "),e=Ju(e,"_"," "),Ju(e=ed(e)," ","")}(e)).charAt(0).toLowerCase()+e.slice(1)}(e),o={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(function(e){Object.keys(n).includes(e)&&(o[e]=n[e],delete n[e])}),"button"!==o.element||Object.keys(n).includes("type")||(n.type="button"),Object.keys(n).includes("class")?n.class.split(" ").some(function(e){return e===i.config.classNames.control})||au(n,{class:"".concat(n.class," ").concat(this.config.classNames.control)}):n.class=this.config.classNames.control,e){case"play":o.toggle=!0,o.label="play",o.labelPressed="pause",o.icon="play",o.iconPressed="pause";break;case"mute":o.toggle=!0,o.label="mute",o.labelPressed="unmute",o.icon="volume",o.iconPressed="muted";break;case"captions":o.toggle=!0,o.label="enableCaptions",o.labelPressed="disableCaptions",o.icon="captions-off",o.iconPressed="captions-on";break;case"fullscreen":o.toggle=!0,o.label="enterFullscreen",o.labelPressed="exitFullscreen",o.icon="enter-fullscreen",o.iconPressed="exit-fullscreen";break;case"play-large":n.class+=" ".concat(this.config.classNames.control,"--overlaid"),r="play",o.label="play",o.icon="play";break;default:Zc(o.label)&&(o.label=r),Zc(o.icon)&&(o.icon=e)}var s=uu(o.element);return o.toggle?(s.appendChild(pd.createIcon.call(this,o.iconPressed,{class:"icon--pressed"})),s.appendChild(pd.createIcon.call(this,o.icon,{class:"icon--not-pressed"})),s.appendChild(pd.createLabel.call(this,o.labelPressed,{class:"label--pressed"})),s.appendChild(pd.createLabel.call(this,o.label,{class:"label--not-pressed"}))):(s.appendChild(pd.createIcon.call(this,o.icon)),s.appendChild(pd.createLabel.call(this,o.label))),au(n,mu(this.config.selectors.buttons[r],n)),cu(s,n),"play"===r?(Wc(this.elements.buttons[r])||(this.elements.buttons[r]=[]),this.elements.buttons[r].push(s)):this.elements.buttons[r]=s,s},createRange:function(e,t){var i=uu("input",au(mu(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":nd(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=i,pd.updateRangeFill.call(this,i),al.setup(i),i},createProgress:function(e,t){var i=uu("progress",au(mu(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t));if("volume"!==e){i.appendChild(uu("span",null,"0"));var n={played:"played",buffer:"buffered"}[e],r=n?nd(n,this.config):"";i.innerText="% ".concat(r.toLowerCase())}return this.elements.display[e]=i,i},createTime:function(e,t){var i=mu(this.config.selectors.display[e],t),n=uu("div",au(i,{class:"".concat(i.class?i.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":nd(e,this.config)}),"00:00");return this.elements.display[e]=n,n},bindMenuItemShortcuts:function(e,t){var i=this;Au.call(this,e,"keydown keyup",function(n){if([32,38,39,40].includes(n.which)&&(n.preventDefault(),n.stopPropagation(),"keydown"!==n.type)){var r,o=bu(e,'[role="menuitemradio"]');!o&&[32,39].includes(n.which)?pd.showMenuPanel.call(i,t,!0):32!==n.which&&(40===n.which||o&&39===n.which?(r=e.nextElementSibling,Xc(r)||(r=e.parentNode.firstElementChild)):(r=e.previousElementSibling,Xc(r)||(r=e.parentNode.lastElementChild)),Su.call(i,r,!0))}},!1),Au.call(this,e,"keyup",function(e){13===e.which&&pd.focusFirstMenuItem.call(i,null,!0)})},createMenuItem:function(e){var t=this,i=e.value,n=e.list,r=e.type,o=e.title,s=e.badge,a=void 0===s?null:s,l=e.checked,c=void 0!==l&&l,u=mu(this.config.selectors.inputs[r]),d=uu("button",au(u,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.c
1ontrol," ").concat(u.class?u.class:"").trim(),"aria-checked":c,value:i})),h=uu("span");h.innerHTML=o,Xc(a)&&h.appendChild(a),d.appendChild(h),Object.defineProperty(d,"checked",{enumerable:!0,get:function(){return"true"===d.getAttribute("aria-checked")},set:function(e){e&&Array.from(d.parentNode.children).filter(function(e){return bu(e,'[role="menuitemradio"]')}).forEach(function(e){return e.setAttribute("aria-checked","false")}),d.setAttribute("aria-checked",e?"true":"false")}}),this.listeners.bind(d,"click keyup",function(e){if(!Gc(e)||32===e.which){switch(e.preventDefault(),e.stopPropagation(),d.checked=!0,r){case"language":t.currentTrack=Number(i);break;case"quality":t.quality=i;break;case"speed":t.speed=parseFloat(i)}pd.showMenuPanel.call(t,"home",Gc(e))}},r,!1),pd.bindMenuItemShortcuts.call(this,d,r),n.appendChild(d)},formatTime:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Hc(e)?hd(e,cd(this.duration)>0,t):e},updateTimeDisplay:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Xc(e)&&Hc(t)&&(e.innerText=pd.formatTime(t,i))},updateVolume:function(){this.supported.ui&&(Xc(this.elements.inputs.volume)&&pd.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(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Xc(e)&&(e.value=t,pd.updateRangeFill.call(this,e))},updateProgress:function(e){var t=this;if(this.supported.ui&&Yc(e)){var i=0;if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":i=function(e,t){return 0===e||0===t||Number.isNaN(e)||Number.isNaN(t)?0:(e/t*100).toFixed(2)}(this.currentTime,this.duration),"timeupdate"===e.type&&pd.setRange.call(this,this.elements.inputs.seek,i);break;case"playing":case"progress":!function(e,i){var n=Hc(i)?i:0,r=Xc(e)?e:t.elements.display.buffer;if(Xc(r)){r.value=n;var o=r.getElementsByTagName("span")[0];Xc(o)&&(o.childNodes[0].nodeValue=n)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(e){var t=Yc(e)?e.target:e;if(Xc(t)&&"range"===t.getAttribute("type")){if(bu(t,this.config.selectors.inputs.seek)){t.setAttribute("aria-valuenow",this.currentTime);var i=pd.formatTime(this.currentTime),n=pd.formatTime(this.duration),r=nd("seekLabel",this.config);t.setAttribute("aria-valuetext",r.replace("{currentTime}",i).replace("{duration}",n))}else if(bu(t,this.config.selectors.inputs.volume)){var o=100*t.value;t.setAttribute("aria-valuenow",o),t.setAttribute("aria-valuetext","".concat(o.toFixed(1),"%"))}else t.setAttribute("aria-valuenow",t.value);tu.isWebkit&&t.style.setProperty("--value","".concat(t.value/t.max*100,"%"))}},updateSeekTooltip:function(e){var t=this;if(this.config.tooltips.seek&&Xc(this.elements.inputs.seek)&&Xc(this.elements.display.seekTooltip)&&0!==this.duration){var i="".concat(this.config.classNames.tooltip,"--visible"),n=function(e){return vu(t.elements.display.seekTooltip,i,e)};if(this.touch)n(!1);else{var r=0,o=this.elements.progress.getBoundingClientRect();if(Yc(e))r=100/o.width*(e.pageX-o.left);else{if(!yu(this.elements.display.seekTooltip,i))return;r=parseFloat(this.elements.display.seekTooltip.style.left,10)}r<0?r=0:r>100&&(r=100),pd.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*r),this.elements.display.seekTooltip.style.left="".concat(r,"%"),Yc(e)&&["mouseenter","mouseleave"].includes(e.type)&&n("mouseenter"===e.type)}}},timeUpdate:function(e){var t=!Xc(this.elements.display.duration)&&this.config.invertTime;pd.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||pd.updateProgress.call(this,e)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return gu(this.elements.display.currentTime,!0),void gu(this.elements.progress,!0);Xc(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var e=Xc(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&pd.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&pd.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),pd.updateSeekTooltip.call(this)}},toggleMenuButton:function(e,t){gu(this.elements.settings.buttons[e],
1!t)},updateSetting:function(e,t,i){var n=this.elements.settings.panels[e],r=null,o=t;if("captions"===e)r=this.currentTrack;else{if(r=Zc(i)?this[e]:i,Zc(r)&&(r=this.config[e].default),!Zc(this.options[e])&&!this.options[e].includes(r))return void this.debug.warn("Unsupported value of '".concat(r,"' for ").concat(e));if(!this.config[e].options.includes(r))return void this.debug.warn("Disabled value of '".concat(r,"' for ").concat(e))}if(Xc(o)||(o=n&&n.querySelector('[role="menu"]')),Xc(o)){this.elements.settings.buttons[e].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=pd.getLabel.call(this,e,r);var s=o&&o.querySelector('[value="'.concat(r,'"]'));Xc(s)&&(s.checked=!0)}},getLabel:function(e,t){switch(e){case"speed":return 1===t?nd("normal",this.config):"".concat(t,"×");case"quality":if(Hc(t)){var i=nd("qualityLabel.".concat(t),this.config);return i.length?i:"".concat(t,"p")}return ed(t);case"captions":return gd.getLabel.call(this);default:return null}},setQualityMenu:function(e){var t=this;if(Xc(this.elements.settings.panels.quality)){var i=this.elements.settings.panels.quality.querySelector('[role="menu"]');Wc(e)&&(this.options.quality=ju(e).filter(function(e){return t.config.quality.options.includes(e)}));var n=!Zc(this.options.quality)&&this.options.quality.length>1;if(pd.toggleMenuButton.call(this,"quality",n),pu(i),pd.checkMenu.call(this),n){var r=function(e){var i=nd("qualityBadge.".concat(e),t.config);return i.length?pd.createBadge.call(t,i):null};this.options.quality.sort(function(e,i){var n=t.config.quality.options;return n.indexOf(e)>n.indexOf(i)?1:-1}).forEach(function(e){pd.createMenuItem.call(t,{value:e,list:i,type:"quality",title:pd.getLabel.call(t,"quality",e),badge:r(e)})}),pd.updateSetting.call(this,"quality",i)}}},setCaptionsMenu:function(){var e=this;if(Xc(this.elements.settings.panels.captions)){var t=this.elements.settings.panels.captions.querySelector('[role="menu"]'),i=gd.getTracks.call(this),n=Boolean(i.length);if(pd.toggleMenuButton.call(this,"captions",n),pu(t),pd.checkMenu.call(this),n){var r=i.map(function(i,n){return{value:n,checked:e.captions.toggled&&e.currentTrack===n,title:gd.getLabel.call(e,i),badge:i.language&&pd.createBadge.call(e,i.language.toUpperCase()),list:t,type:"language"}});r.unshift({value:-1,checked:!this.captions.toggled,title:nd("disabled",this.config),list:t,type:"language"}),r.forEach(pd.createMenuItem.bind(this)),pd.updateSetting.call(this,"captions",t)}}},setSpeedMenu:function(){var e=this;if(Xc(this.elements.settings.panels.speed)){var t=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(function(t){return t>=e.minimumSpeed&&t<=e.maximumSpeed});var i=!Zc(this.options.speed)&&this.options.speed.length>1;pd.toggleMenuButton.call(this,"speed",i),pu(t),pd.checkMenu.call(this),i&&(this.options.speed.forEach(function(i){pd.createMenuItem.call(e,{value:i,list:t,type:"speed",title:pd.getLabel.call(e,"speed",i)})}),pd.updateSetting.call(this,"speed",t))}},checkMenu:function(){var e=this.elements.settings.buttons,t=!Zc(e)&&Object.values(e).some(function(e){return!e.hidden});gu(this.elements.settings.menu,!t)},focusFirstMenuItem:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.elements.settings.popup.hidden){var i=e;Xc(i)||(i=Object.values(this.elements.settings.panels).find(function(e){return!e.hidden}));var n=i.querySelector('[role^="menuitem"]');Su.call(this,n,t)}},toggleMenu:function(e){var t=this.elements.settings.popup,i=this.elements.buttons.settings;if(Xc(t)&&Xc(i)){var n=t.hidden,r=n;if(Bc(e))r=e;else if(Gc(e)&&27===e.which)r=!1;else if(Yc(e)){var o=Uc(e.composedPath)?e.composedPath()[0]:e.target,s=t.contains(o);if(s||!s&&e.target!==i&&r)return}i.setAttribute("aria-expanded",r),gu(t,!r),vu(this.elements.container,this.config.classNames.menu.open,r),r&&Gc(e)?pd.focusFirstMenuItem.call(this,null,!0):r||n||Su.call(this,i,Gc(e))}},getMenuSize:function(e){var t=e.cloneNode(!0);t.style.position="absolute",t.style.opacity=0,t.removeAttribute("hidden"),e.parentNode.appendChild(t);var i=t.scrollWidth,n=t.scrollHeight;return hu(t),{width:i,height:n}},showMenuPanel:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(t));if(Xc(n)){var r=n.parentNode,o=Array.from(r.children).find(function(e){return!e.hidden});if(Cu.transitions&&!Cu.reducedMotion){r.style.width="".concat(o.scrollWidth,"px"),r.style.height="".concat(o.scrollHeight,"px");var s=pd.getMenuSize.call(this,n);Au.call(this,r,Jc,function t(i){i.target===r&&["width","height"].includes(i.propertyName)&&(r.style.width="",r.style.height="",Mu.call(e,r,Jc,t))}),r.style.width="".concat(s.width,"px"),r.style.height="".concat(s.height,"px")}gu(o,!0),gu(n,!1),pd.focusFirstMenuItem.call(this,n,i)}},setDownloadUrl:function(){var e=this.elements.buttons.download;Xc(e)&&e.setAttribute("href",this.download)},create:function(e){var t=this,i=pd.bindMenuItemShortcuts,n=pd.createButton,r=pd.createProgress,o=pd.createRange,s=pd.createTime,a=pd.setQualityMenu,l=pd.setSpeedMenu,c=pd.showMenuPanel;this.elements.controls=null,this.config.controls.includes("play-large")&&this.elements.container.appendChild(n.call(this,"play-large"));var u=uu("div",mu(this.config.selectors.controls.wrapper));this.elements.controls=u;var d={class:"plyr__controls__item"};
1return ju(this.config.controls).forEach(function(a){if("restart"===a&&u.appendChild(n.call(t,"restart",d)),"rewind"===a&&u.appendChild(n.call(t,"rewind",d)),"play"===a&&u.appendChild(n.call(t,"play",d)),"fast-forward"===a&&u.appendChild(n.call(t,"fast-forward",d)),"progress"===a){var l=uu("div",{class:"".concat(d.class," plyr__progress__container")}),h=uu("div",mu(t.config.selectors.progress));if(h.appendChild(o.call(t,"seek",{id:"plyr-seek-".concat(e.id)})),h.appendChild(r.call(t,"buffer")),t.config.tooltips.seek){var p=uu("span",{class:t.config.classNames.tooltip},"00:00");h.appendChild(p),t.elements.display.seekTooltip=p}t.elements.progress=h,l.appendChild(t.elements.progress),u.appendChild(l)}if("current-time"===a&&u.appendChild(s.call(t,"currentTime",d)),"duration"===a&&u.appendChild(s.call(t,"duration",d)),"mute"===a||"volume"===a){var f=t.elements.volume;if(Xc(f)&&u.contains(f)||(f=uu("div",au({},d,{class:"".concat(d.class," plyr__volume").trim()})),t.elements.volume=f,u.appendChild(f)),"mute"===a&&f.appendChild(n.call(t,"mute")),"volume"===a&&!tu.isIos){var m={max:1,step:.05,value:t.config.volume};f.appendChild(o.call(t,"volume",au(m,{id:"plyr-volume-".concat(e.id)})))}}if("captions"===a&&u.appendChild(n.call(t,"captions",d)),"settings"===a&&!Zc(t.config.settings)){var g=uu("div",au({},d,{class:"".concat(d.class," plyr__menu").trim(),hidden:""}));g.appendChild(n.call(t,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(e.id),"aria-expanded":!1}));var v=uu("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(e.id),hidden:""}),y=uu("div"),b=uu("div",{id:"plyr-settings-".concat(e.id,"-home")}),w=uu("div",{role:"menu"});b.appendChild(w),y.appendChild(b),t.elements.settings.panels.home=b,t.config.settings.forEach(function(n){var r=uu("button",au(mu(t.config.selectors.buttons.settings),{type:"button",class:"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""}));i.call(t,r,n),Au.call(t,r,"click",function(){c.call(t,n,!1)});var o=uu("span",null,nd(n,t.config)),s=uu("span",{class:t.config.classNames.menu.value});s.innerHTML=e[n],o.appendChild(s),r.appendChild(o),w.appendChild(r);var a=uu("div",{id:"plyr-settings-".concat(e.id,"-").concat(n),hidden:""}),l=uu("button",{type:"button",class:"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--back")});l.appendChild(uu("span",{"aria-hidden":!0},nd(n,t.config))),l.appendChild(uu("span",{class:t.config.classNames.hidden},nd("menuBack",t.config))),Au.call(t,a,"keydown",function(e){37===e.which&&(e.preventDefault(),e.stopPropagation(),c.call(t,"home",!0))},!1),Au.call(t,l,"click",function(){c.call(t,"home",!1)}),a.appendChild(l),a.appendChild(uu("div",{role:"menu"})),y.appendChild(a),t.elements.settings.buttons[n]=r,t.elements.settings.panels[n]=a}),v.appendChild(y),g.appendChild(v),u.appendChild(g),t.elements.settings.popup=v,t.elements.settings.menu=g}if("pip"===a&&Cu.pip&&u.appendChild(n.call(t,"pip",d)),"airplay"===a&&Cu.airplay&&u.appendChild(n.call(t,"airplay",d)),"download"===a){var x=au({},d,{element:"a",href:t.download,target:"_blank"});t.isHTML5&&(x.download="");var S=t.config.urls.download;!Qc(S)&&t.isEmbed&&au(x,{icon:"logo-".concat(t.provider),label:t.provider}),u.appendChild(n.call(t,"download",x))}"fullscreen"===a&&u.appendChild(n.call(t,"fullscreen",d))}),this.isHTML5&&a.call(this,_u.getQualityOptions.call(this)),l.call(this),u},inject:function(){var e=this;if(this.config.loadSprite){var t=pd.getIconUrl.call(this);t.cors&&sd(t.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());var i=null;this.elements.controls=null;var n={id:this.id,seektime:this.config.seekTime,title:this.config.title},r=!0;Uc(this.config.controls)&&(this.config.controls=this.config.controls.call(this,n)),this.config.controls||(this.config.controls=[]),Xc(this.config.controls)||qc(this.config.controls)?i=this.config.controls:(i=pd.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:gd.getLabel.call(this)}
1),r=!1);var o,s=function(e){var t=e;return Object.entries(n).forEach(function(e){var i=Es(e,2),n=i[0],r=i[1];t=Ju(t,"{".concat(n,"}"),r)}),t};if(r&&(qc(this.config.controls)?i=s(i):Xc(i)&&(i.innerHTML=s(i.innerHTML))),qc(this.config.selectors.controls.container)&&(o=document.querySelector(this.config.selectors.controls.container)),Xc(o)||(o=this.elements.container),o[Xc(i)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",i),Xc(this.elements.controls)||pd.findElements.call(this),!Zc(this.elements.buttons)){var a=function(t){var i=e.config.classNames.controlPressed;Object.defineProperty(t,"pressed",{enumerable:!0,get:function(){return yu(t,i)},set:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];vu(t,i,e)}})};Object.values(this.elements.buttons).filter(Boolean).forEach(function(e){Wc(e)||Vc(e)?Array.from(e).filter(Boolean).forEach(a):a(e)})}if(tu.isEdge&&eu(o),this.config.tooltips.controls){var l=this.config,c=l.classNames,u=l.selectors,d="".concat(u.controls.wrapper," ").concat(u.labels," .").concat(c.hidden),h=wu.call(this,d);Array.from(h).forEach(function(t){vu(t,e.config.classNames.hidden,!1),vu(t,e.config.classNames.tooltip,!0)})}}};function fd(e){var t=e;if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){var i=document.createElement("a");i.href=t,t=i.href}try{return new URL(t)}catch(e){return null}}function md(e){var t=new URLSearchParams;return Fc(e)&&Object.entries(e).forEach(function(e){var i=Es(e,2),n=i[0],r=i[1];t.set(n,r)}),t}var gd={setup:function(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!Cu.textTracks)Wc(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&pd.setCaptionsMenu.call(this);else{if(Xc(this.elements.captions)||(this.elements.captions=uu("div",mu(this.config.selectors.captions)),function(e,t){Xc(e)&&Xc(t)&&t.parentNode.insertBefore(e,t.nextSibling)}(this.elements.captions,this.elements.wrapper)),tu.isIE&&window.URL){var e=this.media.querySelectorAll("track");Array.from(e).forEach(function(e){var t=e.getAttribute("src"),i=fd(t);null!==i&&i.hostname!==window.location.href.hostname&&["http:","https:"].includes(i.protocol)&&od(t,"blob").then(function(t){e.setAttribute("src",window.URL.createObjectURL(t))}).catch(function(){hu(e)})})}var t=ju((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(function(e){return e.split("-")[0]})),i=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===i&&(i=Es(t,1)[0]);var n=this.storage.get("captions");if(Bc(n)||(n=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:n,language:i,languages:t}),this.isHTML5){var r=this.config.captions.update?"addtrack removetrack":"removetrack";Au.call(this,this.media.textTracks,r,gd.update.bind(this))}setTimeout(gd.update.bind(this),0)}},update:function(){var e=this,t=gd.getTracks.call(this,!0),i=this.captions,n=i.active,r=i.language,o=i.meta,s=i.currentTrackNode,a=Boolean(t.find(function(e){return e.language===r}));this.isHTML5&&this.isVideo&&t.filter(function(e){return!o.get(e)}).forEach(function(t){e.debug.log("Track added",t),o.set(t,{default:"showing"===t.mode}),t.mode="hidden",Au.call(e,t,"cuechange",function(){return gd.updateCues.call(e)})}),(a&&this.language!==r||!t.includes(s))&&(gd.setLanguage.call(this,r),gd.toggle.call(this,n&&a)),vu(this.elements.container,this.config.classNames.captions.enabled,!Zc(t)),(this.config.controls||[]).includes("settings")&&this.config.settings.includes("captions")&&pd.setCaptionsMenu.call(this)},toggle:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var i=this.captions.toggled,n=this.config.classNames.captions.active,r=Rc(e)?!i:e;if(r!==i){if(t||(this.captions.active=r,this.storage.set({captions:r})),!this.language&&r&&!t){var o=gd.getTracks.call(this),s=gd.findTrack.call(this,[this.captions.language].concat(Cs(this.captions.languages)),!0);return this.captions.language=s.language,void gd.set.call(this,o.indexOf(s))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=r),vu(this.elements.container,n,r),this.captions.toggled=r,pd.updateSetting.call(this,"captions"),Iu.call(this,this.media,r?"captionsenabled":"captionsdisabled")}}},set:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=gd.getTracks.call(this);
1if(-1!==e)if(Hc(e))if(e in i){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;var n=i[e],r=(n||{}).language;this.captions.currentTrackNode=n,pd.updateSetting.call(this,"captions"),t||(this.captions.language=r,this.storage.set({language:r})),this.isVimeo&&this.embed.enableTextTrack(r),Iu.call(this,this.media,"languagechange")}gd.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&gd.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else gd.toggle.call(this,!1,t)},setLanguage:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(qc(e)){var i=e.toLowerCase();this.captions.language=i;var n=gd.getTracks.call(this),r=gd.findTrack.call(this,[i]);gd.set.call(this,n.indexOf(r),t)}else this.debug.warn("Invalid language argument",e)},getTracks:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Array.from((this.media||{}).textTracks||[]).filter(function(i){return!e.isHTML5||t||e.captions.meta.has(i)}).filter(function(e){return["captions","subtitles"].includes(e.kind)})},findTrack:function(e){var t,i=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=gd.getTracks.call(this),o=function(e){return Number((i.captions.meta.get(e)||{}).default)},s=Array.from(r).sort(function(e,t){return o(t)-o(e)});return e.every(function(e){return!(t=s.find(function(t){return t.language===e}))}),t||(n?s[0]:void 0)},getCurrentTrack:function(){return gd.getTracks.call(this)[this.currentTrack]},getLabel:function(e){var t=e;return!Kc(t)&&Cu.textTracks&&this.captions.toggled&&(t=gd.getCurrentTrack.call(this)),Kc(t)?Zc(t.label)?Zc(t.language)?nd("enabled",this.config):e.language.toUpperCase():t.label:nd("disabled",this.config)},updateCues:function(e){if(this.supported.ui)if(Xc(this.elements.captions))if(Rc(e)||Array.isArray(e)){var t=e;if(!t){var i=gd.getCurrentTrack.call(this);t=Array.from((i||{}).activeCues||[]).map(function(e){return e.getCueAsHTML()}).map(td)}var n=t.map(function(e){return e.trim()}).join("\n");if(n!==this.elements.captions.innerHTML){pu(this.elements.captions);var r=uu("span",mu(this.config.selectors.caption));r.innerHTML=n,this.elements.captions.appendChild(r),Iu.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",e);else this.debug.warn("No captions element to render to")}},vd={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:"SD"}},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="qual
1ity"]'},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}},yd="picture-in-picture",bd={html5:"html5",youtube:"youtube",vimeo:"vimeo"},wd="video",xd=function(){},Sd=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ys(this,e),this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}return ws(e,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):xd}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):xd}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):xd}}]),e}(),Td=function(){function e(t){var i=this;ys(this,e),this.player=t,this.prefix=e.prefix,this.property=e.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===t.config.fullscreen.fallback,Au.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),function(){i.onChange()}),Au.call(this.player,this.player.elements.container,"dblclick",function(e){Xc(i.player.elements.controls)&&i.player.elements.controls.contains(e.target)||i.toggle()}),Au.call(this,this.player.elements.container,"keydown",function(e){return i.trapFocus(e)}),this.update()}return ws(e,[{key:"onChange",value:function(){if(this.enabled){var e=this.player.elements.buttons.fullscreen;Xc(e)&&(e.pressed=this.active),Iu.call(this.player,this.target,this.active?"enterfullscreen":"exitfullscreen",!0)}}},{key:"toggleFallback",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e?this.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=e?"hidden":"",vu(this.target,this.player.config.classNames.fullscreen.fallback,e),tu.isIos){var t=document.head.querySelector('meta[name="viewport"]'),i="viewport-fit=cover";t||(t=document.createElement("meta")).setAttribute("name","viewport");var n=qc(t.content)&&t.content.includes(i);e?(this.cleanupViewport=!n,n||(t.content+=",".concat(i))):this.cleanupViewport&&(t.content=t.content.split(",").filter(function(e){return e.trim()!==i}).join(","))}this.onChange()}},{key:"trapFocus",value:function(e){if(!tu.isIos&&this.active&&"Tab"===e.key&&9===e.keyCode){var t=document.activeElement,i=wu.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),n=Es(i,1)[0],r=i[i.length-1];t!==r||e.shiftKey?t===n&&e.shiftKey&&(r.focus(),e.preventDefault()):(n.focus(),e.preventDefault())}}},{key:"update",value:function(){var t;this.enabled?(t=this.forceFallback?"Fallback (forced)":e.native?"Native":"Fallback",this.player.debug.log("".concat(t," 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&&(tu.isIos&&this.player.config.fullscreen.iosNative?this.target.webkitEnterFullscreen():!e.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(tu.isIos&&this.player.config.fullscreen.iosNative)this.target.webkitExitFullscreen(),this.player.play();else if(!e.native||this.forceFallback)this.toggleFallback(!1);
1else if(this.prefix){if(!Zc(this.prefix)){var t="moz"===this.prefix?"Cancel":"Exit";document["".concat(this.prefix).concat(t).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 e.native&&!this.forceFallback}},{key:"enabled",get:function(){return(e.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&&(!e.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 tu.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(Uc(document.exitFullscreen))return"";var e="";return["webkit","moz","ms"].some(function(t){return!(!Uc(document["".concat(t,"ExitFullscreen")])&&!Uc(document["".concat(t,"CancelFullScreen")])||(e=t,0))}),e}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),e}(),Ed=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1};function Cd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise(function(i,n){var r=new Image,o=function(){delete r.onload,delete r.onerror,(r.naturalWidth>=t?i:n)(r)};Object.assign(r,{onload:o,onerror:o,src:e})})}Le({target:"Math",stat:!0},{sign:Ed});var kd={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 e=this;if(this.listeners.media(),!this.supported.ui)return this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type)),void kd.toggleNativeControls.call(this,!0);Xc(this.elements.controls)||(pd.inject.call(this),this.listeners.controls()),kd.toggleNativeControls.call(this),this.isHTML5&&gd.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,pd.updateVolume.call(this),pd.timeUpdate.call(this),kd.checkPlaying.call(this),vu(this.elements.container,this.config.classNames.pip.supported,Cu.pip&&this.isHTML5&&this.isVideo),vu(this.elements.container,this.config.classNames.airplay.supported,Cu.airplay&&this.isHTML5),vu(this.elements.container,this.config.classNames.isIos,tu.isIos),vu(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(function(){Iu.call(e,e.media,"ready")},0),kd.setTitle.call(this),this.poster&&kd.setPoster.call(this,this.poster,!1).catch(function(){}),this.config.duration&&pd.durationUpdate.call(this)},setTitle:function(){var e=nd("play",this.config);if(qc(this.config.title)&&!Zc(this.config.title)&&(e+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach(function(t){t.setAttribute("aria-label",e)}),this.isEmbed){var t=xu.call(this,"iframe");if(!Xc(t))return;var i=Zc(this.config.title)?"video":this.config.title,n=nd("frameTitle",this.config);t.setAttribute("title",n.replace("{title}",i))}},togglePoster:function(e){vu(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster:function(e){var t=this;return arguments.length>
11&&void 0!==arguments[1]&&!arguments[1]||!this.poster?(this.media.setAttribute("poster",e),this.isHTML5?Promise.resolve(e):function(){var e=this;return new Promise(function(t){return e.ready?setTimeout(t,0):Au.call(e,e.elements.container,"ready",t)}).then(function(){})}.call(this).then(function(){return Cd(e)}).catch(function(i){throw e===t.poster&&kd.togglePoster.call(t,!1),i}).then(function(){if(e!==t.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(function(){return Object.assign(t.elements.poster.style,{backgroundImage:"url('".concat(e,"')"),backgroundSize:""}),kd.togglePoster.call(t,!0),e})):Promise.reject(new Error("Poster already set"))},checkPlaying:function(e){var t=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(e){Object.assign(e,{pressed:t.playing}),e.setAttribute("aria-label",nd(t.playing?"pause":"play",t.config))}),Yc(e)&&"timeupdate"===e.type||kd.toggleControls.call(this)},checkLoading:function(e){var t=this;this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(function(){vu(t.elements.container,t.config.classNames.loading,t.loading),kd.toggleControls.call(t)},this.loading?250:0)},toggleControls:function(e){var t=this.elements.controls;if(t&&this.config.hideControls){var i=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(e||this.loading||this.paused||t.pressed||t.hover||i))}}},Pd=function(){function e(t){ys(this,e),this.player=t,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(e,[{key:"handleKey",value:function(e){var t=this.player,i=t.elements,n=e.keyCode?e.keyCode:e.which,r="keydown"===e.type,o=r&&n===this.lastKey;if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)&&Hc(n))if(r){var s=document.activeElement;if(Xc(s)){var a=t.config.selectors.editable;if(s!==i.inputs.seek&&bu(s,a))return;if(32===e.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(n)&&(e.preventDefault(),e.stopPropagation()),n){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:o||(t.currentTime=t.duration/10*(n-48));break;case 32:case 75:o||t.togglePlay();break;case 38:t.increaseVolume(.1);break;case 40:t.decreaseVolume(.1);break;case 77:o||(t.muted=!t.muted);break;case 39:t.forward();break;case 37:t.rewind();break;case 70:t.fullscreen.toggle();break;case 67:o||t.toggleCaptions();break;case 76:t.loop=!t.loop}27===n&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=n}else this.lastKey=null}},{key:"toggleMenu",value:function(e){pd.toggleMenu.call(this.player,e)}},{key:"firstTouch",value:function(){var e=this.player,t=e.elements;e.touch=!0,vu(t.container,e.config.classNames.isTouch,!0)}},{key:"setTabFocus",value:function(e){var t=this.player,i=t.elements;if(clearTimeout(this.focusTimer),"keydown"!==e.type||9===e.which){"keydown"===e.type&&(this.lastKeyDown=e.timeStamp);var n,r=e.timeStamp-this.lastKeyDown<=20;("focus"!==e.type||r)&&(n=t.config.classNames.tabFocus,vu(wu.call(t,".".concat(n)),n,!1),this.focusTimer=setTimeout(function(){var e=document.activeElement;i.container.contains(e)&&vu(document.activeElement,t.config.classNames.tabFocus,!0)},10))}}},{key:"global",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.player;t.config.keyboard.global&&Pu.call(t,window,"keydown keyup",this.handleKey,e,!1),Pu.call(t,document.body,"click",this.toggleMenu,e),Lu.call(t,document.body,"touchstart",this.firstTouch),Pu.call(t,document.body,"keydown focus blur",this.setTabFocus,e,!1,!0)}},{key:"container",value:function(){var e=this.player,t=e.config,i=e.elements,n=e.timers;!t.keyboard.global&&t.keyboard.focused&&Au.call(e,i.container,"keydown keyup",this.handleKey,!1),Au.call(e,i.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",function(t){var r=i.controls;r&&"enterfullscreen"===t.type&&(r.pressed=!1,r.hover=!1);var o=0;["touchstart","touchmove","mousemove"].includes(t.type)&&(kd.toggleControls.call(e,!0),o=e.touch?3e3:2e3),clearTimeout(n.controls),n.controls=setTimeout(function(){return kd.toggleControls.call(e,!1)},o)});var r=function(t){if(!t)return $u.call(e);var n=i.container.getBoundingClientRect(),r=n.width,o=n.height;return $u.call(e,"".concat(r,":").concat(o))},o=function(){clearTimeout(n.resized),n.resized=setTimeout(r,50)};Au.call(e,i.container,"enterfullscreen exitfullscreen",function(t){var n=e.fullscreen,s=n.target,a=n.usingNative;if(s===i.container&&(e.isEmbed||!Zc(e.config.ratio))){var l="enterfullscreen"===t.type,c=r(l);c.padding,function(t,i,n){if(e.isVimeo){var r=e.elements.wrapper.firstChild,o=Es(t,2)[1],s=Es(Ou.call(e),2),a=s[0],l=s[1];r.style.maxWidth=n?"".concat(o/l*a,"px"):null,r.style.margin=n?"0 auto":null}}(c.ratio,0,l),a||(l?Au.call(e,window,"resize",o):Mu.call(e,window,"resize",o))}})}},{key:"media",value:function(){var e=this,t=this.player,i=t.elements;if(Au.call(t,t.media,"timeupdate seeking seeked",function(e){return pd.timeUpdate.call(t,e)}),Au.call(t,t.media,"durationchange loadeddata loadedmetadata",function(e){return pd.durationUpdate.call(t,e)}),Au.call(t,t.media,"ended",function(){t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())}),Au.call(t,t.media,"progress playing seeking seeked",function(e){return pd.updateProgress.call(t,e)}),Au.call(t,t.media,"volumechange",function(e){return pd.updateVolume.call(t,e)}),Au.call(t,t.media,"playing play pause ended emptied timeupdate",function(e){return kd.checkPlaying.call(t,e)}),Au.call(t,t.media,"waiting canplay seeked playing",function(e){return kd.checkLoading.call(t,e)}),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){var n=xu.call(t,".".concat(t.config.classNames.video));if(!Xc(n))return;Au.call(t,i.container,"click",function(r){([i.container,n].includes(r.target)||n.contains(r.target))&&(t.touch&&t.config.hideControls||(t.ended?(e.proxy(r,t.restart,"restart"),e.proxy(r,t.play,"play")):e.proxy(r,t.togglePlay,"play")))})}t.supported.ui&&t.config.disableContextMenu&&Au.call(t,i.wrapper,"contextmenu",function(e){e.preventDefault()},!1),Au.call(t,t.media,"volumechange",function(){t.storage.set({volume:t.volume,muted:t.muted})}),Au.call(t,t.media,"ratechange",function(){pd.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})}),Au.call(t,t.media,"qualitychange",function(e){pd.updateSetting.call(t,"quality",null,e.detail.quality)}),Au.call(t,t.media,"ready qualitychange",function(){pd.setDownloadUrl.call(t)});var r=t.config.events.concat(["keyup","keydown"]).join(" ");Au.call(t,t.media,r,function(e){var n=e.detail,r=void 0===n?{}:n;"error"===e.type&&(r=t.media.error),Iu.call(t,i.container,e.type,!0,r)})}},{key:"proxy",value:function(e,t,i){var n=this.player,r=n.config.listeners[i],o=!0;Uc(r)&&(o=r.call(n,e)),!1!==o&&Uc(t)&&t.call(n,e)}},{key:"bind",value:function(e,t,i,n){var r=this,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=this.player,a=s.config.listeners[n],l=Uc(a);Au.call(s,e,t,function(e){return r.proxy(e,i,n)},o&&!l)}},{key:"controls",value:function(){var e=this,t=this.player,i=t.elements,n=tu.isIE?"change":"input";
1if(i.buttons.play&&Array.from(i.buttons.play).forEach(function(i){e.bind(i,"click",t.togglePlay,"play")}),this.bind(i.buttons.restart,"click",t.restart,"restart"),this.bind(i.buttons.rewind,"click",t.rewind,"rewind"),this.bind(i.buttons.fastForward,"click",t.forward,"fastForward"),this.bind(i.buttons.mute,"click",function(){t.muted=!t.muted},"mute"),this.bind(i.buttons.captions,"click",function(){return t.toggleCaptions()}),this.bind(i.buttons.download,"click",function(){Iu.call(t,t.media,"download")},"download"),this.bind(i.buttons.fullscreen,"click",function(){t.fullscreen.toggle()},"fullscreen"),this.bind(i.buttons.pip,"click",function(){t.pip="toggle"},"pip"),this.bind(i.buttons.airplay,"click",t.airplay,"airplay"),this.bind(i.buttons.settings,"click",function(e){e.stopPropagation(),e.preventDefault(),pd.toggleMenu.call(t,e)},null,!1),this.bind(i.buttons.settings,"keyup",function(e){var i=e.which;[13,32].includes(i)&&(13!==i?(e.preventDefault(),e.stopPropagation(),pd.toggleMenu.call(t,e)):pd.focusFirstMenuItem.call(t,null,!0))},null,!1),this.bind(i.settings.menu,"keydown",function(e){27===e.which&&pd.toggleMenu.call(t,e)}),this.bind(i.inputs.seek,"mousedown mousemove",function(e){var t=i.progress.getBoundingClientRect(),n=100/t.width*(e.pageX-t.left);e.currentTarget.setAttribute("seek-value",n)}),this.bind(i.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",function(e){var i=e.currentTarget,n=e.keyCode?e.keyCode:e.which;if(!Gc(e)||39===n||37===n){t.lastSeekTime=Date.now();var r=i.hasAttribute("play-on-seeked"),o=["mouseup","touchend","keyup"].includes(e.type);r&&o?(i.removeAttribute("play-on-seeked"),t.play()):!o&&t.playing&&(i.setAttribute("play-on-seeked",""),t.pause())}}),tu.isIos){var r=wu.call(t,'input[type="range"]');Array.from(r).forEach(function(t){return e.bind(t,n,function(e){return eu(e.target)})})}this.bind(i.inputs.seek,n,function(e){var i=e.currentTarget,n=i.getAttribute("seek-value");Zc(n)&&(n=i.value),i.removeAttribute("seek-value"),t.currentTime=n/i.max*t.duration},"seek"),this.bind(i.progress,"mouseenter mouseleave mousemove",function(e){return pd.updateSeekTooltip.call(t,e)}),this.bind(i.progress,"mousemove touchmove",function(e){var i=t.previewThumbnails;i&&i.loaded&&i.startMove(e)}),this.bind(i.progress,"mouseleave touchend click",function(){var e=t.previewThumbnails;e&&e.loaded&&e.endMove(!1,!0)}),this.bind(i.progress,"mousedown touchstart",function(e){var i=t.previewThumbnails;i&&i.loaded&&i.startScrubbing(e)}),this.bind(i.progress,"mouseup touchend",function(e){var i=t.previewThumbnails;i&&i.loaded&&i.endScrubbing(e)}),tu.isWebkit&&Array.from(wu.call(t,'input[type="range"]')).forEach(function(i){e.bind(i,"input",function(e){return pd.updateRangeFill.call(t,e.target)})}),t.config.toggleInvert&&!Xc(i.display.duration)&&this.bind(i.display.currentTime,"click",function(){0!==t.currentTime&&(t.config.invertTime=!t.config.invertTime,pd.timeUpdate.call(t))}),this.bind(i.inputs.volume,n,function(e){t.volume=e.target.value},"volume"),this.bind(i.controls,"mouseenter mouseleave",function(e){i.controls.hover=!t.touch&&"mouseenter"===e.type}),this.bind(i.controls,"mousedown mouseup touchstart touchend touchcancel",function(e){i.controls.pressed=["mousedown","touchstart"].includes(e.type)}),this.bind(i.controls,"focusin",function(){var n=t.config,r=t.timers;vu(i.controls,n.classNames.noTransition,!0),kd.toggleControls.call(t,!0),setTimeout(function(){vu(i.controls,n.classNames.noTransition,!1)},0);var o=e.touch?3e3:4e3;clearTimeout(r.controls),r.controls=setTimeout(function(){return kd.toggleControls.call(t,!1)},o)}),this.bind(i.inputs.volume,"wheel",function(e){var i=e.webkitDirectionInvertedFromDevice,n=Es([e.deltaX,-e.deltaY].map(function(e){return i?-e:e}),2),r=n[0],o=n[1],s=Math.sign(Math.abs(r)>Math.abs(o)?r:o);t.increaseVolume(s/50);var a=t.media.volume;(1===s&&a<1||-1===s&&a>0)&&e.preventDefault()},"volume",!1)}}]),e}(),Ad=Wi("splice"),Md=Qt("splice",{ACCESSORS:!0,0:0,1:2}),Ld=Math.max,Id=Math.min;Le({target:"Array",proto:!0,forced:!Ad||!Md},{splice:function(e,t){var i,n,r,o,s,a,l=Oe(this),c=le(l.length),u=de(e,c),d=arguments.length;if(0===d?i=n=0:1===d?(i=0,n=c-u):(i=d-2,n=Id(Ld(se(t),0),c-u)),c+i-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(r=st(l,n),o=0;o<n;o++)(s=u+o)in l&&Ni(r,o,l[s]);if(r.length=n,i<n){for(o=u;o<c-n;o++)a=o+i,(s=o+n)in l?l[a]=l[s]:delete l[a];for(o=c;o>c-n+i;o--)delete l[o-1]}else if(i>n)for(o=c-n;o>u;o--)a=o+i-1,(s=o+n-1)in l?l[a]=l[s]:delete l[a];for(o=0;o<i;o++)l[o+u]=arguments[o+2];return l.length=c-n+i,r}});var zd=t(function(e,t){e.exports=function(){var e=function(){},t={},i={},n={};function r(e,t){if(e){var r=n[e];if(i[e]=t,r)for(;r.length;)r[0](e,t),r.splice(0,1)}}function o(t,i){t.call&&(t={success:t}),i.length?(t.error||e)(i):(t.success||e)(t)}function s(t,i,n,r){var o,a,l=document,c=n.async,u=(n.numRetries||0)+1,d=n.before||e,h=t.replace(/[\?|#].*$/,""),p=t.replace(/^(css|img)!/,"");r=r||0,/(^css!|\.css$)/.test(h)?((a=l.createElement("link")).rel="stylesheet",a.href=p,(
1o="hideFocus"in a)&&a.relList&&(o=0,a.rel="preload",a.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(h)?(a=l.createElement("img")).src=p:((a=l.createElement("script")).src=t,a.async=void 0===c||c),a.onload=a.onerror=a.onbeforeload=function(e){var l=e.type[0];if(o)try{a.sheet.cssText.length||(l="e")}catch(e){18!=e.code&&(l="e")}if("e"==l){if((r+=1)<u)return s(t,i,n,r)}else if("preload"==a.rel&&"style"==a.as)return a.rel="stylesheet";i(t,l,e.defaultPrevented)},!1!==d(t,a)&&l.head.appendChild(a)}function a(e,i,n){var a,l;if(i&&i.trim&&(a=i),l=(a?n:i)||{},a){if(a in t)throw"LoadJS";t[a]=!0}function c(t,i){!function(e,t,i){var n,r,o=(e=e.push?e:[e]).length,a=o,l=[];for(n=function(e,i,n){if("e"==i&&l.push(e),"b"==i){if(!n)return;l.push(e)}--o||t(l)},r=0;r<a;r++)s(e[r],n,i)}(e,function(e){o(l,e),t&&o({success:t,error:i},e),r(a,e)},l)}if(l.returnPromise)return new Promise(c);c()}return a.ready=function(e,t){return function(e,t){e=e.push?e:[e];var r,o,s,a=[],l=e.length,c=l;for(r=function(e,i){i.length&&a.push(e),--c||t(a)};l--;)o=e[l],(s=i[o])?r(o,s):(n[o]=n[o]||[]).push(r)}(e,function(e){o(t,e)}),a},a.done=function(e){r(e,[])},a.reset=function(){t={},i={},n={}},a.isDefined=function(e){return e in t},a}()});function Dd(e){return new Promise(function(t,i){zd(e,{success:t,error:i})})}function Od(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,Iu.call(this,this.media,e?"play":"pause"))}var $d={setup:function(){var e=this;vu(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,$u.call(e),Fc(window.Vimeo)?$d.ready.call(e):Dd(e.config.urls.vimeo.sdk).then(function(){$d.ready.call(e)}).catch(function(t){e.debug.warn("Vimeo SDK (player.js) failed to load",t)})},ready:function(){var e=this,t=this,i=t.config.vimeo,n=md(au({},{loop:t.config.loop.active,autoplay:t.autoplay,muted:t.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},i)),r=t.media.getAttribute("src");Zc(r)&&(r=t.media.getAttribute(t.config.attributes.embed.id));var o,s=Zc(o=r)?null:Hc(Number(o))?o:o.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:o,a=uu("iframe"),l=Zu(t.config.urls.vimeo.iframe,s,n);a.setAttribute("src",l),a.setAttribute("allowfullscreen",""),a.setAttribute("allowtransparency",""),a.setAttribute("allow","autoplay"),Zc(i.referrerPolicy)||a.setAttribute("referrerPolicy",i.referrerPolicy);var c=uu("div",{poster:t.poster,class:t.config.classNames.embedContainer});c.appendChild(a),t.media=fu(c,t.media),od(Zu(t.config.urls.vimeo.api,s),"json").then(function(e){if(!Zc(e)){var i=new URL(e[0].thumbnail_large);i.pathname="".concat(i.pathname.split("_")[0],".jpg"),kd.setPoster.call(t,i.href).catch(function(){})}}),t.embed=new window.Vimeo.Player(a,{autopause:t.config.autopause,muted:t.muted}),t.media.paused=!0,t.media.currentTime=0,t.supported.ui&&t.embed.disableTextTrack(),t.media.play=function(){return Od.call(t,!0),t.embed.play()},t.media.pause=function(){return Od.call(t,!1),t.embed.pause()},t.media.stop=function(){t.pause(),t.currentTime=0};var u=t.media.currentTime;Object.defineProperty(t.media,"currentTime",{get:function(){return u},set:function(e){var i=t.embed,n=t.media,r=t.paused,o=t.volume,s=r&&!i.hasPlayed;n.seeking=!0,Iu.call(t,n,"seeking"),Promise.resolve(s&&i.setVolume(0)).then(function(){return i.setCurrentTime(e)}).then(function(){return s&&i.pause()}).then(function(){return s&&i.setVolume(o)}).catch(function(){})}});var d=t.config.speed.selected;Object.defineProperty(t.media,"playbackRate",{get:function(){return d},set:function(e){t.embed.setPlaybackRate(e).then(function(){d=e,Iu.call(t,t.media,"ratechange")})}});var h=t.config.volume;Object.defineProperty(t.media,"volume",{get:function(){return h},set:function(e){t.embed.setVolume(e).then(function(){h=e,Iu.call(t,t.media,"volumechange")})}});var p=t.config.muted;Object.defineProperty(t.media,"muted",{get:function(){return p},set:function(e){var i=!!Bc(e)&&e;t.embed.setVolume(i?0:t.config.volume).then(function(){p=i,Iu.call(t,t.media,"volumechange")})}});var f,m=t.config.loop;Object.defineProperty(t.media,"loop",{get:function(){return m},set:function(e){var i=Bc(e)?e:t.config.loop.active;t.embed.setLoop(i).then(function(){m=i})}}),t.embed.getVideoUrl().then(function(e){f=e,pd.setDownloadUrl.call(t)}).catch(function(t){e.debug.warn(t)}),Object.defineProperty(t.media,"currentSrc",{get:function(){return f}}),Object.defineProperty(t.media,"ended",{get:function(){return t.currentTime===t.duration}}),Promise.all([t.embed.getVideoWidth(),t.embed.getVideoHeight()]).then(function(i){var n=Es(i,2),r=n[0],o=n[1];t.embed.ratio=[r,o],$u.call(e)}
1),t.embed.setAutopause(t.config.autopause).then(function(e){t.config.autopause=e}),t.embed.getVideoTitle().then(function(i){t.config.title=i,kd.setTitle.call(e)}),t.embed.getCurrentTime().then(function(e){u=e,Iu.call(t,t.media,"timeupdate")}),t.embed.getDuration().then(function(e){t.media.duration=e,Iu.call(t,t.media,"durationchange")}),t.embed.getTextTracks().then(function(e){t.media.textTracks=e,gd.setup.call(t)}),t.embed.on("cuechange",function(e){var i=e.cues,n=(void 0===i?[]:i).map(function(e){return function(e){var t=document.createDocumentFragment(),i=document.createElement("div");return t.appendChild(i),i.innerHTML=e,t.firstChild.innerText}(e.text)});gd.updateCues.call(t,n)}),t.embed.on("loaded",function(){t.embed.getPaused().then(function(e){Od.call(t,!e),e||Iu.call(t,t.media,"playing")}),Xc(t.embed.element)&&t.supported.ui&&t.embed.element.setAttribute("tabindex",-1)}),t.embed.on("bufferstart",function(){Iu.call(t,t.media,"waiting")}),t.embed.on("bufferend",function(){Iu.call(t,t.media,"playing")}),t.embed.on("play",function(){Od.call(t,!0),Iu.call(t,t.media,"playing")}),t.embed.on("pause",function(){Od.call(t,!1)}),t.embed.on("timeupdate",function(e){t.media.seeking=!1,u=e.seconds,Iu.call(t,t.media,"timeupdate")}),t.embed.on("progress",function(e){t.media.buffered=e.percent,Iu.call(t,t.media,"progress"),1===parseInt(e.percent,10)&&Iu.call(t,t.media,"canplaythrough"),t.embed.getDuration().then(function(e){e!==t.media.duration&&(t.media.duration=e,Iu.call(t,t.media,"durationchange"))})}),t.embed.on("seeked",function(){t.media.seeking=!1,Iu.call(t,t.media,"seeked")}),t.embed.on("ended",function(){t.media.paused=!0,Iu.call(t,t.media,"ended")}),t.embed.on("error",function(e){t.media.error=e,Iu.call(t,t.media,"error")}),setTimeout(function(){return kd.build.call(t)},0)}};function _d(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,Iu.call(this,this.media,e?"play":"pause"))}function jd(e){return e.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var Nd={setup:function(){var e=this;if(vu(this.elements.wrapper,this.config.classNames.embed,!0),Fc(window.YT)&&Uc(window.YT.Player))Nd.ready.call(this);else{var t=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){Uc(t)&&t(),Nd.ready.call(e)},Dd(this.config.urls.youtube.sdk).catch(function(t){e.debug.warn("YouTube API failed to load",t)})}},getTitle:function(e){var t=this;od(Zu(this.config.urls.youtube.api,e)).then(function(e){if(Fc(e)){var i=e.title,n=e.height,r=e.width;t.config.title=i,kd.setTitle.call(t),t.embed.ratio=[r,n]}$u.call(t)}).catch(function(){$u.call(t)})},ready:function(){var e=this,t=e.media&&e.media.getAttribute("id");if(Zc(t)||!t.startsWith("youtube-")){var i=e.media.getAttribute("src");Zc(i)&&(i=e.media.getAttribute(this.config.attributes.embed.id));var n,r,o=Zc(n=i)?null:n.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:n,s=(r=e.provider,"".concat(r,"-").concat(Math.floor(1e4*Math.random()))),a=uu("div",{id:s,poster:e.poster});e.media=fu(a,e.media);var l=function(e){return"https://i.ytimg.com/vi/".concat(o,"/").concat(e,"default.jpg")};Cd(l("maxres"),121).catch(function(){return Cd(l("sd"),121)}).catch(function(){return Cd(l("hq"))}).then(function(t){return kd.setPoster.call(e,t.src)}).then(function(t){t.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")}).catch(function(){});var c=e.config.youtube;e.embed=new window.YT.Player(s,{videoId:o,host:jd(c),playerVars:au({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui?0:1,disablekb:1,playsinline:e.config.fullscreen.iosNative?0:1,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},c),events:{onError:function(t){if(!e.media.error){var i=t.data,n={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."}[i]||"An unknown error occured";e.media.error={code:i,message:n},Iu.call(e,e.media,"error")}},onPlaybackRateChange:function(t){var i=t.target;e.media.playbackRate=i.getPlaybackRate(),Iu.call(e,e.media,"ratechange")},onReady:function(t){if(!Uc(e.media.play)){var i=t.target;Nd.getTitle.call(e,o),e.media.play=function(){_d.call(e,!0),i.playVideo()},e.media.pause=function(){_d.call(e,!1),i.pauseVideo()},e.media.stop=function(){i.stopVideo()},e.media.duration=i.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:function(){return Number(i.getCurrentTime())},set:function(t){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,Iu.call(e,e.media,"seeking"),i.seekTo(t)}}),Object.defineProperty(e.media,"playbackRate",{get:function(){return i.getPlaybackRate()},set:function(e){i.setPlaybackRate(e)}});var n=e.config.volume;Object.defineProperty(e.media,"volume",{get:function(){return n},set:function(t){n=t,i.setVolume(100*n),Iu.call(e,e.media,"volumechange")}});var r=e.config.muted;Object.defineProperty(e.media,"muted",{get:function(){return r},set:function(t){var n=Bc(t)?t:r;r=n,i[n?"mute":"unMute"](),Iu.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:function(){return i.getVideoUrl()}}),Object.defineProperty(e.media,"ended",{get:function(){return e.currentTime===e.duration}});var s=i.getAvailablePlaybackRates();e.options.speed=s.filter(function(t){return e.config.speed.options.includes(t)}),e.supported.ui&&e.media.setAttribute("tabindex",-1),Iu.call(e,e.media,"timeupdate"),Iu.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval(function(){e.media.buffered=i.getVideoLoadedFraction(),(null===e.media.lastBuffered||e.media.lastBuffered<e.media.buffered)&&Iu.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,1===e.media.buffered&&(clearInterval(e.timers.buffering),Iu.call(e,e.media,"canplaythrough"))},200),setTimeout(function(){return kd.build.call(e)},50)}},onStateChange:function(t){var i=t.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(t.data)&&(e.media.seeking=!1,Iu.call(e,e.media,"seeked")),t.data){case-1:Iu.call(e,e.media,"timeupdate"),e.media.buffered=i.getVideoLoadedFraction(),Iu.call(e,e.media,"progress");break;case 0:_d.call(e,!1),e.media.loop?(i.stopVideo(),i.playVideo()):Iu.call(e,e.media,"ended");break;
1case 1:e.config.autoplay||!e.media.paused||e.embed.hasPlayed?(_d.call(e,!0),Iu.call(e,e.media,"playing"),e.timers.playing=setInterval(function(){Iu.call(e,e.media,"timeupdate")},50),e.media.duration!==i.getDuration()&&(e.media.duration=i.getDuration(),Iu.call(e,e.media,"durationchange"))):e.media.pause();break;case 2:e.muted||e.embed.unMute(),_d.call(e,!1);break;case 3:Iu.call(e,e.media,"waiting")}Iu.call(e,e.elements.container,"statechange",!1,{code:t.data})}}})}}},Rd={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?_u.setup.call(this):this.isYouTube?Nd.setup.call(this):this.isVimeo&&$d.setup.call(this)):this.debug.warn("No media element found!")}},Fd=function(){function e(t){var i=this;ys(this,e),this.player=t,this.config=t.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(e,t){i.on("loaded",e),i.on("error",t)}),this.load()}return ws(e,[{key:"load",value:function(){var e=this;this.enabled&&(Fc(window.google)&&Fc(window.google.ima)?this.ready():Dd(this.player.config.urls.googleIMA.sdk).then(function(){e.ready()}).catch(function(){e.trigger("error",new Error("Google IMA SDK failed to load"))}))}},{key:"ready",value:function(){var e,t=this;this.enabled||((e=this).manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(function(){t.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 e=this,t=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(t){return e.onAdsManagerLoaded(t)},!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,function(t){return e.onAdError(t)},!1);var i=new google.ima.AdsRequest;i.adTagUrl=this.tagUrl,i.linearAdSlotWidth=t.offsetWidth,i.linearAdSlotHeight=t.offsetHeight,i.nonLinearAdSlotWidth=t.offsetWidth,i.nonLinearAdSlotHeight=t.offsetHeight,i.forceNonLinearFullSlot=!1,i.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(i)}catch(e){this.onAdError(e)}}},{key:"pollCountdown",value:function(){var e=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 t=hd(Math.max(e.manager.getRemainingTime(),0)),i="".concat(nd("advertisement",e.player.config)," - ").concat(t);e.elements.container.setAttribute("data-badge-text",i)},100)}},{key:"onAdsManagerLoaded",value:function(e){var t=this;if(this.enabled){var i=new google.ima.AdsRenderingSettings;i.restoreCustomPlaybackStateOnAdBreakComplete=!0,i.enablePreloading=!0,this.manager=e.getAdsManager(this.player,i),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,function(e){return t.onAdError(e)}),Object.keys(google.ima.AdEvent.Type).forEach(function(e){t.manager.addEventListener(google.ima.AdEvent.Type[e],function(e){return t.onAdEvent(e)})}),this.trigger("loaded")}}},{key:"addCuePoints",value:function(){var e=this;
1Zc(this.cuePoints)||this.cuePoints.forEach(function(t){if(0!==t&&-1!==t&&t<e.player.duration){var i=e.player.elements.progress;if(Xc(i)){var n=100/e.player.duration*t,r=uu("span",{class:e.player.config.classNames.cues});r.style.left="".concat(n.toString(),"%"),i.appendChild(r)}}})}},{key:"onAdEvent",value:function(e){var t=this,i=this.player.elements.container,n=e.getAd(),r=e.getAdData();switch(function(e){Iu.call(t.player,t.player.media,"ads".concat(e.replace(/_/g,"").toLowerCase()))}(e.type),e.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),n.isLinear()||(n.width=i.offsetWidth,n.height=i.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:r.adError&&this.player.debug.warn("Non-fatal ad error: ".concat(r.adError.getMessage()))}}},{key:"onAdError",value:function(e){this.cancel(),this.player.debug.warn("Ads error",e)}},{key:"listeners",value:function(){var e,t=this,i=this.player.elements.container;this.player.on("canplay",function(){t.addCuePoints()}),this.player.on("ended",function(){t.loader.contentComplete()}),this.player.on("timeupdate",function(){e=t.player.currentTime}),this.player.on("seeked",function(){var i=t.player.currentTime;Zc(t.cuePoints)||t.cuePoints.forEach(function(n,r){e<n&&n<i&&(t.manager.discardAdBreak(),t.cuePoints.splice(r,1))})}),window.addEventListener("resize",function(){t.manager&&t.manager.resize(i.offsetWidth,i.offsetHeight,google.ima.ViewMode.NORMAL)})}},{key:"play",value:function(){var e=this,t=this.player.elements.container;this.managerPromise||this.resumeContent(),this.managerPromise.then(function(){e.manager.setVolume(e.player.volume),e.elements.displayContainer.initialize();try{e.initialized||(e.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),e.manager.start()),e.initialized=!0}catch(t){e.onAdError(t)}}).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 e=this;this.managerPromise.then(function(){e.manager&&e.manager.destroy(),e.managerPromise=new Promise(function(t){e.on("loaded",t),e.player.debug.log(e.manager)}),e.requestAds()}).catch(function(){})}},{key:"trigger",value:function(e){for(var t=this,i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];var o=this.events[e];Wc(o)&&o.forEach(function(e){Uc(e)&&e.apply(t,n)})}},{key:"on",value:function(e,t){return Wc(this.events[e])||(this.events[e]=[]),this.events[e].push(t),this}},{key:"startSafetyTimer",value:function(e,t){var i=this;this.player.debug.log("Safety timer invoked from: ".concat(t)),this.safetyTimer=setTimeout(function(){i.cancel(),i.clearSafetyTimer("startSafetyTimer()")},e)}},{key:"clearSafetyTimer",value:function(e){Rc(this.safetyTimer)||(this.player.debug.log("Safety timer cleared from: ".concat(e)),clearTimeout(this.safetyTimer),this.safetyTimer=null)}},{key:"enabled",get:function(){var e=this.config;return this.player.isHTML5&&this.player.isVideo&&e.enabled&&(!Zc(e.publisherId)||Qc(e.tagUrl))}},{key:"tagUrl",get:function(){var e=this.config;if(Qc(e.tagUrl))return e.tagUrl;var t={AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:e.publisherId};return"".concat("https://go.aniview.com/api/adserver6/vast/","?").concat(md(t))}}]),e}(),Hd=ct.findIndex,qd=!0,Bd=Qt("findIndex");"findIndex"in[]&&Array(1).findIndex(function(){qd=!1}),Le({target:"Array",proto:!0,forced:qd||!Bd},{findIndex:function(e){return Hd(this,e,arguments.length>1?arguments[1]:void 0)}}),hi("findIndex");var Ud=Math.min,Wd=[].lastIndexOf,Vd=!!Wd&&1/[1].lastIndexOf(1,-0)<0,Xd=Xt("lastIndexOf"),Yd=Qt("indexOf",{ACCESSORS:!0,1:0}),Gd=!Vd&&Xd&&Yd?Wd:function(e){if(Vd)return Wd.apply(this,arguments)||0;var t=m(this),i=le(t.length),n=i-1;for(arguments.length>1&&(n=Ud(n,se(arguments[1]))),n<0&&(n=i+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1};Le({target:"Array",proto:!0,forced:Gd!==[].lastIndexOf},{lastIndexOf:Gd});var Kd,Qd=function(e,t){var i={};return e>t.width/t.height?(i.width=t.width,i.height=1/e*t.width):(i.height=t.height,i.width=e*t.height),i},Zd=function(){function e(t){ys(this,e),this.player=t,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return ws(e,[{key:"load",value:function(){var e=this;this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(function(){e.enabled&&(e.render(),e.determineContainerAutoSizing(),e.loaded=!0)})}},{key:"getThumbnails",value:function(){var e=this;return new Promise(function(t){var i=e.player.config.previewThumbnails.src;if(Zc(i))throw new Error("Missing previewThumbnails.src config attribute");var n=(qc(i)?[i]:i).map(function(t){return e.getThumbnail(t)});Promise.all(n).then(function(){e.thumbnails.sort(function(e,t){return e.height-t.height}),e.player.debug.log("Preview thumbnails",e.thumbnails),t()})})}},{key:"getThumbnail",value:function(e){var t=this;return new Promise(function(i){od(e).then(function(n){var r,o,s={frames:(r=n,o=[],r.split(/\r\n\r\n|\n\n|\r\r/).forEac
1h(function(e){var t={};e.split(/\r\n|\n|\r/).forEach(function(e){if(Hc(t.startTime)){if(!Zc(e.trim())&&Zc(t.text)){var i=e.trim().split("#xywh="),n=Es(i,1);if(t.text=n[0],i[1]){var r=Es(i[1].split(","),4);t.x=r[0],t.y=r[1],t.w=r[2],t.h=r[3]}}}else{var o=e.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})/);o&&(t.startTime=60*Number(o[1]||0)*60+60*Number(o[2])+Number(o[3])+Number("0.".concat(o[4])),t.endTime=60*Number(o[6]||0)*60+60*Number(o[7])+Number(o[8])+Number("0.".concat(o[9])))}}),t.text&&o.push(t)}),o),height:null,urlPrefix:""};s.frames[0].text.startsWith("/")||s.frames[0].text.startsWith("http://")||s.frames[0].text.startsWith("https://")||(s.urlPrefix=e.substring(0,e.lastIndexOf("/")+1));var a=new Image;a.onload=function(){s.height=a.naturalHeight,s.width=a.naturalWidth,t.thumbnails.push(s),i()},a.src=s.urlPrefix+s.frames[0].text})})}},{key:"startMove",value:function(e){if(this.loaded&&Yc(e)&&["touchmove","mousemove"].includes(e.type)&&this.player.media.duration){if("touchmove"===e.type)this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var t=this.player.elements.progress.getBoundingClientRect(),i=100/t.width*(e.pageX-t.left);this.seekTime=this.player.media.duration*(i/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=e.pageX,this.elements.thumb.time.innerText=hd(this.seekTime)}this.showImageAtCurrentTime()}}},{key:"endMove",value:function(){this.toggleThumbContainer(!1,!0)}},{key:"startScrubbing",value:function(e){(Rc(e.button)||!1===e.button||0===e.button)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}},{key:"endScrubbing",value:function(){var e=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(){e.mouseDown||e.toggleScrubbingContainer(!1)})}},{key:"listeners",value:function(){var e=this;this.player.on("play",function(){e.toggleThumbContainer(!1,!0)}),this.player.on("seeked",function(){e.toggleThumbContainer(!1)}),this.player.on("timeupdate",function(){e.lastTime=e.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 e=uu("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=uu("span",{},"00:00"),e.appendChild(this.elements.thumb.time),this.elements.thumb.container.appendChild(e),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 e=this;this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();var t=this.thumbnails[0].frames.findIndex(function(t){return e.seekTime>=t.startTime&&e.seekTime<=t.endTime}),i=t>=0,n=0;this.mouseDown||this.toggleThumbContainer(i),i&&(this.thumbnails.forEach(function(i,r){e.loadedImages.includes(i.frames[t].text)&&(n=r)}),t!==this.showingThumb&&(this.showingThumb=t,this.loadImage(n)))}},{key:"loadImage",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=this.showingThumb,n=this.thumbnails[t],r=n.urlPrefix,o=n.frames[i],s=n.frames[i].text,a=r+s;
1if(this.currentImageElement&&this.currentImageElement.dataset.filename===s)this.showImage(this.currentImageElement,o,t,i,s,!1),this.currentImageElement.dataset.index=i,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);var l=new Image;l.src=a,l.dataset.index=i,l.dataset.filename=s,this.showingThumbFilename=s,this.player.debug.log("Loading image: ".concat(a)),l.onload=function(){return e.showImage(l,o,t,i,s,!0)},this.loadingImage=l,this.removeOldImages(l)}}},{key:"showImage",value:function(e,t,i,n,r){var o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];this.player.debug.log("Showing thumb: ".concat(r,". num: ").concat(n,". qual: ").concat(i,". newimg: ").concat(o)),this.setImageSizeAndOffset(e,t),o&&(this.currentImageContainer.appendChild(e),this.currentImageElement=e,this.loadedImages.includes(r)||this.loadedImages.push(r)),this.preloadNearby(n,!0).then(this.preloadNearby(n,!1)).then(this.getHigherQuality(i,e,t,r))}},{key:"removeOldImages",value:function(e){var t=this;Array.from(this.currentImageContainer.children).forEach(function(i){if("img"===i.tagName.toLowerCase()){var n=t.usingSprites?500:1e3;if(i.dataset.index!==e.dataset.index&&!i.dataset.deleting){i.dataset.deleting=!0;var r=t.currentImageContainer;setTimeout(function(){r.removeChild(i),t.player.debug.log("Removing thumb: ".concat(i.dataset.filename))},n)}}})}},{key:"preloadNearby",value:function(e){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise(function(n){setTimeout(function(){var r=t.thumbnails[0].frames[e].text;if(t.showingThumbFilename===r){var o;o=i?t.thumbnails[0].frames.slice(e):t.thumbnails[0].frames.slice(0,e).reverse();var s=!1;o.forEach(function(e){var i=e.text;if(i!==r&&!t.loadedImages.includes(i)){s=!0,t.player.debug.log("Preloading thumb filename: ".concat(i));var o=t.thumbnails[0].urlPrefix+i,a=new Image;a.src=o,a.onload=function(){t.player.debug.log("Preloaded thumb filename: ".concat(i)),t.loadedImages.includes(i)||t.loadedImages.push(i),n()}}}),s||n()}},300)})}},{key:"getHigherQuality",value:function(e,t,i,n){var r=this;if(e<this.thumbnails.length-1){var o=t.naturalHeight;this.usingSprites&&(o=i.h),o<this.thumbContainerHeight&&setTimeout(function(){r.showingThumbFilename===n&&(r.player.debug.log("Showing higher quality thumb for: ".concat(n)),r.loadImage(e+1))},300)}}},{key:"toggleThumbContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(i,e),!e&&t&&(this.showingThumb=null,this.showingThumbFilename=null)}},{key:"toggleScrubbingContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(t,e),e||(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 e=Math.floor(this.elements.thumb.imageContainer.clientHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.width="".concat(e,"px")}else if(this.elements.thumb.imageContainer.clientHeight<20&&this.elements.thumb.imageContainer.clientWidth>20){var t=Math.floor(this.elements.thumb.imageContainer.clientWidth/this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height="".concat(t,"px")}}else{var i=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height="".concat(this.thumbContainerHeight,"px"),this.elements.thumb.imageContainer.style.width="".concat(i,"px")}this.setThumbContainerPos()}},{key:"setThumbContainerPos",value:function(){var e=this.player.elements.progress.getBoundingClientRect(),t=this.player.elements.container.getBoundingClientRect(),i=this.elements.thumb.container,n=t.left-e.left+10,r=t.right-e.left-i.clientWidth-10,o=this.mousePosX-e.left-i.clientWidth/2;o<n&&(o=n),o>r&&(o=r),i.style.left="".concat(o,"px")}},{key:"setScrubbingContainerSize",value:function(){var e=Qd(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}
1),t=e.width,i=e.height;this.elements.scrubbing.container.style.width="".concat(t,"px"),this.elements.scrubbing.container.style.height="".concat(i,"px")}},{key:"setImageSizeAndOffset",value:function(e,t){if(this.usingSprites){var i=this.thumbContainerHeight/t.h;e.style.height="".concat(e.naturalHeight*i,"px"),e.style.width="".concat(e.naturalWidth*i,"px"),e.style.left="-".concat(t.x*i,"px"),e.style.top="-".concat(t.y*i,"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?Qd(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(e){this.mouseDown?this.currentScrubbingImageElement=e:this.currentThumbnailImageElement=e}}]),e}(),Jd={insertElements:function(e,t){var i=this;qc(t)?du(e,this.media,{src:t}):Wc(t)&&t.forEach(function(t){du(e,i.media,t)})},change:function(e){var t=this;su(e,"sources.length")?(_u.cancelRequests.call(this),this.destroy.call(this,function(){t.options.quality=[],hu(t.media),t.media=null,Xc(t.elements.container)&&t.elements.container.removeAttribute("class");var i=e.sources,n=e.type,r=Es(i,1)[0],o=r.provider,s=void 0===o?bd.html5:o,a=r.src,l="html5"===s?n:"div",c="html5"===s?{}:{src:a};Object.assign(t,{provider:s,type:n,supported:Cu.check(n,s,t.config.playsinline),media:uu(l,c)}),t.elements.container.appendChild(t.media),Bc(e.autoplay)&&(t.config.autoplay=e.autoplay),t.isHTML5&&(t.config.crossorigin&&t.media.setAttribute("crossorigin",""),t.config.autoplay&&t.media.setAttribute("autoplay",""),Zc(e.poster)||(t.poster=e.poster),t.config.loop.active&&t.media.setAttribute("loop",""),t.config.muted&&t.media.setAttribute("muted",""),t.config.playsinline&&t.media.setAttribute("playsinline","")),kd.addStyleHook.call(t),t.isHTML5&&Jd.insertElements.call(t,"source",i),t.config.title=e.title,Rd.setup.call(t),t.isHTML5&&Object.keys(e).includes("tracks")&&Jd.insertElements.call(t,"track",e.tracks),(t.isHTML5||t.isEmbed&&!t.supported.ui)&&kd.build.call(t),t.isHTML5&&t.media.load(),Zc(e.previewThumbnails)||(Object.assign(t.config.previewThumbnails,e.previewThumbnails),t.previewThumbnails&&t.previewThumbnails.loaded&&(t.previewThumbnails.destroy(),t.previewThumbnails=null),t.config.previewThumbnails.enabled&&(t.previewThumbnails=new Zd(t))),t.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}},eh=function(){function e(t,i){var n=this;if(ys(this,e),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=Cu.touch,this.media=t,qc(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({},vd,e.defaults,i||{},function(){try{return JSON.parse(n.media.getAttribute("data-plyr-config"))}catch(e){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 Sd(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",Cu),!Rc(this.media)&&Xc(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(Cu.check().api){var r=this.media.cloneNode(!0);r.autoplay=!1,this.elements.original=r;var o=this.media.tagName.toLowerCase(),s=null,a=null;switch(o){case"div":if(s=this.media.querySelector("iframe"),Xc(s)){if(a=fd(s.getAttribute("src")),this.provider=function(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?bd.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?bd.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(bd).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=wd;break;case"video":case"audio":this.type=o,this.provider=bd.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=Cu.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new Pd(this),this.storage=new rd(this),this.media.plyr=this,Xc(this.elements.container)||(this.elements.container=uu("div",{tabindex:0}),lu(this.media,this.elements.container)),kd.addStyleHook.call(this),Rd.setup.call(this),this.config.debug&&Au.call(this,this.elements.container,this.config.events.join(" "),function(e){n.debug.log("event: ".concat(e.type))}),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&kd.build.call(this),this.listeners.container(),this.listeners.global(),this.fullscreen=new Td(this),this.config.ads.enabled&&(this.ads=new Fd(this)),this.isHTML5&&this.config.autoplay&&setTimeout(function(){return n.play()},10),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Zd(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(e,[{key:"play",value:function(){var e=this;return Uc(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(function(){return e.ads.play()}).catch(function(){return e.media.play()}),this.media.play()):null}},{key:"pause",value:function(){return this.playing&&Uc(this.media.pause)?this.media.pause():null}},{key:"togglePlay",value:function(e){return(Bc(e)?e:!this.playing)?this.play():this.pause()}},{key:"stop",value:function(){this.isHTML5?(this.pause(),this.restart()):Uc(this.media.stop)&&this.media.stop()}},{key:"restart",value:function(){this.currentTime=0}},{key:"rewind",value:function(e){this.currentTime-=Hc(e)?e:this.config.seekTime}},{key:"forward",value:function(e){this.currentTime+=Hc(e)?e:this.config.seekTime}},{key:"increaseVolume",value:function(e){var t=this.media.muted?0:this.volume;this.volume=t+(Hc(e)?e:0)}},{key:"decreaseVolume",value:function(e){this.increaseVolume(-e)}},{key:"toggleCaptions",value:function(e){gd.toggle.call(this,e,!1)}},{key:"airplay",value:function(){Cu.airplay&&this.media.webkitShowPlaybackTargetPicker()}},{key:"toggleControls",value:function(e){if(this.supported.ui&&!this.isAudio){var t=yu(this.elements.container,this.config.classNames.hideControls),i=void 0===e?void 0:!e,n=vu(this.elements.container,this.config.classNames.hideControls,i);if(n&&this.config.controls.includes("settings")&&!Zc(this.config.settings)&&pd.toggleMenu.call(this,!1),n!==t){var r=n?"controlshidden":"controlsshown";Iu.call(this,this.media,r)}return!n}return!1}},{key:"on",value:function(e,t){Au.call(this,this.elements.container,e,t)}},{key:"once",value:function(e,t){Lu.call(this,this.elements.container,e,t)}},{key:"off",value:function(e,t){Mu(this.elements.container,e,t)}},{key:"destroy",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.ready){var n=function(){document.body.style.overflow="",t.embed=null,i?(Object.keys(t.elements).length&&(hu(t.elements.buttons.play),hu(t.elements.captions),hu(t.elements.controls),hu(t.elements.wrapper),t.elements.buttons.play=null,t.elements.captions=null,t.elements.controls=null,t.elements.wrapper=null),Uc(e)&&e()):(function(){this&&this.eventListeners&&(this.eventListeners.forEac
1h(function(e){var t=e.element,i=e.type,n=e.callback,r=e.options;t.removeEventListener(i,n,r)}),this.eventListeners=[])}.call(t),fu(t.elements.original,t.elements.container),Iu.call(t,t.elements.original,"destroyed",!0),Uc(e)&&e.call(t.elements.original),t.ready=!1,setTimeout(function(){t.elements=null,t.media=null},200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(kd.toggleNativeControls.call(this,!0),n()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&Uc(this.embed.destroy)&&this.embed.destroy(),n()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(n),setTimeout(n,200))}}},{key:"supports",value:function(e){return Cu.mime.call(this,e)}},{key:"isHTML5",get:function(){return this.provider===bd.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===bd.youtube}},{key:"isVimeo",get:function(){return this.provider===bd.vimeo}},{key:"isVideo",get:function(){return this.type===wd}},{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(e){if(this.duration){var t=Hc(e)&&e>0;this.media.currentTime=t?Math.min(e,this.duration):0,this.debug.log("Seeking to ".concat(this.currentTime," seconds"))}},get:function(){return Number(this.media.currentTime)}},{key:"buffered",get:function(){var e=this.media.buffered;return Hc(e)?e:e&&e.length&&this.duration>0?e.end(0)/this.duration:0}},{key:"seeking",get:function(){return Boolean(this.media.seeking)}},{key:"duration",get:function(){var e=parseFloat(this.config.duration),t=(this.media||{}).duration,i=Hc(t)&&t!==1/0?t:0;return e||i}},{key:"volume",set:function(e){var t=e;qc(t)&&(t=Number(t)),Hc(t)||(t=this.storage.get("volume")),Hc(t)||(t=this.config.volume),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!Zc(e)&&this.muted&&t>0&&(this.muted=!1)},get:function(){return Number(this.media.volume)}},{key:"muted",set:function(e){var t=e;Bc(t)||(t=this.storage.get("muted")),Bc(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t},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(e){var t=this,i=null;Hc(e)&&(i=e),Hc(i)||(i=this.storage.get("speed")),Hc(i)||(i=this.config.speed.selected);var n=this.minimumSpeed,r=this.maximumSpeed;i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;return Math.min(Math.max(e,t),i)}(i,n,r),this.config.speed.selected=i,setTimeout(function(){t.media.playbackRate=i},0)},get:function(){return Number(this.media.playbackRate)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,Cs(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,Cs(this.options.speed)):this.isVimeo?2:16}},{key:"quality",set:function(e){var t=this.config.quality,i=this.options.quality;if(i.length){var n=[!Zc(e)&&Number(e),this.storage.get("quality"),t.selected,t.default].find(Hc),r=!0;if(!i.includes(n)){var o=function(e,t){return Wc(e)&&e.length?e.reduce(function(e,i){return Math.abs(i-t)<Math.abs(e-t)?i:e}):null}(i,n);this.debug.warn("Unsupported quality option: ".concat(n,", using ").concat(o," instead")),n=o,r=!1}t.selected=n,this.media.quality=n,r&&this.storage.set({quality:n})}},get:function(){return this.media.quality}},{key:"loop",set:function(e){var t=Bc(e)?e:this.config.loop.active;this.config.loop.active=t,this.media.loop=t},get:function(){return Boolean(this.media.loop)}},{key:"source",set:function(e){Jd.change.call(this,e)},get:function(){return this.media.currentSrc}},{key:"download",get:function(){var e=this.config.urls.download;return Qc(e)?e:this.source},set:function(e){Qc(e)&&(this.config.urls.download=e,pd.setDownloadUrl.call(this))}},{key:"poster",set:function(e){this.isVideo?kd.setPoster.call(this,e,!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 e=Du(Ou.call(this));return Wc(e)?e.join(":"):e},set:function(e){this.isVideo?qc(e)&&zu(e)?(this.config.ratio=e,$u.call(this)):this.debug.error("Invalid aspect ratio specified (".concat(e,")")):this.debug.warn("Aspect ratio can only be set for video")}}
1,{key:"autoplay",set:function(e){var t=Bc(e)?e:this.config.autoplay;this.config.autoplay=t},get:function(){return Boolean(this.config.autoplay)}},{key:"currentTrack",set:function(e){gd.set.call(this,e,!1)},get:function(){var e=this.captions,t=e.toggled,i=e.currentTrack;return t?i:-1}},{key:"language",set:function(e){gd.setLanguage.call(this,e,!1)},get:function(){return(gd.getCurrentTrack.call(this)||{}).language}},{key:"pip",set:function(e){if(Cu.pip){var t=Bc(e)?e:!this.pip;Uc(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?yd:"inline"),Uc(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}},get:function(){return Cu.pip?Zc(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===yd:null}}],[{key:"supported",value:function(e,t,i){return Cu.check(e,t,i)}},{key:"loadSprite",value:function(e,t){return sd(e,t)}},{key:"setup",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null;return qc(t)?n=Array.from(document.querySelectorAll(t)):Vc(t)?n=Array.from(t):Wc(t)&&(n=t.filter(Xc)),Zc(n)?null:n.map(function(t){return new e(t,i)})}}]),e}();return eh.defaults=(Kd=vd,JSON.parse(JSON.stringify(Kd))),eh}),function(e,t){"function"==typeof define&&define.amd?define(["flickity/js/index"],t):"object"==typeof module&&module.exports?module.exports=t(require("flickity")):t(e.Flickity)}(window,function(e){"use strict";e.createMethods.push("_createHash");var t=e.prototype;t._createHash=function(){this.options.hash&&(this.connectedHashLinks=[],this.onHashLinkClick=function(e){e.preventDefault(),this.selectCell(e.currentTarget.hash),history.replaceState(null,"",e.currentTarget.hash)}.bind(this),this.on("activate",this.activateHash),this.on("deactivate",this.deactivateHash))},t.activateHash=function(){if(this.on("change",this.onChangeHash),void 0===this.options.initialIndex&&location.hash){var e=this.queryCell(location.hash);e&&(this.options.initialIndex=this.getCellSlideIndex(e))}this.connectHashLinks()},t.deactivateHash=function(){this.off("change",this.onChangeHash),this.disconnectHashLinks()},t.onChangeHash=function(){var e=this.selectedElement.id;if(e){var t="#"+e;history.replaceState(null,"",t)}},t.connectHashLinks=function(){for(var e=document.querySelectorAll("a"),t=0;t<e.length;t++)this.connectHashLink(e[t])};var i=document.createElement("a");return t.connectHashLink=function(e){e.hash&&(i.href=e.href,i.pathname==location.pathname&&this.queryCell(e.hash)&&(e.addEventListener("click",this.onHashLinkClick),this.connectedHashLinks.push(e)))},t.disconnectHashLinks=function(){this.connectedHashLinks.forEach(function(e){e.removeEventListener("click",this.onHashLinkClick)},this),this.connectedHashLinks=[]},e}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Swiper=t()}(this,function(){"use strict";var e="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,t="undefined"==typeof window?{document:e,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,i=function(e){for(var t=0;t<e.length;t+=1)this[t]=e[t];return this.length=e.length,this};function n(n,r){var o=[],s=0;if(n&&!r&&n instanceof i)return n;if(n)if("string"==typeof n){var a,l,c=n.trim();if(0<=c.indexOf("<")&&0<=c.indexOf(">")){var u="div";for(0===c.indexOf("<li")&&(u="ul"),0===c.indexOf("<tr")&&(u="tbody"),0!==c.indexOf("<td")&&0!==c.indexOf("<th")||(u="tr"),0===c.indexOf("<tbody")&&(u="table"),0===c.indexOf("<option")&&(u="select"),(l=e.createElement(u)).innerHTML=c,s=0;s<l.childNodes.length;s+=1)o.push(l.childNodes[s])}else for(a=r||"#"!==n[0]||n.match(/[ .<>:~]/)?(r||e).querySelectorAll(n.trim()):[e.getElementById(n.trim().split("#")[1])],s=0;s<a.length;s+=1)a[s]&&o.push(a[s])}else if(n.nodeType||n===t||n===e)o.push(n);else if(0<n.length&&n[0].nodeType)for(s=0;s<n.length;s+=1)o.push(n[s]);return new i(o)}function r(e){for(var t=[],i=0;i<e.length;
vendor: 50,253 bytes, line 1
1i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}n.fn=i.prototype,n.Class=i,n.Dom7=i;var o={addClass:function(e){if(void 0===e)return this;for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.add(t[i]);return this},removeClass:function(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.remove(t[i]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.toggle(t[i]);return this},attr:function(e,t){var i=arguments;if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===i.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this},removeAttr:function(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},data:function(e,t){var i;if(void 0!==t){for(var n=0;n<this.length;n+=1)(i=this[n]).dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[e]=t;return this}if(i=this[0])return i.dom7ElementDataStorage&&e in i.dom7ElementDataStorage?i.dom7ElementDataStorage[e]:i.getAttribute("data-"+e)||void 0},transform:function(e){for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransform=e,i.transform=e}return this},transition:function(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransitionDuration=e,i.transitionDuration=e}return this},on:function(){for(var e,t=[],i=arguments.length;i--;)t[i]=arguments[i];var r=t[0],o=t[1],s=t[2],a=t[3];function l(e){var t=e.target;if(t){var i=e.target.dom7EventData||[];if(i.indexOf(e)<0&&i.unshift(e),n(t).is(o))s.apply(t,i);else for(var r=n(t).parents(),a=0;a<r.length;a+=1)n(r[a]).is(o)&&s.apply(r[a],i)}}function c(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),s.apply(this,t)}"function"==typeof t[1]&&(r=(e=t)[0],s=e[1],a=e[2],o=void 0),a||(a=!1);for(var u,d=r.split(" "),h=0;h<this.length;h+=1){var p=this[h];if(o)for(u=0;u<d.length;u+=1){var f=d[u];p.dom7LiveListeners||(p.dom7LiveListeners={}),p.dom7LiveListeners[f]||(p.dom7LiveListeners[f]=[]),p.dom7LiveListeners[f].push({listener:s,proxyListener:l}),p.addEventListener(f,l,a)}else for(u=0;u<d.length;u+=1){var m=d[u];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[m]||(p.dom7Listeners[m]=[]),p.dom7Listeners[m].push({listener:s,proxyListener:c}),p.addEventListener(m,c,a)}}return this},off:function(){for(var e,t=[],i=arguments.length;i--;)t[i]=arguments[i];var n=t[0],r=t[1],o=t[2],s=t[3];"function"==typeof t[1]&&(n=(e=t)[0],o=e[1],s=e[2],r=void 0),s||(s=!1);for(var a=n.split(" "),l=0;l<a.length;l+=1)for(var c=a[l],u=0;u<this.length;u+=1){var d=this[u],h=void 0;if(!r&&d.dom7Listeners?h=d.dom7Listeners[c]:r&&d.dom7LiveListeners&&(h=d.dom7LiveListeners[c]),h&&h.length)for(var p=h.length-1;0<=p;p-=1){var f=h[p];o&&f.listener===o?(d.removeEventListener(c,f.proxyListener,s),h.splice(p,1)):o||(d.removeEventListener(c,f.proxyListener,s),h.splice(p,1))}}return this},trigger:function(){for(var i=[],n=arguments.length;n--;)i[n]=arguments[n];for(var r=i[0].split(" "),o=i[1],s=0;s<r.length;s+=1)for(var a=r[s],l=0;l<this.length;l+=1){var c=this[l],u=void 0;try{u=new t.CustomEvent(a,{detail:o,bubbles:!0,cancelable:!0})}catch(i){(u=e.createEvent("Event")).initEvent(a,!0,!0),u.detail=o}c.dom7EventData=i.filter(function(e,t){return 0<t}),c.dispatchEvent(u),c.dom7EventData=[],delete c.dom7EventData}return this},transitionEnd:function(e){var t,i=["webkitTransitionEnd","transitionend"],n=this;function r(o){if(o.target===this)for(e.call(this,o),t=0;t<i.length;t+=1)n.off(i[t],r)}if(e)for(t=0;t<i.length;t+=1)n.on(i[t],r);return this},outerWidth:function(e){if(0<this.length){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(0<this.length){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(0<this.length){var i=this[0],n=i.getBoundingClientRect(),r=e.body,o=i.clientTop||r.clientTop||0,s=i.clientLeft||r.clientLeft||0,a=i===t?t.scrollY:i.scrollTop,l=i===t?t.scrollX:i.scrollLeft;return{top:n.top+a-o,left:n.left+l-s}}return null},css:function(e,i){var n;if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var r in e)this[n].style[r]=e[r];return this}if(this[0])return t.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=i;return this}return this},each:function(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(r){var o,s,a=this[0];if(!a||void 0===r)return!1;if("string"==typeof r){if(a.matches)return a.matches(r);if(a.webkitMatchesSelector)return a.webkitMatchesSelector(r);if(a.msMatchesSelector)return a.msMatchesSelector(r);for(o=n(r),s=0;s<o.length;s+=1)if(o[s]===a)return!0;return!1}if(r===e)return a===e;if(r===t)return a===t;if(r.nodeType||r instanceof i){for(o=r.nodeType?[r]:r,s=0;s<o.length;s+=1)if(o[s]===a)return!0;return!1}return!1},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t,n=this.length;return new i(n-1<e?[]:e<0?(t=n+e)<0?[]:[this[t]]:[this[e]])},append:function(){for(var t,n=[],r=arguments.length;r--;)n[r]=arguments[r];for(var o=0;o<n.length;o+=1){t=n[o];for(var s=0;s<this.length;s+=1)if("string"==typeof t){var a=e.createElement("div");for(a.innerHTML=t;a.firstChild;)this[s].appendChild(a.firstChild)}else if(t instanceof i)for(var l=0;l<t.length;l+=1)this[s].appendChild(t[l]);else this[s].appendChild(t)}return this},prepend:function(t){var n,r,o=this;for(n=0;n<this.length;n+=1)if("string"==typeof t){var s=e.createElement("div");for(s.innerHTML=t,r=s.childNodes.length-1;0<=r;r-=1)o[n].insertBefore(s.childNodes[r],o[n].childNodes[0])}else if(t instanceof i)for(r=0;r<t.length;r+=1)o[n].insertBefore(t[r],o[n].childNodes[0]);else o[n].insertBefore(t,o[n].childNodes[0]);return this},next:function(e){return 0<this.length?e?this[0].nextElementSibling&&n(this[0].nextElementSibling).is(e)?new i([this[0].nextElementSibling]):new i([]):this[0].nextElementSibling?new i([this[0].nextElementSibling]):new i([]):new i([])},nextAll:function(e){var t=[],r=this[0];if(!r)return new i([]);for(;r.nextElementSibling;){var o=r.nextElementSibling;e?n(o).is(e)&&t.push(o):t.push(o),r=o}return new i(t)},prev:function(e){if(0<this.length){var t=this[0];return e?t.previousElementSibling&&n(t.previousElementSibling).is(e)?new i([t.previousElementSibling]):new i([]):t.previousElementSibling?new i([t.previousElementSibling]):new i([])}return new i([])},prevAll:function(e){var t=[],r=this[0];if(!r)return new i([]);for(;r.previousElementSibling;){var o=r.previousElementSibling;e?n(o).is(e)&&t.push(o):t.push(o),r=o}return new i(t)},parent:function(e){for(var t=[],i=0;i<this.length;i+=1)null!==this[i].parentNode&&(e?n(this[i].parentNode).is(e)&&t.push(this[i].parentNode):t.push(this[i].parentNode));return n(r(t))},parents:function(e){for(var t=[],i=0;i<this.length;i+=1)for(var o=this[i].parentNode;o;)e?n(o).is(e)&&t.push(o):t.push(o),o=o.parentNode;return n(r(t))},closest:function(e){var t=this;return void 0===e?new i([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return new i(t)},children:function(e){for(var t=[],o=0;o<this.length;o+=1)for(var s=this[o].childNodes,a=0;a<s.length;a+=1)e?1===s[a].nodeType&&n(s[a]).is(e)&&t.push(s[a]):1===s[a].nodeType&&t.push(s[a]);return new i(r(t))},remove:function(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},add:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var i,r;for(i=0;i<e.length;i+=1){var o=n(e[i]);for(r=0;r<o.length;r+=1)this[this.length]=o[r],this.length+=1}return this},styles:function(){return this[0]?t.getComputedStyle(this[0],null):{}}};Object.keys(o).forEach(function(e){n.fn[e]=o[e]});var s,a,l,c={deleteProps:function(e){var t=e;Object.keys(t).forEach(function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})},nextTick:function(e,t){return void 0===t&&(t=0),setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e,i){var n,r,o;void 0===i&&(i="x");var s=t.getComputedStyle(e,null);return t.WebKitCSSMatrix?(6<(r=s.transform||s.webkitTransform).split(",").length&&(r=r.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),o=new t.WebKitCSSMatrix("none"===r?"":r)):n=(o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===i&&(r=t.WebKitCSSMatrix?o.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===i&&(r=t.WebKitCSSMatrix?o.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),r||0},parseUrlQuery:function(e){var i,n,r,o,s={},a=e||t.location.href;if("string"==typeof a&&a.length)for(o=(n=(a=-1<a.indexOf("?")?a.replace(/\S*\?/,""):"").split("&").filter(function(e){return""!==e})).length,i=0;i<o;i+=1)r=n[i].replace(/#\S+/g,"").split("="),s[decodeURIComponent(r[0])]=void 0===r[1]?void 0:decodeURIComponent(r[1])||"";return s},isObject:function(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i=Object(e[0]),n=1;n<e.length;n+=1){var r=e[n];if(null!=r)for(var o=Object.keys(Object(r)),s=0,a=o.length;s<a;s+=1){var l=o[s],u=Object.getOwnPropertyDescriptor(r,l);void 0!==u&&u.enumerable&&(c.isObject(i[l])&&c.isObject(r[l])?c.extend(i[l],r[l]):!c.isObject(i[l])&&c.isObject(r[l])?(i[l]={},c.extend(i[l],r[l])):i[l]=r[l])}}return i}},u=(l=e.createElement("div"),{touch:t.Modernizr&&!0===t.Modernizr.touch||!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),pointerEvents:!(!t.navigator.pointerEnabled&&!t.PointerEvent),prefixedPointerEvents:!!t.navigator.msPointerEnabled,transition:(a=l.style,"transition"in a||"webkitTransition"in a||"MozTransition"in a),transforms3d:t.Modernizr&&!0===t.Modernizr.csstransforms3d||(s=l.style,"webkitPerspective"in s||"MozPerspective"in s||"OPerspective"in s||"MsPerspective"in s||"perspective"in s),flexbox:function(){for(var e=l.style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),i=0;i<t.length;i+=1)if(t[i]in e)return!0;return!1}(),observer:"MutationObserver"in t||"WebkitMutationObserver"in t,passiveListener:function(){var e=!1;try{var i=Object.defineProperty({},"passive",{get:function(){e=!0}});t.addEventListener("testPassiveListener",null,i)}catch(e){}return e}(),gestures:"ongesturestart"in t}),d=function(e){void 0===e&&(e={});var t=this;t.params=e,t.eventsListeners={},t.params&&t.params.on&&Object.keys(t.params.on).forEach(function(e){t.on(e,t.params.on[e])})},h={components:{configurable:!0}};d.prototype.on=function(e,t,i){var n=this;if("function"!=typeof t)return n;var r=i?"unshift":"push";return e.split(" ").forEach(function(e){n.eventsListeners[e]||(n.eventsListeners[e]=[]),n.eventsListeners[e][r](t)}),n},d.prototype.once=function(e,t,i){var n=this;return"function"!=typeof t?n:n.on(e,function i(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];t.apply(n,r),n.off(e,i)},i)},d.prototype.off=function(e,t){var i=this;return i.eventsListeners&&e.split(" ").forEach(function(e){void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e].forEach(function(n,r){n===t&&i.eventsListeners[e].splice(r,1)})}),i},d.prototype.emit=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var i,n,r,o=this;return o.eventsListeners&&("string"==typeof e[0]||Array.isArray(e[0])?(i=e[0],n=e.slice(1,e.length),r=o):(i=e[0].events,n=e[0].data,r=e[0].context||o),(Array.isArray(i)?i:i.split(" ")).forEach(function(e){if(o.eventsListeners&&o.eventsListeners[e]){var t=[];o.eventsListeners[e].forEach(function(e){t.push(e)}),t.forEach(function(e){e.apply(r,n)})}})),o},d.prototype.useModulesParams=function(e){var t=this;t.modules&&Object.keys(t.modules).forEach(function(i){var n=t.modules[i];n.params&&c.extend(e,n.params)})},d.prototype.useModules=function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach(function(i){var n=t.modules[i],r=e[i]||{};n.instance&&Object.keys(n.instance).forEach(function(e){var i=n.instance[e];t[e]="function"==typeof i?i.bind(t):i}),n.on&&t.on&&Object.keys(n.on).forEach(function(e){t.on(e,n.on[e])}),n.create&&n.create.bind(t)(r)})},h.components.set=function(e){this.use&&this.use(e)},d.installModule=function(e){for(var t=[],i=arguments.length-1;0<i--;)t[i]=arguments[i+1];var n=this;n.prototype.modules||(n.prototype.modules={});var r=e.name||Object.keys(n.prototype.modules).length+"_"+c.now();return(n.prototype.modules[r]=e).proto&&Object.keys(e.proto).forEach(function(t){n.prototype[t]=e.proto[t]}),e.static&&Object.keys(e.static).forEach(function(t){n[t]=e.static[t]}),e.install&&e.install.apply(n,t),n},d.use=function(e){for(var t=[],i=arguments.length-1;0<i--;)t[i]=arguments[i+1];var n=this;return Array.isArray(e)?(e.forEach(function(e){return n.installModule(e)}),n):n.installModule.apply(n,[e].concat(t))},Object.defineProperties(d,h);var p={updateSize:function(){var e,t,i=this,n=i.$el;e=void 0!==i.params.width?i.params.width:n[0].clientWidth,t=void 0!==i.params.height?i.params.height:n[0].clientHeight,0===e&&i.isHorizontal()||0===t&&i.isVertical()||(e=e-parseInt(n.css("padding-left"),10)-parseInt(n.css("padding-right"),10),t=t-parseInt(n.css("padding-top"),10)-parseInt(n.css("padding-bottom"),10),c.extend(i,{width:e,height:t,size:i.isHorizontal()?e:t}))},updateSlides:function(){var e=this,i=e.params,n=e.$wrapperEl,r=e.size,o=e.rtlTranslate,s=e.wrongRTL,a=e.virtual&&i.virtual.enabled,l=a?e.virtual.slides.length:e.slides.length,d=n.children("."+e.params.slideClass),h=a?e.virtual.slides.length:d.length,p=[],f=[],m=[],g=i.slidesOffsetBefore;"function"==typeof g&&(g=i.slidesOffsetBefore.call(e));var v=i.slidesOffsetAfter;"function"==typeof v&&(v=i.slidesOffsetAfter.call(e));var y=e.snapGrid.length,b=e.snapGrid.length,w=i.spaceBetween,x=-g,S=0,T=0;if(void 0!==r){var E,C;"string"==typeof w&&0<=w.indexOf("%")&&(w=parseFloat(w.replace("%",""))/100*r),e.virtualSize=-w,o?d.css({marginLeft:"",marginTop:""}):d.css({marginRight:"",marginBottom:""}),1<i.slidesPerColumn&&(E=Math.floor(h/i.slidesPerColumn)===h/e.params.slidesPerColumn?h:Math.ceil(h/i.slidesPerColumn)*i.slidesPerColumn,"auto"!==i.slidesPerView&&"row"===i.slidesPerColumnFill&&(E=Math.max(E,i.slidesPerView*i.slidesPerColumn)));for(var k,P=i.slidesPerColumn,A=E/P,M=A-(i.slidesPerColumn*A-h),L=0;L<h;L+=1){C=0;var I=d.eq(L);if(1<i.slidesPerColumn){var z=void 0,D=void 0,O=void 0;"column"===i.slidesPerColumnFill?(O=L-(D=Math.floor(L/P))*P,(M<D||D===M&&O===P-1)&&P<=(O+=1)&&(O=0,D+=1),z=D+O*E/P,I.css({"-webkit-box-ordinal-group":z,"-moz-box-ordinal-group":z,"-ms-flex-order":z,"-webkit-order":z,order:z})):D=L-(O=Math.floor(L/A))*A,I.css("margin-"+(e.isHorizontal()?"top":"left"),0!==O&&i.spaceBetween&&i.spaceBetween+"px").attr("data-swiper-column",D).attr("data-swiper-row",O)}if("none"!==I.css("display")){if("auto"===i.slidesPerView){var $=t.getComputedStyle(I[0],null),_=I[0].style.transform,j=I[0].style.webkitTransform;_&&(I[0].style.transform="none"),j&&(I[0].style.webkitTransform="none"),C=e.isHorizontal()?I[0].getBoundingClientRect().width+parseFloat($.getPropertyValue("margin-left"))+parseFloat($.getPropertyValue("margin-right")):I[0].getBoundingClientRect().height+parseFloat($.getPropertyValue("margin-top"))+parseFloat($.getPropertyValue("margin-bottom")),_&&(I[0].style.transform=_),j&&(I[0].style.webkitTransform=j),i.roundLengths&&(C=Math.floor(C))}else C=(r-(i.slidesPerView-1)*w)/i.slidesPerView,i.roundLengths&&(C=Math.floor(C)),d[L]&&(e.isHorizontal()?d[L].style.width=C+"px":d[L].style.height=C+"px");d[L]&&(d[L].swiperSlideSize=C),m.push(C),i.centeredSlides?(x=x+C/2+S/2+w,0===S&&0!==L&&(x=x-r/2-w),0===L&&(x=x-r/2-w),Math.abs(x)<.001&&(x=0),i.roundLengths&&(x=Math.floor(x)),T%i.slidesPerGroup==0&&p.push(x),f.push(x)):(i.roundLengths&&(x=Math.floor(x)),T%i.slidesPerGroup==0&&p.push(x),f.push(x),x=x+C+w),e.virtualSize+=C+w,S=C,T+=1}}if(e.virtualSize=Math.max(e.virtualSize,r)+v,o&&s&&("slide"===i.effect||"coverflow"===i.effect)&&n.css({width:e.virtualSize+i.spaceBetween+"px"}),u.flexbox&&!i.setWrapperSize||(e.isHorizontal()?n.css({width:e.virtualSize+i.spaceBetween+"px"}):n.css({height:e.virtualSize+i.spaceBetween+"px"})),1<i.slidesPerColumn&&(e.virtualSize=(C+i.spaceBetween)*E,e.virtualSize=Math.ceil(e.virtualSize/i.slidesPerColumn)-i.spaceBetween,e.isHorizontal()?n.css({width:e.virtualSize+i.spaceBetween+"px"}):n.css({height:e.virtualSize+i.spaceBetween+"px"}),i.centeredSlides)){k=[];for(var N=0;N<p.length;N+=1){var R=p[N];i.roundLengths&&(R=Math.floor(R)),p[N]<e.virtualSize+p[0]&&k.push(R)}p=k}if(!i.centeredSlides){k=[];for(var F=0;F<p.length;F+=1){var H=p[F];i.roundLengths&&(H=Math.floor(H)),p[F]<=e.virtualSize-r&&k.push(H)}p=k,1<Math.floor(e.virtualSize-r)-Math.floor(p[p.length-1])&&p.push(e.virtualSize-r)}0===p.length&&(p=[0]),0!==i.spaceBetween&&(e.isHorizontal()?o?d.css({marginLeft:w+"px"}):d.css({marginRight:w+"px"}):d.css({marginBottom:w+"px"})),c.extend(e,{slides:d,snapGrid:p,slidesGrid:f,slidesSizesGrid:m}),h!==l&&e.emit("slidesLengthChange"),p.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),f.length!==b&&e.emit("slidesGridLengthChange"),(i.watchSlidesProgress||i.watchSlidesVisibility)&&e.updateSlidesOffset()}},updateAutoHeight:function(e){var t,i=this,n=[],r=0;if("number"==typeof e?i.setTransition(e):!0===e&&i.setTransition(i.params.speed),"auto"!==i.params.slidesPerView&&1<i.params.slidesPerView)for(t=0;t<Math.ceil(i.params.slidesPerView);t+=1){var o=i.activeIndex+t;if(o>i.slides.length)break;n.push(i.slides.eq(o)[0])}else n.push(i.slides.eq(i.activeIndex)[0]);for(t=0;t<n.length;t+=1)if(void 0!==n[t]){var s=n[t].offsetHeight;r=r<s?s:r}r&&i.$wrapperEl.css("height",r+"px")},updateSlidesOffset:function(){for(var e=this.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);var t=this,i=t.params,n=t.slides,r=t.rtlTranslate;if(0!==n.length){void 0===n[0].swiperSlideOffset&&t.updateSlidesOffset();var o=-e;r&&(o=e),n.removeClass(i.slideVisibleClass);for(var s=0;s<n.length;s+=1){var a=n[s],l=(o+(i.centeredSlides?t.minTranslate():0)-a.swiperSlideOffset)/(a.swiperSlideSize+i.spaceBetween);if(i.watchSlidesVisibility){var c=-(o-a.swiperSlideOffset),u=c+t.slidesSizesGrid[s];(0<=c&&c<t.size||0<u&&u<=t.size||c<=0&&u>=t.size)&&n.eq(s).addClass(i.slideVisibleClass)}a.progress=r?-l:l}}},updateProgress:function(e){void 0===e&&(e=this&&this.translate||0);var t=this,i=t.params,n=t.maxTranslate()-t.minTranslate(),r=t.progress,o=t.isBeginning,s=t.isEnd,a=o,l=s;0===n?s=o=!(r=0):(o=(r=(e-t.minTranslate())/n)<=0,s=1<=r),c.extend(t,{progress:r,isBeginning:o,isEnd:s}),(i.watchSlidesProgress||i.watchSlidesVisibility)&&t.updateSlidesProgress(e),o&&!a&&t.emit("reachBeginning toEdge"),s&&!l&&t.emit("reachEnd toEdge"),(a&&!o||l&&!s)&&t.emit("fromEdge"),t.emit("progress",r)},updateSlidesClasses:function(){var e,t=this,i=t.slides,n=t.params,r=t.$wrapperEl,o=t.activeIndex,s=t.realIndex,a=t.virtual&&n.virtual.enabled;i.removeClass(n.slideActiveClass+" "+n.slideNextClass+" "+n.slidePrevClass+" "+n.slideDuplicateActiveClass+" "+n.slideDuplicateNextClass+" "+n.slideDuplicatePrevClass),(e=a?t.$wrapperEl.find("."+n.slideClass+'[data-swiper-slide-index="'+o+'"]'):i.eq(o)).addClass(n.slideActiveClass),n.loop&&(e.hasClass(n.slideDuplicateClass)?r.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+s+'"]').addClass(n.slideDuplicateActiveClass):r.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+s+'"]').addClass(n.slideDuplicateActiveClass));var l=e.nextAll("."+n.slideClass).eq(0).addClass(n.slideNextClass);n.loop&&0===l.length&&(l=i.eq(0)).addClass(n.slideNextClass);var c=e.prevAll("."+n.slideClass).eq(0).addClass(n.slidePrevClass);n.loop&&0===c.length&&(c=i.eq(-1)).addClass(n.slidePrevClass),n.loop&&(l.hasClass(n.slideDuplicateClass)?r.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicateNextClass):r.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicateNextClass),c.hasClass(n.slideDuplicateClass)?r.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicatePrevClass):r.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicatePrevClass))},updateActiveIndex:function(e){var t,i=this,n=i.rtlTranslate?i.translate:-i.translate,r=i.slidesGrid,o=i.snapGrid,s=i.params,a=i.activeIndex,l=i.realIndex,u=i.snapIndex,d=e;if(void 0===d){for(var h=0;h<r.length;h+=1)void 0!==r[h+1]?n>=r[h]&&n<r[h+1]-(r[h+1]-r[h])/2?d=h:n>=r[h]&&n<r[h+1]&&(d=h+1):n>=r[h]&&(d=h);s.normalizeSlideIndex&&(d<0||void 0===d)&&(d=0)}if((t=0<=o.indexOf(n)?o.indexOf(n):Math.floor(d/s.slidesPerGroup))>=o.length&&(t=o.length-1),d!==a){var p=parseInt(i.slides.eq(d).attr("data-swiper-slide-index")||d,10);c.extend(i,{snapIndex:t,realIndex:p,previousIndex:a,activeIndex:d}),i.emit("activeIndexChange"),i.emit("snapIndexChange"),l!==p&&i.emit("realIndexChange"),i.emit("slideChange")}else t!==u&&(i.snapIndex=t,i.emit("snapIndexChange"))},updateClickedSlide:function(e){var t=this,i=t.params,r=n(e.target).closest("."+i.slideClass)[0],o=!1;if(r)for(var s=0;s<t.slides.length;s+=1)t.slides[s]===r&&(o=!0);if(!r||!o)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(n(r).attr("data-swiper-slide-index"),10):t.clickedIndex=n(r).index(),i.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}},f={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this.params,i=this.rtlTranslate,n=this.translate,r=this.$wrapperEl;if(t.virtualTranslate)return i?-n:n;var o=c.getTranslate(r[0],e);return i&&(o=-o),o||0},setTranslate:function(e,t){var i=this,n=i.rtlTranslate,r=i.params,o=i.$wrapperEl,s=i.progress,a=0,l=0;i.isHorizontal()?a=n?-e:e:l=e,r.roundLengths&&(a=Math.floor(a),l=Math.floor(l)),r.virtualTranslate||(u.transforms3d?o.transform("translate3d("+a+"px, "+l+"px, 0px)"):o.transform("translate("+a+"px, "+l+"px)")),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?a:l;var c=i.maxTranslate()-i.minTranslate();(0===c?0:(e-i.minTranslate())/c)!==s&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]}},m={slideTo:function(e,t,i,n){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var r=this,o=e;o<0&&(o=0);var s=r.params,a=r.snapGrid,l=r.slidesGrid,c=r.previousIndex,d=r.activeIndex,h=r.rtlTranslate;if(r.animating&&s.preventInteractionOnTransition)return!1;var p=Math.floor(o/s.slidesPerGroup);p>=a.length&&(p=a.length-1),(d||s.initialSlide||0)===(c||0)&&i&&r.emit("beforeSlideChangeStart");var f,m=-a[p];if(r.updateProgress(m),s.normalizeSlideIndex)for(var g=0;g<l.length;g+=1)-Math.floor(100*m)>=Math.floor(100*l[g])&&(o=g);if(r.initialized&&o!==d){if(!r.allowSlideNext&&m<r.translate&&m<r.minTranslate())return!1;if(!r.allowSlidePrev&&m>r.translate&&m>r.maxTranslate()&&(d||0)!==o)return!1}return f=d<o?"next":o<d?"prev":"reset",h&&-m===r.translate||!h&&m===r.translate?(r.updateActiveIndex(o),s.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==s.effect&&r.setTranslate(m),"reset"!==f&&(r.transitionStart(i,f),r.transitionEnd(i,f)),!1):(0!==t&&u.transition?(r.setTransition(t),r.setTranslate(m),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,n),r.transitionStart(i,f),r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,f))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd))):(r.setTransition(0),r.setTranslate(m),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,n),r.transitionStart(i,f),r.transitionEnd(i,f)),!0)},slideToLoop:function(e,t,i,n){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var r=e;return this.params.loop&&(r+=this.loopedSlides),this.slideTo(r,t,i,n)},slideNext:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var n=this,r=n.params,o=n.animating;return r.loop?!o&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,n.slideTo(n.activeIndex+r.slidesPerGroup,e,t,i)):n.slideTo(n.activeIndex+r.slidesPerGroup,e,t,i)},slidePrev:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var n=this,r=n.params,o=n.animating,s=n.snapGrid,a=n.slidesGrid,l=n.rtlTranslate;if(r.loop){if(o)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}function c(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var u,d=c(l?n.translate:-n.translate),h=s.map(function(e){return c(e)}),p=(a.map(function(e){return c(e)}),s[h.indexOf(d)],s[h.indexOf(d)-1]);return void 0!==p&&(u=a.indexOf(p))<0&&(u=n.activeIndex-1),n.slideTo(u,e,t,i)},slideReset:function(e,t,i){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var n=this,r=n.activeIndex,o=Math.floor(r/n.params.slidesPerGroup);if(o<n.snapGrid.length-1){var s=n.rtlTranslate?n.translate:-n.translate,a=n.snapGrid[o];(n.snapGrid[o+1]-a)/2<s-a&&(r=n.params.slidesPerGroup)}return n.slideTo(r,e,t,i)},slideToClickedSlide:function(){var e,t=this,i=t.params,r=t.$wrapperEl,o="auto"===i.slidesPerView?t.slidesPerViewDynamic():i.slidesPerView,s=t.clickedIndex;if(i.loop){if(t.animating)return;e=parseInt(n(t.clickedSlide).attr("data-swiper-slide-index"),10),i.centeredSlides?s<t.loopedSlides-o/2||s>t.slides.length-t.loopedSlides+o/2?(t.loopFix(),s=r.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),c.nextTick(function(){t.slideTo(s)})):t.slideTo(s):s>t.slides.length-o?(t.loopFix(),s=r.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),c.nextTick(function(){t.slideTo(s)})):t.slideTo(s)}else t.slideTo(s)}},g={loopCreate:function(){var t=this,i=t.params,r=t.$wrapperEl;r.children("."+i.slideClass+"."+i.slideDuplicateClass).remove();var o=r.children("."+i.slideClass);if(i.loopFillGroupWithBlank){var s=i.slidesPerGroup-o.length%i.slidesPerGroup;if(s!==i.slidesPerGroup){for(var a=0;a<s;a+=1){var l=n(e.createElement("div")).addClass(i.slideClass+" "+i.slideBlankClass);r.append(l)}o=r.children("."+i.slideClass)}}"auto"!==i.slidesPerView||i.loopedSlides||(i.loopedSlides=o.length),t.loopedSlides=parseInt(i.loopedSlides||i.slidesPerView,10),t.loopedSlides+=i.loopAdditionalSlides,t.loopedSlides>o.length&&(t.loopedSlides=o.length);var c=[],u=[];o.each(function(e,i){var r=n(i);e<t.loopedSlides&&u.push(i),e<o.length&&e>=o.length-t.loopedSlides&&c.push(i),r.attr("data-swiper-slide-index",e)});for(var d=0;d<u.length;d+=1)r.append(n(u[d].cloneNode(!0)).addClass(i.slideDuplicateClass));for(var h=c.length-1;0<=h;h-=1)r.prepend(n(c[h].cloneNode(!0)).addClass(i.slideDuplicateClass))},loopFix:function(){var e,t=this,i=t.params,n=t.activeIndex,r=t.slides,o=t.loopedSlides,s=t.allowSlidePrev,a=t.allowSlideNext,l=t.snapGrid,c=t.rtlTranslate;t.allowSlidePrev=!0,t.allowSlideNext=!0;var u=-l[n]-t.getTranslate();n<o?(e=r.length-3*o+n,e+=o,t.slideTo(e,0,!1,!0)&&0!==u&&t.setTranslate((c?-t.translate:t.translate)-u)):("auto"===i.slidesPerView&&2*o<=n||n>=r.length-o)&&(e=-r.length+n+o,e+=o,t.slideTo(e,0,!1,!0)&&0!==u&&t.setTranslate((c?-t.translate:t.translate)-u)),t.allowSlidePrev=s,t.allowSlideNext=a},loopDestroy:function(){var e=this.$wrapperEl,t=this.params,i=this.slides;e.children("."+t.slideClass+"."+t.slideDuplicateClass).remove(),i.removeAttr("data-swiper-slide-index")}},v={setGrabCursor:function(e){if(!(u.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked)){var t=this.el;t.style.cursor="move",t.style.cursor=e?"-webkit-grabbing":"-webkit-grab",t.style.cursor=e?"-moz-grabbin":"-moz-grab",t.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){u.touch||this.params.watchOverflow&&this.isLocked||(this.el.style.cursor="")}},y={appendSlide:function(e){var t=this,i=t.$wrapperEl,n=t.params;if(n.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(var r=0;r<e.length;r+=1)e[r]&&i.append(e[r]);else i.append(e);n.loop&&t.loopCreate(),n.observer&&u.observer||t.update()},prependSlide:function(e){var t=this,i=t.params,n=t.$wrapperEl,r=t.activeIndex;i.loop&&t.loopDestroy();var o=r+1;if("object"==typeof e&&"length"in e){for(var s=0;s<e.length;s+=1)e[s]&&n.prepend(e[s]);o=r+e.length}else n.prepend(e);i.loop&&t.loopCreate(),i.observer&&u.observer||t.update(),t.slideTo(o,0,!1)},addSlide:function(e,t){var i=this,n=i.$wrapperEl,r=i.params,o=i.activeIndex;r.loop&&(o-=i.loopedSlides,i.loopDestroy(),i.slides=n.children("."+r.slideClass));var s=i.slides.length;if(e<=0)i.prependSlide(t);else if(s<=e)i.appendSlide(t);else{for(var a=e<o?o+1:o,l=[],c=s-1;e<=c;c-=1){var d=i.slides.eq(c);d.remove(),l.unshift(d)}if("object"==typeof t&&"length"in t){for(var h=0;h<t.length;h+=1)t[h]&&n.append(t[h]);a=e<o?o+t.length:o}else n.append(t);for(var p=0;p<l.length;p+=1)n.append(l[p]);r.loop&&i.loopCreate(),r.observer&&u.observer||i.update(),r.loop?i.slideTo(a+i.loopedSlides,0,!1):i.slideTo(a,0,!1)}},removeSlide:function(e){var t=this,i=t.params,n=t.$wrapperEl,r=t.activeIndex;i.loop&&(r-=t.loopedSlides,t.loopDestroy(),t.slides=n.children("."+i.slideClass));var o,s=r;if("object"==typeof e&&"length"in e){for(var a=0;a<e.length;a+=1)o=e[a],t.slides[o]&&t.slides.eq(o).remove(),o<s&&(s-=1);s=Math.max(s,0)}else o=e,t.slides[o]&&t.slides.eq(o).remove(),o<s&&(s-=1),s=Math.max(s,0);i.loop&&t.loopCreate(),i.observer&&u.observer||t.update(),i.loop?t.slideTo(s+t.loopedSlides,0,!1):t.slideTo(s,0,!1)},removeAllSlides:function(){for(var e=[],t=0;t<this.slides.length;t+=1)e.push(t);this.removeSlide(e)}},b=function(){var i=t.navigator.userAgent,n={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:t.cordova||t.phonegap,phonegap:t.cordova||t.phonegap},r=i.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),o=i.match(/(Android);?[\s\/]+([\d.]+)?/),s=i.match(/(iPad).*OS\s([\d_]+)/),a=i.match(/(iPod)(.*OS\s([\d_]+))?/),l=!s&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(r&&(n.os="windows",n.osVersion=r[2],n.windows=!0),o&&!r&&(n.os="android",n.osVersion=o[2],n.android=!0,n.androidChrome=0<=i.toLowerCase().indexOf("chrome")),(s||l||a)&&(n.os="ios",n.ios=!0),l&&!a&&(n.osVersion=l[2].replace(/_/g,"."),n.iphone=!0),s&&(n.osVersion=s[2].replace(/_/g,"."),n.ipad=!0),a&&(n.osVersion=a[3]?a[3].replace(/_/g,"."):null,n.iphone=!0),n.ios&&n.osVersion&&0<=i.indexOf("Version/")&&"10"===n.osVersion.split(".")[0]&&(n.osVersion=i.toLowerCase().split("version/")[1].split(" ")[0]),n.desktop=!(n.os||n.android||n.webView),n.webView=(l||s||a)&&i.match(/.*AppleWebKit(?!.*Safari)/i),n.os&&"ios"===n.os){var c=n.osVersion.split("."),u=e.querySelector('meta[name="viewport"]');n.minimalUi=!n.webView&&(a||l)&&(1*c[0]==7?1<=1*c[1]:7<1*c[0])&&u&&0<=u.getAttribute("content").indexOf("minimal-ui")}return n.pixelRatio=t.devicePixelRatio||1,n}();function w(){var e=this,t=e.params,i=e.el;if(!i||0!==i.offsetWidth){t.breakpoints&&e.setBreakpoint();var n=e.allowSlideNext,r=e.allowSlidePrev,o=e.snapGrid;if(e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),t.freeMode){var s=Math.min(Math.max(e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(s),e.updateActiveIndex(),e.updateSlidesClasses(),t.autoHeight&&e.updateAutoHeight()}else e.updateSlidesClasses(),("auto"===t.slidesPerView||1<t.slidesPerView)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);e.allowSlidePrev=r,e.allowSlideNext=n,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}}var x,S={attachEvents:function(){var i=this,r=i.params,o=i.touchEvents,s=i.el,a=i.wrapperEl;i.onTouchStart=function(i){var r=this,o=r.touchEventsData,s=r.params,a=r.touches;if(!r.animating||!s.preventInteractionOnTransition){var l=i;if(l.originalEvent&&(l=l.originalEvent),o.isTouchEvent="touchstart"===l.type,(o.isTouchEvent||!("which"in l)||3!==l.which)&&(!o.isTouched||!o.isMoved))if(s.noSwiping&&n(l.target).closest(s.noSwipingSelector?s.noSwipingSelector:"."+s.noSwipingClass)[0])r.allowClick=!0;else if(!s.swipeHandler||n(l).closest(s.swipeHandler)[0]){a.currentX="touchstart"===l.type?l.targetTouches[0].pageX:l.pageX,a.currentY="touchstart"===l.type?l.targetTouches[0].pageY:l.pageY;var u=a.currentX,d=a.currentY,h=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,p=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(!h||!(u<=p||u>=t.screen.width-p)){if(c.extend(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=u,a.startY=d,o.touchStartTime=c.now(),r.allowClick=!0,r.updateSize(),r.swipeDirection=void 0,0<s.threshold&&(o.allowThresholdMove=!1),"touchstart"!==l.type){var f=!0;n(l.target).is(o.formElements)&&(f=!1),e.activeElement&&n(e.activeElement).is(o.formElements)&&e.activeElement!==l.target&&e.activeElement.blur(),f&&r.allowTouchMove&&l.preventDefault()}r.emit("touchStart",l)}}}}.bind(i),i.onTouchMove=function(t){var i=this,r=i.touchEventsData,o=i.params,s=i.touches,a=i.rtlTranslate,l=t;if(l.originalEvent&&(l=l.originalEvent),r.isTouched){if(!r.isTouchEvent||"mousemove"!==l.type){var u="touchmove"===l.type?l.targetTouches[0].pageX:l.pageX,d="touchmove"===l.type?l.targetTouches[0].pageY:l.pageY;if(l.preventedByNestedSwiper)return s.startX=u,void(s.startY=d);if(!i.allowTouchMove)return i.allowClick=!1,void(r.isTouched&&(c.extend(s,{startX:u,startY:d,currentX:u,currentY:d}),r.touchStartTime=c.now()));if(r.isTouchEvent&&o.touchReleaseOnEdges&&!o.loop)if(i.isVertical()){if(d<s.startY&&i.translate<=i.maxTranslate()||d>s.startY&&i.translate>=i.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(u<s.startX&&i.translate<=i.maxTranslate()||u>s.startX&&i.translate>=i.minTranslate())return;if(r.isTouchEvent&&e.activeElement&&l.target===e.activeElement&&n(l.target).is(r.formElements))return r.isMoved=!0,void(i.allowClick=!1);if(r.allowTouchCallbacks&&i.emit("touchMove",l),!(l.targetTouches&&1<l.targetTouches.length)){s.currentX=u,s.currentY=d;var h,p=s.currentX-s.startX,f=s.currentY-s.startY;if(!(i.params.threshold&&Math.sqrt(Math.pow(p,2)+Math.pow(f,2))<i.params.threshold))if(void 0===r.isScrolling&&(i.isHorizontal()&&s.currentY===s.startY||i.isVertical()&&s.currentX===s.startX?r.isScrolling=!1:25<=p*p+f*f&&(h=180*Math.atan2(Math.abs(f),Math.abs(p))/Math.PI,r.isScrolling=i.isHorizontal()?h>o.touchAngle:90-h>o.touchAngle)),r.isScrolling&&i.emit("touchMoveOpposite",l),void 0===r.startMoving&&(s.currentX===s.startX&&s.currentY===s.startY||(r.startMoving=!0)),r.isScrolling)r.isTouched=!1;else if(r.startMoving){i.allowClick=!1,l.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&l.stopPropagation(),r.isMoved||(o.loop&&i.loopFix(),r.startTranslate=i.getTranslate(),i.setTransition(0),i.animating&&i.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,!o.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",l)),i.emit("sliderMove",l),r.isMoved=!0;var m=i.isHorizontal()?p:f;s.diff=m,m*=o.touchRatio,a&&(m=-m),i.swipeDirection=0<m?"prev":"next",r.currentTranslate=m+r.startTranslate;var g=!0,v=o.resistanceRatio;if(o.touchReleaseOnEdges&&(v=0),0<m&&r.currentTranslate>i.minTranslate()?(g=!1,o.resistance&&(r.currentTranslate=i.minTranslate()-1+Math.pow(-i.minTranslate()+r.startTranslate+m,v))):m<0&&r.currentTranslate<i.maxTranslate()&&(g=!1,o.resistance&&(r.currentTranslate=i.maxTranslate()+1-Math.pow(i.maxTranslate()-r.startTranslate-m,v))),g&&(l.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),0<o.threshold){if(!(Math.abs(m)>o.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,r.currentTranslate=r.startTranslate,void(s.diff=i.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}o.followFinger&&((o.freeMode||o.watchSlidesProgress||o.watchSlidesVisibility)&&(i.updateActiveIndex(),i.updateSlidesClasses()),o.freeMode&&(0===r.velocities.length&&r.velocities.push({position:s[i.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:s[i.isHorizontal()?"currentX":"currentY"],time:c.now()})),i.updateProgress(r.currentTranslate),i.setTranslate(r.currentTranslate))}}}}else r.startMoving&&r.isScrolling&&i.emit("touchMoveOpposite",l)}.bind(i),i.onTouchEnd=function(e){var t=this,i=t.touchEventsData,n=t.params,r=t.touches,o=t.rtlTranslate,s=t.$wrapperEl,a=t.slidesGrid,l=t.snapGrid,u=e;if(u.originalEvent&&(u=u.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",u),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&n.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);n.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var d,h=c.now(),p=h-i.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(u),t.emit("tap",u),p<300&&300<h-i.lastClickTime&&(i.clickTimeout&&clearTimeout(i.clickTimeout),i.clickTimeout=c.nextTick(function(){t&&!t.destroyed&&t.emit("click",u)},300)),p<300&&h-i.lastClickTime<300&&(i.clickTimeout&&clearTimeout(i.clickTimeout),t.emit("doubleTap",u))),i.lastClickTime=c.now(),c.nextTick(function(){t.destroyed||(t.allowClick=!0)}),!i.isTouched||!i.isMoved||!t.swipeDirection||0===r.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,d=n.followFinger?o?t.translate:-t.translate:-i.currentTranslate,n.freeMode){if(d<-t.minTranslate())return void t.slideTo(t.activeIndex);if(d>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(n.freeModeMomentum){if(1<i.velocities.length){var f=i.velocities.pop(),m=i.velocities.pop(),g=f.position-m.position,v=f.time-m.time;t.velocity=g/v,t.velocity/=2,Math.abs(t.velocity)<n.freeModeMinimumVelocity&&(t.velocity=0),(150<v||300<c.now()-f.time)&&(t.velocity=0)}else t.velocity=0;t.velocity*=n.freeModeMomentumVelocityRatio,i.velocities.length=0;var y=1e3*n.freeModeMomentumRatio,b=t.velocity*y,w=t.translate+b;o&&(w=-w);var x,S,T=!1,E=20*Math.abs(t.velocity)*n.freeModeMomentumBounceRatio;if(w<t.maxTranslate())n.freeModeMomentumBounce?(w+t.maxTranslate()<-E&&(w=t.maxTranslate()-E),x=t.maxTranslate(),T=!0,i.allowMomentumBounce=!0):w=t.maxTranslate(),n.loop&&n.centeredSlides&&(S=!0);else if(w>t.minTranslate())n.freeModeMomentumBounce?(w-t.minTranslate()>E&&(w=t.minTranslate()+E),x=t.minTranslate(),T=!0,i.allowMomentumBounce=!0):w=t.minTranslate(),n.loop&&n.centeredSlides&&(S=!0);else if(n.freeModeSticky){for(var C,k=0;k<l.length;k+=1)if(l[k]>-w){C=k;break}w=-(w=Math.abs(l[C]-w)<Math.abs(l[C-1]-w)||"next"===t.swipeDirection?l[C]:l[C-1])}if(S&&t.once("transitionEnd",function(){t.loopFix()}),0!==t.velocity)y=o?Math.abs((-w-t.translate)/t.velocity):Math.abs((w-t.translate)/t.velocity);else if(n.freeModeSticky)return void t.slideToClosest();n.freeModeMomentumBounce&&T?(t.updateProgress(x),t.setTransition(y),t.setTranslate(w),t.transitionStart(!0,t.swipeDirection),t.animating=!0,s.transitionEnd(function(){t&&!t.destroyed&&i.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(n.speed),t.setTranslate(x),s.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()}))})):t.velocity?(t.updateProgress(w),t.setTransition(y),t.setTranslate(w),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,s.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()}))):t.updateProgress(w),t.updateActiveIndex(),t.updateSlidesClasses()}else if(n.freeModeSticky)return void t.slideToClosest();(!n.freeModeMomentum||p>=n.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var P=0,A=t.slidesSizesGrid[0],M=0;M<a.length;M+=n.slidesPerGroup)void 0!==a[M+n.slidesPerGroup]?d>=a[M]&&d<a[M+n.slidesPerGroup]&&(A=a[(P=M)+n.slidesPerGroup]-a[M]):d>=a[M]&&(P=M,A=a[a.length-1]-a[a.length-2]);var L=(d-a[P])/A;if(p>n.longSwipesMs){if(!n.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(L>=n.longSwipesRatio?t.slideTo(P+n.slidesPerGroup):t.slideTo(P)),"prev"===t.swipeDirection&&(L>1-n.longSwipesRatio?t.slideTo(P+n.slidesPerGroup):t.slideTo(P))}else{if(!n.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(P+n.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(P)}}}.bind(i),i.onClick=function(e){this.allowClick||(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}.bind(i);var l="container"===r.touchEventsTarget?s:a,d=!!r.nested;if(u.touch||!u.pointerEvents&&!u.prefixedPointerEvents){if(u.touch){var h=!("touchstart"!==o.start||!u.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};l.addEventListener(o.start,i.onTouchStart,h),l.addEventListener(o.move,i.onTouchMove,u.passiveListener?{passive:!1,capture:d}:d),l.addEventListener(o.end,i.onTouchEnd,h)}(r.simulateTouch&&!b.ios&&!b.android||r.simulateTouch&&!u.touch&&b.ios)&&(l.addEventListener("mousedown",i.onTouchStart,!1),e.addEventListener("mousemove",i.onTouchMove,d),e.addEventListener("mouseup",i.onTouchEnd,!1))}else l.addEventListener(o.start,i.onTouchStart,!1),e.addEventListener(o.move,i.onTouchMove,d),e.addEventListener(o.end,i.onTouchEnd,!1);(r.preventClicks||r.preventClicksPropagation)&&l.addEventListener("click",i.onClick,!0),i.on(b.ios||b.android?"resize orientationchange observerUpdate":"resize observerUpdate",w,!0)},detachEvents:function(){var t=this,i=t.params,n=t.touchEvents,r=t.el,o=t.wrapperEl,s="container"===i.touchEventsTarget?r:o,a=!!i.nested;if(u.touch||!u.pointerEvents&&!u.prefixedPointerEvents){if(u.touch){var l=!("onTouchStart"!==n.start||!u.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};s.removeEventListener(n.start,t.onTouchStart,l),s.removeEventListener(n.move,t.onTouchMove,a),s.removeEventListener(n.end,t.onTouchEnd,l)}(i.simulateTouch&&!b.ios&&!b.android||i.simulateTouch&&!u.touch&&b.ios)&&(s.removeEventListener("mousedown",t.onTouchStart,!1),e.removeEventListener("mousemove",t.onTouchMove,a),e.removeEventListener("mouseup",t.onTouchEnd,!1))}else s.removeEventListener(n.start,t.onTouchStart,!1),e.removeEventListener(n.move,t.onTouchMove,a),e.removeEventListener(n.end,t.onTouchEnd,!1);(i.preventClicks||i.preventClicksPropagation)&&s.removeEventListener("click",t.onClick,!0),t.off(b.ios||b.android?"resize orientationchange observerUpdate":"resize observerUpdate",w)}},T={setBreakpoint:function(){var e=this,t=e.activeIndex,i=e.initialized,n=e.loopedSlides;void 0===n&&(n=0);var r=e.params,o=r.breakpoints;if(o&&(!o||0!==Object.keys(o).length)){var s=e.getBreakpoint(o);if(s&&e.currentBreakpoint!==s){var a=s in o?o[s]:e.originalParams,l=r.loop&&a.slidesPerView!==r.slidesPerView;c.extend(e.params,a),c.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=s,l&&i&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-n+e.loopedSlides,0,!1)),e.emit("breakpoint",a)}}},getBreakpoint:function(e){if(e){var i=!1,n=[];Object.keys(e).forEach(function(e){n.push(e)}),n.sort(function(e,t){return parseInt(e,10)-parseInt(t,10)});for(var r=0;r<n.length;r+=1){var o=n[r];o>=t.innerWidth&&!i&&(i=o)}return i||"max"}}},E={isIE:!!t.navigator.userAgent.match(/Trident/g)||!!t.navigator.userAgent.match(/MSIE/g),isSafari:(x=t.navigator.userAgent.toLowerCase(),0<=x.indexOf("safari")&&x.indexOf("chrome")<0&&x.indexOf("android")<0),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)},C={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},k={update:p,translate:f,transition:{setTransition:function(e,t){this.$wrapperEl.transition(e),this.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);var i=this,n=i.activeIndex,r=i.params,o=i.previousIndex;r.autoHeight&&i.updateAutoHeight();var s=t;if(s||(s=o<n?"next":n<o?"prev":"reset"),i.emit("transitionStart"),e&&n!==o){if("reset"===s)return void i.emit("slideResetTransitionStart");i.emit("slideChangeTransitionStart"),"next"===s?i.emit("slideNextTransitionStart"):i.emit("slidePrevTransitionStart")}},transitionEnd:function(e,t){void 0===e&&(e=!0);var i=this,n=i.activeIndex,r=i.previousIndex;i.animating=!1,i.setTransition(0);var o=t;if(o||(o=r<n?"next":n<r?"prev":"reset"),i.emit("transitionEnd"),e&&n!==r){if("reset"===o)return void i.emit("slideResetTransitionEnd");i.emit("slideChangeTransitionEnd"),"next"===o?i.emit("slideNextTransitionEnd"):i.emit("slidePrevTransitionEnd")}}},slide:m,loop:g,grabCursor:v,manipulation:y,events:S,breakpoints:T,checkOverflow:{checkOverflow:function(){var e=this,t=e.isLocked;e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),t&&t!==e.isLocked&&(e.isEnd=!1,e.navigation.update())}},classes:{addClasses:function(){var e=this.classNames,t=this.params,i=this.rtl,n=this.$el,r=[];r.push(t.direction),t.freeMode&&r.push("free-mode"),u.flexbox||r.push("no-flexbox"),t.autoHeight&&r.push("autoheight"),i&&r.push("rtl"),1<t.slidesPerColumn&&r.push("multirow"),b.android&&r.push("android"),b.ios&&r.push("ios"),E.isIE&&(u.pointerEvents||u.prefixedPointerEvents)&&r.push("wp8-"+t.direction),r.forEach(function(i){e.push(t.containerModifierClass+i)}),n.addClass(e.join(" "))},removeClasses:function(){var e=this.$el,t=this.classNames;e.removeClass(t.join(" "))}},images:{loadImage:function(e,i,n,r,o,s){var a;function l(){s&&s()}e.complete&&o?l():i?((a=new t.Image).onload=l,a.onerror=l,r&&(a.sizes=r),n&&(a.srcset=n),i&&(a.src=i)):l()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(
1),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var i=0;i<e.imagesToLoad.length;i+=1){var n=e.imagesToLoad[i];e.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,t)}}}},P={},A=function(e){function t(){for(var i,r,o,s=[],a=arguments.length;a--;)s[a]=arguments[a];1===s.length&&s[0].constructor&&s[0].constructor===Object?o=s[0]:(r=(i=s)[0],o=i[1]),o||(o={}),o=c.extend({},o),r&&!o.el&&(o.el=r),e.call(this,o),Object.keys(k).forEach(function(e){Object.keys(k[e]).forEach(function(i){t.prototype[i]||(t.prototype[i]=k[e][i])})});var l=this;void 0===l.modules&&(l.modules={}),Object.keys(l.modules).forEach(function(e){var t=l.modules[e];if(t.params){var i=Object.keys(t.params)[0],n=t.params[i];if("object"!=typeof n)return;if(!(i in o&&"enabled"in n))return;!0===o[i]&&(o[i]={enabled:!0}),"object"!=typeof o[i]||"enabled"in o[i]||(o[i].enabled=!0),o[i]||(o[i]={enabled:!1})}});var d=c.extend({},C);l.useModulesParams(d),l.params=c.extend({},d,P,o),l.originalParams=c.extend({},l.params),l.passedParams=c.extend({},o);var h=(l.$=n)(l.params.el);
vendor: 15,319 bytes, line 1
1if(r=h[0]){if(1<h.length){var p=[];return h.each(function(e,i){var n=c.extend({},o,{el:i});p.push(new t(n))}),p}r.swiper=l,h.data("swiper",l);var f,m,g=h.children("."+l.params.wrapperClass);return c.extend(l,{$el:h,el:r,$wrapperEl:g,wrapperEl:g[0],classNames:[],slides:n(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===l.params.direction},isVertical:function(){return"vertical"===l.params.direction},rtl:"rtl"===r.dir.toLowerCase()||"rtl"===h.css("direction"),rtlTranslate:"horizontal"===l.params.direction&&("rtl"===r.dir.toLowerCase()||"rtl"===h.css("direction")),wrongRTL:"-webkit-box"===g.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEvents:(f=["touchstart","touchmove","touchend"],m=["mousedown","mousemove","mouseup"],u.pointerEvents?m=["pointerdown","pointermove","pointerup"]:u.prefixedPointerEvents&&(m=["MSPointerDown","MSPointerMove","MSPointerUp"]),l.touchEventsTouch={start:f[0],move:f[1],end:f[2]},l.touchEventsDesktop={start:m[0],move:m[1],end:m[2]},u.touch||!l.params.simulateTouch?l.touchEventsTouch:l.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:c.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.useModules(),l.params.init&&l.init(),l}}e&&(t.__proto__=e);var i={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.slidesPerViewDynamic=function(){var e=this,t=e.params,i=e.slides,n=e.slidesGrid,r=e.size,o=e.activeIndex,s=1;if(t.centeredSlides){for(var a,l=i[o].swiperSlideSize,c=o+1;c<i.length;c+=1)i[c]&&!a&&(s+=1,r<(l+=i[c].swiperSlideSize)&&(a=!0));for(var u=o-1;0<=u;u-=1)i[u]&&!a&&(s+=1,r<(l+=i[u].swiperSlideSize)&&(a=!0))}else for(var d=o+1;d<i.length;d+=1)n[d]-n[o]<r&&(s+=1);return s},t.prototype.update=function(){var e=this;if(e&&!e.destroyed){var t=e.snapGrid,i=e.params;i.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(n(),e.params.autoHeight&&e.updateAutoHeight()):(("auto"===e.params.slidesPerView||1<e.params.slidesPerView)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||n(),i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function n(){var t=e.rtlTranslate?-1*e.translate:e.translate,i=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(i),e.updateActiveIndex(),e.updateSlidesClasses()}},t.prototype.init=function(){var e=this;e.initialized||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit),e.attachEvents(),e.initialized=!0,e.emit("init"))},t.prototype.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var i=this,n=i.params,r=i.$el,o=i.$wrapperEl,s=i.slides;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),n.loop&&i.loopDestroy(),t&&(i.removeClasses(),r.removeAttr("style"),o.removeAttr("style"),s&&s.length&&s.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(function(e){i.off(e)}),!1!==e&&(i.$el[0].swiper=null,i.$el.data("swiper",null),c.deleteProps(i)),i.destroyed=!0),null},t.extendDefaults=function(e){c.extend(P,e)},i.extendedDefaults.get=function(){return P},i.defaults.get=function(){return C},i.Class.get=function(){return e},i.$.get=function(){return n},Object.defineProperties(t,i),t}(d),M={name:"device",proto:{device:b},static:{device:b}},L={name:"support",proto:{support:u},static:{support:u}},I={name:"browser",proto:{browser:E},static:{browser:E}},z={name:"resize",create:function(){var e=this;c.extend(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){t.addEventListener("resize",this.resize.resizeHandler),t.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy:function(){t.removeEventListener("resize",this.resize.resizeHandler),t.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}},D={func:t.MutationObserver||t.WebkitMutationObserver,attach:function(e,i){void 0===i&&(i={});var n=this,r=new D.func(function(e){if(1!==e.length){var i=function(){n.emit("observerUpdate",e[0])};t.requestAnimationFrame?t.requestAnimationFrame(i):t.setTimeout(i,0)}else n.emit("observerUpdate",e[0])});r.observe(e,{attributes:void 0===i.attributes||i.attributes,childList:void 0===i.childList||i.childList,characterData:void 0===i.characterData||i.characterData}),n.observer.observers.push(r)},init:function(){var e=this;if(u.observer&&e.params.observer){if(e.params.observeParents)for(var t=e.$el.parents(),i=0;i<t.length;i+=1)e.observer.attach(t[i]);e.observer.attach(e.$el[0],{childList:!1}),e.observer.attach(e.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach(function(e){e.disconnect()}),this.observer.observers=[]}},O={name:"observer",params:{observer:!1,observeParents:!1},create:function(){c.extend(this,{observer:{init:D.init.bind(this),attach:D.attach.bind(this),destroy:D.destroy.bind(this),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},$={update:function(e){var t=this,i=t.params,n=i.slidesPerView,r=i.slidesPerGroup,o=i.centeredSlides,s=t.virtual,a=s.from,l=s.to,u=s.slides,d=s.slidesGrid,h=s.renderSlide,p=s.offset;t.updateActiveIndex();var f,m,g,v=t.activeIndex||0;f=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",o?(m=Math.floor(n/2)+r,g=Math.floor(n/2)+r):(m=n+(r-1),g=r);var y=Math.max((v||0)-g,0),b=Math.min((v||0)+m,u.length-1),w=(t.slidesGrid[y]||0)-(t.slidesGrid[0]||0);function x(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(c.extend(t.virtual,{from:y,to:b,offset:w,slidesGrid:t.slidesGrid}),a===y&&l===b&&!e)return t.slidesGrid!==d&&w!==p&&t.slides.css(f,w+"px"),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:w,from:y,to:b,slides:function(){for(var e=[],t=y;t<=b;t+=1)e.push(u[t]);return e}()}),void x();var S=[],T=[];if(e)t.$wrapperEl.find("."+t.params.slideClass).remove();else for(var E=a;E<=l;E+=1)(E<y||b<E)&&t.$wrapperEl.find("."+t.params.slideClass+'[data-swiper-slide-index="'+E+'"]').remove();for(var C=0;C<u.length;C+=1)y<=C&&C<=b&&(void 0===l||e?T.push(C):(l<C&&T.push(C),C<a&&S.push(C)));T.forEach(function(e){t.$wrapperEl.append(h(u[e],e))}),S.sort(function(e,t){return e<t}).forEach(function(e){t.$wrapperEl.prepend(h(u[e],e))}),t.$wrapperEl.children(".swiper-slide").css(f,w+"px"),x()},renderSlide:function(e,t){var i=this,r=i.params.virtual;if(r.cache&&i.virtual.cache[t])return i.virtual.cache[t];var o=r.renderSlide?n(r.renderSlide.call(i,e,t)):n('<div class="'+i.params.slideClass+'" data-swiper-slide-index="'+t+'">'+e+"</div>");return o.attr("data-swiper-slide-index")||o.attr("data-swiper-slide-index",t),r.cache&&(i.virtual.cache[t]=o),o},appendSlide:function(e){this.virtual.slides.push(e),this.virtual.update(!0)},prependSlide:function(e){var t=this;if(t.virtual.slides.unshift(e),t.params.virtual.cache){var i=t.virtual.cache,n={};Object.keys(i).forEach(function(e){n[e+1]=i[e]}),t.virtual.cache=n}t.virtual.update(!0),t.slideNext(0)}},_={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null}},create:function(){var e=this;c.extend(e,{virtual:{update:$.update.bind(e),appendSlide:$.appendSlide.bind(e),prependSlide:$.prependSlide.bind(e),renderSlide:$.renderSlide.bind(e),slides:e.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){var e=this;if(e.params.virtual.enabled){e.classNames.push(e.params.containerModifierClass+"virtual");var t={watchSlidesProgress:!0};c.extend(e.params,t),c.extend(e.originalParams,t),e.virtual.update()}},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},j={handle:function(i){var n=this,r=n.rtlTranslate,o=i;o.originalEvent&&(o=o.originalEvent);var s=o.keyCode||o.charCode;if(!n.allowSlideNext&&(n.isHorizontal()&&39===s||n.isVertical()&&40===s))return!1;if(!n.allowSlidePrev&&(n.isHorizontal()&&37===s||n.isVertical()&&38===s))return!1;if(!(o.shiftKey||o.altKey||o.ctrlKey||o.metaKey||e.activeElement&&e.activeElement.nodeName&&("input"===e.activeElement.nodeName.toLowerCase()||"textarea"===e.activeElement.nodeName.toLowerCase()))){if(n.params.keyboard.onlyInViewport&&(37===s||39===s||38===s||40===s)){var a=!1;if(0<n.$el.parents("."+n.params.slideClass).length&&0===n.$el.parents("."+n.params.slideActiveClass).length)return;var l=t.innerWidth,c=t.innerHeight,u=n.$el.offset();r&&(u.left-=n.$el[0].scrollLeft);for(var d=[[u.left,u.top],[u.left+n.width,u.top],[u.left,u.top+n.height],[u.left+n.width,u.top+n.height]],h=0;h<d.length;h+=1){var p=d[h];0<=p[0]&&p[0]<=l&&0<=p[1]&&p[1]<=c&&(a=!0)}if(!a)return}n.isHorizontal()?(37!==s&&39!==s||(o.preventDefault?o.preventDefault():o.returnValue=!1),(39===s&&!r||37===s&&r)&&n.slideNext(),(37===s&&!r||39===s&&r)&&n.slidePrev()):(38!==s&&40!==s||(o.preventDefault?o.preventDefault():o.returnValue=!1),40===s&&n.slideNext(),38===s&&n.slidePrev()),n.emit("keyPress",s)}},enable:function(){this.keyboard.enabled||(n(e).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){this.keyboard.enabled&&(n(e).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},N={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){c.extend(this,{keyboard:{enabled:!1,enable:j.enable.bind(this),disable:j.disable.bind(this),handle:j.handle.bind(this)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}},R={lastScrollTime:c.now(),event:-1<t.navigator.userAgent.indexOf("firefox")?"DOMMouseScroll":function(){var t="onwheel",i=t in e;if(!i){var n=e.createElement("div");n.setAttribute(t,"return;"),i="function"==typeof n[t]}return!i&&e.implementation&&e.implementation.hasFeature&&!0!==e.implementation.hasFeature("","")&&(i=e.implementation.hasFeature("Events.wheel","3.0")),i}()?"wheel":"mousewheel",normalize:function(e){var t=0,i=0,n=0,r=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),n=10*t,r=10*i,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||r)&&e.deltaMode&&(1===e.deltaMode?(n*=40,r*=40):(n*=800,r*=800)),n&&!t&&(t=n<1?-1:1),r&&!i&&(i=r<1?-1:1),{spinX:t,spinY:i,pixelX:n,pixelY:r}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var i=e,n=this,r=n.params.mousewheel;if(!n.mouseEntered&&!r.releaseOnEdges)return!0;i.originalEvent&&(i=i.originalEvent);var o=0,s=n.rtlTranslate?-1:1,a=R.normalize(i);if(r.forceToAxis)if(n.isHorizontal()){if(!(Math.abs(a.pixelX)>Math.abs(a.pixelY)))return!0;o=a.pixelX*s}else{if(!(Math.abs(a.pixelY)>Math.abs(a.pixelX)))return!0;o=a.pixelY}else o=Math.abs(a.pixelX)>Math.abs(a.pixelY)?-a.pixelX*s:-a.pixelY;if(0===o)return!0;if(r.invert&&(o=-o),n.params.freeMode){n.params.loop&&n.loopFix();var l=n.getTranslate()+o*r.sensitivity,u=n.isBeginning,d=n.isEnd;if(l>=n.minTranslate()&&(l=n.minTranslate()),l<=n.maxTranslate()&&(l=n.maxTranslate()),n.setTransition(0),n.setTranslate(l),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!u&&n.isBeginning||!d&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeModeSticky&&(clearTimeout(n.mousewheel.timeout),n.mousewheel.timeout=c.nextTick(function(){n.slideToClosest()},300)),n.emit("scroll",i),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),l===n.minTranslate()||l===n.maxTranslate())return!0}else{if(60<c.now()-n.mousewheel.lastScrollTime)if(o<0)if(n.isEnd&&!n.params.loop||n.animating){if(r.releaseOnEdges)return!0}else n.slideNext(),n.emit("scroll",i);else if(n.isBeginning&&!n.params.loop||n.animating){if(r.releaseOnEdges)return!0}else n.slidePrev(),n.emit("scroll",i);n.mousewheel.lastScrollTime=(new t.Date).getTime()}return i.preventDefault?i.preventDefault():i.returnValue=!1,!1},enable:function(){var e=this;if(!R.event)return!1;if(e.mousewheel.enabled)return!1;var t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=n(e.params.mousewheel.eventsTarged)),t.on("mouseenter",e.mousewheel.handleMouseEnter),t.on("mouseleave",e.mousewheel.handleMouseLeave),t.on(R.event,e.mousewheel.handle),e.mousewheel.enabled=!0},disable:function(){var e=this;if(!R.event)return!1;if(!e.mousewheel.enabled)return!1;var t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=n(e.params.mousewheel.eventsTarged)),t.off(R.event,e.mousewheel.handle),!(e.mousewheel.enabled=!1)}},F={update:function(){var e=this,t=e.params.navigation;if(!e.params.loop){var i=e.navigation,n=i.$nextEl,r=i.$prevEl;r&&0<r.length&&(e.isBeginning?r.addClass(t.disabledClass):r.removeClass(t.disabledClass),r[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass)),n&&0<n.length&&(e.isEnd?n.addClass(t.disabledClass):n.removeClass(t.disabledClass),n[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass))}},init:function(){var e,t,i=this,r=i.params.navigation;(r.nextEl||r.prevEl)&&(r.nextEl&&(e=n(r.nextEl),i.params.uniqueNavElements&&"string"==typeof r.nextEl&&1<e.length&&1===i.$el.find(r.nextEl).length&&(e=i.$el.find(r.nextEl))),r.prevEl&&(t=n(r.prevEl),i.params.uniqueNavElements&&"string"==typeof r.prevEl&&1<t.length&&1===i.$el.find(r.prevEl).length&&(t=i.$el.find(r.prevEl))),e&&0<e.length&&e.on("click",function(e){e.preventDefault(),i.isEnd&&!i.params.loop||i.slideNext()}),t&&0<t.length&&t.on("click",function(e){e.preventDefault(),i.isBeginning&&!i.params.loop||i.slidePrev()}),c.extend(i.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this.navigation,t=e.$nextEl,i=e.$prevEl;t&&t.length&&(t.off("click"),t.removeClass(this.params.navigation.disabledClass)),i&&i.length&&(i.off("
1click"),i.removeClass(this.params.navigation.disabledClass))}},H={update:function(){var e=this,t=e.rtl,i=e.params.pagination;if(i.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var r,o=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,s=e.pagination.$el,a=e.params.loop?Math.ceil((o-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?((r=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup))>o-1-2*e.loopedSlides&&(r-=o-2*e.loopedSlides),a-1<r&&(r-=a),r<0&&"bullets"!==e.params.paginationType&&(r=a+r)):r=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===i.type&&e.pagination.bullets&&0<e.pagination.bullets.length){var l,c,u,d=e.pagination.bullets;if(i.dynamicBullets&&(e.pagination.bulletSize=d.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),s.css(e.isHorizontal()?"width":"height",e.pagination.bulletSize*(i.dynamicMainBullets+4)+"px"),1<i.dynamicMainBullets&&void 0!==e.previousIndex&&(e.pagination.dynamicBulletIndex+=r-e.previousIndex,e.pagination.dynamicBulletIndex>i.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=i.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),l=r-e.pagination.dynamicBulletIndex,u=((c=l+(Math.min(d.length,i.dynamicMainBullets)-1))+l)/2),d.removeClass(i.bulletActiveClass+" "+i.bulletActiveClass+"-next "+i.bulletActiveClass+"-next-next "+i.bulletActiveClass+"-prev "+i.bulletActiveClass+"-prev-prev "+i.bulletActiveClass+"-main"),1<s.length)d.each(function(e,t){var o=n(t),s=o.index();s===r&&o.addClass(i.bulletActiveClass),i.dynamicBullets&&(l<=s&&s<=c&&o.addClass(i.bulletActiveClass+"-main"),s===l&&o.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),s===c&&o.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next"))});else if(d.eq(r).addClass(i.bulletActiveClass),i.dynamicBullets){for(var h=d.eq(l),p=d.eq(c),f=l;f<=c;f+=1)d.eq(f).addClass(i.bulletActiveClass+"-main");h.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),p.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next")}if(i.dynamicBullets){var m=Math.min(d.length,i.dynamicMainBullets+4),g=(e.pagination.bulletSize*m-e.pagination.bulletSize)/2-u*e.pagination.bulletSize,v=t?"right":"left";d.css(e.isHorizontal()?v:"top",g+"px")}}if("fraction"===i.type&&(s.find("."+i.currentClass).text(i.formatFractionCurrent(r+1)),s.find("."+i.totalClass).text(i.formatFractionTotal(a))),"progressbar"===i.type){var y;y=i.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";var b=(r+1)/a,w=1,x=1;"horizontal"===y?w=b:x=b,s.find("."+i.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+w+") scaleY("+x+")").transition(e.params.speed)}"custom"===i.type&&i.renderCustom?(s.html(i.renderCustom(e,r+1,a)),e.emit("paginationRender",e,s[0])):e.emit("paginationUpdate",e,s[0]),s[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](i.lockClass)}},render:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,n=e.pagination.$el,r="";if("bullets"===t.type){for(var o=e.params.loop?Math.ceil((i-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length,s=0;s<o;s+=1)t.renderBullet?r+=t.renderBullet.call(e,s,t.bulletClass):r+="<"+t.bulletElement+' class="'+t.bulletClass+'"></'+t.bulletElement+">";n.html(r),e.pagination.bullets=n.find("."+t.bulletClass)}"fraction"===t.type&&(r=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):'<span class="'+t.currentClass+'"></span> / <span class="'+t.totalClass+'"></span>',n.html(r)),"progressbar"===t.type&&(r=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):'<span class="'+t.progressbarFillClass+'"></span>',n.html(r)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var i=n(t.el);0!==i.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&1<i.length&&1===e.$el.find(t.el).length&&(i=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&i.addClass(t.clickableClass),i.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(i.addClass(""+t.modifierClass+t.type+"-dynamic"),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&i.addClass(t.progressbarOppositeClass),t.clickable&&i.on("click","."+t.bulletClass,function(t){t.preventDefault();var i=n(this).index()*e.params.slidesPerGroup;e.params.loop&&(i+=e.loopedSlides),e.slideTo(i)}),c.extend(e.pagination,{$el:i,el:i[0]}))}},destroy:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var i=e.pagination.$el;i.removeClass(t.hiddenClass),i.removeClass(t.modifierClass+t.type),e.pagination.bullets&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&i.off("click","."+t.bulletClass)}}},q={setTranslate:function(){var e=this;
vendor: 12,202 bytes, line 1
1if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,i=e.rtlTranslate,n=e.progress,r=t.dragSize,o=t.trackSize,s=t.$dragEl,a=t.$el,l=e.params.scrollbar,c=r,d=(o-r)*n;i?0<(d=-d)?(c=r-d,d=0):o<-d+r&&(c=o+d):d<0?(c=r+d,d=0):o<d+r&&(c=o-d),e.isHorizontal()?(u.transforms3d?s.transform("translate3d("+d+"px, 0, 0)"):s.transform("translateX("+d+"px)"),s[0].style.width=c+"px"):(u.transforms3d?s.transform("translate3d(0px, "+d+"px, 0)"):s.transform("translateY("+d+"px)"),s[0].style.height=c+"px"),l.hide&&(clearTimeout(e.scrollbar.timeout),a[0].style.opacity=1,e.scrollbar.timeout=setTimeout(function(){a[0].style.opacity=0,a.transition(400)},1e3))}},setTransition:function(e){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(e)},updateSize:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,i=t.$dragEl,n=t.$el;i[0].style.width="",i[0].style.height="";var r,o=e.isHorizontal()?n[0].offsetWidth:n[0].offsetHeight,s=e.size/e.virtualSize,a=s*(o/e.size);r="auto"===e.params.scrollbar.dragSize?o*s:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?i[0].style.width=r+"px":i[0].style.height=r+"px",n[0].style.display=1<=s?"none":"",e.params.scrollbarHide&&(n[0].style.opacity=0),c.extend(t,{trackSize:o,divider:s,moveDivider:a,dragSize:r}),t.$el[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)}},setDragPosition:function(e){var t,i=this,n=i.scrollbar,r=i.rtlTranslate,o=n.$el,s=n.dragSize,a=n.trackSize;t=((i.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY)-o.offset()[i.isHorizontal()?"left":"top"]-s/2)/(a-s),t=Math.max(Math.min(t,1),0),r&&(t=1-t);var l=i.minTranslate()+(i.maxTranslate()-i.minTranslate())*t;i.updateProgress(l),i.setTranslate(l),i.updateActiveIndex(),i.updateSlidesClasses()},onDragStart:function(e){var t=this,i=t.params.scrollbar,n=t.scrollbar,r=t.$wrapperEl,o=n.$el,s=n.$dragEl;t.scrollbar.isTouched=!0,e.preventDefault(),e.stopPropagation(),r.transition(100),s.transition(100),n.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),o.transition(0),i.hide&&o.css("opacity",1),t.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this.scrollbar,i=this.$wrapperEl,n=t.$el,r=t.$dragEl;this.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),i.transition(0),n.transition(0),r.transition(0),this.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this,i=t.params.scrollbar,n=t.scrollbar.$el;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,i.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=c.nextTick(function(){n.css("opacity",0),n.transition(400)},1e3)),t.emit("scrollbarDragEnd",e),i.snapOnRelease&&t.slideToClosest())},enableDraggable:function(){var t=this;if(t.params.scrollbar.el){var i=t.scrollbar,n=t.touchEvents,r=t.touchEventsDesktop,o=t.params,s=i.$el[0],a=!(!u.passiveListener||!o.passiveListeners)&&{passive:!1,capture:!1},l=!(!u.passiveListener||!o.passiveListeners)&&{passive:!0,capture:!1};u.touch||!u.pointerEvents&&!u.prefixedPointerEvents?(u.touch&&(s.addEventListener(n.start,t.scrollbar.onDragStart,a),s.addEventListener(n.move,t.scrollbar.onDragMove,a),s.addEventListener(n.end,t.scrollbar.onDragEnd,l)),(o.simulateTouch&&!b.ios&&!b.android||o.simulateTouch&&!u.touch&&b.ios)&&(s.addEventListener("mousedown",t.scrollbar.onDragStart,a),e.addEventListener("mousemove",t.scrollbar.onDragMove,a),e.addEventListener("mouseup",t.scrollbar.onDragEnd,l))):(s.addEventListener(r.start,t.scrollbar.onDragStart,a),e.addEventListener(r.move,t.scrollbar.onDragMove,a),e.addEventListener(r.end,t.scrollbar.onDragEnd,l))}},disableDraggable:function(){var t=this;if(t.params.scrollbar.el){var i=t.scrollbar,n=t.touchEvents,r=t.touchEventsDesktop,o=t.params,s=i.$el[0],a=!(!u.passiveListener||!o.passiveListeners)&&{passive:!1,capture:!1},l=!(!u.passiveListener||!o.passiveListeners)&&{passive:!0,capture:!1};u.touch||!u.pointerEvents&&!u.prefixedPointerEvents?(u.touch&&(s.removeEventListener(n.start,t.scrollbar.onDragStart,a),s.removeEventListener(n.move,t.scrollbar.onDragMove,a),s.removeEventListener(n.end,t.scrollbar.onDragEnd,l)),(o.simulateTouch&&!b.ios&&!b.android||o.simulateTouch&&!u.touch&&b.ios)&&(s.removeEventListener("mousedown",t.scrollbar.onDragStart,a),e.removeEventListener("mousemove",t.scrollbar.onDragMove,a),e.removeEventListener("mouseup",t.scrollbar.onDragEnd,l))):(s.removeEventListener(r.start,t.scrollbar.onDragStart,a),e.removeEventListener(r.move,t.scrollbar.onDragMove,a),e.removeEventListener(r.end,t.scrollbar.onDragEnd,l))}},init:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,i=e.$el,r=e.params.scrollbar,o=n(r.el);e.params.uniqueNavElements&&"string"==typeof r.el&&1<o.length&&1===i.find(r.el).length&&(o=i.find(r.el));var s=o.find("."+e.params.scrollbar.dragClass);0===s.length&&(s=n('<div class="'+e.params.scrollbar.dragClass+'"></div>'),o.append(s)),c.extend(t,{$el:o,el:o[0],$dragEl:s,dragEl:s[0]}),r.draggable&&t.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},B={setTransform:function(e,t){var i=this.rtl,r=n(e),o=i?-1:1,s=r.attr("data-swiper-parallax")||"0",a=r.attr("data-swiper-parallax-x"),l=r.attr("data-swiper-parallax-y"),c=r.attr("data-swiper-parallax-scale"),u=r.attr("data-swiper-parallax-opacity");if(a||l?(a=a||"0",l=l||"0"):this.isHorizontal()?(a=s,l="0"):(l=s,a="0"),a=0<=a.indexOf("%")?parseInt(a,10)*t*o+"%":a*t*o+"px",l=0<=l.indexOf("%")?parseInt(l,10)*t+"%":l*t+"px",null!=u){var d=u-(u-1)*(1-Math.abs(t));r[0].style.opacity=d}if(null==c)r.transform("translate3d("+a+", "+l+", 0px)");else{var h=c-(c-1)*(1-Math.abs(t));r.transform("translate3d("+a+", "+l+", 0px) scale("+h+")")}},setTranslate:function(){var e=this,t=e.$el,i=e.slides,r=e.progress,o=e.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(t,i){e.parallax.setTransform(i,r)}),i.each(function(t,i){var s=i.progress;1<e.params.slidesPerGroup&&"auto"!==e.params.slidesPerView&&(s+=Math.ceil(t/2)-r*(o.length-1)),s=Math.min(Math.max(s,-1),1),n(i).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(t,i){e.parallax.setTransform(i,s)})})},setTransition:function(e){void 0===e&&(e=this.params.speed),this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(t,i){var r=n(i),o=parseInt(r.attr("data-swiper-parallax-duration"),10)||e;0===e&&(o=0),r.transition(o)})}},U={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,i=e.targetTouches[0].pageY,n=e.targetTouches[1].pageX,r=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(n-t,2)+Math.pow(r-i,2))},onGestureStart:function(e){var t=this,i=t.params.zoom,r=t.zoom,o=r.gesture;if(r.fakeGestureTouched=!1,r.fakeGestureMoved=!1,!u.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;r.fakeGestureTouched=!0,o.scaleStart=U.getDistanceBetweenTouches(e)}o.$slideEl&&o.$slideEl.length||(o.$slideEl=n(e.target).closest(".swiper-slide"),0===o.$slideEl.length&&(o.$slideEl=t.slides.eq(t.activeIndex)),o.$imageEl=o.$slideEl.find("img, svg, canvas"),o.$imageWrapEl=o.$imageEl.parent("."+i.containerClass),o.maxRatio=o.$imageWrapEl.attr("data-swiper-zoom")||i.maxRatio,0!==o.$imageWrapEl.length)?(o.$imageEl.transition(0),t.zoom.isScaling=!0):o.$imageEl=void 0},onGestureChange:function(e){var t=this.params.zoom,i=this.zoom,n=i.gesture;if(!u.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;i.fakeGestureMoved=!0,n.scaleMove=U.getDistanceBetweenTouches(e)}n.$imageEl&&0!==n.$imageEl.length&&(u.gestures?this.zoom.scale=e.scale*i.currentScale:i.scale=n.scaleMove/n.scaleStart*i.currentScale,i.scale>n.maxRatio&&(i.scale=n.maxRatio-1+Math.pow(i.scale-n.maxRatio+1,.5)),i.scale<t.minRatio&&(i.scale=t.minRatio+1-Math.pow(t.minRatio-i.scale+1,.5)),n.$imageEl.transform("translate3d(0,0,0) scale("+i.scale+")"))},onGestureEnd:function(e){var t=this.params.zoom,i=this.zoom,n=i.gesture;if(!u.gestures){if(!i.fakeGestureTouched||!i.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!b.android)return;i.fakeGestureTouched=!1,i.fakeGestureMoved=!1}n.$imageEl&&0!==n.$imageEl.length&&(i.scale=Math.max(Math.min(i.scale,n.maxRatio),t.minRatio),n.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale("+i.scale+")"),i.currentScale=i.scale,i.isScaling=!1,1===i.scale&&(n.$slideEl=void 0))},onTouchStart:function(e){var t=this.zoom,i=t.gesture,n=t.image;i.$imageEl&&0!==i.$imageEl.length&&(n.isTouched||(b.android&&e.preventDefault(),n.isTouched=!0,n.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,n.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this,i=t.zoom,n=i.gesture,r=i.image,o=i.velocity;if(n.$imageEl&&0!==n.$imageEl.length&&(t.allowClick=!1,r.isTouched&&n.$slideEl)){r.isMoved||(r.width=n.$imageEl[0].offsetWidth,r.height=n.$imageEl[0].offsetHeight,r.startX=c.getTranslate(n.$imageWrapEl[0],"x")||0,r.startY=c.getTranslate(n.$imageWrapEl[0],"y")||0,n.slideWidth=n.$slideEl[0].offsetWidth,n.slideHeight=n.$slideEl[0].offsetHeight,n.$imageWrapEl.transition(0),t.rtl&&(r.startX=-r.startX,r.startY=-r.startY));var s=r.width*i.scale,a=r.height*i.scale;if(!(s<n.slideWidth&&a<n.slideHeight)){if(r.minX=Math.min(n.slideWidth/2-s/2,0),r.maxX=-r.minX,r.minY=Math.min(n.slideHeight/2-a/2,0),r.maxY=-r.minY,r.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,r.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!r.isMoved&&!i.isScaling){if(t.isHorizontal()&&(Math.floor(r.minX)===Math.floor(r.startX)&&r.touchesCurrent.x<r.touchesStart.x||Math.floor(r.maxX)===Math.floor(r.startX)&&r.touchesCurrent.x>r.touchesStart.x))return void(r.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(r.minY)===Math.floor(r.startY)&&r.touchesCurrent.y<r.touchesStart.y||Math.floor(r.maxY)===Math.floor(r.startY)&&r.touchesCurrent.y>r.touchesStart.y))return void(r.isTouched=!1)}e.preventDefault(),e.stopPropagation(),r.isMoved=!0,r.currentX=r.touchesCurrent.x-r.touchesStart.x+r.startX,r.currentY=r.touchesCurrent.y-r.touchesStart.y+r.startY,r.currentX<r.minX&&(r.currentX=r.minX+1-Math.pow(r.minX-r.currentX+1,.8)),r.currentX>r.maxX&&(r.currentX=r.maxX-1+Math.pow(r.currentX-r.maxX+1,.8)),r.currentY<r.minY&&(r.currentY=r.minY+1-Math.pow(r.minY-r.currentY+1,.8)),r.currentY>r.maxY&&(r.currentY=r.maxY-1+Math.pow(r.currentY-r.maxY+1,.8)),o.prevPositionX||(o.prevPositionX=r.touchesCurrent.x),o.prevPositionY||(o.prevPositionY=r.touchesCurrent.y),o.prevTime||(o.prevTime=Date.now()),o.x=(r.touchesCurrent.x-o.prevPositionX)/(Date.now()-o.prevTime)/2,o.y=(r.touchesCurrent.y-o.prevPositionY)/(Date.now()-o.prevTime)/2,Math.abs(r.touchesCurrent.x-o.prevPositionX)<2&&(o.x=0),Math.abs(r.touchesCurrent.y-o.prevPositionY)<2&&(o.y=0),o.prevPositionX=r.touchesCurrent.x,o.prevPositionY=r.touchesCurrent.y,o.prevTime=Date.now(),n.$imageWrapEl.transform("translate3d("+r.currentX+"px, "+r.currentY+"px,0)")}}},onTouchEnd:function(){var e=this.zoom,t=e.gesture,i=e.image,n=e.velocity;if(t.$imageEl&&0!==t.$imageEl.length){if(!i.isTouched||!i.isMoved)return i.isTouched=!1,void(i.isMoved=!1);i.isTouched=!1,i.isMoved=!1;var r=300,o=300,s=n.x*r,a=i.currentX+s,l=n.y*o,c=i.currentY+l;0!==n.x&&(r=Math.abs((a-i.currentX)/n.x)),0!==n.y&&(o=Math.abs((c-i.currentY)/n.y));var u=Math.max(r,o);i.currentX=a,i.currentY=c;var d=i.width*e.scale,h=i.height*e.scale;i.minX=Math.min(t.slideWidth/2-d/2,0),i.maxX=-i.minX,i.minY=Math.min(t.slideHeight/2-h/2,0),i.maxY=-i.minY,i.currentX=Math.max(Math.min(i.currentX,i.maxX),i.minX),i.currentY=Math.max(Math.min(i.currentY,i.maxY),i.minY),t.$imageWrapEl.transition(u).transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}},onTransitionEnd:function(){var e=this.zoom,t=e.gesture;t.$slideEl&&this.previousIndex!==this.activeIndex&&(t.$imageEl.transform("translate3d(0,
10,0) scale(1)"),t.$imageWrapEl.transform("translate3d(0,0,0)"),t.$slideEl=void 0,t.$imageEl=void 0,t.$imageWrapEl=void 0,e.scale=1,e.currentScale=1)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,i,r,o,s,a,l,c,u,d,h,p,f,m,g,v,y=this,b=y.zoom,w=y.params.zoom,x=b.gesture,S=b.image;x.$slideEl||(x.$slideEl=y.clickedSlide?n(y.clickedSlide):y.slides.eq(y.activeIndex),x.$imageEl=x.$slideEl.find("img, svg, canvas"),x.$imageWrapEl=x.$imageEl.parent("."+w.containerClass)),x.$imageEl&&0!==x.$imageEl.length&&(x.$slideEl.addClass(""+w.zoomedSlideClass),void 0===S.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,i="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=S.touchesStart.x,i=S.touchesStart.y),b.scale=x.$imageWrapEl.attr("data-swiper-zoom")||w.maxRatio,b.currentScale=x.$imageWrapEl.attr("data-swiper-zoom")||w.maxRatio,e?(g=x.$slideEl[0].offsetWidth,v=x.$slideEl[0].offsetHeight,r=x.$slideEl.offset().left+g/2-t,o=x.$slideEl.offset().top+v/2-i,l=x.$imageEl[0].offsetWidth,c=x.$imageEl[0].offsetHeight,u=l*b.scale,d=c*b.scale,f=-(h=Math.min(g/2-u/2,0)),m=-(p=Math.min(v/2-d/2,0)),(s=r*b.scale)<h&&(s=h),f<s&&(s=f),(a=o*b.scale)<p&&(a=p),m<a&&(a=m)):a=s=0,x.$imageWrapEl.transition(300).transform("translate3d("+s+"px, "+a+"px,0)"),x.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+b.scale+")"))},out:function(){var e=this,t=e.zoom,i=e.params.zoom,r=t.gesture;r.$slideEl||(r.$slideEl=e.clickedSlide?n(e.clickedSlide):e.slides.eq(e.activeIndex),r.$imageEl=r.$slideEl.find("img, svg, canvas"),r.$imageWrapEl=r.$imageEl.parent("."+i.containerClass)),r.$imageEl&&0!==r.$imageEl.length&&(t.scale=1,t.currentScale=1,r.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),r.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),r.$slideEl.removeClass(""+i.zoomedSlideClass),r.$slideEl=void 0)},enable:function(){var e=this,t=e.zoom;if(!t.enabled){t.enabled=!0;var i=!("touchstart"!==e.touchEvents.start||!u.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};u.gestures?(e.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,i),e.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,i),e.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,i)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,".swiper-slide",t.onGestureStart,i),e.$wrapperEl.on(e.touchEvents.move,".swiper-slide",t.onGestureChange,i),e.$wrapperEl.on(e.touchEvents.end,".swiper-slide",t.onGestureEnd,i)),e.$wrapperEl.on(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)}},disable:function(){var e=this,t=e.zoom;if(t.enabled){e.zoom.enabled=!1;var i=!("touchstart"!==e.touchEvents.start||!u.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};u.gestures?(e.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,i),e.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,i),e.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,i)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,".swiper-slide",t.onGestureStart,i),e.$wrapperEl.off(e.touchEvents.move,".swiper-slide",t.onGestureChange,i),e.$wrapperEl.off(e.touchEvents.end,".swiper-slide",t.onGestureEnd,i)),e.$wrapperEl.off(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)}}},W={loadInSlide:function(e,t){void 0===t&&(t=!0);var i=this,r=i.params.lazy;if(void 0!==e&&0!==i.slides.length){var o=i.virtual&&i.params.virtual.enabled?i.$wrapperEl.children("."+i.params.slideClass+'[data-swiper-slide-index="'+e+'"]'):i.slides.eq(e),s=o.find("."+r.elementClass+":not(."+r.loadedClass+"):not(."+r.loadingClass+")");!o.hasClass(r.elementClass)||o.hasClass(r.loadedClass)||o.hasClass(r.loadingClass)||(s=s.add(o[0])),0!==s.length&&s.each(function(e,s){var a=n(s);a.addClass(r.loadingClass);var l=a.attr("data-background"),c=a.attr("data-src"),u=a.attr("data-srcset"),d=a.attr("data-sizes");i.loadImage(a[0],c||l,u,d,!1,function(){if(null!=i&&i&&(!i||i.params)&&!i.destroyed){if(l?(a.css("background-image",'url("'+l+'")'),a.removeAttr("data-background")):(u&&(a.attr("srcset",u),a.removeAttr("data-srcset")),d&&(a.attr("sizes",d),a.removeAttr("data-sizes")),c&&(a.attr("src",c),a.removeAttr("data-src"))),a.addClass(r.loadedClass).removeClass(r.loadingClass),o.find("."+r.preloaderClass).remove(),i.params.loop&&t){var e=o.attr("data-swiper-slide-index");if(o.hasClass(i.params.slideDuplicateClass)){var n=i.$wrapperEl.children('[data-swiper-slide-index="'+e+'"]:not(.'+i.params.slideDuplicateClass+")");i.lazy.loadInSlide(n.index(),!1)}else{var s=i.$wrapperEl.children("."+i.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');i.lazy.loadInSlide(s.index(),!1)}}i.emit("lazyImageReady",o[0],a[0])}}),i.emit("lazyImageLoad",o[0],a[0])})}},load:function(){var e=this,t=e.$wrapperEl,i=e.params,r=e.slides,o=e.activeIndex,s=e.virtual&&i.virtual.enabled,a=i.lazy,l=i.slidesPerView;function c(e){if(s){if(t.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(r[e])return!0;return!1}function u(e){return s?n(e).attr("data-swiper-slide-index"):n(e).index()}if("auto"===l&&(l=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children("."+i.slideVisibleClass).each(function(t,i){var r=s?n(i).attr("data-swiper-slide-index"):n(i).index();e.lazy.loadInSlide(r)});else if(1<l)for(var d=o;d<o+l;d+=1)c(d)&&e.lazy.loadInSlide(d);else e.lazy.loadInSlide(o);if(a.loadPrevNext)if(1<l||a.loadPrevNextAmount&&1<a.loadPrevNextAmount){for(var h=a.loadPrevNextAmount,p=l,f=Math.min(o+p+Math.max(h,p),r.length),m=Math.max(o-Math.max(p,h),0),g=o+l;g<f;g+=1)c(g)&&e.lazy.loadInSlide(g);for(var v=m;v<o;v+=1)c(v)&&e.lazy.loadInSlide(v)}else{var y=t.children("."+i.slideNextClass);0<y.length&&e.lazy.loadInSlide(u(y));var b=t.children("."+i.slidePrevClass);0<b.length&&e.lazy.loadInSlide(u(b))}}},V={LinearSpline:function(e,t){var i,n,r,o,s;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(s=function(e,t){for(n=-1,i=e.length;1<i-n;)e[r=i+n>>1]<=t?n=r:i=r;return i}(this.x,e),o=s-1,(e-this.x[o])*(this.y[s]-this.y[o])/(this.x[s]-this.x[o])+this.y[o]):0},this},getInterpolateFunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new V.LinearSpline(t.slidesGrid,e.slidesGrid):new V.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate:function(e,t){var i,n,r=this,o=r.controller.control;function s(e){var t=r.rtlTranslate?-r.translate:r.translate;"slide"===r.params.controller.by&&(r.controller.getInterpolateFunction(e),n=-r.controller.spline.interpolate(-t)),n&&"container"!==r.params.controller.by||(i=(e.maxTranslate()-e.minTranslate())/(r.maxTranslate()-r.minTranslate()),n=(t-r.minTranslate())*i+e.minTranslate()),r.params.controller.inverse&&(n=e.maxTranslate()-n),e.updateProgress(n),e.setTranslate(n,r),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(o))for(var a=0;a<o.length;a+=1)o[a]!==t&&o[a]instanceof A&&s(o[a]);else o instanceof A&&t!==o&&s(o)},setTransition:function(e,t){var i,n=this,r=n.controller.control;function o(t){t.setTransition(e,n),0!==e&&(t.transitionStart(),t.params.autoHeight&&c.nextTick(function(){t.updateAutoHeight()}),t.$wrapperEl.transitionEnd(function(){r&&(t.params.loop&&"slide"===n.params.controller.by&&t.loopFix(),t.transitionEnd())}))}if(Array.isArray(r))for(i=0;i<r.length;i+=1)r[i]!==t&&r[i]instanceof A&&o(r[i]);else r instanceof A&&t!==r&&o(r)}},X={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){var t=this,i=t.params.a11y;if(13===e.keyCode){var r=n(e.target);t.navigation&&t.navigation.$nextEl&&r.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?t.a11y.notify(i.lastSlideMessage):t.a11y.notify(i.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&r.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?t.a11y.notify(i.firstSlideMessage):t.a11y.notify(i.prevSlideMessage)),t.pagination&&r.is("."+t.params.pagination.bulletClass)&&r[0].click()}},notify:function(e){var t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation:function(){var e=this;if(!e.params.loop){var t=e.navigation,i=t.$nextEl,n=t.$prevEl;n&&0<n.length&&(e.isBeginning?e.a11y.disableEl(n):e.a11y.enableEl(n)),i&&0<i.length&&(e.isEnd?e.a11y.disableEl(i):e.a11y.enableEl(i))}},updatePagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each(function(i,r){var o=n(r);e.a11y.makeElFocusable(o),e.a11y.addElRole(o,"button"),e.a11y.addElLabel(o,t.paginationBulletMessage.replace(/{{index}}/,o.index()+1))})},init:function(){var e=this;e.$el.append(e.a11y.liveRegion);var t,i,n=e.params.a11y;e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(i=e.navigation.$prevEl),t&&(e.a11y.makeElFocusable(t),e.a11y.addElRole(t,"button"),e.a11y.addElLabel(t,n.nextSlideMessage),t.on("key
1down",e.a11y.onEnterKey)),i&&(e.a11y.makeElFocusable(i),e.a11y.addElRole(i,"button"),e.a11y.addElLabel(i,n.prevSlideMessage),i.on("keydown",e.a11y.onEnterKey)),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.on("keydown","."+e.params.pagination.bulletClass,e.a11y.onEnterKey)},destroy:function(){var e,t,i=this;i.a11y.liveRegion&&0<i.a11y.liveRegion.length&&i.a11y.liveRegion.remove(),i.navigation&&i.navigation.$nextEl&&(e=i.navigation.$nextEl),i.navigation&&i.navigation.$prevEl&&(t=i.navigation.$prevEl),e&&e.off("keydown",i.a11y.onEnterKey),t&&t.off("keydown",i.a11y.onEnterKey),i.pagination&&i.params.pagination.clickable&&i.pagination.bullets&&i.pagination.bullets.length&&i.pagination.$el.off("keydown","."+i.params.pagination.bulletClass,i.a11y.onEnterKey)}},Y={init:function(){var e=this;if(e.params.history){if(!t.history||!t.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);var i=e.history;i.initialized=!0,i.paths=Y.getPathValues(),(i.paths.key||i.paths.value)&&(i.scrollToSlide(0,i.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||t.addEventListener("popstate",e.history.setHistoryPopState))}},destroy:function(){this.params.history.replaceState||t.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){this.history.paths=Y.getPathValues(),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues:function(){var e=t.location.pathname.slice(1).split("/").filter(function(e){return""!==e}),i=e.length;return{key:e[i-2],value:e[i-1]}},setHistory:function(e,i){if(this.history.initialized&&this.params.history.enabled){var n=this.slides.eq(i),r=Y.slugify(n.attr("data-history"));t.location.pathname.includes(e)||(r=e+"/"+r);var o=t.history.state;o&&o.value===r||(this.params.history.replaceState?t.history.replaceState({value:r},null,r):t.history.pushState({value:r},null,r))}},slugify:function(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,i){var n=this;if(t)for(var r=0,o=n.slides.length;r<o;r+=1){var s=n.slides.eq(r);if(Y.slugify(s.attr("data-history"))===t&&!s.hasClass(n.params.slideDuplicateClass)){var a=s.index();n.slideTo(a,e,i)}}else n.slideTo(0,e,i)}},G={onHashCange:function(){var t=this,i=e.location.hash.replace("#","");i!==t.slides.eq(t.activeIndex).attr("data-hash")&&t.slideTo(t.$wrapperEl.children("."+t.params.slideClass+'[data-hash="'+i+'"]').index())},setHash:function(){var i=this;if(i.hashNavigation.initialized&&i.params.hashNavigation.enabled)if(i.params.hashNavigation.replaceState&&t.history&&t.history.replaceState)t.history.replaceState(null,null,"#"+i.slides.eq(i.activeIndex).attr("data-hash")||"");else{var n=i.slides.eq(i.activeIndex),r=n.attr("data-hash")||n.attr("data-history");e.location.hash=r||""}},init:function(){var i=this;if(!(!i.params.hashNavigation.enabled||i.params.history&&i.params.history.enabled)){i.hashNavigation.initialized=!0;var r=e.location.hash.replace("#","");if(r)for(var o=0,s=i.slides.length;o<s;o+=1){var a=i.slides.eq(o);if((a.attr("data-hash")||a.attr("data-history"))===r&&!a.hasClass(i.params.slideDuplicateClass)){var l=a.index();i.slideTo(l,0,i.params.runCallbacksOnInit,!0)}}i.params.hashNavigation.watchState&&n(t).on("hashchange",i.hashNavigation.onHashCange)}},destroy:function(){this.params.hashNavigation.watchState&&n(t).off("hashchange",this.hashNavigation.onHashCange)}},K={run:function(){var e=this,t=e.slides.eq(e.activeIndex),i=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(i=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),e.autoplay.timeout=c.nextTick(function(){e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,
vendor: 15,251 bytes, line 1
1!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay"))},i)},start:function(){var e=this;return void 0===e.autoplay.timeout&&!e.autoplay.running&&(e.autoplay.running=!0,e.emit("autoplayStart"),e.autoplay.run(),!0)},stop:function(){var e=this;return!!e.autoplay.running&&void 0!==e.autoplay.timeout&&(e.autoplay.timeout&&(clearTimeout(e.autoplay.timeout),e.autoplay.timeout=void 0),e.autoplay.running=!1,e.emit("autoplayStop"),!0)},pause:function(e){var t=this;t.autoplay.running&&(t.autoplay.paused||(t.autoplay.timeout&&clearTimeout(t.autoplay.timeout),t.autoplay.paused=!0,0!==e&&t.params.autoplay.waitForTransition?(t.$wrapperEl[0].addEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].addEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd)):(t.autoplay.paused=!1,t.autoplay.run())))}},Q={setTranslate:function(){for(var e=this,t=e.slides,i=0;i<t.length;i+=1){var n=e.slides.eq(i),r=-n[0].swiperSlideOffset;e.params.virtualTranslate||(r-=e.translate);var o=0;e.isHorizontal()||(o=r,r=0);var s=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(n[0].progress),0):1+Math.min(Math.max(n[0].progress,-1),0);n.css({opacity:s}).transform("translate3d("+r+"px, "+o+"px, 0px)")}},setTransition:function(e){var t=this,i=t.slides,n=t.$wrapperEl;if(i.transition(e),t.params.virtualTranslate&&0!==e){var r=!1;i.transitionEnd(function(){if(!r&&t&&!t.destroyed){r=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)n.trigger(e[i])}})}}},Z={setTranslate:function(){var e,t=this,i=t.$el,r=t.$wrapperEl,o=t.slides,s=t.width,a=t.height,l=t.rtlTranslate,c=t.size,u=t.params.cubeEffect,d=t.isHorizontal(),h=t.virtual&&t.params.virtual.enabled,p=0;u.shadow&&(d?(0===(e=r.find(".swiper-cube-shadow")).length&&(e=n('<div class="swiper-cube-shadow"></div>'),r.append(e)),e.css({height:s+"px"})):0===(e=i.find(".swiper-cube-shadow")).length&&(e=n('<div class="swiper-cube-shadow"></div>'),i.append(e)));for(var f=0;f<o.length;f+=1){var m=o.eq(f),g=f;h&&(g=parseInt(m.attr("data-swiper-slide-index"),10));var v=90*g,y=Math.floor(v/360);l&&(v=-v,y=Math.floor(-v/360));var b=Math.max(Math.min(m[0].progress,1),-1),w=0,x=0,S=0;g%4==0?(w=4*-y*c,S=0):(g-1)%4==0?(w=0,S=4*-y*c):(g-2)%4==0?(w=c+4*y*c,S=c):(g-3)%4==0&&(w=-c,S=3*c+4*c*y),l&&(w=-w),d||(x=w,w=0);var T="rotateX("+(d?0:-v)+"deg) rotateY("+(d?v:0)+"deg) translate3d("+w+"px, "+x+"px, "+S+"px)";if(b<=1&&-1<b&&(p=90*g+90*b,l&&(p=90*-g-90*b)),m.transform(T),u.slideShadows){var C=d?m.find(".swiper-slide-shadow-left"):m.find(".swiper-slide-shadow-top"),k=d?m.find(".swiper-slide-shadow-right"):m.find(".swiper-slide-shadow-bottom");0===C.length&&(C=n('<div class="swiper-slide-shadow-'+(d?"left":"top")+'"></div>'),m.append(C)),0===k.length&&(k=n('<div class="swiper-slide-shadow-'+(d?"right":"bottom")+'"></div>'),m.append(k)),C.length&&(C[0].style.opacity=Math.max(-b,0)),k.length&&(k[0].style.opacity=Math.max(b,0))}}if(r.css({"-webkit-transform-origin":"50% 50% -"+c/2+"px","-moz-transform-origin":"50% 50% -"+c/2+"px","-ms-transform-origin":"50% 50% -"+c/2+"px","transform-origin":"50% 50% -"+c/2+"px"}),u.shadow)if(d)e.transform("translate3d(0px, "+(s/2+u.shadowOffset)+"px, "+-s/2+"px) rotateX(90deg) rotateZ(0deg) scale("+u.shadowScale+")");else{var P=Math.abs(p)-90*Math.floor(Math.abs(p)/90),A=1.5-(Math.sin(2*P*Math.PI/360)/2+Math.cos(2*P*Math.PI/360)/2),M=u.shadowScale,L=u.shadowScale/A,I=u.shadowOffset;e.transform("scale3d("+M+", 1, "+L+") translate3d(0px, "+(a/2+I)+"px, "+-a/2/L+"px) rotateX(-90deg)")}var z=E.isSafari||E.isUiWebView?-c/2:0;r.transform("translate3d(0px,0,"+z+"px) rotateX("+(t.isHorizontal()?0:p)+"deg) rotateY("+(t.isHorizontal()?-p:0)+"deg)")},setTransition:function(e){var t=this.$el;this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),this.params.cubeEffect.shadow&&!this.isHorizontal()&&t.find(".swiper-cube-shadow").transition(e)}},J={setTranslate:function(){for(var e=this,t=e.slides,i=e.rtlTranslate,r=0;r<t.length;r+=1){var o=t.eq(r),s=o[0].progress;e.params.flipEffect.limitRotation&&(s=Math.max(Math.min(o[0].progress,1),-1));var a=-180*s,l=0,c=-o[0].swiperSlideOffset,u=0;if(e.isHorizontal()?i&&(a=-a):(u=c,l=-a,a=c=0),o[0].style.zIndex=-Math.abs(Math.round(s))+t.length,e.params.flipEffect.slideShadows){var d=e.isHorizontal()?o.find(".swiper-slide-shadow-left"):o.find(".swiper-slide-shadow-top"),h=e.isHorizontal()?o.find(".swiper-slide-shadow-right"):o.find(".swiper-slide-shadow-bottom");0===d.length&&(d=n('<div class="swiper-slide-shadow-'+(e.isHorizontal()?"left":"top")+'"></div>'),o.append(d)),0===h.length&&(h=n('<div class="swiper-slide-shadow-'+(e.isHorizontal()?"right":"bottom")+'"></div>'),o.append(h)),d.length&&(d[0].style.opacity=Math.max(-s,0)),h.length&&(h[0].style.opacity=Math.max(s,0))}o.transform("translate3d("+c+"px, "+u+"px, 0px) rotateX("+l+"deg) rotateY("+a+"deg)")}},setTransition:function(e){var t=this,i=t.slides,n=t.activeIndex,r=t.$wrapperEl;if(i.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var o=!1;i.eq(n).transitionEnd(function(){if(!o&&t&&!t.destroyed){o=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)r.trigger(e[i])}})}}},ee={setTranslate:function(){for(var e=this,t=e.width,i=e.height,r=e.slides,o=e.$wrapperEl,s=e.slidesSizesGrid,a=e.params.coverflowEffect,l=e.isHorizontal(),c=e.translate,d=l?t/2-c:i/2-c,h=l?a.rotate:-a.rotate,p=a.depth,f=0,m=r.length;f<m;f+=1){var g=r.eq(f),v=s[f],y=(d-g[0].swiperSlideOffset-v/2)/v*a.modifier,b=l?h*y:0,w=l?0:h*y,x=-p*Math.abs(y),S=l?0:a.stretch*y,T=l?a.stretch*y:0;Math.abs(T)<.001&&(T=0),Math.abs(S)<.001&&(S=0),Math.abs(x)<.001&&(x=0),Math.abs(b)<.001&&(b=0),Math.abs(w)<.001&&(w=0);var E="translate3d("+T+"px,"+S+"px,"+x+"px) rotateX("+w+"deg) rotateY("+b+"deg)";if(g.transform(E),g[0].style.zIndex=1-Math.abs(Math.round(y)),a.slideShadows){var C=l?g.find(".swiper-slide-shadow-left"):g.find(".swiper-slide-shadow-top"),k=l?g.find(".swiper-slide-shadow-right"):g.find(".swiper-slide-shadow-bottom");0===C.length&&(C=n('<div class="swiper-slide-shadow-'+(l?"left":"top")+'"></div>'),g.append(C)),0===k.length&&(k=n('<div class="swiper-slide-shadow-'+(l?"right":"bottom")+'"></div>'),g.append(k)),C.length&&(C[0].style.opacity=0<y?y:0),k.length&&(k[0].style.opacity=0<-y?-y:0)}}(u.pointerEvents||u.prefixedPointerEvents)&&(o[0].style.perspectiveOrigin=d+"px 50%")},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},te=[M,L,I,z,O,_,N,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){var e=this;c.extend(e,{mousewheel:{enabled:!1,enable:R.enable.bind(e),disable:R.disable.bind(e),handle:R.handle.bind(e),handleMouseEnter:R.handleMouseEnter.bind(e),handleMouseLeave:R.handleMouseLeave.bind(e),lastScrollTime:c.now()}})},on:{init:function(){this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy:function(){this.mousewheel.enabled&&this.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){c.extend(this,{navigation:{init:F.init.bind(this),update:F.update.bind(this),destroy:F.destroy.bind(this)}})},on:{init:function(){this.navigation.init(),this.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(e){var t=this.navigation,i=t.$nextEl,r=t.$prevEl;!this.params.navigation.hideOnClick||n(e.target).is(r)||n(e.target).is(i)||(i&&i.toggleClass(this.params.navigation.hiddenClass),r&&r.toggleClass(this.params.navigation.hiddenClass))}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){var e=this;c.extend(e,{pagination:{init:H.init.bind(e),render:H.render.bind(e),update:H.update.bind(e),destroy:H.destroy.bind(e),dynamicBulletIndex:0}})},on:{init:function(){this.pagination.init(),this.pagination.render(),this.pagination.update()},activeIndexChange:function(){this.params.loop?this.pagination.update():void 0===this.snapIndex&&this.pagination.update()},snapIndexChange:function(){this.params.loop||this.pagination.update()},slidesLengthChange:function(){this.params.loop&&(this.pagination.render(),this.pagination.update())},snapGridLengthChange:function(){this.params.loop||(this.pagination.render(),this.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(e){var t=this;t.params.pagination.el&&t.params.pagination.hideOnClick&&0<t.pagination.$el.length&&!n(e.target).hasClass(t.params.pagination.bulletClass)&&t.pagination.$el.toggleClass(t.params.pagination.hiddenClass)}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){var e=this;c.extend(e,{scrollbar:{init:q.init.bind(e),destroy:q.destroy.bind(e),updateSize:q.updateSize.bind(e),setTranslate:q.setTranslate.bind(e),setTransition:q.setTransition.bind(e),enableDraggable:q.enableDraggable.bind(e),disableDraggable:q.disableDraggable.bind(e),setDragPosition:q.setDragPosition.bind(e),onDragStart:q.onDragStart.bind(e),onDragMove:q.onDragMove.bind(e),onDragEnd:q.onDragEnd.bind(e),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){c.extend(this,{parallax:{setTransform:B.setTransform.bind(this),setTranslate:B.setTranslate.bind(this),setTransition:B.setTransition.bind(this)}})},on:{beforeInit:function(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0)},init:function(){this.params.parallax&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax&&this.parallax.setTranslate()},setTransition:function(e){this.params.parallax&&this.parallax.setTransition(e)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(function(i){t[i]=U[i].bind(e)}),c.extend(e,{zoom:t})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(e){this.zoom.enabled&&this.zoom.onTouchStart(e)},touchEnd:function(e){this.zoom.enabled&&this.zoom.onTouchEnd(e)},doubleTap:function(e){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(e)},transitionEnd:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){c.extend(this,{lazy:{initialImageLoaded:!1,load:W.load.bind(this),loadInSlide:W.loadInSlide.bind(this)}})},on:{beforeInit:function(){this.params.lazy.enabled&&this.params.preloadImages&&(this.params.preloadImages=!1)},init:function(){this.params.lazy.enabled&&!this.params.loop&&0===this.params.initialSlide&&this.lazy.load()},scroll:function(){this.params.freeMode&&!this.params.freeModeSticky&&this.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){var e=this;e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!e.lazy.initialImageLoaded)&&e.lazy.load()},transitionEnd:function(){this.params.lazy.enabled&&!this.params.lazy.loadOnTransitionStart&&this.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var e=this;c.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:V.getInterpolateFunction.bind(e),setTranslate:V.setTranslate.bind(e),setTransition:V.setTransition.bind(e)}})},on:{update:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},resize:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},observerUpdate:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},setTranslate:function(e,t){this.controller.control&&this.controller.setTranslate(e,t)},setTransition:function(e,t){this.controller.control&&this.controller.setTransition(e,t)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var e=this;c.extend(e,{a11y:{liveRegion:n('<span class="'+e.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}
1),Object.keys(X).forEach(function(t){e.a11y[t]=X[t].bind(e)})},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var e=this;c.extend(e,{history:{init:Y.init.bind(e),setHistory:Y.setHistory.bind(e),setHistoryPopState:Y.setHistoryPopState.bind(e),scrollToSlide:Y.scrollToSlide.bind(e),destroy:Y.destroy.bind(e)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){this.history.initialized&&this.history.setHistory(this.params.history.key,this.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var e=this;c.extend(e,{hashNavigation:{initialized:!1,init:G.init.bind(e),destroy:G.destroy.bind(e),setHash:G.setHash.bind(e),onHashCange:G.onHashCange.bind(e)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;c.extend(e,{autoplay:{running:!1,paused:!1,run:K.run.bind(e),start:K.start.bind(e),stop:K.stop.bind(e),pause:K.pause.bind(e),onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&this.autoplay.start()},beforeTransitionStart:function(e,t){this.autoplay.running&&(t||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(e):this.autoplay.stop())},sliderFirstMove:function(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},destroy:function(){this.autoplay.running&&this.autoplay.stop()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){c.extend(this,{fadeEffect:{setTranslate:Q.setTranslate.bind(this),setTransition:Q.setTransition.bind(this)}})},on:{beforeInit:function(){var e=this;if("fade"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"fade");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};c.extend(e.params,t),c.extend(e.originalParams,t)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(e){"fade"===this.params.effect&&this.fadeEffect.setTransition(e)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){c.extend(this,{cubeEffect:{setTranslate:Z.setTranslate.bind(this),setTransition:Z.setTransition.bind(this)}})},on:{beforeInit:function(){var e=this;if("cube"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"cube"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};c.extend(e.params,t),c.extend(e.originalParams,t)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(e){"cube"===this.params.effect&&this.cubeEffect.setTransition(e)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){c.extend(this,{flipEffect:{setTranslate:J.setTranslate.bind(this),setTransition:J.setTransition.bind(this)}})},on:{beforeInit:function(){var e=this;if("flip"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"flip"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};c.extend(e.params,t),c.extend(e.originalParams,t)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(e){"flip"===this.params.effect&&this.flipEffect.setTransition(e)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){c.extend(this,{coverflowEffect:{setTranslate:ee.setTranslate.bind(this),setTransition:ee.setTransition.bind(this)}})},on:{beforeInit:function(){var e=this;"coverflow"===e.params.effect&&(e.classNames.push(e.params.containerModifierClass+"coverflow"),e.classNames.push(e.params.containerModifierClass+"3d"),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(e){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(e)}}}];return void 0===A.use&&(A.use=A.Class.use,A.installModule=A.Class.installModule),A.use(te),A}),function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports&&"string"!=typeof exports.nodeName?module.exports=t():e.Instafeed=t()}(this,function(){function e(e,t){if(!e)throw new Error(t)}function t(t){e(!t||"object"==typeof t,"options must be an object, got "+t+" ("+typeof t+")");var i={accessToken:null,accessTokenTimeout:5e3,after:null,apiTimeout:5e3,debug:!1,error:null,filter:null,limit:null,mock:!1,render:null,sort:null,success:null,target:"instafeed",template:'<a href="{{link}}"><img title="{{caption}}" src="{{image}}" /></a>',templateBoundaries:["{{","}}"],transform:null};if(t)for(var n in i)void 0!==t[n]&&(i[n]=t[n]);e("string"==typeof i.target||"object"==typeof i.target,"target must be a string or DOM node, got "+i.target+" ("+typeof i.target+")"),e("string"==typeof i.accessToken||"function"==typeof i.accessToken,"accessToken must be a string or function, got "+i.accessToken+" ("+typeof i.accessToken+")"),e("number"==typeof i.accessTokenTimeout,"accessTokenTimeout must be a number, got "+i.accessTokenTimeout+" ("+typeof i.accessTokenTimeout+")"),e("number"==typeof i.apiTimeout,"a
1piTimeout must be a number, got "+i.apiTimeout+" ("+typeof i.apiTimeout+")"),e("boolean"==typeof i.debug,"debug must be true or false, got "+i.debug+" ("+typeof i.debug+")"),e("boolean"==typeof i.mock,"mock must be true or false, got "+i.mock+" ("+typeof i.mock+")"),e("object"==typeof i.templateBoundaries&&2===i.templateBoundaries.length&&"string"==typeof i.templateBoundaries[0]&&"string"==typeof i.templateBoundaries[1],"templateBoundaries must be an array of 2 strings, got "+i.templateBoundaries+" ("+typeof i.templateBoundaries+")"),e(!i.template||"string"==typeof i.template,"template must null or string, got "+i.template+" ("+typeof i.template+")"),e(!i.error||"function"==typeof i.error,"error must be null or function, got "+i.error+" ("+typeof i.error+")"),e(!i.after||"function"==typeof i.after,"after must be null or function, got "+i.after+" ("+typeof i.after+")"),e(!i.success||"function"==typeof i.success,"success must be null or function, got "+i.success+" ("+typeof i.success+")"),e(!i.filter||"function"==typeof i.filter,"filter must be null or function, got "+i.filter+" ("+typeof i.filter+")"),e(!i.transform||"function"==typeof i.transform,"transform must be null or function, got "+i.transform+" ("+typeof i.transform+")"),e(!i.sort||"function"==typeof i.sort,"sort must be null or function, got "+i.sort+" ("+typeof i.sort+")"),e(!i.render||"function"==typeof i.render,"render must be null or function, got "+i.render+" ("+typeof i.render+")"),e(!i.limit||"number"==typeof i.limit,"limit must be null or number, got "+i.limit+" ("+typeof i.limit+")"),this._state={running:!1},this._options=i}return t.prototype.run=function(){var e=this,t=null,i=null,n=null,r=null;return this._debug("run","options",this._options),this._debug("run","state",this._state),this._state.running?(this._debug("run","already running, skipping"),!1):(this._state.running=!0,this._debug("run","getting dom node"),(t="string"==typeof this._options.target?document.getElementById(this._options.target):this._options.target)?(this._debug("run","got dom node",t),this._debug("run","getting access token"),this._getAccessToken(function(o,s){if(o)return e._debug("onTokenReceived","error",o),void e._fail(new Error("error getting access token: "+o.message));i="https://graph.instagram.com/me/media?fields=caption,id,media_type,media_url,permalink,thumbnail_url,timestamp,username&access_token="+s,e._debug("onTokenReceived","request url",i),e._makeApiRequest(i,function(i,o){if(i)return e._debug("onResponseReceived","error",i),void e._fail(new Error("api request error: "+i.message));e._debug("onResponseReceived","data",o),e._success(o);try{n=e._processData(o),e._debug("onResponseReceived","processed data",n)}catch(t){return void e._fail(t)}if(e._options.mock)e._debug("onResponseReceived","mock enabled, skipping render");else{try{r=e._renderData(n),e._debug("onResponseReceived","html content",r)}catch(t){return void e._fail(t)}t.innerHTML=r}e._finish()})}),!0):(this._fail(new Error("no element found with ID "+this._options.target)),!1))},t.prototype._processData=function(e){var t="function"==typeof this._options.transform,i="function"==typeof this._options.filter,n="function"==typeof this._options.sort,r="number"==typeof this._options.limit,o=[],s=null,a=null,l=null,c=null;if(this._debug("processData","hasFilter",i,"hasTransform",t,"hasSort",n,"hasLimit",r),"object"!=typeof e||"object"!=typeof e.data||e.data.length<=0)return null;for(var u=0;u<e.data.length;u++){if(a=this._getItemData(e.data[u]),t)try{l=this._options.transform(a),this._debug("processData","transformed item",a,l)}catch(e){throw this._debug("processData","error calling transform",e),new Error("error in transform: "+e.message)}else l=a;if(i){try{c=this._options.filter(l),this._debug("processData","filter item result",l,c)}catch(e){throw this._debug("processData","error calling filter",e),new Error("error in filter: "+e.message)}c&&o.push(l)}else o.push(l)}if(n)try{o.sort(this._options.sort)}catch(e){throw this._debug("processData","error calling sort",e),new Error("error in sort: "+e.message)}return r&&(s=o.length-this._options.limit,this._debug("processData","checking limit",o.length,this._options.limit,s),s>0&&o.splice(o.length-s,s)),o},t.prototype._getItemData=function(e){var t=null,i=null;switch(e.media_type){case"IMAGE":t="image",i=e.media_url;break;case"VIDEO":t="video",i=e.thumbnail_url;break;case"CAROUSEL_ALBUM":t="album",i=e.media_url}return{caption:e.caption,id:e.id,image:i,link:e.permalink,model:e,timestamp:e.timestamp,type:t,username:e.username}},t.prototype._renderData=function(e){var t="string"==typeof this._options.template,i="function"==typeof this._options.render,n=null,r=null,o="";if(this._debug("renderData","hasTemplate",t,"hasRender",i),"object"!=typeof e||e.length<=0)return null;for(var s=0;s<e.length;s++){if(n=e[s],i)try{r=this._options.render(n,this._options),this._debug("renderData","custom render result",n,r)}catch(e){throw this._debug("renderData","error calling render",e),new Error("error in render: "+e.message)}else t&&(r=this._basicRender(n));
vendor: 6,604 bytes, lines 1-4
1r?o+=r:this._debug("renderData","render item did not return any content",n)}return o},t.prototype._basicRender=function(e){for(var t=new RegExp(this._options.templateBoundaries[0]+"([\\s\\w.]+)"+this._options.templateBoundaries[1],"gm"),i=this._options.template,n=null,r="",o=0,s=null,a=null;null!==(n=t.exec(i));)s=n[1],r+=i.slice(o,n.index),(a=this._valueForKeyPath(s,e))&&(r+=a.toString()),o=t.lastIndex;return o<i.length&&(r+=i.slice(o,i.length)),r},t.prototype._valueForKeyPath=function(e,t){for(var i=/([\w]+)/gm,n=null,r=t;null!==(n=i.exec(e));){if("object"!=typeof r)return null;r=r[n[1]]}return r},t.prototype._fail=function(e){!this._runHook("error",e)&&console&&"function"==typeof console.error&&console.error(e),this._state.running=!1},t.prototype._finish=function(){this._runHook("after"),this._state.running=!1},t.prototype._success=function(e){this._runHook("success",e),this._state.running=!1},t.prototype._makeApiRequest=function(e,t){var i=!1,n=this,r=null,o=function(e,n){i||(i=!0,t(e,n))};(r=new XMLHttpRequest).timeout=this._options.apiTimeout,r.ontimeout=function(e){o(new Error("api request timed out"))},r.onerror=function(e){o(new Error("api connection error"))},r.onload=function(e){var t=r.getResponseHeader("Content-Type"),i=null;if(n._debug("apiRequestOnLoad","loaded",e),n._debug("apiRequestOnLoad","response status",r.status),n._debug("apiRequestOnLoad","response content type",t),t.indexOf("application/json")>=0)try{i=JSON.parse(r.responseText)}catch(e){return n._debug("apiRequestOnLoad","json parsing error",e,r.responseText),void o(new Error("error parsing response json"))}200===r.status?o(null,i):i&&i.error?o(new Error(i.error.code+" "+i.error.message)):o(new Error("status code "+r.status))},r.open("GET",e,!0),r.send()},t.prototype._getAccessToken=function(e){var t=!1,i=this,n=null,r=function(i,r){t||(t=!0,clearTimeout(n),e(i,r))};if("function"==typeof this._options.accessToken){this._debug("getAccessToken","calling accessToken as function"),n=setTimeout(function(){i._debug("getAccessToken","timeout check",t),r(new Error("accessToken timed out"),null)},this._options.accessTokenTimeout);try{this._options.accessToken(function(e,n){i._debug("getAccessToken","received accessToken callback",t,e,n),r(e,n)})}catch(e){this._debug("getAccessToken","error invoking the accessToken as function",e),r(e,null)}}else this._debug("getAccessToken","treating accessToken as static",typeof this._options.accessToken),r(null,this._options.accessToken)},t.prototype._debug=function(){var e=null;this._options.debug&&console&&"function"==typeof console.log&&((e=[].slice.call(arguments))[0]="[Instafeed] ["+e[0]+"]",console.log.apply(null,e))},t.prototype._runHook=function(e,t){var i=!1;if("function"==typeof this._options[e])try{this._options[e](t),i=!0}catch(t){this._debug("runHook","error calling hook",e,t)}return i},t}); 2 3/* newsleaft */ 4/*function getAnchorPosition(e){var t=new Object,o=0,n=0,i=!1,s=!1,p=!1;if(document.getElementById?i=!0:document.all?s=!0:document.layers&&(p=!0),i&&document.all)o=AnchorPosition_getPageOffsetLeft(document.all[e]),n=AnchorPosition_getPageOffsetTop(document.all[e]);else if(i)var d=document.getElementById(e),o=AnchorPosition_getPageOffsetLeft(d),n=AnchorPosition_getPageOffsetTop(d);else if(s)o=AnchorPosition_getPageOffsetLeft(document.all[e]),n=AnchorPosition_getPageOffsetTop(document.all[e]);else{if(!p)return t.x=0,t.y=0,t;for(var a=0,r=0;r<document.anchors.length;r++)if(document.anchors[r].name==e){a=1;break}if(0==a)return t.x=0,t.y=0,t;o=document.anchors[r].x,n=document.anchors[r].y}return t.x=o,t.y=n,t}function getAnchorWindowPosition(e){var t=getAnchorPosition(e),o=0,n=0;return document.getElementById?n=isNaN(window.screenX)?(o=t.x-document.body.scrollLeft+window.screenLeft,t.y-document.body.scrollTop+window.screenTop):(o=t.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset,t.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset):document.all?(o=t.x-document.body.scrollLeft+window.screenLeft,n=t.y-document.body.scrollTop+window.screenTop):document.layers&&(o=t.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset,n=t.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset),t.x=o,t.y=n,t}function AnchorPosition_getPageOffsetLeft(e){for(var t=e.offsetLeft;null!=(e=e.offsetParent);)t+=e.offsetLeft;return t}function AnchorPosition_getWindowOffsetLeft(e){return AnchorPosition_getPageOffsetLeft(e)-document.body.scrollLeft}function AnchorPosition_getPageOffsetTop(e){for(var t=e.offsetTop;null!=(e=e.offsetParent);)t+=e.offsetTop;return t}function AnchorPosition_getWindowOffsetTop(e){return AnchorPosition_getPageOffsetTop(e)-document.body.scrollTop}function PopupWindow_getXYPosition(e){var t=("WINDOW"==this.type?getAnchorWindowPosition:getAnchorPosition)(e);this.x=t.x,this.y=t.y}function PopupWindow_setSize(e,t){this.width=e,this.height=t}function PopupWindow_populate(e){this.contents=e,this.populated=!1}function PopupWindow_setUrl(e){this.url=e}function PopupWindow_setWindowProperties(e){this.windowProperties=e}function PopupWindow_refresh(){var e;null!=this.divName?this.use_gebi?document.getElementById(this.divName).innerHTML=this.contents:this.use_css?document.all[this.divName].innerHTML=this.contents:this.use_layers&&((e=document.layers[this.divName]).document.open(),e.document.writeln(this.contents),e.document.close()):null==this.popupWindow||this.popupWindow.closed||(""!=this.url?this.popupWindow.location.href=this.url:(this.popupWindow.document.open(),this.popupWindow.document.writeln(this.contents),this.popupWindow.document.close()),this.popupWindow.focus())}function PopupWindow_showPopup(e){var t;this.getXYPosition(e),this.x+=this.offsetX,this.y+=this.offsetY,this.populated||""==this.contents||(this.populated=!0,this.refresh()),null!=this.divName?this.use_gebi?(document.getElementById(this.divName).style.left=this.x+"px",document.getElementById(this.divName).style.top=this.y+"px",document.getElementById(this.divName).style.visibility="visible"):this.use_css?(document.all[this.divName].style.left=this.x,document.all[this.divName].style.top=this.y,document.all[this.divName].style.visibility="visible"):this.use_layers&&(document.layers[this.divName].left=this.x,document.layers[this.divName].top=this.y,document.layers[this.divName].visibility="visible"):(null!=this.popupWindow&&!this.popupWindow.closed||(this.x<0&&(this.x=0),this.y<0&&(this.y=0),screen&&screen.availHeight&&this.y+this.height>screen.availHeight&&(this.y=screen.availHeight-this.height),screen&&screen.availWi
4dth&&this.x+this.width>screen.availWidth&&(this.x=screen.availWidth-this.width),t=window.opera||document.layers&&!navigator.mimeTypes["*"]||"KDE"==navigator.vendor||document.childNodes&&!document.all&&!navigator.taintEnabled,this.popupWindow=window.open(t?"":"about:blank","window_"+e,this.windowProperties+",width="+this.width+",height="+this.height+",screenX="+this.x+",left="+this.x+",screenY="+this.y+",top="+this.y)),this.refresh())}function PopupWindow_hidePopup(){null!=this.divName?this.use_gebi?document.getElementById(this.divName).style.visibility="hidden":this.use_css?document.all[this.divName].style.visibility="hidden":this.use_layers&&(document.layers[this.divName].visibility="hidden"):this.popupWindow&&!this.popupWindow.closed&&(this.popupWindow.close(),this.popupWindow=null)}function PopupWindow_isClicked(e){if(null==this.divName)return!1;if(this.use_layers){var t=e.pageX,o=e.pageY;return t>(n=document.layers[this.divName]).left&&t<n.left+n.clip.width&&o>n.top&&o<n.top+n.clip.height}if(document.all){for(var n=window.event.srcElement;null!=n.parentElement;){if(n.id==this.divName)return!0;n=n.parentElement}return!1}if(this.use_gebi&&e){for(n=e.originalTarget;null!=n.parentNode;){if(n.id==this.divName)return!0;n=n.parentNode}return!1}return!1}function PopupWindow_hideIfNotClicked(e){this.autoHideEnabled&&!this.isClicked(e)&&this.hidePopup()}function PopupWindow_autoHide(){this.autoHideEnabled=!0}function PopupWindow_hidePopupWindows(e){for(var t=0;t<popupWindowObjects.length;t++){null!=popupWindowObjects[t]&&popupWindowObjects[t].hideIfNotClicked(e)}}function PopupWindow_attachListener(){document.layers&&document.captureEvents(Event.MOUSEUP),window.popupWindowOldEventListener=document.onmouseup,null!=window.popupWindowOldEventListener?document.onmouseup=new Function("window.popupWindowOldEventListener(); PopupWindow_hidePopupWindows();"):document.onmouseup=PopupWindow_hidePopupWindows}function PopupWindow(){window.popupWindowIndex||(window.popupWindowIndex=0),window.popupWindowObjects||(window.popupWindowObjects=new Array),window.listenerAttached||(window.listenerAttached=!0,PopupWindow_attachListener()),this.index=popupWindowIndex++,(popupWindowObjects[this.index]=this).divName=null,this.popupWindow=null,this.width=0,this.height=0,this.populated=!1,this.visible=!1,this.autoHideEnabled=!1,this.contents="",this.url="",this.windowProperties="toolbar=no,location=no,status=no,menubar=no,scrollbars=auto,resizable,alwaysRaised,dependent,titlebar=no",0<arguments.length?(this.type="DIV",this.divName=arguments[0]):this.type="WINDOW",this.use_gebi=!1,this.use_css=!1,this.use_layers=!1,document.getElementById?this.use_gebi=!0:document.all?this.use_css=!0:document.layers?this.use_layers=!0:this.type="WINDOW",this.offsetX=0,this.offsetY=0,this.getXYPosition=PopupWindow_getXYPosition,this.populate=PopupWindow_populate,this.setUrl=PopupWindow_setUrl,this.setWindowProperties=PopupWindow_setWindowProperties,this.refresh=PopupWindow_refresh,this.showPopup=PopupWindow_showPopup,this.hidePopup=PopupWindow_hidePopup,this.setSize=PopupWindow_setSize,this.isClicked=PopupWindow_isClicked,this.autoHide=PopupWindow_autoHide,this.hideIfNotClicked=PopupWindow_hideIfNotClicked}var prod_popup=new PopupWindow("warr_detail_replace");function trim(e){return e.replace(/^\s+|\s+$/g,"")}function ltrim(e){return e.replace(/^\s+/,"")}function rtrim(e){return e.replace(/\s+$/,"")}function addtocart(e,t){var o="/addproducttocart/details/"+e+"/1?ws_product_id="+t;$.post(o,function(e){"/checkout/cart"==e.redirect&&(window.location="/checkout/cart")})}function close_modal(){setTimeout(function(){var e=(e=window.location.pathname.replace("/#mw_ws_div/",""))+"#close";return window.location=e,!0},1500)}function load_nav(e){document.getElementById("pop_frame").src="http://www.newleafsc.net/warranty_selector/optcorp/"+e+".php","popup"==e?(document.getElementById("overview").className="sel_nav",document.getElementById("claims").className="unsel_nav",document.getElementById("faq").className="unsel_nav"):"claims"==e?(document.getElementById("claims").className="sel_nav",document.getElementById("overview").className="unsel_nav",document.getElementById("faq").className="unsel_nav"):"faq"==e&&(document.getElementById("faq").className="sel_nav",document.getElementById("overview").className="unsel_nav",document.getElementById("claims").className="unsel_nav")}prod_popup.offsetY=-600,prod_popup.offsetX=-1540,function(){var e,t,m,f,_,o,y=window.location,n=y.protocol;function i(){e=window.jQuery.noConflict(!0),s()}function s(){e(document).ready(function(r){r("<link>",{rel:"stylesheet",type:"text/css",href:m});r("head").append('<link rel="stylesheet" href="'+m+'" type="text/css" />'),r.extend({getUrlVars:function(){for(var e,t=[],o=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),n=0;n<o.length;n++)e=o[n].split("="),t.push(e[0]),t[e[0]]=e[1];return t},getUrlVar:function(e){return r.getUrlVars()[e]}});var c,l,u,e,t,o,n,i,s,p,h='<div name="warr_detail_replace" id="warr_detail_replace" style="visibility:hidden; position:absolute; width:830px; height:580px; z-index: 22;" class="mw_wty_detail_div"><div class="hlp_title" style="width:809px; height:122px; float: left;"><img src="http://www.newleafsc.net/warranty_selector/optcorp/images/logo_nl.png" style="margin: 1px 2px -15px 0px;"><div style="float:right; margin: 0px -16px 0px 3px;"><a href="#" onclick="javascript:prod_popup.hidePopup(); return false;" class="mw_close" style="text-decoration: none; color:#000; font-size:12px;"><span style="color:#B2191D; font-size:20px; line-height: 20px; font-weight: bold;">x</span></a> </div><table style="padding: 2px; width: 100%;"><tr style="border-bottom:1px solid #0E6B3A;"><td style="width: 320px; border-top: 0px; border-bottom:1px solid #0E6B3A; padding: 8px;;"> </td><td style="border-bottom: 1px solid #0E6B3A; border-top: 0px; padding: 8px;;"><span style="vertical-align: bottom; padding: 2px 2px 2px 20px;"><a href="javascript:void();" id ="overview" onclick=load_nav("popup"); class="sel_nav">OVERVIEW</a></span></td><td style="border-top: 0px; padding: 8px;"><span style="vertical-align: bottom; padding: 2px 2px 2px 20px;"><a href="javascript:void();" id ="claims" onclick=load_nav("claims"); class="unsel_nav">CLAIMS</a></span></td><td style="border-top: 0px; padding: 8px;"><span style="vertical-align: bottom; padding: 2px 2px 2px 20px;"><a href="javascript:void();" id ="faq" onclick=load_nav("faq"); class="unsel_nav">FAQs</a></span></td><td style="width: 130px; padding: 8px;; border-top: 0px;"> </td></tr></table></div><iframe src="'+_+'" id="pop_frame" name ="pop_frame" width="824" height="620" frameborder="0" style="border-radius: 1rem;" scrolling="no"></iframe><div> <img src="http://www.newleafsc.net/warranty_selector/optcorp/images/footer.png" style="width: 828px; margin: 0px 0px 0px 0px;"></div></div>',d=y.pathname.replace(new RegExp("/on.*default/"),""),w=y.pathname.replace(new RegExp("/default/.*"),"/default/CheckoutCart-AddProduct"),a=0;(d=(d=(d=(d=(d=(d=(d=d.replace(new RegExp("CheckoutCart-.*"),"Cart")).replace(new RegExp("Cart-.*"),"Cart")).replace(new RegExp("/cart"),"Cart")).replace(new RegExp("/optcorp"),"")).replace(new RegExp(".html"),"")).replace(new RegExp("/checkout"),"")).replace(new RegExp("/"),""))==d?(prod_popup.offsetY=-580,prod_popup.offsetX=-200,c=0,l=[],u=[],r(".cart__row").each(function(){l[c]=r(this).data("sku");var e=r(this).find(".cart__item--content").find(".cart__item--title").find("a").html(),e=unescape(e),t=r(this).data("price")/100,o=r(this).data("qty");1<o&&0<t&&(t/=o);var n=r(this),i=r(this).find(".cart__item--content");u.push({}),u[c].qty=o,u[c].id=r(this).data("sku"),u[c].prod_price=t,u[c].prod_desc=e,u[c].form_key="",u[c].parent_div=n,u[c].parent_div_detail=i,u[c].warranty_count=0,u[c].product_count=1,console.log(u),c++}),r.each(u,function(s,e){var t=w,p=u[s].parent_div,d=u[s].parent_div_detail,a=0,o="";o+="prod_sku="+encodeURIComponent(u[s].id),o+="&prod_desc="+encodeURIComponent(u[s].prod_desc),o+="&form_key="+encodeURIComponent(u[s].form_key),o+="&prod_cat="+encodeURIComponent(""),o+="&prod_price="+encodeURIComponent(u[s].prod_price),o+="&action="+encodeURIComponent(t),o+="&page_url="+encodeURIComponent(y),o+="&add_to_cart="+encodeURIComponent(1);var n=f+"?"+o+"&callback=?";r.getJSON(n,function(e){if(console.log(e),0<e.warranty_count)for(var t=0,o=0;o<l.length;o++)for(var n=0;n<e.warranty_count;n++)if(l[o]==e.warranty_id[n]){a=1;for(var i=0;i<c;i++)u[i].id==l[o]&&(u[s].warranty_count=parseInt(u[s].warranty_count)+parseInt(u[i].qty),0==t&&0<u[i].qty&&(u[i].qty=parseInt(u[i].qty)-1,t=1))}(0==a||parseInt(u[s].product_count)>parseInt(u[s].warranty_count))&&(d.after(h),p.after(e.html)),s++})})):(e=(e=r("div[class=product-subhead]").find("span:eq(1)").html())&&(e=e.replace(new RegExp("MFG:"),"")).replace(new RegExp("#"),""),(t=r("div[class=product-info-price]").find("span[class=
4price]").html())&&(a=t.replace(/[^0-9.]/g,"")),o=r("span[class=base]").html(),n=r("button[id=product-addtocart-button]"),i=r("#mw_ws_div").find("div"),prod_url="",n.click(function(){setTimeout(function(){r.ajax({url:prod_url,type:"post",data:r("#product_addtocart_form").serialize(),success:function(e){console.log(e)},error:function(e,t,o){console.log(o)}});var e=(e=y.pathname.replace("/#close/",""))+"#mw_ws_div";return window.location=e,!0},1e3)}),s="",s+="prod_sku="+encodeURIComponent(e),s+="&prod_desc="+encodeURIComponent(o),s+="&prod_price="+encodeURIComponent(a),s+="&action="+encodeURIComponent(""),s+="&page_url="+encodeURIComponent(y),s+="&add_to_cart="+encodeURIComponent(0),p=f+"?"+s+"&callback=?",r.getJSON(p,function(e){var t=e.html;i.append(t)}))})}navigator.userAgent.indexOf("MSIE"),_="https:"==n?(t="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js",m="https://www.newleafsc.net/warranty_selector/optcorp/mw_style.css",f="https://www.newleafsc.net/warranty_selector/optcorp/mw_ws_optc.php","https://www.newleafsc.net/warranty_selector/optcorp/popup.php"):(t="http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js",m="http://www.newleafsc.net/warranty_selector/optcorp/mw_style.css",f="http://www.newleafsc.net/warranty_selector/optcorp/mw_ws_optc.php","http://www.newleafsc.net/warranty_selector/optcorp/popup.php"),void 0===window.jQuery||"3.3.1"!==window.jQuery.fn.jquery?((o=document.createElement("script")).setAttribute("type","text/javascript"),o.setAttribute("src",t),o.onload=i,o.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||i()},(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(o)):(e=window.jQuery,s())}();*/
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.